ep-lib-ts 0.0.7 → 0.0.8
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/components/basics/EpBadge.vue.d.ts +4 -0
- package/dist/components/basics/EpBadge.vue.d.ts.map +1 -0
- package/dist/components/basics/EpBtn.vue.d.ts +4 -0
- package/dist/components/basics/EpBtn.vue.d.ts.map +1 -0
- package/dist/components/basics/EpCard.vue.d.ts +4 -0
- package/dist/components/basics/EpCard.vue.d.ts.map +1 -0
- package/dist/components/basics/EpChip.vue.d.ts +4 -0
- package/dist/components/basics/EpChip.vue.d.ts.map +1 -0
- package/dist/components/basics/EpFlex.vue.d.ts +4 -0
- package/dist/components/basics/EpFlex.vue.d.ts.map +1 -0
- package/dist/components/basics/EpImg.vue.d.ts +4 -0
- package/dist/components/basics/EpImg.vue.d.ts.map +1 -0
- package/dist/components/basics/EpSection.vue.d.ts +4 -0
- package/dist/components/basics/EpSection.vue.d.ts.map +1 -0
- package/dist/components/basics/EpSpinner.vue.d.ts +4 -0
- package/dist/components/basics/EpSpinner.vue.d.ts.map +1 -0
- package/dist/components/basics/EpTable.vue.d.ts +4 -0
- package/dist/components/basics/EpTable.vue.d.ts.map +1 -0
- package/dist/components/basics/EpText.vue.d.ts +4 -0
- package/dist/components/basics/EpText.vue.d.ts.map +1 -0
- package/dist/components/charts/EpBarChart.vue.d.ts +4 -0
- package/dist/components/charts/EpBarChart.vue.d.ts.map +1 -0
- package/dist/components/charts/EpLineChart.vue.d.ts +4 -0
- package/dist/components/charts/EpLineChart.vue.d.ts.map +1 -0
- package/dist/components/charts/EpPieChart.vue.d.ts +3 -0
- package/dist/components/charts/EpPieChart.vue.d.ts.map +1 -0
- package/dist/components/educationals/EpEdu.vue.d.ts +4 -0
- package/dist/components/educationals/EpEdu.vue.d.ts.map +1 -0
- package/dist/components/educationals/EpReading.vue.d.ts +4 -0
- package/dist/components/educationals/EpReading.vue.d.ts.map +1 -0
- package/dist/components/educationals/EpScope.vue.d.ts +4 -0
- package/dist/components/educationals/EpScope.vue.d.ts.map +1 -0
- package/dist/components/interactions/EpContentSlider.vue.d.ts +5 -0
- package/dist/components/interactions/EpContentSlider.vue.d.ts.map +1 -0
- package/dist/components/interactions/EpModal.vue.d.ts +5 -0
- package/dist/components/interactions/EpModal.vue.d.ts.map +1 -0
- package/dist/components/interactions/EpQuestion.vue.d.ts +3 -0
- package/dist/components/interactions/EpQuestion.vue.d.ts.map +1 -0
- package/dist/components/medias/EpAudio.vue.d.ts +4 -0
- package/dist/components/medias/EpAudio.vue.d.ts.map +1 -0
- package/dist/components/medias/EpCarousel.vue.d.ts +5 -0
- package/dist/components/medias/EpCarousel.vue.d.ts.map +1 -0
- package/dist/components/medias/EpIframe.vue.d.ts +4 -0
- package/dist/components/medias/EpIframe.vue.d.ts.map +1 -0
- package/dist/components/medias/EpKatex.vue.d.ts +5 -0
- package/dist/components/medias/EpKatex.vue.d.ts.map +1 -0
- package/dist/components/medias/EpLink.vue.d.ts +4 -0
- package/dist/components/medias/EpLink.vue.d.ts.map +1 -0
- package/dist/components/medias/EpLinkVersion.vue.d.ts +3 -0
- package/dist/components/medias/EpLinkVersion.vue.d.ts.map +1 -0
- package/dist/components/medias/EpResource.vue.d.ts +3 -0
- package/dist/components/medias/EpResource.vue.d.ts.map +1 -0
- package/dist/components/medias/EpSoftware.vue.d.ts +4 -0
- package/dist/components/medias/EpSoftware.vue.d.ts.map +1 -0
- package/dist/components/medias/EpSvg.vue.d.ts +3 -0
- package/dist/components/medias/EpSvg.vue.d.ts.map +1 -0
- package/dist/components/medias/EpTerm.vue.d.ts +4 -0
- package/dist/components/medias/EpTerm.vue.d.ts.map +1 -0
- package/dist/components/medias/EpTimeLine.vue.d.ts +3 -0
- package/dist/components/medias/EpTimeLine.vue.d.ts.map +1 -0
- package/dist/components/medias/EpVideo.vue.d.ts +4 -0
- package/dist/components/medias/EpVideo.vue.d.ts.map +1 -0
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +4 -0
- package/dist/components/medias/EpVideoPanopto.vue.d.ts.map +1 -0
- package/dist/components/signages/EpHeader.vue.d.ts +4 -0
- package/dist/components/signages/EpHeader.vue.d.ts.map +1 -0
- package/dist/components/signages/EpQuote.vue.d.ts +4 -0
- package/dist/components/signages/EpQuote.vue.d.ts.map +1 -0
- package/dist/components/tools/BgAudio.vue.d.ts +4 -0
- package/dist/components/tools/BgAudio.vue.d.ts.map +1 -0
- package/dist/components/tools/DisplayBox.vue.d.ts +4 -0
- package/dist/components/tools/DisplayBox.vue.d.ts.map +1 -0
- package/dist/ep-lib-ts.cjs.js +984 -1
- package/dist/ep-lib-ts.css +1 -0
- package/dist/ep-lib-ts.es.js +22454 -229
- package/dist/ep-lib-ts.umd.js +985 -2
- package/package.json +1 -1
- package/dist/index.css +0 -1
package/dist/ep-lib-ts.cjs.js
CHANGED
|
@@ -1 +1,984 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f={bgprimary:"bg-primary",borderprimary:"border border-solid border-primary",fillprimary:"fill-primary",textprimary:"text-primary",bgprimarylight:"bg-primary-light",borderprimarylight:"border border-solid border-primary-light",fillprimarylight:"fill-primary-light",textprimarylight:"text-primary-light",bgprimarydark:"bg-primary-dark",borderprimarydark:"border border-solid border-primary-dark",fillprimarydark:"fill-primary-dark",textprimarydark:"text-primary-dark",bgsecondary:"bg-secondary",bordersecondary:"border border-solid border-secondary",fillsecondary:"fill-secondary",textsecondary:"text-secondary",bgsecondarylight:"bg-secondary-light",bordersecondarylight:"border border-solid border-secondary-light",fillsecondarylight:"fill-secondary-light",textsecondarylight:"text-secondary-light",bgsecondarydark:"bg-secondary-dark",bordersecondarydark:"border border-solid border-secondary-dark",fillsecondarydark:"fill-secondary-dark",textsecondarydark:"text-secondary-dark",bgaccent:"bg-accent",borderaccent:"border border-solid border-accent",fillaccent:"fill-accent",textaccent:"text-accent",bgaccentlight:"bg-accent-light",borderaccentlight:"border border-solid border-accent-light",fillaccentlight:"fill-accent-light",textaccentlight:"text-accent-light",bgaccentdark:"bg-accent-dark",borderaccentdark:"border border-solid border-accent-dark",fillaccentdark:"fill-accent-dark",textaccentdark:"text-accent-dark",bgerror:"bg-error",bordererror:"border border-solid border-error",fillerror:"fill-error",texterror:"text-error",bgerrorlight:"bg-error-light",bordererrorlight:"border border-solid border-error-light",fillerrorlight:"fill-error-light",texterrorlight:"text-error-light",bgerrordark:"bg-error-dark",bordererrordark:"border border-solid border-error-dark",fillerrordark:"fill-error-dark",texterrordark:"text-error-dark",bgwarning:"bg-warning",borderwarning:"border border-solid border-warning",fillwarning:"fill-warning",textwarning:"text-warning",bgwarninglight:"bg-warning-light",borderwarninglight:"border border-solid border-warning-light",fillwarninglight:"fill-warning-light",textwarninglight:"text-warning-light",bgwarningdark:"bg-warning-dark",borderwarningdark:"border border-solid border-warning-dark",fillwarningdark:"fill-warning-dark",textwarningdark:"text-warning-dark",bgsuccess:"bg-success",bordersuccess:"border border-solid border-success",fillsuccess:"fill-success",textsuccess:"text-success",bgsuccesslight:"bg-success-light",bordersuccesslight:"border border-solid border-success-light",fillsuccesslight:"fill-success-light",textsuccesslight:"text-success-light",bgsuccessdark:"bg-success-dark",bordersuccessdark:"border border-solid border-success-dark",fillsuccessdark:"fill-success-dark",textsuccessdark:"text-success-dark",bginfo:"bg-info",borderinfo:"border border-solid border-info",fillinfo:"fill-info",textinfo:"text-info",bginfolight:"bg-info-light",borderinfolight:"border border-solid border-info-light",fillinfolight:"fill-info-light",textinfolight:"text-info-light",bginfodark:"bg-info-dark",borderinfodark:"border border-solid border-info-dark",fillinfodark:"fill-info-dark",textinfodark:"text-info-dark",bgquestion:"bg-question",borderquestion:"border border-solid border-question",fillquestion:"fill-question",textquestion:"text-question",bgquestionlight:"bg-question-light",borderquestionlight:"border border-solid border-question-light",fillquestionlight:"fill-question-light",textquestionlight:"text-question-light",bgquestiondark:"bg-question-dark",borderquestiondark:"border border-solid border-question-dark",fillquestiondark:"fill-question-dark",textquestiondark:"text-question-dark",bgtip:"bg-tip",bordertip:"border border-solid border-tip",filltip:"fill-tip",texttip:"text-tip",bgtiplight:"bg-tip-light",bordertiplight:"border border-solid border-tip-light",filltiplight:"fill-tip-light",texttiplight:"text-tip-light",bgtipdark:"bg-tip-dark",bordertipdark:"border border-solid border-tip-dark",filltipdark:"fill-tip-dark",texttipdark:"text-tip-dark",bgwhite:"bg-white",fillwhite:"fill-white",textwhite:"text-white",borderwhite:"border border-solid border-white",bgblack:"bg-black",fillblack:"fill-black",borderblack:"border border-solid border-black",textblack:"text-black",bgbase:"bg-gray-500",bgbaselight:"bg-gray-200",fillbase:"fill-gray-500",borderbase:"border border-solid border-gray-500",textbase:"text-gray-500"};function u(t,r){const l=`${t}${r}`.replace(/-/g,"");return f[l]}const p=e.defineComponent({__name:"EpDivider",props:{color:{default:null},size:{default:"border"},inset:{type:Boolean,default:!1},icon:{default:null},margin:{default:"my-2"}},setup(t){const r=t,i=e.computed(()=>r.color?`${r.size} ${u("border",r.color)}`:`${r.size} border-grey-700`),l=e.computed(()=>`${i.value} ${r.inset?"w-9/12 mx-auto":"w-full"} ${r.margin}`);return(n,a)=>(e.openBlock(),e.createElementBlock("hr",{class:e.normalizeClass(`h-px ${e.unref(l)}`)},null,2))}}),h=["width","height","viewBox"],x=["d"],g=e.defineComponent({__name:"EpIcon",props:{size:{default:32},viewBox:{default:"0 0 24 24"},iconPath:null,extraClass:null},setup(t){const r=t,{size:i,viewBox:l,iconPath:n,extraClass:a}=e.toRefs(r);return(s,c)=>(e.openBlock(),e.createElementBlock("svg",{width:e.unref(i),height:e.unref(i),viewBox:e.unref(l),color:"currentColor",fill:"currentColor",class:e.normalizeClass(`inline ${e.unref(a)}`)},[e.createElementVNode("path",{d:e.unref(n)},null,8,x)],10,h))}}),k={base:{default:"bg-gray-100 text-black",outlined:"border-gray-100 border text-black"},primary:{default:"bg-primary text-white",outlined:"border-primary border text-primary"},secondary:{default:"bg-secondary text-white",outlined:"border-secondary border text-secondary"},accent:{default:"bg-accent text-white",outlined:"border-accent border text-accent"},warning:{default:"bg-warning text-white",outlined:"border-warning border text-warning"},success:{default:"bg-success text-white",outlined:"border-success border text-success"},error:{default:"bg-error text-white",outlined:"border-error border text-error"},info:{default:"bg-info text-white",outlined:"border-info border text-info"},question:{default:"bg-question text-white",outlined:"border-question border text-question"},tip:{default:"bg-tip text-white",outlined:"border-tip border text-tip"}},y=t=>(e.pushScopeId("data-v-d8f20f72"),t=t(),e.popScopeId(),t),m={class:"text-lg"},w=y(()=>e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1)),_=[w],v={class:"py-4"},V=e.defineComponent({__name:"EpAccordeon",props:{title:{default:"En savoir plus"},type:{default:"base"},icon:null,open:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},setup(t){const r=t,i=e.ref(r.open),l=e.ref(),n=e.computed(()=>r.outlined?"outlined":"default"),a=e.computed(()=>{var o;return`flex justify-between items-center px-4 py-2 cursor-pointer ${(o=k[r.type])==null?void 0:o[n.value]}`}),s=e.computed(()=>`px-4 ${u("bg",r.type+"light")}`);e.onMounted(()=>{var o=l.value;r.open&&(o.style.maxHeight=o.scrollHeight+"px")});function c(){i.value=!i.value;var o=l.value;o.style.maxHeight?o.style.maxHeight=null:o.style.maxHeight=o.scrollHeight+"px",o.style.transition||(o.style.transition="max-height 0.2s ease-out")}const{title:b,icon:d}=e.toRefs(r);return(o,D)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)),onClick:c},[e.createElementVNode("h3",m,[e.unref(d)?(e.openBlock(),e.createBlock(g,{key:0,"icon-path":e.unref(d)},null,8,["icon-path"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(b)),1)]),(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:e.normalizeClass(`mx-4 my-3 h-6 w-6 transition-all duration-200 ${i.value?"rotate-45":""}`)},_,2))],2),e.createElementVNode("div",{ref_key:"collapsible",ref:l,class:e.normalizeClass(`${e.unref(s)} content`)},[e.createElementVNode("div",v,[e.renderSlot(o.$slots,"default",{},void 0,!0)])],2)],64))}});const C=(t,r)=>{const i=t.__vccOpts||t;for(const[l,n]of r)i[l]=n;return i},H=C(V,[["__scopeId","data-v-d8f20f72"]]),L={base:{default:"bg-gray-100 text-black",outlined:"bg-white border-gray-100 border text-black"},warning:{default:"bg-warning text-white",outlined:"bg-white border-warning border text-warning"},success:{default:"bg-success text-white",outlined:"bg-white border-success border text-success"},error:{default:"bg-error text-white",outlined:"bg-white border-error border text-error"},info:{default:"bg-info text-white",outlined:"bg-white border-info border text-info"},question:{default:"bg-question text-white",outlined:"bg-white border-question border text-question"},tip:{default:"bg-tip text-white",outlined:"bg-white border-tip border text-tip"}};var q="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",B="M2.2,16.06L3.88,12L2.2,7.94L6.26,6.26L7.94,2.2L12,3.88L16.06,2.2L17.74,6.26L21.8,7.94L20.12,12L21.8,16.06L17.74,17.74L16.06,21.8L12,20.12L7.94,21.8L6.26,17.74L2.2,16.06M13,17V15H11V17H13M13,13V7H11V13H13Z",$="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",A="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",M="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",E="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",z="M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z";const N={base:{icon:A},warning:{icon:q},success:{icon:$},error:{icon:B},info:{icon:E},question:{icon:M},tip:{icon:z}},S={key:0,class:"flex items-center justify-center w-1/12"},I={class:"container"},Z={key:0,class:"text-left text-2xl font-bold"},O=e.defineComponent({__name:"EpAlert",props:{type:{default:"base"},title:{default:null},outlined:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1},icon:{default:null},compact:{type:Boolean}},setup(t){const r=t,i=e.computed(()=>r.outlined?"outlined":"default"),l=e.computed(()=>{var d;return`${(d=L[r.type])==null?void 0:d[i.value]}`}),n=e.computed(()=>{let d=N[r.type].icon;return r.noIcon?null:r.icon?r.icon:d}),{title:a,compact:s,type:c,outlined:b}=e.toRefs(r);return(d,o)=>e.unref(s)?(e.openBlock(),e.createBlock(H,{key:1,type:e.unref(c),outlined:e.unref(b),icon:e.unref(n),title:e.unref(a)},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["type","outlined","icon","title"])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`flex p-4 rounded shadow-md m-2 ${e.unref(l)}`)},[e.unref(n)?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(g,{size:40,"icon-path":e.unref(n)},null,8,["icon-path"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(n)?"w-11/12":"w-full"} flex items-center`)},[e.createElementVNode("div",I,[e.unref(a)?(e.openBlock(),e.createElementBlock("h3",Z,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createBlock(p,{key:1,size:"border"})):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default")])],2)],2))}});exports.EpAlert=O;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ee=require("vue"),Ro={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},Fo=ee.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1),_o=[Fo],Qs=ee.defineComponent({__name:"EpBadge",setup(c){return(a,o)=>(ee.openBlock(),ee.createElementBlock("div",Ro,_o))}}),Bo=["width","height","viewBox"],No=["d"],er=ee.defineComponent({__name:"EpIcon",props:{size:{default:32},viewBox:{default:"0 0 24 24"},iconPath:null,extraClass:null},setup(c){const a=c,{size:o,viewBox:u,iconPath:g,extraClass:m}=ee.toRefs(a);return(k,w)=>(ee.openBlock(),ee.createElementBlock("svg",{width:ee.unref(o),height:ee.unref(o),viewBox:ee.unref(u),color:"currentColor",fill:"currentColor",class:ee.normalizeClass(`inline ${ee.unref(m)}`)},[ee.createElementVNode("path",{d:ee.unref(g)},null,8,No)],10,Bo))}}),Oo={bgprimary:"bg-primary",borderprimary:"border border-solid border-primary",fillprimary:"fill-primary",textprimary:"text-primary",bgprimarylight:"bg-primary-light",borderprimarylight:"border border-solid border-primary-light",fillprimarylight:"fill-primary-light",textprimarylight:"text-primary-light",bgprimarydark:"bg-primary-dark",borderprimarydark:"border border-solid border-primary-dark",fillprimarydark:"fill-primary-dark",textprimarydark:"text-primary-dark",bgsecondary:"bg-secondary",bordersecondary:"border border-solid border-secondary",fillsecondary:"fill-secondary",textsecondary:"text-secondary",bgsecondarylight:"bg-secondary-light",bordersecondarylight:"border border-solid border-secondary-light",fillsecondarylight:"fill-secondary-light",textsecondarylight:"text-secondary-light",bgsecondarydark:"bg-secondary-dark",bordersecondarydark:"border border-solid border-secondary-dark",fillsecondarydark:"fill-secondary-dark",textsecondarydark:"text-secondary-dark",bgaccent:"bg-accent",borderaccent:"border border-solid border-accent",fillaccent:"fill-accent",textaccent:"text-accent",bgaccentlight:"bg-accent-light",borderaccentlight:"border border-solid border-accent-light",fillaccentlight:"fill-accent-light",textaccentlight:"text-accent-light",bgaccentdark:"bg-accent-dark",borderaccentdark:"border border-solid border-accent-dark",fillaccentdark:"fill-accent-dark",textaccentdark:"text-accent-dark",bgerror:"bg-error",bordererror:"border border-solid border-error",fillerror:"fill-error",texterror:"text-error",bgerrorlight:"bg-error-light",bordererrorlight:"border border-solid border-error-light",fillerrorlight:"fill-error-light",texterrorlight:"text-error-light",bgerrordark:"bg-error-dark",bordererrordark:"border border-solid border-error-dark",fillerrordark:"fill-error-dark",texterrordark:"text-error-dark",bgwarning:"bg-warning",borderwarning:"border border-solid border-warning",fillwarning:"fill-warning",textwarning:"text-warning",bgwarninglight:"bg-warning-light",borderwarninglight:"border border-solid border-warning-light",fillwarninglight:"fill-warning-light",textwarninglight:"text-warning-light",bgwarningdark:"bg-warning-dark",borderwarningdark:"border border-solid border-warning-dark",fillwarningdark:"fill-warning-dark",textwarningdark:"text-warning-dark",bgsuccess:"bg-success",bordersuccess:"border border-solid border-success",fillsuccess:"fill-success",textsuccess:"text-success",bgsuccesslight:"bg-success-light",bordersuccesslight:"border border-solid border-success-light",fillsuccesslight:"fill-success-light",textsuccesslight:"text-success-light",bgsuccessdark:"bg-success-dark",bordersuccessdark:"border border-solid border-success-dark",fillsuccessdark:"fill-success-dark",textsuccessdark:"text-success-dark",bginfo:"bg-info",borderinfo:"border border-solid border-info",fillinfo:"fill-info",textinfo:"text-info",bginfolight:"bg-info-light",borderinfolight:"border border-solid border-info-light",fillinfolight:"fill-info-light",textinfolight:"text-info-light",bginfodark:"bg-info-dark",borderinfodark:"border border-solid border-info-dark",fillinfodark:"fill-info-dark",textinfodark:"text-info-dark",bgquestion:"bg-question",borderquestion:"border border-solid border-question",fillquestion:"fill-question",textquestion:"text-question",bgquestionlight:"bg-question-light",borderquestionlight:"border border-solid border-question-light",fillquestionlight:"fill-question-light",textquestionlight:"text-question-light",bgquestiondark:"bg-question-dark",borderquestiondark:"border border-solid border-question-dark",fillquestiondark:"fill-question-dark",textquestiondark:"text-question-dark",bgtip:"bg-tip",bordertip:"border border-solid border-tip",filltip:"fill-tip",texttip:"text-tip",bgtiplight:"bg-tip-light",bordertiplight:"border border-solid border-tip-light",filltiplight:"fill-tip-light",texttiplight:"text-tip-light",bgtipdark:"bg-tip-dark",bordertipdark:"border border-solid border-tip-dark",filltipdark:"fill-tip-dark",texttipdark:"text-tip-dark",bgwhite:"bg-white",fillwhite:"fill-white",textwhite:"text-white",borderwhite:"border border-solid border-white",bgblack:"bg-black",fillblack:"fill-black",borderblack:"border border-solid border-black",textblack:"text-black",bgbase:"bg-gray-500",bgbaselight:"bg-gray-200",fillbase:"fill-gray-500",borderbase:"border border-solid border-gray-500",textbase:"text-gray-500"};function Gr(c,a){const u=`${c}${a}`.replace(/-/g,"");return Oo[u]}const Ho={base:{default:"bg-gray-100 text-black hover:bg-gray-200",outlined:"bg-white ring-1 ring-grey-200 ring-inset text-black hover:bg-gray-200"},primary:{default:"bg-primary hover:bg-primary-light hover:text-primary-dark",outlined:"ring-1 ring-primary ring-inset text-primary hover:bg-primary-light hover:text-primary-dark"},secondary:{default:"bg-secondary hover:bg-secondary-light hover:text-secondary-dark",outlined:"ring-1 ring-secondary ring-inset text-secondary hover:bg-secondary-light hover:text-secondary-dark"},accent:{default:"bg-accent hover:bg-accent-light hover:text-accent-dark",outlined:"ring-1 ring-accent ring-inset text-accent hover:bg-accent-light hover:text-accent-dark"},info:{default:"bg-info hover:bg-info-light hover:text-info-dark",outlined:"ring-1 ring-info ring-inset text-info hover:bg-info-light hover:text-info-dark"},warning:{default:"bg-warning hover:bg-warning-light hover:text-warning-dark",outlined:"ring-1 ring-warning ring-inset text-warning hover:bg-warning-light hover:text-warning-dark"},success:{default:"bg-success hover:bg-success-light hover:text-success-dark",outlined:"ring-1 ring-success ring-inset text-success hover:bg-success-light hover:text-success-dark"},error:{default:"bg-error hover:bg-error-light hover:text-error-dark",outlined:"ring-1 ring-error ring-inset text-error hover:bg-error-light hover:text-error-dark"}},Xo={small:"px-2 py-1 text-sm",medium:"px-4 py-2",large:"px-8 py-4 text-lg"},Yo=["disabled"],qo=["disabled","href"],en=ee.defineComponent({__name:"EpBtn",props:{type:{default:"base"},disabled:{type:Boolean},block:{type:Boolean},rounded:{type:Boolean,default:!1},size:{default:"medium"},appendIcon:{default:null},prependIcon:{default:null},outlined:{type:Boolean},text:{type:Boolean,default:!1},color:{default:"text-black"},extraClass:{default:null},href:null},setup(c){const a=c,o=ee.computed(()=>a.outlined?"":a.color),u=ee.computed(()=>a.outlined?"outlined":"default"),g=ee.computed(()=>{var F;return a.text?`uppercase ${Gr("text",a.type)} hover:${Gr("bg",a.type+"light")}`:`${(F=Ho[a.type])==null?void 0:F[u.value]}`}),m=ee.computed(()=>`
|
|
2
|
+
transition
|
|
3
|
+
${g.value}
|
|
4
|
+
${Xo[a.size]}
|
|
5
|
+
${o.value}
|
|
6
|
+
${a.disabled?"opacity-50":""}
|
|
7
|
+
${a.block?"w-full block":""}
|
|
8
|
+
${a.rounded?"rounded-md":""}
|
|
9
|
+
${a.extraClass?a.extraClass:"transition"}`),k=ee.computed(()=>{if(a.size==="large")return"30";if(a.size==="medium")return"20";if(a.size==="small")return"15"}),{disabled:w,prependIcon:S,appendIcon:D}=ee.toRefs(a);return(F,H)=>c.href?(ee.openBlock(),ee.createElementBlock("a",{key:1,class:ee.normalizeClass(`${ee.unref(m)} text-center inline-block`),disabled:ee.unref(w),href:c.href,target:"_blank"},[ee.unref(S)?(ee.openBlock(),ee.createBlock(er,{key:0,iconPath:ee.unref(S),size:ee.unref(k),extraClass:"mr-2"},null,8,["iconPath","size"])):ee.createCommentVNode("",!0),ee.renderSlot(F.$slots,"default"),ee.unref(D)?(ee.openBlock(),ee.createBlock(er,{key:1,iconPath:ee.unref(D),size:ee.unref(k),extraClass:"ml-2"},null,8,["iconPath","size"])):ee.createCommentVNode("",!0)],10,qo)):(ee.openBlock(),ee.createElementBlock("button",{key:0,class:ee.normalizeClass(ee.unref(m)),disabled:ee.unref(w)},[ee.unref(S)?(ee.openBlock(),ee.createBlock(er,{key:0,iconPath:ee.unref(S),size:ee.unref(k),extraClass:"mr-2"},null,8,["iconPath","size"])):ee.createCommentVNode("",!0),ee.renderSlot(F.$slots,"default"),ee.unref(D)?(ee.openBlock(),ee.createBlock(er,{key:1,iconPath:ee.unref(D),size:ee.unref(k),extraClass:"ml-2"},null,8,["iconPath","size"])):ee.createCommentVNode("",!0)],10,Yo))}}),Vo={compact:"p-0",default:"p-4",comfortable:"p-8"},Wo=["src"],Go={key:0,class:"mb-2 flex items-center justify-between"},jo={class:"text-2xl font-bold"},Uo={key:0},tn=ee.defineComponent({__name:"EpCard",props:{title:{default:null},subtitle:{default:null},outlined:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},icon:{default:null},color:{default:null},src:{default:null},maxWidth:{default:"max-w-full"},density:{default:"default"}},setup(c){const a=c,o=ee.computed(()=>a.flat?"":"shadow-lg"),u=ee.computed(()=>a.outlined&&a.color?`border solid ${Gr("border",a.color)}`:a.outlined?"border solid border-grey-700":""),g=ee.computed(()=>a.color&&!a.outlined?`${Gr("bg",a.color)} text-white`:"bg-white text-black"),m=ee.computed(()=>a.color&&!a.outlined?"text-white":"text-gray-600"),k=ee.computed(()=>Vo[a.density]),w=ee.computed(()=>`${o.value} ${u.value} ${g.value} ${a.maxWidth} my-4 `),{title:S,subtitle:D,icon:F,src:H,density:q}=ee.toRefs(a);return(X,$)=>(ee.openBlock(),ee.createElementBlock("div",{class:ee.normalizeClass(`${ee.unref(w)} rounded-md`)},[ee.unref(H)?(ee.openBlock(),ee.createElementBlock("img",{key:0,src:ee.unref(H),class:"w-full rounded-t-md",alt:"header card"},null,8,Wo)):ee.createCommentVNode("",!0),ee.createElementVNode("div",{class:ee.normalizeClass(ee.unref(k))},[ee.unref(S)||ee.unref(D)?(ee.openBlock(),ee.createElementBlock("div",Go,[ee.createElementVNode("div",null,[ee.createElementVNode("h3",jo,ee.toDisplayString(ee.unref(S)),1),ee.createElementVNode("h4",{class:ee.normalizeClass(`text-xs ${ee.unref(m)}`)},ee.toDisplayString(ee.unref(D)),3)]),ee.unref(F)?(ee.openBlock(),ee.createElementBlock("div",Uo,[ee.createVNode(er,{"icon-path":ee.unref(F)},null,8,["icon-path"])])):ee.createCommentVNode("",!0)])):ee.createCommentVNode("",!0),ee.renderSlot(X.$slots,"card-header"),ee.renderSlot(X.$slots,"default"),ee.renderSlot(X.$slots,"card-actions")],2)],2))}}),$o={base:{default:"bg-white border-black border text-black",outlined:"bg-white border-black border text-black"},primary:{default:"bg-primary border-primary border",outlined:"border-primary border text-primary"},secondary:{default:"bg-secondary border-secondary border",outlined:"border-secondary border text-secondary"},accent:{default:"bg-accent border-accent border",outlined:"border-accent border text-accent"},info:{default:"bg-info border-info border",outlined:"border-info border text-info"},warning:{default:"bg-warning border-warning border",outlined:"border-warning border text-warning"},success:{default:"bg-success border-success border",outlined:"border-success border text-success"},error:{default:"bg-error border-error border",outlined:"border-error border text-error"}},Zo={small:"px-1 py-1 text-xs",medium:"py-2 px-3 text-sm",large:"px-3 py-3 text-lg"},rn=ee.defineComponent({__name:"EpChip",props:{type:{default:"base"},size:{default:"medium"},outlined:{type:Boolean},appendIcon:{default:null},prependIcon:{default:null},square:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},setup(c){const a=c,o=ee.computed(()=>a.outlined?"outlined":"default"),u=ee.computed(()=>a.square?"":"rounded-full"),g=ee.computed(()=>a.outlined?"":a.dark?"text-white":"text-black"),m=ee.computed(()=>{var S;return`
|
|
10
|
+
${g.value}
|
|
11
|
+
${Zo[a.size]}
|
|
12
|
+
${u.value}
|
|
13
|
+
${(S=$o[a.type])==null?void 0:S[o.value]}
|
|
14
|
+
`}),k=ee.computed(()=>{if(a.size==="large")return"30";if(a.size==="medium")return"20";if(a.size==="small")return"15"}),{appendIcon:w}=ee.toRefs(a);return(S,D)=>(ee.openBlock(),ee.createElementBlock("span",{class:ee.normalizeClass(`${ee.unref(m)} mx-2 cursor-default`)},[c.prependIcon?(ee.openBlock(),ee.createBlock(er,{key:0,iconPath:c.prependIcon,size:ee.unref(k),extraClass:"mr-2"},null,8,["iconPath","size"])):ee.createCommentVNode("",!0),ee.renderSlot(S.$slots,"default"),ee.unref(w)?(ee.openBlock(),ee.createBlock(er,{key:1,iconPath:ee.unref(w),size:ee.unref(k),extraClass:"ml-2"},null,8,["iconPath","size"])):ee.createCommentVNode("",!0)],2))}});function Jo(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function Ko(c){if(c.__esModule)return c;var a=c.default;if(typeof a=="function"){var o=function u(){if(this instanceof u){var g=[null];g.push.apply(g,arguments);var m=Function.bind.apply(a,g);return new m}return a.apply(this,arguments)};o.prototype=a.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(c).forEach(function(u){var g=Object.getOwnPropertyDescriptor(c,u);Object.defineProperty(o,u,g.get?g:{enumerable:!0,get:function(){return c[u]}})}),o}var Ua={},Qo={get exports(){return Ua},set exports(c){Ua=c}},_e={},jr={},el={get exports(){return jr},set exports(c){jr=c}};const tl="Á",rl="á",al="Ă",il="ă",sl="∾",nl="∿",ol="∾̳",ll="Â",cl="â",hl="´",ul="А",dl="а",fl="Æ",gl="æ",pl="",ml="𝔄",xl="𝔞",bl="À",vl="à",yl="ℵ",wl="ℵ",kl="Α",Al="α",Sl="Ā",Cl="ā",Ml="⨿",zl="&",Tl="&",Ll="⩕",El="⩓",Dl="∧",Pl="⩜",Il="⩘",Rl="⩚",Fl="∠",_l="⦤",Bl="∠",Nl="⦨",Ol="⦩",Hl="⦪",Xl="⦫",Yl="⦬",ql="⦭",Vl="⦮",Wl="⦯",Gl="∡",jl="∟",Ul="⊾",$l="⦝",Zl="∢",Jl="Å",Kl="⍼",Ql="Ą",e0="ą",t0="𝔸",r0="𝕒",a0="⩯",i0="≈",s0="⩰",n0="≊",o0="≋",l0="'",c0="",h0="≈",u0="≊",d0="Å",f0="å",g0="𝒜",p0="𝒶",m0="≔",x0="*",b0="≈",v0="≍",y0="Ã",w0="ã",k0="Ä",A0="ä",S0="∳",C0="⨑",M0="≌",z0="϶",T0="‵",L0="∽",E0="⋍",D0="∖",P0="⫧",I0="⊽",R0="⌅",F0="⌆",_0="⌅",B0="⎵",N0="⎶",O0="≌",H0="Б",X0="б",Y0="„",q0="∵",V0="∵",W0="∵",G0="⦰",j0="϶",U0="ℬ",$0="ℬ",Z0="Β",J0="β",K0="ℶ",Q0="≬",ec="𝔅",tc="𝔟",rc="⋂",ac="◯",ic="⋃",sc="⨀",nc="⨁",oc="⨂",lc="⨆",cc="★",hc="▽",uc="△",dc="⨄",fc="⋁",gc="⋀",pc="⤍",mc="⧫",xc="▪",bc="▴",vc="▾",yc="◂",wc="▸",kc="␣",Ac="▒",Sc="░",Cc="▓",Mc="█",zc="=⃥",Tc="≡⃥",Lc="⫭",Ec="⌐",Dc="𝔹",Pc="𝕓",Ic="⊥",Rc="⊥",Fc="⋈",_c="⧉",Bc="┐",Nc="╕",Oc="╖",Hc="╗",Xc="┌",Yc="╒",qc="╓",Vc="╔",Wc="─",Gc="═",jc="┬",Uc="╤",$c="╥",Zc="╦",Jc="┴",Kc="╧",Qc="╨",eh="╩",th="⊟",rh="⊞",ah="⊠",ih="┘",sh="╛",nh="╜",oh="╝",lh="└",ch="╘",hh="╙",uh="╚",dh="│",fh="║",gh="┼",ph="╪",mh="╫",xh="╬",bh="┤",vh="╡",yh="╢",wh="╣",kh="├",Ah="╞",Sh="╟",Ch="╠",Mh="‵",zh="˘",Th="˘",Lh="¦",Eh="𝒷",Dh="ℬ",Ph="⁏",Ih="∽",Rh="⋍",Fh="⧅",_h="\\",Bh="⟈",Nh="•",Oh="•",Hh="≎",Xh="⪮",Yh="≏",qh="≎",Vh="≏",Wh="Ć",Gh="ć",jh="⩄",Uh="⩉",$h="⩋",Zh="∩",Jh="⋒",Kh="⩇",Qh="⩀",eu="ⅅ",tu="∩︀",ru="⁁",au="ˇ",iu="ℭ",su="⩍",nu="Č",ou="č",lu="Ç",cu="ç",hu="Ĉ",uu="ĉ",du="∰",fu="⩌",gu="⩐",pu="Ċ",mu="ċ",xu="¸",bu="¸",vu="⦲",yu="¢",wu="·",ku="·",Au="𝔠",Su="ℭ",Cu="Ч",Mu="ч",zu="✓",Tu="✓",Lu="Χ",Eu="χ",Du="ˆ",Pu="≗",Iu="↺",Ru="↻",Fu="⊛",_u="⊚",Bu="⊝",Nu="⊙",Ou="®",Hu="Ⓢ",Xu="⊖",Yu="⊕",qu="⊗",Vu="○",Wu="⧃",Gu="≗",ju="⨐",Uu="⫯",$u="⧂",Zu="∲",Ju="”",Ku="’",Qu="♣",ed="♣",td=":",rd="∷",ad="⩴",id="≔",sd="≔",nd=",",od="@",ld="∁",cd="∘",hd="∁",ud="ℂ",dd="≅",fd="⩭",gd="≡",pd="∮",md="∯",xd="∮",bd="𝕔",vd="ℂ",yd="∐",wd="∐",kd="©",Ad="©",Sd="℗",Cd="∳",Md="↵",zd="✗",Td="⨯",Ld="𝒞",Ed="𝒸",Dd="⫏",Pd="⫑",Id="⫐",Rd="⫒",Fd="⋯",_d="⤸",Bd="⤵",Nd="⋞",Od="⋟",Hd="↶",Xd="⤽",Yd="⩈",qd="⩆",Vd="≍",Wd="∪",Gd="⋓",jd="⩊",Ud="⊍",$d="⩅",Zd="∪︀",Jd="↷",Kd="⤼",Qd="⋞",ef="⋟",tf="⋎",rf="⋏",af="¤",sf="↶",nf="↷",of="⋎",lf="⋏",cf="∲",hf="∱",uf="⌭",df="†",ff="‡",gf="ℸ",pf="↓",mf="↡",xf="⇓",bf="‐",vf="⫤",yf="⊣",wf="⤏",kf="˝",Af="Ď",Sf="ď",Cf="Д",Mf="д",zf="‡",Tf="⇊",Lf="ⅅ",Ef="ⅆ",Df="⤑",Pf="⩷",If="°",Rf="∇",Ff="Δ",_f="δ",Bf="⦱",Nf="⥿",Of="𝔇",Hf="𝔡",Xf="⥥",Yf="⇃",qf="⇂",Vf="´",Wf="˙",Gf="˝",jf="`",Uf="˜",$f="⋄",Zf="⋄",Jf="⋄",Kf="♦",Qf="♦",eg="¨",tg="ⅆ",rg="ϝ",ag="⋲",ig="÷",sg="÷",ng="⋇",og="⋇",lg="Ђ",cg="ђ",hg="⌞",ug="⌍",dg="$",fg="𝔻",gg="𝕕",pg="¨",mg="˙",xg="⃜",bg="≐",vg="≑",yg="≐",wg="∸",kg="∔",Ag="⊡",Sg="⌆",Cg="∯",Mg="¨",zg="⇓",Tg="⇐",Lg="⇔",Eg="⫤",Dg="⟸",Pg="⟺",Ig="⟹",Rg="⇒",Fg="⊨",_g="⇑",Bg="⇕",Ng="∥",Og="⤓",Hg="↓",Xg="↓",Yg="⇓",qg="⇵",Vg="̑",Wg="⇊",Gg="⇃",jg="⇂",Ug="⥐",$g="⥞",Zg="⥖",Jg="↽",Kg="⥟",Qg="⥗",ep="⇁",tp="↧",rp="⊤",ap="⤐",ip="⌟",sp="⌌",np="𝒟",op="𝒹",lp="Ѕ",cp="ѕ",hp="⧶",up="Đ",dp="đ",fp="⋱",gp="▿",pp="▾",mp="⇵",xp="⥯",bp="⦦",vp="Џ",yp="џ",wp="⟿",kp="É",Ap="é",Sp="⩮",Cp="Ě",Mp="ě",zp="Ê",Tp="ê",Lp="≖",Ep="≕",Dp="Э",Pp="э",Ip="⩷",Rp="Ė",Fp="ė",_p="≑",Bp="ⅇ",Np="≒",Op="𝔈",Hp="𝔢",Xp="⪚",Yp="È",qp="è",Vp="⪖",Wp="⪘",Gp="⪙",jp="∈",Up="⏧",$p="ℓ",Zp="⪕",Jp="⪗",Kp="Ē",Qp="ē",e1="∅",t1="∅",r1="◻",a1="∅",i1="▫",s1=" ",n1=" ",o1=" ",l1="Ŋ",c1="ŋ",h1=" ",u1="Ę",d1="ę",f1="𝔼",g1="𝕖",p1="⋕",m1="⧣",x1="⩱",b1="ε",v1="Ε",y1="ε",w1="ϵ",k1="≖",A1="≕",S1="≂",C1="⪖",M1="⪕",z1="⩵",T1="=",L1="≂",E1="≟",D1="⇌",P1="≡",I1="⩸",R1="⧥",F1="⥱",_1="≓",B1="ℯ",N1="ℰ",O1="≐",H1="⩳",X1="≂",Y1="Η",q1="η",V1="Ð",W1="ð",G1="Ë",j1="ë",U1="€",$1="!",Z1="∃",J1="∃",K1="ℰ",Q1="ⅇ",em="ⅇ",tm="≒",rm="Ф",am="ф",im="♀",sm="ffi",nm="ff",om="ffl",lm="𝔉",cm="𝔣",hm="fi",um="◼",dm="▪",fm="fj",gm="♭",pm="fl",mm="▱",xm="ƒ",bm="𝔽",vm="𝕗",ym="∀",wm="∀",km="⋔",Am="⫙",Sm="ℱ",Cm="⨍",Mm="½",zm="⅓",Tm="¼",Lm="⅕",Em="⅙",Dm="⅛",Pm="⅔",Im="⅖",Rm="¾",Fm="⅗",_m="⅜",Bm="⅘",Nm="⅚",Om="⅝",Hm="⅞",Xm="⁄",Ym="⌢",qm="𝒻",Vm="ℱ",Wm="ǵ",Gm="Γ",jm="γ",Um="Ϝ",$m="ϝ",Zm="⪆",Jm="Ğ",Km="ğ",Qm="Ģ",ex="Ĝ",tx="ĝ",rx="Г",ax="г",ix="Ġ",sx="ġ",nx="≥",ox="≧",lx="⪌",cx="⋛",hx="≥",ux="≧",dx="⩾",fx="⪩",gx="⩾",px="⪀",mx="⪂",xx="⪄",bx="⋛︀",vx="⪔",yx="𝔊",wx="𝔤",kx="≫",Ax="⋙",Sx="⋙",Cx="ℷ",Mx="Ѓ",zx="ѓ",Tx="⪥",Lx="≷",Ex="⪒",Dx="⪤",Px="⪊",Ix="⪊",Rx="⪈",Fx="≩",_x="⪈",Bx="≩",Nx="⋧",Ox="𝔾",Hx="𝕘",Xx="`",Yx="≥",qx="⋛",Vx="≧",Wx="⪢",Gx="≷",jx="⩾",Ux="≳",$x="𝒢",Zx="ℊ",Jx="≳",Kx="⪎",Qx="⪐",eb="⪧",tb="⩺",rb=">",ab=">",ib="≫",sb="⋗",nb="⦕",ob="⩼",lb="⪆",cb="⥸",hb="⋗",ub="⋛",db="⪌",fb="≷",gb="≳",pb="≩︀",mb="≩︀",xb="ˇ",bb=" ",vb="½",yb="ℋ",wb="Ъ",kb="ъ",Ab="⥈",Sb="↔",Cb="⇔",Mb="↭",zb="^",Tb="ℏ",Lb="Ĥ",Eb="ĥ",Db="♥",Pb="♥",Ib="…",Rb="⊹",Fb="𝔥",_b="ℌ",Bb="ℋ",Nb="⤥",Ob="⤦",Hb="⇿",Xb="∻",Yb="↩",qb="↪",Vb="𝕙",Wb="ℍ",Gb="―",jb="─",Ub="𝒽",$b="ℋ",Zb="ℏ",Jb="Ħ",Kb="ħ",Qb="≎",ev="≏",tv="⁃",rv="‐",av="Í",iv="í",sv="",nv="Î",ov="î",lv="И",cv="и",hv="İ",uv="Е",dv="е",fv="¡",gv="⇔",pv="𝔦",mv="ℑ",xv="Ì",bv="ì",vv="ⅈ",yv="⨌",wv="∭",kv="⧜",Av="℩",Sv="IJ",Cv="ij",Mv="Ī",zv="ī",Tv="ℑ",Lv="ⅈ",Ev="ℐ",Dv="ℑ",Pv="ı",Iv="ℑ",Rv="⊷",Fv="Ƶ",_v="⇒",Bv="℅",Nv="∞",Ov="⧝",Hv="ı",Xv="⊺",Yv="∫",qv="∬",Vv="ℤ",Wv="∫",Gv="⊺",jv="⋂",Uv="⨗",$v="⨼",Zv="",Jv="",Kv="Ё",Qv="ё",e4="Į",t4="į",r4="𝕀",a4="𝕚",i4="Ι",s4="ι",n4="⨼",o4="¿",l4="𝒾",c4="ℐ",h4="∈",u4="⋵",d4="⋹",f4="⋴",g4="⋳",p4="∈",m4="",x4="Ĩ",b4="ĩ",v4="І",y4="і",w4="Ï",k4="ï",A4="Ĵ",S4="ĵ",C4="Й",M4="й",z4="𝔍",T4="𝔧",L4="ȷ",E4="𝕁",D4="𝕛",P4="𝒥",I4="𝒿",R4="Ј",F4="ј",_4="Є",B4="є",N4="Κ",O4="κ",H4="ϰ",X4="Ķ",Y4="ķ",q4="К",V4="к",W4="𝔎",G4="𝔨",j4="ĸ",U4="Х",$4="х",Z4="Ќ",J4="ќ",K4="𝕂",Q4="𝕜",ey="𝒦",ty="𝓀",ry="⇚",ay="Ĺ",iy="ĺ",sy="⦴",ny="ℒ",oy="Λ",ly="λ",cy="⟨",hy="⟪",uy="⦑",dy="⟨",fy="⪅",gy="ℒ",py="«",my="⇤",xy="⤟",by="←",vy="↞",yy="⇐",wy="⤝",ky="↩",Ay="↫",Sy="⤹",Cy="⥳",My="↢",zy="⤙",Ty="⤛",Ly="⪫",Ey="⪭",Dy="⪭︀",Py="⤌",Iy="⤎",Ry="❲",Fy="{",_y="[",By="⦋",Ny="⦏",Oy="⦍",Hy="Ľ",Xy="ľ",Yy="Ļ",qy="ļ",Vy="⌈",Wy="{",Gy="Л",jy="л",Uy="⤶",$y="“",Zy="„",Jy="⥧",Ky="⥋",Qy="↲",e2="≤",t2="≦",r2="⟨",a2="⇤",i2="←",s2="←",n2="⇐",o2="⇆",l2="↢",c2="⌈",h2="⟦",u2="⥡",d2="⥙",f2="⇃",g2="⌊",p2="↽",m2="↼",x2="⇇",b2="↔",v2="↔",y2="⇔",w2="⇆",k2="⇋",A2="↭",S2="⥎",C2="↤",M2="⊣",z2="⥚",T2="⋋",L2="⧏",E2="⊲",D2="⊴",P2="⥑",I2="⥠",R2="⥘",F2="↿",_2="⥒",B2="↼",N2="⪋",O2="⋚",H2="≤",X2="≦",Y2="⩽",q2="⪨",V2="⩽",W2="⩿",G2="⪁",j2="⪃",U2="⋚︀",$2="⪓",Z2="⪅",J2="⋖",K2="⋚",Q2="⪋",e5="⋚",t5="≦",r5="≶",a5="≶",i5="⪡",s5="≲",n5="⩽",o5="≲",l5="⥼",c5="⌊",h5="𝔏",u5="𝔩",d5="≶",f5="⪑",g5="⥢",p5="↽",m5="↼",x5="⥪",b5="▄",v5="Љ",y5="љ",w5="⇇",k5="≪",A5="⋘",S5="⌞",C5="⇚",M5="⥫",z5="◺",T5="Ŀ",L5="ŀ",E5="⎰",D5="⎰",P5="⪉",I5="⪉",R5="⪇",F5="≨",_5="⪇",B5="≨",N5="⋦",O5="⟬",H5="⇽",X5="⟦",Y5="⟵",q5="⟵",V5="⟸",W5="⟷",G5="⟷",j5="⟺",U5="⟼",$5="⟶",Z5="⟶",J5="⟹",K5="↫",Q5="↬",e3="⦅",t3="𝕃",r3="𝕝",a3="⨭",i3="⨴",s3="∗",n3="_",o3="↙",l3="↘",c3="◊",h3="◊",u3="⧫",d3="(",f3="⦓",g3="⇆",p3="⌟",m3="⇋",x3="⥭",b3="",v3="⊿",y3="‹",w3="𝓁",k3="ℒ",A3="↰",S3="↰",C3="≲",M3="⪍",z3="⪏",T3="[",L3="‘",E3="‚",D3="Ł",P3="ł",I3="⪦",R3="⩹",F3="<",_3="<",B3="≪",N3="⋖",O3="⋋",H3="⋉",X3="⥶",Y3="⩻",q3="◃",V3="⊴",W3="◂",G3="⦖",j3="⥊",U3="⥦",$3="≨︀",Z3="≨︀",J3="¯",K3="♂",Q3="✠",e6="✠",t6="↦",r6="↦",a6="↧",i6="↤",s6="↥",n6="▮",o6="⨩",l6="М",c6="м",h6="—",u6="∺",d6="∡",f6=" ",g6="ℳ",p6="𝔐",m6="𝔪",x6="℧",b6="µ",v6="*",y6="⫰",w6="∣",k6="·",A6="⊟",S6="−",C6="∸",M6="⨪",z6="∓",T6="⫛",L6="…",E6="∓",D6="⊧",P6="𝕄",I6="𝕞",R6="∓",F6="𝓂",_6="ℳ",B6="∾",N6="Μ",O6="μ",H6="⊸",X6="⊸",Y6="∇",q6="Ń",V6="ń",W6="∠⃒",G6="≉",j6="⩰̸",U6="≋̸",$6="ʼn",Z6="≉",J6="♮",K6="ℕ",Q6="♮",e7=" ",t7="≎̸",r7="≏̸",a7="⩃",i7="Ň",s7="ň",n7="Ņ",o7="ņ",l7="≇",c7="⩭̸",h7="⩂",u7="Н",d7="н",f7="–",g7="⤤",p7="↗",m7="⇗",x7="↗",b7="≠",v7="≐̸",y7="",w7="",k7="",A7="",S7="≢",C7="⤨",M7="≂̸",z7="≫",T7="≪",L7=`
|
|
15
|
+
`,E7="∄",D7="∄",P7="𝔑",I7="𝔫",R7="≧̸",F7="≱",_7="≱",B7="≧̸",N7="⩾̸",O7="⩾̸",H7="⋙̸",X7="≵",Y7="≫⃒",q7="≯",V7="≯",W7="≫̸",G7="↮",j7="⇎",U7="⫲",$7="∋",Z7="⋼",J7="⋺",K7="∋",Q7="Њ",ew="њ",tw="↚",rw="⇍",aw="‥",iw="≦̸",sw="≰",nw="↚",ow="⇍",lw="↮",cw="⇎",hw="≰",uw="≦̸",dw="⩽̸",fw="⩽̸",gw="≮",pw="⋘̸",mw="≴",xw="≪⃒",bw="≮",vw="⋪",yw="⋬",ww="≪̸",kw="∤",Aw="",Sw=" ",Cw="𝕟",Mw="ℕ",zw="⫬",Tw="¬",Lw="≢",Ew="≭",Dw="∦",Pw="∉",Iw="≠",Rw="≂̸",Fw="∄",_w="≯",Bw="≱",Nw="≧̸",Ow="≫̸",Hw="≹",Xw="⩾̸",Yw="≵",qw="≎̸",Vw="≏̸",Ww="∉",Gw="⋵̸",jw="⋹̸",Uw="∉",$w="⋷",Zw="⋶",Jw="⧏̸",Kw="⋪",Qw="⋬",e8="≮",t8="≰",r8="≸",a8="≪̸",i8="⩽̸",s8="≴",n8="⪢̸",o8="⪡̸",l8="∌",c8="∌",h8="⋾",u8="⋽",d8="⊀",f8="⪯̸",g8="⋠",p8="∌",m8="⧐̸",x8="⋫",b8="⋭",v8="⊏̸",y8="⋢",w8="⊐̸",k8="⋣",A8="⊂⃒",S8="⊈",C8="⊁",M8="⪰̸",z8="⋡",T8="≿̸",L8="⊃⃒",E8="⊉",D8="≁",P8="≄",I8="≇",R8="≉",F8="∤",_8="∦",B8="∦",N8="⫽⃥",O8="∂̸",H8="⨔",X8="⊀",Y8="⋠",q8="⊀",V8="⪯̸",W8="⪯̸",G8="⤳̸",j8="↛",U8="⇏",$8="↝̸",Z8="↛",J8="⇏",K8="⋫",Q8="⋭",e9="⊁",t9="⋡",r9="⪰̸",a9="𝒩",i9="𝓃",s9="∤",n9="∦",o9="≁",l9="≄",c9="≄",h9="∤",u9="∦",d9="⋢",f9="⋣",g9="⊄",p9="⫅̸",m9="⊈",x9="⊂⃒",b9="⊈",v9="⫅̸",y9="⊁",w9="⪰̸",k9="⊅",A9="⫆̸",S9="⊉",C9="⊃⃒",M9="⊉",z9="⫆̸",T9="≹",L9="Ñ",E9="ñ",D9="≸",P9="⋪",I9="⋬",R9="⋫",F9="⋭",_9="Ν",B9="ν",N9="#",O9="№",H9=" ",X9="≍⃒",Y9="⊬",q9="⊭",V9="⊮",W9="⊯",G9="≥⃒",j9=">⃒",U9="⤄",$9="⧞",Z9="⤂",J9="≤⃒",K9="<⃒",Q9="⊴⃒",ek="⤃",tk="⊵⃒",rk="∼⃒",ak="⤣",ik="↖",sk="⇖",nk="↖",ok="⤧",lk="Ó",ck="ó",hk="⊛",uk="Ô",dk="ô",fk="⊚",gk="О",pk="о",mk="⊝",xk="Ő",bk="ő",vk="⨸",yk="⊙",wk="⦼",kk="Œ",Ak="œ",Sk="⦿",Ck="𝔒",Mk="𝔬",zk="˛",Tk="Ò",Lk="ò",Ek="⧁",Dk="⦵",Pk="Ω",Ik="∮",Rk="↺",Fk="⦾",_k="⦻",Bk="‾",Nk="⧀",Ok="Ō",Hk="ō",Xk="Ω",Yk="ω",qk="Ο",Vk="ο",Wk="⦶",Gk="⊖",jk="𝕆",Uk="𝕠",$k="⦷",Zk="“",Jk="‘",Kk="⦹",Qk="⊕",eA="↻",tA="⩔",rA="∨",aA="⩝",iA="ℴ",sA="ℴ",nA="ª",oA="º",lA="⊶",cA="⩖",hA="⩗",uA="⩛",dA="Ⓢ",fA="𝒪",gA="ℴ",pA="Ø",mA="ø",xA="⊘",bA="Õ",vA="õ",yA="⨶",wA="⨷",kA="⊗",AA="Ö",SA="ö",CA="⌽",MA="‾",zA="⏞",TA="⎴",LA="⏜",EA="¶",DA="∥",PA="∥",IA="⫳",RA="⫽",FA="∂",_A="∂",BA="П",NA="п",OA="%",HA=".",XA="‰",YA="⊥",qA="‱",VA="𝔓",WA="𝔭",GA="Φ",jA="φ",UA="ϕ",$A="ℳ",ZA="☎",JA="Π",KA="π",QA="⋔",eS="ϖ",tS="ℏ",rS="ℎ",aS="ℏ",iS="⨣",sS="⊞",nS="⨢",oS="+",lS="∔",cS="⨥",hS="⩲",uS="±",dS="±",fS="⨦",gS="⨧",pS="±",mS="ℌ",xS="⨕",bS="𝕡",vS="ℙ",yS="£",wS="⪷",kS="⪻",AS="≺",SS="≼",CS="⪷",MS="≺",zS="≼",TS="≺",LS="⪯",ES="≼",DS="≾",PS="⪯",IS="⪹",RS="⪵",FS="⋨",_S="⪯",BS="⪳",NS="≾",OS="′",HS="″",XS="ℙ",YS="⪹",qS="⪵",VS="⋨",WS="∏",GS="∏",jS="⌮",US="⌒",$S="⌓",ZS="∝",JS="∝",KS="∷",QS="∝",eC="≾",tC="⊰",rC="𝒫",aC="𝓅",iC="Ψ",sC="ψ",nC=" ",oC="𝔔",lC="𝔮",cC="⨌",hC="𝕢",uC="ℚ",dC="⁗",fC="𝒬",gC="𝓆",pC="ℍ",mC="⨖",xC="?",bC="≟",vC='"',yC='"',wC="⇛",kC="∽̱",AC="Ŕ",SC="ŕ",CC="√",MC="⦳",zC="⟩",TC="⟫",LC="⦒",EC="⦥",DC="⟩",PC="»",IC="⥵",RC="⇥",FC="⤠",_C="⤳",BC="→",NC="↠",OC="⇒",HC="⤞",XC="↪",YC="↬",qC="⥅",VC="⥴",WC="⤖",GC="↣",jC="↝",UC="⤚",$C="⤜",ZC="∶",JC="ℚ",KC="⤍",QC="⤏",eM="⤐",tM="❳",rM="}",aM="]",iM="⦌",sM="⦎",nM="⦐",oM="Ř",lM="ř",cM="Ŗ",hM="ŗ",uM="⌉",dM="}",fM="Р",gM="р",pM="⤷",mM="⥩",xM="”",bM="”",vM="↳",yM="ℜ",wM="ℛ",kM="ℜ",AM="ℝ",SM="ℜ",CM="▭",MM="®",zM="®",TM="∋",LM="⇋",EM="⥯",DM="⥽",PM="⌋",IM="𝔯",RM="ℜ",FM="⥤",_M="⇁",BM="⇀",NM="⥬",OM="Ρ",HM="ρ",XM="ϱ",YM="⟩",qM="⇥",VM="→",WM="→",GM="⇒",jM="⇄",UM="↣",$M="⌉",ZM="⟧",JM="⥝",KM="⥕",QM="⇂",ez="⌋",tz="⇁",rz="⇀",az="⇄",iz="⇌",sz="⇉",nz="↝",oz="↦",lz="⊢",cz="⥛",hz="⋌",uz="⧐",dz="⊳",fz="⊵",gz="⥏",pz="⥜",mz="⥔",xz="↾",bz="⥓",vz="⇀",yz="˚",wz="≓",kz="⇄",Az="⇌",Sz="",Cz="⎱",Mz="⎱",zz="⫮",Tz="⟭",Lz="⇾",Ez="⟧",Dz="⦆",Pz="𝕣",Iz="ℝ",Rz="⨮",Fz="⨵",_z="⥰",Bz=")",Nz="⦔",Oz="⨒",Hz="⇉",Xz="⇛",Yz="›",qz="𝓇",Vz="ℛ",Wz="↱",Gz="↱",jz="]",Uz="’",$z="’",Zz="⋌",Jz="⋊",Kz="▹",Qz="⊵",eT="▸",tT="⧎",rT="⧴",aT="⥨",iT="℞",sT="Ś",nT="ś",oT="‚",lT="⪸",cT="Š",hT="š",uT="⪼",dT="≻",fT="≽",gT="⪰",pT="⪴",mT="Ş",xT="ş",bT="Ŝ",vT="ŝ",yT="⪺",wT="⪶",kT="⋩",AT="⨓",ST="≿",CT="С",MT="с",zT="⊡",TT="⋅",LT="⩦",ET="⤥",DT="↘",PT="⇘",IT="↘",RT="§",FT=";",_T="⤩",BT="∖",NT="∖",OT="✶",HT="𝔖",XT="𝔰",YT="⌢",qT="♯",VT="Щ",WT="щ",GT="Ш",jT="ш",UT="↓",$T="←",ZT="∣",JT="∥",KT="→",QT="↑",eL="",tL="Σ",rL="σ",aL="ς",iL="ς",sL="∼",nL="⩪",oL="≃",lL="≃",cL="⪞",hL="⪠",uL="⪝",dL="⪟",fL="≆",gL="⨤",pL="⥲",mL="←",xL="∘",bL="∖",vL="⨳",yL="⧤",wL="∣",kL="⌣",AL="⪪",SL="⪬",CL="⪬︀",ML="Ь",zL="ь",TL="⌿",LL="⧄",EL="/",DL="𝕊",PL="𝕤",IL="♠",RL="♠",FL="∥",_L="⊓",BL="⊓︀",NL="⊔",OL="⊔︀",HL="√",XL="⊏",YL="⊑",qL="⊏",VL="⊑",WL="⊐",GL="⊒",jL="⊐",UL="⊒",$L="□",ZL="□",JL="⊓",KL="⊏",QL="⊑",eE="⊐",tE="⊒",rE="⊔",aE="▪",iE="□",sE="▪",nE="→",oE="𝒮",lE="𝓈",cE="∖",hE="⌣",uE="⋆",dE="⋆",fE="☆",gE="★",pE="ϵ",mE="ϕ",xE="¯",bE="⊂",vE="⋐",yE="⪽",wE="⫅",kE="⊆",AE="⫃",SE="⫁",CE="⫋",ME="⊊",zE="⪿",TE="⥹",LE="⊂",EE="⋐",DE="⊆",PE="⫅",IE="⊆",RE="⊊",FE="⫋",_E="⫇",BE="⫕",NE="⫓",OE="⪸",HE="≻",XE="≽",YE="≻",qE="⪰",VE="≽",WE="≿",GE="⪰",jE="⪺",UE="⪶",$E="⋩",ZE="≿",JE="∋",KE="∑",QE="∑",eD="♪",tD="¹",rD="²",aD="³",iD="⊃",sD="⋑",nD="⪾",oD="⫘",lD="⫆",cD="⊇",hD="⫄",uD="⊃",dD="⊇",fD="⟉",gD="⫗",pD="⥻",mD="⫂",xD="⫌",bD="⊋",vD="⫀",yD="⊃",wD="⋑",kD="⊇",AD="⫆",SD="⊋",CD="⫌",MD="⫈",zD="⫔",TD="⫖",LD="⤦",ED="↙",DD="⇙",PD="↙",ID="⤪",RD="ß",FD=" ",_D="⌖",BD="Τ",ND="τ",OD="⎴",HD="Ť",XD="ť",YD="Ţ",qD="ţ",VD="Т",WD="т",GD="⃛",jD="⌕",UD="𝔗",$D="𝔱",ZD="∴",JD="∴",KD="∴",QD="Θ",eP="θ",tP="ϑ",rP="ϑ",aP="≈",iP="∼",sP=" ",nP=" ",oP=" ",lP="≈",cP="∼",hP="Þ",uP="þ",dP="˜",fP="∼",gP="≃",pP="≅",mP="≈",xP="⨱",bP="⊠",vP="×",yP="⨰",wP="∭",kP="⤨",AP="⌶",SP="⫱",CP="⊤",MP="𝕋",zP="𝕥",TP="⫚",LP="⤩",EP="‴",DP="™",PP="™",IP="▵",RP="▿",FP="◃",_P="⊴",BP="≜",NP="▹",OP="⊵",HP="◬",XP="≜",YP="⨺",qP="⃛",VP="⨹",WP="⧍",GP="⨻",jP="⏢",UP="𝒯",$P="𝓉",ZP="Ц",JP="ц",KP="Ћ",QP="ћ",eI="Ŧ",tI="ŧ",rI="≬",aI="↞",iI="↠",sI="Ú",nI="ú",oI="↑",lI="↟",cI="⇑",hI="⥉",uI="Ў",dI="ў",fI="Ŭ",gI="ŭ",pI="Û",mI="û",xI="У",bI="у",vI="⇅",yI="Ű",wI="ű",kI="⥮",AI="⥾",SI="𝔘",CI="𝔲",MI="Ù",zI="ù",TI="⥣",LI="↿",EI="↾",DI="▀",PI="⌜",II="⌜",RI="⌏",FI="◸",_I="Ū",BI="ū",NI="¨",OI="_",HI="⏟",XI="⎵",YI="⏝",qI="⋃",VI="⊎",WI="Ų",GI="ų",jI="𝕌",UI="𝕦",$I="⤒",ZI="↑",JI="↑",KI="⇑",QI="⇅",eR="↕",tR="↕",rR="⇕",aR="⥮",iR="↿",sR="↾",nR="⊎",oR="↖",lR="↗",cR="υ",hR="ϒ",uR="ϒ",dR="Υ",fR="υ",gR="↥",pR="⊥",mR="⇈",xR="⌝",bR="⌝",vR="⌎",yR="Ů",wR="ů",kR="◹",AR="𝒰",SR="𝓊",CR="⋰",MR="Ũ",zR="ũ",TR="▵",LR="▴",ER="⇈",DR="Ü",PR="ü",IR="⦧",RR="⦜",FR="ϵ",_R="ϰ",BR="∅",NR="ϕ",OR="ϖ",HR="∝",XR="↕",YR="⇕",qR="ϱ",VR="ς",WR="⊊︀",GR="⫋︀",jR="⊋︀",UR="⫌︀",$R="ϑ",ZR="⊲",JR="⊳",KR="⫨",QR="⫫",eF="⫩",tF="В",rF="в",aF="⊢",iF="⊨",sF="⊩",nF="⊫",oF="⫦",lF="⊻",cF="∨",hF="⋁",uF="≚",dF="⋮",fF="|",gF="‖",pF="|",mF="‖",xF="∣",bF="|",vF="❘",yF="≀",wF=" ",kF="𝔙",AF="𝔳",SF="⊲",CF="⊂⃒",MF="⊃⃒",zF="𝕍",TF="𝕧",LF="∝",EF="⊳",DF="𝒱",PF="𝓋",IF="⫋︀",RF="⊊︀",FF="⫌︀",_F="⊋︀",BF="⊪",NF="⦚",OF="Ŵ",HF="ŵ",XF="⩟",YF="∧",qF="⋀",VF="≙",WF="℘",GF="𝔚",jF="𝔴",UF="𝕎",$F="𝕨",ZF="℘",JF="≀",KF="≀",QF="𝒲",e_="𝓌",t_="⋂",r_="◯",a_="⋃",i_="▽",s_="𝔛",n_="𝔵",o_="⟷",l_="⟺",c_="Ξ",h_="ξ",u_="⟵",d_="⟸",f_="⟼",g_="⋻",p_="⨀",m_="𝕏",x_="𝕩",b_="⨁",v_="⨂",y_="⟶",w_="⟹",k_="𝒳",A_="𝓍",S_="⨆",C_="⨄",M_="△",z_="⋁",T_="⋀",L_="Ý",E_="ý",D_="Я",P_="я",I_="Ŷ",R_="ŷ",F_="Ы",__="ы",B_="¥",N_="𝔜",O_="𝔶",H_="Ї",X_="ї",Y_="𝕐",q_="𝕪",V_="𝒴",W_="𝓎",G_="Ю",j_="ю",U_="ÿ",$_="Ÿ",Z_="Ź",J_="ź",K_="Ž",Q_="ž",eB="З",tB="з",rB="Ż",aB="ż",iB="ℨ",sB="",nB="Ζ",oB="ζ",lB="𝔷",cB="ℨ",hB="Ж",uB="ж",dB="⇝",fB="𝕫",gB="ℤ",pB="𝒵",mB="𝓏",xB="",bB="",vB={Aacute:tl,aacute:rl,Abreve:al,abreve:il,ac:sl,acd:nl,acE:ol,Acirc:ll,acirc:cl,acute:hl,Acy:ul,acy:dl,AElig:fl,aelig:gl,af:pl,Afr:ml,afr:xl,Agrave:bl,agrave:vl,alefsym:yl,aleph:wl,Alpha:kl,alpha:Al,Amacr:Sl,amacr:Cl,amalg:Ml,amp:zl,AMP:Tl,andand:Ll,And:El,and:Dl,andd:Pl,andslope:Il,andv:Rl,ang:Fl,ange:_l,angle:Bl,angmsdaa:Nl,angmsdab:Ol,angmsdac:Hl,angmsdad:Xl,angmsdae:Yl,angmsdaf:ql,angmsdag:Vl,angmsdah:Wl,angmsd:Gl,angrt:jl,angrtvb:Ul,angrtvbd:$l,angsph:Zl,angst:Jl,angzarr:Kl,Aogon:Ql,aogon:e0,Aopf:t0,aopf:r0,apacir:a0,ap:i0,apE:s0,ape:n0,apid:o0,apos:l0,ApplyFunction:c0,approx:h0,approxeq:u0,Aring:d0,aring:f0,Ascr:g0,ascr:p0,Assign:m0,ast:x0,asymp:b0,asympeq:v0,Atilde:y0,atilde:w0,Auml:k0,auml:A0,awconint:S0,awint:C0,backcong:M0,backepsilon:z0,backprime:T0,backsim:L0,backsimeq:E0,Backslash:D0,Barv:P0,barvee:I0,barwed:R0,Barwed:F0,barwedge:_0,bbrk:B0,bbrktbrk:N0,bcong:O0,Bcy:H0,bcy:X0,bdquo:Y0,becaus:q0,because:V0,Because:W0,bemptyv:G0,bepsi:j0,bernou:U0,Bernoullis:$0,Beta:Z0,beta:J0,beth:K0,between:Q0,Bfr:ec,bfr:tc,bigcap:rc,bigcirc:ac,bigcup:ic,bigodot:sc,bigoplus:nc,bigotimes:oc,bigsqcup:lc,bigstar:cc,bigtriangledown:hc,bigtriangleup:uc,biguplus:dc,bigvee:fc,bigwedge:gc,bkarow:pc,blacklozenge:mc,blacksquare:xc,blacktriangle:bc,blacktriangledown:vc,blacktriangleleft:yc,blacktriangleright:wc,blank:kc,blk12:Ac,blk14:Sc,blk34:Cc,block:Mc,bne:zc,bnequiv:Tc,bNot:Lc,bnot:Ec,Bopf:Dc,bopf:Pc,bot:Ic,bottom:Rc,bowtie:Fc,boxbox:_c,boxdl:Bc,boxdL:Nc,boxDl:Oc,boxDL:Hc,boxdr:Xc,boxdR:Yc,boxDr:qc,boxDR:Vc,boxh:Wc,boxH:Gc,boxhd:jc,boxHd:Uc,boxhD:$c,boxHD:Zc,boxhu:Jc,boxHu:Kc,boxhU:Qc,boxHU:eh,boxminus:th,boxplus:rh,boxtimes:ah,boxul:ih,boxuL:sh,boxUl:nh,boxUL:oh,boxur:lh,boxuR:ch,boxUr:hh,boxUR:uh,boxv:dh,boxV:fh,boxvh:gh,boxvH:ph,boxVh:mh,boxVH:xh,boxvl:bh,boxvL:vh,boxVl:yh,boxVL:wh,boxvr:kh,boxvR:Ah,boxVr:Sh,boxVR:Ch,bprime:Mh,breve:zh,Breve:Th,brvbar:Lh,bscr:Eh,Bscr:Dh,bsemi:Ph,bsim:Ih,bsime:Rh,bsolb:Fh,bsol:_h,bsolhsub:Bh,bull:Nh,bullet:Oh,bump:Hh,bumpE:Xh,bumpe:Yh,Bumpeq:qh,bumpeq:Vh,Cacute:Wh,cacute:Gh,capand:jh,capbrcup:Uh,capcap:$h,cap:Zh,Cap:Jh,capcup:Kh,capdot:Qh,CapitalDifferentialD:eu,caps:tu,caret:ru,caron:au,Cayleys:iu,ccaps:su,Ccaron:nu,ccaron:ou,Ccedil:lu,ccedil:cu,Ccirc:hu,ccirc:uu,Cconint:du,ccups:fu,ccupssm:gu,Cdot:pu,cdot:mu,cedil:xu,Cedilla:bu,cemptyv:vu,cent:yu,centerdot:wu,CenterDot:ku,cfr:Au,Cfr:Su,CHcy:Cu,chcy:Mu,check:zu,checkmark:Tu,Chi:Lu,chi:Eu,circ:Du,circeq:Pu,circlearrowleft:Iu,circlearrowright:Ru,circledast:Fu,circledcirc:_u,circleddash:Bu,CircleDot:Nu,circledR:Ou,circledS:Hu,CircleMinus:Xu,CirclePlus:Yu,CircleTimes:qu,cir:Vu,cirE:Wu,cire:Gu,cirfnint:ju,cirmid:Uu,cirscir:$u,ClockwiseContourIntegral:Zu,CloseCurlyDoubleQuote:Ju,CloseCurlyQuote:Ku,clubs:Qu,clubsuit:ed,colon:td,Colon:rd,Colone:ad,colone:id,coloneq:sd,comma:nd,commat:od,comp:ld,compfn:cd,complement:hd,complexes:ud,cong:dd,congdot:fd,Congruent:gd,conint:pd,Conint:md,ContourIntegral:xd,copf:bd,Copf:vd,coprod:yd,Coproduct:wd,copy:kd,COPY:Ad,copysr:Sd,CounterClockwiseContourIntegral:Cd,crarr:Md,cross:zd,Cross:Td,Cscr:Ld,cscr:Ed,csub:Dd,csube:Pd,csup:Id,csupe:Rd,ctdot:Fd,cudarrl:_d,cudarrr:Bd,cuepr:Nd,cuesc:Od,cularr:Hd,cularrp:Xd,cupbrcap:Yd,cupcap:qd,CupCap:Vd,cup:Wd,Cup:Gd,cupcup:jd,cupdot:Ud,cupor:$d,cups:Zd,curarr:Jd,curarrm:Kd,curlyeqprec:Qd,curlyeqsucc:ef,curlyvee:tf,curlywedge:rf,curren:af,curvearrowleft:sf,curvearrowright:nf,cuvee:of,cuwed:lf,cwconint:cf,cwint:hf,cylcty:uf,dagger:df,Dagger:ff,daleth:gf,darr:pf,Darr:mf,dArr:xf,dash:bf,Dashv:vf,dashv:yf,dbkarow:wf,dblac:kf,Dcaron:Af,dcaron:Sf,Dcy:Cf,dcy:Mf,ddagger:zf,ddarr:Tf,DD:Lf,dd:Ef,DDotrahd:Df,ddotseq:Pf,deg:If,Del:Rf,Delta:Ff,delta:_f,demptyv:Bf,dfisht:Nf,Dfr:Of,dfr:Hf,dHar:Xf,dharl:Yf,dharr:qf,DiacriticalAcute:Vf,DiacriticalDot:Wf,DiacriticalDoubleAcute:Gf,DiacriticalGrave:jf,DiacriticalTilde:Uf,diam:$f,diamond:Zf,Diamond:Jf,diamondsuit:Kf,diams:Qf,die:eg,DifferentialD:tg,digamma:rg,disin:ag,div:ig,divide:sg,divideontimes:ng,divonx:og,DJcy:lg,djcy:cg,dlcorn:hg,dlcrop:ug,dollar:dg,Dopf:fg,dopf:gg,Dot:pg,dot:mg,DotDot:xg,doteq:bg,doteqdot:vg,DotEqual:yg,dotminus:wg,dotplus:kg,dotsquare:Ag,doublebarwedge:Sg,DoubleContourIntegral:Cg,DoubleDot:Mg,DoubleDownArrow:zg,DoubleLeftArrow:Tg,DoubleLeftRightArrow:Lg,DoubleLeftTee:Eg,DoubleLongLeftArrow:Dg,DoubleLongLeftRightArrow:Pg,DoubleLongRightArrow:Ig,DoubleRightArrow:Rg,DoubleRightTee:Fg,DoubleUpArrow:_g,DoubleUpDownArrow:Bg,DoubleVerticalBar:Ng,DownArrowBar:Og,downarrow:Hg,DownArrow:Xg,Downarrow:Yg,DownArrowUpArrow:qg,DownBreve:Vg,downdownarrows:Wg,downharpoonleft:Gg,downharpoonright:jg,DownLeftRightVector:Ug,DownLeftTeeVector:$g,DownLeftVectorBar:Zg,DownLeftVector:Jg,DownRightTeeVector:Kg,DownRightVectorBar:Qg,DownRightVector:ep,DownTeeArrow:tp,DownTee:rp,drbkarow:ap,drcorn:ip,drcrop:sp,Dscr:np,dscr:op,DScy:lp,dscy:cp,dsol:hp,Dstrok:up,dstrok:dp,dtdot:fp,dtri:gp,dtrif:pp,duarr:mp,duhar:xp,dwangle:bp,DZcy:vp,dzcy:yp,dzigrarr:wp,Eacute:kp,eacute:Ap,easter:Sp,Ecaron:Cp,ecaron:Mp,Ecirc:zp,ecirc:Tp,ecir:Lp,ecolon:Ep,Ecy:Dp,ecy:Pp,eDDot:Ip,Edot:Rp,edot:Fp,eDot:_p,ee:Bp,efDot:Np,Efr:Op,efr:Hp,eg:Xp,Egrave:Yp,egrave:qp,egs:Vp,egsdot:Wp,el:Gp,Element:jp,elinters:Up,ell:$p,els:Zp,elsdot:Jp,Emacr:Kp,emacr:Qp,empty:e1,emptyset:t1,EmptySmallSquare:r1,emptyv:a1,EmptyVerySmallSquare:i1,emsp13:s1,emsp14:n1,emsp:o1,ENG:l1,eng:c1,ensp:h1,Eogon:u1,eogon:d1,Eopf:f1,eopf:g1,epar:p1,eparsl:m1,eplus:x1,epsi:b1,Epsilon:v1,epsilon:y1,epsiv:w1,eqcirc:k1,eqcolon:A1,eqsim:S1,eqslantgtr:C1,eqslantless:M1,Equal:z1,equals:T1,EqualTilde:L1,equest:E1,Equilibrium:D1,equiv:P1,equivDD:I1,eqvparsl:R1,erarr:F1,erDot:_1,escr:B1,Escr:N1,esdot:O1,Esim:H1,esim:X1,Eta:Y1,eta:q1,ETH:V1,eth:W1,Euml:G1,euml:j1,euro:U1,excl:$1,exist:Z1,Exists:J1,expectation:K1,exponentiale:Q1,ExponentialE:em,fallingdotseq:tm,Fcy:rm,fcy:am,female:im,ffilig:sm,fflig:nm,ffllig:om,Ffr:lm,ffr:cm,filig:hm,FilledSmallSquare:um,FilledVerySmallSquare:dm,fjlig:fm,flat:gm,fllig:pm,fltns:mm,fnof:xm,Fopf:bm,fopf:vm,forall:ym,ForAll:wm,fork:km,forkv:Am,Fouriertrf:Sm,fpartint:Cm,frac12:Mm,frac13:zm,frac14:Tm,frac15:Lm,frac16:Em,frac18:Dm,frac23:Pm,frac25:Im,frac34:Rm,frac35:Fm,frac38:_m,frac45:Bm,frac56:Nm,frac58:Om,frac78:Hm,frasl:Xm,frown:Ym,fscr:qm,Fscr:Vm,gacute:Wm,Gamma:Gm,gamma:jm,Gammad:Um,gammad:$m,gap:Zm,Gbreve:Jm,gbreve:Km,Gcedil:Qm,Gcirc:ex,gcirc:tx,Gcy:rx,gcy:ax,Gdot:ix,gdot:sx,ge:nx,gE:ox,gEl:lx,gel:cx,geq:hx,geqq:ux,geqslant:dx,gescc:fx,ges:gx,gesdot:px,gesdoto:mx,gesdotol:xx,gesl:bx,gesles:vx,Gfr:yx,gfr:wx,gg:kx,Gg:Ax,ggg:Sx,gimel:Cx,GJcy:Mx,gjcy:zx,gla:Tx,gl:Lx,glE:Ex,glj:Dx,gnap:Px,gnapprox:Ix,gne:Rx,gnE:Fx,gneq:_x,gneqq:Bx,gnsim:Nx,Gopf:Ox,gopf:Hx,grave:Xx,GreaterEqual:Yx,GreaterEqualLess:qx,GreaterFullEqual:Vx,GreaterGreater:Wx,GreaterLess:Gx,GreaterSlantEqual:jx,GreaterTilde:Ux,Gscr:$x,gscr:Zx,gsim:Jx,gsime:Kx,gsiml:Qx,gtcc:eb,gtcir:tb,gt:rb,GT:ab,Gt:ib,gtdot:sb,gtlPar:nb,gtquest:ob,gtrapprox:lb,gtrarr:cb,gtrdot:hb,gtreqless:ub,gtreqqless:db,gtrless:fb,gtrsim:gb,gvertneqq:pb,gvnE:mb,Hacek:xb,hairsp:bb,half:vb,hamilt:yb,HARDcy:wb,hardcy:kb,harrcir:Ab,harr:Sb,hArr:Cb,harrw:Mb,Hat:zb,hbar:Tb,Hcirc:Lb,hcirc:Eb,hearts:Db,heartsuit:Pb,hellip:Ib,hercon:Rb,hfr:Fb,Hfr:_b,HilbertSpace:Bb,hksearow:Nb,hkswarow:Ob,hoarr:Hb,homtht:Xb,hookleftarrow:Yb,hookrightarrow:qb,hopf:Vb,Hopf:Wb,horbar:Gb,HorizontalLine:jb,hscr:Ub,Hscr:$b,hslash:Zb,Hstrok:Jb,hstrok:Kb,HumpDownHump:Qb,HumpEqual:ev,hybull:tv,hyphen:rv,Iacute:av,iacute:iv,ic:sv,Icirc:nv,icirc:ov,Icy:lv,icy:cv,Idot:hv,IEcy:uv,iecy:dv,iexcl:fv,iff:gv,ifr:pv,Ifr:mv,Igrave:xv,igrave:bv,ii:vv,iiiint:yv,iiint:wv,iinfin:kv,iiota:Av,IJlig:Sv,ijlig:Cv,Imacr:Mv,imacr:zv,image:Tv,ImaginaryI:Lv,imagline:Ev,imagpart:Dv,imath:Pv,Im:Iv,imof:Rv,imped:Fv,Implies:_v,incare:Bv,in:"∈",infin:Nv,infintie:Ov,inodot:Hv,intcal:Xv,int:Yv,Int:qv,integers:Vv,Integral:Wv,intercal:Gv,Intersection:jv,intlarhk:Uv,intprod:$v,InvisibleComma:Zv,InvisibleTimes:Jv,IOcy:Kv,iocy:Qv,Iogon:e4,iogon:t4,Iopf:r4,iopf:a4,Iota:i4,iota:s4,iprod:n4,iquest:o4,iscr:l4,Iscr:c4,isin:h4,isindot:u4,isinE:d4,isins:f4,isinsv:g4,isinv:p4,it:m4,Itilde:x4,itilde:b4,Iukcy:v4,iukcy:y4,Iuml:w4,iuml:k4,Jcirc:A4,jcirc:S4,Jcy:C4,jcy:M4,Jfr:z4,jfr:T4,jmath:L4,Jopf:E4,jopf:D4,Jscr:P4,jscr:I4,Jsercy:R4,jsercy:F4,Jukcy:_4,jukcy:B4,Kappa:N4,kappa:O4,kappav:H4,Kcedil:X4,kcedil:Y4,Kcy:q4,kcy:V4,Kfr:W4,kfr:G4,kgreen:j4,KHcy:U4,khcy:$4,KJcy:Z4,kjcy:J4,Kopf:K4,kopf:Q4,Kscr:ey,kscr:ty,lAarr:ry,Lacute:ay,lacute:iy,laemptyv:sy,lagran:ny,Lambda:oy,lambda:ly,lang:cy,Lang:hy,langd:uy,langle:dy,lap:fy,Laplacetrf:gy,laquo:py,larrb:my,larrbfs:xy,larr:by,Larr:vy,lArr:yy,larrfs:wy,larrhk:ky,larrlp:Ay,larrpl:Sy,larrsim:Cy,larrtl:My,latail:zy,lAtail:Ty,lat:Ly,late:Ey,lates:Dy,lbarr:Py,lBarr:Iy,lbbrk:Ry,lbrace:Fy,lbrack:_y,lbrke:By,lbrksld:Ny,lbrkslu:Oy,Lcaron:Hy,lcaron:Xy,Lcedil:Yy,lcedil:qy,lceil:Vy,lcub:Wy,Lcy:Gy,lcy:jy,ldca:Uy,ldquo:$y,ldquor:Zy,ldrdhar:Jy,ldrushar:Ky,ldsh:Qy,le:e2,lE:t2,LeftAngleBracket:r2,LeftArrowBar:a2,leftarrow:i2,LeftArrow:s2,Leftarrow:n2,LeftArrowRightArrow:o2,leftarrowtail:l2,LeftCeiling:c2,LeftDoubleBracket:h2,LeftDownTeeVector:u2,LeftDownVectorBar:d2,LeftDownVector:f2,LeftFloor:g2,leftharpoondown:p2,leftharpoonup:m2,leftleftarrows:x2,leftrightarrow:b2,LeftRightArrow:v2,Leftrightarrow:y2,leftrightarrows:w2,leftrightharpoons:k2,leftrightsquigarrow:A2,LeftRightVector:S2,LeftTeeArrow:C2,LeftTee:M2,LeftTeeVector:z2,leftthreetimes:T2,LeftTriangleBar:L2,LeftTriangle:E2,LeftTriangleEqual:D2,LeftUpDownVector:P2,LeftUpTeeVector:I2,LeftUpVectorBar:R2,LeftUpVector:F2,LeftVectorBar:_2,LeftVector:B2,lEg:N2,leg:O2,leq:H2,leqq:X2,leqslant:Y2,lescc:q2,les:V2,lesdot:W2,lesdoto:G2,lesdotor:j2,lesg:U2,lesges:$2,lessapprox:Z2,lessdot:J2,lesseqgtr:K2,lesseqqgtr:Q2,LessEqualGreater:e5,LessFullEqual:t5,LessGreater:r5,lessgtr:a5,LessLess:i5,lesssim:s5,LessSlantEqual:n5,LessTilde:o5,lfisht:l5,lfloor:c5,Lfr:h5,lfr:u5,lg:d5,lgE:f5,lHar:g5,lhard:p5,lharu:m5,lharul:x5,lhblk:b5,LJcy:v5,ljcy:y5,llarr:w5,ll:k5,Ll:A5,llcorner:S5,Lleftarrow:C5,llhard:M5,lltri:z5,Lmidot:T5,lmidot:L5,lmoustache:E5,lmoust:D5,lnap:P5,lnapprox:I5,lne:R5,lnE:F5,lneq:_5,lneqq:B5,lnsim:N5,loang:O5,loarr:H5,lobrk:X5,longleftarrow:Y5,LongLeftArrow:q5,Longleftarrow:V5,longleftrightarrow:W5,LongLeftRightArrow:G5,Longleftrightarrow:j5,longmapsto:U5,longrightarrow:$5,LongRightArrow:Z5,Longrightarrow:J5,looparrowleft:K5,looparrowright:Q5,lopar:e3,Lopf:t3,lopf:r3,loplus:a3,lotimes:i3,lowast:s3,lowbar:n3,LowerLeftArrow:o3,LowerRightArrow:l3,loz:c3,lozenge:h3,lozf:u3,lpar:d3,lparlt:f3,lrarr:g3,lrcorner:p3,lrhar:m3,lrhard:x3,lrm:b3,lrtri:v3,lsaquo:y3,lscr:w3,Lscr:k3,lsh:A3,Lsh:S3,lsim:C3,lsime:M3,lsimg:z3,lsqb:T3,lsquo:L3,lsquor:E3,Lstrok:D3,lstrok:P3,ltcc:I3,ltcir:R3,lt:F3,LT:_3,Lt:B3,ltdot:N3,lthree:O3,ltimes:H3,ltlarr:X3,ltquest:Y3,ltri:q3,ltrie:V3,ltrif:W3,ltrPar:G3,lurdshar:j3,luruhar:U3,lvertneqq:$3,lvnE:Z3,macr:J3,male:K3,malt:Q3,maltese:e6,Map:"⤅",map:t6,mapsto:r6,mapstodown:a6,mapstoleft:i6,mapstoup:s6,marker:n6,mcomma:o6,Mcy:l6,mcy:c6,mdash:h6,mDDot:u6,measuredangle:d6,MediumSpace:f6,Mellintrf:g6,Mfr:p6,mfr:m6,mho:x6,micro:b6,midast:v6,midcir:y6,mid:w6,middot:k6,minusb:A6,minus:S6,minusd:C6,minusdu:M6,MinusPlus:z6,mlcp:T6,mldr:L6,mnplus:E6,models:D6,Mopf:P6,mopf:I6,mp:R6,mscr:F6,Mscr:_6,mstpos:B6,Mu:N6,mu:O6,multimap:H6,mumap:X6,nabla:Y6,Nacute:q6,nacute:V6,nang:W6,nap:G6,napE:j6,napid:U6,napos:$6,napprox:Z6,natural:J6,naturals:K6,natur:Q6,nbsp:e7,nbump:t7,nbumpe:r7,ncap:a7,Ncaron:i7,ncaron:s7,Ncedil:n7,ncedil:o7,ncong:l7,ncongdot:c7,ncup:h7,Ncy:u7,ncy:d7,ndash:f7,nearhk:g7,nearr:p7,neArr:m7,nearrow:x7,ne:b7,nedot:v7,NegativeMediumSpace:y7,NegativeThickSpace:w7,NegativeThinSpace:k7,NegativeVeryThinSpace:A7,nequiv:S7,nesear:C7,nesim:M7,NestedGreaterGreater:z7,NestedLessLess:T7,NewLine:L7,nexist:E7,nexists:D7,Nfr:P7,nfr:I7,ngE:R7,nge:F7,ngeq:_7,ngeqq:B7,ngeqslant:N7,nges:O7,nGg:H7,ngsim:X7,nGt:Y7,ngt:q7,ngtr:V7,nGtv:W7,nharr:G7,nhArr:j7,nhpar:U7,ni:$7,nis:Z7,nisd:J7,niv:K7,NJcy:Q7,njcy:ew,nlarr:tw,nlArr:rw,nldr:aw,nlE:iw,nle:sw,nleftarrow:nw,nLeftarrow:ow,nleftrightarrow:lw,nLeftrightarrow:cw,nleq:hw,nleqq:uw,nleqslant:dw,nles:fw,nless:gw,nLl:pw,nlsim:mw,nLt:xw,nlt:bw,nltri:vw,nltrie:yw,nLtv:ww,nmid:kw,NoBreak:Aw,NonBreakingSpace:Sw,nopf:Cw,Nopf:Mw,Not:zw,not:Tw,NotCongruent:Lw,NotCupCap:Ew,NotDoubleVerticalBar:Dw,NotElement:Pw,NotEqual:Iw,NotEqualTilde:Rw,NotExists:Fw,NotGreater:_w,NotGreaterEqual:Bw,NotGreaterFullEqual:Nw,NotGreaterGreater:Ow,NotGreaterLess:Hw,NotGreaterSlantEqual:Xw,NotGreaterTilde:Yw,NotHumpDownHump:qw,NotHumpEqual:Vw,notin:Ww,notindot:Gw,notinE:jw,notinva:Uw,notinvb:$w,notinvc:Zw,NotLeftTriangleBar:Jw,NotLeftTriangle:Kw,NotLeftTriangleEqual:Qw,NotLess:e8,NotLessEqual:t8,NotLessGreater:r8,NotLessLess:a8,NotLessSlantEqual:i8,NotLessTilde:s8,NotNestedGreaterGreater:n8,NotNestedLessLess:o8,notni:l8,notniva:c8,notnivb:h8,notnivc:u8,NotPrecedes:d8,NotPrecedesEqual:f8,NotPrecedesSlantEqual:g8,NotReverseElement:p8,NotRightTriangleBar:m8,NotRightTriangle:x8,NotRightTriangleEqual:b8,NotSquareSubset:v8,NotSquareSubsetEqual:y8,NotSquareSuperset:w8,NotSquareSupersetEqual:k8,NotSubset:A8,NotSubsetEqual:S8,NotSucceeds:C8,NotSucceedsEqual:M8,NotSucceedsSlantEqual:z8,NotSucceedsTilde:T8,NotSuperset:L8,NotSupersetEqual:E8,NotTilde:D8,NotTildeEqual:P8,NotTildeFullEqual:I8,NotTildeTilde:R8,NotVerticalBar:F8,nparallel:_8,npar:B8,nparsl:N8,npart:O8,npolint:H8,npr:X8,nprcue:Y8,nprec:q8,npreceq:V8,npre:W8,nrarrc:G8,nrarr:j8,nrArr:U8,nrarrw:$8,nrightarrow:Z8,nRightarrow:J8,nrtri:K8,nrtrie:Q8,nsc:e9,nsccue:t9,nsce:r9,Nscr:a9,nscr:i9,nshortmid:s9,nshortparallel:n9,nsim:o9,nsime:l9,nsimeq:c9,nsmid:h9,nspar:u9,nsqsube:d9,nsqsupe:f9,nsub:g9,nsubE:p9,nsube:m9,nsubset:x9,nsubseteq:b9,nsubseteqq:v9,nsucc:y9,nsucceq:w9,nsup:k9,nsupE:A9,nsupe:S9,nsupset:C9,nsupseteq:M9,nsupseteqq:z9,ntgl:T9,Ntilde:L9,ntilde:E9,ntlg:D9,ntriangleleft:P9,ntrianglelefteq:I9,ntriangleright:R9,ntrianglerighteq:F9,Nu:_9,nu:B9,num:N9,numero:O9,numsp:H9,nvap:X9,nvdash:Y9,nvDash:q9,nVdash:V9,nVDash:W9,nvge:G9,nvgt:j9,nvHarr:U9,nvinfin:$9,nvlArr:Z9,nvle:J9,nvlt:K9,nvltrie:Q9,nvrArr:ek,nvrtrie:tk,nvsim:rk,nwarhk:ak,nwarr:ik,nwArr:sk,nwarrow:nk,nwnear:ok,Oacute:lk,oacute:ck,oast:hk,Ocirc:uk,ocirc:dk,ocir:fk,Ocy:gk,ocy:pk,odash:mk,Odblac:xk,odblac:bk,odiv:vk,odot:yk,odsold:wk,OElig:kk,oelig:Ak,ofcir:Sk,Ofr:Ck,ofr:Mk,ogon:zk,Ograve:Tk,ograve:Lk,ogt:Ek,ohbar:Dk,ohm:Pk,oint:Ik,olarr:Rk,olcir:Fk,olcross:_k,oline:Bk,olt:Nk,Omacr:Ok,omacr:Hk,Omega:Xk,omega:Yk,Omicron:qk,omicron:Vk,omid:Wk,ominus:Gk,Oopf:jk,oopf:Uk,opar:$k,OpenCurlyDoubleQuote:Zk,OpenCurlyQuote:Jk,operp:Kk,oplus:Qk,orarr:eA,Or:tA,or:rA,ord:aA,order:iA,orderof:sA,ordf:nA,ordm:oA,origof:lA,oror:cA,orslope:hA,orv:uA,oS:dA,Oscr:fA,oscr:gA,Oslash:pA,oslash:mA,osol:xA,Otilde:bA,otilde:vA,otimesas:yA,Otimes:wA,otimes:kA,Ouml:AA,ouml:SA,ovbar:CA,OverBar:MA,OverBrace:zA,OverBracket:TA,OverParenthesis:LA,para:EA,parallel:DA,par:PA,parsim:IA,parsl:RA,part:FA,PartialD:_A,Pcy:BA,pcy:NA,percnt:OA,period:HA,permil:XA,perp:YA,pertenk:qA,Pfr:VA,pfr:WA,Phi:GA,phi:jA,phiv:UA,phmmat:$A,phone:ZA,Pi:JA,pi:KA,pitchfork:QA,piv:eS,planck:tS,planckh:rS,plankv:aS,plusacir:iS,plusb:sS,pluscir:nS,plus:oS,plusdo:lS,plusdu:cS,pluse:hS,PlusMinus:uS,plusmn:dS,plussim:fS,plustwo:gS,pm:pS,Poincareplane:mS,pointint:xS,popf:bS,Popf:vS,pound:yS,prap:wS,Pr:kS,pr:AS,prcue:SS,precapprox:CS,prec:MS,preccurlyeq:zS,Precedes:TS,PrecedesEqual:LS,PrecedesSlantEqual:ES,PrecedesTilde:DS,preceq:PS,precnapprox:IS,precneqq:RS,precnsim:FS,pre:_S,prE:BS,precsim:NS,prime:OS,Prime:HS,primes:XS,prnap:YS,prnE:qS,prnsim:VS,prod:WS,Product:GS,profalar:jS,profline:US,profsurf:$S,prop:ZS,Proportional:JS,Proportion:KS,propto:QS,prsim:eC,prurel:tC,Pscr:rC,pscr:aC,Psi:iC,psi:sC,puncsp:nC,Qfr:oC,qfr:lC,qint:cC,qopf:hC,Qopf:uC,qprime:dC,Qscr:fC,qscr:gC,quaternions:pC,quatint:mC,quest:xC,questeq:bC,quot:vC,QUOT:yC,rAarr:wC,race:kC,Racute:AC,racute:SC,radic:CC,raemptyv:MC,rang:zC,Rang:TC,rangd:LC,range:EC,rangle:DC,raquo:PC,rarrap:IC,rarrb:RC,rarrbfs:FC,rarrc:_C,rarr:BC,Rarr:NC,rArr:OC,rarrfs:HC,rarrhk:XC,rarrlp:YC,rarrpl:qC,rarrsim:VC,Rarrtl:WC,rarrtl:GC,rarrw:jC,ratail:UC,rAtail:$C,ratio:ZC,rationals:JC,rbarr:KC,rBarr:QC,RBarr:eM,rbbrk:tM,rbrace:rM,rbrack:aM,rbrke:iM,rbrksld:sM,rbrkslu:nM,Rcaron:oM,rcaron:lM,Rcedil:cM,rcedil:hM,rceil:uM,rcub:dM,Rcy:fM,rcy:gM,rdca:pM,rdldhar:mM,rdquo:xM,rdquor:bM,rdsh:vM,real:yM,realine:wM,realpart:kM,reals:AM,Re:SM,rect:CM,reg:MM,REG:zM,ReverseElement:TM,ReverseEquilibrium:LM,ReverseUpEquilibrium:EM,rfisht:DM,rfloor:PM,rfr:IM,Rfr:RM,rHar:FM,rhard:_M,rharu:BM,rharul:NM,Rho:OM,rho:HM,rhov:XM,RightAngleBracket:YM,RightArrowBar:qM,rightarrow:VM,RightArrow:WM,Rightarrow:GM,RightArrowLeftArrow:jM,rightarrowtail:UM,RightCeiling:$M,RightDoubleBracket:ZM,RightDownTeeVector:JM,RightDownVectorBar:KM,RightDownVector:QM,RightFloor:ez,rightharpoondown:tz,rightharpoonup:rz,rightleftarrows:az,rightleftharpoons:iz,rightrightarrows:sz,rightsquigarrow:nz,RightTeeArrow:oz,RightTee:lz,RightTeeVector:cz,rightthreetimes:hz,RightTriangleBar:uz,RightTriangle:dz,RightTriangleEqual:fz,RightUpDownVector:gz,RightUpTeeVector:pz,RightUpVectorBar:mz,RightUpVector:xz,RightVectorBar:bz,RightVector:vz,ring:yz,risingdotseq:wz,rlarr:kz,rlhar:Az,rlm:Sz,rmoustache:Cz,rmoust:Mz,rnmid:zz,roang:Tz,roarr:Lz,robrk:Ez,ropar:Dz,ropf:Pz,Ropf:Iz,roplus:Rz,rotimes:Fz,RoundImplies:_z,rpar:Bz,rpargt:Nz,rppolint:Oz,rrarr:Hz,Rrightarrow:Xz,rsaquo:Yz,rscr:qz,Rscr:Vz,rsh:Wz,Rsh:Gz,rsqb:jz,rsquo:Uz,rsquor:$z,rthree:Zz,rtimes:Jz,rtri:Kz,rtrie:Qz,rtrif:eT,rtriltri:tT,RuleDelayed:rT,ruluhar:aT,rx:iT,Sacute:sT,sacute:nT,sbquo:oT,scap:lT,Scaron:cT,scaron:hT,Sc:uT,sc:dT,sccue:fT,sce:gT,scE:pT,Scedil:mT,scedil:xT,Scirc:bT,scirc:vT,scnap:yT,scnE:wT,scnsim:kT,scpolint:AT,scsim:ST,Scy:CT,scy:MT,sdotb:zT,sdot:TT,sdote:LT,searhk:ET,searr:DT,seArr:PT,searrow:IT,sect:RT,semi:FT,seswar:_T,setminus:BT,setmn:NT,sext:OT,Sfr:HT,sfr:XT,sfrown:YT,sharp:qT,SHCHcy:VT,shchcy:WT,SHcy:GT,shcy:jT,ShortDownArrow:UT,ShortLeftArrow:$T,shortmid:ZT,shortparallel:JT,ShortRightArrow:KT,ShortUpArrow:QT,shy:eL,Sigma:tL,sigma:rL,sigmaf:aL,sigmav:iL,sim:sL,simdot:nL,sime:oL,simeq:lL,simg:cL,simgE:hL,siml:uL,simlE:dL,simne:fL,simplus:gL,simrarr:pL,slarr:mL,SmallCircle:xL,smallsetminus:bL,smashp:vL,smeparsl:yL,smid:wL,smile:kL,smt:AL,smte:SL,smtes:CL,SOFTcy:ML,softcy:zL,solbar:TL,solb:LL,sol:EL,Sopf:DL,sopf:PL,spades:IL,spadesuit:RL,spar:FL,sqcap:_L,sqcaps:BL,sqcup:NL,sqcups:OL,Sqrt:HL,sqsub:XL,sqsube:YL,sqsubset:qL,sqsubseteq:VL,sqsup:WL,sqsupe:GL,sqsupset:jL,sqsupseteq:UL,square:$L,Square:ZL,SquareIntersection:JL,SquareSubset:KL,SquareSubsetEqual:QL,SquareSuperset:eE,SquareSupersetEqual:tE,SquareUnion:rE,squarf:aE,squ:iE,squf:sE,srarr:nE,Sscr:oE,sscr:lE,ssetmn:cE,ssmile:hE,sstarf:uE,Star:dE,star:fE,starf:gE,straightepsilon:pE,straightphi:mE,strns:xE,sub:bE,Sub:vE,subdot:yE,subE:wE,sube:kE,subedot:AE,submult:SE,subnE:CE,subne:ME,subplus:zE,subrarr:TE,subset:LE,Subset:EE,subseteq:DE,subseteqq:PE,SubsetEqual:IE,subsetneq:RE,subsetneqq:FE,subsim:_E,subsub:BE,subsup:NE,succapprox:OE,succ:HE,succcurlyeq:XE,Succeeds:YE,SucceedsEqual:qE,SucceedsSlantEqual:VE,SucceedsTilde:WE,succeq:GE,succnapprox:jE,succneqq:UE,succnsim:$E,succsim:ZE,SuchThat:JE,sum:KE,Sum:QE,sung:eD,sup1:tD,sup2:rD,sup3:aD,sup:iD,Sup:sD,supdot:nD,supdsub:oD,supE:lD,supe:cD,supedot:hD,Superset:uD,SupersetEqual:dD,suphsol:fD,suphsub:gD,suplarr:pD,supmult:mD,supnE:xD,supne:bD,supplus:vD,supset:yD,Supset:wD,supseteq:kD,supseteqq:AD,supsetneq:SD,supsetneqq:CD,supsim:MD,supsub:zD,supsup:TD,swarhk:LD,swarr:ED,swArr:DD,swarrow:PD,swnwar:ID,szlig:RD,Tab:FD,target:_D,Tau:BD,tau:ND,tbrk:OD,Tcaron:HD,tcaron:XD,Tcedil:YD,tcedil:qD,Tcy:VD,tcy:WD,tdot:GD,telrec:jD,Tfr:UD,tfr:$D,there4:ZD,therefore:JD,Therefore:KD,Theta:QD,theta:eP,thetasym:tP,thetav:rP,thickapprox:aP,thicksim:iP,ThickSpace:sP,ThinSpace:nP,thinsp:oP,thkap:lP,thksim:cP,THORN:hP,thorn:uP,tilde:dP,Tilde:fP,TildeEqual:gP,TildeFullEqual:pP,TildeTilde:mP,timesbar:xP,timesb:bP,times:vP,timesd:yP,tint:wP,toea:kP,topbot:AP,topcir:SP,top:CP,Topf:MP,topf:zP,topfork:TP,tosa:LP,tprime:EP,trade:DP,TRADE:PP,triangle:IP,triangledown:RP,triangleleft:FP,trianglelefteq:_P,triangleq:BP,triangleright:NP,trianglerighteq:OP,tridot:HP,trie:XP,triminus:YP,TripleDot:qP,triplus:VP,trisb:WP,tritime:GP,trpezium:jP,Tscr:UP,tscr:$P,TScy:ZP,tscy:JP,TSHcy:KP,tshcy:QP,Tstrok:eI,tstrok:tI,twixt:rI,twoheadleftarrow:aI,twoheadrightarrow:iI,Uacute:sI,uacute:nI,uarr:oI,Uarr:lI,uArr:cI,Uarrocir:hI,Ubrcy:uI,ubrcy:dI,Ubreve:fI,ubreve:gI,Ucirc:pI,ucirc:mI,Ucy:xI,ucy:bI,udarr:vI,Udblac:yI,udblac:wI,udhar:kI,ufisht:AI,Ufr:SI,ufr:CI,Ugrave:MI,ugrave:zI,uHar:TI,uharl:LI,uharr:EI,uhblk:DI,ulcorn:PI,ulcorner:II,ulcrop:RI,ultri:FI,Umacr:_I,umacr:BI,uml:NI,UnderBar:OI,UnderBrace:HI,UnderBracket:XI,UnderParenthesis:YI,Union:qI,UnionPlus:VI,Uogon:WI,uogon:GI,Uopf:jI,uopf:UI,UpArrowBar:$I,uparrow:ZI,UpArrow:JI,Uparrow:KI,UpArrowDownArrow:QI,updownarrow:eR,UpDownArrow:tR,Updownarrow:rR,UpEquilibrium:aR,upharpoonleft:iR,upharpoonright:sR,uplus:nR,UpperLeftArrow:oR,UpperRightArrow:lR,upsi:cR,Upsi:hR,upsih:uR,Upsilon:dR,upsilon:fR,UpTeeArrow:gR,UpTee:pR,upuparrows:mR,urcorn:xR,urcorner:bR,urcrop:vR,Uring:yR,uring:wR,urtri:kR,Uscr:AR,uscr:SR,utdot:CR,Utilde:MR,utilde:zR,utri:TR,utrif:LR,uuarr:ER,Uuml:DR,uuml:PR,uwangle:IR,vangrt:RR,varepsilon:FR,varkappa:_R,varnothing:BR,varphi:NR,varpi:OR,varpropto:HR,varr:XR,vArr:YR,varrho:qR,varsigma:VR,varsubsetneq:WR,varsubsetneqq:GR,varsupsetneq:jR,varsupsetneqq:UR,vartheta:$R,vartriangleleft:ZR,vartriangleright:JR,vBar:KR,Vbar:QR,vBarv:eF,Vcy:tF,vcy:rF,vdash:aF,vDash:iF,Vdash:sF,VDash:nF,Vdashl:oF,veebar:lF,vee:cF,Vee:hF,veeeq:uF,vellip:dF,verbar:fF,Verbar:gF,vert:pF,Vert:mF,VerticalBar:xF,VerticalLine:bF,VerticalSeparator:vF,VerticalTilde:yF,VeryThinSpace:wF,Vfr:kF,vfr:AF,vltri:SF,vnsub:CF,vnsup:MF,Vopf:zF,vopf:TF,vprop:LF,vrtri:EF,Vscr:DF,vscr:PF,vsubnE:IF,vsubne:RF,vsupnE:FF,vsupne:_F,Vvdash:BF,vzigzag:NF,Wcirc:OF,wcirc:HF,wedbar:XF,wedge:YF,Wedge:qF,wedgeq:VF,weierp:WF,Wfr:GF,wfr:jF,Wopf:UF,wopf:$F,wp:ZF,wr:JF,wreath:KF,Wscr:QF,wscr:e_,xcap:t_,xcirc:r_,xcup:a_,xdtri:i_,Xfr:s_,xfr:n_,xharr:o_,xhArr:l_,Xi:c_,xi:h_,xlarr:u_,xlArr:d_,xmap:f_,xnis:g_,xodot:p_,Xopf:m_,xopf:x_,xoplus:b_,xotime:v_,xrarr:y_,xrArr:w_,Xscr:k_,xscr:A_,xsqcup:S_,xuplus:C_,xutri:M_,xvee:z_,xwedge:T_,Yacute:L_,yacute:E_,YAcy:D_,yacy:P_,Ycirc:I_,ycirc:R_,Ycy:F_,ycy:__,yen:B_,Yfr:N_,yfr:O_,YIcy:H_,yicy:X_,Yopf:Y_,yopf:q_,Yscr:V_,yscr:W_,YUcy:G_,yucy:j_,yuml:U_,Yuml:$_,Zacute:Z_,zacute:J_,Zcaron:K_,zcaron:Q_,Zcy:eB,zcy:tB,Zdot:rB,zdot:aB,zeetrf:iB,ZeroWidthSpace:sB,Zeta:nB,zeta:oB,zfr:lB,Zfr:cB,ZHcy:hB,zhcy:uB,zigrarr:dB,zopf:fB,Zopf:gB,Zscr:pB,zscr:mB,zwj:xB,zwnj:bB};(function(c){c.exports=vB})(el);var ri=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,fr={},Hi={};function yB(c){var a,o,u=Hi[c];if(u)return u;for(u=Hi[c]=[],a=0;a<128;a++)o=String.fromCharCode(a),/^[0-9a-z]$/i.test(o)?u.push(o):u.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2));for(a=0;a<c.length;a++)u[c.charCodeAt(a)]=c[a];return u}function ta(c,a,o){var u,g,m,k,w,S="";for(typeof a!="string"&&(o=a,a=ta.defaultChars),typeof o>"u"&&(o=!0),w=yB(a),u=0,g=c.length;u<g;u++){if(m=c.charCodeAt(u),o&&m===37&&u+2<g&&/^[0-9a-f]{2}$/i.test(c.slice(u+1,u+3))){S+=c.slice(u,u+3),u+=2;continue}if(m<128){S+=w[m];continue}if(m>=55296&&m<=57343){if(m>=55296&&m<=56319&&u+1<g&&(k=c.charCodeAt(u+1),k>=56320&&k<=57343)){S+=encodeURIComponent(c[u]+c[u+1]),u++;continue}S+="%EF%BF%BD";continue}S+=encodeURIComponent(c[u])}return S}ta.defaultChars=";/?:@&=+$,-_.!~*'()#";ta.componentChars="-_.!~*'()";var wB=ta,Xi={};function kB(c){var a,o,u=Xi[c];if(u)return u;for(u=Xi[c]=[],a=0;a<128;a++)o=String.fromCharCode(a),u.push(o);for(a=0;a<c.length;a++)o=c.charCodeAt(a),u[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2);return u}function ra(c,a){var o;return typeof a!="string"&&(a=ra.defaultChars),o=kB(a),c.replace(/(%[a-f0-9]{2})+/gi,function(u){var g,m,k,w,S,D,F,H="";for(g=0,m=u.length;g<m;g+=3){if(k=parseInt(u.slice(g+1,g+3),16),k<128){H+=o[k];continue}if((k&224)===192&&g+3<m&&(w=parseInt(u.slice(g+4,g+6),16),(w&192)===128)){F=k<<6&1984|w&63,F<128?H+="��":H+=String.fromCharCode(F),g+=3;continue}if((k&240)===224&&g+6<m&&(w=parseInt(u.slice(g+4,g+6),16),S=parseInt(u.slice(g+7,g+9),16),(w&192)===128&&(S&192)===128)){F=k<<12&61440|w<<6&4032|S&63,F<2048||F>=55296&&F<=57343?H+="���":H+=String.fromCharCode(F),g+=6;continue}if((k&248)===240&&g+9<m&&(w=parseInt(u.slice(g+4,g+6),16),S=parseInt(u.slice(g+7,g+9),16),D=parseInt(u.slice(g+10,g+12),16),(w&192)===128&&(S&192)===128&&(D&192)===128)){F=k<<18&1835008|w<<12&258048|S<<6&4032|D&63,F<65536||F>1114111?H+="����":(F-=65536,H+=String.fromCharCode(55296+(F>>10),56320+(F&1023))),g+=9;continue}H+="�"}return H})}ra.defaultChars=";/?:@&=+$,#";ra.componentChars="";var AB=ra,SB=function(a){var o="";return o+=a.protocol||"",o+=a.slashes?"//":"",o+=a.auth?a.auth+"@":"",a.hostname&&a.hostname.indexOf(":")!==-1?o+="["+a.hostname+"]":o+=a.hostname||"",o+=a.port?":"+a.port:"",o+=a.pathname||"",o+=a.search||"",o+=a.hash||"",o};function Ur(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var CB=/^([a-z0-9.+-]+:)/i,MB=/:[0-9]*$/,zB=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,TB=["<",">",'"',"`"," ","\r",`
|
|
16
|
+
`," "],LB=["{","}","|","\\","^","`"].concat(TB),EB=["'"].concat(LB),Yi=["%","/","?",";","#"].concat(EB),qi=["/","?","#"],DB=255,Vi=/^[+a-z0-9A-Z_-]{0,63}$/,PB=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Wi={javascript:!0,"javascript:":!0},Gi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function IB(c,a){if(c&&c instanceof Ur)return c;var o=new Ur;return o.parse(c,a),o}Ur.prototype.parse=function(c,a){var o,u,g,m,k,w=c;if(w=w.trim(),!a&&c.split("#").length===1){var S=zB.exec(w);if(S)return this.pathname=S[1],S[2]&&(this.search=S[2]),this}var D=CB.exec(w);if(D&&(D=D[0],g=D.toLowerCase(),this.protocol=D,w=w.substr(D.length)),(a||D||w.match(/^\/\/[^@\/]+@[^@\/]+/))&&(k=w.substr(0,2)==="//",k&&!(D&&Wi[D])&&(w=w.substr(2),this.slashes=!0)),!Wi[D]&&(k||D&&!Gi[D])){var F=-1;for(o=0;o<qi.length;o++)m=w.indexOf(qi[o]),m!==-1&&(F===-1||m<F)&&(F=m);var H,q;for(F===-1?q=w.lastIndexOf("@"):q=w.lastIndexOf("@",F),q!==-1&&(H=w.slice(0,q),w=w.slice(q+1),this.auth=H),F=-1,o=0;o<Yi.length;o++)m=w.indexOf(Yi[o]),m!==-1&&(F===-1||m<F)&&(F=m);F===-1&&(F=w.length),w[F-1]===":"&&F--;var X=w.slice(0,F);w=w.slice(F),this.parseHost(X),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$){var Z=this.hostname.split(/\./);for(o=0,u=Z.length;o<u;o++){var ae=Z[o];if(ae&&!ae.match(Vi)){for(var J="",O=0,se=ae.length;O<se;O++)ae.charCodeAt(O)>127?J+="x":J+=ae[O];if(!J.match(Vi)){var le=Z.slice(0,o),U=Z.slice(o+1),re=ae.match(PB);re&&(le.push(re[1]),U.unshift(re[2])),U.length&&(w=U.join(".")+w),this.hostname=le.join(".");break}}}}this.hostname.length>DB&&(this.hostname=""),$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var fe=w.indexOf("#");fe!==-1&&(this.hash=w.substr(fe),w=w.slice(0,fe));var ve=w.indexOf("?");return ve!==-1&&(this.search=w.substr(ve),w=w.slice(0,ve)),w&&(this.pathname=w),Gi[g]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ur.prototype.parseHost=function(c){var a=MB.exec(c);a&&(a=a[0],a!==":"&&(this.port=a.substr(1)),c=c.substr(0,c.length-a.length)),c&&(this.hostname=c)};var RB=IB;fr.encode=wB;fr.decode=AB;fr.format=SB;fr.parse=RB;var Jt={},ka,ji;function an(){return ji||(ji=1,ka=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ka}var Aa,Ui;function sn(){return Ui||(Ui=1,Aa=/[\0-\x1F\x7F-\x9F]/),Aa}var Sa,$i;function FB(){return $i||($i=1,Sa=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Sa}var Ca,Zi;function nn(){return Zi||(Zi=1,Ca=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ca}var Ji;function _B(){return Ji||(Ji=1,Jt.Any=an(),Jt.Cc=sn(),Jt.Cf=FB(),Jt.P=ri,Jt.Z=nn()),Jt}(function(c){function a(ne){return Object.prototype.toString.call(ne)}function o(ne){return a(ne)==="[object String]"}var u=Object.prototype.hasOwnProperty;function g(ne,Me){return u.call(ne,Me)}function m(ne){var Me=Array.prototype.slice.call(arguments,1);return Me.forEach(function(ke){if(ke){if(typeof ke!="object")throw new TypeError(ke+"must be object");Object.keys(ke).forEach(function(qe){ne[qe]=ke[qe]})}}),ne}function k(ne,Me,ke){return[].concat(ne.slice(0,Me),ke,ne.slice(Me+1))}function w(ne){return!(ne>=55296&&ne<=57343||ne>=64976&&ne<=65007||(ne&65535)===65535||(ne&65535)===65534||ne>=0&&ne<=8||ne===11||ne>=14&&ne<=31||ne>=127&&ne<=159||ne>1114111)}function S(ne){if(ne>65535){ne-=65536;var Me=55296+(ne>>10),ke=56320+(ne&1023);return String.fromCharCode(Me,ke)}return String.fromCharCode(ne)}var D=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,F=/&([a-z#][a-z0-9]{1,31});/gi,H=new RegExp(D.source+"|"+F.source,"gi"),q=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,X=jr;function $(ne,Me){var ke=0;return g(X,Me)?X[Me]:Me.charCodeAt(0)===35&&q.test(Me)&&(ke=Me[1].toLowerCase()==="x"?parseInt(Me.slice(2),16):parseInt(Me.slice(1),10),w(ke))?S(ke):ne}function Z(ne){return ne.indexOf("\\")<0?ne:ne.replace(D,"$1")}function ae(ne){return ne.indexOf("\\")<0&&ne.indexOf("&")<0?ne:ne.replace(H,function(Me,ke,qe){return ke||$(Me,qe)})}var J=/[&<>"]/,O=/[&<>"]/g,se={"&":"&","<":"<",">":">",'"':"""};function le(ne){return se[ne]}function U(ne){return J.test(ne)?ne.replace(O,le):ne}var re=/[.?*+^$[\]\\(){}|-]/g;function fe(ne){return ne.replace(re,"\\$&")}function ve(ne){switch(ne){case 9:case 32:return!0}return!1}function Ee(ne){if(ne>=8192&&ne<=8202)return!0;switch(ne){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var we=ri;function Ce(ne){return we.test(ne)}function Pe(ne){switch(ne){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ze(ne){return ne=ne.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(ne=ne.replace(/ẞ/g,"ß")),ne.toLowerCase().toUpperCase()}c.lib={},c.lib.mdurl=fr,c.lib.ucmicro=_B(),c.assign=m,c.isString=o,c.has=g,c.unescapeMd=Z,c.unescapeAll=ae,c.isValidEntityCode=w,c.fromCodePoint=S,c.escapeHtml=U,c.arrayReplaceAt=k,c.isSpace=ve,c.isWhiteSpace=Ee,c.isMdAsciiPunct=Pe,c.isPunctChar=Ce,c.escapeRE=fe,c.normalizeReference=Ze})(_e);var aa={},BB=function(a,o,u){var g,m,k,w,S=-1,D=a.posMax,F=a.pos;for(a.pos=o+1,g=1;a.pos<D;){if(k=a.src.charCodeAt(a.pos),k===93&&(g--,g===0)){m=!0;break}if(w=a.pos,a.md.inline.skipToken(a),k===91){if(w===a.pos-1)g++;else if(u)return a.pos=F,-1}}return m&&(S=a.pos),a.pos=F,S},Ki=_e.unescapeAll,NB=function(a,o,u){var g,m,k=0,w=o,S={ok:!1,pos:0,lines:0,str:""};if(a.charCodeAt(o)===60){for(o++;o<u;){if(g=a.charCodeAt(o),g===10||g===60)return S;if(g===62)return S.pos=o+1,S.str=Ki(a.slice(w+1,o)),S.ok=!0,S;if(g===92&&o+1<u){o+=2;continue}o++}return S}for(m=0;o<u&&(g=a.charCodeAt(o),!(g===32||g<32||g===127));){if(g===92&&o+1<u){if(a.charCodeAt(o+1)===32)break;o+=2;continue}if(g===40&&(m++,m>32))return S;if(g===41){if(m===0)break;m--}o++}return w===o||m!==0||(S.str=Ki(a.slice(w,o)),S.lines=k,S.pos=o,S.ok=!0),S},OB=_e.unescapeAll,HB=function(a,o,u){var g,m,k=0,w=o,S={ok:!1,pos:0,lines:0,str:""};if(o>=u||(m=a.charCodeAt(o),m!==34&&m!==39&&m!==40))return S;for(o++,m===40&&(m=41);o<u;){if(g=a.charCodeAt(o),g===m)return S.pos=o+1,S.lines=k,S.str=OB(a.slice(w+1,o)),S.ok=!0,S;if(g===40&&m===41)return S;g===10?k++:g===92&&o+1<u&&(o++,a.charCodeAt(o)===10&&k++),o++}return S};aa.parseLinkLabel=BB;aa.parseLinkDestination=NB;aa.parseLinkTitle=HB;var XB=_e.assign,YB=_e.unescapeAll,rr=_e.escapeHtml,Tt={};Tt.code_inline=function(c,a,o,u,g){var m=c[a];return"<code"+g.renderAttrs(m)+">"+rr(c[a].content)+"</code>"};Tt.code_block=function(c,a,o,u,g){var m=c[a];return"<pre"+g.renderAttrs(m)+"><code>"+rr(c[a].content)+`</code></pre>
|
|
17
|
+
`};Tt.fence=function(c,a,o,u,g){var m=c[a],k=m.info?YB(m.info).trim():"",w="",S="",D,F,H,q,X;return k&&(H=k.split(/(\s+)/g),w=H[0],S=H.slice(2).join("")),o.highlight?D=o.highlight(m.content,w,S)||rr(m.content):D=rr(m.content),D.indexOf("<pre")===0?D+`
|
|
18
|
+
`:k?(F=m.attrIndex("class"),q=m.attrs?m.attrs.slice():[],F<0?q.push(["class",o.langPrefix+w]):(q[F]=q[F].slice(),q[F][1]+=" "+o.langPrefix+w),X={attrs:q},"<pre><code"+g.renderAttrs(X)+">"+D+`</code></pre>
|
|
19
|
+
`):"<pre><code"+g.renderAttrs(m)+">"+D+`</code></pre>
|
|
20
|
+
`};Tt.image=function(c,a,o,u,g){var m=c[a];return m.attrs[m.attrIndex("alt")][1]=g.renderInlineAsText(m.children,o,u),g.renderToken(c,a,o)};Tt.hardbreak=function(c,a,o){return o.xhtmlOut?`<br />
|
|
21
|
+
`:`<br>
|
|
22
|
+
`};Tt.softbreak=function(c,a,o){return o.breaks?o.xhtmlOut?`<br />
|
|
23
|
+
`:`<br>
|
|
24
|
+
`:`
|
|
25
|
+
`};Tt.text=function(c,a){return rr(c[a].content)};Tt.html_block=function(c,a){return c[a].content};Tt.html_inline=function(c,a){return c[a].content};function gr(){this.rules=XB({},Tt)}gr.prototype.renderAttrs=function(a){var o,u,g;if(!a.attrs)return"";for(g="",o=0,u=a.attrs.length;o<u;o++)g+=" "+rr(a.attrs[o][0])+'="'+rr(a.attrs[o][1])+'"';return g};gr.prototype.renderToken=function(a,o,u){var g,m="",k=!1,w=a[o];return w.hidden?"":(w.block&&w.nesting!==-1&&o&&a[o-1].hidden&&(m+=`
|
|
26
|
+
`),m+=(w.nesting===-1?"</":"<")+w.tag,m+=this.renderAttrs(w),w.nesting===0&&u.xhtmlOut&&(m+=" /"),w.block&&(k=!0,w.nesting===1&&o+1<a.length&&(g=a[o+1],(g.type==="inline"||g.hidden||g.nesting===-1&&g.tag===w.tag)&&(k=!1))),m+=k?`>
|
|
27
|
+
`:">",m)};gr.prototype.renderInline=function(c,a,o){for(var u,g="",m=this.rules,k=0,w=c.length;k<w;k++)u=c[k].type,typeof m[u]<"u"?g+=m[u](c,k,a,o,this):g+=this.renderToken(c,k,a);return g};gr.prototype.renderInlineAsText=function(c,a,o){for(var u="",g=0,m=c.length;g<m;g++)c[g].type==="text"?u+=c[g].content:c[g].type==="image"?u+=this.renderInlineAsText(c[g].children,a,o):c[g].type==="softbreak"&&(u+=`
|
|
28
|
+
`);return u};gr.prototype.render=function(c,a,o){var u,g,m,k="",w=this.rules;for(u=0,g=c.length;u<g;u++)m=c[u].type,m==="inline"?k+=this.renderInline(c[u].children,a,o):typeof w[m]<"u"?k+=w[c[u].type](c,u,a,o,this):k+=this.renderToken(c,u,a,o);return k};var qB=gr;function kt(){this.__rules__=[],this.__cache__=null}kt.prototype.__find__=function(c){for(var a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===c)return a;return-1};kt.prototype.__compile__=function(){var c=this,a=[""];c.__rules__.forEach(function(o){o.enabled&&o.alt.forEach(function(u){a.indexOf(u)<0&&a.push(u)})}),c.__cache__={},a.forEach(function(o){c.__cache__[o]=[],c.__rules__.forEach(function(u){u.enabled&&(o&&u.alt.indexOf(o)<0||c.__cache__[o].push(u.fn))})})};kt.prototype.at=function(c,a,o){var u=this.__find__(c),g=o||{};if(u===-1)throw new Error("Parser rule not found: "+c);this.__rules__[u].fn=a,this.__rules__[u].alt=g.alt||[],this.__cache__=null};kt.prototype.before=function(c,a,o,u){var g=this.__find__(c),m=u||{};if(g===-1)throw new Error("Parser rule not found: "+c);this.__rules__.splice(g,0,{name:a,enabled:!0,fn:o,alt:m.alt||[]}),this.__cache__=null};kt.prototype.after=function(c,a,o,u){var g=this.__find__(c),m=u||{};if(g===-1)throw new Error("Parser rule not found: "+c);this.__rules__.splice(g+1,0,{name:a,enabled:!0,fn:o,alt:m.alt||[]}),this.__cache__=null};kt.prototype.push=function(c,a,o){var u=o||{};this.__rules__.push({name:c,enabled:!0,fn:a,alt:u.alt||[]}),this.__cache__=null};kt.prototype.enable=function(c,a){Array.isArray(c)||(c=[c]);var o=[];return c.forEach(function(u){var g=this.__find__(u);if(g<0){if(a)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[g].enabled=!0,o.push(u)},this),this.__cache__=null,o};kt.prototype.enableOnly=function(c,a){Array.isArray(c)||(c=[c]),this.__rules__.forEach(function(o){o.enabled=!1}),this.enable(c,a)};kt.prototype.disable=function(c,a){Array.isArray(c)||(c=[c]);var o=[];return c.forEach(function(u){var g=this.__find__(u);if(g<0){if(a)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[g].enabled=!1,o.push(u)},this),this.__cache__=null,o};kt.prototype.getRules=function(c){return this.__cache__===null&&this.__compile__(),this.__cache__[c]||[]};var ai=kt,VB=/\r\n?|\n/g,WB=/\0/g,GB=function(a){var o;o=a.src.replace(VB,`
|
|
29
|
+
`),o=o.replace(WB,"�"),a.src=o},jB=function(a){var o;a.inlineMode?(o=new a.Token("inline","",0),o.content=a.src,o.map=[0,1],o.children=[],a.tokens.push(o)):a.md.block.parse(a.src,a.md,a.env,a.tokens)},UB=function(a){var o=a.tokens,u,g,m;for(g=0,m=o.length;g<m;g++)u=o[g],u.type==="inline"&&a.md.inline.parse(u.content,a.md,a.env,u.children)},$B=_e.arrayReplaceAt;function ZB(c){return/^<a[>\s]/i.test(c)}function JB(c){return/^<\/a\s*>/i.test(c)}var KB=function(a){var o,u,g,m,k,w,S,D,F,H,q,X,$,Z,ae,J,O=a.tokens,se;if(a.md.options.linkify){for(u=0,g=O.length;u<g;u++)if(!(O[u].type!=="inline"||!a.md.linkify.pretest(O[u].content)))for(m=O[u].children,$=0,o=m.length-1;o>=0;o--){if(w=m[o],w.type==="link_close"){for(o--;m[o].level!==w.level&&m[o].type!=="link_open";)o--;continue}if(w.type==="html_inline"&&(ZB(w.content)&&$>0&&$--,JB(w.content)&&$++),!($>0)&&w.type==="text"&&a.md.linkify.test(w.content)){for(F=w.content,se=a.md.linkify.match(F),S=[],X=w.level,q=0,se.length>0&&se[0].index===0&&o>0&&m[o-1].type==="text_special"&&(se=se.slice(1)),D=0;D<se.length;D++)Z=se[D].url,ae=a.md.normalizeLink(Z),a.md.validateLink(ae)&&(J=se[D].text,se[D].schema?se[D].schema==="mailto:"&&!/^mailto:/i.test(J)?J=a.md.normalizeLinkText("mailto:"+J).replace(/^mailto:/,""):J=a.md.normalizeLinkText(J):J=a.md.normalizeLinkText("http://"+J).replace(/^http:\/\//,""),H=se[D].index,H>q&&(k=new a.Token("text","",0),k.content=F.slice(q,H),k.level=X,S.push(k)),k=new a.Token("link_open","a",1),k.attrs=[["href",ae]],k.level=X++,k.markup="linkify",k.info="auto",S.push(k),k=new a.Token("text","",0),k.content=J,k.level=X,S.push(k),k=new a.Token("link_close","a",-1),k.level=--X,k.markup="linkify",k.info="auto",S.push(k),q=se[D].lastIndex);q<F.length&&(k=new a.Token("text","",0),k.content=F.slice(q),k.level=X,S.push(k)),O[u].children=m=$B(m,o,S)}}}},on=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,QB=/\((c|tm|r)\)/i,eN=/\((c|tm|r)\)/ig,tN={c:"©",r:"®",tm:"™"};function rN(c,a){return tN[a.toLowerCase()]}function aN(c){var a,o,u=0;for(a=c.length-1;a>=0;a--)o=c[a],o.type==="text"&&!u&&(o.content=o.content.replace(eN,rN)),o.type==="link_open"&&o.info==="auto"&&u--,o.type==="link_close"&&o.info==="auto"&&u++}function iN(c){var a,o,u=0;for(a=c.length-1;a>=0;a--)o=c[a],o.type==="text"&&!u&&on.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&u--,o.type==="link_close"&&o.info==="auto"&&u++}var sN=function(a){var o;if(a.md.options.typographer)for(o=a.tokens.length-1;o>=0;o--)a.tokens[o].type==="inline"&&(QB.test(a.tokens[o].content)&&aN(a.tokens[o].children),on.test(a.tokens[o].content)&&iN(a.tokens[o].children))},Qi=_e.isWhiteSpace,es=_e.isPunctChar,ts=_e.isMdAsciiPunct,nN=/['"]/,rs=/['"]/g,as="’";function _r(c,a,o){return c.slice(0,a)+o+c.slice(a+1)}function oN(c,a){var o,u,g,m,k,w,S,D,F,H,q,X,$,Z,ae,J,O,se,le,U,re;for(le=[],o=0;o<c.length;o++){for(u=c[o],S=c[o].level,O=le.length-1;O>=0&&!(le[O].level<=S);O--);if(le.length=O+1,u.type!=="text")continue;g=u.content,k=0,w=g.length;e:for(;k<w&&(rs.lastIndex=k,m=rs.exec(g),!!m);){if(ae=J=!0,k=m.index+1,se=m[0]==="'",F=32,m.index-1>=0)F=g.charCodeAt(m.index-1);else for(O=o-1;O>=0&&!(c[O].type==="softbreak"||c[O].type==="hardbreak");O--)if(c[O].content){F=c[O].content.charCodeAt(c[O].content.length-1);break}if(H=32,k<w)H=g.charCodeAt(k);else for(O=o+1;O<c.length&&!(c[O].type==="softbreak"||c[O].type==="hardbreak");O++)if(c[O].content){H=c[O].content.charCodeAt(0);break}if(q=ts(F)||es(String.fromCharCode(F)),X=ts(H)||es(String.fromCharCode(H)),$=Qi(F),Z=Qi(H),Z?ae=!1:X&&($||q||(ae=!1)),$?J=!1:q&&(Z||X||(J=!1)),H===34&&m[0]==='"'&&F>=48&&F<=57&&(J=ae=!1),ae&&J&&(ae=q,J=X),!ae&&!J){se&&(u.content=_r(u.content,m.index,as));continue}if(J){for(O=le.length-1;O>=0&&(D=le[O],!(le[O].level<S));O--)if(D.single===se&&le[O].level===S){D=le[O],se?(U=a.md.options.quotes[2],re=a.md.options.quotes[3]):(U=a.md.options.quotes[0],re=a.md.options.quotes[1]),u.content=_r(u.content,m.index,re),c[D.token].content=_r(c[D.token].content,D.pos,U),k+=re.length-1,D.token===o&&(k+=U.length-1),g=u.content,w=g.length,le.length=O;continue e}}ae?le.push({token:o,pos:m.index,single:se,level:S}):J&&se&&(u.content=_r(u.content,m.index,as))}}}var lN=function(a){var o;if(a.md.options.typographer)for(o=a.tokens.length-1;o>=0;o--)a.tokens[o].type!=="inline"||!nN.test(a.tokens[o].content)||oN(a.tokens[o].children,a)},cN=function(a){var o,u,g,m,k,w,S=a.tokens;for(o=0,u=S.length;o<u;o++)if(S[o].type==="inline"){for(g=S[o].children,k=g.length,m=0;m<k;m++)g[m].type==="text_special"&&(g[m].type="text");for(m=w=0;m<k;m++)g[m].type==="text"&&m+1<k&&g[m+1].type==="text"?g[m+1].content=g[m].content+g[m+1].content:(m!==w&&(g[w]=g[m]),w++);m!==w&&(g.length=w)}};function pr(c,a,o){this.type=c,this.tag=a,this.attrs=null,this.map=null,this.nesting=o,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}pr.prototype.attrIndex=function(a){var o,u,g;if(!this.attrs)return-1;for(o=this.attrs,u=0,g=o.length;u<g;u++)if(o[u][0]===a)return u;return-1};pr.prototype.attrPush=function(a){this.attrs?this.attrs.push(a):this.attrs=[a]};pr.prototype.attrSet=function(a,o){var u=this.attrIndex(a),g=[a,o];u<0?this.attrPush(g):this.attrs[u]=g};pr.prototype.attrGet=function(a){var o=this.attrIndex(a),u=null;return o>=0&&(u=this.attrs[o][1]),u};pr.prototype.attrJoin=function(a,o){var u=this.attrIndex(a);u<0?this.attrPush([a,o]):this.attrs[u][1]=this.attrs[u][1]+" "+o};var ii=pr,hN=ii;function ln(c,a,o){this.src=c,this.env=o,this.tokens=[],this.inlineMode=!1,this.md=a}ln.prototype.Token=hN;var uN=ln,dN=ai,Ma=[["normalize",GB],["block",jB],["inline",UB],["linkify",KB],["replacements",sN],["smartquotes",lN],["text_join",cN]];function si(){this.ruler=new dN;for(var c=0;c<Ma.length;c++)this.ruler.push(Ma[c][0],Ma[c][1])}si.prototype.process=function(c){var a,o,u;for(u=this.ruler.getRules(""),a=0,o=u.length;a<o;a++)u[a](c)};si.prototype.State=uN;var fN=si,za=_e.isSpace;function Ta(c,a){var o=c.bMarks[a]+c.tShift[a],u=c.eMarks[a];return c.src.slice(o,u)}function is(c){var a=[],o=0,u=c.length,g,m=!1,k=0,w="";for(g=c.charCodeAt(o);o<u;)g===124&&(m?(w+=c.substring(k,o-1),k=o):(a.push(w+c.substring(k,o)),w="",k=o+1)),m=g===92,o++,g=c.charCodeAt(o);return a.push(w+c.substring(k)),a}var gN=function(a,o,u,g){var m,k,w,S,D,F,H,q,X,$,Z,ae,J,O,se,le,U,re;if(o+2>u||(F=o+1,a.sCount[F]<a.blkIndent)||a.sCount[F]-a.blkIndent>=4||(w=a.bMarks[F]+a.tShift[F],w>=a.eMarks[F])||(U=a.src.charCodeAt(w++),U!==124&&U!==45&&U!==58)||w>=a.eMarks[F]||(re=a.src.charCodeAt(w++),re!==124&&re!==45&&re!==58&&!za(re))||U===45&&za(re))return!1;for(;w<a.eMarks[F];){if(m=a.src.charCodeAt(w),m!==124&&m!==45&&m!==58&&!za(m))return!1;w++}for(k=Ta(a,o+1),H=k.split("|"),$=[],S=0;S<H.length;S++){if(Z=H[S].trim(),!Z){if(S===0||S===H.length-1)continue;return!1}if(!/^:?-+:?$/.test(Z))return!1;Z.charCodeAt(Z.length-1)===58?$.push(Z.charCodeAt(0)===58?"center":"right"):Z.charCodeAt(0)===58?$.push("left"):$.push("")}if(k=Ta(a,o).trim(),k.indexOf("|")===-1||a.sCount[o]-a.blkIndent>=4||(H=is(k),H.length&&H[0]===""&&H.shift(),H.length&&H[H.length-1]===""&&H.pop(),q=H.length,q===0||q!==$.length))return!1;if(g)return!0;for(O=a.parentType,a.parentType="table",le=a.md.block.ruler.getRules("blockquote"),X=a.push("table_open","table",1),X.map=ae=[o,0],X=a.push("thead_open","thead",1),X.map=[o,o+1],X=a.push("tr_open","tr",1),X.map=[o,o+1],S=0;S<H.length;S++)X=a.push("th_open","th",1),$[S]&&(X.attrs=[["style","text-align:"+$[S]]]),X=a.push("inline","",0),X.content=H[S].trim(),X.children=[],X=a.push("th_close","th",-1);for(X=a.push("tr_close","tr",-1),X=a.push("thead_close","thead",-1),F=o+2;F<u&&!(a.sCount[F]<a.blkIndent);F++){for(se=!1,S=0,D=le.length;S<D;S++)if(le[S](a,F,u,!0)){se=!0;break}if(se||(k=Ta(a,F).trim(),!k)||a.sCount[F]-a.blkIndent>=4)break;for(H=is(k),H.length&&H[0]===""&&H.shift(),H.length&&H[H.length-1]===""&&H.pop(),F===o+2&&(X=a.push("tbody_open","tbody",1),X.map=J=[o+2,0]),X=a.push("tr_open","tr",1),X.map=[F,F+1],S=0;S<q;S++)X=a.push("td_open","td",1),$[S]&&(X.attrs=[["style","text-align:"+$[S]]]),X=a.push("inline","",0),X.content=H[S]?H[S].trim():"",X.children=[],X=a.push("td_close","td",-1);X=a.push("tr_close","tr",-1)}return J&&(X=a.push("tbody_close","tbody",-1),J[1]=F),X=a.push("table_close","table",-1),ae[1]=F,a.parentType=O,a.line=F,!0},pN=function(a,o,u){var g,m,k;if(a.sCount[o]-a.blkIndent<4)return!1;for(m=g=o+1;g<u;){if(a.isEmpty(g)){g++;continue}if(a.sCount[g]-a.blkIndent>=4){g++,m=g;continue}break}return a.line=m,k=a.push("code_block","code",0),k.content=a.getLines(o,m,4+a.blkIndent,!1)+`
|
|
30
|
+
`,k.map=[o,a.line],!0},mN=function(a,o,u,g){var m,k,w,S,D,F,H,q=!1,X=a.bMarks[o]+a.tShift[o],$=a.eMarks[o];if(a.sCount[o]-a.blkIndent>=4||X+3>$||(m=a.src.charCodeAt(X),m!==126&&m!==96)||(D=X,X=a.skipChars(X,m),k=X-D,k<3)||(H=a.src.slice(D,X),w=a.src.slice(X,$),m===96&&w.indexOf(String.fromCharCode(m))>=0))return!1;if(g)return!0;for(S=o;S++,!(S>=u||(X=D=a.bMarks[S]+a.tShift[S],$=a.eMarks[S],X<$&&a.sCount[S]<a.blkIndent));)if(a.src.charCodeAt(X)===m&&!(a.sCount[S]-a.blkIndent>=4)&&(X=a.skipChars(X,m),!(X-D<k)&&(X=a.skipSpaces(X),!(X<$)))){q=!0;break}return k=a.sCount[o],a.line=S+(q?1:0),F=a.push("fence","code",0),F.info=w,F.content=a.getLines(o+1,S,k,!0),F.markup=H,F.map=[o,a.line],!0},ss=_e.isSpace,xN=function(a,o,u,g){var m,k,w,S,D,F,H,q,X,$,Z,ae,J,O,se,le,U,re,fe,ve,Ee=a.lineMax,we=a.bMarks[o]+a.tShift[o],Ce=a.eMarks[o];if(a.sCount[o]-a.blkIndent>=4||a.src.charCodeAt(we++)!==62)return!1;if(g)return!0;for(S=X=a.sCount[o]+1,a.src.charCodeAt(we)===32?(we++,S++,X++,m=!1,le=!0):a.src.charCodeAt(we)===9?(le=!0,(a.bsCount[o]+X)%4===3?(we++,S++,X++,m=!1):m=!0):le=!1,$=[a.bMarks[o]],a.bMarks[o]=we;we<Ce&&(k=a.src.charCodeAt(we),ss(k));){k===9?X+=4-(X+a.bsCount[o]+(m?1:0))%4:X++;we++}for(Z=[a.bsCount[o]],a.bsCount[o]=a.sCount[o]+1+(le?1:0),F=we>=Ce,O=[a.sCount[o]],a.sCount[o]=X-S,se=[a.tShift[o]],a.tShift[o]=we-a.bMarks[o],re=a.md.block.ruler.getRules("blockquote"),J=a.parentType,a.parentType="blockquote",q=o+1;q<u&&(ve=a.sCount[q]<a.blkIndent,we=a.bMarks[q]+a.tShift[q],Ce=a.eMarks[q],!(we>=Ce));q++){if(a.src.charCodeAt(we++)===62&&!ve){for(S=X=a.sCount[q]+1,a.src.charCodeAt(we)===32?(we++,S++,X++,m=!1,le=!0):a.src.charCodeAt(we)===9?(le=!0,(a.bsCount[q]+X)%4===3?(we++,S++,X++,m=!1):m=!0):le=!1,$.push(a.bMarks[q]),a.bMarks[q]=we;we<Ce&&(k=a.src.charCodeAt(we),ss(k));){k===9?X+=4-(X+a.bsCount[q]+(m?1:0))%4:X++;we++}F=we>=Ce,Z.push(a.bsCount[q]),a.bsCount[q]=a.sCount[q]+1+(le?1:0),O.push(a.sCount[q]),a.sCount[q]=X-S,se.push(a.tShift[q]),a.tShift[q]=we-a.bMarks[q];continue}if(F)break;for(U=!1,w=0,D=re.length;w<D;w++)if(re[w](a,q,u,!0)){U=!0;break}if(U){a.lineMax=q,a.blkIndent!==0&&($.push(a.bMarks[q]),Z.push(a.bsCount[q]),se.push(a.tShift[q]),O.push(a.sCount[q]),a.sCount[q]-=a.blkIndent);break}$.push(a.bMarks[q]),Z.push(a.bsCount[q]),se.push(a.tShift[q]),O.push(a.sCount[q]),a.sCount[q]=-1}for(ae=a.blkIndent,a.blkIndent=0,fe=a.push("blockquote_open","blockquote",1),fe.markup=">",fe.map=H=[o,0],a.md.block.tokenize(a,o,q),fe=a.push("blockquote_close","blockquote",-1),fe.markup=">",a.lineMax=Ee,a.parentType=J,H[1]=a.line,w=0;w<se.length;w++)a.bMarks[w+o]=$[w],a.tShift[w+o]=se[w],a.sCount[w+o]=O[w],a.bsCount[w+o]=Z[w];return a.blkIndent=ae,!0},bN=_e.isSpace,vN=function(a,o,u,g){var m,k,w,S,D=a.bMarks[o]+a.tShift[o],F=a.eMarks[o];if(a.sCount[o]-a.blkIndent>=4||(m=a.src.charCodeAt(D++),m!==42&&m!==45&&m!==95))return!1;for(k=1;D<F;){if(w=a.src.charCodeAt(D++),w!==m&&!bN(w))return!1;w===m&&k++}return k<3?!1:(g||(a.line=o+1,S=a.push("hr","hr",0),S.map=[o,a.line],S.markup=Array(k+1).join(String.fromCharCode(m))),!0)},cn=_e.isSpace;function ns(c,a){var o,u,g,m;return u=c.bMarks[a]+c.tShift[a],g=c.eMarks[a],o=c.src.charCodeAt(u++),o!==42&&o!==45&&o!==43||u<g&&(m=c.src.charCodeAt(u),!cn(m))?-1:u}function os(c,a){var o,u=c.bMarks[a]+c.tShift[a],g=u,m=c.eMarks[a];if(g+1>=m||(o=c.src.charCodeAt(g++),o<48||o>57))return-1;for(;;){if(g>=m)return-1;if(o=c.src.charCodeAt(g++),o>=48&&o<=57){if(g-u>=10)return-1;continue}if(o===41||o===46)break;return-1}return g<m&&(o=c.src.charCodeAt(g),!cn(o))?-1:g}function yN(c,a){var o,u,g=c.level+2;for(o=a+2,u=c.tokens.length-2;o<u;o++)c.tokens[o].level===g&&c.tokens[o].type==="paragraph_open"&&(c.tokens[o+2].hidden=!0,c.tokens[o].hidden=!0,o+=2)}var wN=function(a,o,u,g){var m,k,w,S,D,F,H,q,X,$,Z,ae,J,O,se,le,U,re,fe,ve,Ee,we,Ce,Pe,Ze,ne,Me,ke,qe=!1,Je=!0;if(a.sCount[o]-a.blkIndent>=4||a.listIndent>=0&&a.sCount[o]-a.listIndent>=4&&a.sCount[o]<a.blkIndent)return!1;if(g&&a.parentType==="paragraph"&&a.sCount[o]>=a.blkIndent&&(qe=!0),(Ce=os(a,o))>=0){if(H=!0,Ze=a.bMarks[o]+a.tShift[o],J=Number(a.src.slice(Ze,Ce-1)),qe&&J!==1)return!1}else if((Ce=ns(a,o))>=0)H=!1;else return!1;if(qe&&a.skipSpaces(Ce)>=a.eMarks[o])return!1;if(ae=a.src.charCodeAt(Ce-1),g)return!0;for(Z=a.tokens.length,H?(ke=a.push("ordered_list_open","ol",1),J!==1&&(ke.attrs=[["start",J]])):ke=a.push("bullet_list_open","ul",1),ke.map=$=[o,0],ke.markup=String.fromCharCode(ae),se=o,Pe=!1,Me=a.md.block.ruler.getRules("list"),re=a.parentType,a.parentType="list";se<u;){for(we=Ce,O=a.eMarks[se],F=le=a.sCount[se]+Ce-(a.bMarks[o]+a.tShift[o]);we<O;){if(m=a.src.charCodeAt(we),m===9)le+=4-(le+a.bsCount[se])%4;else if(m===32)le++;else break;we++}if(k=we,k>=O?D=1:D=le-F,D>4&&(D=1),S=F+D,ke=a.push("list_item_open","li",1),ke.markup=String.fromCharCode(ae),ke.map=q=[o,0],H&&(ke.info=a.src.slice(Ze,Ce-1)),Ee=a.tight,ve=a.tShift[o],fe=a.sCount[o],U=a.listIndent,a.listIndent=a.blkIndent,a.blkIndent=S,a.tight=!0,a.tShift[o]=k-a.bMarks[o],a.sCount[o]=le,k>=O&&a.isEmpty(o+1)?a.line=Math.min(a.line+2,u):a.md.block.tokenize(a,o,u,!0),(!a.tight||Pe)&&(Je=!1),Pe=a.line-o>1&&a.isEmpty(a.line-1),a.blkIndent=a.listIndent,a.listIndent=U,a.tShift[o]=ve,a.sCount[o]=fe,a.tight=Ee,ke=a.push("list_item_close","li",-1),ke.markup=String.fromCharCode(ae),se=o=a.line,q[1]=se,k=a.bMarks[o],se>=u||a.sCount[se]<a.blkIndent||a.sCount[o]-a.blkIndent>=4)break;for(ne=!1,w=0,X=Me.length;w<X;w++)if(Me[w](a,se,u,!0)){ne=!0;break}if(ne)break;if(H){if(Ce=os(a,se),Ce<0)break;Ze=a.bMarks[se]+a.tShift[se]}else if(Ce=ns(a,se),Ce<0)break;if(ae!==a.src.charCodeAt(Ce-1))break}return H?ke=a.push("ordered_list_close","ol",-1):ke=a.push("bullet_list_close","ul",-1),ke.markup=String.fromCharCode(ae),$[1]=se,a.line=se,a.parentType=re,Je&&yN(a,Z),!0},kN=_e.normalizeReference,Br=_e.isSpace,AN=function(a,o,u,g){var m,k,w,S,D,F,H,q,X,$,Z,ae,J,O,se,le,U=0,re=a.bMarks[o]+a.tShift[o],fe=a.eMarks[o],ve=o+1;if(a.sCount[o]-a.blkIndent>=4||a.src.charCodeAt(re)!==91)return!1;for(;++re<fe;)if(a.src.charCodeAt(re)===93&&a.src.charCodeAt(re-1)!==92){if(re+1===fe||a.src.charCodeAt(re+1)!==58)return!1;break}for(S=a.lineMax,se=a.md.block.ruler.getRules("reference"),$=a.parentType,a.parentType="reference";ve<S&&!a.isEmpty(ve);ve++)if(!(a.sCount[ve]-a.blkIndent>3)&&!(a.sCount[ve]<0)){for(O=!1,F=0,H=se.length;F<H;F++)if(se[F](a,ve,S,!0)){O=!0;break}if(O)break}for(J=a.getLines(o,ve,a.blkIndent,!1).trim(),fe=J.length,re=1;re<fe;re++){if(m=J.charCodeAt(re),m===91)return!1;if(m===93){X=re;break}else m===10?U++:m===92&&(re++,re<fe&&J.charCodeAt(re)===10&&U++)}if(X<0||J.charCodeAt(X+1)!==58)return!1;for(re=X+2;re<fe;re++)if(m=J.charCodeAt(re),m===10)U++;else if(!Br(m))break;if(Z=a.md.helpers.parseLinkDestination(J,re,fe),!Z.ok||(D=a.md.normalizeLink(Z.str),!a.md.validateLink(D)))return!1;for(re=Z.pos,U+=Z.lines,k=re,w=U,ae=re;re<fe;re++)if(m=J.charCodeAt(re),m===10)U++;else if(!Br(m))break;for(Z=a.md.helpers.parseLinkTitle(J,re,fe),re<fe&&ae!==re&&Z.ok?(le=Z.str,re=Z.pos,U+=Z.lines):(le="",re=k,U=w);re<fe&&(m=J.charCodeAt(re),!!Br(m));)re++;if(re<fe&&J.charCodeAt(re)!==10&&le)for(le="",re=k,U=w;re<fe&&(m=J.charCodeAt(re),!!Br(m));)re++;return re<fe&&J.charCodeAt(re)!==10||(q=kN(J.slice(1,X)),!q)?!1:(g||(typeof a.env.references>"u"&&(a.env.references={}),typeof a.env.references[q]>"u"&&(a.env.references[q]={title:le,href:D}),a.parentType=$,a.line=o+U+1),!0)},SN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ia={},CN="[a-zA-Z_:][a-zA-Z0-9:._-]*",MN="[^\"'=<>`\\x00-\\x20]+",zN="'[^']*'",TN='"[^"]*"',LN="(?:"+MN+"|"+zN+"|"+TN+")",EN="(?:\\s+"+CN+"(?:\\s*=\\s*"+LN+")?)",hn="<[A-Za-z][A-Za-z0-9\\-]*"+EN+"*\\s*\\/?>",un="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",DN="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",PN="<[?][\\s\\S]*?[?]>",IN="<![A-Z]+\\s+[^>]*>",RN="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",FN=new RegExp("^(?:"+hn+"|"+un+"|"+DN+"|"+PN+"|"+IN+"|"+RN+")"),_N=new RegExp("^(?:"+hn+"|"+un+")");ia.HTML_TAG_RE=FN;ia.HTML_OPEN_CLOSE_TAG_RE=_N;var BN=SN,NN=ia.HTML_OPEN_CLOSE_TAG_RE,or=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+BN.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(NN.source+"\\s*$"),/^$/,!1]],ON=function(a,o,u,g){var m,k,w,S,D=a.bMarks[o]+a.tShift[o],F=a.eMarks[o];if(a.sCount[o]-a.blkIndent>=4||!a.md.options.html||a.src.charCodeAt(D)!==60)return!1;for(S=a.src.slice(D,F),m=0;m<or.length&&!or[m][0].test(S);m++);if(m===or.length)return!1;if(g)return or[m][2];if(k=o+1,!or[m][1].test(S)){for(;k<u&&!(a.sCount[k]<a.blkIndent);k++)if(D=a.bMarks[k]+a.tShift[k],F=a.eMarks[k],S=a.src.slice(D,F),or[m][1].test(S)){S.length!==0&&k++;break}}return a.line=k,w=a.push("html_block","",0),w.map=[o,k],w.content=a.getLines(o,k,a.blkIndent,!0),!0},ls=_e.isSpace,HN=function(a,o,u,g){var m,k,w,S,D=a.bMarks[o]+a.tShift[o],F=a.eMarks[o];if(a.sCount[o]-a.blkIndent>=4||(m=a.src.charCodeAt(D),m!==35||D>=F))return!1;for(k=1,m=a.src.charCodeAt(++D);m===35&&D<F&&k<=6;)k++,m=a.src.charCodeAt(++D);return k>6||D<F&&!ls(m)?!1:(g||(F=a.skipSpacesBack(F,D),w=a.skipCharsBack(F,35,D),w>D&&ls(a.src.charCodeAt(w-1))&&(F=w),a.line=o+1,S=a.push("heading_open","h"+String(k),1),S.markup="########".slice(0,k),S.map=[o,a.line],S=a.push("inline","",0),S.content=a.src.slice(D,F).trim(),S.map=[o,a.line],S.children=[],S=a.push("heading_close","h"+String(k),-1),S.markup="########".slice(0,k)),!0)},XN=function(a,o,u){var g,m,k,w,S,D,F,H,q,X=o+1,$,Z=a.md.block.ruler.getRules("paragraph");if(a.sCount[o]-a.blkIndent>=4)return!1;for($=a.parentType,a.parentType="paragraph";X<u&&!a.isEmpty(X);X++)if(!(a.sCount[X]-a.blkIndent>3)){if(a.sCount[X]>=a.blkIndent&&(D=a.bMarks[X]+a.tShift[X],F=a.eMarks[X],D<F&&(q=a.src.charCodeAt(D),(q===45||q===61)&&(D=a.skipChars(D,q),D=a.skipSpaces(D),D>=F)))){H=q===61?1:2;break}if(!(a.sCount[X]<0)){for(m=!1,k=0,w=Z.length;k<w;k++)if(Z[k](a,X,u,!0)){m=!0;break}if(m)break}}return H?(g=a.getLines(o,X,a.blkIndent,!1).trim(),a.line=X+1,S=a.push("heading_open","h"+String(H),1),S.markup=String.fromCharCode(q),S.map=[o,a.line],S=a.push("inline","",0),S.content=g,S.map=[o,a.line-1],S.children=[],S=a.push("heading_close","h"+String(H),-1),S.markup=String.fromCharCode(q),a.parentType=$,!0):!1},YN=function(a,o){var u,g,m,k,w,S,D=o+1,F=a.md.block.ruler.getRules("paragraph"),H=a.lineMax;for(S=a.parentType,a.parentType="paragraph";D<H&&!a.isEmpty(D);D++)if(!(a.sCount[D]-a.blkIndent>3)&&!(a.sCount[D]<0)){for(g=!1,m=0,k=F.length;m<k;m++)if(F[m](a,D,H,!0)){g=!0;break}if(g)break}return u=a.getLines(o,D,a.blkIndent,!1).trim(),a.line=D,w=a.push("paragraph_open","p",1),w.map=[o,a.line],w=a.push("inline","",0),w.content=u,w.map=[o,a.line],w.children=[],w=a.push("paragraph_close","p",-1),a.parentType=S,!0},dn=ii,sa=_e.isSpace;function Lt(c,a,o,u){var g,m,k,w,S,D,F,H;for(this.src=c,this.md=a,this.env=o,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",m=this.src,H=!1,k=w=D=F=0,S=m.length;w<S;w++){if(g=m.charCodeAt(w),!H)if(sa(g)){D++,g===9?F+=4-F%4:F++;continue}else H=!0;(g===10||w===S-1)&&(g!==10&&w++,this.bMarks.push(k),this.eMarks.push(w),this.tShift.push(D),this.sCount.push(F),this.bsCount.push(0),H=!1,D=0,F=0,k=w+1)}this.bMarks.push(m.length),this.eMarks.push(m.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Lt.prototype.push=function(c,a,o){var u=new dn(c,a,o);return u.block=!0,o<0&&this.level--,u.level=this.level,o>0&&this.level++,this.tokens.push(u),u};Lt.prototype.isEmpty=function(a){return this.bMarks[a]+this.tShift[a]>=this.eMarks[a]};Lt.prototype.skipEmptyLines=function(a){for(var o=this.lineMax;a<o&&!(this.bMarks[a]+this.tShift[a]<this.eMarks[a]);a++);return a};Lt.prototype.skipSpaces=function(a){for(var o,u=this.src.length;a<u&&(o=this.src.charCodeAt(a),!!sa(o));a++);return a};Lt.prototype.skipSpacesBack=function(a,o){if(a<=o)return a;for(;a>o;)if(!sa(this.src.charCodeAt(--a)))return a+1;return a};Lt.prototype.skipChars=function(a,o){for(var u=this.src.length;a<u&&this.src.charCodeAt(a)===o;a++);return a};Lt.prototype.skipCharsBack=function(a,o,u){if(a<=u)return a;for(;a>u;)if(o!==this.src.charCodeAt(--a))return a+1;return a};Lt.prototype.getLines=function(a,o,u,g){var m,k,w,S,D,F,H,q=a;if(a>=o)return"";for(F=new Array(o-a),m=0;q<o;q++,m++){for(k=0,H=S=this.bMarks[q],q+1<o||g?D=this.eMarks[q]+1:D=this.eMarks[q];S<D&&k<u;){if(w=this.src.charCodeAt(S),sa(w))w===9?k+=4-(k+this.bsCount[q])%4:k++;else if(S-H<this.tShift[q])k++;else break;S++}k>u?F[m]=new Array(k-u+1).join(" ")+this.src.slice(S,D):F[m]=this.src.slice(S,D)}return F.join("")};Lt.prototype.Token=dn;var qN=Lt,VN=ai,Nr=[["table",gN,["paragraph","reference"]],["code",pN],["fence",mN,["paragraph","reference","blockquote","list"]],["blockquote",xN,["paragraph","reference","blockquote","list"]],["hr",vN,["paragraph","reference","blockquote","list"]],["list",wN,["paragraph","reference","blockquote"]],["reference",AN],["html_block",ON,["paragraph","reference","blockquote"]],["heading",HN,["paragraph","reference","blockquote"]],["lheading",XN],["paragraph",YN]];function na(){this.ruler=new VN;for(var c=0;c<Nr.length;c++)this.ruler.push(Nr[c][0],Nr[c][1],{alt:(Nr[c][2]||[]).slice()})}na.prototype.tokenize=function(c,a,o){for(var u,g,m=this.ruler.getRules(""),k=m.length,w=a,S=!1,D=c.md.options.maxNesting;w<o&&(c.line=w=c.skipEmptyLines(w),!(w>=o||c.sCount[w]<c.blkIndent));){if(c.level>=D){c.line=o;break}for(g=0;g<k&&(u=m[g](c,w,o,!1),!u);g++);c.tight=!S,c.isEmpty(c.line-1)&&(S=!0),w=c.line,w<o&&c.isEmpty(w)&&(S=!0,w++,c.line=w)}};na.prototype.parse=function(c,a,o,u){var g;c&&(g=new this.State(c,a,o,u),this.tokenize(g,g.line,g.lineMax))};na.prototype.State=qN;var WN=na;function GN(c){switch(c){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var jN=function(a,o){for(var u=a.pos;u<a.posMax&&!GN(a.src.charCodeAt(u));)u++;return u===a.pos?!1:(o||(a.pending+=a.src.slice(a.pos,u)),a.pos=u,!0)},UN=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,$N=function(a,o){var u,g,m,k,w,S,D,F;return!a.md.options.linkify||a.linkLevel>0||(u=a.pos,g=a.posMax,u+3>g)||a.src.charCodeAt(u)!==58||a.src.charCodeAt(u+1)!==47||a.src.charCodeAt(u+2)!==47||(m=a.pending.match(UN),!m)||(k=m[1],w=a.md.linkify.matchAtStart(a.src.slice(u-k.length)),!w)||(S=w.url,S=S.replace(/\*+$/,""),D=a.md.normalizeLink(S),!a.md.validateLink(D))?!1:(o||(a.pending=a.pending.slice(0,-k.length),F=a.push("link_open","a",1),F.attrs=[["href",D]],F.markup="linkify",F.info="auto",F=a.push("text","",0),F.content=a.md.normalizeLinkText(S),F=a.push("link_close","a",-1),F.markup="linkify",F.info="auto"),a.pos+=S.length-k.length,!0)},ZN=_e.isSpace,JN=function(a,o){var u,g,m,k=a.pos;if(a.src.charCodeAt(k)!==10)return!1;if(u=a.pending.length-1,g=a.posMax,!o)if(u>=0&&a.pending.charCodeAt(u)===32)if(u>=1&&a.pending.charCodeAt(u-1)===32){for(m=u-1;m>=1&&a.pending.charCodeAt(m-1)===32;)m--;a.pending=a.pending.slice(0,m),a.push("hardbreak","br",0)}else a.pending=a.pending.slice(0,-1),a.push("softbreak","br",0);else a.push("softbreak","br",0);for(k++;k<g&&ZN(a.src.charCodeAt(k));)k++;return a.pos=k,!0},KN=_e.isSpace,ni=[];for(var cs=0;cs<256;cs++)ni.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(c){ni[c.charCodeAt(0)]=1});var QN=function(a,o){var u,g,m,k,w,S=a.pos,D=a.posMax;if(a.src.charCodeAt(S)!==92||(S++,S>=D))return!1;if(u=a.src.charCodeAt(S),u===10){for(o||a.push("hardbreak","br",0),S++;S<D&&(u=a.src.charCodeAt(S),!!KN(u));)S++;return a.pos=S,!0}return k=a.src[S],u>=55296&&u<=56319&&S+1<D&&(g=a.src.charCodeAt(S+1),g>=56320&&g<=57343&&(k+=a.src[S+1],S++)),m="\\"+k,o||(w=a.push("text_special","",0),u<256&&ni[u]!==0?w.content=k:w.content=m,w.markup=m,w.info="escape"),a.pos=S+1,!0},eO=function(a,o){var u,g,m,k,w,S,D,F,H=a.pos,q=a.src.charCodeAt(H);if(q!==96)return!1;for(u=H,H++,g=a.posMax;H<g&&a.src.charCodeAt(H)===96;)H++;if(m=a.src.slice(u,H),D=m.length,a.backticksScanned&&(a.backticks[D]||0)<=u)return o||(a.pending+=m),a.pos+=D,!0;for(w=S=H;(w=a.src.indexOf("`",S))!==-1;){for(S=w+1;S<g&&a.src.charCodeAt(S)===96;)S++;if(F=S-w,F===D)return o||(k=a.push("code_inline","code",0),k.markup=m,k.content=a.src.slice(H,w).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),a.pos=S,!0;a.backticks[F]=w}return a.backticksScanned=!0,o||(a.pending+=m),a.pos+=D,!0},oa={};oa.tokenize=function(a,o){var u,g,m,k,w,S=a.pos,D=a.src.charCodeAt(S);if(o||D!==126||(g=a.scanDelims(a.pos,!0),k=g.length,w=String.fromCharCode(D),k<2))return!1;for(k%2&&(m=a.push("text","",0),m.content=w,k--),u=0;u<k;u+=2)m=a.push("text","",0),m.content=w+w,a.delimiters.push({marker:D,length:0,token:a.tokens.length-1,end:-1,open:g.can_open,close:g.can_close});return a.pos+=g.length,!0};function hs(c,a){var o,u,g,m,k,w=[],S=a.length;for(o=0;o<S;o++)g=a[o],g.marker===126&&g.end!==-1&&(m=a[g.end],k=c.tokens[g.token],k.type="s_open",k.tag="s",k.nesting=1,k.markup="~~",k.content="",k=c.tokens[m.token],k.type="s_close",k.tag="s",k.nesting=-1,k.markup="~~",k.content="",c.tokens[m.token-1].type==="text"&&c.tokens[m.token-1].content==="~"&&w.push(m.token-1));for(;w.length;){for(o=w.pop(),u=o+1;u<c.tokens.length&&c.tokens[u].type==="s_close";)u++;u--,o!==u&&(k=c.tokens[u],c.tokens[u]=c.tokens[o],c.tokens[o]=k)}}oa.postProcess=function(a){var o,u=a.tokens_meta,g=a.tokens_meta.length;for(hs(a,a.delimiters),o=0;o<g;o++)u[o]&&u[o].delimiters&&hs(a,u[o].delimiters)};var la={};la.tokenize=function(a,o){var u,g,m,k=a.pos,w=a.src.charCodeAt(k);if(o||w!==95&&w!==42)return!1;for(g=a.scanDelims(a.pos,w===42),u=0;u<g.length;u++)m=a.push("text","",0),m.content=String.fromCharCode(w),a.delimiters.push({marker:w,length:g.length,token:a.tokens.length-1,end:-1,open:g.can_open,close:g.can_close});return a.pos+=g.length,!0};function us(c,a){var o,u,g,m,k,w,S=a.length;for(o=S-1;o>=0;o--)u=a[o],!(u.marker!==95&&u.marker!==42)&&u.end!==-1&&(g=a[u.end],w=o>0&&a[o-1].end===u.end+1&&a[o-1].marker===u.marker&&a[o-1].token===u.token-1&&a[u.end+1].token===g.token+1,k=String.fromCharCode(u.marker),m=c.tokens[u.token],m.type=w?"strong_open":"em_open",m.tag=w?"strong":"em",m.nesting=1,m.markup=w?k+k:k,m.content="",m=c.tokens[g.token],m.type=w?"strong_close":"em_close",m.tag=w?"strong":"em",m.nesting=-1,m.markup=w?k+k:k,m.content="",w&&(c.tokens[a[o-1].token].content="",c.tokens[a[u.end+1].token].content="",o--))}la.postProcess=function(a){var o,u=a.tokens_meta,g=a.tokens_meta.length;for(us(a,a.delimiters),o=0;o<g;o++)u[o]&&u[o].delimiters&&us(a,u[o].delimiters)};var tO=_e.normalizeReference,La=_e.isSpace,rO=function(a,o){var u,g,m,k,w,S,D,F,H,q="",X="",$=a.pos,Z=a.posMax,ae=a.pos,J=!0;if(a.src.charCodeAt(a.pos)!==91||(w=a.pos+1,k=a.md.helpers.parseLinkLabel(a,a.pos,!0),k<0))return!1;if(S=k+1,S<Z&&a.src.charCodeAt(S)===40){for(J=!1,S++;S<Z&&(g=a.src.charCodeAt(S),!(!La(g)&&g!==10));S++);if(S>=Z)return!1;if(ae=S,D=a.md.helpers.parseLinkDestination(a.src,S,a.posMax),D.ok){for(q=a.md.normalizeLink(D.str),a.md.validateLink(q)?S=D.pos:q="",ae=S;S<Z&&(g=a.src.charCodeAt(S),!(!La(g)&&g!==10));S++);if(D=a.md.helpers.parseLinkTitle(a.src,S,a.posMax),S<Z&&ae!==S&&D.ok)for(X=D.str,S=D.pos;S<Z&&(g=a.src.charCodeAt(S),!(!La(g)&&g!==10));S++);}(S>=Z||a.src.charCodeAt(S)!==41)&&(J=!0),S++}if(J){if(typeof a.env.references>"u")return!1;if(S<Z&&a.src.charCodeAt(S)===91?(ae=S+1,S=a.md.helpers.parseLinkLabel(a,S),S>=0?m=a.src.slice(ae,S++):S=k+1):S=k+1,m||(m=a.src.slice(w,k)),F=a.env.references[tO(m)],!F)return a.pos=$,!1;q=F.href,X=F.title}return o||(a.pos=w,a.posMax=k,H=a.push("link_open","a",1),H.attrs=u=[["href",q]],X&&u.push(["title",X]),a.linkLevel++,a.md.inline.tokenize(a),a.linkLevel--,H=a.push("link_close","a",-1)),a.pos=S,a.posMax=Z,!0},aO=_e.normalizeReference,Ea=_e.isSpace,iO=function(a,o){var u,g,m,k,w,S,D,F,H,q,X,$,Z,ae="",J=a.pos,O=a.posMax;if(a.src.charCodeAt(a.pos)!==33||a.src.charCodeAt(a.pos+1)!==91||(S=a.pos+2,w=a.md.helpers.parseLinkLabel(a,a.pos+1,!1),w<0))return!1;if(D=w+1,D<O&&a.src.charCodeAt(D)===40){for(D++;D<O&&(g=a.src.charCodeAt(D),!(!Ea(g)&&g!==10));D++);if(D>=O)return!1;for(Z=D,H=a.md.helpers.parseLinkDestination(a.src,D,a.posMax),H.ok&&(ae=a.md.normalizeLink(H.str),a.md.validateLink(ae)?D=H.pos:ae=""),Z=D;D<O&&(g=a.src.charCodeAt(D),!(!Ea(g)&&g!==10));D++);if(H=a.md.helpers.parseLinkTitle(a.src,D,a.posMax),D<O&&Z!==D&&H.ok)for(q=H.str,D=H.pos;D<O&&(g=a.src.charCodeAt(D),!(!Ea(g)&&g!==10));D++);else q="";if(D>=O||a.src.charCodeAt(D)!==41)return a.pos=J,!1;D++}else{if(typeof a.env.references>"u")return!1;if(D<O&&a.src.charCodeAt(D)===91?(Z=D+1,D=a.md.helpers.parseLinkLabel(a,D),D>=0?k=a.src.slice(Z,D++):D=w+1):D=w+1,k||(k=a.src.slice(S,w)),F=a.env.references[aO(k)],!F)return a.pos=J,!1;ae=F.href,q=F.title}return o||(m=a.src.slice(S,w),a.md.inline.parse(m,a.md,a.env,$=[]),X=a.push("image","img",0),X.attrs=u=[["src",ae],["alt",""]],X.children=$,X.content=m,q&&u.push(["title",q])),a.pos=D,a.posMax=O,!0},sO=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,nO=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,oO=function(a,o){var u,g,m,k,w,S,D=a.pos;if(a.src.charCodeAt(D)!==60)return!1;for(w=a.pos,S=a.posMax;;){if(++D>=S||(k=a.src.charCodeAt(D),k===60))return!1;if(k===62)break}return u=a.src.slice(w+1,D),nO.test(u)?(g=a.md.normalizeLink(u),a.md.validateLink(g)?(o||(m=a.push("link_open","a",1),m.attrs=[["href",g]],m.markup="autolink",m.info="auto",m=a.push("text","",0),m.content=a.md.normalizeLinkText(u),m=a.push("link_close","a",-1),m.markup="autolink",m.info="auto"),a.pos+=u.length+2,!0):!1):sO.test(u)?(g=a.md.normalizeLink("mailto:"+u),a.md.validateLink(g)?(o||(m=a.push("link_open","a",1),m.attrs=[["href",g]],m.markup="autolink",m.info="auto",m=a.push("text","",0),m.content=a.md.normalizeLinkText(u),m=a.push("link_close","a",-1),m.markup="autolink",m.info="auto"),a.pos+=u.length+2,!0):!1):!1},lO=ia.HTML_TAG_RE;function cO(c){return/^<a[>\s]/i.test(c)}function hO(c){return/^<\/a\s*>/i.test(c)}function uO(c){var a=c|32;return a>=97&&a<=122}var dO=function(a,o){var u,g,m,k,w=a.pos;return!a.md.options.html||(m=a.posMax,a.src.charCodeAt(w)!==60||w+2>=m)||(u=a.src.charCodeAt(w+1),u!==33&&u!==63&&u!==47&&!uO(u))||(g=a.src.slice(w).match(lO),!g)?!1:(o||(k=a.push("html_inline","",0),k.content=a.src.slice(w,w+g[0].length),cO(k.content)&&a.linkLevel++,hO(k.content)&&a.linkLevel--),a.pos+=g[0].length,!0)},ds=jr,fO=_e.has,gO=_e.isValidEntityCode,fs=_e.fromCodePoint,pO=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,mO=/^&([a-z][a-z0-9]{1,31});/i,xO=function(a,o){var u,g,m,k,w=a.pos,S=a.posMax;if(a.src.charCodeAt(w)!==38||w+1>=S)return!1;if(u=a.src.charCodeAt(w+1),u===35){if(m=a.src.slice(w).match(pO),m)return o||(g=m[1][0].toLowerCase()==="x"?parseInt(m[1].slice(1),16):parseInt(m[1],10),k=a.push("text_special","",0),k.content=gO(g)?fs(g):fs(65533),k.markup=m[0],k.info="entity"),a.pos+=m[0].length,!0}else if(m=a.src.slice(w).match(mO),m&&fO(ds,m[1]))return o||(k=a.push("text_special","",0),k.content=ds[m[1]],k.markup=m[0],k.info="entity"),a.pos+=m[0].length,!0;return!1};function gs(c,a){var o,u,g,m,k,w,S,D,F={},H=a.length;if(H){var q=0,X=-2,$=[];for(o=0;o<H;o++)if(g=a[o],$.push(0),(a[q].marker!==g.marker||X!==g.token-1)&&(q=o),X=g.token,g.length=g.length||0,!!g.close){for(F.hasOwnProperty(g.marker)||(F[g.marker]=[-1,-1,-1,-1,-1,-1]),k=F[g.marker][(g.open?3:0)+g.length%3],u=q-$[q]-1,w=u;u>k;u-=$[u]+1)if(m=a[u],m.marker===g.marker&&m.open&&m.end<0&&(S=!1,(m.close||g.open)&&(m.length+g.length)%3===0&&(m.length%3!==0||g.length%3!==0)&&(S=!0),!S)){D=u>0&&!a[u-1].open?$[u-1]+1:0,$[o]=o-u+D,$[u]=D,g.open=!1,m.end=o,m.close=!1,w=-1,X=-2;break}w!==-1&&(F[g.marker][(g.open?3:0)+(g.length||0)%3]=w)}}}var bO=function(a){var o,u=a.tokens_meta,g=a.tokens_meta.length;for(gs(a,a.delimiters),o=0;o<g;o++)u[o]&&u[o].delimiters&&gs(a,u[o].delimiters)},vO=function(a){var o,u,g=0,m=a.tokens,k=a.tokens.length;for(o=u=0;o<k;o++)m[o].nesting<0&&g--,m[o].level=g,m[o].nesting>0&&g++,m[o].type==="text"&&o+1<k&&m[o+1].type==="text"?m[o+1].content=m[o].content+m[o+1].content:(o!==u&&(m[u]=m[o]),u++);o!==u&&(m.length=u)},oi=ii,ps=_e.isWhiteSpace,ms=_e.isPunctChar,xs=_e.isMdAsciiPunct;function Tr(c,a,o,u){this.src=c,this.env=o,this.md=a,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Tr.prototype.pushPending=function(){var c=new oi("text","",0);return c.content=this.pending,c.level=this.pendingLevel,this.tokens.push(c),this.pending="",c};Tr.prototype.push=function(c,a,o){this.pending&&this.pushPending();var u=new oi(c,a,o),g=null;return o<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,o>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],g={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(g),u};Tr.prototype.scanDelims=function(c,a){var o=c,u,g,m,k,w,S,D,F,H,q=!0,X=!0,$=this.posMax,Z=this.src.charCodeAt(c);for(u=c>0?this.src.charCodeAt(c-1):32;o<$&&this.src.charCodeAt(o)===Z;)o++;return m=o-c,g=o<$?this.src.charCodeAt(o):32,D=xs(u)||ms(String.fromCharCode(u)),H=xs(g)||ms(String.fromCharCode(g)),S=ps(u),F=ps(g),F?q=!1:H&&(S||D||(q=!1)),S?X=!1:D&&(F||H||(X=!1)),a?(k=q,w=X):(k=q&&(!X||D),w=X&&(!q||H)),{can_open:k,can_close:w,length:m}};Tr.prototype.Token=oi;var yO=Tr,bs=ai,Da=[["text",jN],["linkify",$N],["newline",JN],["escape",QN],["backticks",eO],["strikethrough",oa.tokenize],["emphasis",la.tokenize],["link",rO],["image",iO],["autolink",oO],["html_inline",dO],["entity",xO]],Pa=[["balance_pairs",bO],["strikethrough",oa.postProcess],["emphasis",la.postProcess],["fragments_join",vO]];function Lr(){var c;for(this.ruler=new bs,c=0;c<Da.length;c++)this.ruler.push(Da[c][0],Da[c][1]);for(this.ruler2=new bs,c=0;c<Pa.length;c++)this.ruler2.push(Pa[c][0],Pa[c][1])}Lr.prototype.skipToken=function(c){var a,o,u=c.pos,g=this.ruler.getRules(""),m=g.length,k=c.md.options.maxNesting,w=c.cache;if(typeof w[u]<"u"){c.pos=w[u];return}if(c.level<k)for(o=0;o<m&&(c.level++,a=g[o](c,!0),c.level--,!a);o++);else c.pos=c.posMax;a||c.pos++,w[u]=c.pos};Lr.prototype.tokenize=function(c){for(var a,o,u=this.ruler.getRules(""),g=u.length,m=c.posMax,k=c.md.options.maxNesting;c.pos<m;){if(c.level<k)for(o=0;o<g&&(a=u[o](c,!1),!a);o++);if(a){if(c.pos>=m)break;continue}c.pending+=c.src[c.pos++]}c.pending&&c.pushPending()};Lr.prototype.parse=function(c,a,o,u){var g,m,k,w=new this.State(c,a,o,u);for(this.tokenize(w),m=this.ruler2.getRules(""),k=m.length,g=0;g<k;g++)m[g](w)};Lr.prototype.State=yO;var wO=Lr,Ia,vs;function kO(){return vs||(vs=1,Ia=function(c){var a={};c=c||{},a.src_Any=an().source,a.src_Cc=sn().source,a.src_Z=nn().source,a.src_P=ri.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");var o="[><|]";return a.src_pseudo_letter="(?:(?!"+o+"|"+a.src_ZPCc+")"+a.src_Any+")",a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth="(?:(?:(?!"+a.src_ZCc+"|[@/\\[\\]()]).)+@)?",a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator="(?=$|"+o+"|"+a.src_ZPCc+")(?!"+(c["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+a.src_ZPCc+"))",a.src_path="(?:[/?#](?:(?!"+a.src_ZCc+"|"+o+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+a.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+a.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+a.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+a.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+a.src_ZCc+"|[']).)+\\'|\\'(?="+a.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+a.src_ZCc+"|[.]|$)|"+(c["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+a.src_ZCc+"|$)|;(?!"+a.src_ZCc+"|$)|\\!+(?!"+a.src_ZCc+"|[!]|$)|\\?(?!"+a.src_ZCc+"|[?]|$))+|\\/)?",a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+"|"+a.src_pseudo_letter+"{1,63})",a.src_domain="(?:"+a.src_xn+"|(?:"+a.src_pseudo_letter+")|(?:"+a.src_pseudo_letter+"(?:-|"+a.src_pseudo_letter+"){0,61}"+a.src_pseudo_letter+"))",a.src_host="(?:(?:(?:(?:"+a.src_domain+")\\.)*"+a.src_domain+"))",a.tpl_host_fuzzy="(?:"+a.src_ip4+"|(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%)))",a.tpl_host_no_ip_fuzzy="(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%))",a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+a.src_ZPCc+"|>|$))",a.tpl_email_fuzzy="(^|"+o+'|"|\\(|'+a.src_ZCc+")("+a.src_email_name+"@"+a.tpl_host_fuzzy_strict+")",a.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_fuzzy_strict+a.src_path+")",a.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_no_ip_fuzzy_strict+a.src_path+")",a}),Ia}function $a(c){var a=Array.prototype.slice.call(arguments,1);return a.forEach(function(o){o&&Object.keys(o).forEach(function(u){c[u]=o[u]})}),c}function ca(c){return Object.prototype.toString.call(c)}function AO(c){return ca(c)==="[object String]"}function SO(c){return ca(c)==="[object Object]"}function CO(c){return ca(c)==="[object RegExp]"}function ys(c){return ca(c)==="[object Function]"}function MO(c){return c.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var fn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function zO(c){return Object.keys(c||{}).reduce(function(a,o){return a||fn.hasOwnProperty(o)},!1)}var TO={"http:":{validate:function(c,a,o){var u=c.slice(a);return o.re.http||(o.re.http=new RegExp("^\\/\\/"+o.re.src_auth+o.re.src_host_port_strict+o.re.src_path,"i")),o.re.http.test(u)?u.match(o.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(c,a,o){var u=c.slice(a);return o.re.no_http||(o.re.no_http=new RegExp("^"+o.re.src_auth+"(?:localhost|(?:(?:"+o.re.src_domain+")\\.)+"+o.re.src_domain_root+")"+o.re.src_port+o.re.src_host_terminator+o.re.src_path,"i")),o.re.no_http.test(u)?a>=3&&c[a-3]===":"||a>=3&&c[a-3]==="/"?0:u.match(o.re.no_http)[0].length:0}},"mailto:":{validate:function(c,a,o){var u=c.slice(a);return o.re.mailto||(o.re.mailto=new RegExp("^"+o.re.src_email_name+"@"+o.re.src_host_strict,"i")),o.re.mailto.test(u)?u.match(o.re.mailto)[0].length:0}}},LO="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",EO="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function DO(c){c.__index__=-1,c.__text_cache__=""}function PO(c){return function(a,o){var u=a.slice(o);return c.test(u)?u.match(c)[0].length:0}}function ws(){return function(c,a){a.normalize(c)}}function $r(c){var a=c.re=kO()(c.__opts__),o=c.__tlds__.slice();c.onCompile(),c.__tlds_replaced__||o.push(LO),o.push(a.src_xn),a.src_tlds=o.join("|");function u(w){return w.replace("%TLDS%",a.src_tlds)}a.email_fuzzy=RegExp(u(a.tpl_email_fuzzy),"i"),a.link_fuzzy=RegExp(u(a.tpl_link_fuzzy),"i"),a.link_no_ip_fuzzy=RegExp(u(a.tpl_link_no_ip_fuzzy),"i"),a.host_fuzzy_test=RegExp(u(a.tpl_host_fuzzy_test),"i");var g=[];c.__compiled__={};function m(w,S){throw new Error('(LinkifyIt) Invalid schema "'+w+'": '+S)}Object.keys(c.__schemas__).forEach(function(w){var S=c.__schemas__[w];if(S!==null){var D={validate:null,link:null};if(c.__compiled__[w]=D,SO(S)){CO(S.validate)?D.validate=PO(S.validate):ys(S.validate)?D.validate=S.validate:m(w,S),ys(S.normalize)?D.normalize=S.normalize:S.normalize?m(w,S):D.normalize=ws();return}if(AO(S)){g.push(w);return}m(w,S)}}),g.forEach(function(w){c.__compiled__[c.__schemas__[w]]&&(c.__compiled__[w].validate=c.__compiled__[c.__schemas__[w]].validate,c.__compiled__[w].normalize=c.__compiled__[c.__schemas__[w]].normalize)}),c.__compiled__[""]={validate:null,normalize:ws()};var k=Object.keys(c.__compiled__).filter(function(w){return w.length>0&&c.__compiled__[w]}).map(MO).join("|");c.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+k+")","i"),c.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+k+")","ig"),c.re.schema_at_start=RegExp("^"+c.re.schema_search.source,"i"),c.re.pretest=RegExp("("+c.re.schema_test.source+")|("+c.re.host_fuzzy_test.source+")|@","i"),DO(c)}function IO(c,a){var o=c.__index__,u=c.__last_index__,g=c.__text_cache__.slice(o,u);this.schema=c.__schema__.toLowerCase(),this.index=o+a,this.lastIndex=u+a,this.raw=g,this.text=g,this.url=g}function Za(c,a){var o=new IO(c,a);return c.__compiled__[o.schema].normalize(o,c),o}function ht(c,a){if(!(this instanceof ht))return new ht(c,a);a||zO(c)&&(a=c,c={}),this.__opts__=$a({},fn,a),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=$a({},TO,c),this.__compiled__={},this.__tlds__=EO,this.__tlds_replaced__=!1,this.re={},$r(this)}ht.prototype.add=function(a,o){return this.__schemas__[a]=o,$r(this),this};ht.prototype.set=function(a){return this.__opts__=$a(this.__opts__,a),this};ht.prototype.test=function(a){if(this.__text_cache__=a,this.__index__=-1,!a.length)return!1;var o,u,g,m,k,w,S,D,F;if(this.re.schema_test.test(a)){for(S=this.re.schema_search,S.lastIndex=0;(o=S.exec(a))!==null;)if(m=this.testSchemaAt(a,o[2],S.lastIndex),m){this.__schema__=o[2],this.__index__=o.index+o[1].length,this.__last_index__=o.index+o[0].length+m;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(D=a.search(this.re.host_fuzzy_test),D>=0&&(this.__index__<0||D<this.__index__)&&(u=a.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(k=u.index+u[1].length,(this.__index__<0||k<this.__index__)&&(this.__schema__="",this.__index__=k,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(F=a.indexOf("@"),F>=0&&(g=a.match(this.re.email_fuzzy))!==null&&(k=g.index+g[1].length,w=g.index+g[0].length,(this.__index__<0||k<this.__index__||k===this.__index__&&w>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=k,this.__last_index__=w))),this.__index__>=0};ht.prototype.pretest=function(a){return this.re.pretest.test(a)};ht.prototype.testSchemaAt=function(a,o,u){return this.__compiled__[o.toLowerCase()]?this.__compiled__[o.toLowerCase()].validate(a,u,this):0};ht.prototype.match=function(a){var o=0,u=[];this.__index__>=0&&this.__text_cache__===a&&(u.push(Za(this,o)),o=this.__last_index__);for(var g=o?a.slice(o):a;this.test(g);)u.push(Za(this,o)),g=g.slice(this.__last_index__),o+=this.__last_index__;return u.length?u:null};ht.prototype.matchAtStart=function(a){if(this.__text_cache__=a,this.__index__=-1,!a.length)return null;var o=this.re.schema_at_start.exec(a);if(!o)return null;var u=this.testSchemaAt(a,o[2],o[0].length);return u?(this.__schema__=o[2],this.__index__=o.index+o[1].length,this.__last_index__=o.index+o[0].length+u,Za(this,0)):null};ht.prototype.tlds=function(a,o){return a=Array.isArray(a)?a:[a],o?(this.__tlds__=this.__tlds__.concat(a).sort().filter(function(u,g,m){return u!==m[g-1]}).reverse(),$r(this),this):(this.__tlds__=a.slice(),this.__tlds_replaced__=!0,$r(this),this)};ht.prototype.normalize=function(a){a.schema||(a.url="http://"+a.url),a.schema==="mailto:"&&!/^mailto:/i.test(a.url)&&(a.url="mailto:"+a.url)};ht.prototype.onCompile=function(){};var RO=ht;const cr=2147483647,Ct=36,li=1,Cr=26,FO=38,_O=700,gn=72,pn=128,mn="-",BO=/^xn--/,NO=/[^\0-\x7F]/,OO=/[\x2E\u3002\uFF0E\uFF61]/g,HO={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ra=Ct-li,Mt=Math.floor,Fa=String.fromCharCode;function qt(c){throw new RangeError(HO[c])}function XO(c,a){const o=[];let u=c.length;for(;u--;)o[u]=a(c[u]);return o}function xn(c,a){const o=c.split("@");let u="";o.length>1&&(u=o[0]+"@",c=o[1]),c=c.replace(OO,".");const g=c.split("."),m=XO(g,a).join(".");return u+m}function ci(c){const a=[];let o=0;const u=c.length;for(;o<u;){const g=c.charCodeAt(o++);if(g>=55296&&g<=56319&&o<u){const m=c.charCodeAt(o++);(m&64512)==56320?a.push(((g&1023)<<10)+(m&1023)+65536):(a.push(g),o--)}else a.push(g)}return a}const bn=c=>String.fromCodePoint(...c),YO=function(c){return c>=48&&c<58?26+(c-48):c>=65&&c<91?c-65:c>=97&&c<123?c-97:Ct},ks=function(c,a){return c+22+75*(c<26)-((a!=0)<<5)},vn=function(c,a,o){let u=0;for(c=o?Mt(c/_O):c>>1,c+=Mt(c/a);c>Ra*Cr>>1;u+=Ct)c=Mt(c/Ra);return Mt(u+(Ra+1)*c/(c+FO))},hi=function(c){const a=[],o=c.length;let u=0,g=pn,m=gn,k=c.lastIndexOf(mn);k<0&&(k=0);for(let w=0;w<k;++w)c.charCodeAt(w)>=128&&qt("not-basic"),a.push(c.charCodeAt(w));for(let w=k>0?k+1:0;w<o;){const S=u;for(let F=1,H=Ct;;H+=Ct){w>=o&&qt("invalid-input");const q=YO(c.charCodeAt(w++));q>=Ct&&qt("invalid-input"),q>Mt((cr-u)/F)&&qt("overflow"),u+=q*F;const X=H<=m?li:H>=m+Cr?Cr:H-m;if(q<X)break;const $=Ct-X;F>Mt(cr/$)&&qt("overflow"),F*=$}const D=a.length+1;m=vn(u-S,D,S==0),Mt(u/D)>cr-g&&qt("overflow"),g+=Mt(u/D),u%=D,a.splice(u++,0,g)}return String.fromCodePoint(...a)},ui=function(c){const a=[];c=ci(c);const o=c.length;let u=pn,g=0,m=gn;for(const S of c)S<128&&a.push(Fa(S));const k=a.length;let w=k;for(k&&a.push(mn);w<o;){let S=cr;for(const F of c)F>=u&&F<S&&(S=F);const D=w+1;S-u>Mt((cr-g)/D)&&qt("overflow"),g+=(S-u)*D,u=S;for(const F of c)if(F<u&&++g>cr&&qt("overflow"),F===u){let H=g;for(let q=Ct;;q+=Ct){const X=q<=m?li:q>=m+Cr?Cr:q-m;if(H<X)break;const $=H-X,Z=Ct-X;a.push(Fa(ks(X+$%Z,0))),H=Mt($/Z)}a.push(Fa(ks(H,0))),m=vn(g,D,w===k),g=0,++w}++g,++u}return a.join("")},yn=function(c){return xn(c,function(a){return BO.test(a)?hi(a.slice(4).toLowerCase()):a})},wn=function(c){return xn(c,function(a){return NO.test(a)?"xn--"+ui(a):a})},qO={version:"2.1.0",ucs2:{decode:ci,encode:bn},decode:hi,encode:ui,toASCII:wn,toUnicode:yn},VO=Object.freeze(Object.defineProperty({__proto__:null,decode:hi,default:qO,encode:ui,toASCII:wn,toUnicode:yn,ucs2decode:ci,ucs2encode:bn},Symbol.toStringTag,{value:"Module"})),WO=Ko(VO);var GO={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},jO={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},UO={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},wr=_e,$O=aa,ZO=qB,JO=fN,KO=WN,QO=wO,eH=RO,tr=fr,kn=WO,tH={default:GO,zero:jO,commonmark:UO},rH=/^(vbscript|javascript|file|data):/,aH=/^data:image\/(gif|png|jpeg|webp);/;function iH(c){var a=c.trim().toLowerCase();return rH.test(a)?!!aH.test(a):!0}var An=["http:","https:","mailto:"];function sH(c){var a=tr.parse(c,!0);if(a.hostname&&(!a.protocol||An.indexOf(a.protocol)>=0))try{a.hostname=kn.toASCII(a.hostname)}catch{}return tr.encode(tr.format(a))}function nH(c){var a=tr.parse(c,!0);if(a.hostname&&(!a.protocol||An.indexOf(a.protocol)>=0))try{a.hostname=kn.toUnicode(a.hostname)}catch{}return tr.decode(tr.format(a),tr.decode.defaultChars+"%")}function xt(c,a){if(!(this instanceof xt))return new xt(c,a);a||wr.isString(c)||(a=c||{},c="default"),this.inline=new QO,this.block=new KO,this.core=new JO,this.renderer=new ZO,this.linkify=new eH,this.validateLink=iH,this.normalizeLink=sH,this.normalizeLinkText=nH,this.utils=wr,this.helpers=wr.assign({},$O),this.options={},this.configure(c),a&&this.set(a)}xt.prototype.set=function(c){return wr.assign(this.options,c),this};xt.prototype.configure=function(c){var a=this,o;if(wr.isString(c)&&(o=c,c=tH[o],!c))throw new Error('Wrong `markdown-it` preset "'+o+'", check name');if(!c)throw new Error("Wrong `markdown-it` preset, can't be empty");return c.options&&a.set(c.options),c.components&&Object.keys(c.components).forEach(function(u){c.components[u].rules&&a[u].ruler.enableOnly(c.components[u].rules),c.components[u].rules2&&a[u].ruler2.enableOnly(c.components[u].rules2)}),this};xt.prototype.enable=function(c,a){var o=[];Array.isArray(c)||(c=[c]),["core","block","inline"].forEach(function(g){o=o.concat(this[g].ruler.enable(c,!0))},this),o=o.concat(this.inline.ruler2.enable(c,!0));var u=c.filter(function(g){return o.indexOf(g)<0});if(u.length&&!a)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};xt.prototype.disable=function(c,a){var o=[];Array.isArray(c)||(c=[c]),["core","block","inline"].forEach(function(g){o=o.concat(this[g].ruler.disable(c,!0))},this),o=o.concat(this.inline.ruler2.disable(c,!0));var u=c.filter(function(g){return o.indexOf(g)<0});if(u.length&&!a)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};xt.prototype.use=function(c){var a=[this].concat(Array.prototype.slice.call(arguments,1));return c.apply(c,a),this};xt.prototype.parse=function(c,a){if(typeof c!="string")throw new Error("Input data should be a String");var o=new this.core.State(c,this,a);return this.core.process(o),o.tokens};xt.prototype.render=function(c,a){return a=a||{},this.renderer.render(this.parse(c,a),this.options,a)};xt.prototype.parseInline=function(c,a){var o=new this.core.State(c,this,a);return o.inlineMode=!0,this.core.process(o),o.tokens};xt.prototype.renderInline=function(c,a){return a=a||{},this.renderer.render(this.parseInline(c,a),this.options,a)};var oH=xt;(function(c){c.exports=oH})(Qo);const lH=Jo(Ua);new lH({breaks:!0,linkify:!0,typographer:!0});var As={},cH={get exports(){return As},set exports(c){As=c}},kr={},hH={get exports(){return kr},set exports(c){kr=c}};/*!
|
|
31
|
+
* ApexCharts v3.41.1
|
|
32
|
+
* (c) 2018-2023 ApexCharts
|
|
33
|
+
* Released under the MIT License.
|
|
34
|
+
*/var Ss;function uH(){return Ss||(Ss=1,function(c,a){function o(E,e){var t=Object.keys(E);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(E);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(E,i).enumerable})),t.push.apply(t,r)}return t}function u(E){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?o(Object(t),!0).forEach(function(r){S(E,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach(function(r){Object.defineProperty(E,r,Object.getOwnPropertyDescriptor(t,r))})}return E}function g(E){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(E)}function m(E,e){if(!(E instanceof e))throw new TypeError("Cannot call a class as a function")}function k(E,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(E,r.key,r)}}function w(E,e,t){return e&&k(E.prototype,e),t&&k(E,t),E}function S(E,e,t){return e in E?Object.defineProperty(E,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):E[e]=t,E}function D(E,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(e&&e.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),e&&H(E,e)}function F(E){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(E)}function H(E,e){return H=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},H(E,e)}function q(E,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(E)}function X(E){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,r=F(E);if(e){var i=F(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return q(this,t)}}function $(E,e){return function(t){if(Array.isArray(t))return t}(E)||function(t,r){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var s,n,l=[],h=!0,f=!1;try{for(i=i.call(t);!(h=(s=i.next()).done)&&(l.push(s.value),!r||l.length!==r);h=!0);}catch(p){f=!0,n=p}finally{try{h||i.return==null||i.return()}finally{if(f)throw n}}return l}}(E,e)||ae(E,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
35
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Z(E){return function(e){if(Array.isArray(e))return J(e)}(E)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(E)||ae(E)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
36
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ae(E,e){if(E){if(typeof E=="string")return J(E,e);var t=Object.prototype.toString.call(E).slice(8,-1);return t==="Object"&&E.constructor&&(t=E.constructor.name),t==="Map"||t==="Set"?Array.from(E):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?J(E,e):void 0}}function J(E,e){(e==null||e>E.length)&&(e=E.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=E[t];return r}var O=function(){function E(){m(this,E)}return w(E,[{key:"shadeRGBColor",value:function(e,t){var r=t.split(","),i=e<0?0:255,s=e<0?-1*e:e,n=parseInt(r[0].slice(4),10),l=parseInt(r[1],10),h=parseInt(r[2],10);return"rgb("+(Math.round((i-n)*s)+n)+","+(Math.round((i-l)*s)+l)+","+(Math.round((i-h)*s)+h)+")"}},{key:"shadeHexColor",value:function(e,t){var r=parseInt(t.slice(1),16),i=e<0?0:255,s=e<0?-1*e:e,n=r>>16,l=r>>8&255,h=255&r;return"#"+(16777216+65536*(Math.round((i-n)*s)+n)+256*(Math.round((i-l)*s)+l)+(Math.round((i-h)*s)+h)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return E.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&g(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,r=[];for(t=0;t<e.length;t++)r[t]=e[t];return r}},{key:"extend",value:function(e,t){var r=this;typeof Object.assign!="function"&&(Object.assign=function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(s),l=1;l<arguments.length;l++){var h=arguments[l];if(h!=null)for(var f in h)h.hasOwnProperty(f)&&(n[f]=h[f])}return n});var i=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(s){r.isObject(t[s])&&s in e?i[s]=r.extend(e[s],t[s]):Object.assign(i,S({},s,t[s]))}),i}},{key:"extendArray",value:function(e,t){var r=[];return e.map(function(i){r.push(E.extend(t,i))}),e=r}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){if(E.is("Array",e)){for(var t=[],r=0;r<e.length;r++)t[r]=this.clone(e[r]);return t}if(E.is("Null",e))return null;if(E.is("Date",e))return e;if(g(e)==="object"){var i={};for(var s in e)e.hasOwnProperty(s)&&(i[s]=this.clone(e[s]));return i}return e}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return e===null?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(t.length===1)return t[0];var r="",i=e<0?"-":"",s=t[0].replace(".",""),n=Number(t[1])+1;if(n<0){for(r=i+"0.";n++;)r+="0";return r+s.replace(/^-/,"")}for(n-=s.length;n--;)r+="0";return s+r}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),r=e.clientHeight,i=e.clientWidth;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce(function(t,r){return Array.isArray(r)&&(r=r.reduce(function(i,s){return i.length>s.length?i:s})),t.length>r.length?t:r},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;e.substring(0,1)!=="#"&&(e="#999999");var r=e.replace("#","");r=r.match(new RegExp("(.{"+r.length/3+"})","g"));for(var i=0;i<r.length;i++)r[i]=parseInt(r[i].length===1?r[i]+r[i]:r[i],16);return t!==void 0&&r.push(t),"rgba("+r.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&e.length===4?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var r=[],i=2*Math.PI/t,s=0;s<t;s++){var n={};n.x=e*Math.sin(s*i),n.y=-e*Math.cos(s*i),r.push(n)}return r}},{key:"polarToCartesian",value:function(e,t,r,i){var s=(i-90)*Math.PI/180;return{x:e+r*Math.cos(s),y:t+r*Math.sin(s)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",r=e.toString().slice();return r=r.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,r){if(r>=e.length)for(var i=r-e.length+1;i--;)e.push(void 0);return e.splice(r,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e.style.key=t[r])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var i=e.indexOf("Edge/");return i>0&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)}}]),E}(),se=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return w(E,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(t){var r=1.70158;return(t-=1)*t*((r+1)*t+r)+1};break;case"bounce":e=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":e=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,r,i){e.attr(t).animate(i).attr(r)}},{key:"animateMarker",value:function(e,t,r,i,s,n){t||(t=0),e.attr({r:t,width:t,height:t}).animate(i,s).attr({r,width:r.width,height:r.height}).afterAll(function(){n()})}},{key:"animateCircle",value:function(e,t,r,i,s){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(i,s).attr({r:r.r,cx:r.cx,cy:r.cy})}},{key:"animateRect",value:function(e,t,r,i,s){e.attr(t).animate(i).attr(r).afterAll(function(){return s()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,r=e.realIndex,i=e.j,s=e.fill,n=e.pathFrom,l=e.pathTo,h=e.speed,f=e.delay,p=this.w,x=0;p.config.chart.animations.animateGradually.enabled&&(x=p.config.chart.animations.animateGradually.delay),p.config.chart.animations.dynamicAnimation.enabled&&p.globals.dataChanged&&p.config.chart.type!=="bar"&&(x=0),this.morphSVG(t,r,i,p.config.chart.type!=="line"||p.globals.comboCharts?s:"stroke",n,l,h,f*x)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,r,i,s,n,l,h){var f=this,p=this.w;s||(s=e.attr("pathFrom")),n||(n=e.attr("pathTo"));var x=function(b){return p.config.chart.type==="radar"&&(l=1),"M 0 ".concat(p.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=x()),(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=x()),p.globals.shouldAnimate||(l=1),e.plot(s).animate(1,p.globals.easing,h).plot(s).animate(l,p.globals.easing,h).plot(n).afterAll(function(){O.isNumber(r)?r===p.globals.series[p.globals.maxValsInArrayIndex].length-2&&p.globals.shouldAnimate&&f.animationCompleted(e):i!=="none"&&p.globals.shouldAnimate&&(!p.globals.comboCharts&&t===p.globals.series.length-1||p.globals.comboCharts)&&f.animationCompleted(e),f.showDelayedElements()})}}]),E}(),le=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"getDefaultFilter",value:function(e,t){var r=this.w;e.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),r.config.states.normal.filter!=="none"?this.applyFilter(e,t,r.config.states.normal.filter.type,r.config.states.normal.filter.value):r.config.chart.dropShadow.enabled&&this.dropShadow(e,r.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var r=this.w;r.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,r.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,r){var i=this,s=this.w,n=r.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(l){var h=s.config.chart.dropShadow;(h.enabled?i.addShadow(l,t,h):l).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,r){var i=this,s=this.w,n=r.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(l){var h=s.config.chart.dropShadow;(h.enabled?i.addShadow(l,t,h):l).componentTransfer({rgb:{type:"linear",slope:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(r){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:i});break;case"darken":this.addDarkenFilter(e,t,{intensity:i})}}},{key:"addShadow",value:function(e,t,r){var i=r.blur,s=r.top,n=r.left,l=r.color,h=r.opacity,f=e.flood(Array.isArray(l)?l[t]:l,h).composite(e.sourceAlpha,"in").offset(n,s).gaussianBlur(i).merge(e.source);return e.blend(e.source,f)}},{key:"dropShadow",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=t.top,s=t.left,n=t.blur,l=t.color,h=t.opacity,f=t.noUserSpaceOnUse,p=this.w;return e.unfilter(!0),O.isIE()&&p.config.chart.type==="radialBar"||(l=Array.isArray(l)?l[r]:l,e.filter(function(x){var b=null;b=O.isSafari()||O.isFirefox()||O.isIE()?x.flood(l,h).composite(x.sourceAlpha,"in").offset(s,i).gaussianBlur(n):x.flood(l,h).composite(x.sourceAlpha,"in").offset(s,i).gaussianBlur(n).merge(x.source),x.blend(x.source,b)}),f||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,r){var i=this.w;if(i.globals.selectedDataPoints[t]!==void 0&&i.globals.selectedDataPoints[t].indexOf(r)>-1){e.node.setAttribute("selected",!0);var s=i.config.states.active.filter;s!=="none"&&this.applyFilter(e,t,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(e){(function(t){for(var r in t)t.hasOwnProperty(r)&&e.setAttribute(r,t[r])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),E}(),U=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"roundPathCorners",value:function(e,t){function r(N,W,G){var Q=W.x-N.x,ie=W.y-N.y,te=Math.sqrt(Q*Q+ie*ie);return i(N,W,Math.min(1,G/te))}function i(N,W,G){return{x:N.x+(W.x-N.x)*G,y:N.y+(W.y-N.y)*G}}function s(N,W){N.length>2&&(N[N.length-2]=W.x,N[N.length-1]=W.y)}function n(N){return{x:parseFloat(N[N.length-2]),y:parseFloat(N[N.length-1])}}e.indexOf("NaN")>-1&&(e="");var l=e.split(/[,\s]/).reduce(function(N,W){var G=W.match("([a-zA-Z])(.+)");return G?(N.push(G[1]),N.push(G[2])):N.push(W),N},[]).reduce(function(N,W){return parseFloat(W)==W&&N.length?N[N.length-1].push(W):N.push([W]),N},[]),h=[];if(l.length>1){var f=n(l[0]),p=null;l[l.length-1][0]=="Z"&&l[0].length>2&&(p=["L",f.x,f.y],l[l.length-1]=p),h.push(l[0]);for(var x=1;x<l.length;x++){var b=h[h.length-1],y=l[x],C=y==p?l[1]:l[x+1];if(C&&b&&b.length>2&&y[0]=="L"&&C.length>2&&C[0]=="L"){var z,L,R=n(b),_=n(y),d=n(C);z=r(_,R,t),L=r(_,d,t),s(y,z),y.origPoint=_,h.push(y);var v=i(z,_,.5),M=i(_,L,.5),P=["C",v.x,v.y,M.x,M.y,L.x,L.y];P.origPoint=_,h.push(P)}else h.push(y)}if(p){var B=n(h[h.length-1]);h.push(["Z"]),s(h[0],B)}}else h=l;return h.reduce(function(N,W){return N+W.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,r,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:r,y2:i,stroke:s,"stroke-dasharray":n,"stroke-width":l,"stroke-linecap":h})}},{key:"drawRect",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,p=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,x=this.w.globals.dom.Paper.rect();return x.attr({x:e,y:t,width:r>0?r:0,height:i>0?i:0,rx:s,ry:s,opacity:l,"stroke-width":h!==null?h:0,stroke:f!==null?f:"none","stroke-dasharray":p}),x.node.setAttribute("fill",n),x}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:i,stroke:t,"stroke-width":r})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e<0&&(e=0);var r=this.w.globals.dom.Paper.circle(2*e);return t!==null&&r.attr(t),r}},{key:"drawPath",value:function(e){var t=e.d,r=t===void 0?"":t,i=e.stroke,s=i===void 0?"#a8a8a8":i,n=e.strokeWidth,l=n===void 0?1:n,h=e.fill,f=e.fillOpacity,p=f===void 0?1:f,x=e.strokeOpacity,b=x===void 0?1:x,y=e.classes,C=e.strokeLinecap,z=C===void 0?null:C,L=e.strokeDashArray,R=L===void 0?0:L,_=this.w;return z===null&&(z=_.config.stroke.lineCap),(r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r="M 0 ".concat(_.globals.gridHeight)),_.globals.dom.Paper.path(r).attr({fill:h,"fill-opacity":p,stroke:s,"stroke-opacity":b,"stroke-linecap":z,"stroke-width":l,"stroke-dasharray":R,class:y})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w.globals.dom.Paper.group();return e!==null&&t.attr(e),t}},{key:"move",value:function(e,t){var r=["M",e,t].join(" ");return r}},{key:"line",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=null;return r===null?i=[" L",e,t].join(" "):r==="H"?i=[" H",e].join(" "):r==="V"&&(i=[" V",t].join(" ")),i}},{key:"curve",value:function(e,t,r,i,s,n){var l=["C",e,t,r,i,s,n].join(" ");return l}},{key:"quadraticCurve",value:function(e,t,r,i){return["Q",e,t,r,i].join(" ")}},{key:"arc",value:function(e,t,r,i,s,n,l){var h="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(h="a");var f=[h,e,t,r,i,s,n,l].join(" ");return f}},{key:"renderPaths",value:function(e){var t,r=e.j,i=e.realIndex,s=e.pathFrom,n=e.pathTo,l=e.stroke,h=e.strokeWidth,f=e.strokeLinecap,p=e.fill,x=e.animationDelay,b=e.initialSpeed,y=e.dataChangeSpeed,C=e.className,z=e.shouldClipToGrid,L=z===void 0||z,R=e.bindEventsOnPaths,_=R===void 0||R,d=e.drawShadow,v=d===void 0||d,M=this.w,P=new le(this.ctx),B=new se(this.ctx),N=this.w.config.chart.animations.enabled,W=N&&this.w.config.chart.animations.dynamicAnimation.enabled,G=!!(N&&!M.globals.resized||W&&M.globals.dataChanged&&M.globals.shouldAnimate);G?t=s:(t=n,M.globals.animationEnded=!0);var Q=M.config.stroke.dashArray,ie=0;ie=Array.isArray(Q)?Q[i]:M.config.stroke.dashArray;var te=this.drawPath({d:t,stroke:l,strokeWidth:h,fill:p,fillOpacity:1,classes:C,strokeLinecap:f,strokeDashArray:ie});if(te.attr("index",i),L&&te.attr({"clip-path":"url(#gridRectMask".concat(M.globals.cuid,")")}),M.config.states.normal.filter.type!=="none")P.getDefaultFilter(te,i);else if(M.config.chart.dropShadow.enabled&&v&&(!M.config.chart.dropShadow.enabledOnSeries||M.config.chart.dropShadow.enabledOnSeries&&M.config.chart.dropShadow.enabledOnSeries.indexOf(i)!==-1)){var ce=M.config.chart.dropShadow;P.dropShadow(te,ce,i)}_&&(te.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,te)),te.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,te)),te.node.addEventListener("mousedown",this.pathMouseDown.bind(this,te))),te.attr({pathTo:n,pathFrom:s});var me={el:te,j:r,realIndex:i,pathFrom:s,pathTo:n,fill:p,strokeWidth:h,delay:x};return!N||M.globals.resized||M.globals.dataChanged?!M.globals.resized&&M.globals.dataChanged||B.showDelayedElements():B.animatePathsGradually(u(u({},me),{},{speed:b})),M.globals.dataChanged&&W&&G&&B.animatePathsGradually(u(u({},me),{},{speed:y})),te}},{key:"drawPattern",value:function(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,r,function(n){e==="horizontalLines"?n.line(0,0,r,0).stroke({color:i,width:s+1}):e==="verticalLines"?n.line(0,0,0,t).stroke({color:i,width:s+1}):e==="slantedLines"?n.line(0,0,t,r).stroke({color:i,width:s}):e==="squares"?n.rect(t,r).fill("none").stroke({color:i,width:s}):e==="circles"&&n.circle(t).fill("none").stroke({color:i,width:s})})}},{key:"drawGradient",value:function(e,t,r,i,s){var n,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,f=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,p=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,x=this.w;t.length<9&&t.indexOf("#")===0&&(t=O.hexToRgba(t,i)),r.length<9&&r.indexOf("#")===0&&(r=O.hexToRgba(r,s));var b=0,y=1,C=1,z=null;h!==null&&(b=h[0]!==void 0?h[0]/100:0,y=h[1]!==void 0?h[1]/100:1,C=h[2]!==void 0?h[2]/100:1,z=h[3]!==void 0?h[3]/100:null);var L=!(x.config.chart.type!=="donut"&&x.config.chart.type!=="pie"&&x.config.chart.type!=="polarArea"&&x.config.chart.type!=="bubble");if(n=f===null||f.length===0?x.globals.dom.Paper.gradient(L?"radial":"linear",function(d){d.at(b,t,i),d.at(y,r,s),d.at(C,r,s),z!==null&&d.at(z,t,i)}):x.globals.dom.Paper.gradient(L?"radial":"linear",function(d){(Array.isArray(f[p])?f[p]:f).forEach(function(v){d.at(v.offset/100,v.color,v.opacity)})}),L){var R=x.globals.gridWidth/2,_=x.globals.gridHeight/2;x.config.chart.type!=="bubble"?n.attr({gradientUnits:"userSpaceOnUse",cx:R,cy:_,r:l}):n.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?n.from(0,0).to(0,1):e==="diagonal"?n.from(0,0).to(1,1):e==="horizontal"?n.from(0,1).to(1,1):e==="diagonal2"&&n.from(1,0).to(0,1);return n}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,r=e.maxWidth,i=e.fontSize,s=e.fontFamily,n=this.getTextRects(t,i,s),l=n.width/t.length,h=Math.floor(r/l);return r<n.width?t.slice(0,h-3)+"...":t}},{key:"drawText",value:function(e){var t=this,r=e.x,i=e.y,s=e.text,n=e.textAnchor,l=e.fontSize,h=e.fontFamily,f=e.fontWeight,p=e.foreColor,x=e.opacity,b=e.maxWidth,y=e.cssClass,C=y===void 0?"":y,z=e.isPlainText,L=z===void 0||z,R=this.w;s===void 0&&(s="");var _=s;n||(n="start"),p&&p.length||(p=R.config.chart.foreColor),h=h||R.config.chart.fontFamily,f=f||"regular";var d,v={maxWidth:b,fontSize:l=l||"11px",fontFamily:h};return Array.isArray(s)?d=R.globals.dom.Paper.text(function(M){for(var P=0;P<s.length;P++)_=s[P],b&&(_=t.getTextBasedOnMaxWidth(u({text:s[P]},v))),P===0?M.tspan(_):M.tspan(_).newLine()}):(b&&(_=this.getTextBasedOnMaxWidth(u({text:s},v))),d=L?R.globals.dom.Paper.plain(s):R.globals.dom.Paper.text(function(M){return M.tspan(_)})),d.attr({x:r,y:i,"text-anchor":n,"dominant-baseline":"auto","font-size":l,"font-family":h,"font-weight":f,fill:p,class:"apexcharts-text "+C}),d.node.style.fontFamily=h,d.node.style.opacity=x,d}},{key:"drawMarker",value:function(e,t,r){e=e||0;var i=r.pSize||0,s=null;if(r.shape==="square"||r.shape==="rect"){var n=r.pRadius===void 0?i/2:r.pRadius;t!==null&&i||(i=0,n=0);var l=1.2*i+n,h=this.drawRect(l,l,l,l,n);h.attr({x:e-l/2,y:t-l/2,cx:e,cy:t,class:r.class?r.class:"",fill:r.pointFillColor,"fill-opacity":r.pointFillOpacity?r.pointFillOpacity:1,stroke:r.pointStrokeColor,"stroke-width":r.pointStrokeWidth?r.pointStrokeWidth:0,"stroke-opacity":r.pointStrokeOpacity?r.pointStrokeOpacity:1}),s=h}else r.shape!=="circle"&&r.shape||(O.isNumber(t)||(i=0,t=0),s=this.drawCircle(i,{cx:e,cy:t,class:r.class?r.class:"",stroke:r.pointStrokeColor,fill:r.pointFillColor,"fill-opacity":r.pointFillOpacity?r.pointFillOpacity:1,"stroke-width":r.pointStrokeWidth?r.pointStrokeWidth:0,"stroke-opacity":r.pointStrokeOpacity?r.pointStrokeOpacity:1}));return s}},{key:"pathMouseEnter",value:function(e,t){var r=this.w,i=new le(this.ctx),s=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);if(typeof r.config.chart.events.dataPointMouseEnter=="function"&&r.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:s,dataPointIndex:n,w:r}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:s,dataPointIndex:n,w:r}]),(r.config.states.active.filter.type==="none"||e.node.getAttribute("selected")!=="true")&&r.config.states.hover.filter.type!=="none"&&!r.globals.isTouchDevice){var l=r.config.states.hover.filter;i.applyFilter(e,s,l.type,l.value)}}},{key:"pathMouseLeave",value:function(e,t){var r=this.w,i=new le(this.ctx),s=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);typeof r.config.chart.events.dataPointMouseLeave=="function"&&r.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:s,dataPointIndex:n,w:r}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:s,dataPointIndex:n,w:r}]),r.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true"||r.config.states.hover.filter.type!=="none"&&i.getDefaultFilter(e,s)}},{key:"pathMouseDown",value:function(e,t){var r=this.w,i=new le(this.ctx),s=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10),l="false";if(e.node.getAttribute("selected")==="true"){if(e.node.setAttribute("selected","false"),r.globals.selectedDataPoints[s].indexOf(n)>-1){var h=r.globals.selectedDataPoints[s].indexOf(n);r.globals.selectedDataPoints[s].splice(h,1)}}else{if(!r.config.states.active.allowMultipleDataPointsSelection&&r.globals.selectedDataPoints.length>0){r.globals.selectedDataPoints=[];var f=r.globals.dom.Paper.select(".apexcharts-series path").members,p=r.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,x=function(C){Array.prototype.forEach.call(C,function(z){z.node.setAttribute("selected","false"),i.getDefaultFilter(z,s)})};x(f),x(p)}e.node.setAttribute("selected","true"),l="true",r.globals.selectedDataPoints[s]===void 0&&(r.globals.selectedDataPoints[s]=[]),r.globals.selectedDataPoints[s].push(n)}if(l==="true"){var b=r.config.states.active.filter;if(b!=="none")i.applyFilter(e,s,b.type,b.value);else if(r.config.states.hover.filter!=="none"&&!r.globals.isTouchDevice){var y=r.config.states.hover.filter;i.applyFilter(e,s,y.type,y.value)}}else r.config.states.active.filter.type!=="none"&&(r.config.states.hover.filter.type==="none"||r.globals.isTouchDevice?i.getDefaultFilter(e,s):(y=r.config.states.hover.filter,i.applyFilter(e,s,y.type,y.value)));typeof r.config.chart.events.dataPointSelection=="function"&&r.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:r.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:r}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:r.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:r}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&typeof e.getBBox=="function"&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,r,i){var s=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w,l=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:r,foreColor:"#fff",opacity:0});i&&l.attr("transform",i),n.globals.dom.Paper.add(l);var h=l.bbox();return s||(h=l.node.getBoundingClientRect()),l.remove(),{width:h.width,height:h.height}}},{key:"placeTextWithEllipsis",value:function(e,t,r){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=r/1.1)){for(var i=t.length-3;i>0;i-=3)if(e.getSubStringLength(0,i)<=r/1.1)return void(e.textContent=t.substring(0,i)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttribute(r,t[r])}}]),E}(),re=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.w,r=[];if(t.globals.series.length===0)return r;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var s=0,n=0;n<t.globals.series.length;n++)t.globals.series[n][i]!==void 0&&e.indexOf(n)===-1&&(s+=t.globals.series[n][i]);r.push(s)}return r}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e===null?this.w.config.series.reduce(function(t,r){return t+r},0):this.w.globals.series[e].reduce(function(t,r){return t+r},0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(e===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[e].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(t,r,i){return t===i[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,r=e.slice();return t.config.xaxis.convertedCatToNumeric&&(r=e.map(function(i,s){return t.config.xaxis.labels.formatter(i-t.globals.minX+1)})),r}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(r){t=Math.max(t,r)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(r){t=Math.max(t,r.size)}),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(t,r){var i=0;if(Array.isArray(t))for(var s=0;s<t.length;s++)i+=t[s];else i+=t;return i})}},{key:"getSeriesTotalsXRange",value:function(e,t){var r=this.w;return r.globals.series.map(function(i,s){for(var n=0,l=0;l<i.length;l++)r.globals.seriesX[s][l]>e&&r.globals.seriesX[s][l]<t&&(n+=i[l]);return n})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,r){var i=[];if(Array.isArray(t))for(var s=0;s<t.length;s++){var n=e.globals.stackedSeriesTotals[s],l=0;n&&(l=100*t[s]/n),i.push(l)}else{var h=100*t/e.globals.seriesTotals.reduce(function(f,p){return f+p},0);i.push(h)}return i})}},{key:"getCalculatedRatios",value:function(){var e,t,r,i,s=this.w.globals,n=[],l=0,h=[],f=.1,p=0;if(s.yRange=[],s.isMultipleYAxis)for(var x=0;x<s.minYArr.length;x++)s.yRange.push(Math.abs(s.minYArr[x]-s.maxYArr[x])),h.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var b=0;b<s.yRange.length;b++)n.push(s.yRange[b]/s.gridHeight);if(t=s.xRange/s.gridWidth,r=Math.abs(s.initialMaxX-s.initialMinX)/s.gridWidth,e=s.yRange/s.gridWidth,i=s.xRange/s.gridHeight,(l=s.zRange/s.gridHeight*16)||(l=1),s.minY!==Number.MIN_VALUE&&Math.abs(s.minY)!==0&&(s.hasNegs=!0),s.isMultipleYAxis){h=[];for(var y=0;y<n.length;y++)h.push(-s.minYArr[y]/n[y])}else h.push(-s.minY/n[0]),s.minY!==Number.MIN_VALUE&&Math.abs(s.minY)!==0&&(f=-s.minY/e,p=s.minX/t);return{yRatio:n,invertedYRatio:e,zRatio:l,xRatio:t,initialXRatio:r,invertedXRatio:i,baseLineInvertedY:f,baseLineY:h,baseLineX:p}}},{key:"getLogSeries",value:function(e){var t=this,r=this.w;return r.globals.seriesLog=e.map(function(i,s){return r.config.yaxis[s]&&r.config.yaxis[s].logarithmic?i.map(function(n){return n===null?null:t.getLogVal(r.config.yaxis[s].logBase,n,s)}):i}),r.globals.invalidLogScale?e:r.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,r){if(t===0)return 0;var i=this.w,s=i.globals.minYArr[r]===0?-1:this.getBaseLog(e,i.globals.minYArr[r]),n=(i.globals.maxYArr[r]===0?0:this.getBaseLog(e,i.globals.maxYArr[r]))-s;return t<1?t/n:(this.getBaseLog(e,t)-s)/n}},{key:"getLogYRatios",value:function(e){var t=this,r=this.w,i=this.w.globals;return i.yLogRatio=e.slice(),i.logYRange=i.yRange.map(function(s,n){if(r.config.yaxis[n]&&t.w.config.yaxis[n].logarithmic){var l,h=-Number.MAX_VALUE,f=Number.MIN_VALUE;return i.seriesLog.forEach(function(p,x){p.forEach(function(b){r.config.yaxis[x]&&r.config.yaxis[x].logarithmic&&(h=Math.max(b,h),f=Math.min(b,f))})}),l=Math.pow(i.yRange[n],Math.abs(f-h)/i.yRange[n]),i.yLogRatio[n]=l/i.gridHeight,l}}),i.invalidLogScale?e.slice():i.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,r=0,i=0;return e.length&&e[0].type!==void 0&&e.forEach(function(s){s.type!=="bar"&&s.type!=="column"&&s.type!=="candlestick"&&s.type!=="boxPlot"||r++,s.type!==void 0&&i++}),i>0&&(t=!0),{comboBarCount:r,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,r){return t.yaxis&&(t=e.extendYAxis(t,r)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),E}(),fe=function(){function E(e){m(this,E),this.w=e.w,this.annoCtx=e}return w(E,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=this.w;if(e.label.orientation==="vertical"){var i=t!==null?t:0,s=r.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i,"']"));if(s!==null){var n=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-n.height+4),e.label.position==="top"?s.setAttribute("y",parseFloat(s.getAttribute("y"))+n.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-n.width);var l=this.annoCtx.graphics.rotateAroundCenter(s),h=l.x,f=l.y;s.setAttribute("transform","rotate(-90 ".concat(h," ").concat(f,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var r=this.w;if(!e||t.label.text===void 0||t.label.text!==void 0&&!String(t.label.text).trim())return null;var i=r.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=e.getBoundingClientRect(),n=t.label.style.padding.left,l=t.label.style.padding.right,h=t.label.style.padding.top,f=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(h=t.label.style.padding.left,f=t.label.style.padding.right,n=t.label.style.padding.top,l=t.label.style.padding.bottom);var p=s.left-i.left-n,x=s.top-i.top-h,b=this.annoCtx.graphics.drawRect(p-r.globals.barPadForNumericAxis,x,s.width+n+l,s.height+h+f,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&b.node.classList.add(t.id),b}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,r=function(i,s,n){var l=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(s,"']"));if(l){var h=l.parentNode,f=e.addBackgroundToAnno(l,i);f&&(h.insertBefore(f.node,l),i.label.mouseEnter&&f.node.addEventListener("mouseenter",i.label.mouseEnter.bind(e,i)),i.label.mouseLeave&&f.node.addEventListener("mouseleave",i.label.mouseLeave.bind(e,i)),i.label.click&&f.node.addEventListener("click",i.label.click.bind(e,i)))}};t.config.annotations.xaxis.map(function(i,s){r(i,s,"xaxis")}),t.config.annotations.yaxis.map(function(i,s){r(i,s,"yaxis")}),t.config.annotations.points.map(function(i,s){r(i,s,"point")})}},{key:"getY1Y2",value:function(e,t){var r,i=e==="y1"?t.y:t.y2,s=this.w;if(this.annoCtx.invertAxis){var n=s.globals.labels.indexOf(i);s.config.xaxis.convertedCatToNumeric&&(n=s.globals.categoryLabels.indexOf(i));var l=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(n+1)+")");l&&(r=parseFloat(l.getAttribute("y")))}else{var h;s.config.yaxis[t.yAxisIndex].logarithmic?h=(i=new re(this.annoCtx.ctx).getLogVal(i,t.yAxisIndex))/s.globals.yLogRatio[t.yAxisIndex]:h=(i-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight),r=s.globals.gridHeight-h,!t.marker||t.y!==void 0&&t.y!==null||(r=0),s.config.yaxis[t.yAxisIndex]&&s.config.yaxis[t.yAxisIndex].reversed&&(r=h)}return typeof i=="string"&&i.indexOf("px")>-1&&(r=parseFloat(i)),r}},{key:"getX1X2",value:function(e,t){var r=this.w,i=this.annoCtx.invertAxis?r.globals.minY:r.globals.minX,s=this.annoCtx.invertAxis?r.globals.maxY:r.globals.maxX,n=this.annoCtx.invertAxis?r.globals.yRange[0]:r.globals.xRange,l=(t.x-i)/(n/r.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(l=(s-t.x)/(n/r.globals.gridWidth)),r.config.xaxis.type!=="category"&&!r.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||r.globals.dataFormatXNumeric||(l=this.getStringX(t.x));var h=(t.x2-i)/(n/r.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(h=(s-t.x2)/(n/r.globals.gridWidth)),r.config.xaxis.type!=="category"&&!r.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||r.globals.dataFormatXNumeric||(h=this.getStringX(t.x2)),t.x!==void 0&&t.x!==null||!t.marker||(l=r.globals.gridWidth),e==="x1"&&typeof t.x=="string"&&t.x.indexOf("px")>-1&&(l=parseFloat(t.x)),e==="x2"&&typeof t.x2=="string"&&t.x2.indexOf("px")>-1&&(h=parseFloat(t.x2)),e==="x1"?l:h}},{key:"getStringX",value:function(e){var t=this.w,r=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var i=t.globals.labels.indexOf(e),s=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(i+1)+")");return s&&(r=parseFloat(s.getAttribute("x"))),r}}]),E}(),ve=function(){function E(e){m(this,E),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new fe(this.annoCtx)}return w(E,[{key:"addXaxisAnnotation",value:function(e,t,r){var i,s=this.w,n=this.helpers.getX1X2("x1",e),l=e.label.text,h=e.strokeDashArray;if(O.isNumber(n)){if(e.x2===null||e.x2===void 0){var f=this.annoCtx.graphics.drawLine(n+e.offsetX,0+e.offsetY,n+e.offsetX,s.globals.gridHeight+e.offsetY,e.borderColor,h,e.borderWidth);t.appendChild(f.node),e.id&&f.node.classList.add(e.id)}else{if((i=this.helpers.getX1X2("x2",e))<n){var p=n;n=i,i=p}var x=this.annoCtx.graphics.drawRect(n+e.offsetX,0+e.offsetY,i-n,s.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,h);x.node.classList.add("apexcharts-annotation-rect"),x.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(x.node),e.id&&x.node.classList.add(e.id)}var b=this.annoCtx.graphics.getTextRects(l,parseFloat(e.label.style.fontSize)),y=e.label.position==="top"?4:e.label.position==="center"?s.globals.gridHeight/2+(e.label.orientation==="vertical"?b.width/2:0):s.globals.gridHeight,C=this.annoCtx.graphics.drawText({x:n+e.label.offsetX,y:y+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?b.width/2-12:-b.width/2:0),text:l,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});C.attr({rel:r}),t.appendChild(C.node),this.annoCtx.helpers.setOrientations(e,r)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,r=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(i,s){e.addXaxisAnnotation(i,r.node,s)}),r}}]),E}(),Ee=function(){function E(e){m(this,E),this.w=e.w,this.annoCtx=e,this.helpers=new fe(this.annoCtx)}return w(E,[{key:"addYaxisAnnotation",value:function(e,t,r){var i,s=this.w,n=e.strokeDashArray,l=this.helpers.getY1Y2("y1",e),h=e.label.text;if(e.y2===null||e.y2===void 0){var f=this.annoCtx.graphics.drawLine(0+e.offsetX,l+e.offsetY,this._getYAxisAnnotationWidth(e),l+e.offsetY,e.borderColor,n,e.borderWidth);t.appendChild(f.node),e.id&&f.node.classList.add(e.id)}else{if((i=this.helpers.getY1Y2("y2",e))>l){var p=l;l=i,i=p}var x=this.annoCtx.graphics.drawRect(0+e.offsetX,i+e.offsetY,this._getYAxisAnnotationWidth(e),l-i,0,e.fillColor,e.opacity,1,e.borderColor,n);x.node.classList.add("apexcharts-annotation-rect"),x.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(x.node),e.id&&x.node.classList.add(e.id)}var b=e.label.position==="right"?s.globals.gridWidth:e.label.position==="center"?s.globals.gridWidth/2:0,y=this.annoCtx.graphics.drawText({x:b+e.label.offsetX,y:(i??l)+e.label.offsetY-3,text:h,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});y.attr({rel:r}),t.appendChild(y.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,r=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map(function(i,s){e.addYaxisAnnotation(i,r.node,s)}),r}}]),E}(),we=function(){function E(e){m(this,E),this.w=e.w,this.annoCtx=e,this.helpers=new fe(this.annoCtx)}return w(E,[{key:"addPointAnnotation",value:function(e,t,r){this.w;var i=this.helpers.getX1X2("x1",e),s=this.helpers.getY1Y2("y1",e);if(O.isNumber(i)){var n={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},l=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,s+e.marker.offsetY,n);t.appendChild(l.node);var h=e.label.text?e.label.text:"",f=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:s+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:h,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(f.attr({rel:r}),t.appendChild(f.node),e.customSVG.SVG){var p=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});p.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(s+e.customSVG.offsetY,")")}),p.node.innerHTML=e.customSVG.SVG,t.appendChild(p.node)}if(e.image.path){var x=e.image.width?e.image.width:20,b=e.image.height?e.image.height:20;l=this.annoCtx.addImage({x:i+e.image.offsetX-x/2,y:s+e.image.offsetY-b/2,width:x,height:b,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&l.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&l.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&l.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,r=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(i,s){e.addPointAnnotation(i,r.node,s)}),r}}]),E}(),Ce={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},Pe=function(){function E(){m(this,E),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return w(E,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[Ce],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,r){return t+r},0)/e.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,r){return t+r},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return e!==null?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),E}(),Ze=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.graphics=new U(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new fe(this),this.xAxisAnnotations=new ve(this),this.yAxisAnnotations=new Ee(this),this.pointsAnnotations=new we(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return w(E,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),r=this.xAxisAnnotations.drawXAxisAnnotations(),i=this.pointsAnnotations.drawPointAnnotations(),s=e.config.chart.animations.enabled,n=[t,r,i],l=[r.node,t.node,i.node],h=0;h<3;h++)e.globals.dom.elGraphical.add(n[h]),!s||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&l[h].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:l[h],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,r){e.addImage(t,r)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,r){e.addText(t,r)})}},{key:"addXaxisAnnotation",value:function(e,t,r){this.xAxisAnnotations.addXaxisAnnotation(e,t,r)}},{key:"addYaxisAnnotation",value:function(e,t,r){this.yAxisAnnotations.addYaxisAnnotation(e,t,r)}},{key:"addPointAnnotation",value:function(e,t,r){this.pointsAnnotations.addPointAnnotation(e,t,r)}},{key:"addText",value:function(e,t){var r=e.x,i=e.y,s=e.text,n=e.textAnchor,l=e.foreColor,h=e.fontSize,f=e.fontFamily,p=e.fontWeight,x=e.cssClass,b=e.backgroundColor,y=e.borderWidth,C=e.strokeDashArray,z=e.borderRadius,L=e.borderColor,R=e.appendTo,_=R===void 0?".apexcharts-annotations":R,d=e.paddingLeft,v=d===void 0?4:d,M=e.paddingRight,P=M===void 0?4:M,B=e.paddingBottom,N=B===void 0?2:B,W=e.paddingTop,G=W===void 0?2:W,Q=this.w,ie=this.graphics.drawText({x:r,y:i,text:s,textAnchor:n||"start",fontSize:h||"12px",fontWeight:p||"regular",fontFamily:f||Q.config.chart.fontFamily,foreColor:l||Q.config.chart.foreColor,cssClass:x}),te=Q.globals.dom.baseEl.querySelector(_);te&&te.appendChild(ie.node);var ce=ie.bbox();if(s){var me=this.graphics.drawRect(ce.x-v,ce.y-G,ce.width+v+P,ce.height+N+G,z,b||"transparent",1,y,L,C);te.insertBefore(me.node,ie.node)}}},{key:"addImage",value:function(e,t){var r=this.w,i=e.path,s=e.x,n=s===void 0?0:s,l=e.y,h=l===void 0?0:l,f=e.width,p=f===void 0?20:f,x=e.height,b=x===void 0?20:x,y=e.appendTo,C=y===void 0?".apexcharts-annotations":y,z=r.globals.dom.Paper.image(i);z.size(p,b).move(n,h);var L=r.globals.dom.baseEl.querySelector(C);return L&&L.appendChild(z.node),z}},{key:"addXaxisAnnotationExternal",value:function(e,t,r){return this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"xaxis",contextMethod:r.addXaxisAnnotation}),r}},{key:"addYaxisAnnotationExternal",value:function(e,t,r){return this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"yaxis",contextMethod:r.addYaxisAnnotation}),r}},{key:"addPointAnnotationExternal",value:function(e,t,r){return this.invertAxis===void 0&&(this.invertAxis=r.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"point",contextMethod:r.addPointAnnotation}),r}},{key:"addAnnotationExternal",value:function(e){var t=e.params,r=e.pushToMemory,i=e.context,s=e.type,n=e.contextMethod,l=i,h=l.w,f=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),p=f.childNodes.length+1,x=new Pe,b=Object.assign({},s==="xaxis"?x.xAxisAnnotation:s==="yaxis"?x.yAxisAnnotation:x.pointAnnotation),y=O.extend(b,t);switch(s){case"xaxis":this.addXaxisAnnotation(y,f,p);break;case"yaxis":this.addYaxisAnnotation(y,f,p);break;case"point":this.addPointAnnotation(y,f,p)}var C=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(p,"']")),z=this.helpers.addBackgroundToAnno(C,y);return z&&f.insertBefore(z.node,C),r&&h.globals.memory.methodsToExec.push({context:l,id:y.id?y.id:O.randomId(),method:n,label:"addAnnotation",params:t}),i}},{key:"clearAnnotations",value:function(e){var t=e.w,r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(i,s){i.label!=="addText"&&i.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(s,1)}),r=O.listToArray(r),Array.prototype.forEach.call(r,function(i){for(;i.firstChild;)i.removeChild(i.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var r=e.w,i=r.globals.dom.baseEl.querySelectorAll(".".concat(t));i&&(r.globals.memory.methodsToExec.map(function(s,n){s.id===t&&r.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(i,function(s){s.parentElement.removeChild(s)}))}}]),E}(),ne=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return w(E,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var r=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return r=this.getTimeStamp(r)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var r=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(Z(r.months)),n=[""].concat(Z(r.shortMonths)),l=[""].concat(Z(r.days)),h=[""].concat(Z(r.shortDays));function f(N,W){var G=N+"";for(W=W||2;G.length<W;)G="0"+G;return G}var p=i?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+p)).replace(/(^|[^\\])yy/g,"$1"+p.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+p);var x=(i?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+s[0])).replace(/(^|[^\\])MMM/g,"$1"+n[0])).replace(/(^|[^\\])MM/g,"$1"+f(x))).replace(/(^|[^\\])M/g,"$1"+x);var b=i?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+l[0])).replace(/(^|[^\\])ddd/g,"$1"+h[0])).replace(/(^|[^\\])dd/g,"$1"+f(b))).replace(/(^|[^\\])d/g,"$1"+b);var y=i?e.getUTCHours():e.getHours(),C=y>12?y-12:y===0?12:y;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+f(y))).replace(/(^|[^\\])H/g,"$1"+y)).replace(/(^|[^\\])hh+/g,"$1"+f(C))).replace(/(^|[^\\])h/g,"$1"+C);var z=i?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+f(z))).replace(/(^|[^\\])m/g,"$1"+z);var L=i?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+f(L))).replace(/(^|[^\\])s/g,"$1"+L);var R=i?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+f(R,3)),R=Math.round(R/10),t=t.replace(/(^|[^\\])ff/g,"$1"+f(R)),R=Math.round(R/10);var _=y<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+R)).replace(/(^|[^\\])TT+/g,"$1"+_)).replace(/(^|[^\\])T/g,"$1"+_.charAt(0));var d=_.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+d)).replace(/(^|[^\\])t/g,"$1"+d.charAt(0));var v=-e.getTimezoneOffset(),M=i||!v?"Z":v>0?"+":"-";if(!i){var P=(v=Math.abs(v))%60;M+=f(Math.floor(v/60))+":"+f(P)}t=t.replace(/(^|[^\\])K/g,"$1"+M);var B=(i?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(l[0],"g"),l[B])).replace(new RegExp(h[0],"g"),h[B])).replace(new RegExp(s[0],"g"),s[x])).replace(new RegExp(n[0],"g"),n[x])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,r){var i=this.w;i.config.xaxis.min!==void 0&&(e=i.config.xaxis.min),i.config.xaxis.max!==void 0&&(t=i.config.xaxis.max);var s=this.getDate(e),n=this.getDate(t),l=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),h=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(l[6],10),maxMillisecond:parseInt(h[6],10),minSecond:parseInt(l[5],10),maxSecond:parseInt(h[5],10),minMinute:parseInt(l[4],10),maxMinute:parseInt(h[4],10),minHour:parseInt(l[3],10),maxHour:parseInt(h[3],10),minDate:parseInt(l[2],10),maxDate:parseInt(h[2],10),minMonth:parseInt(l[1],10)-1,maxMonth:parseInt(h[1],10)-1,minYear:parseInt(l[0],10),maxYear:parseInt(h[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,r){return this.determineDaysOfMonths(e,t)-r}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,r){var i=this.daysCntOfYear[t]+r;return t>1&&this.isLeapYear()&&i++,i}},{key:"determineDaysOfMonths",value:function(e,t){var r=30;switch(e=O.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(r=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:r=31}return r}}]),E}(),Me=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return w(E,[{key:"xLabelFormat",value:function(e,t,r,i){var s=this.w;if(s.config.xaxis.type==="datetime"&&s.config.xaxis.labels.formatter===void 0&&s.config.tooltip.x.formatter===void 0){var n=new ne(this.ctx);return n.formatDate(n.getDate(t),s.config.tooltip.x.format)}return e(t,r,i)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,r){var i=this.w;return O.isNumber(e)&&(e=i.globals.yValueDecimal!==0?e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:i.globals.yValueDecimal):i.globals.maxYArr[r]-i.globals.minYArr[r]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(r){return e.defaultGeneralFormatter(r)},t.globals.ttKeyFormatter=function(r){return e.defaultGeneralFormatter(r)},t.globals.ttZFormatter=function(r){return r},t.globals.legendFormatter=function(r){return e.defaultGeneralFormatter(r)},t.config.xaxis.labels.formatter!==void 0?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(r){if(O.isNumber(r)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(O.isNumber(t.config.xaxis.decimalsInFloat))return r.toFixed(t.config.xaxis.decimalsInFloat);var i=t.globals.maxX-t.globals.minX;return i>0&&i<100?r.toFixed(1):r.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?r.toFixed(1):r.toFixed(0)}return r},typeof t.config.tooltip.x.formatter=="function"?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(t.globals.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(r,i){r.labels.formatter!==void 0?t.globals.yLabelFormatters[i]=r.labels.formatter:t.globals.yLabelFormatters[i]=function(s){return t.globals.xyCharts?Array.isArray(s)?s.map(function(n){return e.defaultYFormatter(n,r,i)}):e.defaultYFormatter(s,r,i):s}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(r,i){return r.length>i.length?r:i},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),E}(),ke=function(E){var e,t=E.isTimeline,r=E.ctx,i=E.seriesIndex,s=E.dataPointIndex,n=E.y1,l=E.y2,h=E.w,f=h.globals.seriesRangeStart[i][s],p=h.globals.seriesRangeEnd[i][s],x=h.globals.labels[s],b=h.config.series[i].name?h.config.series[i].name:"",y=h.globals.ttKeyFormatter,C=h.config.tooltip.y.title.formatter,z={w:h,seriesIndex:i,dataPointIndex:s,start:f,end:p};typeof C=="function"&&(b=C(b,z)),(e=h.config.series[i].data[s])!==null&&e!==void 0&&e.x&&(x=h.config.series[i].data[s].x),t||h.config.xaxis.type==="datetime"&&(x=new Me(r).xLabelFormat(h.globals.ttKeyFormatter,x,x,{i:void 0,dateFormatter:new ne(r).formatDate,w:h})),typeof y=="function"&&(x=y(x,z)),Number.isFinite(n)&&Number.isFinite(l)&&(f=n,p=l);var L="",R="",_=h.globals.colors[i];if(h.config.tooltip.x.formatter===void 0)if(h.config.xaxis.type==="datetime"){var d=new ne(r);L=d.formatDate(d.getDate(f),h.config.tooltip.x.format),R=d.formatDate(d.getDate(p),h.config.tooltip.x.format)}else L=f,R=p;else L=h.config.tooltip.x.formatter(f),R=h.config.tooltip.x.formatter(p);return{start:f,end:p,startVal:L,endVal:R,ylabel:x,color:_,seriesName:b}},qe=function(E){var e=E.color,t=E.seriesName,r=E.ylabel,i=E.start,s=E.end,n=E.seriesIndex,l=E.dataPointIndex,h=E.ctx.tooltip.tooltipLabels.getFormatters(n);i=h.yLbFormatter(i),s=h.yLbFormatter(s);var f=h.yLbFormatter(E.w.globals.series[n][l]),p=`<span class="value start-value">
|
|
37
|
+
`.concat(i,`
|
|
38
|
+
</span> <span class="separator">-</span> <span class="value end-value">
|
|
39
|
+
`).concat(s,`
|
|
40
|
+
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(t||"")+'</span></div><div> <span class="category">'+r+": </span> "+(E.w.globals.comboCharts?E.w.config.series[n].type==="rangeArea"||E.w.config.series[n].type==="rangeBar"?p:"<span>".concat(f,"</span>"):p)+" </div></div>"},Je=function(){function E(e){m(this,E),this.opts=e}return w(E,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),O.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),u(u({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var r=t.seriesIndex,i=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,r,i,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var r=t.seriesIndex,i=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,r,i,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var r=t.seriesIndex,i=t.dataPointIndex,s=t.w,n=function(){var l=s.globals.seriesRangeStart[r][i];return s.globals.seriesRangeEnd[r][i]-l};return s.globals.comboCharts?s.config.series[r].type==="rangeBar"||s.config.series[r].type==="rangeArea"?n():e:n()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(t){var r=ke(u(u({},t),{},{isTimeline:!0})),i=r.color,s=r.seriesName,n=r.ylabel,l=r.startVal,h=r.endVal;return qe(u(u({},t),{},{color:i,seriesName:s,ylabel:n,start:l,end:h}))}(e):function(t){var r=ke(t),i=r.color,s=r.seriesName,n=r.ylabel,l=r.start,h=r.end;return qe(u(u({},t),{},{color:i,seriesName:s,ylabel:n,start:l,end:h}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,r;return(t=e.plotOptions.bar)!==null&&t!==void 0&&t.barHeight||(e.plotOptions.bar.barHeight=2),(r=e.plotOptions.bar)!==null&&r!==void 0&&r.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(t){var r=ke(t),i=r.color,s=r.seriesName,n=r.ylabel,l=r.start,h=r.end;return qe(u(u({},t),{},{color:i,seriesName:s,ylabel:n,start:l,end:h}))}(e)}}}}},{key:"brush",value:function(e){return O.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(r,i){e.yaxis[i].min=0,e.yaxis[i].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(r){return typeof r=="number"&&r?r.toFixed(0)+"%":r}),e}},{key:"stackedBars",value:function(){var e=this.bar();return u(u({},e),{},{plotOptions:u(u({},e.plotOptions),{},{bar:u(u({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,r){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(n){return O.isNumber(n)?Math.floor(n):n};var i=e.xaxis.labels.formatter,s=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return r&&r.length&&(s=r.map(function(n){return Array.isArray(n)?n:String(n)})),s&&s.length&&(e.xaxis.labels.formatter=function(n){return O.isNumber(n)?i(s[Math.floor(n)-1]):i(n)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,r,i,s){var n=e.globals.seriesCandleO[t][r],l=e.globals.seriesCandleH[t][r],h=e.globals.seriesCandleM[t][r],f=e.globals.seriesCandleL[t][r],p=e.globals.seriesCandleC[t][r];return e.config.series[t].type&&e.config.series[t].type!==s?`<div class="apexcharts-custom-tooltip">
|
|
41
|
+
`.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][r],`</strong>
|
|
42
|
+
</div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(i[0],': <span class="value">')+n+"</span></div>"+"<div>".concat(i[1],': <span class="value">')+l+"</span></div>"+(h?"<div>".concat(i[2],': <span class="value">')+h+"</span></div>":"")+"<div>".concat(i[3],': <span class="value">')+f+"</span></div>"+"<div>".concat(i[4],': <span class="value">')+p+"</span></div></div>"}}]),E}(),vt=function(){function E(e){m(this,E),this.opts=e}return w(E,[{key:"init",value:function(e){var t=e.responsiveOverride,r=this.opts,i=new Pe,s=new Je(r);this.chartType=r.chart.type,r=this.extendYAxis(r),r=this.extendAnnotations(r);var n=i.init(),l={};if(r&&g(r)==="object"){var h,f,p,x,b,y,C,z,L={};L=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(r.chart.type)!==-1?s[r.chart.type]():s.line(),(h=r.plotOptions)!==null&&h!==void 0&&(f=h.bar)!==null&&f!==void 0&&f.isFunnel&&(L=s.funnel()),r.chart.stacked&&r.chart.type==="bar"&&(L=s.stackedBars()),(p=r.chart.brush)!==null&&p!==void 0&&p.enabled&&(L=s.brush(L)),r.chart.stacked&&r.chart.stackType==="100%"&&(r=s.stacked100(r)),(x=r.plotOptions)!==null&&x!==void 0&&(b=x.bar)!==null&&b!==void 0&&b.isDumbbell&&(r=s.dumbbell(r)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(r),r.xaxis=r.xaxis||window.Apex.xaxis||{},t||(r.xaxis.convertedCatToNumeric=!1),((y=(r=this.checkForCatToNumericXAxis(this.chartType,L,r)).chart.sparkline)!==null&&y!==void 0&&y.enabled||(C=window.Apex.chart)!==null&&C!==void 0&&(z=C.sparkline)!==null&&z!==void 0&&z.enabled)&&(L=s.sparkline(L)),l=O.extend(n,L)}var R=O.extend(l,window.Apex);return n=O.extend(R,r),n=this.handleUserInputErrors(n)}},{key:"checkForCatToNumericXAxis",value:function(e,t,r){var i,s,n=new Je(r),l=(e==="bar"||e==="boxPlot")&&((i=r.plotOptions)===null||i===void 0||(s=i.bar)===null||s===void 0?void 0:s.horizontal),h=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",f=r.xaxis.type!=="datetime"&&r.xaxis.type!=="numeric",p=r.xaxis.tickPlacement?r.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return l||h||!f||p==="between"||(r=n.convertCatToNumeric(r)),r}},{key:"extendYAxis",value:function(e,t){var r=new Pe;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=O.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[O.extend(r.yAxis,e.yaxis)]:e.yaxis=O.extendArray(e.yaxis,r.yAxis);var i=!1;e.yaxis.forEach(function(n){n.logarithmic&&(i=!0)});var s=e.series;return t&&!s&&(s=t.config.series),i&&s.length!==e.yaxis.length&&s.length&&(e.yaxis=s.map(function(n,l){if(n.name||(s[l].name="series-".concat(l+1)),e.yaxis[l])return e.yaxis[l].seriesName=s[l].name,e.yaxis[l];var h=O.extend(r.yAxis,e.yaxis[0]);return h.show=!1,h})),i&&s.length>1&&s.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),e}},{key:"extendAnnotations",value:function(e){return e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new Pe;return e.annotations.yaxis=O.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new Pe;return e.annotations.xaxis=O.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new Pe;return e.annotations.points=O.extendArray(e.annotations.points!==void 0?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!=="bar"&&t.chart.type!=="rangeBar"||t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),t.chart.type!=="candlestick"&&t.chart.type!=="boxPlot"||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),E}(),lt=function(){function E(){m(this,E)}return w(E,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=O.extend({},e),t.initialSeries=O.clone(e.series),t.lastXAxis=O.clone(t.initialConfig.xaxis),t.lastYAxis=O.clone(t.initialConfig.yaxis),t}}]),E}(),ft=function(){function E(e){m(this,E),this.opts=e}return w(E,[{key:"init",value:function(){var e=new vt(this.opts).init({responsiveOverride:!1});return{config:e,globals:new lt().init(e)}}}]),E}(),Ne=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return w(E,[{key:"clippedImgArea",value:function(e){var t=this.w,r=t.config,i=parseInt(t.globals.gridWidth,10),s=parseInt(t.globals.gridHeight,10),n=i>s?i:s,l=e.image,h=0,f=0;e.width===void 0&&e.height===void 0?r.fill.image.width!==void 0&&r.fill.image.height!==void 0?(h=r.fill.image.width+1,f=r.fill.image.height):(h=n+1,f=n):(h=e.width,f=e.height);var p=document.createElementNS(t.globals.SVGNS,"pattern");U.setAttrs(p,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:h+"px",height:f+"px"});var x=document.createElementNS(t.globals.SVGNS,"image");p.appendChild(x),x.setAttributeNS(window.SVG.xlink,"href",l),U.setAttrs(x,{x:0,y:0,preserveAspectRatio:"none",width:h+"px",height:f+"px"}),x.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(p)}},{key:"getSeriesIndex",value:function(e){var t=this.w,r=t.config.chart.type;return(r==="bar"||r==="rangeBar")&&t.config.plotOptions.bar.distributed||r==="heatmap"||r==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var r,i,s,n=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var l=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(l=t.globals.seriesColors[this.seriesIndex]),typeof l=="function"&&(l=l({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var h=e.fillType?e.fillType:this.getFillType(this.seriesIndex),f=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity;e.color&&(l=e.color);var p=l;if(l.indexOf("rgb")===-1?l.length<9&&(p=O.hexToRgba(l,f)):l.indexOf("rgba")>-1&&(f=O.getOpacityFromRGBA(l)),e.opacity&&(f=e.opacity),h==="pattern"&&(i=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:i,fillColor:l,fillOpacity:f,defaultColor:p})),h==="gradient"&&(s=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:l,fillOpacity:f,i:this.seriesIndex})),h==="image"){var x=n.fill.image.src,b=e.patternID?e.patternID:"";this.clippedImgArea({opacity:f,image:Array.isArray(x)?e.seriesNumber<x.length?x[e.seriesNumber]:x[0]:x,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(b)}),r="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(b,")")}else r=h==="gradient"?s:h==="pattern"?i:p;return e.solid&&(r=p),r}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,r=this.opts,i=[];return e.globals.comboCharts?e.config.series[this.seriesIndex].type==="line"?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors):t.chart.type==="line"?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors),r.fillColors!==void 0&&(i=[],Array.isArray(r.fillColors)?i=r.fillColors.slice():i.push(r.fillColors)),i}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,r=e.patternFill,i=e.fillColor,s=e.fillOpacity,n=e.defaultColor,l=this.w.config.fill;t&&(l=t);var h=this.opts,f=new U(this.ctx),p=Array.isArray(l.pattern.strokeWidth)?l.pattern.strokeWidth[this.seriesIndex]:l.pattern.strokeWidth,x=i;return Array.isArray(l.pattern.style)?r=l.pattern.style[h.seriesNumber]!==void 0?f.drawPattern(l.pattern.style[h.seriesNumber],l.pattern.width,l.pattern.height,x,p,s):n:r=f.drawPattern(l.pattern.style,l.pattern.width,l.pattern.height,x,p,s),r}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,r=e.fillOpacity,i=e.fillConfig,s=e.i,n=this.w.config.fill;i&&(n=u(u({},n),i));var l,h=this.opts,f=new U(this.ctx),p=new O,x=n.gradient.type,b=t,y=n.gradient.opacityFrom===void 0?r:Array.isArray(n.gradient.opacityFrom)?n.gradient.opacityFrom[s]:n.gradient.opacityFrom;b.indexOf("rgba")>-1&&(y=O.getOpacityFromRGBA(b));var C=n.gradient.opacityTo===void 0?r:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[s]:n.gradient.opacityTo;if(n.gradient.gradientToColors===void 0||n.gradient.gradientToColors.length===0)l=n.gradient.shade==="dark"?p.shadeColor(-1*parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?O.rgb2hex(t):t):p.shadeColor(parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?O.rgb2hex(t):t);else if(n.gradient.gradientToColors[h.seriesNumber]){var z=n.gradient.gradientToColors[h.seriesNumber];l=z,z.indexOf("rgba")>-1&&(C=O.getOpacityFromRGBA(z))}else l=t;if(n.gradient.gradientFrom&&(b=n.gradient.gradientFrom),n.gradient.gradientTo&&(l=n.gradient.gradientTo),n.gradient.inverseColors){var L=b;b=l,l=L}return b.indexOf("rgb")>-1&&(b=O.rgb2hex(b)),l.indexOf("rgb")>-1&&(l=O.rgb2hex(l)),f.drawGradient(x,b,l,y,C,h.size,n.gradient.stops,n.gradient.colorStops,s)}}]),E}(),ct=function(){function E(e,t){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)e.globals.markers.size[t]===void 0&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(r){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e,t,r,i){var s,n=arguments.length>4&&arguments[4]!==void 0&&arguments[4],l=this.w,h=t,f=e,p=null,x=new U(this.ctx),b=l.config.markers.discrete&&l.config.markers.discrete.length;if((l.globals.markers.size[t]>0||n||b)&&(p=x.group({class:n||b?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(l.globals.cuid,")")),Array.isArray(f.x))for(var y=0;y<f.x.length;y++){var C=r;r===1&&y===0&&(C=0),r===1&&y===1&&(C=1);var z="apexcharts-marker";if(l.config.chart.type!=="line"&&l.config.chart.type!=="area"||l.globals.comboCharts||l.config.tooltip.intersect||(z+=" no-pointer-events"),(Array.isArray(l.config.markers.size)?l.globals.markers.size[t]>0:l.config.markers.size>0)||n||b){O.isNumber(f.y[y])?z+=" w".concat(O.randomId()):z="apexcharts-nullpoint";var L=this.getMarkerConfig({cssClass:z,seriesIndex:t,dataPointIndex:C});l.config.series[h].data[C]&&(l.config.series[h].data[C].fillColor&&(L.pointFillColor=l.config.series[h].data[C].fillColor),l.config.series[h].data[C].strokeColor&&(L.pointStrokeColor=l.config.series[h].data[C].strokeColor)),i&&(L.pSize=i),(f.x[y]<0||f.x[y]>l.globals.gridWidth||f.y[y]<0||f.y[y]>l.globals.gridHeight)&&(L.pSize=0),(s=x.drawMarker(f.x[y],f.y[y],L)).attr("rel",C),s.attr("j",C),s.attr("index",t),s.node.setAttribute("default-marker-size",L.pSize),new le(this.ctx).setSelectionFilter(s,t,C),this.addEvents(s),p&&p.add(s)}else l.globals.pointsArray[t]===void 0&&(l.globals.pointsArray[t]=[]),l.globals.pointsArray[t].push([f.x[y],f.y[y]])}return p}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,r=e.seriesIndex,i=e.dataPointIndex,s=i===void 0?null:i,n=e.finishRadius,l=n===void 0?null:n,h=this.w,f=this.getMarkerStyle(r),p=h.globals.markers.size[r],x=h.config.markers;return s!==null&&x.discrete.length&&x.discrete.map(function(b){b.seriesIndex===r&&b.dataPointIndex===s&&(f.pointStrokeColor=b.strokeColor,f.pointFillColor=b.fillColor,p=b.size,f.pointShape=b.shape)}),{pSize:l===null?p:l,pRadius:x.radius,width:Array.isArray(x.width)?x.width[r]:x.width,height:Array.isArray(x.height)?x.height[r]:x.height,pointStrokeWidth:Array.isArray(x.strokeWidth)?x.strokeWidth[r]:x.strokeWidth,pointStrokeColor:f.pointStrokeColor,pointFillColor:f.pointFillColor,shape:f.pointShape||(Array.isArray(x.shape)?x.shape[r]:x.shape),class:t,pointStrokeOpacity:Array.isArray(x.strokeOpacity)?x.strokeOpacity[r]:x.strokeOpacity,pointStrokeDashArray:Array.isArray(x.strokeDashArray)?x.strokeDashArray[r]:x.strokeDashArray,pointFillOpacity:Array.isArray(x.fillOpacity)?x.fillOpacity[r]:x.fillOpacity,seriesIndex:r}}},{key:"addEvents",value:function(e){var t=this.w,r=new U(this.ctx);e.node.addEventListener("mouseenter",r.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",r.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",r.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",r.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,r=t.globals.markers.colors,i=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[e]:i,pointFillColor:Array.isArray(r)?r[e]:r}}}]),E}(),gt=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return w(E,[{key:"draw",value:function(e,t,r){var i=this.w,s=new U(this.ctx),n=r.realIndex,l=r.pointsPos,h=r.zRatio,f=r.elParent,p=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(i.config.chart.type)});if(p.attr("clip-path","url(#gridRectMarkerMask".concat(i.globals.cuid,")")),Array.isArray(l.x))for(var x=0;x<l.x.length;x++){var b=t+1,y=!0;t===0&&x===0&&(b=0),t===0&&x===1&&(b=1);var C=0,z=i.globals.markers.size[n];if(h!==1/0){var L=i.config.plotOptions.bubble;z=i.globals.seriesZ[n][b],L.zScaling&&(z/=h),L.minBubbleRadius&&z<L.minBubbleRadius&&(z=L.minBubbleRadius),L.maxBubbleRadius&&z>L.maxBubbleRadius&&(z=L.maxBubbleRadius)}i.config.chart.animations.enabled||(C=z);var R=l.x[x],_=l.y[x];if(C=C||0,_!==null&&i.globals.series[n][b]!==void 0||(y=!1),y){var d=this.drawPoint(R,_,C,z,n,b,t);p.add(d)}f.add(p)}}},{key:"drawPoint",value:function(e,t,r,i,s,n,l){var h=this.w,f=s,p=new se(this.ctx),x=new le(this.ctx),b=new Ne(this.ctx),y=new ct(this.ctx),C=new U(this.ctx),z=y.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:f,dataPointIndex:n,finishRadius:h.config.chart.type==="bubble"||h.globals.comboCharts&&h.config.series[s]&&h.config.series[s].type==="bubble"?i:null});i=z.pSize;var L,R=b.fillPath({seriesNumber:s,dataPointIndex:n,color:z.pointFillColor,patternUnits:"objectBoundingBox",value:h.globals.series[s][l]});if(z.shape==="circle"?L=C.drawCircle(r):z.shape!=="square"&&z.shape!=="rect"||(L=C.drawRect(0,0,z.width-z.pointStrokeWidth/2,z.height-z.pointStrokeWidth/2,z.pRadius)),h.config.series[f].data[n]&&h.config.series[f].data[n].fillColor&&(R=h.config.series[f].data[n].fillColor),L.attr({x:e-z.width/2-z.pointStrokeWidth/2,y:t-z.height/2-z.pointStrokeWidth/2,cx:e,cy:t,fill:R,"fill-opacity":z.pointFillOpacity,stroke:z.pointStrokeColor,r:i,"stroke-width":z.pointStrokeWidth,"stroke-dasharray":z.pointStrokeDashArray,"stroke-opacity":z.pointStrokeOpacity}),h.config.chart.dropShadow.enabled){var _=h.config.chart.dropShadow;x.dropShadow(L,_,s)}if(!this.initialAnim||h.globals.dataChanged||h.globals.resized)h.globals.animationEnded=!0;else{var d=h.config.chart.animations.speed;p.animateMarker(L,0,z.shape==="circle"?i:{width:z.width,height:z.height},d,h.globals.easing,function(){window.setTimeout(function(){p.animationCompleted(L)},100)})}if(h.globals.dataChanged&&z.shape==="circle")if(this.dynamicAnim){var v,M,P,B,N=h.config.chart.animations.dynamicAnimation.speed;(B=h.globals.previousPaths[s]&&h.globals.previousPaths[s][l])!=null&&(v=B.x,M=B.y,P=B.r!==void 0?B.r:i);for(var W=0;W<h.globals.collapsedSeries.length;W++)h.globals.collapsedSeries[W].index===s&&(N=1,i=0);e===0&&t===0&&(i=0),p.animateCircle(L,{cx:v,cy:M,r:P},{cx:e,cy:t,r:i},N,h.globals.easing)}else L.attr({r:i});return L.attr({rel:n,j:n,index:s,"default-marker-size":i}),x.setSelectionFilter(L,s,n),y.addEvents(L),L.node.classList.add("apexcharts-marker"),L}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),E}(),pe=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"dataLabelsCorrection",value:function(e,t,r,i,s,n,l){var h=this.w,f=!1,p=new U(this.ctx).getTextRects(r,l),x=p.width,b=p.height;t<0&&(t=0),t>h.globals.gridHeight+b&&(t=h.globals.gridHeight+b/2),h.globals.dataLabelsRects[i]===void 0&&(h.globals.dataLabelsRects[i]=[]),h.globals.dataLabelsRects[i].push({x:e,y:t,width:x,height:b});var y=h.globals.dataLabelsRects[i].length-2,C=h.globals.lastDrawnDataLabelsIndexes[i]!==void 0?h.globals.lastDrawnDataLabelsIndexes[i][h.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(h.globals.dataLabelsRects[i][y]!==void 0){var z=h.globals.dataLabelsRects[i][C];(e>z.x+z.width+2||t>z.y+z.height+2||e+x<z.x)&&(f=!0)}return(s===0||n)&&(f=!0),{x:e,y:t,textRects:p,drawnextLabel:f}}},{key:"drawDataLabel",value:function(e){var t=this,r=e.type,i=e.pos,s=e.i,n=e.j,l=e.isRangeStart,h=e.strokeWidth,f=h===void 0?2:h,p=this.w,x=new U(this.ctx),b=p.config.dataLabels,y=0,C=0,z=n,L=null;if(!b.enabled||!Array.isArray(i.x))return L;L=x.group({class:"apexcharts-data-labels"});for(var R=0;R<i.x.length;R++)if(y=i.x[R]+b.offsetX,C=i.y[R]+b.offsetY+f,!isNaN(y)){n===1&&R===0&&(z=0),n===1&&R===1&&(z=1);var _=p.globals.series[s][z];r==="rangeArea"&&(_=l?p.globals.seriesRangeStart[s][z]:p.globals.seriesRangeEnd[s][z]);var d="",v=function(M){return p.config.dataLabels.formatter(M,{ctx:t.ctx,seriesIndex:s,dataPointIndex:z,w:p})};p.config.chart.type==="bubble"?(d=v(_=p.globals.seriesZ[s][z]),C=i.y[R],C=new gt(this.ctx).centerTextInBubble(C,s,z).y):_!==void 0&&(d=v(_)),this.plotDataLabelsText({x:y,y:C,text:d,i:s,j:z,parent:L,offsetCorrection:!0,dataLabelsConfig:p.config.dataLabels})}return L}},{key:"plotDataLabelsText",value:function(e){var t=this.w,r=new U(this.ctx),i=e.x,s=e.y,n=e.i,l=e.j,h=e.text,f=e.textAnchor,p=e.fontSize,x=e.parent,b=e.dataLabelsConfig,y=e.color,C=e.alwaysDrawDataLabel,z=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(n)<0)){var L={x:i,y:s,drawnextLabel:!0,textRects:null};z&&(L=this.dataLabelsCorrection(i,s,h,n,l,C,parseInt(b.style.fontSize,10))),t.globals.zoomed||(i=L.x,s=L.y),L.textRects&&(i<-10-L.textRects.width||i>t.globals.gridWidth+L.textRects.width+10)&&(h="");var R=t.globals.dataLabels.style.colors[n];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(R=t.globals.dataLabels.style.colors[l]),typeof R=="function"&&(R=R({series:t.globals.series,seriesIndex:n,dataPointIndex:l,w:t})),y&&(R=y);var _=b.offsetX,d=b.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(_=0,d=0),L.drawnextLabel){var v=r.drawText({width:100,height:parseInt(b.style.fontSize,10),x:i+_,y:s+d,foreColor:R,textAnchor:f||b.textAnchor,text:h,fontSize:p||b.style.fontSize,fontFamily:b.style.fontFamily,fontWeight:b.style.fontWeight||"normal"});if(v.attr({class:"apexcharts-datalabel",cx:i,cy:s}),b.dropShadow.enabled){var M=b.dropShadow;new le(this.ctx).dropShadow(v,M)}x.add(v),t.globals.lastDrawnDataLabelsIndexes[n]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(l)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var r=this.w,i=r.config.dataLabels.background,s=i.padding,n=i.padding/2,l=t.width,h=t.height,f=new U(this.ctx).drawRect(t.x-s,t.y-n/2,l+2*s,h+n,i.borderRadius,r.config.chart.background==="transparent"?"#fff":r.config.chart.background,i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new le(this.ctx).dropShadow(f,i.dropShadow),f}},{key:"dataLabelsBackground",value:function(){var e=this.w;if(e.config.chart.type!=="bubble")for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),r=0;r<t.length;r++){var i=t[r],s=i.getBBox(),n=null;if(s.width&&s.height&&(n=this.addBackgroundToDataLabel(i,s)),n){i.parentNode.insertBefore(n.node,i);var l=i.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?n.animate().attr({fill:l}):n.attr({fill:l}),i.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),r=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),i=0;i<t.length;i++)r&&r.insertBefore(t[i],r.nextSibling)}}]),E}(),ze=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return w(E,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(O.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),r=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:r}}},{key:"addCollapsedClassToSeries",value:function(e,t){var r=this.w;function i(s){for(var n=0;n<s.length;n++)s[n].index===t&&e.node.classList.add("apexcharts-series-collapsed")}i(r.globals.collapsedSeries),i(r.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],i=this.w,s=O.clone(i.globals.initialSeries);i.globals.previousPaths=[],r?(i.globals.collapsedSeries=[],i.globals.ancillaryCollapsedSeries=[],i.globals.collapsedSeriesIndices=[],i.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),i.config.series=s,e&&(t&&(i.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,i.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,r=0;r<e.length;r++)t.globals.collapsedSeriesIndices.indexOf(r)>-1&&(e[r].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var r=this.w;t||(t=e.target);var i=r.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(e.type==="mousemove"){var s=parseInt(t.getAttribute("rel"),10)-1,n=null,l=null;r.globals.axisCharts||r.config.chart.type==="radialBar"?r.globals.axisCharts?(n=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),l=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):n=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):n=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var h=0;h<i.length;h++)i[h].classList.add(this.legendInactiveClass);n!==null&&(r.globals.axisCharts||n.parentNode.classList.remove(this.legendInactiveClass),n.classList.remove(this.legendInactiveClass),l!==null&&l.classList.remove(this.legendInactiveClass))}else if(e.type==="mouseout")for(var f=0;f<i.length;f++)i[f].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var r=this,i=this.w,s=i.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),n=function(h){for(var f=0;f<s.length;f++)s[f].classList[h](r.legendInactiveClass)};if(e.type==="mousemove"){var l=parseInt(t.getAttribute("rel"),10)-1;n("add"),function(h){for(var f=0;f<s.length;f++){var p=parseInt(s[f].getAttribute("val"),10);p>=h.from&&p<=h.to&&s[f].classList.remove(r.legendInactiveClass)}}(i.config.plotOptions.heatmap.colorScale.ranges[l])}else e.type==="mouseout"&&n("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=this.w,i=0;if(r.config.series.length>1){for(var s=r.config.series.map(function(l,h){return l.data&&l.data.length>0&&r.globals.collapsedSeriesIndices.indexOf(h)===-1&&(!r.globals.comboCharts||t.length===0||t.length&&t.indexOf(r.config.series[h].type)>-1)?h:-1}),n=e==="asc"?0:s.length-1;e==="asc"?n<s.length:n>=0;e==="asc"?n++:n--)if(s[n]!==-1){i=s[n];break}}return i}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return e.type==="bar"||e.type==="column"?t:-1}).filter(function(e){return e!==-1}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(n,l,h){for(var f=n[l].childNodes,p={type:h,paths:[],realIndex:n[l].getAttribute("data:realIndex")},x=0;x<f.length;x++)if(f[x].hasAttribute("pathTo")){var b=f[x].getAttribute("pathTo");p.paths.push({d:b})}e.globals.previousPaths.push(p)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(n){for(var l,h=(l=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(l,"-series .apexcharts-series"))),f=0;f<h.length;f++)t(h,f,n)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(r.length>0)for(var i=function(n){for(var l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(n,"'] rect")),h=[],f=function(x){var b=function(C){return l[x].getAttribute(C)},y={x:parseFloat(b("x")),y:parseFloat(b("y")),width:parseFloat(b("width")),height:parseFloat(b("height"))};h.push({rect:y,color:l[x].getAttribute("color")})},p=0;p<l.length;p++)f(p);e.globals.previousPaths.push(h)},s=0;s<r.length;s++)i(s);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(r.length>0)for(var i=0;i<r.length;i++){for(var s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(i,"'] circle")),n=[],l=0;l<s.length;l++)n.push({x:s[l].getAttribute("cx"),y:s[l].getAttribute("cy"),r:s[l].getAttribute("r")});t.globals.previousPaths.push(n)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,r=new U(this.ctx),i=e.globals.svgWidth/2,s=e.globals.svgHeight/2,n="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,t.align==="left"?(i=10,n="start"):t.align==="right"&&(i=e.globals.svgWidth-10,n="end"),t.verticalAlign==="top"?s=50:t.verticalAlign==="bottom"&&(s=e.globals.svgHeight-50),i+=t.offsetX,s=s+parseInt(t.style.fontSize,10)+2+t.offsetY,t.text!==void 0&&t.text!==""){var l=r.drawText({x:i,y:s,text:t.text,textAnchor:n,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(l)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,r=0;r<e.length;r++)if(e[r].length===0)for(var i=0;i<e[t.globals.maxValsInArrayIndex].length;i++)e[r].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,r=this.filteredSeriesX(),i=0;i<r.length-1;i++)if(r[i][0]!==r[i+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){var e=this.w.globals.seriesX.map(function(t){return t.length>0?t:[]});return e}}]),E}(),Ue=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new re(this.ctx)}return w(E,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new ze(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].x!==void 0&&e[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new ze(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==void 0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var r=this.w.config,i=this.w.globals,s=r.chart.type==="boxPlot"||r.series[t].type==="boxPlot",n=0;n<e[t].data.length;n++)if(e[t].data[n][1]!==void 0&&(Array.isArray(e[t].data[n][1])&&e[t].data[n][1].length===4&&!s?this.twoDSeries.push(O.parseNumber(e[t].data[n][1][3])):e[t].data[n].length>=5?this.twoDSeries.push(O.parseNumber(e[t].data[n][4])):this.twoDSeries.push(O.parseNumber(e[t].data[n][1])),i.dataFormatXNumeric=!0),r.xaxis.type==="datetime"){var l=new Date(e[t].data[n][0]);l=new Date(l).getTime(),this.twoDSeriesX.push(l)}else this.twoDSeriesX.push(e[t].data[n][0]);for(var h=0;h<e[t].data.length;h++)e[t].data[h][2]!==void 0&&(this.threeDSeries.push(e[t].data[h][2]),i.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var r=this.w.config,i=this.w.globals,s=new ne(this.ctx),n=t;i.collapsedSeriesIndices.indexOf(t)>-1&&(n=this.activeSeriesIndex);for(var l=0;l<e[t].data.length;l++)e[t].data[l].y!==void 0&&(Array.isArray(e[t].data[l].y)?this.twoDSeries.push(O.parseNumber(e[t].data[l].y[e[t].data[l].y.length-1])):this.twoDSeries.push(O.parseNumber(e[t].data[l].y))),e[t].data[l].goals!==void 0&&Array.isArray(e[t].data[l].goals)?(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[l].goals)):(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var h=0;h<e[n].data.length;h++){var f=typeof e[n].data[h].x=="string",p=Array.isArray(e[n].data[h].x),x=!p&&!!s.isValidDate(e[n].data[h].x.toString());if(f||x)if(f||r.xaxis.convertedCatToNumeric){var b=i.isBarHorizontal&&i.isRangeData;r.xaxis.type!=="datetime"||b?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[h].x)):this.twoDSeriesX.push(s.parseDate(e[n].data[h].x))}else r.xaxis.type==="datetime"?this.twoDSeriesX.push(s.parseDate(e[n].data[h].x.toString())):(i.dataFormatXNumeric=!0,i.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[n].data[h].x)));else p?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[h].x)):(i.isXNumeric=!0,i.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[n].data[h].x))}if(e[t].data[0]&&e[t].data[0].z!==void 0){for(var y=0;y<e[t].data.length;y++)this.threeDSeries.push(e[t].data[y].z);i.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var r=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleRangeDataFormat("xy",e,t)),r.seriesRangeStart.push(i.start),r.seriesRangeEnd.push(i.end),r.seriesRange.push(i.rangeUniques),r.seriesRange.forEach(function(s,n){s&&s.forEach(function(l,h){l.y.forEach(function(f,p){for(var x=0;x<l.y.length;x++)if(p!==x){var b=f.y1,y=f.y2,C=l.y[x].y1;b<=l.y[x].y2&&C<=y&&(l.overlaps.indexOf(f.rangeName)<0&&l.overlaps.push(f.rangeName),l.overlaps.indexOf(l.y[x].rangeName)<0&&l.overlaps.push(l.y[x].rangeName))}})})}),i}},{key:"handleCandleStickBoxData",value:function(e,t){var r=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleCandleStickBoxDataFormat("xy",e,t)),r.seriesCandleO[t]=i.o,r.seriesCandleH[t]=i.h,r.seriesCandleM[t]=i.m,r.seriesCandleL[t]=i.l,r.seriesCandleC[t]=i.c,i}},{key:"handleRangeDataFormat",value:function(e,t,r){var i=[],s=[],n=t[r].data.filter(function(p,x,b){return x===b.findIndex(function(y){return y.x===p.x})}).map(function(p,x){return{x:p.x,overlaps:[],y:[]}});if(e==="array")for(var l=0;l<t[r].data.length;l++)Array.isArray(t[r].data[l])?(i.push(t[r].data[l][1][0]),s.push(t[r].data[l][1][1])):(i.push(t[r].data[l]),s.push(t[r].data[l]));else if(e==="xy")for(var h=function(p){var x=Array.isArray(t[r].data[p].y),b=O.randomId(),y=t[r].data[p].x,C={y1:x?t[r].data[p].y[0]:t[r].data[p].y,y2:x?t[r].data[p].y[1]:t[r].data[p].y,rangeName:b};t[r].data[p].rangeName=b;var z=n.findIndex(function(L){return L.x===y});n[z].y.push(C),i.push(C.y1),s.push(C.y2)},f=0;f<t[r].data.length;f++)h(f);return{start:i,end:s,rangeUniques:n}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,r){var i=this.w,s=i.config.chart.type==="boxPlot"||i.config.series[r].type==="boxPlot",n=[],l=[],h=[],f=[],p=[];if(e==="array")if(s&&t[r].data[0].length===6||!s&&t[r].data[0].length===5)for(var x=0;x<t[r].data.length;x++)n.push(t[r].data[x][1]),l.push(t[r].data[x][2]),s?(h.push(t[r].data[x][3]),f.push(t[r].data[x][4]),p.push(t[r].data[x][5])):(f.push(t[r].data[x][3]),p.push(t[r].data[x][4]));else for(var b=0;b<t[r].data.length;b++)Array.isArray(t[r].data[b][1])&&(n.push(t[r].data[b][1][0]),l.push(t[r].data[b][1][1]),s?(h.push(t[r].data[b][1][2]),f.push(t[r].data[b][1][3]),p.push(t[r].data[b][1][4])):(f.push(t[r].data[b][1][2]),p.push(t[r].data[b][1][3])));else if(e==="xy")for(var y=0;y<t[r].data.length;y++)Array.isArray(t[r].data[y].y)&&(n.push(t[r].data[y].y[0]),l.push(t[r].data[y].y[1]),s?(h.push(t[r].data[y].y[2]),f.push(t[r].data[y].y[3]),p.push(t[r].data[y].y[4])):(f.push(t[r].data[y].y[2]),p.push(t[r].data[y].y[3])));return{o:n,h:l,m:h,l:f,c:p}}},{key:"parseDataAxisCharts",value:function(e){var t,r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,s=this.w.config,n=this.w.globals,l=new ne(i),h=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();if(n.isRangeBar=s.chart.type==="rangeBar"&&n.isBarHorizontal,n.hasXaxisGroups=s.xaxis.type==="category"&&s.xaxis.group.groups.length>0,n.hasXaxisGroups&&(n.groups=s.xaxis.group.groups),n.hasSeriesGroups=(t=e[0])===null||t===void 0?void 0:t.group,n.hasSeriesGroups){var f=[],p=Z(new Set(e.map(function(C){return C.group})));e.forEach(function(C,z){var L=p.indexOf(C.group);f[L]||(f[L]=[]),f[L].push(C.name)}),n.seriesGroups=f}for(var x=function(){for(var C=0;C<h.length;C++)if(typeof h[C]=="string"){if(!l.isValidDate(h[C]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");r.twoDSeriesX.push(l.parseDate(h[C]))}else r.twoDSeriesX.push(h[C])},b=0;b<e.length;b++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[b].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(s.chart.type!=="rangeBar"&&s.chart.type!=="rangeArea"&&e[b].type!=="rangeBar"&&e[b].type!=="rangeArea"||(n.isRangeData=!0,n.isComboCharts?e[b].type!=="rangeBar"&&e[b].type!=="rangeArea"||this.handleRangeData(e,b):s.chart.type!=="rangeBar"&&s.chart.type!=="rangeArea"||this.handleRangeData(e,b)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,b):this.isFormatXY()&&this.handleFormatXY(e,b),s.chart.type!=="candlestick"&&e[b].type!=="candlestick"&&s.chart.type!=="boxPlot"&&e[b].type!=="boxPlot"||this.handleCandleStickBoxData(e,b),n.series.push(this.twoDSeries),n.labels.push(this.twoDSeriesX),n.seriesX.push(this.twoDSeriesX),n.seriesGoals=this.seriesGoals,b!==this.activeSeriesIndex||this.fallbackToCategory||(n.isXNumeric=!0);else{s.xaxis.type==="datetime"?(n.isXNumeric=!0,x(),n.seriesX.push(this.twoDSeriesX)):s.xaxis.type==="numeric"&&(n.isXNumeric=!0,h.length>0&&(this.twoDSeriesX=h,n.seriesX.push(this.twoDSeriesX))),n.labels.push(this.twoDSeriesX);var y=e[b].data.map(function(C){return O.parseNumber(C)});n.series.push(y)}n.seriesZ.push(this.threeDSeries),e[b].name!==void 0?n.seriesNames.push(e[b].name):n.seriesNames.push("series-"+parseInt(b+1,10)),e[b].color!==void 0?n.seriesColors.push(e[b].color):n.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,r=this.w.config;t.series=e.slice(),t.seriesNames=r.labels.slice();for(var i=0;i<t.series.length;i++)t.seriesNames[i]===void 0&&t.seriesNames.push("series-"+(i+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,r=this.w.globals;t.xaxis.categories.length>0?r.labels=t.xaxis.categories:t.labels.length>0?r.labels=t.labels.slice():this.fallbackToCategory?(r.labels=r.labels[0],r.seriesRange.length&&(r.seriesRange.map(function(i){i.forEach(function(s){r.labels.indexOf(s.x)<0&&s.x&&r.labels.push(s.x)})}),r.labels=Array.from(new Set(r.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new Je(t).convertCatToNumericXaxis(t,this.ctx,r.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,r=this.w.config,i=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var s=r.series.map(function(x,b){return x.data.filter(function(y,C,z){return z.findIndex(function(L){return L.x===y.x})===C})}),n=s.reduce(function(x,b,y,C){return C[x].length>b.length?x:y},0),l=0;l<s[n].length;l++)i.push(l+1);else for(var h=0;h<t.series[t.maxValsInArrayIndex].length;h++)i.push(h+1);t.seriesX=[];for(var f=0;f<e.length;f++)t.seriesX.push(i);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(i.length===0){i=t.axisCharts?[]:t.series.map(function(x,b){return b+1});for(var p=0;p<e.length;p++)t.seriesX.push(i)}t.labels=i,r.xaxis.convertedCatToNumeric&&(t.categoryLabels=i.map(function(x){return r.xaxis.labels.formatter(x)})),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,r=t.config,i=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),i.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),r.chart.stacked){var s=new ze(this.ctx);i.series=s.setNullSeriesToZeroValues(i.series)}this.coreUtils.getSeriesTotals(),i.axisCharts&&(i.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals()),this.coreUtils.getPercentSeries(),i.dataFormatXNumeric||i.isXNumeric&&(r.xaxis.type!=="numeric"||r.labels.length!==0||r.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);for(var n=this.coreUtils.getCategoryLabels(i.labels),l=0;l<n.length;l++)if(Array.isArray(n[l])){i.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this,t=this.w;t.globals.ignoreYAxisIndexes=t.globals.collapsedSeries.map(function(r,i){if(e.w.globals.isMultipleYAxis&&!t.config.chart.stacked)return r.index})}}]),E}(),Fe=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"getLabel",value:function(e,t,r,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",l=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],h=this.w,f=e[i]===void 0?"":e[i],p=f,x=h.globals.xLabelFormatter,b=h.config.xaxis.labels.formatter,y=!1,C=new Me(this.ctx),z=f;l&&(p=C.xLabelFormat(x,f,z,{i,dateFormatter:new ne(this.ctx).formatDate,w:h}),b!==void 0&&(p=b(f,e[i],{i,dateFormatter:new ne(this.ctx).formatDate,w:h})));var L,R;t.length>0?(L=t[i].unit,R=null,t.forEach(function(M){M.unit==="month"?R="year":M.unit==="day"?R="month":M.unit==="hour"?R="day":M.unit==="minute"&&(R="hour")}),y=R===L,r=t[i].position,p=t[i].value):h.config.xaxis.type==="datetime"&&b===void 0&&(p=""),p===void 0&&(p=""),p=Array.isArray(p)?p:p.toString();var _=new U(this.ctx),d={};d=h.globals.rotateXLabels&&l?_.getTextRects(p,parseInt(n,10),null,"rotate(".concat(h.config.xaxis.labels.rotate," 0 0)"),!1):_.getTextRects(p,parseInt(n,10));var v=!h.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(p)&&(p.indexOf("NaN")===0||p.toLowerCase().indexOf("invalid")===0||p.toLowerCase().indexOf("infinity")>=0||s.indexOf(p)>=0&&v)&&(p=""),{x:r,text:p,textRect:d,isBold:y}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,r){var i=this.w,s=i.config.xaxis.tickAmount;return s==="dataPoints"&&(s=Math.round(i.globals.gridWidth/120)),s>r||e%Math.round(r/(s+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,r,i,s){var n=this.w;if(e===0&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===r-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&i.length>0){var l=s[s.length-1];t.x<l.textRect.width/(n.globals.rotateXLabels?Math.abs(n.config.xaxis.labels.rotate)/12:1.01)+l.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var r=this.w;return r.config.yaxis[e]&&r.config.yaxis[e].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(e){var t=this.w,r=new re(this.ctx);return!t.config.yaxis[e].show||!t.config.yaxis[e].showForNullSeries&&r.isSeriesNull(e)&&t.globals.collapsedSeriesIndices.indexOf(e)===-1}},{key:"getYAxisForeColor",value:function(e,t){var r=this.w;return Array.isArray(e)&&r.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,r.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,r,i,s,n,l){var h=this.w,f=new U(this.ctx),p=h.globals.translateY;if(i.show&&t>0){h.config.yaxis[s].opposite===!0&&(e+=i.width);for(var x=t;x>=0;x--){var b=p+t/10+h.config.yaxis[s].labels.offsetY-1;h.globals.isBarHorizontal&&(b=n*x),h.config.chart.type==="heatmap"&&(b+=n/2);var y=f.drawLine(e+r.offsetX-i.width+i.offsetX,b+i.offsetY,e+r.offsetX+i.offsetX,b+i.offsetY,i.color);l.add(y),p+=n}}}}]),E}(),at=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"scaleSvgNode",value:function(e,t){var r=parseFloat(e.getAttributeNS(null,"width")),i=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",r*t),e.setAttributeNS(null,"height",i*t),e.setAttributeNS(null,"viewBox","0 0 "+r+" "+i)}},{key:"fixSvgStringForIe11",value:function(e){if(!O.isIE11())return e.replace(/ /g," ");var t=0,r=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(i){return++t===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':i});return r=(r=r.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){e==null&&(e=1);var t=this.w.globals.dom.Paper.svg();if(e!==1){var r=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(r,e),t=new XMLSerializer().serializeToString(r)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),r=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(i,function(s){s.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),r&&r[0]&&(r[0].setAttribute("y",-100),r[0].setAttribute("y1",-100),r[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(r){var i=t.w,s=e?e.scale||e.width/i.globals.svgWidth:1;t.cleanup();var n=document.createElement("canvas");n.width=i.globals.svgWidth*s,n.height=parseInt(i.globals.dom.elWrap.style.height,10)*s;var l=i.config.chart.background==="transparent"?"#fff":i.config.chart.background,h=n.getContext("2d");h.fillStyle=l,h.fillRect(0,0,n.width*s,n.height*s);var f=t.getSvgString(s);if(window.canvg&&O.isIE11()){var p=window.canvg.Canvg.fromString(h,f,{ignoreClear:!0,ignoreDimensions:!0});p.start();var x=n.msToBlob();p.stop(),r({blob:x})}else{var b="data:image/svg+xml,"+encodeURIComponent(f),y=new Image;y.crossOrigin="anonymous",y.onload=function(){if(h.drawImage(y,0,0),n.msToBlob){var C=n.msToBlob();r({blob:C})}else{var z=n.toDataURL("image/png");r({imgURI:z})}},y.src=b}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then(function(t){var r=t.imgURI,i=t.blob;i?navigator.msSaveOrOpenBlob(i,e.w.globals.chartID+".png"):e.triggerDownload(r,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,r=e.series,i=e.fileName,s=e.columnDelimiter,n=s===void 0?",":s,l=e.lineDelimiter,h=l===void 0?`
|
|
43
|
+
`:l,f=this.w;r||(r=f.config.series);var p=[],x=[],b="",y=f.globals.series.map(function(d,v){return f.globals.collapsedSeriesIndices.indexOf(v)===-1?d:[]}),C=Math.max.apply(Math,Z(r.map(function(d){return d.data?d.data.length:0}))),z=new Ue(this.ctx),L=new Fe(this.ctx),R=function(d){var v="";if(f.globals.axisCharts){if(f.config.xaxis.type==="category"||f.config.xaxis.convertedCatToNumeric)if(f.globals.isBarHorizontal){var M=f.globals.yLabelFormatters[0],P=new ze(t.ctx).getActiveConfigSeriesIndex();v=M(f.globals.labels[d],{seriesIndex:P,dataPointIndex:d,w:f})}else v=L.getLabel(f.globals.labels,f.globals.timescaleLabels,0,d).text;f.config.xaxis.type==="datetime"&&(f.config.xaxis.categories.length?v=f.config.xaxis.categories[d]:f.config.labels.length&&(v=f.config.labels[d]))}else v=f.config.labels[d];return Array.isArray(v)&&(v=v.join(" ")),O.isNumber(v)?v:v.split(n).join("")},_=function(d,v){if(p.length&&v===0&&x.push(p.join(n)),d.data){d.data=d.data.length&&d.data||Z(Array(C)).map(function(){return""});for(var M=0;M<d.data.length;M++){p=[];var P=R(M);if(P||(z.isFormatXY()?P=r[v].data[M].x:z.isFormat2DArray()&&(P=r[v].data[M]?r[v].data[M][0]:"")),v===0){p.push((W=P,f.config.xaxis.type==="datetime"&&String(W).length>=10?f.config.chart.toolbar.export.csv.dateFormatter(P):O.isNumber(P)?P:P.split(n).join("")));for(var B=0;B<f.globals.series.length;B++){var N;z.isFormatXY()?p.push((N=r[B].data[M])===null||N===void 0?void 0:N.y):p.push(y[B][M])}}(f.config.chart.type==="candlestick"||d.type&&d.type==="candlestick")&&(p.pop(),p.push(f.globals.seriesCandleO[v][M]),p.push(f.globals.seriesCandleH[v][M]),p.push(f.globals.seriesCandleL[v][M]),p.push(f.globals.seriesCandleC[v][M])),(f.config.chart.type==="boxPlot"||d.type&&d.type==="boxPlot")&&(p.pop(),p.push(f.globals.seriesCandleO[v][M]),p.push(f.globals.seriesCandleH[v][M]),p.push(f.globals.seriesCandleM[v][M]),p.push(f.globals.seriesCandleL[v][M]),p.push(f.globals.seriesCandleC[v][M])),f.config.chart.type==="rangeBar"&&(p.pop(),p.push(f.globals.seriesRangeStart[v][M]),p.push(f.globals.seriesRangeEnd[v][M])),p.length&&x.push(p.join(n))}}var W};p.push(f.config.chart.toolbar.export.csv.headerCategory),f.config.chart.type==="boxPlot"?(p.push("minimum"),p.push("q1"),p.push("median"),p.push("q3"),p.push("maximum")):f.config.chart.type==="candlestick"?(p.push("open"),p.push("high"),p.push("low"),p.push("close")):f.config.chart.type==="rangeBar"?(p.push("minimum"),p.push("maximum")):r.map(function(d,v){var M=(d.name?d.name:"series-".concat(v))+"";f.globals.axisCharts&&p.push(M.split(n).join("")?M.split(n).join(""):"series-".concat(v))}),f.globals.axisCharts||(p.push(f.config.chart.toolbar.export.csv.headerValue),x.push(p.join(n))),r.map(function(d,v){f.globals.axisCharts?_(d,v):((p=[]).push(f.globals.labels[v].split(n).join("")),p.push(y[v]),x.push(p.join(n)))}),b+=x.join(h),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+b),i||f.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,r){var i=document.createElement("a");i.href=e,i.download=(t||this.w.globals.chartID)+r,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}]),E}(),it=function(){function E(e,t){m(this,E),this.ctx=e,this.elgrid=t,this.w=e.w;var r=this.w;this.axesUtils=new Fe(e),this.xaxisLabels=r.globals.labels.slice(),r.globals.timescaleLabels.length>0&&!r.globals.isBarHorizontal&&(this.xaxisLabels=r.globals.timescaleLabels.slice()),r.config.xaxis.overwriteCategories&&(this.xaxisLabels=r.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],r.config.xaxis.position==="top"?this.offY=0:this.offY=r.globals.gridHeight+1,this.offY=this.offY+r.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=r.config.chart.type==="bar"&&r.config.plotOptions.bar.horizontal,this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.xaxisBorderWidth=r.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=r.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=r.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=r.config.xaxis.axisBorder.height,this.yaxis=r.config.yaxis[0]}return w(E,[{key:"drawXaxis",value:function(){var e=this.w,t=new U(this.ctx),r=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),i=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});r.add(i);for(var s=[],n=0;n<this.xaxisLabels.length;n++)s.push(this.xaxisLabels[n]);if(this.drawXAxisLabelAndGroup(!0,t,i,s,e.globals.isXNumeric,function(C,z){return z}),e.globals.hasXaxisGroups){var l=e.globals.groups;s=[];for(var h=0;h<l.length;h++)s.push(l[h].title);var f={};e.config.xaxis.group.style&&(f.xaxisFontSize=e.config.xaxis.group.style.fontSize,f.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,f.xaxisForeColors=e.config.xaxis.group.style.colors,f.fontWeight=e.config.xaxis.group.style.fontWeight,f.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,i,s,!1,function(C,z){return l[C].cols*z},f)}if(e.config.xaxis.title.text!==void 0){var p=t.group({class:"apexcharts-xaxis-title"}),x=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(e.config.xaxis.position==="bottom"?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});p.add(x),r.add(p)}if(e.config.xaxis.axisBorder.show){var b=e.globals.barPadForNumericAxis,y=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-b,this.offY,this.xaxisBorderWidth+b,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(y):r.add(y)}return r}},{key:"drawXAxisLabelAndGroup",value:function(e,t,r,i,s,n){var l,h=this,f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},p=[],x=[],b=this.w,y=f.xaxisFontSize||this.xaxisFontSize,C=f.xaxisFontFamily||this.xaxisFontFamily,z=f.xaxisForeColors||this.xaxisForeColors,L=f.fontWeight||b.config.xaxis.labels.style.fontWeight,R=f.cssClass||b.config.xaxis.labels.style.cssClass,_=b.globals.padHorizontal,d=i.length,v=b.config.xaxis.type==="category"?b.globals.dataPoints:d;if(v===0&&d>v&&(v=d),s){var M=v>1?v-1:v;l=b.globals.gridWidth/M,_=_+n(0,l)/2+b.config.xaxis.labels.offsetX}else l=b.globals.gridWidth/v,_=_+n(0,l)+b.config.xaxis.labels.offsetX;for(var P=function(N){var W=_-n(N,l)/2+b.config.xaxis.labels.offsetX;N===0&&d===1&&l/2===_&&v===1&&(W=b.globals.gridWidth/2);var G=h.axesUtils.getLabel(i,b.globals.timescaleLabels,W,N,p,y,e),Q=28;if(b.globals.rotateXLabels&&e&&(Q=22),b.config.xaxis.title.text&&b.config.xaxis.position==="top"&&(Q+=parseFloat(b.config.xaxis.title.style.fontSize)+2),e||(Q=Q+parseFloat(y)+(b.globals.xAxisLabelsHeight-b.globals.xAxisGroupLabelsHeight)+(b.globals.rotateXLabels?10:0)),G=b.config.xaxis.tickAmount!==void 0&&b.config.xaxis.tickAmount!=="dataPoints"&&b.config.xaxis.type!=="datetime"?h.axesUtils.checkLabelBasedOnTickamount(N,G,d):h.axesUtils.checkForOverflowingLabels(N,G,d,p,x),b.config.xaxis.labels.show){var ie=t.drawText({x:G.x,y:h.offY+b.config.xaxis.labels.offsetY+Q-(b.config.xaxis.position==="top"?b.globals.xAxisHeight+b.config.xaxis.axisTicks.height-2:0),text:G.text,textAnchor:"middle",fontWeight:G.isBold?600:L,fontSize:y,fontFamily:C,foreColor:Array.isArray(z)?e&&b.config.xaxis.convertedCatToNumeric?z[b.globals.minX+N-1]:z[N]:z,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+R});if(r.add(ie),ie.on("click",function(ce){if(typeof b.config.chart.events.xAxisLabelClick=="function"){var me=Object.assign({},b,{labelIndex:N});b.config.chart.events.xAxisLabelClick(ce,h.ctx,me)}}),e){var te=document.createElementNS(b.globals.SVGNS,"title");te.textContent=Array.isArray(G.text)?G.text.join(" "):G.text,ie.node.appendChild(te),G.text!==""&&(p.push(G.text),x.push(G))}}N<d-1&&(_+=n(N+1,l))},B=0;B<=d-1;B++)P(B)}},{key:"drawXaxisInversed",value:function(e){var t,r,i=this,s=this.w,n=new U(this.ctx),l=s.config.yaxis[0].opposite?s.globals.translateYAxisX[e]:0,h=n.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),f=n.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+l+", 0)"});h.add(f);var p=[];if(s.config.yaxis[e].show)for(var x=0;x<this.xaxisLabels.length;x++)p.push(this.xaxisLabels[x]);t=s.globals.gridHeight/p.length,r=-t/2.2;var b=s.globals.yLabelFormatters[0],y=s.config.yaxis[0].labels;if(y.show)for(var C=function(M){var P=p[M]===void 0?"":p[M];P=b(P,{seriesIndex:e,dataPointIndex:M,w:s});var B=i.axesUtils.getYAxisForeColor(y.style.colors,e),N=0;Array.isArray(P)&&(N=P.length/2*parseInt(y.style.fontSize,10));var W=y.offsetX-15,G="end";i.yaxis.opposite&&(G="start"),s.config.yaxis[0].labels.align==="left"?(W=y.offsetX,G="start"):s.config.yaxis[0].labels.align==="center"?(W=y.offsetX,G="middle"):s.config.yaxis[0].labels.align==="right"&&(G="end");var Q=n.drawText({x:W,y:r+t+y.offsetY-N,text:P,textAnchor:G,foreColor:Array.isArray(B)?B[M]:B,fontSize:y.style.fontSize,fontFamily:y.style.fontFamily,fontWeight:y.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+y.style.cssClass,maxWidth:y.maxWidth});f.add(Q),Q.on("click",function(ce){if(typeof s.config.chart.events.xAxisLabelClick=="function"){var me=Object.assign({},s,{labelIndex:M});s.config.chart.events.xAxisLabelClick(ce,i.ctx,me)}});var ie=document.createElementNS(s.globals.SVGNS,"title");if(ie.textContent=Array.isArray(P)?P.join(" "):P,Q.node.appendChild(ie),s.config.yaxis[e].labels.rotate!==0){var te=n.rotateAroundCenter(Q.node);Q.node.setAttribute("transform","rotate(".concat(s.config.yaxis[e].labels.rotate," 0 ").concat(te.y,")"))}r+=t},z=0;z<=p.length-1;z++)C(z);if(s.config.yaxis[0].title.text!==void 0){var L=n.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+l+", 0)"}),R=n.drawText({x:s.config.yaxis[0].title.offsetX,y:s.globals.gridHeight/2+s.config.yaxis[0].title.offsetY,text:s.config.yaxis[0].title.text,textAnchor:"middle",foreColor:s.config.yaxis[0].title.style.color,fontSize:s.config.yaxis[0].title.style.fontSize,fontWeight:s.config.yaxis[0].title.style.fontWeight,fontFamily:s.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+s.config.yaxis[0].title.style.cssClass});L.add(R),h.add(L)}var _=0;this.isCategoryBarHorizontal&&s.config.yaxis[0].opposite&&(_=s.globals.gridWidth);var d=s.config.xaxis.axisBorder;if(d.show){var v=n.drawLine(s.globals.padHorizontal+d.offsetX+_,1+d.offsetY,s.globals.padHorizontal+d.offsetX+_,s.globals.gridHeight+d.offsetY,d.color,0);this.elgrid&&this.elgrid.elGridBorders&&s.config.grid.show?this.elgrid.elGridBorders.add(v):h.add(v)}return s.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(_,p.length,s.config.yaxis[0].axisBorder,s.config.yaxis[0].axisTicks,0,t,h),h}},{key:"drawXaxisTicks",value:function(e,t,r){var i=this.w,s=e;if(!(e<0||e-2>i.globals.gridWidth)){var n=this.offY+i.config.xaxis.axisTicks.offsetY;if(t=t+n+i.config.xaxis.axisTicks.height,i.config.xaxis.position==="top"&&(t=n-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var l=new U(this.ctx).drawLine(e+i.config.xaxis.axisTicks.offsetX,n+i.config.xaxis.offsetY,s+i.config.xaxis.axisTicks.offsetX,t+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);r.add(l),l.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],r=this.xaxisLabels.length,i=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var s=0;s<r;s++)i=this.xaxisLabels[s].position,t.push(i);else for(var n=r,l=0;l<n;l++){var h=n;e.globals.isXNumeric&&e.config.chart.type!=="bar"&&(h-=1),i+=e.globals.gridWidth/h,t.push(i)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new U(this.ctx),r=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var l=0;l<i.length;l++){var h=t.rotateAroundCenter(i[l]);h.y=h.y-1,h.x=h.x+1,i[l].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(h.x," ").concat(h.y,")")),i[l].setAttribute("text-anchor","end"),r.setAttribute("transform","translate(0, ".concat(-10,")"));var f=i[l].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(f,function(y){t.placeTextWithEllipsis(y,y.textContent,e.globals.xAxisLabelsHeight-(e.config.legend.position==="bottom"?20:10))})}else(function(){for(var y=e.globals.gridWidth/(e.globals.labels.length+1),C=0;C<i.length;C++){var z=i[C].childNodes;e.config.xaxis.labels.trim&&e.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(z,function(L){t.placeTextWithEllipsis(L,L.textContent,y)})}})();if(s.length>0){var p=s[s.length-1].getBBox(),x=s[0].getBBox();p.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),x.x+x.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var b=0;b<n.length;b++)t.placeTextWithEllipsis(n[b],n[b].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),E}(),At=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisLabels=t.globals.labels.slice(),this.axesUtils=new Fe(e),this.isRangeBar=t.globals.seriesRange.length&&t.globals.isBarHorizontal,t.globals.timescaleLabels.length>0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return w(E,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,r=new U(this.ctx);e===null&&(e=r.group({class:"apexcharts-grid"}));var i=r.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),s=r.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(s),e.add(i),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,r=new U(this.ctx),i=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var s=0;e.config.stroke.width.forEach(function(x){s=Math.max(s,x)}),i=s}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var n=e.config.chart.type,l=0,h=0;(n==="bar"||n==="rangeBar"||n==="candlestick"||n==="boxPlot"||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(l=e.config.grid.padding.left,h=e.config.grid.padding.right,t.barPadForNumericAxis>l&&(l=t.barPadForNumericAxis,h=t.barPadForNumericAxis)),t.dom.elGridRect=r.drawRect(-i/2-l-2,-i/2,t.gridWidth+i+h+l+4,t.gridHeight+i,0,"#fff");var f=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=r.drawRect(2*-f,2*-f,t.gridWidth+4*f,t.gridHeight+4*f,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var p=t.dom.baseEl.querySelector("defs");p.appendChild(t.dom.elGridRectMask),p.appendChild(t.dom.elForecastMask),p.appendChild(t.dom.elNonForecastMask),p.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,r=e.x1,i=e.y1,s=e.x2,n=e.y2,l=e.xCount,h=e.parent,f=this.w;if(!(t===0&&f.globals.skipFirstTimelinelabel||t===l-1&&f.globals.skipLastTimelinelabel&&!f.config.xaxis.labels.formatter||f.config.chart.type==="radar")){f.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:r,y1:i,x2:s,y2:n,xCount:l,parent:h});var p=0;if(f.globals.hasXaxisGroups&&f.config.xaxis.tickPlacement==="between"){var x=f.globals.groups;if(x){for(var b=0,y=0;b<t&&y<x.length;y++)b+=x[y].cols;b===t&&(p=.6*f.globals.xAxisLabelsHeight)}}new it(this.ctx).drawXaxisTicks(r,p,f.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,r=e.x1,i=e.y1,s=e.x2,n=e.y2,l=e.xCount,h=e.parent,f=this.w,p=!1,x=h.node.classList.contains("apexcharts-gridlines-horizontal"),b=f.config.grid.strokeDashArray,y=f.globals.barPadForNumericAxis;(i===0&&n===0||r===0&&s===0)&&(p=!0),i===f.globals.gridHeight&&n===f.globals.gridHeight&&(p=!0),!f.globals.isBarHorizontal||t!==0&&t!==l-1||(p=!0);var C=new U(this).drawLine(r-(x?y:0),i,s+(x?y:0),n,f.config.grid.borderColor,b);C.node.classList.add("apexcharts-gridline"),p&&f.config.grid.show?this.elGridBorders.add(C):h.add(C)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,r=e.x1,i=e.y1,s=e.x2,n=e.y2,l=e.type,h=this.w,f=new U(this.ctx),p=h.globals.barPadForNumericAxis;if(l!=="column"||h.config.xaxis.type!=="datetime"){var x=h.config.grid[l].colors[t],b=f.drawRect(r-(l==="row"?p:0),i,s+(l==="row"?2*p:0),n,0,x,h.config.grid[l].opacity);this.elg.add(b),b.attr("clip-path","url(#gridRectMask".concat(h.globals.cuid,")")),b.node.classList.add("apexcharts-grid-".concat(l))}}},{key:"_drawXYLines",value:function(e){var t=this,r=e.xCount,i=e.tickAmount,s=this.w;if(s.config.grid.xaxis.lines.show||s.config.xaxis.axisTicks.show){var n,l=s.globals.padHorizontal,h=s.globals.gridHeight;s.globals.timescaleLabels.length?function(C){for(var z=C.xC,L=C.x1,R=C.y1,_=C.x2,d=C.y2,v=0;v<z;v++)L=t.xaxisLabels[v].position,_=t.xaxisLabels[v].position,t._drawGridLines({i:v,x1:L,y1:R,x2:_,y2:d,xCount:r,parent:t.elgridLinesV})}({xC:r,x1:l,y1:0,x2:n,y2:h}):(s.globals.isXNumeric&&(r=s.globals.xAxisScale.result.length),function(C){for(var z=C.xC,L=C.x1,R=C.y1,_=C.x2,d=C.y2,v=0;v<z+(s.globals.isXNumeric?0:1);v++)v===0&&z===1&&s.globals.dataPoints===1&&(_=L=s.globals.gridWidth/2),t._drawGridLines({i:v,x1:L,y1:R,x2:_,y2:d,xCount:r,parent:t.elgridLinesV}),_=L+=s.globals.gridWidth/(s.globals.isXNumeric?z-1:z)}({xC:r,x1:l,y1:0,x2:n,y2:h}))}if(s.config.grid.yaxis.lines.show){var f=0,p=0,x=s.globals.gridWidth,b=i+1;this.isRangeBar&&(b=s.globals.labels.length);for(var y=0;y<b+(this.isRangeBar?1:0);y++)this._drawGridLine({i:y,xCount:b+(this.isRangeBar?1:0),x1:0,y1:f,x2:x,y2:p,parent:this.elgridLinesH}),p=f+=s.globals.gridHeight/(this.isRangeBar?b:i)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show)for(var i,s=r.globals.padHorizontal,n=r.globals.gridHeight,l=0;l<t+1;l++)r.config.grid.xaxis.lines.show&&this._drawGridLine({i:l,xCount:t+1,x1:s,y1:0,x2:i,y2:n,parent:this.elgridLinesV}),new it(this.ctx).drawXaxisTicks(s,0,r.globals.dom.elGraphical),i=s=s+r.globals.gridWidth/t+.3;if(r.config.grid.yaxis.lines.show)for(var h=0,f=0,p=r.globals.gridWidth,x=0;x<r.globals.dataPoints+1;x++)this._drawGridLine({i:x,xCount:r.globals.dataPoints+1,x1:0,y1:h,x2:p,y2:f,parent:this.elgridLinesH}),f=h+=r.globals.gridHeight/r.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=new U(this.ctx);this.elg=t.group({class:"apexcharts-grid"}),this.elgridLinesH=t.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=t.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=t.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var r,i=e.globals.yAxisScale.length?e.globals.yAxisScale[0].result.length-1:5,s=0;s<e.globals.series.length&&(e.globals.yAxisScale[s]!==void 0&&(i=e.globals.yAxisScale[s].result.length-1),!(i>2));s++);return!e.globals.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(r--,i=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(r=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:r,tickAmount:i})):(r=i,i=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:i})),this.drawGridBands(r,i),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.globals.gridWidth/r}}},{key:"drawGridBands",value:function(e,t){var r=this.w;if(r.config.grid.row.colors!==void 0&&r.config.grid.row.colors.length>0)for(var i=0,s=r.globals.gridHeight/t,n=r.globals.gridWidth,l=0,h=0;l<t;l++,h++)h>=r.config.grid.row.colors.length&&(h=0),this._drawGridBandRect({c:h,x1:0,y1:i,x2:n,y2:s,type:"row"}),i+=r.globals.gridHeight/t;if(r.config.grid.column.colors!==void 0&&r.config.grid.column.colors.length>0)for(var f=r.globals.isBarHorizontal||r.config.xaxis.type!=="category"&&!r.config.xaxis.convertedCatToNumeric?e:e-1,p=r.globals.padHorizontal,x=r.globals.padHorizontal+r.globals.gridWidth/f,b=r.globals.gridHeight,y=0,C=0;y<e;y++,C++)C>=r.config.grid.column.colors.length&&(C=0),this._drawGridBandRect({c:C,x1:p,y1:0,x2:x,y2:b,type:"column"}),p+=r.globals.gridWidth/f}}]),E}(),pt=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"niceScale",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,n=this.w,l=Math.abs(t-e);if((r=this._adjustTicksForSmallRange(r,i,l))==="dataPoints"&&(r=n.globals.dataPoints-1),e===Number.MIN_VALUE&&t===0||!O.isNumber(e)&&!O.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)return e=0,t=r,this.linearScale(e,t,r);e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=e===0?0:e-.5,t=t===0?2:t+.5);var h=[];l<1&&s&&(n.config.chart.type==="candlestick"||n.config.series[i].type==="candlestick"||n.config.chart.type==="boxPlot"||n.config.series[i].type==="boxPlot"||n.globals.isRangeData)&&(t*=1.01);var f=r+1;f<2?f=2:f>2&&(f-=2);var p=l/f,x=Math.floor(O.log10(p)),b=Math.pow(10,x),y=Math.round(p/b);y<1&&(y=1);var C=y*b,z=C*Math.floor(e/C),L=C*Math.ceil(t/C),R=z;if(s&&l>2){for(;h.push(O.stripNumber(R,7)),!((R+=C)>L););return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}var _=e;(h=[]).push(O.stripNumber(_,7));for(var d=Math.abs(t-e)/r,v=0;v<=r;v++)_+=d,h.push(_);return h[h.length-2]>=t&&h.pop(),{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"linearScale",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,i=arguments.length>3?arguments[3]:void 0,s=Math.abs(t-e);(r=this._adjustTicksForSmallRange(r,i,s))==="dataPoints"&&(r=this.w.globals.dataPoints-1);var n=s/r;r===Number.MAX_VALUE&&(r=10,n=1);for(var l=[],h=e;r>=0;)l.push(h),h+=n,r-=1;return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,r){t<=0&&(t=Math.max(e,r)),e<=0&&(e=Math.min(t,r));for(var i=[],s=Math.ceil(Math.log(t)/Math.log(r)+1),n=Math.floor(Math.log(e)/Math.log(r));n<s;n++)i.push(Math.pow(r,n));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}},{key:"logarithmicScale",value:function(e,t,r){t<=0&&(t=Math.max(e,r)),e<=0&&(e=Math.min(t,r));for(var i=[],s=Math.log(t)/Math.log(r),n=Math.log(e)/Math.log(r),l=s-n,h=Math.round(l),f=l/h,p=0,x=n;p<h;p++,x+=f)i.push(Math.pow(r,x));return i.push(Math.pow(r,s)),{result:i,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,r){var i=e;if(t!==void 0&&this.w.config.yaxis[t].labels.formatter&&this.w.config.yaxis[t].tickAmount===void 0){var s=Number(this.w.config.yaxis[t].labels.formatter(1));O.isNumber(s)&&this.w.globals.yValueDecimal===0&&(i=Math.ceil(r))}return i<e?i:e}},{key:"setYScaleForIndex",value:function(e,t,r){var i=this.w.globals,s=this.w.config,n=i.isBarHorizontal?s.xaxis:s.yaxis[e];i.yAxisScale[e]===void 0&&(i.yAxisScale[e]=[]);var l=Math.abs(r-t);if(n.logarithmic&&l<=5&&(i.invalidLogScale=!0),n.logarithmic&&l>5)i.allSeriesCollapsed=!1,i.yAxisScale[e]=this.logarithmicScale(t,r,n.logBase),i.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,r,n.logBase):this.logarithmicScale(t,r,n.logBase);else if(r!==-Number.MAX_VALUE&&O.isNumber(r))if(i.allSeriesCollapsed=!1,n.min===void 0&&n.max===void 0||n.forceNiceScale){var h=s.yaxis[e].max===void 0&&s.yaxis[e].min===void 0||s.yaxis[e].forceNiceScale;i.yAxisScale[e]=this.niceScale(t,r,n.tickAmount?n.tickAmount:l<5&&l>1?l+1:5,e,h)}else i.yAxisScale[e]=this.linearScale(t,r,n.tickAmount,e);else i.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var r=this.w,i=r.globals,s=r.config.xaxis,n=Math.abs(t-e);return t!==-Number.MAX_VALUE&&O.isNumber(t)?i.xAxisScale=this.linearScale(e,t,s.tickAmount?s.tickAmount:n<5&&n>1?n+1:5,0):i.xAxisScale=this.linearScale(0,5,5),i.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,r=this.w.config,i=t.minYArr.concat([]),s=t.maxYArr.concat([]),n=[];r.yaxis.forEach(function(l,h){var f=h;r.series.forEach(function(b,y){b.name===l.seriesName&&(f=y,h!==y?n.push({index:y,similarIndex:h,alreadyExists:!0}):n.push({index:y}))});var p=i[f],x=s[f];e.setYScaleForIndex(h,p,x)}),this.sameScaleInMultipleAxes(i,s,n)}},{key:"sameScaleInMultipleAxes",value:function(e,t,r){var i=this,s=this.w.config,n=this.w.globals,l=[];r.forEach(function(z){z.alreadyExists&&(l[z.index]===void 0&&(l[z.index]=[]),l[z.index].push(z.index),l[z.index].push(z.similarIndex))}),n.yAxisSameScaleIndices=l,l.forEach(function(z,L){l.forEach(function(R,_){var d,v;L!==_&&(d=z,v=R,d.filter(function(M){return v.indexOf(M)!==-1})).length>0&&(l[L]=l[L].concat(l[_]))})});var h=l.map(function(z){return z.filter(function(L,R){return z.indexOf(L)===R})}).map(function(z){return z.sort()});l=l.filter(function(z){return!!z});var f=h.slice(),p=f.map(function(z){return JSON.stringify(z)});f=f.filter(function(z,L){return p.indexOf(JSON.stringify(z))===L});var x=[],b=[];e.forEach(function(z,L){f.forEach(function(R,_){R.indexOf(L)>-1&&(x[_]===void 0&&(x[_]=[],b[_]=[]),x[_].push({key:L,value:z}),b[_].push({key:L,value:t[L]}))})});var y=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),C=Array.apply(null,Array(f.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);x.forEach(function(z,L){z.forEach(function(R,_){y[L]=Math.min(R.value,y[L])})}),b.forEach(function(z,L){z.forEach(function(R,_){C[L]=Math.max(R.value,C[L])})}),e.forEach(function(z,L){b.forEach(function(R,_){var d=y[_],v=C[_];s.chart.stacked&&(v=0,R.forEach(function(M,P){M.value!==-Number.MAX_VALUE&&(v+=M.value),d!==Number.MIN_VALUE&&(d+=x[_][P].value)})),R.forEach(function(M,P){R[P].key===L&&(s.yaxis[L].min!==void 0&&(d=typeof s.yaxis[L].min=="function"?s.yaxis[L].min(n.minY):s.yaxis[L].min),s.yaxis[L].max!==void 0&&(v=typeof s.yaxis[L].max=="function"?s.yaxis[L].max(n.maxY):s.yaxis[L].max),i.setYScaleForIndex(L,d,v))})})})}},{key:"autoScaleY",value:function(e,t,r){e||(e=this);var i=e.w;if(i.globals.isMultipleYAxis||i.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var s=i.globals.seriesX[0],n=i.config.chart.stacked;return t.forEach(function(l,h){for(var f=0,p=0;p<s.length;p++)if(s[p]>=r.xaxis.min){f=p;break}var x,b,y=i.globals.minYArr[h],C=i.globals.maxYArr[h],z=i.globals.stackedSeriesTotals;i.globals.series.forEach(function(L,R){var _=L[f];n?(_=z[f],x=b=_,z.forEach(function(d,v){s[v]<=r.xaxis.max&&s[v]>=r.xaxis.min&&(d>b&&d!==null&&(b=d),L[v]<x&&L[v]!==null&&(x=L[v]))})):(x=b=_,L.forEach(function(d,v){if(s[v]<=r.xaxis.max&&s[v]>=r.xaxis.min){var M=d,P=d;i.globals.series.forEach(function(B,N){d!==null&&(M=Math.min(B[v],M),P=Math.max(B[v],P))}),P>b&&P!==null&&(b=P),M<x&&M!==null&&(x=M)}})),x===void 0&&b===void 0&&(x=y,b=C),b*=b<0?.9:1.1,(x*=x<0?1.1:.9)===0&&b===0&&(x=-1,b=1),b<0&&b<C&&(b=C),x<0&&x>y&&(x=y),t.length>1?(t[R].min=l.min===void 0?x:l.min,t[R].max=l.max===void 0?b:l.max):(t[0].min=l.min===void 0?x:l.min,t[0].max=l.max===void 0?b:l.max)})}),t}}]),E}(),br=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.scales=new pt(e)}return w(E,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w.config,n=this.w.globals,l=-Number.MAX_VALUE,h=Number.MIN_VALUE;i===null&&(i=e+1);var f=n.series,p=f,x=f;s.chart.type==="candlestick"?(p=n.seriesCandleL,x=n.seriesCandleH):s.chart.type==="boxPlot"?(p=n.seriesCandleO,x=n.seriesCandleC):n.isRangeData&&(p=n.seriesRangeStart,x=n.seriesRangeEnd);for(var b=e;b<i;b++){n.dataPoints=Math.max(n.dataPoints,f[b].length),n.categoryLabels.length&&(n.dataPoints=n.categoryLabels.filter(function(z){return z!==void 0}).length),n.labels.length&&s.xaxis.type!=="datetime"&&n.series.reduce(function(z,L){return z+L.length},0)!==0&&(n.dataPoints=Math.max(n.dataPoints,n.labels.length));for(var y=0;y<n.series[b].length;y++){var C=f[b][y];C!==null&&O.isNumber(C)?(x[b][y]!==void 0&&(l=Math.max(l,x[b][y]),t=Math.min(t,x[b][y])),p[b][y]!==void 0&&(t=Math.min(t,p[b][y]),r=Math.max(r,p[b][y])),this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"&&this.w.config.chart.type==="rangeArea"&&this.w.config.chart.type==="rangeBar"||(this.w.config.chart.type!=="candlestick"&&this.w.config.chart.type!=="boxPlot"||n.seriesCandleC[b][y]!==void 0&&(l=Math.max(l,n.seriesCandleO[b][y]),l=Math.max(l,n.seriesCandleH[b][y]),l=Math.max(l,n.seriesCandleL[b][y]),l=Math.max(l,n.seriesCandleC[b][y]),this.w.config.chart.type==="boxPlot"&&(l=Math.max(l,n.seriesCandleM[b][y]))),!s.series[b].type||s.series[b].type==="candlestick"&&s.series[b].type==="boxPlot"&&s.series[b].type==="rangeArea"&&s.series[b].type==="rangeBar"||(l=Math.max(l,n.series[b][y]),t=Math.min(t,n.series[b][y])),r=l),n.seriesGoals[b]&&n.seriesGoals[b][y]&&Array.isArray(n.seriesGoals[b][y])&&n.seriesGoals[b][y].forEach(function(z){h!==Number.MIN_VALUE&&(h=Math.min(h,z.value),t=h),l=Math.max(l,z.value),r=l}),O.isFloat(C)&&(C=O.noExponents(C),n.yValueDecimal=Math.max(n.yValueDecimal,C.toString().split(".")[1].length)),h>p[b][y]&&p[b][y]<0&&(h=p[b][y])):n.hasNullValues=!0}}return s.chart.type==="rangeBar"&&n.seriesRangeStart.length&&n.isBarHorizontal&&(h=t),s.chart.type==="bar"&&(h<0&&l<0&&(l=0),h===Number.MIN_VALUE&&(h=0)),{minY:h,maxY:l,lowestY:t,highestY:r}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var r=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var i=0;i<e.series.length;i++){var s=this.getMinYMaxY(i,r,null,i+1);e.minYArr.push(s.minY),e.maxYArr.push(s.maxY),r=s.lowestY}var n=this.getMinYMaxY(0,r,null,e.series.length);if(e.minY=n.minY,e.maxY=n.maxY,r=n.lowestY,t.chart.stacked&&this._setStackedMinMax(),(t.chart.type==="line"||t.chart.type==="area"||t.chart.type==="candlestick"||t.chart.type==="boxPlot"||t.chart.type==="rangeBar"&&!e.isBarHorizontal)&&e.minY===Number.MIN_VALUE&&r!==-Number.MAX_VALUE&&r!==e.maxY){var l=e.maxY-r;(r>=0&&r<=10||t.yaxis[0].min!==void 0||t.yaxis[0].max!==void 0)&&(l=0),e.minY=r-5*l/100,r>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*l/100}return t.yaxis.forEach(function(h,f){h.max!==void 0&&(typeof h.max=="number"?e.maxYArr[f]=h.max:typeof h.max=="function"&&(e.maxYArr[f]=h.max(e.isMultipleYAxis?e.maxYArr[f]:e.maxY)),e.maxY=e.maxYArr[f]),h.min!==void 0&&(typeof h.min=="number"?e.minYArr[f]=h.min:typeof h.min=="function"&&(e.minYArr[f]=h.min(e.isMultipleYAxis?e.minYArr[f]===Number.MIN_VALUE?0:e.minYArr[f]:e.minY)),e.minY=e.minYArr[f])}),e.isBarHorizontal&&["min","max"].forEach(function(h){t.xaxis[h]!==void 0&&typeof t.xaxis[h]=="number"&&(h==="min"?e.minY=t.xaxis[h]:e.maxY=t.xaxis[h])}),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=r,e.yAxisScale.forEach(function(h,f){e.minYArr[f]=h.niceMin,e.maxYArr[f]=h.niceMax})):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,r=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var l=0;l<e.series.length;l++)if(e.labels[l])for(var h=0;h<e.labels[l].length;h++)e.labels[l][h]!==null&&O.isNumber(e.labels[l][h])&&(e.maxX=Math.max(e.maxX,e.labels[l][h]),e.initialMaxX=Math.max(e.maxX,e.labels[l][h]),e.minX=Math.min(e.minX,e.labels[l][h]),e.initialMinX=Math.min(e.minX,e.labels[l][h]))}(),e.noLabelsProvided&&t.xaxis.categories.length===0&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var i;if(t.xaxis.tickAmount===void 0?(i=Math.round(e.svgWidth/150),t.xaxis.type==="numeric"&&e.dataPoints<30&&(i=e.dataPoints-1),i>e.dataPoints&&e.dataPoints!==0&&(i=e.dataPoints-1)):t.xaxis.tickAmount==="dataPoints"?(e.series.length>1&&(i=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(i=e.maxX-e.minX-1)):i=t.xaxis.tickAmount,e.xTickAmount=i,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var s=[],n=e.minX-1;n<e.maxX;n++)s.push(n+1);e.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(1,i,i),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,i-1),e.seriesX=e.labels.slice());r&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ){for(var t=0;t<e.series.length;t++)if(e.seriesZ[t]!==void 0)for(var r=0;r<e.seriesZ[t].length;r++)e.seriesZ[t][r]!==null&&O.isNumber(e.seriesZ[t][r])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][r]),e.minZ=Math.min(e.minZ,e.seriesZ[t][r]))}}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var r=new ne(this.ctx);if(t.xaxis.type==="datetime"){var i=r.getDate(e.minX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()-2):i.setDate(i.getDate()-2),e.minX=new Date(i).getTime();var s=r.getDate(e.maxX);t.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()+2):s.setDate(s.getDate()+2),e.maxX=new Date(s).getTime()}else(t.xaxis.type==="numeric"||t.xaxis.type==="category"&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach(function(t,r){t.length===1&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort(function(s,n){return s-n}),i.forEach(function(s,n){if(n>0){var l=s-i[n-1];l>0&&(e.minXDiff=Math.min(l,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var r=t.seriesGroups;r.length||(r=[this.w.config.series.map(function(n){return n.name})]);var i={},s={};r.forEach(function(n){i[n]=[],s[n]=[],e.w.config.series.map(function(l,h){return n.indexOf(l.name)>-1?h:null}).filter(function(l){return l!==null}).forEach(function(l){for(var h=0;h<t.series[t.maxValsInArrayIndex].length;h++)i[n][h]===void 0&&(i[n][h]=0,s[n][h]=0),t.series[l][h]!==null&&O.isNumber(t.series[l][h])&&(t.series[l][h]>0?i[n][h]+=parseFloat(t.series[l][h])+1e-4:s[n][h]+=parseFloat(t.series[l][h]))})}),Object.entries(i).forEach(function(n){var l=$(n,1)[0];i[l].forEach(function(h,f){t.maxY=Math.max(t.maxY,i[l][f]),t.minY=Math.min(t.minY,s[l][f])})})}}}]),E}(),Ut=function(){function E(e,t){m(this,E),this.ctx=e,this.elgrid=t,this.w=e.w;var r=this.w;this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.axisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=r.config.chart.type==="bar"&&r.config.plotOptions.bar.horizontal,this.xAxisoffX=0,r.config.xaxis.position==="bottom"&&(this.xAxisoffX=r.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Fe(e)}return w(E,[{key:"drawYaxis",value:function(e){var t=this,r=this.w,i=new U(this.ctx),s=r.config.yaxis[e].labels.style,n=s.fontSize,l=s.fontFamily,h=s.fontWeight,f=i.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+r.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return f;var p=i.group({class:"apexcharts-yaxis-texts-g"});f.add(p);var x=r.globals.yAxisScale[e].result.length-1,b=r.globals.gridHeight/x,y=r.globals.translateY,C=r.globals.yLabelFormatters[e],z=r.globals.yAxisScale[e].result.slice();z=this.axesUtils.checkForReversedLabels(e,z);var L="";if(r.config.yaxis[e].labels.show)for(var R=function(W){var G=z[W];G=C(G,W,r);var Q=r.config.yaxis[e].labels.padding;r.config.yaxis[e].opposite&&r.config.yaxis.length!==0&&(Q*=-1);var ie="end";r.config.yaxis[e].opposite&&(ie="start"),r.config.yaxis[e].labels.align==="left"?ie="start":r.config.yaxis[e].labels.align==="center"?ie="middle":r.config.yaxis[e].labels.align==="right"&&(ie="end");var te=t.axesUtils.getYAxisForeColor(s.colors,e),ce=i.drawText({x:Q,y:y+x/10+r.config.yaxis[e].labels.offsetY+1,text:G,textAnchor:ie,fontSize:n,fontFamily:l,fontWeight:h,maxWidth:r.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(te)?te[W]:te,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});W===x&&(L=ce),p.add(ce);var me=document.createElementNS(r.globals.SVGNS,"title");if(me.textContent=Array.isArray(G)?G.join(" "):G,ce.node.appendChild(me),r.config.yaxis[e].labels.rotate!==0){var Le=i.rotateAroundCenter(L.node),De=i.rotateAroundCenter(ce.node);ce.node.setAttribute("transform","rotate(".concat(r.config.yaxis[e].labels.rotate," ").concat(Le.x," ").concat(De.y,")"))}y+=b},_=x;_>=0;_--)R(_);if(r.config.yaxis[e].title.text!==void 0){var d=i.group({class:"apexcharts-yaxis-title"}),v=0;r.config.yaxis[e].opposite&&(v=r.globals.translateYAxisX[e]);var M=i.drawText({x:v,y:r.globals.gridHeight/2+r.globals.translateY+r.config.yaxis[e].title.offsetY,text:r.config.yaxis[e].title.text,textAnchor:"end",foreColor:r.config.yaxis[e].title.style.color,fontSize:r.config.yaxis[e].title.style.fontSize,fontWeight:r.config.yaxis[e].title.style.fontWeight,fontFamily:r.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[e].title.style.cssClass});d.add(M),f.add(d)}var P=r.config.yaxis[e].axisBorder,B=31+P.offsetX;if(r.config.yaxis[e].opposite&&(B=-31-P.offsetX),P.show){var N=i.drawLine(B,r.globals.translateY+P.offsetY-2,B,r.globals.gridHeight+r.globals.translateY+P.offsetY+2,P.color,0,P.width);f.add(N)}return r.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(B,x,P,r.config.yaxis[e].axisTicks,e,b,f),f}},{key:"drawYaxisInversed",value:function(e){var t=this.w,r=new U(this.ctx),i=r.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=r.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(s);var n=t.globals.yAxisScale[e].result.length-1,l=t.globals.gridWidth/n+.1,h=l+t.config.xaxis.labels.offsetX,f=t.globals.xLabelFormatter,p=t.globals.yAxisScale[e].result.slice(),x=t.globals.timescaleLabels;x.length>0&&(this.xaxisLabels=x.slice(),n=(p=x.slice()).length),p=this.axesUtils.checkForReversedLabels(e,p);var b=x.length;if(t.config.xaxis.labels.show)for(var y=b?0:n;b?y<b:y>=0;b?y++:y--){var C=p[y];C=f(C,y,t);var z=t.globals.gridWidth+t.globals.padHorizontal-(h-l+t.config.xaxis.labels.offsetX);if(x.length){var L=this.axesUtils.getLabel(p,x,z,y,this.drawnLabels,this.xaxisFontSize);z=L.x,C=L.text,this.drawnLabels.push(L.text),y===0&&t.globals.skipFirstTimelinelabel&&(C=""),y===p.length-1&&t.globals.skipLastTimelinelabel&&(C="")}var R=r.drawText({x:z,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:C,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});s.add(R),R.tspan(C);var _=document.createElementNS(t.globals.SVGNS,"title");_.textContent=C,R.node.appendChild(_),h+=l}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,r=new U(this.ctx),i=t.config.xaxis.axisBorder;if(i.show){var s=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(s-=15);var n=r.drawLine(t.globals.padHorizontal+s+i.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,i.color,0,i.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(n):e.add(n)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,r=new U(this.ctx);if(t.config.xaxis.title.text!==void 0){var i=r.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=r.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});i.add(s),e.add(i)}}},{key:"yAxisTitleRotate",value:function(e,t){var r=this.w,i=new U(this.ctx),s={width:0,height:0},n={width:0,height:0},l=r.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));l!==null&&(s=l.getBoundingClientRect());var h=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(h!==null&&(n=h.getBoundingClientRect()),h!==null){var f=this.xPaddingForYAxisTitle(e,s,n,t);h.setAttribute("x",f.xPos-(t?10:0))}if(h!==null){var p=i.rotateAroundCenter(h);h.setAttribute("transform","rotate(".concat(t?-1*r.config.yaxis[e].title.rotate:r.config.yaxis[e].title.rotate," ").concat(p.x," ").concat(p.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,r,i){var s=this.w,n=0,l=0,h=10;return s.config.yaxis[e].title.text===void 0||e<0?{xPos:l,padd:0}:(i?(l=t.width+s.config.yaxis[e].title.offsetX+r.width/2+h/2,(n+=1)===0&&(l-=h/2)):(l=-1*t.width+s.config.yaxis[e].title.offsetX+h/2+r.width/2,s.globals.isBarHorizontal&&(h=25,l=-1*t.width-s.config.yaxis[e].title.offsetX-h)),{xPos:l,padd:h})}},{key:"setYAxisXPosition",value:function(e,t){var r=this.w,i=0,s=0,n=18,l=1;r.config.yaxis.length>1&&(this.multipleYs=!0),r.config.yaxis.map(function(h,f){var p=r.globals.ignoreYAxisIndexes.indexOf(f)>-1||!h.show||h.floating||e[f].width===0,x=e[f].width+t[f].width;h.opposite?r.globals.isBarHorizontal?(s=r.globals.gridWidth+r.globals.translateX-1,r.globals.translateYAxisX[f]=s-h.labels.offsetX):(s=r.globals.gridWidth+r.globals.translateX+l,p||(l=l+x+20),r.globals.translateYAxisX[f]=s-h.labels.offsetX+20):(i=r.globals.translateX-n,p||(n=n+x+20),r.globals.translateYAxisX[f]=i+h.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=O.listToArray(t)).forEach(function(r,i){var s=e.config.yaxis[i];if(s&&!s.floating&&s.labels.align!==void 0){var n=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));l=O.listToArray(l);var h=n.getBoundingClientRect();s.labels.align==="left"?(l.forEach(function(f,p){f.setAttribute("text-anchor","start")}),s.opposite||n.setAttribute("transform","translate(-".concat(h.width,", 0)"))):s.labels.align==="center"?(l.forEach(function(f,p){f.setAttribute("text-anchor","middle")}),n.setAttribute("transform","translate(".concat(h.width/2*(s.opposite?1:-1),", 0)"))):s.labels.align==="right"&&(l.forEach(function(f,p){f.setAttribute("text-anchor","end")}),s.opposite&&n.setAttribute("transform","translate(".concat(h.width,", 0)")))}})}}]),E}(),Pr=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.documentEvent=O.bind(this.documentEvent,this)}return w(E,[{key:"addEventListener",value:function(e,t){var r=this.w;r.globals.events.hasOwnProperty(e)?r.globals.events[e].push(t):r.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var r=this.w;if(r.globals.events.hasOwnProperty(e)){var i=r.globals.events[e].indexOf(t);i!==-1&&r.globals.events[e].splice(i,1)}}},{key:"fireEvent",value:function(e,t){var r=this.w;if(r.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var i=r.globals.events[e],s=i.length,n=0;n<s;n++)i[n].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,r=this.ctx,i=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(s){i.addEventListener(s,function(n){var l=Object.assign({},t,{seriesIndex:t.globals.capturedSeriesIndex,dataPointIndex:t.globals.capturedDataPointIndex});n.type==="mousemove"||n.type==="touchmove"?typeof t.config.chart.events.mouseMove=="function"&&t.config.chart.events.mouseMove(n,r,l):n.type==="mouseleave"||n.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(n,r,l):(n.type==="mouseup"&&n.which===1||n.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(n,r,l),r.ctx.events.fireEvent("click",[n,r,l]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(s){t.globals.dom.baseEl.addEventListener(s,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,r=e.target.className;if(e.type==="click"){var i=t.globals.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&r!=="apexcharts-menu-icon"&&i.classList.remove("apexcharts-menu-open")}t.globals.clientX=e.type==="touchmove"?e.touches[0].clientX:e.clientX,t.globals.clientY=e.type==="touchmove"?e.touches[0].clientY:e.clientY}}]),E}(),Ir=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var r=t.filter(function(s){return s.name===e})[0];if(!r)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var i=O.extend(Ce,r);this.w.globals.locale=i.options}}]),E}(),vr=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"drawAxis",value:function(e,t){var r,i,s=this,n=this.w.globals,l=this.w.config,h=new it(this.ctx,t),f=new Ut(this.ctx,t);n.axisCharts&&e!=="radar"&&(n.isBarHorizontal?(i=f.drawYaxisInversed(0),r=h.drawXaxisInversed(0),n.dom.elGraphical.add(r),n.dom.elGraphical.add(i)):(r=h.drawXaxis(),n.dom.elGraphical.add(r),l.yaxis.map(function(p,x){if(n.ignoreYAxisIndexes.indexOf(x)===-1&&(i=f.drawYaxis(x),n.dom.Paper.add(i),s.w.config.grid.position==="back")){var b=n.dom.Paper.children()[1];b.remove(),n.dom.Paper.add(b)}})))}}]),E}(),Ot=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new U(this.ctx),r=new le(this.ctx),i=e.config.xaxis.crosshairs.fill.gradient,s=e.config.xaxis.crosshairs.dropShadow,n=e.config.xaxis.crosshairs.fill.type,l=i.colorFrom,h=i.colorTo,f=i.opacityFrom,p=i.opacityTo,x=i.stops,b=s.enabled,y=s.left,C=s.top,z=s.blur,L=s.color,R=s.opacity,_=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){n==="gradient"&&(_=t.drawGradient("vertical",l,h,f,p,null,x,null));var d=t.drawRect();e.config.xaxis.crosshairs.width===1&&(d=t.drawLine());var v=e.globals.gridHeight;(!O.isNumber(v)||v<0)&&(v=0);var M=e.config.xaxis.crosshairs.width;(!O.isNumber(M)||M<0)&&(M=0),d.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:v,width:M,height:v,fill:_,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),b&&(d=r.dropShadow(d,{left:y,top:C,blur:z,color:L,opacity:R})),e.globals.dom.elGraphical.add(d)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new U(this.ctx),r=e.config.yaxis[0].crosshairs,i=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var s=t.drawLine(-i,0,e.globals.gridWidth+i,0,r.stroke.color,r.stroke.dashArray,r.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(s)}var n=t.drawLine(-i,0,e.globals.gridWidth+i,0,r.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(n)}}]),E}(),sr=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"checkResponsiveConfig",value:function(e){var t=this,r=this.w,i=r.config;if(i.responsive.length!==0){var s=i.responsive.slice();s.sort(function(f,p){return f.breakpoint>p.breakpoint?1:p.breakpoint>f.breakpoint?-1:0}).reverse();var n=new vt({}),l=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=s[0].breakpoint,x=window.innerWidth>0?window.innerWidth:screen.width;if(x>p){var b=re.extendArrayProps(n,r.globals.initialConfig,r);f=O.extend(b,f),f=O.extend(r.config,f),t.overrideResponsiveOptions(f)}else for(var y=0;y<s.length;y++)x<s[y].breakpoint&&(f=re.extendArrayProps(n,s[y].options,r),f=O.extend(r.config,f),t.overrideResponsiveOptions(f))};if(e){var h=re.extendArrayProps(n,e,r);h=O.extend(r.config,h),l(h=O.extend(h,e))}else l({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new vt(e).init({responsiveOverride:!0});this.w.config=t}}]),E}(),lo=function(){function E(e){m(this,E),this.ctx=e,this.colors=[],this.w=e.w;var t=this.w;this.isColorFn=!1,this.isHeatmapDistributed=t.config.chart.type==="treemap"&&t.config.plotOptions.treemap.distributed||t.config.chart.type==="heatmap"&&t.config.plotOptions.heatmap.distributed,this.isBarDistributed=t.config.plotOptions.bar.distributed&&(t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")}return w(E,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e,t=this,r=this.w,i=new O;if(r.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(r.config.theme.mode)),r.config.colors===void 0||((e=r.config.colors)===null||e===void 0?void 0:e.length)===0?r.globals.colors=this.predefined():(r.globals.colors=r.config.colors,Array.isArray(r.config.colors)&&r.config.colors.length>0&&typeof r.config.colors[0]=="function"&&(r.globals.colors=r.config.series.map(function(C,z){var L=r.config.colors[z];return L||(L=r.config.colors[0]),typeof L=="function"?(t.isColorFn=!0,L({value:r.globals.axisCharts?r.globals.series[z][0]?r.globals.series[z][0]:0:r.globals.series[z],seriesIndex:z,dataPointIndex:z,w:r})):L}))),r.globals.seriesColors.map(function(C,z){C&&(r.globals.colors[z]=C)}),r.config.theme.monochrome.enabled){var s=[],n=r.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(n=r.globals.series[0].length*r.globals.series.length);for(var l=r.config.theme.monochrome.color,h=1/(n/r.config.theme.monochrome.shadeIntensity),f=r.config.theme.monochrome.shadeTo,p=0,x=0;x<n;x++){var b=void 0;f==="dark"?(b=i.shadeColor(-1*p,l),p+=h):(b=i.shadeColor(p,l),p+=h),s.push(b)}r.globals.colors=s.slice()}var y=r.globals.colors.slice();this.pushExtraColors(r.globals.colors),["fill","stroke"].forEach(function(C){r.config[C].colors===void 0?r.globals[C].colors=t.isColorFn?r.config.colors:y:r.globals[C].colors=r.config[C].colors.slice(),t.pushExtraColors(r.globals[C].colors)}),r.config.dataLabels.style.colors===void 0?r.globals.dataLabels.style.colors=y:r.globals.dataLabels.style.colors=r.config.dataLabels.style.colors.slice(),this.pushExtraColors(r.globals.dataLabels.style.colors,50),r.config.plotOptions.radar.polygons.fill.colors===void 0?r.globals.radarPolygons.fill.colors=[r.config.theme.mode==="dark"?"#424242":"none"]:r.globals.radarPolygons.fill.colors=r.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(r.globals.radarPolygons.fill.colors,20),r.config.markers.colors===void 0?r.globals.markers.colors=y:r.globals.markers.colors=r.config.markers.colors.slice(),this.pushExtraColors(r.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=this.w,s=t||i.globals.series.length;if(r===null&&(r=this.isBarDistributed||this.isHeatmapDistributed||i.config.chart.type==="heatmap"&&i.config.plotOptions.heatmap.colorScale.inverse),r&&i.globals.series.length&&(s=i.globals.series[i.globals.maxValsInArrayIndex].length*i.globals.series.length),e.length<s)for(var n=s-e.length,l=0;l<n;l++)e.push(e[l])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",r=e.theme.palette?e.theme.palette:t==="dark"?"palette4":"palette1",i=e.chart.foreColor?e.chart.foreColor:t==="dark"?"#f6f7f8":"#373d3f";return e.tooltip.theme=t,e.chart.foreColor=i,e.theme.palette=r,e}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),E}(),co=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,r=e==="title"?t.config.title:t.config.subtitle,i=t.globals.svgWidth/2,s=r.offsetY,n="middle";if(r.align==="left"?(i=10,n="start"):r.align==="right"&&(i=t.globals.svgWidth-10,n="end"),i+=r.offsetX,s=s+parseInt(r.style.fontSize,10)+r.margin/2,r.text!==void 0){var l=new U(this.ctx).drawText({x:i,y:s,text:r.text,textAnchor:n,fontSize:r.style.fontSize,fontFamily:r.style.fontFamily,fontWeight:r.style.fontWeight,foreColor:r.style.color,opacity:1});l.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(l)}}}]),E}(),ho=function(){function E(e){m(this,E),this.w=e.w,this.dCtx=e}return w(E,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,r=0,i=0,s=e==="title"?t.config.title.floating:t.config.subtitle.floating,n=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(n!==null&&!s){var l=n.getBoundingClientRect();r=l.width,i=t.globals.axisCharts?l.height+5:l.height}return{width:r,height:i}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||(t.style.maxHeight=e.globals.svgHeight/2+"px");var r=Object.assign({},O.getBoundingClientRect(t));return t!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:r.x,y:r.y,height:r.height,width:r.height===0?0:r.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},e.config.legend.position!=="left"&&e.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var r=e;if(this.w.globals.isMultiLineX){var i=t.map(function(n,l){return Array.isArray(n)?n.length:1}),s=Math.max.apply(Math,Z(i));r=t[i.indexOf(s)]}return r}}]),E}(),uo=function(){function E(e){m(this,E),this.w=e.w,this.dCtx=e}return w(E,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,r=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&r.length===0&&(r=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var i=this.getxAxisTimeScaleLabelsCoords();e={width:i.width,height:i.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=t.config.legend.position!=="left"&&t.config.legend.position!=="right"||t.config.legend.floating?0:this.dCtx.lgRect.width;var s=t.globals.xLabelFormatter,n=O.getLargestStringFromArr(r),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,r);t.globals.isBarHorizontal&&(l=n=t.globals.yAxisScale[0].result.reduce(function(C,z){return C.length>z.length?C:z},0));var h=new Me(this.dCtx.ctx),f=n;n=h.xLabelFormat(s,n,f,{i:void 0,dateFormatter:new ne(this.dCtx.ctx).formatDate,w:t}),l=h.xLabelFormat(s,l,f,{i:void 0,dateFormatter:new ne(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&n===void 0||String(n).trim()==="")&&(l=n="1");var p=new U(this.dCtx.ctx),x=p.getTextRects(n,t.config.xaxis.labels.style.fontSize),b=x;if(n!==l&&(b=p.getTextRects(l,t.config.xaxis.labels.style.fontSize)),(e={width:x.width>=b.width?x.width:b.width,height:x.height>=b.height?x.height:b.height}).width*r.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var y=function(C){return p.getTextRects(C,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};x=y(n),n!==l&&(b=y(l)),e.height=(x.height>b.height?x.height:b.height)/1.5,e.width=x.width>b.width?x.width:b.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var r,i=((e=t.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,s=t.globals.groups.map(function(x){return x.title}),n=O.getLargestStringFromArr(s),l=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,s),h=new U(this.dCtx.ctx),f=h.getTextRects(n,i),p=f;return n!==l&&(p=h.getTextRects(l,i)),r={width:f.width>=p.width?f.width:p.width,height:f.height>=p.height?f.height:p.height},t.config.xaxis.labels.show||(r={width:0,height:0}),{width:r.width,height:r.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,r=0;if(e.config.xaxis.title.text!==void 0){var i=new U(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=i.width,r=i.height}return{width:t,height:r}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var r=this.dCtx.timescaleLabels.map(function(s){return s.value}),i=r.reduce(function(s,n){return s===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):s.length>n.length?s:n},0);return 1.05*(e=new U(this.dCtx.ctx).getTextRects(i,t.config.xaxis.labels.style.fontSize)).width*r.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,r=this.w,i=r.globals,s=r.config,n=s.xaxis.type,l=e.width;i.skipLastTimelinelabel=!1,i.skipFirstTimelinelabel=!1;var h=r.config.yaxis[0].opposite&&r.globals.isBarHorizontal,f=function(p,x){s.yaxis.length>1&&function(b){return i.collapsedSeriesIndices.indexOf(b)!==-1}(x)||function(b){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var y=t.dCtx.timescaleLabels[0],C=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+l/1.75-t.dCtx.yAxisWidthRight,z=y.position-l/1.75+t.dCtx.yAxisWidthLeft,L=r.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;C>i.svgWidth-i.translateX-L&&(i.skipLastTimelinelabel=!0),z<-(b.show&&!b.floating||s.chart.type!=="bar"&&s.chart.type!=="candlestick"&&s.chart.type!=="rangeBar"&&s.chart.type!=="boxPlot"?10:l/1.75)&&(i.skipFirstTimelinelabel=!0)}else n==="datetime"?t.dCtx.gridPad.right<l&&!i.rotateXLabels&&(i.skipLastTimelinelabel=!0):n!=="datetime"&&t.dCtx.gridPad.right<l/2-t.dCtx.yAxisWidthRight&&!i.rotateXLabels&&!r.config.xaxis.labels.trim&&(r.config.xaxis.tickPlacement!=="between"||r.globals.isBarHorizontal)&&(t.dCtx.xPadRight=l/2+1)}(p)};s.yaxis.forEach(function(p,x){h?(t.dCtx.gridPad.left<l&&(t.dCtx.xPadLeft=l/2+1),t.dCtx.xPadRight=l/2+1):f(p,x)})}}]),E}(),fo=function(){function E(e){m(this,E),this.w=e.w,this.dCtx=e}return w(E,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,r=[],i=10,s=new Fe(this.dCtx.ctx);return t.config.yaxis.map(function(n,l){var h=t.globals.yAxisScale[l],f=0;if(!s.isYAxisHidden(l)&&n.labels.show&&n.labels.minWidth!==void 0&&(f=n.labels.minWidth),!s.isYAxisHidden(l)&&n.labels.show&&h.result.length){var p=t.globals.yLabelFormatters[l],x=h.niceMin===Number.MIN_VALUE?0:h.niceMin,b=String(x).length>String(h.niceMax).length?x:h.niceMax,y=p(b,{seriesIndex:l,dataPointIndex:-1,w:t}),C=y;if(y!==void 0&&y.length!==0||(y=b),t.globals.isBarHorizontal){i=0;var z=t.globals.labels.slice();y=p(y=O.getLargestStringFromArr(z),{seriesIndex:l,dataPointIndex:-1,w:t}),C=e.dCtx.dimHelpers.getLargestStringFromMultiArr(y,z)}var L=new U(e.dCtx.ctx),R="rotate(".concat(n.labels.rotate," 0 0)"),_=L.getTextRects(y,n.labels.style.fontSize,n.labels.style.fontFamily,R,!1),d=_;y!==C&&(d=L.getTextRects(C,n.labels.style.fontSize,n.labels.style.fontFamily,R,!1)),r.push({width:(f>d.width||f>_.width?f:d.width>_.width?d.width:_.width)+i,height:d.height>_.height?d.height:_.height})}else r.push({width:0,height:0})}),r}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,r=[];return t.config.yaxis.map(function(i,s){if(i.show&&i.title.text!==void 0){var n=new U(e.dCtx.ctx),l="rotate(".concat(i.title.rotate," 0 0)"),h=n.getTextRects(i.title.text,i.title.style.fontSize,i.title.style.fontFamily,l,!1);r.push({width:h.width,height:h.height})}else r.push({width:0,height:0})}),r}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,r=0,i=0,s=e.globals.yAxisScale.length>1?10:0,n=new Fe(this.dCtx.ctx),l=function(h,f){var p=e.config.yaxis[f].floating,x=0;h.width>0&&!p?(x=h.width+s,function(b){return e.globals.ignoreYAxisIndexes.indexOf(b)>-1}(f)&&(x=x-h.width-s)):x=p||n.isYAxisHidden(f)?0:5,e.config.yaxis[f].opposite?i+=x:r+=x,t+=x};return e.globals.yLabelsCoords.map(function(h,f){l(h,f)}),e.globals.yTitleCoords.map(function(h,f){l(h,f)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=r,this.dCtx.yAxisWidthRight=i,t}}]),E}(),go=function(){function E(e){m(this,E),this.w=e.w,this.dCtx=e}return w(E,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var r=function(p){return p==="bar"||p==="rangeBar"||p==="candlestick"||p==="boxPlot"},i=t.config.chart.type,s=0,n=r(i)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(n=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(p){r(p.type)&&(n-=1)}),t.config.chart.stacked&&(n=1),(r(i)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&n>0){var l,h,f=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);f<=3&&(f=t.globals.dataPoints),l=f/e,t.globals.minXDiff&&t.globals.minXDiff/l>0&&(h=t.globals.minXDiff/l),h>e/2&&(h/=2),(s=h/n*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(n>1?1:1.5)+5,t.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,r=t.globals,i=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(l){t.config[l].text!==void 0?i+=t.config[l].margin:i+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||t.globals.axisCharts||(i+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");r.gridHeight=r.gridHeight-s.height-n.height-i,r.translateY=r.translateY+s.height+n.height+i}},{key:"setGridXPosForDualYAxis",value:function(e,t){var r=this.w,i=new Fe(this.dCtx.ctx);r.config.yaxis.map(function(s,n){r.globals.ignoreYAxisIndexes.indexOf(n)!==-1||s.floating||i.isYAxisHidden(n)||(s.opposite&&(r.globals.translateX=r.globals.translateX-(t[n].width+e[n].width)-parseInt(r.config.yaxis[n].labels.style.fontSize,10)/1.2-12),r.globals.translateX<2&&(r.globals.translateX=2))})}}]),E}(),Rr=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ho(this),this.dimYAxis=new fo(this),this.dimXAxis=new uo(this),this.dimGrid=new go(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return w(E,[{key:"plotCoords",value:function(){var e=this,t=this.w,r=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(s){var n=$(s,2),l=n[0],h=n[1];e.gridPad[l]=Math.max(h,e.w.globals.markers.largestSize/1.5)}),r.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),r.gridHeight=r.gridHeight-this.gridPad.top-this.gridPad.bottom,r.gridWidth=r.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(r.gridWidth);r.gridWidth=r.gridWidth-2*i,r.translateX=r.translateX+this.gridPad.left+this.xPadLeft+(i>0?i+4:0),r.translateY=r.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,r=t.globals,i=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(y,C){t.globals.yLabelsCoords.push({width:i[C].width,index:C}),t.globals.yTitleCoords.push({width:s[C].width,index:C})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),l=this.dimXAxis.getxAxisGroupLabelsCoords(),h=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,h,l),r.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,r.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(r.rotateXLabels=!1,r.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),r.translateXAxisY=r.translateXAxisY+t.config.xaxis.labels.offsetY,r.translateXAxisX=r.translateXAxisX+t.config.xaxis.labels.offsetX;var f=this.yAxisWidth,p=this.xAxisHeight;r.xAxisLabelsHeight=this.xAxisHeight-h.height,r.xAxisGroupLabelsHeight=r.xAxisLabelsHeight-n.height,r.xAxisLabelsWidth=this.xAxisWidth,r.xAxisHeight=this.xAxisHeight;var x=10;(t.config.chart.type==="radar"||this.isSparkline)&&(f=0,p=r.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(f=0,p=0,x=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);var b=function(){r.translateX=f,r.gridHeight=r.svgHeight-e.lgRect.height-p-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),r.gridWidth=r.svgWidth-f};switch(t.config.xaxis.position==="top"&&(x=r.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":r.translateY=x,b();break;case"top":r.translateY=this.lgRect.height+x,b();break;case"left":r.translateY=x,r.translateX=this.lgRect.width+f,r.gridHeight=r.svgHeight-p-12,r.gridWidth=r.svgWidth-this.lgRect.width-f;break;case"right":r.translateY=x,r.translateX=f,r.gridHeight=r.svgHeight-p-12,r.gridWidth=r.svgWidth-this.lgRect.width-f-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,i),new Ut(this.ctx).setYAxisXPosition(i,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,r=e.config,i=0;e.config.legend.show&&!e.config.legend.floating&&(i=20);var s=r.chart.type==="pie"||r.chart.type==="polarArea"||r.chart.type==="donut"?"pie":"radialBar",n=r.plotOptions[s].offsetY,l=r.plotOptions[s].offsetX;if(!r.legend.show||r.legend.floating)return t.gridHeight=t.svgHeight-r.grid.padding.left+r.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=n,void(t.translateX=l+(t.svgWidth-t.gridWidth)/2);switch(r.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=n-10,t.translateX=l+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+n+10,t.translateX=l+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-i,t.gridHeight=r.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=l+this.lgRect.width+i;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-i-5,t.gridHeight=r.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=l+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,r){var i=this.w,s=i.globals.hasXaxisGroups?2:1,n=r.height+e.height+t.height,l=i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO,h=i.globals.rotateXLabels?22:10,f=i.globals.rotateXLabels&&i.config.legend.position==="bottom"?10:0;this.xAxisHeight=n*l+s*h+f,this.xAxisWidth=e.width,this.xAxisHeight-t.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);var p=0,x=0;i.config.yaxis.forEach(function(b){p+=b.labels.minWidth,x+=b.labels.maxWidth}),this.yAxisWidth<p&&(this.yAxisWidth=p),this.yAxisWidth>x&&(this.yAxisWidth=x)}}]),E}(),po=function(){function E(e){m(this,E),this.w=e.w,this.lgCtx=e}return w(E,[{key:"getLegendStyles",value:function(){var e=document.createElement("style");e.setAttribute("type","text/css");var t=document.createTextNode(`
|
|
44
|
+
|
|
45
|
+
.apexcharts-legend {
|
|
46
|
+
display: flex;
|
|
47
|
+
overflow: auto;
|
|
48
|
+
padding: 0 10px;
|
|
49
|
+
}
|
|
50
|
+
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
|
|
51
|
+
flex-wrap: wrap
|
|
52
|
+
}
|
|
53
|
+
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
}
|
|
57
|
+
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
}
|
|
60
|
+
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
|
|
61
|
+
justify-content: center;
|
|
62
|
+
}
|
|
63
|
+
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
|
|
64
|
+
justify-content: flex-end;
|
|
65
|
+
}
|
|
66
|
+
.apexcharts-legend-series {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
line-height: normal;
|
|
69
|
+
}
|
|
70
|
+
.apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
.apexcharts-legend-text {
|
|
75
|
+
position: relative;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
}
|
|
78
|
+
.apexcharts-legend-text *, .apexcharts-legend-marker * {
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
}
|
|
81
|
+
.apexcharts-legend-marker {
|
|
82
|
+
position: relative;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
margin-right: 3px;
|
|
86
|
+
border-style: solid;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{
|
|
90
|
+
display: inline-block;
|
|
91
|
+
}
|
|
92
|
+
.apexcharts-legend-series.apexcharts-no-click {
|
|
93
|
+
cursor: auto;
|
|
94
|
+
}
|
|
95
|
+
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
|
|
96
|
+
display: none !important;
|
|
97
|
+
}
|
|
98
|
+
.apexcharts-inactive-legend {
|
|
99
|
+
opacity: 0.45;
|
|
100
|
+
}`);return e.appendChild(t),e}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var r=this,i=this.w;if(i.globals.axisCharts||i.config.chart.type==="radialBar"){i.globals.resized=!0;var s=null,n=null;i.globals.risingSeries=[],i.globals.axisCharts?(s=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),n=parseInt(s.getAttribute("data:realIndex"),10)):(s=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),n=parseInt(s.getAttribute("rel"),10)-1),t?[{cs:i.globals.collapsedSeries,csi:i.globals.collapsedSeriesIndices},{cs:i.globals.ancillaryCollapsedSeries,csi:i.globals.ancillaryCollapsedSeriesIndices}].forEach(function(p){r.riseCollapsedSeries(p.cs,p.csi,n)}):this.hideSeries({seriesEl:s,realIndex:n})}else{var l=i.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),h=i.config.chart.type;if(h==="pie"||h==="polarArea"||h==="donut"){var f=i.config.plotOptions.pie.donut.labels;new U(this.lgCtx.ctx).pathMouseDown(l.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(l.members[0].node,f)}l.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,r=e.realIndex,i=this.w,s=O.clone(i.config.series);if(i.globals.axisCharts){var n=!1;if(i.config.yaxis[r]&&i.config.yaxis[r].show&&i.config.yaxis[r].showAlways&&(n=!0,i.globals.ancillaryCollapsedSeriesIndices.indexOf(r)<0&&(i.globals.ancillaryCollapsedSeries.push({index:r,data:s[r].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.ancillaryCollapsedSeriesIndices.push(r))),!n){i.globals.collapsedSeries.push({index:r,data:s[r].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.collapsedSeriesIndices.push(r);var l=i.globals.risingSeries.indexOf(r);i.globals.risingSeries.splice(l,1)}}else i.globals.collapsedSeries.push({index:r,data:s[r]}),i.globals.collapsedSeriesIndices.push(r);for(var h=t.childNodes,f=0;f<h.length;f++)h[f].classList.contains("apexcharts-series-markers-wrap")&&(h[f].classList.contains("apexcharts-hide")?h[f].classList.remove("apexcharts-hide"):h[f].classList.add("apexcharts-hide"));i.globals.allSeriesCollapsed=i.globals.collapsedSeries.length===i.config.series.length,s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,i.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,r){var i=this.w,s=O.clone(i.config.series);if(e.length>0){for(var n=0;n<e.length;n++)e[n].index===r&&(i.globals.axisCharts?(s[r].data=e[n].data.slice(),e.splice(n,1),t.splice(n,1),i.globals.risingSeries.push(r)):(s[r]=e[n].data,e.splice(n,1),t.splice(n,1),i.globals.risingSeries.push(r)));s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,i.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w;return t.globals.axisCharts?e.forEach(function(r,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[])}):e.forEach(function(r,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i]=0)}),e}}]),E}(),Ti=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new po(this)}return w(E,[{key:"init",value:function(){var e=this.w,t=e.globals,r=e.config;if((r.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&r.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),O.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),r.legend.position==="bottom"||r.legend.position==="top"?this.legendAlignHorizontal():r.legend.position!=="right"&&r.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,r=t.config.legend.fontFamily,i=t.globals.seriesNames,s=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var n=t.config.plotOptions.heatmap.colorScale.ranges;i=n.map(function(te){return te.name?te.name:te.from+" - "+te.to}),s=n.map(function(te){return te.color})}else this.isBarsDistributed&&(i=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(i=t.config.legend.customLegendItems);for(var l=t.globals.legendFormatter,h=t.config.legend.inverseOrder,f=h?i.length-1:0;h?f>=0:f<=i.length-1;h?f--:f++){var p,x=l(i[f],{seriesIndex:f,w:t}),b=!1,y=!1;if(t.globals.collapsedSeries.length>0)for(var C=0;C<t.globals.collapsedSeries.length;C++)t.globals.collapsedSeries[C].index===f&&(b=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var z=0;z<t.globals.ancillaryCollapsedSeriesIndices.length;z++)t.globals.ancillaryCollapsedSeriesIndices[z]===f&&(y=!0);var L=document.createElement("span");L.classList.add("apexcharts-legend-marker");var R=t.config.legend.markers.offsetX,_=t.config.legend.markers.offsetY,d=t.config.legend.markers.height,v=t.config.legend.markers.width,M=t.config.legend.markers.strokeWidth,P=t.config.legend.markers.strokeColor,B=t.config.legend.markers.radius,N=L.style;N.background=s[f],N.color=s[f],N.setProperty("background",s[f],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[f]&&(N.background=t.config.legend.markers.fillColors[f]),t.globals.seriesColors[f]!==void 0&&(N.background=t.globals.seriesColors[f],N.color=t.globals.seriesColors[f]),N.height=Array.isArray(d)?parseFloat(d[f])+"px":parseFloat(d)+"px",N.width=Array.isArray(v)?parseFloat(v[f])+"px":parseFloat(v)+"px",N.left=(Array.isArray(R)?parseFloat(R[f]):parseFloat(R))+"px",N.top=(Array.isArray(_)?parseFloat(_[f]):parseFloat(_))+"px",N.borderWidth=Array.isArray(M)?M[f]:M,N.borderColor=Array.isArray(P)?P[f]:P,N.borderRadius=Array.isArray(B)?parseFloat(B[f])+"px":parseFloat(B)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[f]&&(L.innerHTML=t.config.legend.markers.customHTML[f]()):L.innerHTML=t.config.legend.markers.customHTML()),U.setAttrs(L,{rel:f+1,"data:collapsed":b||y}),(b||y)&&L.classList.add("apexcharts-inactive-legend");var W=document.createElement("div"),G=document.createElement("span");G.classList.add("apexcharts-legend-text"),G.innerHTML=Array.isArray(x)?x.join(" "):x;var Q=t.config.legend.labels.useSeriesColors?t.globals.colors[f]:Array.isArray(t.config.legend.labels.colors)?(p=t.config.legend.labels.colors)===null||p===void 0?void 0:p[f]:t.config.legend.labels.colors;Q||(Q=t.config.chart.foreColor),G.style.color=Q,G.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",G.style.fontWeight=t.config.legend.fontWeight,G.style.fontFamily=r||t.config.chart.fontFamily,U.setAttrs(G,{rel:f+1,i:f,"data:default-text":encodeURIComponent(x),"data:collapsed":b||y}),W.appendChild(L),W.appendChild(G);var ie=new re(this.ctx);t.config.legend.showForZeroSeries||ie.getSeriesTotalByIndex(f)===0&&ie.seriesHaveSameValues(f)&&!ie.isSeriesNull(f)&&t.globals.collapsedSeriesIndices.indexOf(f)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&W.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||ie.isSeriesNull(f)&&t.globals.collapsedSeriesIndices.indexOf(f)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&W.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(W),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),W.classList.add("apexcharts-legend-series"),W.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",U.setAttrs(W,{rel:f+1,seriesName:O.escapeString(i[f]),"data:collapsed":b||y}),(b||y)&&W.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||W.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&t.config.legend.customLegendItems.length===0&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var r=this.w,i=r.globals.dom.elLegendWrap,s=i.getBoundingClientRect(),n=0,l=0;if(r.config.legend.position==="bottom")l+=r.globals.svgHeight-s.height/2;else if(r.config.legend.position==="top"){var h=new Rr(this.ctx),f=h.dimHelpers.getTitleSubtitleCoords("title").height,p=h.dimHelpers.getTitleSubtitleCoords("subtitle").height;l=l+(f>0?f-10:0)+(p>0?p-10:0)}i.style.position="absolute",n=n+e+r.config.legend.offsetX,l=l+t+r.config.legend.offsetY,i.style.left=n+"px",i.style.top=l+"px",r.config.legend.position==="bottom"?(i.style.top="auto",i.style.bottom=5-r.config.legend.offsetY+"px"):r.config.legend.position==="right"&&(i.style.left="auto",i.style.right=25+r.config.legend.offsetX+"px"),["width","height"].forEach(function(x){i.style[x]&&(i.style[x]=parseInt(r.config.legend[x],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendBBox(),r=new Rr(this.ctx),i=r.dimHelpers.getTitleSubtitleCoords("title"),s=r.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;e.config.legend.position==="bottom"?n=-t.clwh/1.8:e.config.legend.position==="top"&&(n=i.height+s.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),r=0;e.config.legend.position==="left"&&(r=20),e.config.legend.position==="right"&&(r=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(r,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,r=e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(r){var i=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,i,this.w]),new ze(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&r&&new ze(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var r=parseInt(e.target.getAttribute("rel"),10)-1,i=e.target.getAttribute("data:collapsed")==="true",s=this.w.config.chart.events.legendClick;typeof s=="function"&&s(this.ctx,r,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,r,this.w]);var n=this.w.config.legend.markers.onClick;typeof n=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,r,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,r,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(r,i)}}}]),E}(),Li=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w;var t=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}return w(E,[{key:"createToolbar",value:function(){var e=this,t=this.w,r=function(){return document.createElement("div")},i=r();if(i.setAttribute("class","apexcharts-toolbar"),i.style.top=t.config.chart.toolbar.offsetY+"px",i.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(i),this.elZoom=r(),this.elZoomIn=r(),this.elZoomOut=r(),this.elPan=r(),this.elSelection=r(),this.elZoomReset=r(),this.elMenuIcon=r(),this.elMenu=r(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s<this.t.customIcons.length;s++)this.elCustomIcons.push(r());var n=[],l=function(x,b,y){var C=x.toLowerCase();e.t[C]&&t.config.chart.zoom.enabled&&n.push({el:b,icon:typeof e.t[C]=="string"?e.t[C]:y,title:e.localeValues[x],class:"apexcharts-".concat(C,"-icon")})};l("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
101
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
102
|
+
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
|
|
103
|
+
</svg>
|
|
104
|
+
`),l("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
105
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
106
|
+
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
|
|
107
|
+
</svg>
|
|
108
|
+
`);var h=function(x){e.t[x]&&t.config.chart[x].enabled&&n.push({el:x==="zoom"?e.elZoom:e.elSelection,icon:typeof e.t[x]=="string"?e.t[x]:x==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
|
|
109
|
+
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
|
|
110
|
+
<path d="M0 0h24v24H0V0z" fill="none"/>
|
|
111
|
+
<path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
|
|
112
|
+
</svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
113
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
114
|
+
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
|
|
115
|
+
</svg>`,title:e.localeValues[x==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(x,"-icon")})};h("zoom"),h("selection"),this.t.pan&&t.config.chart.zoom.enabled&&n.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
|
|
116
|
+
<defs>
|
|
117
|
+
<path d="M0 0h24v24H0z" id="a"/>
|
|
118
|
+
</defs>
|
|
119
|
+
<clipPath id="b">
|
|
120
|
+
<use overflow="visible" xlink:href="#a"/>
|
|
121
|
+
</clipPath>
|
|
122
|
+
<path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
|
|
123
|
+
</svg>`,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),l("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
124
|
+
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
|
|
125
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
126
|
+
</svg>`),this.t.download&&n.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var f=0;f<this.elCustomIcons.length;f++)n.push({el:this.elCustomIcons[f],icon:this.t.customIcons[f].icon,title:this.t.customIcons[f].title,index:this.t.customIcons[f].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[f].class});n.forEach(function(x,b){x.index&&O.moveIndexInArray(n,b,x.index)});for(var p=0;p<n.length;p++)U.setAttrs(n[p].el,{class:n[p].class,title:n[p].title}),n[p].el.innerHTML=n[p].icon,i.appendChild(n[p].el);this._createHamburgerMenu(i),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),U.setAttrs(this.elMenu,{class:"apexcharts-menu"});var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||t.splice(2,1);for(var r=0;r<t.length;r++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[r].innerHTML=t[r].title,U.setAttrs(this.elMenuItems[r],{class:"apexcharts-menu-item ".concat(t[r].name),title:t[r].title}),this.elMenu.appendChild(this.elMenuItems[r])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(r){r.classList.contains("exportSVG")?r.addEventListener("click",e.handleDownload.bind(e,"svg")):r.classList.contains("exportPNG")?r.addEventListener("click",e.handleDownload.bind(e,"png")):r.classList.contains("exportCSV")&&r.addEventListener("click",e.handleDownload.bind(e,"csv"))});for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var r=e==="selection"?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i=e==="selection"?"selectionEnabled":"zoomEnabled";t.w.globals[i]=!t.w.globals[i],r.classList.contains(t.ctx.toolbar.selectedClass)?r.classList.remove(t.ctx.toolbar.selectedClass):r.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),e==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t=e==="pan"?this.elPan:this.elZoom,r=e==="pan"?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),r&&r.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(r){r&&r.classList.remove(e.selectedClass)})}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,r=(this.minX+t)/2,i=(this.maxX+t)/2,s=this._getNewMinXMaxX(r,i);e.globals.disableZoomIn||this.zoomUpdateOptions(s.minX,s.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!(e.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,r=this.minX-(t-this.minX),i=this.maxX-(t-this.maxX),s=this._getNewMinXMaxX(r,i);e.globals.disableZoomOut||this.zoomUpdateOptions(s.minX,s.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var r=this.w.config.xaxis.convertedCatToNumeric;return{minX:r?Math.floor(e):e,maxX:r?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var r=this.w;if(e!==void 0||t!==void 0){if(!(r.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=r.globals.dataPoints),t-e<2))){var i={min:e,max:t},s=this.getBeforeZoomRange(i);s&&(i=s.xaxis);var n={xaxis:i},l=O.clone(r.globals.initialConfig.yaxis);r.config.chart.zoom.autoScaleYaxis&&(l=new pt(this.ctx).autoScaleY(this.ctx,l,{xaxis:i})),r.config.chart.group||(n.yaxis=l),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(n,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(i,l)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var r=null;return typeof this.ev.beforeZoom=="function"&&(r=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),r}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout(function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(e){var t=this.w,r=new at(this.ctx);switch(e){case"svg":r.exportToSVG(this.ctx);break;case"png":r.exportToPng(this.ctx);break;case"csv":r.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){var r=t.w;if(r.globals.lastXAxis.min=void 0,r.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),typeof r.config.chart.events.beforeResetZoom=="function"){var i=r.config.chart.events.beforeResetZoom(t,r);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}typeof r.config.chart.events.zoomed=="function"&&t.ctx.toolbar.zoomCallback({min:r.config.xaxis.min,max:r.config.xaxis.max}),r.globals.zoomed=!1;var s=t.ctx.series.emptyCollapsedSeries(O.clone(r.globals.initialSeries));t.updateHelpers._updateSeries(s,r.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),E}(),mo=function(E){D(t,Li);var e=X(t);function t(r){var i;return m(this,t),(i=e.call(this,r)).ctx=r,i.w=r.w,i.dragged=!1,i.graphics=new U(i.ctx),i.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],i.clientX=0,i.clientY=0,i.startX=0,i.endX=0,i.dragX=0,i.startY=0,i.endY=0,i.dragY=0,i.moveDirection="none",i}return w(t,[{key:"init",value:function(r){var i=this,s=r.xyRatios,n=this.w,l=this;this.xyRatios=s,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=n.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),n.globals.dom.elGraphical.add(this.zoomRect),n.globals.dom.elGraphical.add(this.selectionRect),n.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):n.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=n.globals.dom.baseEl.querySelector("".concat(n.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(h){i.hoverArea.addEventListener(h,l.svgMouseEvents.bind(l,s),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(r,i){var s=this.w,n=this,l=this.ctx.toolbar,h=s.globals.zoomEnabled?s.config.chart.zoom.type:s.config.chart.selection.type,f=s.config.chart.toolbar.autoSelected;if(i.shiftKey?(this.shiftWasPressed=!0,l.enableZoomPanFromToolbar(f==="pan"?"zoom":"pan")):this.shiftWasPressed&&(l.enableZoomPanFromToolbar(f),this.shiftWasPressed=!1),i.target){var p,x=i.target.classList;if(i.target.parentNode&&i.target.parentNode!==null&&(p=i.target.parentNode.classList),!(x.contains("apexcharts-selection-rect")||x.contains("apexcharts-legend-marker")||x.contains("apexcharts-legend-text")||p&&p.contains("apexcharts-toolbar"))){if(n.clientX=i.type==="touchmove"||i.type==="touchstart"?i.touches[0].clientX:i.type==="touchend"?i.changedTouches[0].clientX:i.clientX,n.clientY=i.type==="touchmove"||i.type==="touchstart"?i.touches[0].clientY:i.type==="touchend"?i.changedTouches[0].clientY:i.clientY,i.type==="mousedown"&&i.which===1){var b=n.gridRect.getBoundingClientRect();n.startX=n.clientX-b.left,n.startY=n.clientY-b.top,n.dragged=!1,n.w.globals.mousedown=!0}if((i.type==="mousemove"&&i.which===1||i.type==="touchmove")&&(n.dragged=!0,s.globals.panEnabled?(s.globals.selection=null,n.w.globals.mousedown&&n.panDragging({context:n,zoomtype:h,xyRatios:r})):(n.w.globals.mousedown&&s.globals.zoomEnabled||n.w.globals.mousedown&&s.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:h}))),i.type==="mouseup"||i.type==="touchend"||i.type==="mouseleave"){var y=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-y.left,n.endY=n.clientY-y.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(s.globals.zoomEnabled||s.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:h}),s.globals.panEnabled&&s.config.xaxis.convertedCatToNumeric&&n.delayedPanScrolled()),s.globals.zoomEnabled&&n.hideSelectionRect(this.selectionRect),n.dragged=!1,n.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var r=this.w;if(this.selectionRect){var i=this.selectionRect.node.getBoundingClientRect();i.width>0&&i.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:r.globals.gridWidth,maxY:r.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var r=this.w,i=this.xyRatios;if(!r.globals.zoomEnabled){if(r.globals.selection!==void 0&&r.globals.selection!==null)this.drawSelectionRect(r.globals.selection);else if(r.config.chart.selection.xaxis.min!==void 0&&r.config.chart.selection.xaxis.max!==void 0){var s=(r.config.chart.selection.xaxis.min-r.globals.minX)/i.xRatio,n={x:s,y:0,width:r.globals.gridWidth-(r.globals.maxX-r.config.chart.selection.xaxis.max)/i.xRatio-s,height:r.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),typeof r.config.chart.events.selection=="function"&&r.config.chart.events.selection(this.ctx,{xaxis:{min:r.config.chart.selection.xaxis.min,max:r.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(r){var i=r.x,s=r.y,n=r.width,l=r.height,h=r.translateX,f=h===void 0?0:h,p=r.translateY,x=p===void 0?0:p,b=this.w,y=this.zoomRect,C=this.selectionRect;if(this.dragged||b.globals.selection!==null){var z={transform:"translate("+f+", "+x+")"};b.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),y.attr({x:i,y:s,width:n,height:l,fill:b.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":b.config.chart.zoom.zoomedArea.fill.opacity,stroke:b.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":b.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":b.config.chart.zoom.zoomedArea.stroke.opacity}),U.setAttrs(y.node,z)),b.globals.selectionEnabled&&(C.attr({x:i,y:s,width:n>0?n:0,height:l>0?l:0,fill:b.config.chart.selection.fill.color,"fill-opacity":b.config.chart.selection.fill.opacity,stroke:b.config.chart.selection.stroke.color,"stroke-width":b.config.chart.selection.stroke.width,"stroke-dasharray":b.config.chart.selection.stroke.dashArray,"stroke-opacity":b.config.chart.selection.stroke.opacity}),U.setAttrs(C.node,z))}}},{key:"hideSelectionRect",value:function(r){r&&r.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(r){var i=r.context,s=r.zoomtype,n=this.w,l=i,h=this.gridRect.getBoundingClientRect(),f=l.startX-1,p=l.startY,x=!1,b=!1,y=l.clientX-h.left-f,C=l.clientY-h.top-p,z={};return Math.abs(y+f)>n.globals.gridWidth?y=n.globals.gridWidth-f:l.clientX-h.left<0&&(y=f),f>l.clientX-h.left&&(x=!0,y=Math.abs(y)),p>l.clientY-h.top&&(b=!0,C=Math.abs(C)),z=s==="x"?{x:x?f-y:f,y:0,width:y,height:n.globals.gridHeight}:s==="y"?{x:0,y:b?p-C:p,width:n.globals.gridWidth,height:C}:{x:x?f-y:f,y:b?p-C:p,width:y,height:C},l.drawSelectionRect(z),l.selectionDragging("resizing"),z}},{key:"selectionDragging",value:function(r,i){var s=this,n=this.w,l=this.xyRatios,h=this.selectionRect,f=0;r==="resizing"&&(f=30);var p=function(b){return parseFloat(h.node.getAttribute(b))},x={x:p("x"),y:p("y"),width:p("width"),height:p("height")};n.globals.selection=x,typeof n.config.chart.events.selection=="function"&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var b=s.gridRect.getBoundingClientRect(),y=h.node.getBoundingClientRect(),C={xaxis:{min:n.globals.xAxisScale.niceMin+(y.left-b.left)*l.xRatio,max:n.globals.xAxisScale.niceMin+(y.right-b.left)*l.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(b.bottom-y.bottom)*l.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(y.top-b.top)*l.yRatio[0]}};n.config.chart.events.selection(s.ctx,C),n.config.chart.brush.enabled&&n.config.chart.events.brushScrolled!==void 0&&n.config.chart.events.brushScrolled(s.ctx,C)},f))}},{key:"selectionDrawn",value:function(r){var i=r.context,s=r.zoomtype,n=this.w,l=i,h=this.xyRatios,f=this.ctx.toolbar;if(l.startX>l.endX){var p=l.startX;l.startX=l.endX,l.endX=p}if(l.startY>l.endY){var x=l.startY;l.startY=l.endY,l.endY=x}var b=void 0,y=void 0;n.globals.isRangeBar?(b=n.globals.yAxisScale[0].niceMin+l.startX*h.invertedYRatio,y=n.globals.yAxisScale[0].niceMin+l.endX*h.invertedYRatio):(b=n.globals.xAxisScale.niceMin+l.startX*h.xRatio,y=n.globals.xAxisScale.niceMin+l.endX*h.xRatio);var C=[],z=[];if(n.config.yaxis.forEach(function(B,N){C.push(n.globals.yAxisScale[N].niceMax-h.yRatio[N]*l.startY),z.push(n.globals.yAxisScale[N].niceMax-h.yRatio[N]*l.endY)}),l.dragged&&(l.dragX>10||l.dragY>10)&&b!==y){if(n.globals.zoomEnabled){var L=O.clone(n.globals.initialConfig.yaxis),R=O.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(b=Math.floor(b),y=Math.floor(y),b<1&&(b=1,y=n.globals.dataPoints),y-b<2&&(y=b+1)),s!=="xy"&&s!=="x"||(R={min:b,max:y}),s!=="xy"&&s!=="y"||L.forEach(function(B,N){L[N].min=z[N],L[N].max=C[N]}),n.config.chart.zoom.autoScaleYaxis){var _=new pt(l.ctx);L=_.autoScaleY(l.ctx,L,{xaxis:R})}if(f){var d=f.getBeforeZoomRange(R,L);d&&(R=d.xaxis?d.xaxis:R,L=d.yaxis?d.yaxis:L)}var v={xaxis:R};n.config.chart.group||(v.yaxis=L),l.ctx.updateHelpers._updateOptions(v,!1,l.w.config.chart.animations.dynamicAnimation.enabled),typeof n.config.chart.events.zoomed=="function"&&f.zoomCallback(R,L)}else if(n.globals.selectionEnabled){var M,P=null;M={min:b,max:y},s!=="xy"&&s!=="y"||(P=O.clone(n.config.yaxis)).forEach(function(B,N){P[N].min=z[N],P[N].max=C[N]}),n.globals.selection=l.selection,typeof n.config.chart.events.selection=="function"&&n.config.chart.events.selection(l.ctx,{xaxis:M,yaxis:P})}}}},{key:"panDragging",value:function(r){var i=r.context,s=this.w,n=i;if(s.globals.lastClientPosition.x!==void 0){var l=s.globals.lastClientPosition.x-n.clientX,h=s.globals.lastClientPosition.y-n.clientY;Math.abs(l)>Math.abs(h)&&l>0?this.moveDirection="left":Math.abs(l)>Math.abs(h)&&l<0?this.moveDirection="right":Math.abs(h)>Math.abs(l)&&h>0?this.moveDirection="up":Math.abs(h)>Math.abs(l)&&h<0&&(this.moveDirection="down")}s.globals.lastClientPosition={x:n.clientX,y:n.clientY};var f=s.globals.isRangeBar?s.globals.minY:s.globals.minX,p=s.globals.isRangeBar?s.globals.maxY:s.globals.maxX;s.config.xaxis.convertedCatToNumeric||n.panScrolled(f,p)}},{key:"delayedPanScrolled",value:function(){var r=this.w,i=r.globals.minX,s=r.globals.maxX,n=(r.globals.maxX-r.globals.minX)/2;this.moveDirection==="left"?(i=r.globals.minX+n,s=r.globals.maxX+n):this.moveDirection==="right"&&(i=r.globals.minX-n,s=r.globals.maxX-n),i=Math.floor(i),s=Math.floor(s),this.updateScrolledChart({xaxis:{min:i,max:s}},i,s)}},{key:"panScrolled",value:function(r,i){var s=this.w,n=this.xyRatios,l=O.clone(s.globals.initialConfig.yaxis),h=n.xRatio,f=s.globals.minX,p=s.globals.maxX;s.globals.isRangeBar&&(h=n.invertedYRatio,f=s.globals.minY,p=s.globals.maxY),this.moveDirection==="left"?(r=f+s.globals.gridWidth/15*h,i=p+s.globals.gridWidth/15*h):this.moveDirection==="right"&&(r=f-s.globals.gridWidth/15*h,i=p-s.globals.gridWidth/15*h),s.globals.isRangeBar||(r<s.globals.initialMinX||i>s.globals.initialMaxX)&&(r=f,i=p);var x={min:r,max:i};s.config.chart.zoom.autoScaleYaxis&&(l=new pt(this.ctx).autoScaleY(this.ctx,l,{xaxis:x}));var b={xaxis:{min:r,max:i}};s.config.chart.group||(b.yaxis=l),this.updateScrolledChart(b,r,i)}},{key:"updateScrolledChart",value:function(r,i,s){var n=this.w;this.ctx.updateHelpers._updateOptions(r,!1,!1),typeof n.config.chart.events.scrolled=="function"&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:i,max:s}})}}]),t}(),Ei=function(){function E(e){m(this,E),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return w(E,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,r=e.elGrid,i=e.clientX,s=e.clientY,n=this.w,l=r.getBoundingClientRect(),h=l.width,f=l.height,p=h/(n.globals.dataPoints-1),x=f/n.globals.dataPoints,b=this.hasBars();!n.globals.comboCharts&&!b||n.config.xaxis.convertedCatToNumeric||(p=h/n.globals.dataPoints);var y=i-l.left-n.globals.barPadForNumericAxis,C=s-l.top;y<0||C<0||y>h||C>f?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):n.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):n.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var z=Math.round(y/p),L=Math.floor(C/x);b&&!n.config.xaxis.convertedCatToNumeric&&(z=Math.ceil(y/p),z-=1);var R=null,_=null,d=[],v=[];if(n.globals.seriesXvalues.forEach(function(N){d.push([N[0]+1e-6].concat(N))}),n.globals.seriesYvalues.forEach(function(N){v.push([N[0]+1e-6].concat(N))}),d=d.map(function(N){return N.filter(function(W){return O.isNumber(W)})}),v=v.map(function(N){return N.filter(function(W){return O.isNumber(W)})}),n.globals.isXNumeric){var M=this.ttCtx.getElGrid().getBoundingClientRect(),P=y*(M.width/h),B=C*(M.height/f);R=(_=this.closestInMultiArray(P,B,d,v)).index,z=_.j,R!==null&&(d=n.globals.seriesXvalues[R],z=(_=this.closestInArray(P,d)).index)}return n.globals.capturedSeriesIndex=R===null?-1:R,(!z||z<1)&&(z=0),n.globals.isBarHorizontal?n.globals.capturedDataPointIndex=L:n.globals.capturedDataPointIndex=z,{capturedSeries:R,j:n.globals.isBarHorizontal?L:z,hoverX:y,hoverY:C}}},{key:"closestInMultiArray",value:function(e,t,r,i){var s=this.w,n=0,l=null,h=-1;s.globals.series.length>1?n=this.getFirstActiveXArray(r):l=0;var f=r[n][0],p=Math.abs(e-f);if(r.forEach(function(y){y.forEach(function(C,z){var L=Math.abs(e-C);L<p&&(p=L,h=z)})}),h!==-1){var x=i[n][h],b=Math.abs(t-x);l=n,i.forEach(function(y,C){var z=Math.abs(t-y[h]);z<b&&(b=z,l=C)})}return{index:l,j:h}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,r=0,i=e.map(function(n,l){return n.length>0?l:-1}),s=0;s<i.length;s++)if(i[s]!==-1&&t.globals.collapsedSeriesIndices.indexOf(s)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(s)===-1){r=i[s];break}return r}},{key:"closestInArray",value:function(e,t){for(var r=t[0],i=null,s=Math.abs(e-r),n=0;n<t.length;n++){var l=Math.abs(e-t[n]);l<s&&(s=l,i=n)}return{index:i}}},{key:"isXoverlap",value:function(e){var t=[],r=this.w.globals.seriesX.filter(function(s){return s[0]!==void 0});if(r.length>0)for(var i=0;i<r.length-1;i++)r[i][e]!==void 0&&r[i+1][e]!==void 0&&r[i][e]!==r[i+1][e]&&t.push("unEqual");return t.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,r=0;r<t.length-1;r++)if(t[r].data.length!==t[r+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return Z(e).reduce(function(t,r){return t+r.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return typeof e=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=Z(e)).sort(function(r,i){var s=Number(r.getAttribute("data:realIndex")),n=Number(i.getAttribute("data:realIndex"));return n<s?1:n>s?-1:0});var t=[];return e.forEach(function(r){t.push(r.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,r=t.config.markers.hover.size;return r===void 0&&(r=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),r}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,r=this.ttCtx;r.allTooltipSeriesGroups.length===0&&(r.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var i=r.allTooltipSeriesGroups,s=0;s<i.length;s++)e==="enable"?(i[s].classList.add("apexcharts-active"),i[s].style.display=t.config.tooltip.items.display):(i[s].classList.remove("apexcharts-active"),i[s].style.display="none")}}]),E}(),xo=function(){function E(e){m(this,E),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new Ei(e)}return w(E,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,r=t===void 0||t,i=e.ttItems,s=e.i,n=s===void 0?0:s,l=e.j,h=l===void 0?null:l,f=e.y1,p=e.y2,x=e.e,b=this.w;b.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:n,j:h,y1:f,y2:p,w:b}):this.toggleActiveInactiveSeries(r);var y=this.getValuesToPrint({i:n,j:h});this.printLabels({i:n,j:h,values:y,ttItems:i,shared:r,e:x});var C=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=C.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=C.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,r=this,i=e.i,s=e.j,n=e.values,l=e.ttItems,h=e.shared,f=e.e,p=this.w,x=[],b=function(M){return p.globals.seriesGoals[M]&&p.globals.seriesGoals[M][s]&&Array.isArray(p.globals.seriesGoals[M][s])},y=n.xVal,C=n.zVal,z=n.xAxisTTVal,L="",R=p.globals.colors[i];s!==null&&p.config.plotOptions.bar.distributed&&(R=p.globals.colors[s]);for(var _=function(M,P){var B=r.getFormatters(i);L=r.getSeriesName({fn:B.yLbTitleFormatter,index:i,seriesIndex:i,j:s}),p.config.chart.type==="treemap"&&(L=B.yLbTitleFormatter(String(p.config.series[i].data[s].x),{series:p.globals.series,seriesIndex:i,dataPointIndex:s,w:p}));var N=p.config.tooltip.inverseOrder?P:M;if(p.globals.axisCharts){var W=function(ie){var te,ce,me,Le;return p.globals.isRangeData?B.yLbFormatter((te=p.globals.seriesRangeStart)===null||te===void 0||(ce=te[ie])===null||ce===void 0?void 0:ce[s],{series:p.globals.seriesRangeStart,seriesIndex:ie,dataPointIndex:s,w:p})+" - "+B.yLbFormatter((me=p.globals.seriesRangeEnd)===null||me===void 0||(Le=me[ie])===null||Le===void 0?void 0:Le[s],{series:p.globals.seriesRangeEnd,seriesIndex:ie,dataPointIndex:s,w:p}):B.yLbFormatter(p.globals.series[ie][s],{series:p.globals.series,seriesIndex:ie,dataPointIndex:s,w:p})};if(h)B=r.getFormatters(N),L=r.getSeriesName({fn:B.yLbTitleFormatter,index:N,seriesIndex:i,j:s}),R=p.globals.colors[N],t=W(N),b(N)&&(x=p.globals.seriesGoals[N][s].map(function(ie){return{attrs:ie,val:B.yLbFormatter(ie.value,{seriesIndex:N,dataPointIndex:s,w:p})}}));else{var G,Q=f==null||(G=f.target)===null||G===void 0?void 0:G.getAttribute("fill");Q&&(R=Q.indexOf("url")!==-1?document.querySelector(Q.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):Q),t=W(i),b(i)&&Array.isArray(p.globals.seriesGoals[i][s])&&(x=p.globals.seriesGoals[i][s].map(function(ie){return{attrs:ie,val:B.yLbFormatter(ie.value,{seriesIndex:i,dataPointIndex:s,w:p})}}))}}s===null&&(t=B.yLbFormatter(p.globals.series[i],u(u({},p),{},{seriesIndex:i,dataPointIndex:i}))),r.DOMHandling({i,t:N,j:s,ttItems:l,values:{val:t,goalVals:x,xVal:y,xAxisTTVal:z,zVal:C},seriesName:L,shared:h,pColor:R})},d=0,v=p.globals.series.length-1;d<p.globals.series.length;d++,v--)_(d,v)}},{key:"getFormatters",value:function(e){var t,r=this.w,i=r.globals.yLabelFormatters[e];return r.globals.ttVal!==void 0?Array.isArray(r.globals.ttVal)?(i=r.globals.ttVal[e]&&r.globals.ttVal[e].formatter,t=r.globals.ttVal[e]&&r.globals.ttVal[e].title&&r.globals.ttVal[e].title.formatter):(i=r.globals.ttVal.formatter,typeof r.globals.ttVal.title.formatter=="function"&&(t=r.globals.ttVal.title.formatter)):t=r.config.tooltip.y.title.formatter,typeof i!="function"&&(i=r.globals.yLabelFormatters[0]?r.globals.yLabelFormatters[0]:function(s){return s}),typeof t!="function"&&(t=function(s){return s}),{yLbFormatter:i,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,r=e.index,i=e.seriesIndex,s=e.j,n=this.w;return t(String(n.globals.seriesNames[r]),{series:n.globals.series,seriesIndex:i,dataPointIndex:s,w:n})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,r=e.j,i=e.ttItems,s=e.values,n=e.seriesName,l=e.shared,h=e.pColor,f=this.w,p=this.ttCtx,x=s.val,b=s.goalVals,y=s.xVal,C=s.xAxisTTVal,z=s.zVal,L=null;L=i[t].children,f.config.tooltip.fillSeriesColor&&(i[t].style.backgroundColor=h,L[0].style.display="none"),p.showTooltipTitle&&(p.tooltipTitle===null&&(p.tooltipTitle=f.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),p.tooltipTitle.innerHTML=y),p.isXAxisTooltipEnabled&&(p.xaxisTooltipText.innerHTML=C!==""?C:y);var R=i[t].querySelector(".apexcharts-tooltip-text-y-label");R&&(R.innerHTML=n||"");var _=i[t].querySelector(".apexcharts-tooltip-text-y-value");_&&(_.innerHTML=x!==void 0?x:""),L[0]&&L[0].classList.contains("apexcharts-tooltip-marker")&&(f.config.tooltip.marker.fillColors&&Array.isArray(f.config.tooltip.marker.fillColors)&&(h=f.config.tooltip.marker.fillColors[t]),L[0].style.backgroundColor=h),f.config.tooltip.marker.show||(L[0].style.display="none");var d=i[t].querySelector(".apexcharts-tooltip-text-goals-label"),v=i[t].querySelector(".apexcharts-tooltip-text-goals-value");if(b.length&&f.globals.seriesGoals[t]){var M=function(){var P="<div >",B="<div>";b.forEach(function(N,W){P+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(N.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(N.attrs.name,"</div>"),B+="<div>".concat(N.val,"</div>")}),d.innerHTML=P+"</div>",v.innerHTML=B+"</div>"};l?f.globals.seriesGoals[t][r]&&Array.isArray(f.globals.seriesGoals[t][r])?M():(d.innerHTML="",v.innerHTML=""):M()}else d.innerHTML="",v.innerHTML="";z!==null&&(i[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=f.config.tooltip.z.title,i[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=z!==void 0?z:""),l&&L[0]&&(x==null||f.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||f.globals.collapsedSeriesIndices.indexOf(t)>-1?L[0].parentNode.style.display="none":L[0].parentNode.style.display=f.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var r=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");r&&(r.classList.add("apexcharts-active"),r.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,r=e.j,i=this.w,s=this.ctx.series.filteredSeriesX(),n="",l="",h=null,f=null,p={series:i.globals.series,seriesIndex:t,dataPointIndex:r,w:i},x=i.globals.ttZFormatter;r===null?f=i.globals.series[t]:i.globals.isXNumeric&&i.config.chart.type!=="treemap"?(n=s[t][r],s[t].length===0&&(n=s[this.tooltipUtil.getFirstActiveXArray(s)][r])):n=i.globals.labels[r]!==void 0?i.globals.labels[r]:"";var b=n;return i.globals.isXNumeric&&i.config.xaxis.type==="datetime"?n=new Me(this.ctx).xLabelFormat(i.globals.ttKeyFormatter,b,b,{i:void 0,dateFormatter:new ne(this.ctx).formatDate,w:this.w}):n=i.globals.isBarHorizontal?i.globals.yLabelFormatters[0](b,p):i.globals.xLabelFormatter(b,p),i.config.tooltip.x.formatter!==void 0&&(n=i.globals.ttKeyFormatter(b,p)),i.globals.seriesZ.length>0&&i.globals.seriesZ[t].length>0&&(h=x(i.globals.seriesZ[t][r],i)),l=typeof i.config.xaxis.tooltip.formatter=="function"?i.globals.xaxisTooltipFormatter(b,p):n,{val:Array.isArray(f)?f.join(" "):f,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(l)?l.join(" "):l,zVal:h}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,r=e.j,i=e.y1,s=e.y2,n=e.w,l=this.ttCtx.getElTooltip(),h=n.config.tooltip.custom;Array.isArray(h)&&h[t]&&(h=h[t]),l.innerHTML=h({ctx:this.ctx,series:n.globals.series,seriesIndex:t,dataPointIndex:r,y1:i,y2:s,w:n})}}]),E}(),Di=function(){function E(e){m(this,E),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return w(E,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=this.ttCtx,i=this.w,s=r.getElXCrosshairs(),n=e-r.xcrosshairsWidth/2,l=i.globals.labels.slice().length;if(t!==null&&(n=i.globals.gridWidth/l*t),s===null||i.globals.isBarHorizontal||(s.setAttribute("x",n),s.setAttribute("x1",n),s.setAttribute("x2",n),s.setAttribute("y2",i.globals.gridHeight),s.classList.add("apexcharts-active")),n<0&&(n=0),n>i.globals.gridWidth&&(n=i.globals.gridWidth),r.isXAxisTooltipEnabled){var h=n;i.config.xaxis.crosshairs.width!=="tickWidth"&&i.config.xaxis.crosshairs.width!=="barWidth"||(h=n+r.xcrosshairsWidth/2),this.moveXAxisTooltip(h)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&U.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&U.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,r=this.ttCtx;if(r.xaxisTooltip!==null&&r.xcrosshairsWidth!==0){r.xaxisTooltip.classList.add("apexcharts-active");var i=r.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=r.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=t.globals.translateX;var s;s=new U(this.ctx).getTextRects(r.xaxisTooltipText.innerHTML),r.xaxisTooltipText.style.minWidth=s.width+"px",r.xaxisTooltip.style.left=e+"px",r.xaxisTooltip.style.top=i+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,r=this.ttCtx;r.yaxisTTEls===null&&(r.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var i=parseInt(r.ycrosshairsHidden.getAttribute("y1"),10),s=t.globals.translateY+i,n=r.yaxisTTEls[e].getBoundingClientRect().height,l=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(l-=26),s-=n/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1?(r.yaxisTTEls[e].classList.add("apexcharts-active"),r.yaxisTTEls[e].style.top=s+"px",r.yaxisTTEls[e].style.left=l+t.config.yaxis[e].tooltip.offsetX+"px"):r.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=this.w,s=this.ttCtx,n=s.getElTooltip(),l=s.tooltipRect,h=r!==null?parseFloat(r):1,f=parseFloat(e)+h+5,p=parseFloat(t)+h/2;if(f>i.globals.gridWidth/2&&(f=f-l.ttWidth-h-10),f>i.globals.gridWidth-l.ttWidth-10&&(f=i.globals.gridWidth-l.ttWidth),f<-20&&(f=-20),i.config.tooltip.followCursor){var x=s.getElGrid().getBoundingClientRect();(f=s.e.clientX-x.left)>i.globals.gridWidth/2&&(f-=s.tooltipRect.ttWidth),(p=s.e.clientY+i.globals.translateY-x.top)>i.globals.gridHeight/2&&(p-=s.tooltipRect.ttHeight)}else i.globals.isBarHorizontal||l.ttHeight/2+p>i.globals.gridHeight&&(p=i.globals.gridHeight-l.ttHeight+i.globals.translateY);isNaN(f)||(f+=i.globals.translateX,n.style.left=f+"px",n.style.top=p+"px")}},{key:"moveMarkers",value:function(e,t){var r=this.w,i=this.ttCtx;if(r.globals.markers.size[e]>0)for(var s=r.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),n=0;n<s.length;n++)parseInt(s[n].getAttribute("rel"),10)===t&&(i.marker.resetPointsSize(),i.marker.enlargeCurrentPoint(t,s[n]));else i.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var r,i,s=this.w,n=this.ttCtx,l=s.globals.pointsArray,h=n.tooltipUtil.getHoverMarkerSize(t),f=s.config.series[t].type;if(!f||f!=="column"&&f!=="candlestick"&&f!=="boxPlot"){r=l[t][e][0],i=l[t][e][1]?l[t][e][1]:0;var p=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));p&&i<s.globals.gridHeight&&i>0&&(p.setAttribute("r",h),p.setAttribute("cx",r),p.setAttribute("cy",i)),this.moveXCrosshairs(r),n.fixedTooltip||this.moveTooltip(r,i,h)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,r=this.ttCtx,i=r.w,s=0,n=0,l=i.globals.pointsArray;t=new ze(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var h=r.tooltipUtil.getHoverMarkerSize(t);l[t]&&(s=l[t][e][0],n=l[t][e][1]);var f=r.tooltipUtil.getAllMarkers();if(f!==null)for(var p=0;p<i.globals.series.length;p++){var x=l[p];if(i.globals.comboCharts&&x===void 0&&f.splice(p,0,null),x&&x.length){var b=l[p][e][1],y=void 0;if(f[p].setAttribute("cx",s),i.config.chart.type==="rangeArea"&&!i.globals.comboCharts){var C=e+i.globals.series[p].length;y=l[p][C][1],b-=Math.abs(b-y)/2}b!==null&&!isNaN(b)&&b<i.globals.gridHeight+h&&b+h>0?(f[p]&&f[p].setAttribute("r",h),f[p]&&f[p].setAttribute("cy",b)):f[p]&&f[p].setAttribute("r",0)}}this.moveXCrosshairs(s),r.fixedTooltip||this.moveTooltip(s,n||i.globals.gridHeight,h)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var r=this.w,i=this.ttCtx,s=r.globals.columnSeries?r.globals.columnSeries.length:r.globals.series.length,n=s>=2&&s%2==0?Math.floor(s/2):Math.floor(s/2)+1;r.globals.isBarHorizontal&&(n=new ze(this.ctx).getActiveConfigSeriesIndex("desc")+1);var l=r.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(n,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"']"));l||typeof t!="number"||(l=r.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,`'],
|
|
127
|
+
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'],
|
|
128
|
+
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'],
|
|
129
|
+
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,"']")));var h=l?parseFloat(l.getAttribute("cx")):0,f=l?parseFloat(l.getAttribute("cy")):0,p=l?parseFloat(l.getAttribute("barWidth")):0,x=i.getElGrid().getBoundingClientRect(),b=l&&(l.classList.contains("apexcharts-candlestick-area")||l.classList.contains("apexcharts-boxPlot-area"));r.globals.isXNumeric?(l&&!b&&(h-=s%2!=0?p/2:0),l&&b&&r.globals.comboCharts&&(h-=p/2)):r.globals.isBarHorizontal||(h=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(h)&&(h=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),r.globals.isBarHorizontal?f-=i.tooltipRect.ttHeight:r.config.tooltip.followCursor?f=i.e.clientY-x.top-i.tooltipRect.ttHeight/2:f+i.tooltipRect.ttHeight+15>r.globals.gridHeight&&(f=r.globals.gridHeight),r.globals.isBarHorizontal||this.moveXCrosshairs(h),i.fixedTooltip||this.moveTooltip(h,f||r.globals.gridHeight)}}]),E}(),bo=function(){function E(e){m(this,E),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Di(e)}return w(E,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new U(this.ctx),r=new ct(this.ctx),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");i=Z(i),e.config.chart.stacked&&i.sort(function(x,b){return parseFloat(x.getAttribute("data:realIndex"))-parseFloat(b.getAttribute("data:realIndex"))});for(var s=0;s<i.length;s++){var n=i[s].querySelector(".apexcharts-series-markers-wrap");if(n!==null){var l=void 0,h="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));e.config.chart.type!=="line"&&e.config.chart.type!=="area"||e.globals.comboCharts||e.config.tooltip.intersect||(h+=" no-pointer-events");var f=r.getMarkerConfig({cssClass:h,seriesIndex:Number(n.getAttribute("data:realIndex"))});(l=t.drawMarker(0,0,f)).node.setAttribute("default-marker-size",0);var p=document.createElementNS(e.globals.SVGNS,"g");p.classList.add("apexcharts-series-markers"),p.appendChild(l.node),n.appendChild(p)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w;s.config.chart.type!=="bubble"&&this.newPointSize(e,t);var n=t.getAttribute("cx"),l=t.getAttribute("cy");if(r!==null&&i!==null&&(n=r,l=i),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if(s.config.chart.type==="radar"){var h=this.ttCtx.getElGrid().getBoundingClientRect();n=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(n,l,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,r=this,i=this.ttCtx,s=e,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),l=t.config.markers.hover.size,h=0;h<n.length;h++){var f=n[h].getAttribute("rel"),p=n[h].getAttribute("index");if(l===void 0&&(l=t.globals.markers.size[p]+t.config.markers.hover.sizeOffset),s===parseInt(f,10)){r.newPointSize(s,n[h]);var x=n[h].getAttribute("cx"),b=n[h].getAttribute("cy");r.tooltipPosition.moveXCrosshairs(x),i.fixedTooltip||r.tooltipPosition.moveTooltip(x,b,l)}else r.oldPointSize(n[h])}}},{key:"newPointSize",value:function(e,t){var r=this.w,i=r.config.markers.hover.size,s=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(s.getAttribute("default-marker-size")!=="0"){var n=parseInt(s.getAttribute("index"),10);i===void 0&&(i=r.globals.markers.size[n]+r.config.markers.hover.sizeOffset),i<0&&(i=0),s.setAttribute("r",i)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size"));e.setAttribute("r",t)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var r=parseFloat(e[t].getAttribute("default-marker-size"));O.isNumber(r)&&r>=0?e[t].setAttribute("r",r):e[t].setAttribute("r",0)}}}]),E}(),vo=function(){function E(e){m(this,E),this.w=e.w;var t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&t.config.chart.type==="rangeBar"&&t.config.plotOptions.bar.rangeBarGroupRows}return w(E,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,r=e.opt,i=e.x,s=e.y,n=e.type,l=this.ttCtx,h=this.w;if(t.target.classList.contains("apexcharts-".concat(n,"-rect"))){var f=this.getAttr(t,"i"),p=this.getAttr(t,"j"),x=this.getAttr(t,"cx"),b=this.getAttr(t,"cy"),y=this.getAttr(t,"width"),C=this.getAttr(t,"height");if(l.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:f,j:p,shared:!1,e:t}),h.globals.capturedSeriesIndex=f,h.globals.capturedDataPointIndex=p,i=x+l.tooltipRect.ttWidth/2+y,s=b+l.tooltipRect.ttHeight/2-C/2,l.tooltipPosition.moveXCrosshairs(x+y/2),i>h.globals.gridWidth/2&&(i=x-l.tooltipRect.ttWidth/2+y),l.w.config.tooltip.followCursor){var z=h.globals.dom.elWrap.getBoundingClientRect();i=h.globals.clientX-z.left-(i>h.globals.gridWidth/2?l.tooltipRect.ttWidth:0),s=h.globals.clientY-z.top-(s>h.globals.gridHeight/2?l.tooltipRect.ttHeight:0)}}return{x:i,y:s}}},{key:"handleMarkerTooltip",value:function(e){var t,r,i=e.e,s=e.opt,n=e.x,l=e.y,h=this.w,f=this.ttCtx;if(i.target.classList.contains("apexcharts-marker")){var p=parseInt(s.paths.getAttribute("cx"),10),x=parseInt(s.paths.getAttribute("cy"),10),b=parseFloat(s.paths.getAttribute("val"));if(r=parseInt(s.paths.getAttribute("rel"),10),t=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,f.intersect){var y=O.findAncestor(s.paths,"apexcharts-series");y&&(t=parseInt(y.getAttribute("data:realIndex"),10))}if(f.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:t,j:r,shared:!f.showOnIntersect&&h.config.tooltip.shared,e:i}),i.type==="mouseup"&&f.markerClick(i,t,r),h.globals.capturedSeriesIndex=t,h.globals.capturedDataPointIndex=r,n=p,l=x+h.globals.translateY-1.4*f.tooltipRect.ttHeight,f.w.config.tooltip.followCursor){var C=f.getElGrid().getBoundingClientRect();l=f.e.clientY+h.globals.translateY-C.top}b<0&&(l=x),f.marker.enlargeCurrentPoint(r,s.paths,n,l)}return{x:n,y:l}}},{key:"handleBarTooltip",value:function(e){var t,r,i=e.e,s=e.opt,n=this.w,l=this.ttCtx,h=l.getElTooltip(),f=0,p=0,x=0,b=this.getBarTooltipXY({e:i,opt:s});t=b.i;var y=b.barHeight,C=b.j;n.globals.capturedSeriesIndex=t,n.globals.capturedDataPointIndex=C,n.globals.isBarHorizontal&&l.tooltipUtil.hasBars()||!n.config.tooltip.shared?(p=b.x,x=b.y,r=Array.isArray(n.config.stroke.width)?n.config.stroke.width[t]:n.config.stroke.width,f=p):n.globals.comboCharts||n.config.tooltip.shared||(f/=2),isNaN(x)&&(x=n.globals.svgHeight-l.tooltipRect.ttHeight);var z=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),L=n.globals.isMultipleYAxis?n.config.yaxis[z]&&n.config.yaxis[z].reversed:n.config.yaxis[0].reversed;if(p+l.tooltipRect.ttWidth>n.globals.gridWidth&&!L?p-=l.tooltipRect.ttWidth:p<0&&(p=0),l.w.config.tooltip.followCursor){var R=l.getElGrid().getBoundingClientRect();x=l.e.clientY-R.top}l.tooltip===null&&(l.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?l.tooltipPosition.moveXCrosshairs(f+r/2):l.tooltipPosition.moveXCrosshairs(f)),!l.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&l.tooltipUtil.hasBars())&&(L&&(p-=l.tooltipRect.ttWidth)<0&&(p=0),!L||n.globals.isBarHorizontal&&l.tooltipUtil.hasBars()||(x=x+y-2*(n.globals.series[t][C]<0?y:0)),x=x+n.globals.translateY-l.tooltipRect.ttHeight/2,h.style.left=p+n.globals.translateX+"px",h.style.top=x+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,r=e.e,i=e.opt,s=this.w,n=null,l=this.ttCtx,h=0,f=0,p=0,x=0,b=0,y=r.target.classList;if(y.contains("apexcharts-bar-area")||y.contains("apexcharts-candlestick-area")||y.contains("apexcharts-boxPlot-area")||y.contains("apexcharts-rangebar-area")){var C=r.target,z=C.getBoundingClientRect(),L=i.elGrid.getBoundingClientRect(),R=z.height;b=z.height;var _=z.width,d=parseInt(C.getAttribute("cx"),10),v=parseInt(C.getAttribute("cy"),10);x=parseFloat(C.getAttribute("barWidth"));var M=r.type==="touchmove"?r.touches[0].clientX:r.clientX;n=parseInt(C.getAttribute("j"),10),h=parseInt(C.parentNode.getAttribute("rel"),10)-1;var P=C.getAttribute("data-range-y1"),B=C.getAttribute("data-range-y2");s.globals.comboCharts&&(h=parseInt(C.parentNode.getAttribute("data:realIndex"),10));var N=function(G){return s.globals.isXNumeric?d-_/2:t.isVerticalGroupedRangeBar?d+_/2:d-l.dataPointsDividedWidth+_/2},W=function(){return v-l.dataPointsDividedHeight+R/2-l.tooltipRect.ttHeight/2};l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:h,j:n,y1:P?parseInt(P,10):null,y2:B?parseInt(B,10):null,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:r}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(f=M-L.left+15,p=W()):(f=N(),p=r.clientY-L.top-l.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?((f=d)<l.xyRatios.baseLineInvertedY&&(f=d-l.tooltipRect.ttWidth),p=W()):(f=N(),p=v)}return{x:f,y:p,barHeight:b,barWidth:x,i:h,j:n}}}]),E}(),yo=function(){function E(e){m(this,E),this.w=e.w,this.ttCtx=e}return w(E,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,r=e.config.xaxis.position==="bottom";t.xaxisOffY=r?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var i=r?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",s=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,r=function(s){var n=e.config.yaxis[s].opposite||e.config.yaxis[s].crosshairs.opposite;t.yaxisOffX=n?e.globals.gridWidth+1:1;var l="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(s,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");e.globals.yAxisSameScaleIndices.map(function(f,p){f.map(function(x,b){b===s&&(l+=e.config.yaxis[b].show?" ":" apexcharts-yaxistooltip-hidden")})});var h=e.globals.dom.elWrap;e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(s))===null&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",l+" apexcharts-theme-"+e.config.tooltip.theme),h.appendChild(t.yaxisTooltip),s===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[s]=document.createElement("div"),t.yaxisTooltipText[s].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[s]))},i=0;i<e.config.yaxis.length;i++)r(i)}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,r=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var i=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(i!==null&&e.config.xaxis.crosshairs.width==="barWidth"){var s=parseFloat(i.getAttribute("barWidth"));t.xcrosshairsWidth=s}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var n=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/n}}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var l=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/l}else if(e.config.xaxis.crosshairs.width==="barWidth"){var h=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(h!==null){var f=parseFloat(h.getAttribute("barWidth"));t.xcrosshairsWidth=f}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),r!==null&&t.xcrosshairsWidth>0&&r.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,r){var i=this.ttCtx,s=this.w,n=s.globals.yLabelFormatters[e];if(i.yaxisTooltips[e]){var l=i.getElGrid().getBoundingClientRect(),h=(t-l.top)*r.yRatio[e],f=s.globals.maxYArr[e]-s.globals.minYArr[e],p=s.globals.minYArr[e]+(f-h);i.tooltipPosition.moveYCrosshairs(t-l.top),i.yaxisTooltipText[e].innerHTML=n(p),i.tooltipPosition.moveYAxisTooltip(e)}}}]),E}(),Pi=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new Ei(this),this.tooltipLabels=new xo(this),this.tooltipPosition=new Di(this),this.marker=new bo(this),this.intersect=new vo(this),this.axesTooltip=new yo(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!t.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return w(E,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(n,l){return!!(n.show&&n.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var r=document.createElement("div");if(r.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&r.classList.add(t.config.tooltip.cssClass),r.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(r),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var i=new it(this.ctx);this.xAxisTicksPositions=i.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),t.config.markers.size!==0&&t.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,r.appendChild(this.tooltipTitle));var s=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,r=this.w,i=[],s=this.getElTooltip(),n=function(h){var f=document.createElement("div");f.classList.add("apexcharts-tooltip-series-group"),f.style.order=r.config.tooltip.inverseOrder?e-h:h+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(h)<0&&f.classList.add("apexcharts-tooltip-series-group-hidden");var p=document.createElement("span");p.classList.add("apexcharts-tooltip-marker"),p.style.backgroundColor=r.globals.colors[h],f.appendChild(p);var x=document.createElement("div");x.classList.add("apexcharts-tooltip-text"),x.style.fontFamily=t.tConfig.style.fontFamily||r.config.chart.fontFamily,x.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(b){var y=document.createElement("div");y.classList.add("apexcharts-tooltip-".concat(b,"-group"));var C=document.createElement("span");C.classList.add("apexcharts-tooltip-text-".concat(b,"-label")),y.appendChild(C);var z=document.createElement("span");z.classList.add("apexcharts-tooltip-text-".concat(b,"-value")),y.appendChild(z),x.appendChild(y)}),f.appendChild(x),s.appendChild(f),i.push(f)},l=0;l<e;l++)n(l);return i}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,r=this.getElTooltip(),i=!(t!=="bar"&&t!=="candlestick"&&t!=="boxPlot"&&t!=="rangeBar"),s=t==="area"||t==="line"||t==="scatter"||t==="bubble"||t==="radar",n=e.globals.dom.Paper.node,l=this.getElGrid();l&&(this.seriesBound=l.getBoundingClientRect());var h,f=[],p=[],x={hoverArea:n,elGrid:l,tooltipEl:r,tooltipY:f,tooltipX:p,ttItems:this.ttItems};if(e.globals.axisCharts&&(s?h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):t!=="heatmap"&&t!=="treemap"||(h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),h&&h.length))for(var b=0;b<h.length;b++)f.push(h[b].getAttribute("cy")),p.push(h[b].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([n],x);else if(i&&!e.globals.comboCharts||s&&this.showOnIntersect)this.addDatapointEventsListeners(x);else if(!e.globals.axisCharts||t==="heatmap"||t==="treemap"){var y=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(y,x)}if(this.showOnIntersect){var C=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");C.length>0&&this.addPathsEventListeners(C,x),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(x)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),r=t.getBoundingClientRect(),i=r.width+10,s=r.height+10,n=this.tConfig.fixed.offsetX,l=this.tConfig.fixed.offsetY,h=this.tConfig.fixed.position.toLowerCase();return h.indexOf("right")>-1&&(n=n+e.globals.svgWidth-i+10),h.indexOf("bottom")>-1&&(l=l+e.globals.svgHeight-s-10),t.style.left=n+"px",t.style.top=l+"px",{x:n,y:l,ttWidth:i,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var r=this,i=function(n){var l={paths:e[n],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(h){return e[n].addEventListener(h,r.onSeriesHover.bind(r,l),{capture:!1,passive:!0})})},s=0;s<e.length;s++)i(s)}},{key:"onSeriesHover",value:function(e,t){var r=this,i=Date.now()-this.lastHoverTime;i>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){r.seriesHover(e,t)},100-i))}},{key:"seriesHover",value:function(e,t){var r=this;this.lastHoverTime=Date.now();var i=[],s=this.w;s.config.chart.group&&(i=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||s.globals.dataPoints===0)||(i.length?i.forEach(function(n){var l=r.getElTooltip(n),h={paths:e.paths,tooltipEl:l,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===r.w.globals.minX&&n.w.globals.maxX===r.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:h,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,r=e.ttCtx,i=e.opt,s=e.e,n=t.w,l=this.getElTooltip();l&&(r.tooltipRect={x:0,y:0,ttWidth:l.getBoundingClientRect().width,ttHeight:l.getBoundingClientRect().height},r.e=s,r.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!r.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new ze(t).toggleSeriesOnHover(s,s.target.parentNode),r.fixedTooltip&&r.drawFixedTooltipRect(),n.globals.axisCharts?r.axisChartsTooltips({e:s,opt:i,tooltipRect:r.tooltipRect}):r.nonAxisChartsTooltips({e:s,opt:i,tooltipRect:r.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,r,i=e.e,s=e.opt,n=this.w,l=s.elGrid.getBoundingClientRect(),h=i.type==="touchmove"?i.touches[0].clientX:i.clientX,f=i.type==="touchmove"?i.touches[0].clientY:i.clientY;if(this.clientY=f,this.clientX=h,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,f<l.top||f>l.top+l.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var p=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(p)<0)return void this.handleMouseOut(s)}var x=this.getElTooltip(),b=this.getElXCrosshairs(),y=n.globals.xyCharts||n.config.chart.type==="bar"&&!n.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||n.globals.comboCharts&&this.tooltipUtil.hasBars();if(i.type==="mousemove"||i.type==="touchmove"||i.type==="mouseup"){if(n.globals.collapsedSeries.length+n.globals.ancillaryCollapsedSeries.length===n.globals.series.length)return;b!==null&&b.classList.add("apexcharts-active");var C=this.yaxisTooltips.filter(function(R){return R===!0});if(this.ycrosshairs!==null&&C.length&&this.ycrosshairs.classList.add("apexcharts-active"),y&&!this.showOnIntersect)this.handleStickyTooltip(i,h,f,s);else if(n.config.chart.type==="heatmap"||n.config.chart.type==="treemap"){var z=this.intersect.handleHeatTreeTooltip({e:i,opt:s,x:t,y:r,type:n.config.chart.type});t=z.x,r=z.y,x.style.left=t+"px",x.style.top=r+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:i,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:i,opt:s,x:t,y:r});if(this.yaxisTooltips.length)for(var L=0;L<n.config.yaxis.length;L++)this.axesTooltip.drawYaxisTooltipText(L,f,this.xyRatios);s.tooltipEl.classList.add("apexcharts-active")}else i.type!=="mouseout"&&i.type!=="touchend"||this.handleMouseOut(s)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,r=e.opt,i=e.tooltipRect,s=this.w,n=r.paths.getAttribute("rel"),l=this.getElTooltip(),h=s.globals.dom.elWrap.getBoundingClientRect();if(t.type==="mousemove"||t.type==="touchmove"){l.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:parseInt(n,10)-1,shared:!1});var f=s.globals.clientX-h.left-i.ttWidth/2,p=s.globals.clientY-h.top-i.ttHeight-10;if(l.style.left=f+"px",l.style.top=p+"px",s.config.legend.tooltipHoverFormatter){var x=n-1,b=(0,s.config.legend.tooltipHoverFormatter)(this.legendLabels[x].getAttribute("data:default-text"),{seriesIndex:x,dataPointIndex:x,w:s});this.legendLabels[x].innerHTML=b}}else t.type!=="mouseout"&&t.type!=="touchend"||(l.classList.remove("apexcharts-active"),s.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(y){var C=y.getAttribute("data:default-text");y.innerHTML=decodeURIComponent(C)}))}},{key:"handleStickyTooltip",value:function(e,t,r,i){var s=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:t,clientY:r}),l=n.j,h=n.capturedSeries;s.globals.collapsedSeriesIndices.includes(h)&&(h=null);var f=i.elGrid.getBoundingClientRect();if(n.hoverX<0||n.hoverX>f.width)this.handleMouseOut(i);else if(h!==null)this.handleStickyCapturedSeries(e,h,i,l);else if(this.tooltipUtil.isXoverlap(l)||s.globals.isBarHorizontal){var p=s.globals.series.findIndex(function(x,b){return!s.globals.collapsedSeriesIndices.includes(b)});this.create(e,this,p,l,i.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,r,i){var s=this.w;if(!this.tConfig.shared&&s.globals.series[t][i]===null)return void this.handleMouseOut(r);if(s.globals.series[t][i]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,i,r.ttItems):this.create(e,this,t,i,r.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){var n=s.globals.series.findIndex(function(l,h){return!s.globals.collapsedSeriesIndices.includes(h)});this.create(e,this,n,i,r.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new U(this.ctx),r=e.globals.dom.Paper.select(".apexcharts-bar-area"),i=0;i<r.length;i++)t.pathMouseLeave(r[i])}},{key:"handleMouseOut",value:function(e){var t=this.w,r=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),t.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),r!==null&&r.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var i=0;i<this.yaxisTTEls.length;i++)this.yaxisTTEls[i].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(s){var n=s.getAttribute("data:default-text");s.innerHTML=decodeURIComponent(n)})}},{key:"markerClick",value:function(e,t,r){var i=this.w;typeof i.config.chart.events.markerClick=="function"&&i.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:r,w:i}])}},{key:"create",value:function(e,t,r,i,s){var n,l,h,f,p,x,b,y,C,z,L,R,_,d,v,M,P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,B=this.w,N=t;e.type==="mouseup"&&this.markerClick(e,r,i),P===null&&(P=this.tConfig.shared);var W=this.tooltipUtil.hasMarkers(r),G=this.tooltipUtil.getElBars();if(B.config.legend.tooltipHoverFormatter){var Q=B.config.legend.tooltipHoverFormatter,ie=Array.from(this.legendLabels);ie.forEach(function(Ht){var Zt=Ht.getAttribute("data:default-text");Ht.innerHTML=decodeURIComponent(Zt)});for(var te=0;te<ie.length;te++){var ce=ie[te],me=parseInt(ce.getAttribute("i"),10),Le=decodeURIComponent(ce.getAttribute("data:default-text")),De=Q(Le,{seriesIndex:P?me:r,dataPointIndex:i,w:B});if(P)ce.innerHTML=B.globals.collapsedSeriesIndices.indexOf(me)<0?De:Le;else if(ce.innerHTML=me===r?De:Le,r===me)break}}var Ie=u(u({ttItems:s,i:r,j:i},((n=B.globals.seriesRange)===null||n===void 0||(l=n[r])===null||l===void 0||(h=l[i])===null||h===void 0||(f=h.y[0])===null||f===void 0?void 0:f.y1)!==void 0&&{y1:(p=B.globals.seriesRange)===null||p===void 0||(x=p[r])===null||x===void 0||(b=x[i])===null||b===void 0||(y=b.y[0])===null||y===void 0?void 0:y.y1}),((C=B.globals.seriesRange)===null||C===void 0||(z=C[r])===null||z===void 0||(L=z[i])===null||L===void 0||(R=L.y[0])===null||R===void 0?void 0:R.y2)!==void 0&&{y2:(_=B.globals.seriesRange)===null||_===void 0||(d=_[r])===null||d===void 0||(v=d[i])===null||v===void 0||(M=v.y[0])===null||M===void 0?void 0:M.y2});if(P){if(N.tooltipLabels.drawSeriesTexts(u(u({},Ie),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),W)B.globals.markers.largestSize>0?N.marker.enlargePoints(i):N.tooltipPosition.moveDynamicPointsOnHover(i);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(G),this.barSeriesHeight>0)){var Ve=new U(this.ctx),Oe=B.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(i,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(i,r);for(var $e=0;$e<Oe.length;$e++)Ve.pathMouseEnter(Oe[$e])}}else N.tooltipLabels.drawSeriesTexts(u({shared:!1},Ie)),this.tooltipUtil.hasBars()&&N.tooltipPosition.moveStickyTooltipOverBars(i,r),W&&N.tooltipPosition.moveMarkers(r,i)}}]),E}(),wo=function(){function E(e){m(this,E),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return w(E,[{key:"handleBarDataLabels",value:function(e){var t=e.x,r=e.y,i=e.y1,s=e.y2,n=e.i,l=e.j,h=e.realIndex,f=e.groupIndex,p=e.series,x=e.barHeight,b=e.barWidth,y=e.barXPosition,C=e.barYPosition,z=e.visibleSeries,L=e.renderedPath,R=this.w,_=new U(this.barCtx.ctx),d=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[h]:this.barCtx.strokeWidth,v=t+parseFloat(b*z),M=r+parseFloat(x*z);R.globals.isXNumeric&&!R.globals.isBarHorizontal&&(v=t+parseFloat(b*(z+1)),M=r+parseFloat(x*(z+1))-d);var P,B=null,N=t,W=r,G={},Q=R.config.dataLabels,ie=this.barCtx.barOptions.dataLabels,te=this.barCtx.barOptions.dataLabels.total;C!==void 0&&this.barCtx.isRangeBar&&(M=C,W=C),y!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(v=y,N=y);var ce=Q.offsetX,me=Q.offsetY,Le={width:0,height:0};if(R.config.dataLabels.enabled){var De=this.barCtx.series[n][l];Le=_.getTextRects(R.globals.yLabelFormatters[0](De),parseFloat(Q.style.fontSize))}var Ie={x:t,y:r,i:n,j:l,realIndex:h,groupIndex:f||-1,renderedPath:L,bcx:v,bcy:M,barHeight:x,barWidth:b,textRects:Le,strokeWidth:d,dataLabelsX:N,dataLabelsY:W,dataLabelsConfig:Q,barDataLabelsConfig:ie,barTotalDataLabelsConfig:te,offX:ce,offY:me};return G=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(Ie):this.calculateColumnsDataLabelsPosition(Ie),L.attr({cy:G.bcy,cx:G.bcx,j:l,val:p[n][l],barHeight:x,barWidth:b}),P=this.drawCalculatedDataLabels({x:G.dataLabelsX,y:G.dataLabelsY,val:this.barCtx.isRangeBar?[i,s]:p[n][l],i:h,j:l,barWidth:b,barHeight:x,textRects:Le,dataLabelsConfig:Q}),R.config.chart.stacked&&te.enabled&&(B=this.drawTotalDataLabels({x:G.totalDataLabelsX,y:G.totalDataLabelsY,realIndex:h,textAnchor:G.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:h,j:l}),dataLabelsConfig:Q,barTotalDataLabelsConfig:te})),{dataLabels:P,totalDataLabels:B}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,r=e.j,i=this.w,s=this.barCtx.stackedSeriesTotals[r];return this.totalFormatter&&(s=this.totalFormatter(s,u(u({},i),{},{seriesIndex:t,dataPointIndex:r,w:i}))),s}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,r,i=this.w,s=e.i,n=e.j,l=e.realIndex,h=e.groupIndex,f=e.y,p=e.bcx,x=e.barWidth,b=e.barHeight,y=e.textRects,C=e.dataLabelsX,z=e.dataLabelsY,L=e.dataLabelsConfig,R=e.barDataLabelsConfig,_=e.barTotalDataLabelsConfig,d=e.strokeWidth,v=e.offX,M=e.offY;b=Math.abs(b);var P=i.config.plotOptions.bar.dataLabels.orientation==="vertical";p=p-d/2+(h!==-1?h*x:0);var B=i.globals.gridWidth/i.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?C+=x/2:C=i.globals.isXNumeric?p-x/2+v:p-B+x/2+v,P&&(C=C+y.height/2-d/2-2);var N=this.barCtx.series[s][n]<0,W=f;switch(this.barCtx.isReversed&&(W=f-b+(N?2*b:0),f-=b),R.position){case"center":z=P?N?W+b/2+M:W+b/2-M:N?W-b/2+y.height/2+M:W+b/2+y.height/2-M;break;case"bottom":z=P?N?W+b+M:W+b-M:N?W-b+y.height+d+M:W+b-y.height/2+d-M;break;case"top":z=P?N?W+M:W-M:N?W-y.height/2-M:W+y.height+M}if(this.barCtx.lastActiveBarSerieIndex===l&&_.enabled){var G=new U(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:l,j:n}),L.fontSize);t=N?W-G.height/2-M-_.offsetY+18:W+G.height+M+_.offsetY-18,r=C+_.offsetX}return i.config.chart.stacked||(z<0?z=0+d:z+y.height/3>i.globals.gridHeight&&(z=i.globals.gridHeight-d)),{bcx:p,bcy:f,dataLabelsX:C,dataLabelsY:z,totalDataLabelsX:r,totalDataLabelsY:t,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,r=e.x,i=e.i,s=e.j,n=e.realIndex,l=e.groupIndex,h=e.bcy,f=e.barHeight,p=e.barWidth,x=e.textRects,b=e.dataLabelsX,y=e.strokeWidth,C=e.dataLabelsConfig,z=e.barDataLabelsConfig,L=e.barTotalDataLabelsConfig,R=e.offX,_=e.offY,d=t.globals.gridHeight/t.globals.dataPoints;p=Math.abs(p);var v,M,P=(h+=l!==-1?l*f:0)-(this.barCtx.isRangeBar?0:d)+f/2+x.height/2+_-3,B="start",N=this.barCtx.series[i][s]<0,W=r;switch(this.barCtx.isReversed&&(W=r+p-(N?2*p:0),r=t.globals.gridWidth-p),z.position){case"center":b=N?W+p/2-R:Math.max(x.width/2,W-p/2)+R;break;case"bottom":b=N?W+p-y-Math.round(x.width/2)-R:W-p+y+Math.round(x.width/2)+R;break;case"top":b=N?W-y+Math.round(x.width/2)-R:W-y-Math.round(x.width/2)+R}if(this.barCtx.lastActiveBarSerieIndex===n&&L.enabled){var G=new U(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:s}),C.fontSize);N?(v=W-y+Math.round(G.width/2)-R-L.offsetX-15,B="end"):v=W-y-Math.round(G.width/2)+R+L.offsetX+15,M=P+L.offsetY}return t.config.chart.stacked||(b<0?b=b+x.width+y:b+x.width/2>t.globals.gridWidth&&(b=t.globals.gridWidth-x.width-y)),{bcx:r,bcy:h,dataLabelsX:b,dataLabelsY:P,totalDataLabelsX:v,totalDataLabelsY:M,totalDataLabelsAnchor:B}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,r=e.y,i=e.val,s=e.i,n=e.j,l=e.textRects,h=e.barHeight,f=e.barWidth,p=e.dataLabelsConfig,x=this.w,b="rotate(0)";x.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(b="rotate(-90, ".concat(t,", ").concat(r,")"));var y=new pe(this.barCtx.ctx),C=new U(this.barCtx.ctx),z=p.formatter,L=null,R=x.globals.collapsedSeriesIndices.indexOf(s)>-1;if(p.enabled&&!R){L=C.group({class:"apexcharts-data-labels",transform:b});var _="";i!==void 0&&(_=z(i,u(u({},x),{},{seriesIndex:s,dataPointIndex:n,w:x}))),!i&&x.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(_="");var d=x.globals.series[s][n]<0,v=x.config.plotOptions.bar.dataLabels.position;x.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(v==="top"&&(p.textAnchor=d?"end":"start"),v==="center"&&(p.textAnchor="middle"),v==="bottom"&&(p.textAnchor=d?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&f<C.getTextRects(_,parseFloat(p.style.fontSize)).width&&(_=""),x.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?l.width/1.6>Math.abs(f)&&(_=""):l.height/1.6>Math.abs(h)&&(_=""));var M=u({},p);this.barCtx.isHorizontal&&i<0&&(p.textAnchor==="start"?M.textAnchor="end":p.textAnchor==="end"&&(M.textAnchor="start")),y.plotDataLabelsText({x:t,y:r,text:_,i:s,j:n,parent:L,dataLabelsConfig:M,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return L}},{key:"drawTotalDataLabels",value:function(e){var t,r=e.x,i=e.y,s=e.val,n=e.realIndex,l=e.textAnchor,h=e.barTotalDataLabelsConfig,f=new U(this.barCtx.ctx);return h.enabled&&r!==void 0&&i!==void 0&&this.barCtx.lastActiveBarSerieIndex===n&&(t=f.drawText({x:r,y:i,foreColor:h.style.color,text:s,textAnchor:l,fontFamily:h.style.fontFamily,fontSize:h.style.fontSize,fontWeight:h.style.fontWeight})),t}}]),E}(),ko=function(){function E(e){m(this,E),this.w=e.w,this.barCtx=e}return w(E,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var r=0;r<e.length;r++)if(e[r].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[r].length),t.globals.isXNumeric)for(var i=0;i<e[r].length;i++)t.globals.seriesX[r][i]>t.globals.minX&&t.globals.seriesX[r][i]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,r,i,s,n,l,h,f=this.w,p=f.globals.dataPoints;this.barCtx.isRangeBar&&(p=f.globals.labels.length);var x=this.barCtx.seriesLen;if(f.config.plotOptions.bar.rangeBarGroupRows&&(x=1),this.barCtx.isHorizontal)s=(r=f.globals.gridHeight/p)/x,f.globals.isXNumeric&&(s=(r=f.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),s=s*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(s=parseInt(this.barCtx.barOptions.barHeight,10)),h=this.barCtx.baseLineInvertedY+f.globals.padHorizontal+(this.barCtx.isReversed?f.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(h=f.globals.gridWidth/2),t=(r-s*this.barCtx.seriesLen)/2;else{if(i=f.globals.gridWidth/this.barCtx.visibleItems,f.config.xaxis.convertedCatToNumeric&&(i=f.globals.gridWidth/f.globals.dataPoints),n=i/x*parseInt(this.barCtx.barOptions.columnWidth,10)/100,f.globals.isXNumeric){var b=this.barCtx.xRatio;f.config.xaxis.convertedCatToNumeric&&(b=this.barCtx.initialXRatio),f.globals.minXDiff&&f.globals.minXDiff!==.5&&f.globals.minXDiff/b>0&&(i=f.globals.minXDiff/b),(n=i/x*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(n=parseInt(this.barCtx.barOptions.columnWidth,10)),l=f.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?f.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=f.globals.padHorizontal+(i-n*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:r,xDivision:i,barHeight:s,barWidth:n,zeroH:l,zeroW:h}}},{key:"initializeStackedPrevVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach(function(r){e[r]||(e[r]={}),e[r].prevY=[],e[r].prevX=[],e[r].prevYF=[],e[r].prevXF=[],e[r].prevYVal=[],e[r].prevXVal=[]}):(e.prevY=[],e.prevX=[],e.prevYF=[],e.prevXF=[],e.prevYVal=[],e.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach(function(r){e[r]||(e[r]={}),e[r].xArrj=[],e[r].xArrjF=[],e[r].xArrjVal=[],e[r].yArrj=[],e[r].yArrjF=[],e[r].yArrjVal=[]}):(e.xArrj=[],e.xArrjF=[],e.xArrjVal=[],e.yArrj=[],e.yArrjF=[],e.yArrjVal=[])}},{key:"getPathFillColor",value:function(e,t,r,i){var s,n,l,h,f=this.w,p=new Ne(this.barCtx.ctx),x=null,b=this.barCtx.barOptions.distributed?r:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(y){e[t][r]>=y.from&&e[t][r]<=y.to&&(x=y.color)}),f.config.series[t].data[r]&&f.config.series[t].data[r].fillColor&&(x=f.config.series[t].data[r].fillColor),p.fillPath({seriesNumber:this.barCtx.barOptions.distributed?b:i,dataPointIndex:r,color:x,value:e[t][r],fillConfig:(s=f.config.series[t].data[r])===null||s===void 0?void 0:s.fill,fillType:(n=f.config.series[t].data[r])!==null&&n!==void 0&&(l=n.fill)!==null&&l!==void 0&&l.type?(h=f.config.series[t].data[r])===null||h===void 0?void 0:h.fill.type:f.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,r){var i=0,s=this.w;return this.barCtx.series[e][t]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,s.config.stroke.show&&(this.barCtx.isNullValue||(i=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[r]:this.barCtx.strokeWidth)),i}},{key:"shouldApplyRadius",value:function(e){var t=this.w,r=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&t.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===e&&(r=!0):r=!0),r}},{key:"barBackground",value:function(e){var t=e.j,r=e.i,i=e.x1,s=e.x2,n=e.y1,l=e.y2,h=e.elSeries,f=this.w,p=new U(this.barCtx.ctx),x=new ze(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&x===r){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var b=this.barCtx.barOptions.colors.backgroundBarColors[t],y=p.drawRect(i!==void 0?i:0,n!==void 0?n:0,s!==void 0?s:f.globals.gridWidth,l!==void 0?l:f.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,b,this.barCtx.barOptions.colors.backgroundBarOpacity);h.add(y),y.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,r=e.barWidth,i=e.barXPosition,s=e.y1,n=e.y2,l=e.strokeWidth,h=e.seriesGroup,f=e.realIndex,p=e.i,x=e.j,b=e.w,y=new U(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var C=r,z=i;(t=b.config.series[f].data[x])!==null&&t!==void 0&&t.columnWidthOffset&&(z=i-b.config.series[f].data[x].columnWidthOffset/2,C=r+b.config.series[f].data[x].columnWidthOffset);var L=z,R=z+C;s+=.001,n+=.001;var _=y.move(L,s),d=y.move(L,s),v=y.line(R-l,s);if(b.globals.previousPaths.length>0&&(d=this.barCtx.getPreviousPath(f,x,!1)),_=_+y.line(L,n)+y.line(R-l,n)+y.line(R-l,s)+(b.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),d=d+y.line(L,s)+v+v+v+v+v+y.line(L,s)+(b.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(f)&&(_=y.roundPathCorners(_,b.config.plotOptions.bar.borderRadius)),b.config.chart.stacked){var M=this.barCtx;b.globals.hasSeriesGroups&&h&&(M=this.barCtx[h]),M.yArrj.push(n),M.yArrjF.push(Math.abs(s-n)),M.yArrjVal.push(this.barCtx.series[p][x])}return{pathTo:_,pathFrom:d}}},{key:"getBarpaths",value:function(e){var t,r=e.barYPosition,i=e.barHeight,s=e.x1,n=e.x2,l=e.strokeWidth,h=e.seriesGroup,f=e.realIndex,p=e.i,x=e.j,b=e.w,y=new U(this.barCtx.ctx);(l=Array.isArray(l)?l[f]:l)||(l=0);var C=r,z=i;(t=b.config.series[f].data[x])!==null&&t!==void 0&&t.barHeightOffset&&(C=r-b.config.series[f].data[x].barHeightOffset/2,z=i+b.config.series[f].data[x].barHeightOffset);var L=C,R=C+z;s+=.001,n+=.001;var _=y.move(s,L),d=y.move(s,L);b.globals.previousPaths.length>0&&(d=this.barCtx.getPreviousPath(f,x,!1));var v=y.line(s,R-l);if(_=_+y.line(n,L)+y.line(n,R-l)+v+(b.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),d=d+y.line(s,L)+v+v+v+v+v+y.line(s,L)+(b.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(f)&&(_=y.roundPathCorners(_,b.config.plotOptions.bar.borderRadius)),b.config.chart.stacked){var M=this.barCtx;b.globals.hasSeriesGroups&&h&&(M=this.barCtx[h]),M.xArrj.push(n),M.xArrjF.push(Math.abs(s-n)),M.xArrjVal.push(this.barCtx.series[p][x])}return{pathTo:_,pathFrom:d}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,r=this.w,i=0;i<t.length;i++){for(var s=0,n=0;n<t[r.globals.maxValsInArrayIndex].length;n++)s+=t[i][n];s===0&&this.barCtx.zeroSerieses.push(i)}}},{key:"getXForValue",value:function(e,t){var r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?t:null;return e!=null&&(r=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),r}},{key:"getYForValue",value:function(e,t){var r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?t:null;return e!=null&&(r=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),r}},{key:"getGoalValues",value:function(e,t,r,i,s){var n=this,l=this.w,h=[],f=function(b,y){var C;h.push((S(C={},e,e==="x"?n.getXForValue(b,t,!1):n.getYForValue(b,r,!1)),S(C,"attrs",y),C))};if(l.globals.seriesGoals[i]&&l.globals.seriesGoals[i][s]&&Array.isArray(l.globals.seriesGoals[i][s])&&l.globals.seriesGoals[i][s].forEach(function(b){f(b.value,b)}),this.barCtx.barOptions.isDumbbell&&l.globals.seriesRange.length){var p=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:l.globals.colors,x={strokeHeight:e==="x"?0:l.globals.markers.size[i],strokeWidth:e==="x"?l.globals.markers.size[i]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(p[i])?p[i][0]:p[i]};f(l.globals.seriesRangeStart[i][s],x),f(l.globals.seriesRangeEnd[i][s],u(u({},x),{},{strokeColor:Array.isArray(p[i])?p[i][1]:p[i]}))}return h}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,r=e.barYPosition,i=e.goalX,s=e.goalY,n=e.barWidth,l=e.barHeight,h=new U(this.barCtx.ctx),f=h.group({className:"apexcharts-bar-goals-groups"});f.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:f.node}),f.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var p=null;return this.barCtx.isHorizontal?Array.isArray(i)&&i.forEach(function(x){var b=x.attrs.strokeHeight!==void 0?x.attrs.strokeHeight:l/2,y=r+b+l/2;p=h.drawLine(x.x,y-2*b,x.x,y,x.attrs.strokeColor?x.attrs.strokeColor:void 0,x.attrs.strokeDashArray,x.attrs.strokeWidth?x.attrs.strokeWidth:2,x.attrs.strokeLineCap),f.add(p)}):Array.isArray(s)&&s.forEach(function(x){var b=x.attrs.strokeWidth!==void 0?x.attrs.strokeWidth:n/2,y=t+b+n/2;p=h.drawLine(y-2*b,x.y,y,x.y,x.attrs.strokeColor?x.attrs.strokeColor:void 0,x.attrs.strokeDashArray,x.attrs.strokeHeight?x.attrs.strokeHeight:2,x.attrs.strokeLineCap),f.add(p)}),f}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,r=e.currPaths,i=e.color,s=this.w,n=t.x,l=t.x1,h=t.barYPosition,f=r.x,p=r.x1,x=r.barYPosition,b=h+r.barHeight,y=new U(this.barCtx.ctx),C=new O,z=y.move(l,b)+y.line(n,b)+y.line(f,x)+y.line(p,x)+y.line(l,b)+(s.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return y.drawPath({d:z,fill:C.shadeColor(.5,O.rgb2hex(i)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}}]),E}(),nr=function(){function E(e,t){m(this,E),this.ctx=e,this.w=e.w;var r=this.w;this.barOptions=r.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=r.config.stroke.width,this.isNullValue=!1,this.isRangeBar=r.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!r.globals.isBarHorizontal&&r.globals.seriesRange.length&&r.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=t,this.xyRatios!==null&&(this.xRatio=t.xRatio,this.initialXRatio=t.initialXRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var i=new ze(this.ctx);this.lastActiveBarSerieIndex=i.getActiveConfigSeriesIndex("desc",["bar","column"]);var s=i.getBarSeriesIndices(),n=new re(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map(function(l,h){return s.indexOf(h)===-1?h:-1}).filter(function(l){return l!==-1})),this.barHelpers=new ko(this)}return w(E,[{key:"draw",value:function(e,t){var r=this.w,i=new U(this.ctx),s=new re(this.ctx,r);e=s.getLogSeries(e),this.series=e,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=i.group({class:"apexcharts-bar-series apexcharts-plot-series"});r.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var l=0,h=0;l<e.length;l++,h++){var f,p,x,b,y=void 0,C=void 0,z=[],L=[],R=r.globals.comboCharts?t[l]:l,_=i.group({class:"apexcharts-series",rel:l+1,seriesName:O.escapeString(r.globals.seriesNames[R]),"data:realIndex":R});this.ctx.series.addCollapsedClassToSeries(_,R),e[l].length>0&&(this.visibleI=this.visibleI+1);var d=0,v=0;this.yRatio.length>1&&(this.yaxisIndex=R),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed;var M=this.barHelpers.initialPositions();C=M.y,d=M.barHeight,p=M.yDivision,b=M.zeroW,y=M.x,v=M.barWidth,f=M.xDivision,x=M.zeroH,this.horizontal||L.push(y+v/2);var P=i.group({class:"apexcharts-datalabels","data:realIndex":R});r.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");var B=i.group({class:"apexcharts-bar-goals-markers"}),N=i.group({class:"apexcharts-bar-shadows"});r.globals.delayedElements.push({el:N.node}),N.node.classList.add("apexcharts-element-hidden");for(var W=0;W<r.globals.dataPoints;W++){var G=this.barHelpers.getStrokeWidth(l,W,R),Q=null,ie={indexes:{i:l,j:W,realIndex:R,bc:h},x:y,y:C,strokeWidth:G,elSeries:_};this.isHorizontal?(Q=this.drawBarPaths(u(u({},ie),{},{barHeight:d,zeroW:b,yDivision:p})),v=this.series[l][W]/this.invertedYRatio):(Q=this.drawColumnPaths(u(u({},ie),{},{xDivision:f,barWidth:v,zeroH:x})),d=this.series[l][W]/this.yRatio[this.yaxisIndex]);var te=this.barHelpers.getPathFillColor(e,l,W,R);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&W>0){var ce=this.barHelpers.drawBarShadow({color:typeof te=="string"&&(te==null?void 0:te.indexOf("url"))===-1?te:O.hexToRgba(r.globals.colors[l]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:Q});ce&&N.add(ce)}this.pathArr.push(Q);var me=this.barHelpers.drawGoalLine({barXPosition:Q.barXPosition,barYPosition:Q.barYPosition,goalX:Q.goalX,goalY:Q.goalY,barHeight:d,barWidth:v});me&&B.add(me),C=Q.y,y=Q.x,W>0&&L.push(y+v/2),z.push(C),this.renderSeries({realIndex:R,pathFill:te,j:W,i:l,pathFrom:Q.pathFrom,pathTo:Q.pathTo,strokeWidth:G,elSeries:_,x:y,y:C,series:e,barHeight:Q.barHeight?Q.barHeight:d,barWidth:Q.barWidth?Q.barWidth:v,elDataLabelsWrap:P,elGoalsMarkers:B,elBarShadows:N,visibleSeries:this.visibleI,type:"bar"})}r.globals.seriesXvalues[R]=L,r.globals.seriesYvalues[R]=z,n.add(_)}return n}},{key:"renderSeries",value:function(e){var t=e.realIndex,r=e.pathFill,i=e.lineFill,s=e.j,n=e.i,l=e.groupIndex,h=e.pathFrom,f=e.pathTo,p=e.strokeWidth,x=e.elSeries,b=e.x,y=e.y,C=e.y1,z=e.y2,L=e.series,R=e.barHeight,_=e.barWidth,d=e.barXPosition,v=e.barYPosition,M=e.elDataLabelsWrap,P=e.elGoalsMarkers,B=e.elBarShadows,N=e.visibleSeries,W=e.type,G=this.w,Q=new U(this.ctx);i||(i=this.barOptions.distributed?G.globals.stroke.colors[s]:G.globals.stroke.colors[t]),G.config.series[n].data[s]&&G.config.series[n].data[s].strokeColor&&(i=G.config.series[n].data[s].strokeColor),this.isNullValue&&(r="none");var ie=s/G.config.chart.animations.animateGradually.delay*(G.config.chart.animations.speed/G.globals.dataPoints)/2.4,te=Q.renderPaths({i:n,j:s,realIndex:t,pathFrom:h,pathTo:f,stroke:i,strokeWidth:p,strokeLineCap:G.config.stroke.lineCap,fill:r,animationDelay:ie,initialSpeed:G.config.chart.animations.speed,dataChangeSpeed:G.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(W,"-area")});te.attr("clip-path","url(#gridRectMask".concat(G.globals.cuid,")"));var ce=G.config.forecastDataPoints;ce.count>0&&s>=G.globals.dataPoints-ce.count&&(te.node.setAttribute("stroke-dasharray",ce.dashArray),te.node.setAttribute("stroke-width",ce.strokeWidth),te.node.setAttribute("fill-opacity",ce.fillOpacity)),C!==void 0&&z!==void 0&&(te.attr("data-range-y1",C),te.attr("data-range-y2",z)),new le(this.ctx).setSelectionFilter(te,t,s),x.add(te);var me=new wo(this).handleBarDataLabels({x:b,y,y1:C,y2:z,i:n,j:s,series:L,realIndex:t,groupIndex:l,barHeight:R,barWidth:_,barXPosition:d,barYPosition:v,renderedPath:te,visibleSeries:N});return me.dataLabels!==null&&M.add(me.dataLabels),me.totalDataLabels&&M.add(me.totalDataLabels),x.add(M),P&&x.add(P),B&&x.add(B),x}},{key:"drawBarPaths",value:function(e){var t,r=e.indexes,i=e.barHeight,s=e.strokeWidth,n=e.zeroW,l=e.x,h=e.y,f=e.yDivision,p=e.elSeries,x=this.w,b=r.i,y=r.j;if(x.globals.isXNumeric)t=(h=(x.globals.seriesX[b][y]-x.globals.minX)/this.invertedXRatio-i)+i*this.visibleI;else if(x.config.plotOptions.bar.hideZeroBarsWhenGrouped){var C=0,z=0;x.globals.seriesPercent.forEach(function(R,_){R[y]&&C++,_<b&&R[y]===0&&z++}),C>0&&(i=this.seriesLen*i/C),t=h+i*this.visibleI,t-=i*z}else t=h+i*this.visibleI;this.isFunnel&&(n-=(this.barHelpers.getXForValue(this.series[b][y],n)-n)/2),l=this.barHelpers.getXForValue(this.series[b][y],n);var L=this.barHelpers.getBarpaths({barYPosition:t,barHeight:i,x1:n,x2:l,strokeWidth:s,series:this.series,realIndex:r.realIndex,i:b,j:y,w:x});return x.globals.isXNumeric||(h+=f),this.barHelpers.barBackground({j:y,i:b,y1:t-i*this.visibleI,y2:i*this.seriesLen,elSeries:p}),{pathTo:L.pathTo,pathFrom:L.pathFrom,x1:n,x:l,y:h,goalX:this.barHelpers.getGoalValues("x",n,null,b,y),barYPosition:t,barHeight:i}}},{key:"drawColumnPaths",value:function(e){var t,r=e.indexes,i=e.x,s=e.y,n=e.xDivision,l=e.barWidth,h=e.zeroH,f=e.strokeWidth,p=e.elSeries,x=this.w,b=r.realIndex,y=r.i,C=r.j,z=r.bc;if(x.globals.isXNumeric){var L=b;x.globals.seriesX[b].length||(L=x.globals.maxValsInArrayIndex),x.globals.seriesX[L][C]&&(i=(x.globals.seriesX[L][C]-x.globals.minX)/this.xRatio-l*this.seriesLen/2),t=i+l*this.visibleI}else if(x.config.plotOptions.bar.hideZeroBarsWhenGrouped){var R=0,_=0;x.globals.seriesPercent.forEach(function(v,M){v[C]&&R++,M<y&&v[C]===0&&_++}),R>0&&(l=this.seriesLen*l/R),t=i+l*this.visibleI,t-=l*_}else t=i+l*this.visibleI;s=this.barHelpers.getYForValue(this.series[y][C],h);var d=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:l,y1:h,y2:s,strokeWidth:f,series:this.series,realIndex:r.realIndex,i:y,j:C,w:x});return x.globals.isXNumeric||(i+=n),this.barHelpers.barBackground({bc:z,j:C,i:y,x1:t-f/2-l*this.visibleI,x2:l*this.seriesLen+f/2,elSeries:p}),{pathTo:d.pathTo,pathFrom:d.pathFrom,x:i,y:s,goalY:this.barHelpers.getGoalValues("y",null,h,y,C),barXPosition:t,barWidth:l}}},{key:"getPreviousPath",value:function(e,t){for(var r,i=this.w,s=0;s<i.globals.previousPaths.length;s++){var n=i.globals.previousPaths[s];n.paths&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(e,10)&&i.globals.previousPaths[s].paths[t]!==void 0&&(r=i.globals.previousPaths[s].paths[t].d)}return r}}]),E}(),Ii=function(E){D(t,nr);var e=X(t);function t(){return m(this,t),e.apply(this,arguments)}return w(t,[{key:"draw",value:function(r,i){var s=this,n=this.w;this.graphics=new U(this.ctx),this.bar=new nr(this.ctx,this.xyRatios);var l=new re(this.ctx,n);r=l.getLogSeries(r),this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(r),n.config.chart.stackType==="100%"&&(r=n.globals.seriesPercent.slice()),this.series=r,this.barHelpers.initializeStackedPrevVars(this);for(var h=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),f=0,p=0,x=function(C,z){var L=void 0,R=void 0,_=void 0,d=void 0,v=-1;s.groupCtx=s,n.globals.seriesGroups.forEach(function(Oe,$e){Oe.indexOf(n.config.series[C].name)>-1&&(v=$e)}),v!==-1&&(s.groupCtx=s[n.globals.seriesGroups[v]]);var M=[],P=[],B=n.globals.comboCharts?i[C]:C;s.yRatio.length>1&&(s.yaxisIndex=B),s.isReversed=n.config.yaxis[s.yaxisIndex]&&n.config.yaxis[s.yaxisIndex].reversed;var N=s.graphics.group({class:"apexcharts-series",seriesName:O.escapeString(n.globals.seriesNames[B]),rel:C+1,"data:realIndex":B});s.ctx.series.addCollapsedClassToSeries(N,B);var W=s.graphics.group({class:"apexcharts-datalabels","data:realIndex":B}),G=s.graphics.group({class:"apexcharts-bar-goals-markers"}),Q=0,ie=0,te=s.initialPositions(f,p,L,R,_,d);p=te.y,Q=te.barHeight,R=te.yDivision,d=te.zeroW,f=te.x,ie=te.barWidth,L=te.xDivision,_=te.zeroH,s.barHelpers.initializeStackedXYVars(s),s.groupCtx.prevY.length===1&&s.groupCtx.prevY[0].every(function(Oe){return isNaN(Oe)})&&(s.groupCtx.prevY[0]=s.groupCtx.prevY[0].map(function(Oe){return _}),s.groupCtx.prevYF[0]=s.groupCtx.prevYF[0].map(function(Oe){return 0}));for(var ce=0;ce<n.globals.dataPoints;ce++){var me=s.barHelpers.getStrokeWidth(C,ce,B),Le={indexes:{i:C,j:ce,realIndex:B,bc:z},strokeWidth:me,x:f,y:p,elSeries:N,groupIndex:v,seriesGroup:n.globals.seriesGroups[v]},De=null;s.isHorizontal?(De=s.drawStackedBarPaths(u(u({},Le),{},{zeroW:d,barHeight:Q,yDivision:R})),ie=s.series[C][ce]/s.invertedYRatio):(De=s.drawStackedColumnPaths(u(u({},Le),{},{xDivision:L,barWidth:ie,zeroH:_})),Q=s.series[C][ce]/s.yRatio[s.yaxisIndex]);var Ie=s.barHelpers.drawGoalLine({barXPosition:De.barXPosition,barYPosition:De.barYPosition,goalX:De.goalX,goalY:De.goalY,barHeight:Q,barWidth:ie});Ie&&G.add(Ie),p=De.y,f=De.x,M.push(f),P.push(p);var Ve=s.barHelpers.getPathFillColor(r,C,ce,B);N=s.renderSeries({realIndex:B,pathFill:Ve,j:ce,i:C,groupIndex:v,pathFrom:De.pathFrom,pathTo:De.pathTo,strokeWidth:me,elSeries:N,x:f,y:p,series:r,barHeight:Q,barWidth:ie,elDataLabelsWrap:W,elGoalsMarkers:G,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[B]=M,n.globals.seriesYvalues[B]=P,s.groupCtx.prevY.push(s.groupCtx.yArrj),s.groupCtx.prevYF.push(s.groupCtx.yArrjF),s.groupCtx.prevYVal.push(s.groupCtx.yArrjVal),s.groupCtx.prevX.push(s.groupCtx.xArrj),s.groupCtx.prevXF.push(s.groupCtx.xArrjF),s.groupCtx.prevXVal.push(s.groupCtx.xArrjVal),h.add(N)},b=0,y=0;b<r.length;b++,y++)x(b,y);return h}},{key:"initialPositions",value:function(r,i,s,n,l,h){var f,p,x,b,y=this.w;return this.isHorizontal?(x=(x=n=y.globals.gridHeight/y.globals.dataPoints)*parseInt(y.config.plotOptions.bar.barHeight,10)/100,String(y.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(x=parseInt(y.config.plotOptions.bar.barHeight,10)),h=this.baseLineInvertedY+y.globals.padHorizontal+(this.isReversed?y.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),i=(n-x)/2):(b=s=y.globals.gridWidth/y.globals.dataPoints,b=y.globals.isXNumeric&&y.globals.dataPoints>1?(s=y.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:b*parseInt(y.config.plotOptions.bar.columnWidth,10)/100,String(y.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(b=parseInt(y.config.plotOptions.bar.columnWidth,10)),l=y.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?y.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),r=y.globals.padHorizontal+(s-b)/2),{x:r,y:i,yDivision:n,xDivision:s,barHeight:(f=y.globals.seriesGroups)!==null&&f!==void 0&&f.length?x/y.globals.seriesGroups.length:x,barWidth:(p=y.globals.seriesGroups)!==null&&p!==void 0&&p.length?b/y.globals.seriesGroups.length:b,zeroH:l,zeroW:h}}},{key:"drawStackedBarPaths",value:function(r){for(var i,s=r.indexes,n=r.barHeight,l=r.strokeWidth,h=r.zeroW,f=r.x,p=r.y,x=r.groupIndex,b=r.seriesGroup,y=r.yDivision,C=r.elSeries,z=this.w,L=p+(x!==-1?x*n:0),R=s.i,_=s.j,d=0,v=0;v<this.groupCtx.prevXF.length;v++)d+=this.groupCtx.prevXF[v][_];var M=R;if(b&&(M=b.indexOf(z.config.series[R].name)),M>0){var P=h;this.groupCtx.prevXVal[M-1][_]<0?P=this.series[R][_]>=0?this.groupCtx.prevX[M-1][_]+d-2*(this.isReversed?d:0):this.groupCtx.prevX[M-1][_]:this.groupCtx.prevXVal[M-1][_]>=0&&(P=this.series[R][_]>=0?this.groupCtx.prevX[M-1][_]:this.groupCtx.prevX[M-1][_]-d+2*(this.isReversed?d:0)),i=P}else i=h;f=this.series[R][_]===null?i:i+this.series[R][_]/this.invertedYRatio-2*(this.isReversed?this.series[R][_]/this.invertedYRatio:0);var B=this.barHelpers.getBarpaths({barYPosition:L,barHeight:n,x1:i,x2:f,strokeWidth:l,series:this.series,realIndex:s.realIndex,seriesGroup:b,i:R,j:_,w:z});return this.barHelpers.barBackground({j:_,i:R,y1:L,y2:n,elSeries:C}),p+=y,{pathTo:B.pathTo,pathFrom:B.pathFrom,goalX:this.barHelpers.getGoalValues("x",h,null,R,_),barYPosition:L,x:f,y:p}}},{key:"drawStackedColumnPaths",value:function(r){var i=r.indexes,s=r.x,n=r.y,l=r.xDivision,h=r.barWidth,f=r.zeroH,p=r.groupIndex,x=r.seriesGroup,b=r.elSeries,y=this.w,C=i.i,z=i.j,L=i.bc;if(y.globals.isXNumeric){var R=y.globals.seriesX[C][z];R||(R=0),s=(R-y.globals.minX)/this.xRatio-h/2,y.globals.seriesGroups.length&&(s=(R-y.globals.minX)/this.xRatio-h/2*y.globals.seriesGroups.length)}for(var _,d=s+(p!==-1?p*h:0),v=0,M=0;M<this.groupCtx.prevYF.length;M++)v+=isNaN(this.groupCtx.prevYF[M][z])?0:this.groupCtx.prevYF[M][z];var P=C;if(x&&(P=x.indexOf(y.config.series[C].name)),P>0&&!y.globals.isXNumeric||P>0&&y.globals.isXNumeric&&y.globals.seriesX[C-1][z]===y.globals.seriesX[C][z]){var B,N,W,G=Math.min(this.yRatio.length+1,C+1);if(this.groupCtx.prevY[P-1]!==void 0&&this.groupCtx.prevY[P-1].length)for(var Q=1;Q<G;Q++){var ie;if(!isNaN((ie=this.groupCtx.prevY[P-Q])===null||ie===void 0?void 0:ie[z])){W=this.groupCtx.prevY[P-Q][z];break}}for(var te=1;te<G;te++){var ce,me;if(((ce=this.groupCtx.prevYVal[P-te])===null||ce===void 0?void 0:ce[z])<0){N=this.series[C][z]>=0?W-v+2*(this.isReversed?v:0):W;break}if(((me=this.groupCtx.prevYVal[P-te])===null||me===void 0?void 0:me[z])>=0){N=this.series[C][z]>=0?W:W+v-2*(this.isReversed?v:0);break}}N===void 0&&(N=y.globals.gridHeight),_=(B=this.groupCtx.prevYF[0])!==null&&B!==void 0&&B.every(function(De){return De===0})&&this.groupCtx.prevYF.slice(1,P).every(function(De){return De.every(function(Ie){return isNaN(Ie)})})?f:N}else _=f;n=this.series[C][z]?_-this.series[C][z]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[C][z]/this.yRatio[this.yaxisIndex]:0):_;var Le=this.barHelpers.getColumnPaths({barXPosition:d,barWidth:h,y1:_,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:x,realIndex:i.realIndex,i:C,j:z,w:y});return this.barHelpers.barBackground({bc:L,j:z,i:C,x1:d,x2:h,elSeries:b}),s+=l,{pathTo:Le.pathTo,pathFrom:Le.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,f,C,z),barXPosition:d,x:y.globals.isXNumeric?s-l:s,y:n}}}]),t}(),xa=function(E){D(t,nr);var e=X(t);function t(){return m(this,t),e.apply(this,arguments)}return w(t,[{key:"draw",value:function(r,i,s){var n=this,l=this.w,h=new U(this.ctx),f=l.globals.comboCharts?i:l.config.chart.type,p=new Ne(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=l.config.plotOptions.bar.horizontal;var x=new re(this.ctx,l);r=x.getLogSeries(r),this.series=r,this.yRatio=x.getLogYRatios(this.yRatio),this.barHelpers.initVariables(r);for(var b=h.group({class:"apexcharts-".concat(f,"-series apexcharts-plot-series")}),y=function(z){n.isBoxPlot=l.config.chart.type==="boxPlot"||l.config.series[z].type==="boxPlot";var L,R,_,d,v=void 0,M=void 0,P=[],B=[],N=l.globals.comboCharts?s[z]:z,W=h.group({class:"apexcharts-series",seriesName:O.escapeString(l.globals.seriesNames[N]),rel:z+1,"data:realIndex":N});n.ctx.series.addCollapsedClassToSeries(W,N),r[z].length>0&&(n.visibleI=n.visibleI+1);var G,Q;n.yRatio.length>1&&(n.yaxisIndex=N);var ie=n.barHelpers.initialPositions();M=ie.y,G=ie.barHeight,R=ie.yDivision,d=ie.zeroW,v=ie.x,Q=ie.barWidth,L=ie.xDivision,_=ie.zeroH,B.push(v+Q/2);for(var te=h.group({class:"apexcharts-datalabels","data:realIndex":N}),ce=function(Le){var De=n.barHelpers.getStrokeWidth(z,Le,N),Ie=null,Ve={indexes:{i:z,j:Le,realIndex:N},x:v,y:M,strokeWidth:De,elSeries:W};Ie=n.isHorizontal?n.drawHorizontalBoxPaths(u(u({},Ve),{},{yDivision:R,barHeight:G,zeroW:d})):n.drawVerticalBoxPaths(u(u({},Ve),{},{xDivision:L,barWidth:Q,zeroH:_})),M=Ie.y,v=Ie.x,Le>0&&B.push(v+Q/2),P.push(M),Ie.pathTo.forEach(function(Oe,$e){var Ht=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?Ie.color[$e]:l.globals.stroke.colors[z],Zt=p.fillPath({seriesNumber:N,dataPointIndex:Le,color:Ie.color[$e],value:r[z][Le]});n.renderSeries({realIndex:N,pathFill:Zt,lineFill:Ht,j:Le,i:z,pathFrom:Ie.pathFrom,pathTo:Oe,strokeWidth:De,elSeries:W,x:v,y:M,series:r,barHeight:G,barWidth:Q,elDataLabelsWrap:te,visibleSeries:n.visibleI,type:l.config.chart.type})})},me=0;me<l.globals.dataPoints;me++)ce(me);l.globals.seriesXvalues[N]=B,l.globals.seriesYvalues[N]=P,b.add(W)},C=0;C<r.length;C++)y(C);return b}},{key:"drawVerticalBoxPaths",value:function(r){var i=r.indexes,s=r.x;r.y;var n=r.xDivision,l=r.barWidth,h=r.zeroH,f=r.strokeWidth,p=this.w,x=new U(this.ctx),b=i.i,y=i.j,C=!0,z=p.config.plotOptions.candlestick.colors.upward,L=p.config.plotOptions.candlestick.colors.downward,R="";this.isBoxPlot&&(R=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var _=this.yRatio[this.yaxisIndex],d=i.realIndex,v=this.getOHLCValue(d,y),M=h,P=h;v.o>v.c&&(C=!1);var B=Math.min(v.o,v.c),N=Math.max(v.o,v.c),W=v.m;p.globals.isXNumeric&&(s=(p.globals.seriesX[d][y]-p.globals.minX)/this.xRatio-l/2);var G=s+l*this.visibleI;this.series[b][y]===void 0||this.series[b][y]===null?(B=h,N=h):(B=h-B/_,N=h-N/_,M=h-v.h/_,P=h-v.l/_,W=h-v.m/_);var Q=x.move(G,h),ie=x.move(G+l/2,B);return p.globals.previousPaths.length>0&&(ie=this.getPreviousPath(d,y,!0)),Q=this.isBoxPlot?[x.move(G,B)+x.line(G+l/2,B)+x.line(G+l/2,M)+x.line(G+l/4,M)+x.line(G+l-l/4,M)+x.line(G+l/2,M)+x.line(G+l/2,B)+x.line(G+l,B)+x.line(G+l,W)+x.line(G,W)+x.line(G,B+f/2),x.move(G,W)+x.line(G+l,W)+x.line(G+l,N)+x.line(G+l/2,N)+x.line(G+l/2,P)+x.line(G+l-l/4,P)+x.line(G+l/4,P)+x.line(G+l/2,P)+x.line(G+l/2,N)+x.line(G,N)+x.line(G,W)+"z"]:[x.move(G,N)+x.line(G+l/2,N)+x.line(G+l/2,M)+x.line(G+l/2,N)+x.line(G+l,N)+x.line(G+l,B)+x.line(G+l/2,B)+x.line(G+l/2,P)+x.line(G+l/2,B)+x.line(G,B)+x.line(G,N-f/2)],ie+=x.move(G,B),p.globals.isXNumeric||(s+=n),{pathTo:Q,pathFrom:ie,x:s,y:N,barXPosition:G,color:this.isBoxPlot?R:C?[z]:[L]}}},{key:"drawHorizontalBoxPaths",value:function(r){var i=r.indexes;r.x;var s=r.y,n=r.yDivision,l=r.barHeight,h=r.zeroW,f=r.strokeWidth,p=this.w,x=new U(this.ctx),b=i.i,y=i.j,C=this.boxOptions.colors.lower;this.isBoxPlot&&(C=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var z=this.invertedYRatio,L=i.realIndex,R=this.getOHLCValue(L,y),_=h,d=h,v=Math.min(R.o,R.c),M=Math.max(R.o,R.c),P=R.m;p.globals.isXNumeric&&(s=(p.globals.seriesX[L][y]-p.globals.minX)/this.invertedXRatio-l/2);var B=s+l*this.visibleI;this.series[b][y]===void 0||this.series[b][y]===null?(v=h,M=h):(v=h+v/z,M=h+M/z,_=h+R.h/z,d=h+R.l/z,P=h+R.m/z);var N=x.move(h,B),W=x.move(v,B+l/2);return p.globals.previousPaths.length>0&&(W=this.getPreviousPath(L,y,!0)),N=[x.move(v,B)+x.line(v,B+l/2)+x.line(_,B+l/2)+x.line(_,B+l/2-l/4)+x.line(_,B+l/2+l/4)+x.line(_,B+l/2)+x.line(v,B+l/2)+x.line(v,B+l)+x.line(P,B+l)+x.line(P,B)+x.line(v+f/2,B),x.move(P,B)+x.line(P,B+l)+x.line(M,B+l)+x.line(M,B+l/2)+x.line(d,B+l/2)+x.line(d,B+l-l/4)+x.line(d,B+l/4)+x.line(d,B+l/2)+x.line(M,B+l/2)+x.line(M,B)+x.line(P,B)+"z"],W+=x.move(v,B),p.globals.isXNumeric||(s+=n),{pathTo:N,pathFrom:W,x:M,y:s,barYPosition:B,color:C}}},{key:"getOHLCValue",value:function(r,i){var s=this.w;return{o:this.isBoxPlot?s.globals.seriesCandleH[r][i]:s.globals.seriesCandleO[r][i],h:this.isBoxPlot?s.globals.seriesCandleO[r][i]:s.globals.seriesCandleH[r][i],m:s.globals.seriesCandleM[r][i],l:this.isBoxPlot?s.globals.seriesCandleC[r][i]:s.globals.seriesCandleL[r][i],c:this.isBoxPlot?s.globals.seriesCandleL[r][i]:s.globals.seriesCandleC[r][i]}}}]),t}(),Ri=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,r=e.config.plotOptions[e.config.chart.type];return r.colorScale.ranges.length>0&&r.colorScale.ranges.map(function(i,s){i.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,r,i){var s=this.w,n=1,l=s.config.plotOptions[e].shadeIntensity,h=this.determineColor(e,t,r);s.globals.hasNegs||i?n=s.config.plotOptions[e].reverseNegativeShade?h.percent<0?h.percent/100*(1.25*l):(1-h.percent/100)*(1.25*l):h.percent<=0?1-(1+h.percent/100)*l:(1-h.percent/100)*l:(n=1-h.percent/100,e==="treemap"&&(n=(1-h.percent/100)*(1.25*l)));var f=h.color,p=new O;return s.config.plotOptions[e].enableShades&&(f=this.w.config.theme.mode==="dark"?O.hexToRgba(p.shadeColor(-1*n,h.color),s.config.fill.opacity):O.hexToRgba(p.shadeColor(n,h.color),s.config.fill.opacity)),{color:f,colorProps:h}}},{key:"determineColor",value:function(e,t,r){var i=this.w,s=i.globals.series[t][r],n=i.config.plotOptions[e],l=n.colorScale.inverse?r:t;n.distributed&&i.config.chart.type==="treemap"&&(l=r);var h=i.globals.colors[l],f=null,p=Math.min.apply(Math,Z(i.globals.series[t])),x=Math.max.apply(Math,Z(i.globals.series[t]));n.distributed||e!=="heatmap"||(p=i.globals.minY,x=i.globals.maxY),n.colorScale.min!==void 0&&(p=n.colorScale.min<i.globals.minY?n.colorScale.min:i.globals.minY,x=n.colorScale.max>i.globals.maxY?n.colorScale.max:i.globals.maxY);var b=Math.abs(x)+Math.abs(p),y=100*s/(b===0?b-1e-6:b);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(C,z){if(s>=C.from&&s<=C.to){h=C.color,f=C.foreColor?C.foreColor:null,p=C.from,x=C.to;var L=Math.abs(x)+Math.abs(p);y=100*s/(L===0?L-1e-6:L)}}),{color:h,foreColor:f,percent:y}}},{key:"calculateDataLabels",value:function(e){var t=e.text,r=e.x,i=e.y,s=e.i,n=e.j,l=e.colorProps,h=e.fontSize,f=this.w.config.dataLabels,p=new U(this.ctx),x=new pe(this.ctx),b=null;if(f.enabled){b=p.group({class:"apexcharts-data-labels"});var y=f.offsetX,C=f.offsetY,z=r+y,L=i+parseFloat(f.style.fontSize)/3+C;x.plotDataLabelsText({x:z,y:L,text:t,i:s,j:n,color:l.foreColor,parent:b,fontSize:h,dataLabelsConfig:f})}return b}},{key:"addListeners",value:function(e){var t=new U(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),E}(),Ao=function(){function E(e,t){m(this,E),this.ctx=e,this.w=e.w,this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Ri(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return w(E,[{key:"draw",value:function(e){var t=this.w,r=new U(this.ctx),i=r.group({class:"apexcharts-heatmap"});i.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var s=t.globals.gridWidth/t.globals.dataPoints,n=t.globals.gridHeight/t.globals.series.length,l=0,h=!1;this.negRange=this.helpers.checkColorRange();var f=e.slice();t.config.yaxis[0].reversed&&(h=!0,f.reverse());for(var p=h?0:f.length-1;h?p<f.length:p>=0;h?p++:p--){var x=r.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:O.escapeString(t.globals.seriesNames[p]),rel:p+1,"data:realIndex":p});if(this.ctx.series.addCollapsedClassToSeries(x,p),t.config.chart.dropShadow.enabled){var b=t.config.chart.dropShadow;new le(this.ctx).dropShadow(x,b,p)}for(var y=0,C=t.config.plotOptions.heatmap.shadeIntensity,z=0;z<f[p].length;z++){var L=this.helpers.getShadeColor(t.config.chart.type,p,z,this.negRange),R=L.color,_=L.colorProps;t.config.fill.type==="image"&&(R=new Ne(this.ctx).fillPath({seriesNumber:p,dataPointIndex:z,opacity:t.globals.hasNegs?_.percent<0?1-(1+_.percent/100):C+_.percent/100:_.percent/100,patternID:O.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:s,height:t.config.fill.image.height?t.config.fill.image.height:n}));var d=this.rectRadius,v=r.drawRect(y,l,s,n,d);if(v.attr({cx:y,cy:l}),v.node.classList.add("apexcharts-heatmap-rect"),x.add(v),v.attr({fill:R,i:p,index:p,j:z,val:f[p][z],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?R:t.globals.stroke.colors[0],color:R}),this.helpers.addListeners(v),t.config.chart.animations.enabled&&!t.globals.dataChanged){var M=1;t.globals.resized||(M=t.config.chart.animations.speed),this.animateHeatMap(v,y,l,s,n,M)}if(t.globals.dataChanged){var P=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){P=this.dynamicAnim.speed;var B=t.globals.previousPaths[p]&&t.globals.previousPaths[p][z]&&t.globals.previousPaths[p][z].color;B||(B="rgba(255, 255, 255, 0)"),this.animateHeatColor(v,O.isColorHex(B)?B:O.rgb2hex(B),O.isColorHex(R)?R:O.rgb2hex(R),P)}}var N=(0,t.config.dataLabels.formatter)(t.globals.series[p][z],{value:t.globals.series[p][z],seriesIndex:p,dataPointIndex:z,w:t}),W=this.helpers.calculateDataLabels({text:N,x:y+s/2,y:l+n/2,i:p,j:z,colorProps:_,series:f});W!==null&&x.add(W),y+=s}l+=n,i.add(x)}var G=t.globals.yAxisScale[0].result.slice();t.config.yaxis[0].reversed?G.unshift(""):G.push(""),t.globals.yAxisScale[0].result=G;var Q=t.globals.gridHeight/t.globals.series.length;return t.config.yaxis[0].labels.offsetY=-Q/2,i}},{key:"animateHeatMap",value:function(e,t,r,i,s,n){var l=new se(this.ctx);l.animateRect(e,{x:t+i/2,y:r+s/2,width:0,height:0},{x:t,y:r,width:i,height:s},n,function(){l.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,r,i){e.attr({fill:t}).animate(i).attr({fill:r})}}]),E}(),Fi=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"drawYAxisTexts",value:function(e,t,r,i){var s=this.w,n=s.config.yaxis[0],l=s.globals.yLabelFormatters[0];return new U(this.ctx).drawText({x:e+n.labels.offsetX,y:t+n.labels.offsetY,text:l(i,r),textAnchor:"middle",fontSize:n.labels.style.fontSize,fontFamily:n.labels.style.fontFamily,foreColor:Array.isArray(n.labels.style.colors)?n.labels.style.colors[r]:n.labels.style.colors})}}]),E}(),_i=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w;var t=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=Math.min(t.globals.gridWidth,t.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=t.globals.gridWidth/2,t.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(t.config.plotOptions.pie.endAngle-t.config.plotOptions.pie.startAngle),this.initialAngle=t.config.plotOptions.pie.startAngle%this.fullAngle,t.globals.radialSize=this.defaultSize/2.05-t.config.stroke.width-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur),this.donutSize=t.globals.radialSize*parseInt(t.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return w(E,[{key:"draw",value:function(e){var t=this,r=this.w,i=new U(this.ctx);if(this.ret=i.group({class:"apexcharts-pie"}),r.globals.noData)return this.ret;for(var s=0,n=0;n<e.length;n++)s+=O.negToZero(e[n]);var l=[],h=i.group();s===0&&(s=1e-5),e.forEach(function(B){t.maxY=Math.max(t.maxY,B)}),r.config.yaxis[0].max&&(this.maxY=r.config.yaxis[0].max),r.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var f=0;f<e.length;f++){var p=this.fullAngle*O.negToZero(e[f])/s;l.push(p),this.chartType==="polarArea"?(l[f]=this.fullAngle/e.length,this.sliceSizes.push(r.globals.radialSize*e[f]/this.maxY)):this.sliceSizes.push(r.globals.radialSize)}if(r.globals.dataChanged){for(var x,b=0,y=0;y<r.globals.previousPaths.length;y++)b+=O.negToZero(r.globals.previousPaths[y]);for(var C=0;C<r.globals.previousPaths.length;C++)x=this.fullAngle*O.negToZero(r.globals.previousPaths[C])/b,this.prevSectorAngleArr.push(x)}this.donutSize<0&&(this.donutSize=0);var z=r.config.plotOptions.pie.customScale,L=r.globals.gridWidth/2,R=r.globals.gridHeight/2,_=L-r.globals.gridWidth/2*z,d=R-r.globals.gridHeight/2*z;if(this.chartType==="donut"){var v=i.drawCircle(this.donutSize);v.attr({cx:this.centerX,cy:this.centerY,fill:r.config.plotOptions.pie.donut.background?r.config.plotOptions.pie.donut.background:"transparent"}),h.add(v)}var M=this.drawArcs(l,e);if(this.sliceLabels.forEach(function(B){M.add(B)}),h.attr({transform:"translate(".concat(_,", ").concat(d,") scale(").concat(z,")")}),h.add(M),this.ret.add(h),this.donutDataLabels.show){var P=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:_,translateY:d});this.ret.add(P)}return r.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var r=this.w,i=new le(this.ctx),s=new U(this.ctx),n=new Ne(this.ctx),l=s.group({class:"apexcharts-slices"}),h=this.initialAngle,f=this.initialAngle,p=this.initialAngle,x=this.initialAngle;this.strokeWidth=r.config.stroke.show?r.config.stroke.width:0;for(var b=0;b<e.length;b++){var y=s.group({class:"apexcharts-series apexcharts-pie-series",seriesName:O.escapeString(r.globals.seriesNames[b]),rel:b+1,"data:realIndex":b});l.add(y),f=x,p=(h=p)+e[b],x=f+this.prevSectorAngleArr[b];var C=p<h?this.fullAngle+p-h:p-h,z=n.fillPath({seriesNumber:b,size:this.sliceSizes[b],value:t[b]}),L=this.getChangedPath(f,x),R=s.drawPath({d:L,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[b]:this.lineColorArr,strokeWidth:0,fill:z,fillOpacity:r.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(b)});if(R.attr({index:0,j:b}),i.setSelectionFilter(R,0,b),r.config.chart.dropShadow.enabled){var _=r.config.chart.dropShadow;i.dropShadow(R,_,b)}this.addListeners(R,this.donutDataLabels),U.setAttrs(R.node,{"data:angle":C,"data:startAngle":h,"data:strokeWidth":this.strokeWidth,"data:value":t[b]});var d={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?d=O.polarToCartesian(this.centerX,this.centerY,r.globals.radialSize/1.25+r.config.plotOptions.pie.dataLabels.offset,(h+C/2)%this.fullAngle):this.chartType==="donut"&&(d=O.polarToCartesian(this.centerX,this.centerY,(r.globals.radialSize+this.donutSize)/2+r.config.plotOptions.pie.dataLabels.offset,(h+C/2)%this.fullAngle)),y.add(R);var v=0;if(!this.initialAnim||r.globals.resized||r.globals.dataChanged?this.animBeginArr.push(0):((v=C/this.fullAngle*r.config.chart.animations.speed)===0&&(v=1),this.animDur=v+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&r.globals.dataChanged?this.animatePaths(R,{size:this.sliceSizes[b],endAngle:p,startAngle:h,prevStartAngle:f,prevEndAngle:x,animateStartingPos:!0,i:b,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:r.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(R,{size:this.sliceSizes[b],endAngle:p,startAngle:h,i:b,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:v}),r.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&R.click(this.pieClicked.bind(this,b)),r.globals.selectedDataPoints[0]!==void 0&&r.globals.selectedDataPoints[0].indexOf(b)>-1&&this.pieClicked(b),r.config.dataLabels.enabled){var M=d.x,P=d.y,B=100*C/this.fullAngle+"%";if(C!==0&&r.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[b]){var N=r.config.dataLabels.formatter;N!==void 0&&(B=N(r.globals.seriesPercent[b][0],{seriesIndex:b,w:r}));var W=r.globals.dataLabels.style.colors[b],G=s.group({class:"apexcharts-datalabels"}),Q=s.drawText({x:M,y:P,text:B,textAnchor:"middle",fontSize:r.config.dataLabels.style.fontSize,fontFamily:r.config.dataLabels.style.fontFamily,fontWeight:r.config.dataLabels.style.fontWeight,foreColor:W});if(G.add(Q),r.config.dataLabels.dropShadow.enabled){var ie=r.config.dataLabels.dropShadow;i.dropShadow(Q,ie)}Q.node.classList.add("apexcharts-pie-label"),r.config.chart.animations.animate&&r.globals.resized===!1&&(Q.node.classList.add("apexcharts-pie-label-delay"),Q.node.style.animationDelay=r.config.chart.animations.speed/940+"s"),this.sliceLabels.push(G)}}}return l}},{key:"addListeners",value:function(e,t){var r=new U(this.ctx);e.node.addEventListener("mouseenter",r.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",r.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",r.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var r=this.w,i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,s=i,n=t.startAngle,l=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(n=t.prevEndAngle,s=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===r.config.series.length-1&&(i+l>this.fullAngle?t.endAngle=t.endAngle-(i+l):i+l<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(i+l)))),i===this.fullAngle&&(i=this.fullAngle-.01),this.animateArc(e,n,l,i,s,t)}},{key:"animateArc",value:function(e,t,r,i,s,n){var l,h=this,f=this.w,p=new se(this.ctx),x=n.size;(isNaN(t)||isNaN(s))&&(t=r,s=i,n.dur=0);var b=i,y=r,C=t<r?this.fullAngle+t-r:t-r;f.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(l=h.getPiePath({me:h,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:x}),e.attr({d:l})),n.dur!==0?e.animate(n.dur,f.globals.easing,n.animBeginArr[n.i]).afterAll(function(){h.chartType!=="pie"&&h.chartType!=="donut"&&h.chartType!=="polarArea"||this.animate(f.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":h.strokeWidth}),n.i===f.config.series.length-1&&p.animationCompleted(e)}).during(function(z){b=C+(i-C)*z,n.animateStartingPos&&(b=s+(i-s)*z,y=t-s+(r-(t-s))*z),l=h.getPiePath({me:h,startAngle:y,angle:b,size:x}),e.node.setAttribute("data:pathOrig",l),e.attr({d:l})}):(l=h.getPiePath({me:h,startAngle:y,angle:i,size:x}),n.isTrack||(f.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",l),e.attr({d:l,"stroke-width":h.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,r=this.w,i=this,s=i.sliceSizes[e]+(r.config.plotOptions.pie.expandOnClick?4:0),n=r.globals.dom.Paper.select(".apexcharts-".concat(i.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if(n.attr("data:pieClicked")!=="true"){var l=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(l,function(x){x.setAttribute("data:pieClicked","false");var b=x.getAttribute("data:pathOrig");b&&x.setAttribute("d",b)}),n.attr("data:pieClicked","true");var h=parseInt(n.attr("data:startAngle"),10),f=parseInt(n.attr("data:angle"),10);t=i.getPiePath({me:i,startAngle:h,angle:f,size:s}),f!==360&&n.plot(t)}else{n.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(n.node,this.donutDataLabels);var p=n.attr("data:pathOrig");n.attr({d:p})}}},{key:"getChangedPath",value:function(e,t){var r="";return this.dynamicAnim&&this.w.globals.dataChanged&&(r=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),r}},{key:"getPiePath",value:function(e){var t=e.me,r=e.startAngle,i=e.angle,s=e.size,n=r,l=Math.PI*(n-90)/180,h=i+r;Math.ceil(h)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(h=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(h)>this.fullAngle&&(h-=this.fullAngle);var f=Math.PI*(h-90)/180,p=t.centerX+s*Math.cos(l),x=t.centerY+s*Math.sin(l),b=t.centerX+s*Math.cos(f),y=t.centerY+s*Math.sin(f),C=O.polarToCartesian(t.centerX,t.centerY,t.donutSize,h),z=O.polarToCartesian(t.centerX,t.centerY,t.donutSize,n),L=i>180?1:0,R=["M",p,x,"A",s,s,0,L,1,b,y];return t.chartType==="donut"?[].concat(R,["L",C.x,C.y,"A",t.donutSize,t.donutSize,0,L,0,z.x,z.y,"L",p,x,"z"]).join(" "):t.chartType==="pie"||t.chartType==="polarArea"?[].concat(R,["L",t.centerX,t.centerY,"L",p,x]).join(" "):[].concat(R).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,r=new pt(this.ctx),i=new U(this.ctx),s=new Fi(this.ctx),n=i.group(),l=i.group(),h=r.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),f=h.result.reverse(),p=h.result.length;this.maxY=h.niceMax;for(var x=t.globals.radialSize,b=x/(p-1),y=0;y<p-1;y++){var C=i.drawCircle(x);if(C.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var z=s.drawYAxisTexts(this.centerX,this.centerY-x+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,y,f[y]);l.add(z)}n.add(C),x-=b}this.drawSpokes(e),e.add(n),e.add(l)}},{key:"renderInnerDataLabels",value:function(e,t){var r=this.w,i=new U(this.ctx),s=i.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(r.config.plotOptions.pie.customScale,")")}),n=e.total.show;s.node.style.opacity=t.opacity;var l,h,f=t.centerX,p=t.centerY;l=e.name.color===void 0?r.globals.colors[0]:e.name.color;var x=e.name.fontSize,b=e.name.fontFamily,y=e.name.fontWeight;h=e.value.color===void 0?r.config.chart.foreColor:e.value.color;var C=e.value.formatter,z="",L="";if(n?(l=e.total.color,x=e.total.fontSize,b=e.total.fontFamily,y=e.total.fontWeight,L=e.total.label,z=e.total.formatter(r)):r.globals.series.length===1&&(z=C(r.globals.series[0],r),L=r.globals.seriesNames[0]),L&&(L=e.name.formatter(L,e.total.show,r)),e.name.show){var R=i.drawText({x:f,y:p+parseFloat(e.name.offsetY),text:L,textAnchor:"middle",foreColor:l,fontSize:x,fontWeight:y,fontFamily:b});R.node.classList.add("apexcharts-datalabel-label"),s.add(R)}if(e.value.show){var _=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,d=i.drawText({x:f,y:p+_,text:z,textAnchor:"middle",foreColor:h,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});d.node.classList.add("apexcharts-datalabel-value"),s.add(d)}return s}},{key:"printInnerLabels",value:function(e,t,r,i){var s,n=this.w;i?s=e.name.color===void 0?n.globals.colors[parseInt(i.parentNode.getAttribute("rel"),10)-1]:e.name.color:n.globals.series.length>1&&e.total.show&&(s=e.total.color);var l=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),h=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");r=(0,e.value.formatter)(r,n),i||typeof e.total.formatter!="function"||(r=e.total.formatter(n));var f=t===e.total.label;t=e.name.formatter(t,f,n),l!==null&&(l.textContent=t),h!==null&&(h.textContent=r),l!==null&&(l.style.fill=s)}},{key:"printDataLabelsInner",value:function(e,t){var r=this.w,i=e.getAttribute("data:value"),s=r.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];r.globals.series.length>1&&this.printInnerLabels(t,s,i,e);var n=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");n!==null&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,r=this.w,i=new U(this.ctx),s=r.config.plotOptions.polarArea.spokes;if(s.strokeWidth!==0){for(var n=[],l=360/r.globals.series.length,h=0;h<r.globals.series.length;h++)n.push(O.polarToCartesian(this.centerX,this.centerY,r.globals.radialSize,r.config.plotOptions.pie.startAngle+l*h));n.forEach(function(f,p){var x=i.drawLine(f.x,f.y,t.centerX,t.centerY,Array.isArray(s.connectorColors)?s.connectorColors[p]:s.connectorColors);e.add(x)})}}},{key:"revertDataLabelsInner",value:function(e,t,r){var i=this,s=this.w,n=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),l=!1,h=s.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),f=function(b){var y=b.makeSliceOut,C=b.printLabel;Array.prototype.forEach.call(h,function(z){z.getAttribute("data:pieClicked")==="true"&&(y&&(l=!0),C&&i.printDataLabelsInner(z,t))})};if(f({makeSliceOut:!0,printLabel:!1}),t.total.show&&s.globals.series.length>1)l&&!t.total.showAlways?f({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(s));else if(f({makeSliceOut:!1,printLabel:!0}),!l)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var p=s.globals.selectedDataPoints[0],x=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(p));this.printDataLabelsInner(x,t)}else n&&s.globals.selectedDataPoints.length&&s.globals.selectedDataPoints[0].length===0&&(n.style.opacity=0);else n&&s.globals.series.length>1&&(n.style.opacity=0)}}]),E}(),So=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var t=this.w;this.graphics=new U(this.ctx),this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=t.globals.svgHeight<t.globals.svgWidth?t.globals.gridHeight+1.5*t.globals.goldenPadding:t.globals.gridWidth,this.isLog=t.config.yaxis[0].logarithmic,this.coreUtils=new re(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(t.globals.maxY,0):t.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):t.globals.minY,this.polygons=t.config.plotOptions.radar.polygons,this.strokeWidth=t.config.stroke.show?t.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-t.config.chart.dropShadow.blur,t.config.xaxis.labels.show&&(this.size=this.size-t.globals.xAxisLabelsWidth/1.75),t.config.plotOptions.radar.size!==void 0&&(this.size=t.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return w(E,[{key:"draw",value:function(e){var t=this,r=this.w,i=new Ne(this.ctx),s=[],n=new pe(this.ctx);e.length&&(this.dataPointsLen=e[r.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var l=r.globals.gridWidth/2,h=r.globals.gridHeight/2,f=l+r.config.plotOptions.radar.offsetX,p=h+r.config.plotOptions.radar.offsetY,x=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(f||0,", ").concat(p||0,")")}),b=[],y=null,C=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(L,R){var _=L.length===r.globals.dataPoints,d=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":_,seriesName:O.escapeString(r.globals.seriesNames[R]),rel:R+1,"data:realIndex":R});t.dataRadiusOfPercent[R]=[],t.dataRadius[R]=[],t.angleArr[R]=[],L.forEach(function(te,ce){var me=Math.abs(t.maxValue-t.minValue);te+=Math.abs(t.minValue),t.isLog&&(te=t.coreUtils.getLogVal(te,0)),t.dataRadiusOfPercent[R][ce]=te/me,t.dataRadius[R][ce]=t.dataRadiusOfPercent[R][ce]*t.size,t.angleArr[R][ce]=ce*t.disAngle}),b=t.getDataPointsPos(t.dataRadius[R],t.angleArr[R]);var v=t.createPaths(b,{x:0,y:0});y=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),C=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":R}),r.globals.delayedElements.push({el:y.node,index:R});var M={i:R,realIndex:R,animationDelay:R,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:r.globals.stroke.colors[R],strokeLineCap:r.config.stroke.lineCap},P=null;r.globals.previousPaths.length>0&&(P=t.getPreviousPath(R));for(var B=0;B<v.linePathsTo.length;B++){var N=t.graphics.renderPaths(u(u({},M),{},{pathFrom:P===null?v.linePathsFrom[B]:P,pathTo:v.linePathsTo[B],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[R]:t.strokeWidth,fill:"none",drawShadow:!1}));d.add(N);var W=i.fillPath({seriesNumber:R}),G=t.graphics.renderPaths(u(u({},M),{},{pathFrom:P===null?v.areaPathsFrom[B]:P,pathTo:v.areaPathsTo[B],strokeWidth:0,fill:W,drawShadow:!1}));if(r.config.chart.dropShadow.enabled){var Q=new le(t.ctx),ie=r.config.chart.dropShadow;Q.dropShadow(G,Object.assign({},ie,{noUserSpaceOnUse:!0}),R)}d.add(G)}L.forEach(function(te,ce){var me=new ct(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:R,dataPointIndex:ce}),Le=t.graphics.drawMarker(b[ce].x,b[ce].y,me);Le.attr("rel",ce),Le.attr("j",ce),Le.attr("index",R),Le.node.setAttribute("default-marker-size",me.pSize);var De=t.graphics.group({class:"apexcharts-series-markers"});De&&De.add(Le),y.add(De),d.add(y);var Ie=r.config.dataLabels;if(Ie.enabled){var Ve=Ie.formatter(r.globals.series[R][ce],{seriesIndex:R,dataPointIndex:ce,w:r});n.plotDataLabelsText({x:b[ce].x,y:b[ce].y,text:Ve,textAnchor:"middle",i:R,j:R,parent:C,offsetCorrection:!1,dataLabelsConfig:u({},Ie)})}d.add(C)}),s.push(d)}),this.drawPolygons({parent:x}),r.config.xaxis.labels.show){var z=this.drawXAxisTexts();x.add(z)}return s.forEach(function(L){x.add(L)}),x.add(this.yaxisLabels),x}},{key:"drawPolygons",value:function(e){for(var t=this,r=this.w,i=e.parent,s=new Fi(this.ctx),n=r.globals.yAxisScale[0].result.reverse(),l=n.length,h=[],f=this.size/(l-1),p=0;p<l;p++)h[p]=f*p;h.reverse();var x=[],b=[];h.forEach(function(y,C){var z=O.getPolygonPos(y,t.dataPointsLen),L="";z.forEach(function(R,_){if(C===0){var d=t.graphics.drawLine(R.x,R.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[_]:t.polygons.connectorColors);b.push(d)}_===0&&t.yaxisLabelsTextsPos.push({x:R.x,y:R.y}),L+=R.x+","+R.y+" "}),x.push(L)}),x.forEach(function(y,C){var z=t.polygons.strokeColors,L=t.polygons.strokeWidth,R=t.graphics.drawPolygon(y,Array.isArray(z)?z[C]:z,Array.isArray(L)?L[C]:L,r.globals.radarPolygons.fill.colors[C]);i.add(R)}),b.forEach(function(y){i.add(y)}),r.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(y,C){var z=s.drawYAxisTexts(y.x,y.y,C,n[C]);t.yaxisLabels.add(z)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,r=t.config.xaxis.labels,i=this.graphics.group({class:"apexcharts-xaxis"}),s=O.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(n,l){var h=t.config.xaxis.labels.formatter,f=new pe(e.ctx);if(s[l]){var p=e.getTextPos(s[l],e.size),x=h(n,{seriesIndex:-1,dataPointIndex:l,w:t});f.plotDataLabelsText({x:p.newX,y:p.newY,text:x,textAnchor:p.textAnchor,i:l,j:l,parent:i,color:Array.isArray(r.style.colors)&&r.style.colors[l]?r.style.colors[l]:"#a8a8a8",dataLabelsConfig:u({textAnchor:p.textAnchor,dropShadow:{enabled:!1}},r),offsetCorrection:!1})}}),i}},{key:"createPaths",value:function(e,t){var r=this,i=[],s=[],n=[],l=[];if(e.length){s=[this.graphics.move(t.x,t.y)],l=[this.graphics.move(t.x,t.y)];var h=this.graphics.move(e[0].x,e[0].y),f=this.graphics.move(e[0].x,e[0].y);e.forEach(function(p,x){h+=r.graphics.line(p.x,p.y),f+=r.graphics.line(p.x,p.y),x===e.length-1&&(h+="Z",f+="Z")}),i.push(h),n.push(f)}return{linePathsFrom:s,linePathsTo:i,areaPathsFrom:l,areaPathsTo:n}}},{key:"getTextPos",value:function(e,t){var r="middle",i=e.x,s=e.y;return Math.abs(e.x)>=10?e.x>0?(r="start",i+=10):e.x<0&&(r="end",i-=10):r="middle",Math.abs(e.y)>=t-10&&(e.y<0?s-=10:e.y>0&&(s+=10)),{textAnchor:r,newX:i,newY:s}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,r=null,i=0;i<t.globals.previousPaths.length;i++){var s=t.globals.previousPaths[i];s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(e,10)&&t.globals.previousPaths[i].paths[0]!==void 0&&(r=t.globals.previousPaths[i].paths[0].d)}return r}},{key:"getDataPointsPos",value:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var i=[],s=0;s<r;s++){var n={};n.x=e[s]*Math.sin(t[s]),n.y=-e[s]*Math.cos(t[s]),i.push(n)}return i}}]),E}(),Co=function(E){D(t,_i);var e=X(t);function t(r){var i;m(this,t),(i=e.call(this,r)).ctx=r,i.w=r.w,i.animBeginArr=[0],i.animDur=0;var s=i.w;return i.startAngle=s.config.plotOptions.radialBar.startAngle,i.endAngle=s.config.plotOptions.radialBar.endAngle,i.totalAngle=Math.abs(s.config.plotOptions.radialBar.endAngle-s.config.plotOptions.radialBar.startAngle),i.trackStartAngle=s.config.plotOptions.radialBar.track.startAngle,i.trackEndAngle=s.config.plotOptions.radialBar.track.endAngle,i.donutDataLabels=i.w.config.plotOptions.radialBar.dataLabels,i.radialDataLabels=i.donutDataLabels,i.trackStartAngle||(i.trackStartAngle=i.startAngle),i.trackEndAngle||(i.trackEndAngle=i.endAngle),i.endAngle===360&&(i.endAngle=359.99),i.margin=parseInt(s.config.plotOptions.radialBar.track.margin,10),i}return w(t,[{key:"draw",value:function(r){var i=this.w,s=new U(this.ctx),n=s.group({class:"apexcharts-radialbar"});if(i.globals.noData)return n;var l=s.group(),h=this.defaultSize/2,f=i.globals.gridWidth/2,p=this.defaultSize/2.05;i.config.chart.sparkline.enabled||(p=p-i.config.stroke.width-i.config.chart.dropShadow.blur);var x=i.globals.fill.colors;if(i.config.plotOptions.radialBar.track.show){var b=this.drawTracks({size:p,centerX:f,centerY:h,colorArr:x,series:r});l.add(b)}var y=this.drawArcs({size:p,centerX:f,centerY:h,colorArr:x,series:r}),C=360;i.config.plotOptions.radialBar.startAngle<0&&(C=this.totalAngle);var z=(360-C)/360;if(i.globals.radialSize=p-p*z,this.radialDataLabels.value.show){var L=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);i.globals.radialSize+=L*z}return l.add(y.g),i.config.plotOptions.radialBar.hollow.position==="front"&&(y.g.add(y.elHollow),y.dataLabels&&y.g.add(y.dataLabels)),n.add(l),n}},{key:"drawTracks",value:function(r){var i=this.w,s=new U(this.ctx),n=s.group({class:"apexcharts-tracks"}),l=new le(this.ctx),h=new Ne(this.ctx),f=this.getStrokeWidth(r);r.size=r.size-f/2;for(var p=0;p<r.series.length;p++){var x=s.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(x),x.attr({rel:p+1}),r.size=r.size-f-this.margin;var b=i.config.plotOptions.radialBar.track,y=h.fillPath({seriesNumber:0,size:r.size,fillColors:Array.isArray(b.background)?b.background[p]:b.background,solid:!0}),C=this.trackStartAngle,z=this.trackEndAngle;Math.abs(z)+Math.abs(C)>=360&&(z=360-Math.abs(this.startAngle)-.1);var L=s.drawPath({d:"",stroke:y,strokeWidth:f*parseInt(b.strokeWidth,10)/100,fill:"none",strokeOpacity:b.opacity,classes:"apexcharts-radialbar-area"});if(b.dropShadow.enabled){var R=b.dropShadow;l.dropShadow(L,R)}x.add(L),L.attr("id","apexcharts-radialbarTrack-"+p),this.animatePaths(L,{centerX:r.centerX,centerY:r.centerY,endAngle:z,startAngle:C,size:r.size,i:p,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:i.globals.easing})}return n}},{key:"drawArcs",value:function(r){var i=this.w,s=new U(this.ctx),n=new Ne(this.ctx),l=new le(this.ctx),h=s.group(),f=this.getStrokeWidth(r);r.size=r.size-f/2;var p=i.config.plotOptions.radialBar.hollow.background,x=r.size-f*r.series.length-this.margin*r.series.length-f*parseInt(i.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,b=x-i.config.plotOptions.radialBar.hollow.margin;i.config.plotOptions.radialBar.hollow.image!==void 0&&(p=this.drawHollowImage(r,h,x,p));var y=this.drawHollow({size:b,centerX:r.centerX,centerY:r.centerY,fill:p||"transparent"});if(i.config.plotOptions.radialBar.hollow.dropShadow.enabled){var C=i.config.plotOptions.radialBar.hollow.dropShadow;l.dropShadow(y,C)}var z=1;!this.radialDataLabels.total.show&&i.globals.series.length>1&&(z=0);var L=null;this.radialDataLabels.show&&(L=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:x,centerX:r.centerX,centerY:r.centerY,opacity:z})),i.config.plotOptions.radialBar.hollow.position==="back"&&(h.add(y),L&&h.add(L));var R=!1;i.config.plotOptions.radialBar.inverseOrder&&(R=!0);for(var _=R?r.series.length-1:0;R?_>=0:_<r.series.length;R?_--:_++){var d=s.group({class:"apexcharts-series apexcharts-radial-series",seriesName:O.escapeString(i.globals.seriesNames[_])});h.add(d),d.attr({rel:_+1,"data:realIndex":_}),this.ctx.series.addCollapsedClassToSeries(d,_),r.size=r.size-f-this.margin;var v=n.fillPath({seriesNumber:_,size:r.size,value:r.series[_]}),M=this.startAngle,P=void 0,B=O.negToZero(r.series[_]>100?100:r.series[_])/100,N=Math.round(this.totalAngle*B)+this.startAngle,W=void 0;i.globals.dataChanged&&(P=this.startAngle,W=Math.round(this.totalAngle*O.negToZero(i.globals.previousPaths[_])/100)+P),Math.abs(N)+Math.abs(M)>=360&&(N-=.01),Math.abs(W)+Math.abs(P)>=360&&(W-=.01);var G=N-M,Q=Array.isArray(i.config.stroke.dashArray)?i.config.stroke.dashArray[_]:i.config.stroke.dashArray,ie=s.drawPath({d:"",stroke:v,strokeWidth:f,fill:"none",fillOpacity:i.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+_,strokeDashArray:Q});if(U.setAttrs(ie.node,{"data:angle":G,"data:value":r.series[_]}),i.config.chart.dropShadow.enabled){var te=i.config.chart.dropShadow;l.dropShadow(ie,te,_)}l.setSelectionFilter(ie,0,_),this.addListeners(ie,this.radialDataLabels),d.add(ie),ie.attr({index:0,j:_});var ce=0;!this.initialAnim||i.globals.resized||i.globals.dataChanged||(ce=i.config.chart.animations.speed),i.globals.dataChanged&&(ce=i.config.chart.animations.dynamicAnimation.speed),this.animDur=ce/(1.2*r.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(ie,{centerX:r.centerX,centerY:r.centerY,endAngle:N,startAngle:M,prevEndAngle:W,prevStartAngle:P,size:r.size,i:_,totalItems:2,animBeginArr:this.animBeginArr,dur:ce,shouldSetPrevPaths:!0,easing:i.globals.easing})}return{g:h,elHollow:y,dataLabels:L}}},{key:"drawHollow",value:function(r){var i=new U(this.ctx).drawCircle(2*r.size);return i.attr({class:"apexcharts-radialbar-hollow",cx:r.centerX,cy:r.centerY,r:r.size,fill:r.fill}),i}},{key:"drawHollowImage",value:function(r,i,s,n){var l=this.w,h=new Ne(this.ctx),f=O.randomId(),p=l.config.plotOptions.radialBar.hollow.image;if(l.config.plotOptions.radialBar.hollow.imageClipped)h.clippedImgArea({width:s,height:s,image:p,patternID:"pattern".concat(l.globals.cuid).concat(f)}),n="url(#pattern".concat(l.globals.cuid).concat(f,")");else{var x=l.config.plotOptions.radialBar.hollow.imageWidth,b=l.config.plotOptions.radialBar.hollow.imageHeight;if(x===void 0&&b===void 0){var y=l.globals.dom.Paper.image(p).loaded(function(z){this.move(r.centerX-z.width/2+l.config.plotOptions.radialBar.hollow.imageOffsetX,r.centerY-z.height/2+l.config.plotOptions.radialBar.hollow.imageOffsetY)});i.add(y)}else{var C=l.globals.dom.Paper.image(p).loaded(function(z){this.move(r.centerX-x/2+l.config.plotOptions.radialBar.hollow.imageOffsetX,r.centerY-b/2+l.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(x,b)});i.add(C)}}return n}},{key:"getStrokeWidth",value:function(r){var i=this.w;return r.size*(100-parseInt(i.config.plotOptions.radialBar.hollow.size,10))/100/(r.series.length+1)-this.margin}}]),t}(),Mo=function(E){D(t,nr);var e=X(t);function t(){return m(this,t),e.apply(this,arguments)}return w(t,[{key:"draw",value:function(r,i){var s=this.w,n=new U(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=r,this.seriesRangeStart=s.globals.seriesRangeStart,this.seriesRangeEnd=s.globals.seriesRangeEnd,this.barHelpers.initVariables(r);for(var l=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),h=0;h<r.length;h++){var f,p,x,b,y=void 0,C=void 0,z=s.globals.comboCharts?i[h]:h,L=n.group({class:"apexcharts-series",seriesName:O.escapeString(s.globals.seriesNames[z]),rel:h+1,"data:realIndex":z});this.ctx.series.addCollapsedClassToSeries(L,z),r[h].length>0&&(this.visibleI=this.visibleI+1);var R=0,_=0;this.yRatio.length>1&&(this.yaxisIndex=z);var d=this.barHelpers.initialPositions();C=d.y,b=d.zeroW,y=d.x,_=d.barWidth,R=d.barHeight,f=d.xDivision,p=d.yDivision,x=d.zeroH;for(var v=n.group({class:"apexcharts-datalabels","data:realIndex":z}),M=n.group({class:"apexcharts-rangebar-goals-markers"}),P=0;P<s.globals.dataPoints;P++){var B,N=this.barHelpers.getStrokeWidth(h,P,z),W=this.seriesRangeStart[h][P],G=this.seriesRangeEnd[h][P],Q=null,ie=null,te=null,ce={x:y,y:C,strokeWidth:N,elSeries:L},me=this.seriesLen;if(s.config.plotOptions.bar.rangeBarGroupRows&&(me=1),s.config.series[h].data[P]===void 0)break;if(this.isHorizontal){te=C+R*this.visibleI;var Le=(p-R*me)/2;if(s.config.series[h].data[P].x){var De=this.detectOverlappingBars({i:h,j:P,barYPosition:te,srty:Le,barHeight:R,yDivision:p,initPositions:d});R=De.barHeight,te=De.barYPosition}_=(Q=this.drawRangeBarPaths(u({indexes:{i:h,j:P,realIndex:z},barHeight:R,barYPosition:te,zeroW:b,yDivision:p,y1:W,y2:G},ce))).barWidth}else{s.globals.isXNumeric&&(y=(s.globals.seriesX[h][P]-s.globals.minX)/this.xRatio-_/2),ie=y+_*this.visibleI;var Ie=(f-_*me)/2;if(s.config.series[h].data[P].x){var Ve=this.detectOverlappingBars({i:h,j:P,barXPosition:ie,srtx:Ie,barWidth:_,xDivision:f,initPositions:d});_=Ve.barWidth,ie=Ve.barXPosition}R=(Q=this.drawRangeColumnPaths(u({indexes:{i:h,j:P,realIndex:z},barWidth:_,barXPosition:ie,zeroH:x,xDivision:f},ce))).barHeight}var Oe=this.barHelpers.drawGoalLine({barXPosition:Q.barXPosition,barYPosition:te,goalX:Q.goalX,goalY:Q.goalY,barHeight:R,barWidth:_});Oe&&M.add(Oe),C=Q.y,y=Q.x;var $e=this.barHelpers.getPathFillColor(r,h,P,z),Ht=s.globals.stroke.colors[z];this.renderSeries((S(B={realIndex:z,pathFill:$e,lineFill:Ht,j:P,i:h,x:y,y:C,y1:W,y2:G,pathFrom:Q.pathFrom,pathTo:Q.pathTo,strokeWidth:N,elSeries:L,series:r,barHeight:R,barWidth:_,barXPosition:ie,barYPosition:te},"barWidth",_),S(B,"elDataLabelsWrap",v),S(B,"elGoalsMarkers",M),S(B,"visibleSeries",this.visibleI),S(B,"type","rangebar"),B))}l.add(L)}return l}},{key:"detectOverlappingBars",value:function(r){var i=r.i,s=r.j,n=r.barYPosition,l=r.barXPosition,h=r.srty,f=r.srtx,p=r.barHeight,x=r.barWidth,b=r.yDivision,y=r.xDivision,C=r.initPositions,z=this.w,L=[],R=z.config.series[i].data[s].rangeName,_=z.config.series[i].data[s].x,d=Array.isArray(_)?_.join(" "):_,v=z.globals.labels.map(function(P){return Array.isArray(P)?P.join(" "):P}).indexOf(d),M=z.globals.seriesRange[i].findIndex(function(P){return P.x===d&&P.overlaps.length>0});return this.isHorizontal?(n=z.config.plotOptions.bar.rangeBarGroupRows?h+b*v:h+p*this.visibleI+b*v,M>-1&&!z.config.plotOptions.bar.rangeBarOverlap&&(L=z.globals.seriesRange[i][M].overlaps).indexOf(R)>-1&&(n=(p=C.barHeight/L.length)*this.visibleI+b*(100-parseInt(this.barOptions.barHeight,10))/100/2+p*(this.visibleI+L.indexOf(R))+b*v)):(v>-1&&(l=z.config.plotOptions.bar.rangeBarGroupRows?f+y*v:f+x*this.visibleI+y*v),M>-1&&!z.config.plotOptions.bar.rangeBarOverlap&&(L=z.globals.seriesRange[i][M].overlaps).indexOf(R)>-1&&(l=(x=C.barWidth/L.length)*this.visibleI+y*(100-parseInt(this.barOptions.barWidth,10))/100/2+x*(this.visibleI+L.indexOf(R))+y*v)),{barYPosition:n,barXPosition:l,barHeight:p,barWidth:x}}},{key:"drawRangeColumnPaths",value:function(r){var i=r.indexes,s=r.x,n=r.xDivision,l=r.barWidth,h=r.barXPosition,f=r.zeroH,p=this.w,x=i.i,b=i.j,y=this.yRatio[this.yaxisIndex],C=i.realIndex,z=this.getRangeValue(C,b),L=Math.min(z.start,z.end),R=Math.max(z.start,z.end);this.series[x][b]===void 0||this.series[x][b]===null?L=f:(L=f-L/y,R=f-R/y);var _=Math.abs(R-L),d=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:l,y1:L,y2:R,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:i.realIndex,i:C,j:b,w:p});return p.globals.isXNumeric||(s+=n),{pathTo:d.pathTo,pathFrom:d.pathFrom,barHeight:_,x:s,y:R,goalY:this.barHelpers.getGoalValues("y",null,f,x,b),barXPosition:h}}},{key:"drawRangeBarPaths",value:function(r){var i=r.indexes,s=r.y,n=r.y1,l=r.y2,h=r.yDivision,f=r.barHeight,p=r.barYPosition,x=r.zeroW,b=this.w,y=x+n/this.invertedYRatio,C=x+l/this.invertedYRatio,z=Math.abs(C-y),L=this.barHelpers.getBarpaths({barYPosition:p,barHeight:f,x1:y,x2:C,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:i.realIndex,realIndex:i.realIndex,j:i.j,w:b});return b.globals.isXNumeric||(s+=h),{pathTo:L.pathTo,pathFrom:L.pathFrom,barWidth:z,x:C,goalX:this.barHelpers.getGoalValues("x",x,null,i.realIndex,i.j),y:s}}},{key:"getRangeValue",value:function(r,i){var s=this.w;return{start:s.globals.seriesRangeStart[r][i],end:s.globals.seriesRangeEnd[r][i]}}}]),t}(),zo=function(){function E(e){m(this,E),this.w=e.w,this.lineCtx=e}return w(E,[{key:"sameValueSeriesFix",value:function(e,t){var r=this.w;if((r.config.fill.type==="gradient"||r.config.fill.type[e]==="gradient")&&new re(this.lineCtx.ctx,r).seriesHaveSameValues(e)){var i=t[e].slice();i[i.length-1]=i[i.length-1]+1e-6,t[e]=i}return t}},{key:"calculatePoints",value:function(e){var t=e.series,r=e.realIndex,i=e.x,s=e.y,n=e.i,l=e.j,h=e.prevY,f=this.w,p=[],x=[];if(l===0){var b=this.lineCtx.categoryAxisCorrection+f.config.markers.offsetX;f.globals.isXNumeric&&(b=(f.globals.seriesX[r][0]-f.globals.minX)/this.lineCtx.xRatio+f.config.markers.offsetX),p.push(b),x.push(O.isNumber(t[n][0])?h+f.config.markers.offsetY:null),p.push(i+f.config.markers.offsetX),x.push(O.isNumber(t[n][l+1])?s+f.config.markers.offsetY:null)}else p.push(i+f.config.markers.offsetX),x.push(O.isNumber(t[n][l+1])?s+f.config.markers.offsetY:null);return{x:p,y:x}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,r=e.pathFromArea,i=e.realIndex,s=this.w,n=0;n<s.globals.previousPaths.length;n++){var l=s.globals.previousPaths[n];(l.type==="line"||l.type==="area")&&l.paths.length>0&&parseInt(l.realIndex,10)===parseInt(i,10)&&(l.type==="line"?(this.lineCtx.appendPathFrom=!1,t=s.globals.previousPaths[n].paths[0].d):l.type==="area"&&(this.lineCtx.appendPathFrom=!1,r=s.globals.previousPaths[n].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[n].paths[1]&&(t=s.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:t,pathFromArea:r}}},{key:"determineFirstPrevY",value:function(e){var t,r=e.i,i=e.series,s=e.prevY,n=e.lineYPosition,l=this.w;if(((t=i[r])===null||t===void 0?void 0:t[0])!==void 0)s=(n=l.config.chart.stacked&&r>0?this.lineCtx.prevSeriesY[r-1][0]:this.lineCtx.zeroY)-i[r][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[r][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(l.config.chart.stacked&&r>0&&i[r][0]===void 0){for(var h=r-1;h>=0;h--)if(i[h][0]!==null&&i[h][0]!==void 0){s=n=this.lineCtx.prevSeriesY[h][0];break}}return{prevY:s,lineYPosition:n}}}]),E}(),ba=function(){function E(e,t,r){m(this,E),this.ctx=e,this.w=e.w,this.xyRatios=t,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||r,this.scatter=new gt(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new zo(this),this.markers=new ct(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return w(E,[{key:"draw",value:function(e,t,r,i){var s=this.w,n=new U(this.ctx),l=s.globals.comboCharts?t:s.config.chart.type,h=n.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),f=new re(this.ctx,s);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=f.getLogSeries(e),this.yRatio=f.getLogYRatios(this.yRatio);for(var p=[],x=0;x<e.length;x++){e=this.lineHelpers.sameValueSeriesFix(x,e);var b=s.globals.comboCharts?r[x]:x;this._initSerieVariables(e,x,b);var y=[],C=[],z=s.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,b),s.globals.isXNumeric&&s.globals.seriesX.length>0&&(z=(s.globals.seriesX[b][0]-s.globals.minX)/this.xRatio),C.push(z);var L,R=z,_=void 0,d=R,v=this.zeroY,M=this.zeroY;v=this.lineHelpers.determineFirstPrevY({i:x,series:e,prevY:v,lineYPosition:0}).prevY,y.push(v),L=v,l==="rangeArea"&&(_=M=this.lineHelpers.determineFirstPrevY({i:x,series:i,prevY:M,lineYPosition:0}).prevY);var P={type:l,series:e,realIndex:b,i:x,x:z,y:1,pX:R,pY:L,pathsFrom:this._calculatePathsFrom({type:l,series:e,i:x,realIndex:b,prevX:d,prevY:v,prevY2:M}),linePaths:[],areaPaths:[],seriesIndex:r,lineYPosition:0,xArrj:C,yArrj:y,seriesRangeEnd:i},B=this._iterateOverDataPoints(u(u({},P),{},{iterations:l==="rangeArea"?e[x].length-1:void 0,isRangeStart:!0}));if(l==="rangeArea"){var N=this._calculatePathsFrom({series:i,i:x,realIndex:b,prevX:d,prevY:M}),W=this._iterateOverDataPoints(u(u({},P),{},{series:i,pY:_,pathsFrom:N,iterations:i[x].length-1,isRangeStart:!1}));B.linePaths[0]=W.linePath+B.linePath,B.pathFromLine=W.pathFromLine+B.pathFromLine}this._handlePaths({type:l,realIndex:b,i:x,paths:B}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),p.push(this.elSeries)}if(s.config.chart.stacked)for(var G=p.length;G>0;G--)h.add(p[G-1]);else for(var Q=0;Q<p.length;Q++)h.add(p[Q]);return h}},{key:"_initSerieVariables",value:function(e,t,r){var i=this.w,s=new U(this.ctx);this.xDivision=i.globals.gridWidth/(i.globals.dataPoints-(i.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(i.config.stroke.width)?i.config.stroke.width[r]:i.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=r),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.zeroY=i.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?i.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>i.globals.gridHeight||i.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=i.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",seriesName:O.escapeString(i.globals.seriesNames[r])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":r}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":r});var n=e[t].length===i.globals.dataPoints;this.elSeries.attr({"data:longestSeries":n,rel:t+1,"data:realIndex":r}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,r,i,s,n=e.type,l=e.series,h=e.i,f=e.realIndex,p=e.prevX,x=e.prevY,b=e.prevY2,y=this.w,C=new U(this.ctx);if(l[h][0]===null){for(var z=0;z<l[h].length;z++)if(l[h][z]!==null){p=this.xDivision*z,x=this.zeroY-l[h][z]/this.yRatio[this.yaxisIndex],t=C.move(p,x),r=C.move(p,this.areaBottomY);break}}else t=C.move(p,x),n==="rangeArea"&&(t=C.move(p,b)+C.line(p,x)),r=C.move(p,this.areaBottomY)+C.line(p,x);if(i=C.move(-1,this.zeroY)+C.line(-1,this.zeroY),s=C.move(-1,this.zeroY)+C.line(-1,this.zeroY),y.globals.previousPaths.length>0){var L=this.lineHelpers.checkPreviousPaths({pathFromLine:i,pathFromArea:s,realIndex:f});i=L.pathFromLine,s=L.pathFromArea}return{prevX:p,prevY:x,linePath:t,areaPath:r,pathFromLine:i,pathFromArea:s}}},{key:"_handlePaths",value:function(e){var t=e.type,r=e.realIndex,i=e.i,s=e.paths,n=this.w,l=new U(this.ctx),h=new Ne(this.ctx);this.prevSeriesY.push(s.yArrj),n.globals.seriesXvalues[r]=s.xArrj,n.globals.seriesYvalues[r]=s.yArrj;var f=n.config.forecastDataPoints;if(f.count>0&&t!=="rangeArea"){var p=n.globals.seriesXvalues[r][n.globals.seriesXvalues[r].length-f.count-1],x=l.drawRect(p,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(x.node);var b=l.drawRect(0,0,p,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(b.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:r});var y={i,realIndex:r,animationDelay:i,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var C=h.fillPath({seriesNumber:r}),z=0;z<s.areaPaths.length;z++){var L=l.renderPaths(u(u({},y),{},{pathFrom:s.pathFromArea,pathTo:s.areaPaths[z],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:C}));this.elSeries.add(L)}if(n.config.stroke.show&&!this.pointsChart){var R=null;if(t==="line")R=h.fillPath({seriesNumber:r,i});else if(n.config.stroke.fill.type==="solid")R=n.globals.stroke.colors[r];else{var _=n.config.fill;n.config.fill=n.config.stroke.fill,R=h.fillPath({seriesNumber:r,i}),n.config.fill=_}for(var d=0;d<s.linePaths.length;d++){var v=R;t==="rangeArea"&&(v=h.fillPath({seriesNumber:r}));var M=u(u({},y),{},{pathFrom:s.pathFromLine,pathTo:s.linePaths[d],stroke:R,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:t==="rangeArea"?v:"none"}),P=l.renderPaths(M);if(this.elSeries.add(P),P.attr("fill-rule","evenodd"),f.count>0&&t!=="rangeArea"){var B=l.renderPaths(M);B.node.setAttribute("stroke-dasharray",f.dashArray),f.strokeWidth&&B.node.setAttribute("stroke-width",f.strokeWidth),this.elSeries.add(B),B.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),P.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t=e.type,r=e.series,i=e.iterations,s=e.realIndex,n=e.i,l=e.x,h=e.y,f=e.pX,p=e.pY,x=e.pathsFrom,b=e.linePaths,y=e.areaPaths,C=e.seriesIndex,z=e.lineYPosition,L=e.xArrj,R=e.yArrj,_=e.isRangeStart,d=e.seriesRangeEnd,v=this.w,M=new U(this.ctx),P=this.yRatio,B=x.prevY,N=x.linePath,W=x.areaPath,G=x.pathFromLine,Q=x.pathFromArea,ie=O.isNumber(v.globals.minYArr[s])?v.globals.minYArr[s]:v.globals.minY;i||(i=v.globals.dataPoints>1?v.globals.dataPoints-1:v.globals.dataPoints);for(var te=h,ce=0;ce<i;ce++){var me=r[n][ce+1]===void 0||r[n][ce+1]===null;if(v.globals.isXNumeric){var Le=v.globals.seriesX[s][ce+1];v.globals.seriesX[s][ce+1]===void 0&&(Le=v.globals.seriesX[s][i-1]),l=(Le-v.globals.minX)/this.xRatio}else l+=this.xDivision;v.config.chart.stacked?n>0&&v.globals.collapsedSeries.length<v.config.series.length-1?z=this.prevSeriesY[function(Ve){for(var Oe=Ve,$e=0;$e<v.globals.series.length;$e++)if(v.globals.collapsedSeriesIndices.indexOf(Ve)>-1){Oe--;break}return Oe>=0?Oe:0}(n-1)][ce+1]:z=this.zeroY:z=this.zeroY,me?h=z-ie/P[this.yaxisIndex]+2*(this.isReversed?ie/P[this.yaxisIndex]:0):(h=z-r[n][ce+1]/P[this.yaxisIndex]+2*(this.isReversed?r[n][ce+1]/P[this.yaxisIndex]:0),t==="rangeArea"&&(te=z-d[n][ce+1]/P[this.yaxisIndex]+2*(this.isReversed?d[n][ce+1]/P[this.yaxisIndex]:0))),L.push(l),R.push(h);var De=this.lineHelpers.calculatePoints({series:r,x:l,y:h,realIndex:s,i:n,j:ce,prevY:B}),Ie=this._createPaths({type:t,series:r,i:n,realIndex:s,j:ce,x:l,y:h,y2:te,pX:f,pY:p,linePath:N,areaPath:W,linePaths:b,areaPaths:y,seriesIndex:C,isRangeStart:_});y=Ie.areaPaths,b=Ie.linePaths,f=Ie.pX,p=Ie.pY,W=Ie.areaPath,N=Ie.linePath,this.appendPathFrom&&(G+=M.line(l,this.zeroY),Q+=M.line(l,this.zeroY)),this.handleNullDataPoints(r,De,n,ce,s),this._handleMarkersAndLabels({type:t,pointsPos:De,i:n,j:ce,realIndex:s,isRangeStart:_})}return{yArrj:R,xArrj:L,pathFromArea:Q,areaPaths:y,pathFromLine:G,linePaths:b,linePath:N,areaPath:W}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,r=e.pointsPos,i=e.isRangeStart,s=e.i,n=e.j,l=e.realIndex,h=this.w,f=new pe(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:l,pointsPos:r,zRatio:this.zRatio,elParent:this.elPointsMain});else{h.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var p=this.markers.plotChartMarkers(r,l,n+1);p!==null&&this.elPointsMain.add(p)}var x=f.drawDataLabel({type:t,isRangeStart:i,pos:r,i:l,j:n+1});x!==null&&this.elDataLabelsWrap.add(x)}},{key:"_createPaths",value:function(e){var t=e.type,r=e.series,i=e.i,s=e.realIndex,n=e.j,l=e.x,h=e.y,f=e.y2,p=e.pX,x=e.pY,b=e.linePath,y=e.areaPath,C=e.linePaths,z=e.areaPaths,L=e.seriesIndex,R=e.isRangeStart,_=this.w,d=new U(this.ctx),v=_.config.stroke.curve,M=this.areaBottomY;if(Array.isArray(_.config.stroke.curve)&&(v=Array.isArray(L)?_.config.stroke.curve[L[i]]:_.config.stroke.curve[i]),v==="smooth"){var P=.35*(l-p);_.globals.hasNullValues?(r[i][n]!==null&&(r[i][n+1]!==null?(b=d.move(p,x)+d.curve(p+P,x,l-P,h,l+1,h),y=d.move(p+1,x)+d.curve(p+P,x,l-P,h,l+1,h)+d.line(l,M)+d.line(p,M)+"z"):(b=d.move(p,x),y=d.move(p,x)+"z")),C.push(b),z.push(y)):(b+=d.curve(p+P,x,l-P,h,l,h),y+=d.curve(p+P,x,l-P,h,l,h)),p=l,x=h,n===r[i].length-2&&(y=y+d.curve(p,x,l,h,l,M)+d.move(l,h)+"z",t==="rangeArea"&&R?b=b+d.curve(p,x,l,h,l,f)+d.move(l,f)+"z":_.globals.hasNullValues||(C.push(b),z.push(y)))}else{if(r[i][n+1]===null){b+=d.move(l,h);var B=_.globals.isXNumeric?(_.globals.seriesX[s][n]-_.globals.minX)/this.xRatio:l-this.xDivision;y=y+d.line(B,M)+d.move(l,h)+"z"}r[i][n]===null&&(b+=d.move(l,h),y+=d.move(l,M)),v==="stepline"?(b=b+d.line(l,null,"H")+d.line(null,h,"V"),y=y+d.line(l,null,"H")+d.line(null,h,"V")):v==="straight"&&(b+=d.line(l,h),y+=d.line(l,h)),n===r[i].length-2&&(y=y+d.line(l,M)+d.move(l,h)+"z",t==="rangeArea"&&R?b=b+d.line(l,f)+d.move(l,f)+"z":(C.push(b),z.push(y)))}return{linePaths:C,areaPaths:z,pX:p,pY:x,linePath:b,areaPath:y}}},{key:"handleNullDataPoints",value:function(e,t,r,i,s){var n=this.w;if(e[r][i]===null&&n.config.markers.showNullDataPoints||e[r].length===1){var l=this.markers.plotChartMarkers(t,s,i+1,this.strokeWidth-n.config.markers.strokeWidth/2,!0);l!==null&&this.elPointsMain.add(l)}}}]),E}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function E(l,h,f,p){this.xoffset=l,this.yoffset=h,this.height=p,this.width=f,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(x){var b,y=[],C=this.xoffset,z=this.yoffset,L=s(x)/this.height,R=s(x)/this.width;if(this.width>=this.height)for(b=0;b<x.length;b++)y.push([C,z,C+L,z+x[b]/L]),z+=x[b]/L;else for(b=0;b<x.length;b++)y.push([C,z,C+x[b]/R,z+R]),C+=x[b]/R;return y},this.cutArea=function(x){var b;if(this.width>=this.height){var y=x/this.height,C=this.width-y;b=new E(this.xoffset+y,this.yoffset,C,this.height)}else{var z=x/this.width,L=this.height-z;b=new E(this.xoffset,this.yoffset+z,this.width,L)}return b}}function e(l,h,f,p,x){p=p===void 0?0:p,x=x===void 0?0:x;var b=t(function(y,C){var z,L=[],R=C/s(y);for(z=0;z<y.length;z++)L[z]=y[z]*R;return L}(l,h*f),[],new E(p,x,h,f),[]);return function(y){var C,z,L=[];for(C=0;C<y.length;C++)for(z=0;z<y[C].length;z++)L.push(y[C][z]);return L}(b)}function t(l,h,f,p){var x,b,y;if(l.length!==0)return x=f.shortestEdge(),function(C,z,L){var R;if(C.length===0)return!0;(R=C.slice()).push(z);var _=r(C,L),d=r(R,L);return _>=d}(h,b=l[0],x)?(h.push(b),t(l.slice(1),h,f,p)):(y=f.cutArea(s(h),p),p.push(f.getCoordinates(h)),t(l,[],y,p)),p;p.push(f.getCoordinates(h))}function r(l,h){var f=Math.min.apply(Math,l),p=Math.max.apply(Math,l),x=s(l);return Math.max(Math.pow(h,2)*p/Math.pow(x,2),Math.pow(x,2)/(Math.pow(h,2)*f))}function i(l){return l&&l.constructor===Array}function s(l){var h,f=0;for(h=0;h<l.length;h++)f+=l[h];return f}function n(l){var h,f=0;if(i(l[0]))for(h=0;h<l.length;h++)f+=n(l[h]);else f=s(l);return f}return function l(h,f,p,x,b){x=x===void 0?0:x,b=b===void 0?0:b;var y,C,z=[],L=[];if(i(h[0])){for(C=0;C<h.length;C++)z[C]=n(h[C]);for(y=e(z,f,p,x,b),C=0;C<h.length;C++)L.push(l(h[C],y[C][2]-y[C][0],y[C][3]-y[C][1],y[C][0],y[C][1]))}else L=e(h,f,p,x,b);return L}}();var $t,Fr,To=function(){function E(e,t){m(this,E),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Ri(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return w(E,[{key:"draw",value:function(e){var t=this,r=this.w,i=new U(this.ctx),s=new Ne(this.ctx),n=i.group({class:"apexcharts-treemap"});if(r.globals.noData)return n;var l=[];return e.forEach(function(h){var f=h.map(function(p){return Math.abs(p)});l.push(f)}),this.negRange=this.helpers.checkColorRange(),r.config.series.forEach(function(h,f){h.data.forEach(function(p){Array.isArray(t.labels[f])||(t.labels[f]=[]),t.labels[f].push(p.x)})}),window.TreemapSquared.generate(l,r.globals.gridWidth,r.globals.gridHeight).forEach(function(h,f){var p=i.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:O.escapeString(r.globals.seriesNames[f]),rel:f+1,"data:realIndex":f});if(r.config.chart.dropShadow.enabled){var x=r.config.chart.dropShadow;new le(t.ctx).dropShadow(n,x,f)}var b=i.group({class:"apexcharts-data-labels"});h.forEach(function(y,C){var z=y[0],L=y[1],R=y[2],_=y[3],d=i.drawRect(z,L,R-z,_-L,0,"#fff",1,t.strokeWidth,r.config.plotOptions.treemap.useFillColorAsStroke?M:r.globals.stroke.colors[f]);d.attr({cx:z,cy:L,index:f,i:f,j:C,width:R-z,height:_-L});var v=t.helpers.getShadeColor(r.config.chart.type,f,C,t.negRange),M=v.color;r.config.series[f].data[C]!==void 0&&r.config.series[f].data[C].fillColor&&(M=r.config.series[f].data[C].fillColor);var P=s.fillPath({color:M,seriesNumber:f,dataPointIndex:C});d.node.classList.add("apexcharts-treemap-rect"),d.attr({fill:P}),t.helpers.addListeners(d);var B={x:z+(R-z)/2,y:L+(_-L)/2,width:0,height:0},N={x:z,y:L,width:R-z,height:_-L};if(r.config.chart.animations.enabled&&!r.globals.dataChanged){var W=1;r.globals.resized||(W=r.config.chart.animations.speed),t.animateTreemap(d,B,N,W)}if(r.globals.dataChanged){var G=1;t.dynamicAnim.enabled&&r.globals.shouldAnimate&&(G=t.dynamicAnim.speed,r.globals.previousPaths[f]&&r.globals.previousPaths[f][C]&&r.globals.previousPaths[f][C].rect&&(B=r.globals.previousPaths[f][C].rect),t.animateTreemap(d,B,N,G))}var Q=t.getFontSize(y),ie=r.config.dataLabels.formatter(t.labels[f][C],{value:r.globals.series[f][C],seriesIndex:f,dataPointIndex:C,w:r});r.config.plotOptions.treemap.dataLabels.format==="truncate"&&(Q=parseInt(r.config.dataLabels.style.fontSize,10),ie=t.truncateLabels(ie,Q,z,L,R,_));var te=t.helpers.calculateDataLabels({text:ie,x:(z+R)/2,y:(L+_)/2+t.strokeWidth/2+Q/3,i:f,j:C,colorProps:v,fontSize:Q,series:e});r.config.dataLabels.enabled&&te&&t.rotateToFitLabel(te,Q,ie,z,L,R,_),p.add(d),te!==null&&p.add(te)}),p.add(b),n.add(p)}),n}},{key:"getFontSize",value:function(e){var t=this.w,r,i,s,n,l=function h(f){var p,x=0;if(Array.isArray(f[0]))for(p=0;p<f.length;p++)x+=h(f[p]);else for(p=0;p<f.length;p++)x+=f[p].length;return x}(this.labels)/function h(f){var p,x=0;if(Array.isArray(f[0]))for(p=0;p<f.length;p++)x+=h(f[p]);else for(p=0;p<f.length;p++)x+=1;return x}(this.labels);return r=e[2]-e[0],i=e[3]-e[1],s=r*i,n=Math.pow(s,.5),Math.min(n/l,parseInt(t.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,r,i,s,n,l){var h=new U(this.ctx),f=h.getTextRects(r,t);if(f.width+this.w.config.stroke.width+5>n-i&&f.width<=l-s){var p=h.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(p.x," ").concat(p.y,") translate(").concat(f.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,r,i,s,n){var l=new U(this.ctx),h=l.getTextRects(e,t).width+this.w.config.stroke.width+5>s-r&&n-i>s-r?n-i:s-r,f=l.getTextBasedOnMaxWidth({text:e,maxWidth:h,fontSize:t});return e.length!==f.length&&h/t<5?"":f}},{key:"animateTreemap",value:function(e,t,r,i){var s=new se(this.ctx);s.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:r.x,y:r.y,width:r.width,height:r.height},i,function(){s.animationCompleted(e)})}}]),E}(),Lo=86400,Eo=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return w(E,[{key:"calculateTimeScaleTicks",value:function(e,t){var r=this,i=this.w;if(i.globals.allSeriesCollapsed)return i.globals.labels=[],i.globals.timescaleLabels=[],[];var s=new ne(this.ctx),n=(t-e)/864e5;this.determineInterval(n),i.globals.disableZoomIn=!1,i.globals.disableZoomOut=!1,n<.00011574074074074075?i.globals.disableZoomIn=!0:n>5e4&&(i.globals.disableZoomOut=!0);var l=s.getTimeUnitsfromTimestamp(e,t,this.utc),h=i.globals.gridWidth/n,f=h/24,p=f/60,x=p/60,b=Math.floor(24*n),y=Math.floor(1440*n),C=Math.floor(n*Lo),z=Math.floor(n),L=Math.floor(n/30),R=Math.floor(n/365),_={minMillisecond:l.minMillisecond,minSecond:l.minSecond,minMinute:l.minMinute,minHour:l.minHour,minDate:l.minDate,minMonth:l.minMonth,minYear:l.minYear},d={firstVal:_,currentMillisecond:_.minMillisecond,currentSecond:_.minSecond,currentMinute:_.minMinute,currentHour:_.minHour,currentMonthDate:_.minDate,currentDate:_.minDate,currentMonth:_.minMonth,currentYear:_.minYear,daysWidthOnXAxis:h,hoursWidthOnXAxis:f,minutesWidthOnXAxis:p,secondsWidthOnXAxis:x,numberOfSeconds:C,numberOfMinutes:y,numberOfHours:b,numberOfDays:z,numberOfMonths:L,numberOfYears:R};switch(this.tickInterval){case"years":this.generateYearScale(d);break;case"months":case"half_year":this.generateMonthScale(d);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(d);break;case"hours":this.generateHourScale(d);break;case"minutes_fives":case"minutes":this.generateMinuteScale(d);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(d)}var v=this.timeScaleArray.map(function(M){var P={position:M.position,unit:M.unit,year:M.year,day:M.day?M.day:1,hour:M.hour?M.hour:0,month:M.month+1};return M.unit==="month"?u(u({},P),{},{day:1,value:M.value+1}):M.unit==="day"||M.unit==="hour"?u(u({},P),{},{value:M.value}):M.unit==="minute"?u(u({},P),{},{value:M.value,minute:M.value}):M.unit==="second"?u(u({},P),{},{value:M.value,minute:M.minute,second:M.second}):M});return v.filter(function(M){var P=1,B=Math.ceil(i.globals.gridWidth/120),N=M.value;i.config.xaxis.tickAmount!==void 0&&(B=i.config.xaxis.tickAmount),v.length>B&&(P=Math.floor(v.length/B));var W=!1,G=!1;switch(r.tickInterval){case"years":M.unit==="year"&&(W=!0);break;case"half_year":P=7,M.unit==="year"&&(W=!0);break;case"months":P=1,M.unit==="year"&&(W=!0);break;case"months_fortnight":P=15,M.unit!=="year"&&M.unit!=="month"||(W=!0),N===30&&(G=!0);break;case"months_days":P=10,M.unit==="month"&&(W=!0),N===30&&(G=!0);break;case"week_days":P=8,M.unit==="month"&&(W=!0);break;case"days":P=1,M.unit==="month"&&(W=!0);break;case"hours":M.unit==="day"&&(W=!0);break;case"minutes_fives":case"seconds_fives":N%5!=0&&(G=!0);break;case"seconds_tens":N%10!=0&&(G=!0)}if(r.tickInterval==="hours"||r.tickInterval==="minutes_fives"||r.tickInterval==="seconds_tens"||r.tickInterval==="seconds_fives"){if(!G)return!0}else if((N%P==0||W)&&!G)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var r=this.w,i=this.formatDates(e),s=this.removeOverlappingTS(i);r.globals.timescaleLabels=s.slice(),new Rr(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,r=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case r>15:this.tickInterval="minutes_fives";break;case r>5:this.tickInterval="minutes";break;case r>1:this.tickInterval="seconds_tens";break;case 60*r>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,r=e.currentMonth,i=e.currentYear,s=e.daysWidthOnXAxis,n=e.numberOfYears,l=t.minYear,h=0,f=new ne(this.ctx),p="year";if(t.minDate>1||t.minMonth>0){var x=f.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);h=(f.determineDaysOfYear(t.minYear)-x+1)*s,l=t.minYear+1,this.timeScaleArray.push({position:h,value:l,unit:p,year:l,month:O.monthMod(r+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:h,value:l,unit:p,year:i,month:O.monthMod(r+1)});for(var b=l,y=h,C=0;C<n;C++)b++,y=f.determineDaysOfYear(b-1)*s+y,this.timeScaleArray.push({position:y,value:b,unit:p,year:b,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,r=e.currentMonthDate,i=e.currentMonth,s=e.currentYear,n=e.daysWidthOnXAxis,l=e.numberOfMonths,h=i,f=0,p=new ne(this.ctx),x="month",b=0;if(t.minDate>1){f=(p.determineDaysOfMonths(i+1,t.minYear)-r+1)*n,h=O.monthMod(i+1);var y=s+b,C=O.monthMod(h),z=h;h===0&&(x="year",z=y,C=1,y+=b+=1),this.timeScaleArray.push({position:f,value:z,unit:x,year:y,month:C})}else this.timeScaleArray.push({position:f,value:h,unit:x,year:s,month:O.monthMod(i)});for(var L=h+1,R=f,_=0,d=1;_<l;_++,d++){(L=O.monthMod(L))===0?(x="year",b+=1):x="month";var v=this._getYear(s,L,b);R=p.determineDaysOfMonths(L,v)*n+R;var M=L===0?v:L;this.timeScaleArray.push({position:R,value:M,unit:x,year:v,month:L===0?1:L}),L++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,r=e.currentMonth,i=e.currentYear,s=e.hoursWidthOnXAxis,n=e.numberOfDays,l=new ne(this.ctx),h="day",f=t.minDate+1,p=f,x=function(d,v,M){return d>l.determineDaysOfMonths(v+1,M)&&(p=1,h="month",y=v+=1),v},b=(24-t.minHour)*s,y=f,C=x(p,r,i);t.minHour===0&&t.minDate===1?(b=0,y=O.monthMod(t.minMonth),h="month",p=t.minDate,n++):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(b=0,f=t.minDate,y=f,C=x(p=f,r,i)),this.timeScaleArray.push({position:b,value:y,unit:h,year:this._getYear(i,C,0),month:O.monthMod(C),day:p});for(var z=b,L=0;L<n;L++){h="day",C=x(p+=1,C,this._getYear(i,C,0));var R=this._getYear(i,C,0);z=24*s+z;var _=p===1?O.monthMod(C):p;this.timeScaleArray.push({position:z,value:_,unit:h,year:R,month:O.monthMod(C),day:_})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,r=e.currentDate,i=e.currentMonth,s=e.currentYear,n=e.minutesWidthOnXAxis,l=e.numberOfHours,h=new ne(this.ctx),f="hour",p=function(P,B){return P>h.determineDaysOfMonths(B+1,s)&&(L=1,B+=1),{month:B,date:L}},x=function(P,B){return P>h.determineDaysOfMonths(B+1,s)?B+=1:B},b=60-(t.minMinute+t.minSecond/60),y=b*n,C=t.minHour+1,z=C+1;b===60&&(y=0,z=(C=t.minHour)+1);var L=r,R=x(L,i);this.timeScaleArray.push({position:y,value:C,unit:f,day:L,hour:z,year:s,month:O.monthMod(R)});for(var _=y,d=0;d<l;d++){f="hour",z>=24&&(z=0,f="day",R=p(L+=1,R).month,R=x(L,R));var v=this._getYear(s,R,0);_=60*n+_;var M=z===0?L:z;this.timeScaleArray.push({position:_,value:M,unit:f,hour:z,day:L,year:v,month:O.monthMod(R)}),z++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,r=e.currentSecond,i=e.currentMinute,s=e.currentHour,n=e.currentDate,l=e.currentMonth,h=e.currentYear,f=e.minutesWidthOnXAxis,p=e.secondsWidthOnXAxis,x=e.numberOfMinutes,b=i+1,y=n,C=l,z=h,L=s,R=(60-r-t/1e3)*p,_=0;_<x;_++)b>=60&&(b=0,(L+=1)===24&&(L=0)),this.timeScaleArray.push({position:R,value:b,unit:"minute",hour:L,minute:b,day:y,year:this._getYear(z,C,0),month:O.monthMod(C)}),R+=f,b++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,r=e.currentSecond,i=e.currentMinute,s=e.currentHour,n=e.currentDate,l=e.currentMonth,h=e.currentYear,f=e.secondsWidthOnXAxis,p=e.numberOfSeconds,x=r+1,b=i,y=n,C=l,z=h,L=s,R=(1e3-t)/1e3*f,_=0;_<p;_++)x>=60&&(x=0,++b>=60&&(b=0,++L===24&&(L=0))),this.timeScaleArray.push({position:R,value:x,unit:"second",hour:L,minute:b,second:x,day:y,year:this._getYear(z,C,0),month:O.monthMod(C)}),R+=f,x++}},{key:"createRawDateString",value:function(e,t){var r=e.year;return e.month===0&&(e.month=1),r+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?r+=e.unit==="day"?"-"+("0"+t).slice(-2):"-01":r+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?r+=e.unit==="hour"?"T"+("0"+t).slice(-2):"T00":r+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?r+=":"+("0"+t).slice(-2):r+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?r+=":"+("0"+t).slice(-2):r+=":00",this.utc&&(r+=".000Z"),r}},{key:"formatDates",value:function(e){var t=this,r=this.w;return e.map(function(i){var s=i.value.toString(),n=new ne(t.ctx),l=t.createRawDateString(i,s),h=n.getDate(n.parseDate(l));if(t.utc||(h=n.getDate(n.parseDateWithTimezone(l))),r.config.xaxis.labels.format===void 0){var f="dd MMM",p=r.config.xaxis.labels.datetimeFormatter;i.unit==="year"&&(f=p.year),i.unit==="month"&&(f=p.month),i.unit==="day"&&(f=p.day),i.unit==="hour"&&(f=p.hour),i.unit==="minute"&&(f=p.minute),i.unit==="second"&&(f=p.second),s=n.formatDate(h,f)}else s=n.formatDate(h,r.config.xaxis.labels.format);return{dateString:l,position:i.position,value:s,unit:i.unit,year:i.year,month:i.month}})}},{key:"removeOverlappingTS",value:function(e){var t,r=this,i=new U(this.ctx),s=!1;e.length>0&&e[0].value&&e.every(function(h){return h.value.length===e[0].value.length})&&(s=!0,t=i.getTextRects(e[0].value).width);var n=0,l=e.map(function(h,f){if(f>0&&r.w.config.xaxis.labels.hideOverlappingLabels){var p=s?t:i.getTextRects(e[n].value).width,x=e[n].position;return h.position>x+p+10?(n=f,h):null}return h});return l=l.filter(function(h){return h!==null})}},{key:"_getYear",value:function(e,t,r){return e+Math.floor(t/12)+r}}]),E}(),Do=function(){function E(e,t){m(this,E),this.ctx=t,this.w=t.w,this.el=e}return w(E,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,r=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(r)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(r)>-1,e.isBarHorizontal=(t.chart.type==="bar"||t.chart.type==="rangeBar"||t.chart.type==="boxPlot")&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),U.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background=t.chart.background,this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),U.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.dom.elLegendForeign.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var r=this.w,i=r.config,s=r.globals,n={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},f={series:[],i:[]},p={series:[],i:[]},x={series:[],i:[]},b={series:[],i:[]},y={series:[],i:[]},C={series:[],seriesRangeEnd:[],i:[]};s.series.map(function(B,N){var W=0;e[N].type!==void 0?(e[N].type==="column"||e[N].type==="bar"?(s.series.length>1&&i.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),p.series.push(B),p.i.push(N),W++,r.globals.columnSeries=p.series):e[N].type==="area"?(l.series.push(B),l.i.push(N),W++):e[N].type==="line"?(n.series.push(B),n.i.push(N),W++):e[N].type==="scatter"?(h.series.push(B),h.i.push(N)):e[N].type==="bubble"?(f.series.push(B),f.i.push(N),W++):e[N].type==="candlestick"?(x.series.push(B),x.i.push(N),W++):e[N].type==="boxPlot"?(b.series.push(B),b.i.push(N),W++):e[N].type==="rangeBar"?(y.series.push(B),y.i.push(N),W++):e[N].type==="rangeArea"?(C.series.push(s.seriesRangeStart[N]),C.seriesRangeEnd.push(s.seriesRangeEnd[N]),C.i.push(N),W++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),W>1&&(s.comboCharts=!0)):(n.series.push(B),n.i.push(N))});var z=new ba(this.ctx,t),L=new xa(this.ctx,t);this.ctx.pie=new _i(this.ctx);var R=new Co(this.ctx);this.ctx.rangeBar=new Mo(this.ctx,t);var _=new So(this.ctx),d=[];if(s.comboCharts){if(l.series.length>0&&d.push(z.draw(l.series,"area",l.i)),p.series.length>0)if(r.config.chart.stacked){var v=new Ii(this.ctx,t);d.push(v.draw(p.series,p.i))}else this.ctx.bar=new nr(this.ctx,t),d.push(this.ctx.bar.draw(p.series,p.i));if(C.series.length>0&&d.push(z.draw(C.series,"rangeArea",C.i,C.seriesRangeEnd)),n.series.length>0&&d.push(z.draw(n.series,"line",n.i)),x.series.length>0&&d.push(L.draw(x.series,"candlestick",x.i)),b.series.length>0&&d.push(L.draw(b.series,"boxPlot",b.i)),y.series.length>0&&d.push(this.ctx.rangeBar.draw(y.series,y.i)),h.series.length>0){var M=new ba(this.ctx,t,!0);d.push(M.draw(h.series,"scatter",h.i))}if(f.series.length>0){var P=new ba(this.ctx,t,!0);d.push(P.draw(f.series,"bubble",f.i))}}else switch(i.chart.type){case"line":d=z.draw(s.series,"line");break;case"area":d=z.draw(s.series,"area");break;case"bar":i.chart.stacked?d=new Ii(this.ctx,t).draw(s.series):(this.ctx.bar=new nr(this.ctx,t),d=this.ctx.bar.draw(s.series));break;case"candlestick":d=new xa(this.ctx,t).draw(s.series,"candlestick");break;case"boxPlot":d=new xa(this.ctx,t).draw(s.series,i.chart.type);break;case"rangeBar":d=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":d=z.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":d=new Ao(this.ctx,t).draw(s.series);break;case"treemap":d=new To(this.ctx,t).draw(s.series);break;case"pie":case"donut":case"polarArea":d=this.ctx.pie.draw(s.series);break;case"radialBar":d=R.draw(s.series);break;case"radar":d=_.draw(s.series);break;default:d=z.draw(s.series)}return d}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var r=O.getDimensions(this.el),i=t.chart.width.toString().split(/[0-9]+/g).pop();i==="%"?O.isNumber(r[0])&&(r[0].width===0&&(r=O.getDimensions(this.el.parentNode)),e.svgWidth=r[0]*parseInt(t.chart.width,10)/100):i!=="px"&&i!==""||(e.svgWidth=parseInt(t.chart.width,10));var s=t.chart.height.toString().split(/[0-9]+/g).pop();if(e.svgHeight!=="auto"&&e.svgHeight!=="")if(s==="%"){var n=O.getDimensions(this.el.parentNode);e.svgHeight=n[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),U.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),s!=="%"){var l=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+l+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,r={transform:"translate("+e.translateX+", "+t+")"};U.setAttrs(e.dom.elGraphical.node,r)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,r=0,i=e.config.chart.sparkline.enabled?1:15;i+=e.config.grid.padding.bottom,e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||!e.config.legend.show||e.config.legend.floating||(r=new Ti(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*e.globals.radialSize;if(s&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var l=O.getBoundingClientRect(s);n=l.bottom;var h=l.bottom-l.top;n=Math.max(2.05*e.globals.radialSize,h)}var f=n+t.translateY+r+i;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",f),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=f+"px",U.setAttrs(t.dom.Paper.node,{height:f}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=f+"px")}},{key:"coreCalculations",value:function(){new br(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(s){return[]})},r=new lt,i=this.w.globals;r.initGlobalVars(i),i.seriesXvalues=t(),i.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if(t.config.xaxis.crosshairs.position==="back"&&new Ot(this.ctx).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new Ot(this.ctx).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Eo(this.ctx);var r=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?r=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(r=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(r)}e=new re(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&typeof t.config.chart.events.selection!="function"){var r=Array.isArray(t.config.chart.brush.targets)||[t.config.chart.brush.target];r.forEach(function(i){var s=ApexCharts.getChartByID(i);s.w.globals.brushSource=e.ctx,typeof s.w.config.chart.events.zoomed!="function"&&(s.w.config.chart.events.zoomed=function(){e.updateSourceChart(s)}),typeof s.w.config.chart.events.scrolled!="function"&&(s.w.config.chart.events.scrolled=function(){e.updateSourceChart(s)})}),t.config.chart.events.selection=function(i,s){r.forEach(function(n){var l=ApexCharts.getChartByID(n),h=O.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&l.w.globals.series.length===1){var f=new pt(l);h=f.autoScaleY(l,h,s)}var p=l.w.config.yaxis.reduce(function(x,b,y){return[].concat(Z(x),[u(u({},l.w.config.yaxis[y]),{},{min:h[0].min,max:h[0].max})])},[]);l.ctx.updateHelpers._updateOptions({xaxis:{min:s.xaxis.min,max:s.xaxis.max},yaxis:p},!1,!1,!1,!1)})}}}}]),E}(),Po=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"_updateOptions",value:function(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(l){var h=[t.ctx];s&&(h=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(h=[t.ctx],t.ctx.w.globals.isExecCalled=!1),h.forEach(function(f,p){var x=f.w;if(x.globals.shouldAnimate=i,r||(x.globals.resized=!0,x.globals.dataChanged=!0,i&&f.series.getPreviousPaths()),e&&g(e)==="object"&&(f.config=new vt(e),e=re.extendArrayProps(f.config,e,x),f.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,x.config=O.extend(x.config,e),n&&(x.globals.lastXAxis=e.xaxis?O.clone(e.xaxis):[],x.globals.lastYAxis=e.yaxis?O.clone(e.yaxis):[],x.globals.initialConfig=O.extend({},x.config),x.globals.initialSeries=O.clone(x.config.series),e.series))){for(var b=0;b<x.globals.collapsedSeriesIndices.length;b++){var y=x.config.series[x.globals.collapsedSeriesIndices[b]];x.globals.collapsedSeries[b].data=x.globals.axisCharts?y.data.slice():y}for(var C=0;C<x.globals.ancillaryCollapsedSeriesIndices.length;C++){var z=x.config.series[x.globals.ancillaryCollapsedSeriesIndices[C]];x.globals.ancillaryCollapsedSeries[C].data=x.globals.axisCharts?z.data.slice():z}f.series.emptyCollapsedSeries(x.config.series)}return f.update(e).then(function(){p===h.length-1&&l(f)})})})}},{key:"_updateSeries",value:function(e,t){var r=this,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(s){var n,l=r.w;return l.globals.shouldAnimate=t,l.globals.dataChanged=!0,t&&r.ctx.series.getPreviousPaths(),l.globals.axisCharts?((n=e.map(function(h,f){return r._extendSeries(h,f)})).length===0&&(n=[{data:[]}]),l.config.series=n):l.config.series=e.slice(),i&&(l.globals.initialConfig.series=O.clone(l.config.series),l.globals.initialSeries=O.clone(l.config.series)),r.ctx.update().then(function(){s(r.ctx)})})}},{key:"_extendSeries",value:function(e,t){var r=this.w,i=r.config.series[t];return u(u({},r.config.series[t]),{},{name:e.name?e.name:i&&i.name,color:e.color?e.color:i&&i.color,type:e.type?e.type:i&&i.type,group:e.group?e.group:i&&i.group,data:e.data?e.data:i&&i.data})}},{key:"toggleDataPointSelection",value:function(e,t){var r=this.w,i=null,s=".apexcharts-series[data\\:realIndex='".concat(e,"']");return r.globals.axisCharts?i=r.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"'], ").concat(s," circle[j='").concat(t,"'], ").concat(s," rect[j='").concat(t,"']")).members[0]:t===void 0&&(i=r.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"']")).members[0],r.config.chart.type!=="pie"&&r.config.chart.type!=="polarArea"&&r.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),i?(new U(this.ctx).pathMouseDown(i,null),i.node?i.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(i){e.xaxis[i]!==void 0&&(t.config.xaxis[i]=e.xaxis[i],t.globals.lastXAxis[i]=e.xaxis[i])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var r=new Je(e);e=r.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,r){e.yaxis[r].min=0,e.yaxis[r].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,r=this.w,i=r.globals.lastXAxis,s=r.globals.lastYAxis;e&&e.xaxis&&(i=e.xaxis),e&&e.yaxis&&(s=e.yaxis),r.config.xaxis.min=i.min,r.config.xaxis.max=i.max;var n=function(l){s[l]!==void 0&&(r.config.yaxis[l].min=s[l].min,r.config.yaxis[l].max=s[l].max)};r.config.yaxis.map(function(l,h){r.globals.zoomed||s[h]!==void 0?n(h):t.ctx.opts.yaxis[h]!==void 0&&(l.min=t.ctx.opts.yaxis[h].min,l.max=t.ctx.opts.yaxis[h].max)})}}]),E}();$t=typeof window<"u"?window:void 0,Fr=function(E,e){var t=(this!==void 0?this:E).SVG=function(d){if(t.supported)return d=new t.Doc(d),t.parser.draw||t.prepare(),d};if(t.ns="http://www.w3.org/2000/svg",t.xmlns="http://www.w3.org/2000/xmlns/",t.xlink="http://www.w3.org/1999/xlink",t.svgjs="http://svgjs.dev",t.supported=!0,!t.supported)return!1;t.did=1e3,t.eid=function(d){return"Svgjs"+p(d)+t.did++},t.create=function(d){var v=e.createElementNS(this.ns,d);return v.setAttribute("id",this.eid(d)),v},t.extend=function(){var d,v;v=(d=[].slice.call(arguments)).pop();for(var M=d.length-1;M>=0;M--)if(d[M])for(var P in v)d[M].prototype[P]=v[P];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(d){var v=typeof d.create=="function"?d.create:function(){this.constructor.call(this,t.create(d.create))};return d.inherit&&(v.prototype=new d.inherit),d.extend&&t.extend(v,d.extend),d.construct&&t.extend(d.parent||t.Container,d.construct),v},t.adopt=function(d){return d?d.instance?d.instance:((v=d.nodeName=="svg"?d.parentNode instanceof E.SVGElement?new t.Nested:new t.Doc:d.nodeName=="linearGradient"?new t.Gradient("linear"):d.nodeName=="radialGradient"?new t.Gradient("radial"):t[p(d.nodeName)]?new t[p(d.nodeName)]:new t.Element(d)).type=d.nodeName,v.node=d,d.instance=v,v instanceof t.Doc&&v.namespace().defs(),v.setData(JSON.parse(d.getAttribute("svgjs:data"))||{}),v):null;var v},t.prepare=function(){var d=e.getElementsByTagName("body")[0],v=(d?new t.Doc(d):t.adopt(e.documentElement).nested()).size(2,0);t.parser={body:d||e.documentElement,draw:v.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:v.polyline().node,path:v.path().node,native:t.create("svg")}},t.parser={native:t.create("svg")},e.addEventListener("DOMContentLoaded",function(){t.parser.draw||t.prepare()},!1),t.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},t.utils={map:function(d,v){for(var M=d.length,P=[],B=0;B<M;B++)P.push(v(d[B]));return P},filter:function(d,v){for(var M=d.length,P=[],B=0;B<M;B++)v(d[B])&&P.push(d[B]);return P},filterSVGElements:function(d){return this.filter(d,function(v){return v instanceof E.SVGElement})}},t.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},t.Color=function(d){var v,M;this.r=0,this.g=0,this.b=0,d&&(typeof d=="string"?t.regex.isRgb.test(d)?(v=t.regex.rgb.exec(d.replace(t.regex.whitespace,"")),this.r=parseInt(v[1]),this.g=parseInt(v[2]),this.b=parseInt(v[3])):t.regex.isHex.test(d)&&(v=t.regex.hex.exec((M=d).length==4?["#",M.substring(1,2),M.substring(1,2),M.substring(2,3),M.substring(2,3),M.substring(3,4),M.substring(3,4)].join(""):M),this.r=parseInt(v[1],16),this.g=parseInt(v[2],16),this.b=parseInt(v[3],16)):g(d)==="object"&&(this.r=d.r,this.g=d.g,this.b=d.b))},t.extend(t.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+x(this.r)+x(this.g)+x(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(d){return this.destination=new t.Color(d),this},at:function(d){return this.destination?(d=d<0?0:d>1?1:d,new t.Color({r:~~(this.r+(this.destination.r-this.r)*d),g:~~(this.g+(this.destination.g-this.g)*d),b:~~(this.b+(this.destination.b-this.b)*d)})):this}}),t.Color.test=function(d){return d+="",t.regex.isHex.test(d)||t.regex.isRgb.test(d)},t.Color.isRgb=function(d){return d&&typeof d.r=="number"&&typeof d.g=="number"&&typeof d.b=="number"},t.Color.isColor=function(d){return t.Color.isRgb(d)||t.Color.test(d)},t.Array=function(d,v){(d=(d||[]).valueOf()).length==0&&v&&(d=v.valueOf()),this.value=this.parse(d)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(d){return d=d.valueOf(),Array.isArray(d)?d:this.split(d)}}),t.PointArray=function(d,v){t.Array.call(this,d,v||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var r={M:function(d,v,M){return v.x=M.x=d[0],v.y=M.y=d[1],["M",v.x,v.y]},L:function(d,v){return v.x=d[0],v.y=d[1],["L",d[0],d[1]]},H:function(d,v){return v.x=d[0],["H",d[0]]},V:function(d,v){return v.y=d[0],["V",d[0]]},C:function(d,v){return v.x=d[4],v.y=d[5],["C",d[0],d[1],d[2],d[3],d[4],d[5]]},Q:function(d,v){return v.x=d[2],v.y=d[3],["Q",d[0],d[1],d[2],d[3]]},Z:function(d,v,M){return v.x=M.x,v.y=M.y,["Z"]}},i="mlhvqtcsaz".split(""),s=0,n=i.length;s<n;++s)r[i[s]]=function(d){return function(v,M,P){if(d=="H")v[0]=v[0]+M.x;else if(d=="V")v[0]=v[0]+M.y;else if(d=="A")v[5]=v[5]+M.x,v[6]=v[6]+M.y;else for(var B=0,N=v.length;B<N;++B)v[B]=v[B]+(B%2?M.y:M.x);if(r&&typeof r[d]=="function")return r[d](v,M,P)}}(i[s].toUpperCase());t.PathArray=function(d,v){t.Array.call(this,d,v||[["M",0,0]])},t.PathArray.prototype=new t.Array,t.PathArray.prototype.constructor=t.PathArray,t.extend(t.PathArray,{toString:function(){return function(d){for(var v=0,M=d.length,P="";v<M;v++)P+=d[v][0],d[v][1]!=null&&(P+=d[v][1],d[v][2]!=null&&(P+=" ",P+=d[v][2],d[v][3]!=null&&(P+=" ",P+=d[v][3],P+=" ",P+=d[v][4],d[v][5]!=null&&(P+=" ",P+=d[v][5],P+=" ",P+=d[v][6],d[v][7]!=null&&(P+=" ",P+=d[v][7])))));return P+" "}(this.value)},move:function(d,v){var M=this.bbox();return M.x,M.y,this},at:function(d){if(!this.destination)return this;for(var v=this.value,M=this.destination.value,P=[],B=new t.PathArray,N=0,W=v.length;N<W;N++){P[N]=[v[N][0]];for(var G=1,Q=v[N].length;G<Q;G++)P[N][G]=v[N][G]+(M[N][G]-v[N][G])*d;P[N][0]==="A"&&(P[N][4]=+(P[N][4]!=0),P[N][5]=+(P[N][5]!=0))}return B.value=P,B},parse:function(d){if(d instanceof t.PathArray)return d.valueOf();var v,M={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};d=typeof d=="string"?d.replace(t.regex.numbersWithDots,h).replace(t.regex.pathLetters," $& ").replace(t.regex.hyphen,"$1 -").trim().split(t.regex.delimiter):d.reduce(function(Q,ie){return[].concat.call(Q,ie)},[]);var P=[],B=new t.Point,N=new t.Point,W=0,G=d.length;do t.regex.isPathLetter.test(d[W])?(v=d[W],++W):v=="M"?v="L":v=="m"&&(v="l"),P.push(r[v].call(null,d.slice(W,W+=M[v.toUpperCase()]).map(parseFloat),B,N));while(G>W);return P},bbox:function(){return t.parser.draw||t.prepare(),t.parser.path.setAttribute("d",this.toString()),t.parser.path.getBBox()}}),t.Number=t.invent({create:function(d,v){this.value=0,this.unit=v||"",typeof d=="number"?this.value=isNaN(d)?0:isFinite(d)?d:d<0?-34e37:34e37:typeof d=="string"?(v=d.match(t.regex.numberAndUnit))&&(this.value=parseFloat(v[1]),v[5]=="%"?this.value/=100:v[5]=="s"&&(this.value*=1e3),this.unit=v[5]):d instanceof t.Number&&(this.value=d.valueOf(),this.unit=d.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(d){return d=new t.Number(d),new t.Number(this+d,this.unit||d.unit)},minus:function(d){return d=new t.Number(d),new t.Number(this-d,this.unit||d.unit)},times:function(d){return d=new t.Number(d),new t.Number(this*d,this.unit||d.unit)},divide:function(d){return d=new t.Number(d),new t.Number(this/d,this.unit||d.unit)},to:function(d){var v=new t.Number(this);return typeof d=="string"&&(v.unit=d),v},morph:function(d){return this.destination=new t.Number(d),d.relative&&(this.destination.value+=this.value),this},at:function(d){return this.destination?new t.Number(this.destination).minus(this).times(d).plus(this):this}}}),t.Element=t.invent({create:function(d){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=d)&&(this.type=d.nodeName,this.node.instance=this,this._stroke=d.getAttribute("stroke")||this._stroke)},extend:{x:function(d){return this.attr("x",d)},y:function(d){return this.attr("y",d)},cx:function(d){return d==null?this.x()+this.width()/2:this.x(d-this.width()/2)},cy:function(d){return d==null?this.y()+this.height()/2:this.y(d-this.height()/2)},move:function(d,v){return this.x(d).y(v)},center:function(d,v){return this.cx(d).cy(v)},width:function(d){return this.attr("width",d)},height:function(d){return this.attr("height",d)},size:function(d,v){var M=b(this,d,v);return this.width(new t.Number(M.width)).height(new t.Number(M.height))},clone:function(d){this.writeDataToDom();var v=z(this.node.cloneNode(!0));return d?d.add(v):this.after(v),v},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(d){return this.after(d).remove(),d},addTo:function(d){return d.put(this)},putIn:function(d){return d.add(this)},id:function(d){return this.attr("id",d)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var d=this.attr("class");return d==null?[]:d.trim().split(t.regex.delimiter)},hasClass:function(d){return this.classes().indexOf(d)!=-1},addClass:function(d){if(!this.hasClass(d)){var v=this.classes();v.push(d),this.attr("class",v.join(" "))}return this},removeClass:function(d){return this.hasClass(d)&&this.attr("class",this.classes().filter(function(v){return v!=d}).join(" ")),this},toggleClass:function(d){return this.hasClass(d)?this.removeClass(d):this.addClass(d)},reference:function(d){return t.get(this.attr(d))},parent:function(d){var v=this;if(!v.node.parentNode)return null;if(v=t.adopt(v.node.parentNode),!d)return v;for(;v&&v.node instanceof E.SVGElement;){if(typeof d=="string"?v.matches(d):v instanceof d)return v;if(!v.node.parentNode||v.node.parentNode.nodeName=="#document")return null;v=t.adopt(v.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(d){var v=[],M=this;do{if(!(M=M.parent(d))||!M.node)break;v.push(M)}while(M.parent);return v},matches:function(d){return function(v,M){return(v.matches||v.matchesSelector||v.msMatchesSelector||v.mozMatchesSelector||v.webkitMatchesSelector||v.oMatchesSelector).call(v,M)}(this.node,d)},native:function(){return this.node},svg:function(d){var v=e.createElement("svg");if(!(d&&this instanceof t.Parent))return v.appendChild(d=e.createElement("svg")),this.writeDataToDom(),d.appendChild(this.node.cloneNode(!0)),v.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");v.innerHTML="<svg>"+d.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var M=0,P=v.firstChild.childNodes.length;M<P;M++)this.node.appendChild(v.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(d){return this.dom=d,this},is:function(d){return function(v,M){return v instanceof M}(this,d)}}}),t.easing={"-":function(d){return d},"<>":function(d){return-Math.cos(d*Math.PI)/2+.5},">":function(d){return Math.sin(d*Math.PI/2)},"<":function(d){return 1-Math.cos(d*Math.PI/2)}},t.morph=function(d){return function(v,M){return new t.MorphObj(v,M).at(d)}},t.Situation=t.invent({create:function(d){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new t.Number(d.duration).valueOf(),this.delay=new t.Number(d.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=d.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),t.FX=t.invent({create:function(d){this._target=d,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(d,v,M){g(d)==="object"&&(v=d.ease,M=d.delay,d=d.duration);var P=new t.Situation({duration:d||1e3,delay:M||0,ease:t.easing[v||"-"]||v});return this.queue(P),this},target:function(d){return d&&d instanceof t.Element?(this._target=d,this):this._target},timeToAbsPos:function(d){return(d-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(d){return this.situation.duration/this._speed*d+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=E.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){E.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(d){return(typeof d=="function"||d instanceof t.Situation)&&this.situations.push(d),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof t.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var d,v=this.situation;if(v.init)return this;for(var M in v.animations){d=this.target()[M](),Array.isArray(d)||(d=[d]),Array.isArray(v.animations[M])||(v.animations[M]=[v.animations[M]]);for(var P=d.length;P--;)v.animations[M][P]instanceof t.Number&&(d[P]=new t.Number(d[P])),v.animations[M][P]=d[P].morph(v.animations[M][P])}for(var M in v.attrs)v.attrs[M]=new t.MorphObj(this.target().attr(M),v.attrs[M]);for(var M in v.styles)v.styles[M]=new t.MorphObj(this.target().style(M),v.styles[M]);return v.initialTransformation=this.target().matrixify(),v.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(d,v){var M=this.active;return this.active=!1,v&&this.clearQueue(),d&&this.situation&&(!M&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(d){var v=this.last();return this.target().on("finished.fx",function M(P){P.detail.situation==v&&(d.call(this,v),this.off("finished.fx",M))}),this._callStart()},during:function(d){var v=this.last(),M=function(P){P.detail.situation==v&&d.call(this,P.detail.pos,t.morph(P.detail.pos),P.detail.eased,v)};return this.target().off("during.fx",M).on("during.fx",M),this.after(function(){this.off("during.fx",M)}),this._callStart()},afterAll:function(d){var v=function M(P){d.call(this),this.off("allfinished.fx",M)};return this.target().off("allfinished.fx",v).on("allfinished.fx",v),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(d,v,M){return this.last()[M||"animations"][d]=v,this._callStart()},step:function(d){var v,M,P;d||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(v=Math.max(this.absPos,0),M=Math.floor(v),this.situation.loops===!0||M<this.situation.loops?(this.pos=v-M,P=this.situation.loop,this.situation.loop=M):(this.absPos=this.situation.loops,this.pos=1,P=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-P)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var B=this.situation.ease(this.pos);for(var N in this.situation.once)N>this.lastPos&&N<=B&&(this.situation.once[N].call(this.target(),this.pos,B),delete this.situation.once[N]);return this.active&&this.target().fire("during",{pos:this.pos,eased:B,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=B,this):this},eachAt:function(){var d,v=this,M=this.target(),P=this.situation;for(var B in P.animations)d=[].concat(P.animations[B]).map(function(G){return typeof G!="string"&&G.at?G.at(P.ease(v.pos),v.pos):G}),M[B].apply(M,d);for(var B in P.attrs)d=[B].concat(P.attrs[B]).map(function(Q){return typeof Q!="string"&&Q.at?Q.at(P.ease(v.pos),v.pos):Q}),M.attr.apply(M,d);for(var B in P.styles)d=[B].concat(P.styles[B]).map(function(Q){return typeof Q!="string"&&Q.at?Q.at(P.ease(v.pos),v.pos):Q}),M.style.apply(M,d);if(P.transforms.length){d=P.initialTransformation,B=0;for(var N=P.transforms.length;B<N;B++){var W=P.transforms[B];W instanceof t.Matrix?d=W.relative?d.multiply(new t.Matrix().morph(W).at(P.ease(this.pos))):d.morph(W).at(P.ease(this.pos)):(W.relative||W.undo(d.extract()),d=d.multiply(W.at(P.ease(this.pos))))}M.matrix(d)}return this},once:function(d,v,M){var P=this.last();return M||(d=P.ease(d)),P.once[d]=v,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:t.Element,construct:{animate:function(d,v,M){return(this.fx||(this.fx=new t.FX(this))).animate(d,v,M)},delay:function(d){return(this.fx||(this.fx=new t.FX(this))).delay(d)},stop:function(d,v){return this.fx&&this.fx.stop(d,v),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),t.MorphObj=t.invent({create:function(d,v){return t.Color.isColor(v)?new t.Color(d).morph(v):t.regex.delimiter.test(d)?t.regex.pathLetters.test(d)?new t.PathArray(d).morph(v):new t.Array(d).morph(v):t.regex.numberAndUnit.test(v)?new t.Number(d).morph(v):(this.value=d,void(this.destination=v))},extend:{at:function(d,v){return v<1?this.value:this.destination},valueOf:function(){return this.value}}}),t.extend(t.FX,{attr:function(d,v,M){if(g(d)==="object")for(var P in d)this.attr(P,d[P]);else this.add(d,v,"attrs");return this},plot:function(d,v,M,P){return arguments.length==4?this.plot([d,v,M,P]):this.add("plot",new(this.target()).morphArray(d))}}),t.Box=t.invent({create:function(d,v,M,P){if(!(g(d)!=="object"||d instanceof t.Element))return t.Box.call(this,d.left!=null?d.left:d.x,d.top!=null?d.top:d.y,d.width,d.height);var B;arguments.length==4&&(this.x=d,this.y=v,this.width=M,this.height=P),(B=this).x==null&&(B.x=0,B.y=0,B.width=0,B.height=0),B.w=B.width,B.h=B.height,B.x2=B.x+B.width,B.y2=B.y+B.height,B.cx=B.x+B.width/2,B.cy=B.y+B.height/2}}),t.BBox=t.invent({create:function(d){if(t.Box.apply(this,[].slice.call(arguments)),d instanceof t.Element){var v;try{if(!e.documentElement.contains){for(var M=d.node;M.parentNode;)M=M.parentNode;if(M!=e)throw new Error("Element not in the dom")}v=d.node.getBBox()}catch{if(d instanceof t.Shape){t.parser.draw||t.prepare();var P=d.clone(t.parser.draw.instance).show();P&&P.node&&typeof P.node.getBBox=="function"&&(v=P.node.getBBox()),P&&typeof P.remove=="function"&&P.remove()}else v={x:d.node.clientLeft,y:d.node.clientTop,width:d.node.clientWidth,height:d.node.clientHeight}}t.Box.call(this,v)}},inherit:t.Box,parent:t.Element,construct:{bbox:function(){return new t.BBox(this)}}}),t.BBox.prototype.constructor=t.BBox,t.Matrix=t.invent({create:function(d){var v=C([1,0,0,1,0,0]);d=d===null?v:d instanceof t.Element?d.matrixify():typeof d=="string"?C(d.split(t.regex.delimiter).map(parseFloat)):arguments.length==6?C([].slice.call(arguments)):Array.isArray(d)?C(d):d&&g(d)==="object"?d:v;for(var M=R.length-1;M>=0;--M)this[R[M]]=d[R[M]]!=null?d[R[M]]:v[R[M]]},extend:{extract:function(){var d=y(this,0,1);y(this,1,0);var v=180/Math.PI*Math.atan2(d.y,d.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(v*Math.PI/180)+this.f*Math.sin(v*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(v*Math.PI/180)+this.e*Math.sin(-v*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:v,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new t.Matrix(this)}},clone:function(){return new t.Matrix(this)},morph:function(d){return this.destination=new t.Matrix(d),this},multiply:function(d){return new t.Matrix(this.native().multiply(function(v){return v instanceof t.Matrix||(v=new t.Matrix(v)),v}(d).native()))},inverse:function(){return new t.Matrix(this.native().inverse())},translate:function(d,v){return new t.Matrix(this.native().translate(d||0,v||0))},native:function(){for(var d=t.parser.native.createSVGMatrix(),v=R.length-1;v>=0;v--)d[R[v]]=this[R[v]];return d},toString:function(){return"matrix("+L(this.a)+","+L(this.b)+","+L(this.c)+","+L(this.d)+","+L(this.e)+","+L(this.f)+")"}},parent:t.Element,construct:{ctm:function(){return new t.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof t.Nested){var d=this.rect(1,1),v=d.node.getScreenCTM();return d.remove(),new t.Matrix(v)}return new t.Matrix(this.node.getScreenCTM())}}}),t.Point=t.invent({create:function(d,v){var M;M=Array.isArray(d)?{x:d[0],y:d[1]}:g(d)==="object"?{x:d.x,y:d.y}:d!=null?{x:d,y:v??d}:{x:0,y:0},this.x=M.x,this.y=M.y},extend:{clone:function(){return new t.Point(this)},morph:function(d,v){return this.destination=new t.Point(d,v),this}}}),t.extend(t.Element,{point:function(d,v){return new t.Point(d,v).transform(this.screenCTM().inverse())}}),t.extend(t.Element,{attr:function(d,v,M){if(d==null){for(d={},M=(v=this.node.attributes).length-1;M>=0;M--)d[v[M].nodeName]=t.regex.isNumber.test(v[M].nodeValue)?parseFloat(v[M].nodeValue):v[M].nodeValue;return d}if(g(d)==="object")for(var P in d)this.attr(P,d[P]);else if(v===null)this.node.removeAttribute(d);else{if(v==null)return(v=this.node.getAttribute(d))==null?t.defaults.attrs[d]:t.regex.isNumber.test(v)?parseFloat(v):v;d=="stroke-width"?this.attr("stroke",parseFloat(v)>0?this._stroke:null):d=="stroke"&&(this._stroke=v),d!="fill"&&d!="stroke"||(t.regex.isImage.test(v)&&(v=this.doc().defs().image(v,0,0)),v instanceof t.Image&&(v=this.doc().defs().pattern(0,0,function(){this.add(v)}))),typeof v=="number"?v=new t.Number(v):t.Color.isColor(v)?v=new t.Color(v):Array.isArray(v)&&(v=new t.Array(v)),d=="leading"?this.leading&&this.leading(v):typeof M=="string"?this.node.setAttributeNS(M,d,v.toString()):this.node.setAttribute(d,v.toString()),!this.rebuild||d!="font-size"&&d!="x"||this.rebuild(d,v)}return this}}),t.extend(t.Element,{transform:function(d,v){var M;return g(d)!=="object"?(M=new t.Matrix(this).extract(),typeof d=="string"?M[d]:M):(M=new t.Matrix(this),v=!!v||!!d.relative,d.a!=null&&(M=v?M.multiply(new t.Matrix(d)):new t.Matrix(d)),this.attr("transform",M))}}),t.extend(t.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(t.regex.transforms).slice(0,-1).map(function(d){var v=d.trim().split("(");return[v[0],v[1].split(t.regex.delimiter).map(function(M){return parseFloat(M)})]}).reduce(function(d,v){return v[0]=="matrix"?d.multiply(C(v[1])):d[v[0]].apply(d,v[1])},new t.Matrix)},toParent:function(d){if(this==d)return this;var v=this.screenCTM(),M=d.screenCTM().inverse();return this.addTo(d).untransform().transform(M.multiply(v)),this},toDoc:function(){return this.toParent(this.doc())}}),t.Transformation=t.invent({create:function(d,v){if(arguments.length>1&&typeof v!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(d))for(var M=0,P=this.arguments.length;M<P;++M)this[this.arguments[M]]=d[M];else if(d&&g(d)==="object")for(M=0,P=this.arguments.length;M<P;++M)this[this.arguments[M]]=d[this.arguments[M]];this.inversed=!1,v===!0&&(this.inversed=!0)}}),t.Translate=t.invent({parent:t.Matrix,inherit:t.Transformation,create:function(d,v){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),t.extend(t.Element,{style:function(d,v){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(g(d)==="object")for(var M in d)this.style(M,d[M]);else{if(!t.regex.isCss.test(d))return this.node.style[f(d)];for(d=d.split(/\s*;\s*/).filter(function(P){return!!P}).map(function(P){return P.split(/\s*:\s*/)});v=d.pop();)this.style(v[0],v[1])}else this.node.style[f(d)]=v===null||t.regex.isBlank.test(v)?"":v;return this}}),t.Parent=t.invent({create:function(d){this.constructor.call(this,d)},inherit:t.Element,extend:{children:function(){return t.utils.map(t.utils.filterSVGElements(this.node.childNodes),function(d){return t.adopt(d)})},add:function(d,v){return v==null?this.node.appendChild(d.node):d.node!=this.node.childNodes[v]&&this.node.insertBefore(d.node,this.node.childNodes[v]),this},put:function(d,v){return this.add(d,v),d},has:function(d){return this.index(d)>=0},index:function(d){return[].slice.call(this.node.childNodes).indexOf(d.node)},get:function(d){return t.adopt(this.node.childNodes[d])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(d,v){for(var M=this.children(),P=0,B=M.length;P<B;P++)M[P]instanceof t.Element&&d.apply(M[P],[P,M]),v&&M[P]instanceof t.Container&&M[P].each(d,v);return this},removeElement:function(d){return this.node.removeChild(d.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),t.extend(t.Parent,{ungroup:function(d,v){return v===0||this instanceof t.Defs||this.node==t.parser.draw||(d=d||(this instanceof t.Doc?this:this.parent(t.Parent)),v=v||1/0,this.each(function(){return this instanceof t.Defs?this:this instanceof t.Parent?this.ungroup(d,v-1):this.toParent(d)}),this.node.firstChild||this.remove()),this},flatten:function(d,v){return this.ungroup(d,v)}}),t.Container=t.invent({create:function(d){this.constructor.call(this,d)},inherit:t.Parent}),t.ViewBox=t.invent({parent:t.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(d){t.Element.prototype[d]=function(v){return t.on(this.node,d,v),this}}),t.listeners=[],t.handlerMap=[],t.listenerId=0,t.on=function(d,v,M,P,B){var N=M.bind(P||d.instance||d),W=(t.handlerMap.indexOf(d)+1||t.handlerMap.push(d))-1,G=v.split(".")[0],Q=v.split(".")[1]||"*";t.listeners[W]=t.listeners[W]||{},t.listeners[W][G]=t.listeners[W][G]||{},t.listeners[W][G][Q]=t.listeners[W][G][Q]||{},M._svgjsListenerId||(M._svgjsListenerId=++t.listenerId),t.listeners[W][G][Q][M._svgjsListenerId]=N,d.addEventListener(G,N,B||{passive:!0})},t.off=function(d,v,M){var P=t.handlerMap.indexOf(d),B=v&&v.split(".")[0],N=v&&v.split(".")[1],W="";if(P!=-1)if(M){if(typeof M=="function"&&(M=M._svgjsListenerId),!M)return;t.listeners[P][B]&&t.listeners[P][B][N||"*"]&&(d.removeEventListener(B,t.listeners[P][B][N||"*"][M],!1),delete t.listeners[P][B][N||"*"][M])}else if(N&&B){if(t.listeners[P][B]&&t.listeners[P][B][N]){for(var G in t.listeners[P][B][N])t.off(d,[B,N].join("."),G);delete t.listeners[P][B][N]}}else if(N)for(var Q in t.listeners[P])for(var W in t.listeners[P][Q])N===W&&t.off(d,[Q,N].join("."));else if(B){if(t.listeners[P][B]){for(var W in t.listeners[P][B])t.off(d,[B,W].join("."));delete t.listeners[P][B]}}else{for(var Q in t.listeners[P])t.off(d,Q);delete t.listeners[P],delete t.handlerMap[P]}},t.extend(t.Element,{on:function(d,v,M,P){return t.on(this.node,d,v,M,P),this},off:function(d,v){return t.off(this.node,d,v),this},fire:function(d,v){return d instanceof E.Event?this.node.dispatchEvent(d):this.node.dispatchEvent(d=new t.CustomEvent(d,{detail:v,cancelable:!0})),this._event=d,this},event:function(){return this._event}}),t.Defs=t.invent({create:"defs",inherit:t.Container}),t.G=t.invent({create:"g",inherit:t.Container,extend:{x:function(d){return d==null?this.transform("x"):this.transform({x:d-this.x()},!0)}},construct:{group:function(){return this.put(new t.G)}}}),t.Doc=t.invent({create:function(d){d&&((d=typeof d=="string"?e.getElementById(d):d).nodeName=="svg"?this.constructor.call(this,d):(this.constructor.call(this,t.create("svg")),d.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:t.Container,extend:{namespace:function(){return this.attr({xmlns:t.ns,version:"1.1"}).attr("xmlns:xlink",t.xlink,t.xmlns).attr("xmlns:svgjs",t.svgjs,t.xmlns)},defs:function(){var d;return this._defs||((d=this.node.getElementsByTagName("defs")[0])?this._defs=t.adopt(d):this._defs=new t.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,t.parser.draw&&!t.parser.draw.parentNode&&this.node.appendChild(t.parser.draw),this},clone:function(d){this.writeDataToDom();var v=this.node,M=z(v.cloneNode(!0));return d?(d.node||d).appendChild(M.node):v.parentNode.insertBefore(M.node,v.nextSibling),M}}}),t.extend(t.Element,{}),t.Gradient=t.invent({create:function(d){this.constructor.call(this,t.create(d+"Gradient")),this.type=d},inherit:t.Container,extend:{at:function(d,v,M){return this.put(new t.Stop).update(d,v,M)},update:function(d){return this.clear(),typeof d=="function"&&d.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(d,v,M){return d=="transform"&&(d="gradientTransform"),t.Container.prototype.attr.call(this,d,v,M)}},construct:{gradient:function(d,v){return this.defs().gradient(d,v)}}}),t.extend(t.Gradient,t.FX,{from:function(d,v){return(this._target||this).type=="radial"?this.attr({fx:new t.Number(d),fy:new t.Number(v)}):this.attr({x1:new t.Number(d),y1:new t.Number(v)})},to:function(d,v){return(this._target||this).type=="radial"?this.attr({cx:new t.Number(d),cy:new t.Number(v)}):this.attr({x2:new t.Number(d),y2:new t.Number(v)})}}),t.extend(t.Defs,{gradient:function(d,v){return this.put(new t.Gradient(d)).update(v)}}),t.Stop=t.invent({create:"stop",inherit:t.Element,extend:{update:function(d){return(typeof d=="number"||d instanceof t.Number)&&(d={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),d.opacity!=null&&this.attr("stop-opacity",d.opacity),d.color!=null&&this.attr("stop-color",d.color),d.offset!=null&&this.attr("offset",new t.Number(d.offset)),this}}}),t.Pattern=t.invent({create:"pattern",inherit:t.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(d){return this.clear(),typeof d=="function"&&d.call(this,this),this},toString:function(){return this.fill()},attr:function(d,v,M){return d=="transform"&&(d="patternTransform"),t.Container.prototype.attr.call(this,d,v,M)}},construct:{pattern:function(d,v,M){return this.defs().pattern(d,v,M)}}}),t.extend(t.Defs,{pattern:function(d,v,M){return this.put(new t.Pattern).update(M).attr({x:0,y:0,width:d,height:v,patternUnits:"userSpaceOnUse"})}}),t.Shape=t.invent({create:function(d){this.constructor.call(this,d)},inherit:t.Element}),t.Symbol=t.invent({create:"symbol",inherit:t.Container,construct:{symbol:function(){return this.put(new t.Symbol)}}}),t.Use=t.invent({create:"use",inherit:t.Shape,extend:{element:function(d,v){return this.attr("href",(v||"")+"#"+d,t.xlink)}},construct:{use:function(d,v){return this.put(new t.Use).element(d,v)}}}),t.Rect=t.invent({create:"rect",inherit:t.Shape,construct:{rect:function(d,v){return this.put(new t.Rect).size(d,v)}}}),t.Circle=t.invent({create:"circle",inherit:t.Shape,construct:{circle:function(d){return this.put(new t.Circle).rx(new t.Number(d).divide(2)).move(0,0)}}}),t.extend(t.Circle,t.FX,{rx:function(d){return this.attr("r",d)},ry:function(d){return this.rx(d)}}),t.Ellipse=t.invent({create:"ellipse",inherit:t.Shape,construct:{ellipse:function(d,v){return this.put(new t.Ellipse).size(d,v).move(0,0)}}}),t.extend(t.Ellipse,t.Rect,t.FX,{rx:function(d){return this.attr("rx",d)},ry:function(d){return this.attr("ry",d)}}),t.extend(t.Circle,t.Ellipse,{x:function(d){return d==null?this.cx()-this.rx():this.cx(d+this.rx())},y:function(d){return d==null?this.cy()-this.ry():this.cy(d+this.ry())},cx:function(d){return d==null?this.attr("cx"):this.attr("cx",d)},cy:function(d){return d==null?this.attr("cy"):this.attr("cy",d)},width:function(d){return d==null?2*this.rx():this.rx(new t.Number(d).divide(2))},height:function(d){return d==null?2*this.ry():this.ry(new t.Number(d).divide(2))},size:function(d,v){var M=b(this,d,v);return this.rx(new t.Number(M.width).divide(2)).ry(new t.Number(M.height).divide(2))}}),t.Line=t.invent({create:"line",inherit:t.Shape,extend:{array:function(){return new t.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(d,v,M,P){return d==null?this.array():(d=v!==void 0?{x1:d,y1:v,x2:M,y2:P}:new t.PointArray(d).toLine(),this.attr(d))},move:function(d,v){return this.attr(this.array().move(d,v).toLine())},size:function(d,v){var M=b(this,d,v);return this.attr(this.array().size(M.width,M.height).toLine())}},construct:{line:function(d,v,M,P){return t.Line.prototype.plot.apply(this.put(new t.Line),d!=null?[d,v,M,P]:[0,0,0,0])}}}),t.Polyline=t.invent({create:"polyline",inherit:t.Shape,construct:{polyline:function(d){return this.put(new t.Polyline).plot(d||new t.PointArray)}}}),t.Polygon=t.invent({create:"polygon",inherit:t.Shape,construct:{polygon:function(d){return this.put(new t.Polygon).plot(d||new t.PointArray)}}}),t.extend(t.Polyline,t.Polygon,{array:function(){return this._array||(this._array=new t.PointArray(this.attr("points")))},plot:function(d){return d==null?this.array():this.clear().attr("points",typeof d=="string"?d:this._array=new t.PointArray(d))},clear:function(){return delete this._array,this},move:function(d,v){return this.attr("points",this.array().move(d,v))},size:function(d,v){var M=b(this,d,v);return this.attr("points",this.array().size(M.width,M.height))}}),t.extend(t.Line,t.Polyline,t.Polygon,{morphArray:t.PointArray,x:function(d){return d==null?this.bbox().x:this.move(d,this.bbox().y)},y:function(d){return d==null?this.bbox().y:this.move(this.bbox().x,d)},width:function(d){var v=this.bbox();return d==null?v.width:this.size(d,v.height)},height:function(d){var v=this.bbox();return d==null?v.height:this.size(v.width,d)}}),t.Path=t.invent({create:"path",inherit:t.Shape,extend:{morphArray:t.PathArray,array:function(){return this._array||(this._array=new t.PathArray(this.attr("d")))},plot:function(d){return d==null?this.array():this.clear().attr("d",typeof d=="string"?d:this._array=new t.PathArray(d))},clear:function(){return delete this._array,this}},construct:{path:function(d){return this.put(new t.Path).plot(d||new t.PathArray)}}}),t.Image=t.invent({create:"image",inherit:t.Shape,extend:{load:function(d){if(!d)return this;var v=this,M=new E.Image;return t.on(M,"load",function(){t.off(M);var P=v.parent(t.Pattern);P!==null&&(v.width()==0&&v.height()==0&&v.size(M.width,M.height),P&&P.width()==0&&P.height()==0&&P.size(v.width(),v.height()),typeof v._loaded=="function"&&v._loaded.call(v,{width:M.width,height:M.height,ratio:M.width/M.height,url:d}))}),t.on(M,"error",function(P){t.off(M),typeof v._error=="function"&&v._error.call(v,P)}),this.attr("href",M.src=this.src=d,t.xlink)},loaded:function(d){return this._loaded=d,this},error:function(d){return this._error=d,this}},construct:{image:function(d,v,M){return this.put(new t.Image).load(d).size(v||0,M||v||0)}}}),t.Text=t.invent({create:function(){this.constructor.call(this,t.create("text")),this.dom.leading=new t.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",t.defaults.attrs["font-family"])},inherit:t.Shape,extend:{x:function(d){return d==null?this.attr("x"):this.attr("x",d)},text:function(d){if(d===void 0){d="";for(var v=this.node.childNodes,M=0,P=v.length;M<P;++M)M!=0&&v[M].nodeType!=3&&t.adopt(v[M]).dom.newLined==1&&(d+=`
|
|
130
|
+
`),d+=v[M].textContent;return d}if(this.clear().build(!0),typeof d=="function")d.call(this,this);else{M=0;for(var B=(d=d.split(`
|
|
131
|
+
`)).length;M<B;M++)this.tspan(d[M]).newLine()}return this.build(!1).rebuild()},size:function(d){return this.attr("font-size",d).rebuild()},leading:function(d){return d==null?this.dom.leading:(this.dom.leading=new t.Number(d),this.rebuild())},lines:function(){var d=(this.textPath&&this.textPath()||this).node,v=t.utils.map(t.utils.filterSVGElements(d.childNodes),function(M){return t.adopt(M)});return new t.Set(v)},rebuild:function(d){if(typeof d=="boolean"&&(this._rebuild=d),this._rebuild){var v=this,M=0,P=this.dom.leading*new t.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(v.textPath()||this.attr("x",v.attr("x")),this.text()==`
|
|
132
|
+
`?M+=P:(this.attr("dy",P+M),M=0))}),this.fire("rebuild")}return this},build:function(d){return this._build=!!d,this},setData:function(d){return this.dom=d,this.dom.leading=new t.Number(d.leading||1.3),this}},construct:{text:function(d){return this.put(new t.Text).text(d)},plain:function(d){return this.put(new t.Text).plain(d)}}}),t.Tspan=t.invent({create:"tspan",inherit:t.Shape,extend:{text:function(d){return d==null?this.node.textContent+(this.dom.newLined?`
|
|
133
|
+
`:""):(typeof d=="function"?d.call(this,this):this.plain(d),this)},dx:function(d){return this.attr("dx",d)},dy:function(d){return this.attr("dy",d)},newLine:function(){var d=this.parent(t.Text);return this.dom.newLined=!0,this.dy(d.dom.leading*d.attr("font-size")).attr("x",d.x())}}}),t.extend(t.Text,t.Tspan,{plain:function(d){return this._build===!1&&this.clear(),this.node.appendChild(e.createTextNode(d)),this},tspan:function(d){var v=(this.textPath&&this.textPath()||this).node,M=new t.Tspan;return this._build===!1&&this.clear(),v.appendChild(M.node),M.text(d)},clear:function(){for(var d=(this.textPath&&this.textPath()||this).node;d.hasChildNodes();)d.removeChild(d.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),t.TextPath=t.invent({create:"textPath",inherit:t.Parent,parent:t.Text,construct:{morphArray:t.PathArray,array:function(){var d=this.track();return d?d.array():null},plot:function(d){var v=this.track(),M=null;return v&&(M=v.plot(d)),d==null?M:this},track:function(){var d=this.textPath();if(d)return d.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return t.adopt(this.node.firstChild)}}}),t.Nested=t.invent({create:function(){this.constructor.call(this,t.create("svg")),this.style("overflow","visible")},inherit:t.Container,construct:{nested:function(){return this.put(new t.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(d,v){return v=="color"?d:d+"-"+v}};function h(d,v,M,P){return M+P.replace(t.regex.dots," .")}function f(d){return d.toLowerCase().replace(/-(.)/g,function(v,M){return M.toUpperCase()})}function p(d){return d.charAt(0).toUpperCase()+d.slice(1)}function x(d){var v=d.toString(16);return v.length==1?"0"+v:v}function b(d,v,M){if(v==null||M==null){var P=d.bbox();v==null?v=P.width/P.height*M:M==null&&(M=P.height/P.width*v)}return{width:v,height:M}}function y(d,v,M){return{x:v*d.a+M*d.c+0,y:v*d.b+M*d.d+0}}function C(d){return{a:d[0],b:d[1],c:d[2],d:d[3],e:d[4],f:d[5]}}function z(d){for(var v=d.childNodes.length-1;v>=0;v--)d.childNodes[v]instanceof E.SVGElement&&z(d.childNodes[v]);return t.adopt(d).id(t.eid(d.nodeName))}function L(d){return Math.abs(d)>1e-37?d:0}["fill","stroke"].forEach(function(d){var v={};v[d]=function(M){if(M===void 0)return this;if(typeof M=="string"||t.Color.isRgb(M)||M&&typeof M.fill=="function")this.attr(d,M);else for(var P=l[d].length-1;P>=0;P--)M[l[d][P]]!=null&&this.attr(l.prefix(d,l[d][P]),M[l[d][P]]);return this},t.extend(t.Element,t.FX,v)}),t.extend(t.Element,t.FX,{translate:function(d,v){return this.transform({x:d,y:v})},matrix:function(d){return this.attr("transform",new t.Matrix(arguments.length==6?[].slice.call(arguments):d))},opacity:function(d){return this.attr("opacity",d)},dx:function(d){return this.x(new t.Number(d).plus(this instanceof t.FX?0:this.x()),!0)},dy:function(d){return this.y(new t.Number(d).plus(this instanceof t.FX?0:this.y()),!0)}}),t.extend(t.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(d){return this.node.getPointAtLength(d)}}),t.Set=t.invent({create:function(d){Array.isArray(d)?this.members=d:this.clear()},extend:{add:function(){for(var d=[].slice.call(arguments),v=0,M=d.length;v<M;v++)this.members.push(d[v]);return this},remove:function(d){var v=this.index(d);return v>-1&&this.members.splice(v,1),this},each:function(d){for(var v=0,M=this.members.length;v<M;v++)d.apply(this.members[v],[v,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(d){return this.index(d)>=0},index:function(d){return this.members.indexOf(d)},get:function(d){return this.members[d]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(d){return new t.Set(d)}}}),t.FX.Set=t.invent({create:function(d){this.set=d}}),t.Set.inherit=function(){var d=[];for(var v in t.Shape.prototype)typeof t.Shape.prototype[v]=="function"&&typeof t.Set.prototype[v]!="function"&&d.push(v);for(var v in d.forEach(function(P){t.Set.prototype[P]=function(){for(var B=0,N=this.members.length;B<N;B++)this.members[B]&&typeof this.members[B][P]=="function"&&this.members[B][P].apply(this.members[B],arguments);return P=="animate"?this.fx||(this.fx=new t.FX.Set(this)):this}}),d=[],t.FX.prototype)typeof t.FX.prototype[v]=="function"&&typeof t.FX.Set.prototype[v]!="function"&&d.push(v);d.forEach(function(M){t.FX.Set.prototype[M]=function(){for(var P=0,B=this.set.members.length;P<B;P++)this.set.members[P].fx[M].apply(this.set.members[P].fx,arguments);return this}})},t.extend(t.Element,{}),t.extend(t.Element,{remember:function(d,v){if(g(arguments[0])==="object")for(var M in d)this.remember(M,d[M]);else{if(arguments.length==1)return this.memory()[d];this.memory()[d]=v}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var d=arguments.length-1;d>=0;d--)delete this.memory()[arguments[d]];return this},memory:function(){return this._memory||(this._memory={})}}),t.get=function(d){var v=e.getElementById(function(M){var P=(M||"").toString().match(t.regex.reference);if(P)return P[1]}(d)||d);return t.adopt(v)},t.select=function(d,v){return new t.Set(t.utils.map((v||e).querySelectorAll(d),function(M){return t.adopt(M)}))},t.extend(t.Parent,{select:function(d){return t.select(d,this.node)}});var R="abcdef".split("");if(typeof E.CustomEvent!="function"){var _=function(d,v){v=v||{bubbles:!1,cancelable:!1,detail:void 0};var M=e.createEvent("CustomEvent");return M.initCustomEvent(d,v.bubbles,v.cancelable,v.detail),M};_.prototype=E.Event.prototype,t.CustomEvent=_}else t.CustomEvent=E.CustomEvent;return t},g(a)==="object"?c.exports=$t.document?Fr($t,$t.document):function(E){return Fr(E,E.document)}:$t.SVG=Fr($t,$t.document),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(n,l){return this.add(n,l),!n.attr("in")&&this.autoSetIn&&n.attr("in",this.source),n.attr("result")||n.attr("result",n),n},blend:function(n,l,h){return this.put(new SVG.BlendEffect(n,l,h))},colorMatrix:function(n,l){return this.put(new SVG.ColorMatrixEffect(n,l))},convolveMatrix:function(n){return this.put(new SVG.ConvolveMatrixEffect(n))},componentTransfer:function(n){return this.put(new SVG.ComponentTransferEffect(n))},composite:function(n,l,h){return this.put(new SVG.CompositeEffect(n,l,h))},flood:function(n,l){return this.put(new SVG.FloodEffect(n,l))},offset:function(n,l){return this.put(new SVG.OffsetEffect(n,l))},image:function(n){return this.put(new SVG.ImageEffect(n))},merge:function(){var n=[void 0];for(var l in arguments)n.push(arguments[l]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,n)))},gaussianBlur:function(n,l){return this.put(new SVG.GaussianBlurEffect(n,l))},morphology:function(n,l){return this.put(new SVG.MorphologyEffect(n,l))},diffuseLighting:function(n,l,h){return this.put(new SVG.DiffuseLightingEffect(n,l,h))},displacementMap:function(n,l,h,f,p){return this.put(new SVG.DisplacementMapEffect(n,l,h,f,p))},specularLighting:function(n,l,h,f){return this.put(new SVG.SpecularLightingEffect(n,l,h,f))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(n,l,h,f,p){return this.put(new SVG.TurbulenceEffect(n,l,h,f,p))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(n){var l=this.put(new SVG.Filter);return typeof n=="function"&&n.call(l,l),l}}),SVG.extend(SVG.Container,{filter:function(n){return this.defs().filter(n)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(n){return this.filterer=n instanceof SVG.Element?n:this.doc().filter(n),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(n){return this.filterer&&n===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(n){return n==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return n==null?this.attr("result"):this.attr("result",n)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(n){return n==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return n==null?this.attr("result"):this.attr("result",n)},toString:function(){return this.result()}}});var E={blend:function(n,l){return this.parent()&&this.parent().blend(this,n,l)},colorMatrix:function(n,l){return this.parent()&&this.parent().colorMatrix(n,l).in(this)},convolveMatrix:function(n){return this.parent()&&this.parent().convolveMatrix(n).in(this)},componentTransfer:function(n){return this.parent()&&this.parent().componentTransfer(n).in(this)},composite:function(n,l){return this.parent()&&this.parent().composite(this,n,l)},flood:function(n,l){return this.parent()&&this.parent().flood(n,l)},offset:function(n,l){return this.parent()&&this.parent().offset(n,l).in(this)},image:function(n){return this.parent()&&this.parent().image(n)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(n,l){return this.parent()&&this.parent().gaussianBlur(n,l).in(this)},morphology:function(n,l){return this.parent()&&this.parent().morphology(n,l).in(this)},diffuseLighting:function(n,l,h){return this.parent()&&this.parent().diffuseLighting(n,l,h).in(this)},displacementMap:function(n,l,h,f){return this.parent()&&this.parent().displacementMap(this,n,l,h,f)},specularLighting:function(n,l,h,f){return this.parent()&&this.parent().specularLighting(n,l,h,f).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(n,l,h,f,p){return this.parent()&&this.parent().turbulence(n,l,h,f,p).in(this)}};SVG.extend(SVG.Effect,E),SVG.extend(SVG.ParentEffect,E),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(n){this.attr("in",n)}}});var e={blend:function(n,l,h){this.attr({in:n,in2:l,mode:h||"normal"})},colorMatrix:function(n,l){n=="matrix"&&(l=i(l)),this.attr({type:n,values:l===void 0?null:l})},convolveMatrix:function(n){n=i(n),this.attr({order:Math.sqrt(n.split(" ").length),kernelMatrix:n})},composite:function(n,l,h){this.attr({in:n,in2:l,operator:h})},flood:function(n,l){this.attr("flood-color",n),l!=null&&this.attr("flood-opacity",l)},offset:function(n,l){this.attr({dx:n,dy:l})},image:function(n){this.attr("href",n,SVG.xlink)},displacementMap:function(n,l,h,f,p){this.attr({in:n,in2:l,scale:h,xChannelSelector:f,yChannelSelector:p})},gaussianBlur:function(n,l){n!=null||l!=null?this.attr("stdDeviation",function(h){if(!Array.isArray(h))return h;for(var f=0,p=h.length,x=[];f<p;f++)x.push(h[f]);return x.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(n,l){this.attr({operator:n,radius:l})},tile:function(){},turbulence:function(n,l,h,f,p){this.attr({numOctaves:l,seed:h,stitchTiles:f,baseFrequency:n,type:p})}},t={merge:function(){var n;if(arguments[0]instanceof SVG.Set){var l=this;arguments[0].each(function(f){this instanceof SVG.MergeNode?l.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&l.put(new SVG.MergeNode(this))})}else{n=Array.isArray(arguments[0])?arguments[0]:arguments;for(var h=0;h<n.length;h++)n[h]instanceof SVG.MergeNode?this.put(n[h]):this.put(new SVG.MergeNode(n[h]))}},componentTransfer:function(n){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(h){this[h]=new SVG["Func"+h.toUpperCase()]("identity"),this.rgb.add(this[h]),this.node.appendChild(this[h].node)}.bind(this)),n)for(var l in n.rgb&&(["r","g","b"].forEach(function(h){this[h].attr(n.rgb)}.bind(this)),delete n.rgb),n)this[l].attr(n[l])},diffuseLighting:function(n,l,h){this.attr({surfaceScale:n,diffuseConstant:l,kernelUnitLength:h})},specularLighting:function(n,l,h,f){this.attr({surfaceScale:n,diffuseConstant:l,specularExponent:h,kernelUnitLength:f})}},r={distantLight:function(n,l){this.attr({azimuth:n,elevation:l})},pointLight:function(n,l,h){this.attr({x:n,y:l,z:h})},spotLight:function(n,l,h,f,p,x){this.attr({x:n,y:l,z:h,pointsAtX:f,pointsAtY:p,pointsAtZ:x})},mergeNode:function(n){this.attr("in",n)}};function i(n){return Array.isArray(n)&&(n=new SVG.Array(n)),n.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function s(){var n=function(){};for(var l in typeof arguments[arguments.length-1]=="function"&&(n=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var h in arguments[l])n(arguments[l][h],h,arguments[l])}["r","g","b","a"].forEach(function(n){r["Func"+n.toUpperCase()]=function(l){switch(this.attr("type",l),l){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),s(e,function(n,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),s(t,function(n,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),s(r,function(n,l){var h=l.charAt(0).toUpperCase()+l.slice(1);SVG[h]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),n.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(n){return n instanceof SVG.MergeNode?this.add(n,0):this.add(new SVG.MergeNode(n),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(n){return n==null?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",n)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function E(s,n,l,h,f,p,x){for(var b=s.slice(n,l||x),y=h.slice(f,p||x),C=0,z={pos:[0,0],start:[0,0]},L={pos:[0,0],start:[0,0]};b[C]=e.call(z,b[C]),y[C]=e.call(L,y[C]),b[C][0]!=y[C][0]||b[C][0]=="M"||b[C][0]=="A"&&(b[C][4]!=y[C][4]||b[C][5]!=y[C][5])?(Array.prototype.splice.apply(b,[C,1].concat(r.call(z,b[C]))),Array.prototype.splice.apply(y,[C,1].concat(r.call(L,y[C])))):(b[C]=t.call(z,b[C]),y[C]=t.call(L,y[C])),!(++C==b.length&&C==y.length);)C==b.length&&b.push(["C",z.pos[0],z.pos[1],z.pos[0],z.pos[1],z.pos[0],z.pos[1]]),C==y.length&&y.push(["C",L.pos[0],L.pos[1],L.pos[0],L.pos[1],L.pos[0],L.pos[1]]);return{start:b,dest:y}}function e(s){switch(s[0]){case"z":case"Z":s[0]="L",s[1]=this.start[0],s[2]=this.start[1];break;case"H":s[0]="L",s[2]=this.pos[1];break;case"V":s[0]="L",s[2]=s[1],s[1]=this.pos[0];break;case"T":s[0]="Q",s[3]=s[1],s[4]=s[2],s[1]=this.reflection[1],s[2]=this.reflection[0];break;case"S":s[0]="C",s[6]=s[4],s[5]=s[3],s[4]=s[2],s[3]=s[1],s[2]=this.reflection[1],s[1]=this.reflection[0]}return s}function t(s){var n=s.length;return this.pos=[s[n-2],s[n-1]],"SCQT".indexOf(s[0])!=-1&&(this.reflection=[2*this.pos[0]-s[n-4],2*this.pos[1]-s[n-3]]),s}function r(s){var n=[s];switch(s[0]){case"M":return this.pos=this.start=[s[1],s[2]],n;case"L":s[5]=s[3]=s[1],s[6]=s[4]=s[2],s[1]=this.pos[0],s[2]=this.pos[1];break;case"Q":s[6]=s[4],s[5]=s[3],s[4]=1*s[4]/3+2*s[2]/3,s[3]=1*s[3]/3+2*s[1]/3,s[2]=1*this.pos[1]/3+2*s[2]/3,s[1]=1*this.pos[0]/3+2*s[1]/3;break;case"A":n=function(l,h){var f,p,x,b,y,C,z,L,R,_,d,v,M,P,B,N,W,G,Q,ie,te,ce,me,Le,De,Ie,Ve=Math.abs(h[1]),Oe=Math.abs(h[2]),$e=h[3]%360,Ht=h[4],Zt=h[5],ya=h[6],wa=h[7],st=new SVG.Point(l),et=new SVG.Point(ya,wa),Oi=[];if(Ve===0||Oe===0||st.x===et.x&&st.y===et.y)return[["C",st.x,st.y,et.x,et.y,et.x,et.y]];for(f=new SVG.Point((st.x-et.x)/2,(st.y-et.y)/2).transform(new SVG.Matrix().rotate($e)),(p=f.x*f.x/(Ve*Ve)+f.y*f.y/(Oe*Oe))>1&&(Ve*=p=Math.sqrt(p),Oe*=p),x=new SVG.Matrix().rotate($e).scale(1/Ve,1/Oe).rotate(-$e),st=st.transform(x),et=et.transform(x),b=[et.x-st.x,et.y-st.y],C=b[0]*b[0]+b[1]*b[1],y=Math.sqrt(C),b[0]/=y,b[1]/=y,z=C<4?Math.sqrt(1-C/4):0,Ht===Zt&&(z*=-1),L=new SVG.Point((et.x+st.x)/2+z*-b[1],(et.y+st.y)/2+z*b[0]),R=new SVG.Point(st.x-L.x,st.y-L.y),_=new SVG.Point(et.x-L.x,et.y-L.y),d=Math.acos(R.x/Math.sqrt(R.x*R.x+R.y*R.y)),R.y<0&&(d*=-1),v=Math.acos(_.x/Math.sqrt(_.x*_.x+_.y*_.y)),_.y<0&&(v*=-1),Zt&&d>v&&(v+=2*Math.PI),!Zt&&d<v&&(v-=2*Math.PI),P=Math.ceil(2*Math.abs(d-v)/Math.PI),N=[],W=d,M=(v-d)/P,B=4*Math.tan(M/4)/3,te=0;te<=P;te++)Q=Math.cos(W),G=Math.sin(W),ie=new SVG.Point(L.x+Q,L.y+G),N[te]=[new SVG.Point(ie.x+B*G,ie.y-B*Q),ie,new SVG.Point(ie.x-B*G,ie.y+B*Q)],W+=M;for(N[0][0]=N[0][1].clone(),N[N.length-1][2]=N[N.length-1][1].clone(),x=new SVG.Matrix().rotate($e).scale(Ve,Oe).rotate(-$e),te=0,ce=N.length;te<ce;te++)N[te][0]=N[te][0].transform(x),N[te][1]=N[te][1].transform(x),N[te][2]=N[te][2].transform(x);for(te=1,ce=N.length;te<ce;te++)me=(ie=N[te-1][2]).x,Le=ie.y,De=(ie=N[te][0]).x,Ie=ie.y,ya=(ie=N[te][1]).x,wa=ie.y,Oi.push(["C",me,Le,De,Ie,ya,wa]);return Oi}(this.pos,s),s=n[0]}return s[0]="C",this.pos=[s[5],s[6]],this.reflection=[2*s[5]-s[3],2*s[6]-s[4]],n}function i(s,n){if(n===!1)return!1;for(var l=n,h=s.length;l<h;++l)if(s[l][0]=="M")return l;return!1}SVG.extend(SVG.PathArray,{morph:function(s){for(var n=this.value,l=this.parse(s),h=0,f=0,p=!1,x=!1;h!==!1||f!==!1;){var b;p=i(n,h!==!1&&h+1),x=i(l,f!==!1&&f+1),h===!1&&(h=(b=new SVG.PathArray(y.start).bbox()).height==0||b.width==0?n.push(n[0])-1:n.push(["M",b.x+b.width/2,b.y+b.height/2])-1),f===!1&&(f=(b=new SVG.PathArray(y.dest).bbox()).height==0||b.width==0?l.push(l[0])-1:l.push(["M",b.x+b.width/2,b.y+b.height/2])-1);var y=E(n,h,p,l,f,x);n=n.slice(0,h).concat(y.start,p===!1?[]:n.slice(p)),l=l.slice(0,f).concat(y.dest,x===!1?[]:l.slice(x)),h=p!==!1&&h+y.start.length,f=x!==!1&&f+y.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=l,this}})}(),function(){function E(e){e.remember("_draggable",this),this.el=e}E.prototype.init=function(e,t){var r=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",function(i){r.start(i)}),this.el.on("touchstart.drag",function(i){r.start(i)})},E.prototype.transformPoint=function(e,t){var r=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=r.clientX-(t||0),this.p.y=r.clientY,this.p.matrixTransform(this.m)},E.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},E.prototype.start=function(e){if(e.type!="click"&&e.type!="mousedown"&&e.type!="mousemove"||(e.which||e.buttons)==1){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var r,i=this.getBBox();if(this.el instanceof SVG.Text)switch(r=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":r/=2;break;case"start":r=0}this.startPoints={point:this.transformPoint(e,r),box:i,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(s){t.drag(s)}),SVG.on(window,"touchmove.drag",function(s){t.drag(s)}),SVG.on(window,"mouseup.drag",function(s){t.end(s)}),SVG.on(window,"touchend.drag",function(s){t.end(s)}),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},E.prototype.drag=function(e){var t=this.getBBox(),r=this.transformPoint(e),i=this.startPoints.box.x+r.x-this.startPoints.point.x,s=this.startPoints.box.y+r.y-this.startPoints.point.y,n=this.constraint,l=r.x-this.startPoints.point.x,h=r.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:r,m:this.m,handler:this}),this.el.event().defaultPrevented)return r;if(typeof n=="function"){var f=n.call(this.el,i,s,this.m);typeof f=="boolean"&&(f={x:f,y:f}),f.x===!0?this.el.x(i):f.x!==!1&&this.el.x(f.x),f.y===!0?this.el.y(s):f.y!==!1&&this.el.y(f.y)}else typeof n=="object"&&(n.minX!=null&&i<n.minX?l=(i=n.minX)-this.startPoints.box.x:n.maxX!=null&&i>n.maxX-t.width&&(l=(i=n.maxX-t.width)-this.startPoints.box.x),n.minY!=null&&s<n.minY?h=(s=n.minY)-this.startPoints.box.y:n.maxY!=null&&s>n.maxY-t.height&&(h=(s=n.maxY-t.height)-this.startPoints.box.y),n.snapToGrid!=null&&(i-=i%n.snapToGrid,s-=s%n.snapToGrid,l-=l%n.snapToGrid,h-=h%n.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:l,y:h},!0):this.el.move(i,s));return r},E.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,t){typeof e!="function"&&typeof e!="object"||(t=e,e=!0);var r=this.remember("_draggable")||new E(this);return(e=e===void 0||e)?r.init(t||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function E(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,r,i){var s=typeof t!="string"?t:r[t];return i?s/2:s},this.pointCoords=function(t,r){var i=this.pointsList[t];return{x:this.pointCoord(i[0],r,t==="t"||t==="b"),y:this.pointCoord(i[1],r,t==="r"||t==="l")}}}E.prototype.init=function(e,t){var r=this.el.bbox();this.options={};var i=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],t[s]!==void 0&&(this.options[s]=t[s]);var n=["points","pointsExclude"];for(var s in n){var l=this.options[n[s]];typeof l=="string"?l=l.length>0?l.split(/\s*,\s*/i):[]:typeof l=="boolean"&&n[s]==="points"&&(l=l?i:[]),this.options[n[s]]=l}this.options.points=[i,this.options.points].reduce(function(h,f){return h.filter(function(p){return f.indexOf(p)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(h,f){return h.filter(function(p){return f.indexOf(p)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(r.x,r.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},E.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},E.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},E.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),r=0,i=t.length;r<i;++r){var s=function(l){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var f=h.pageX||h.touches[0].pageX,p=h.pageY||h.touches[0].pageY;e.el.fire("point",{x:f,y:p,i:l,event:h})}}(r),n=this.drawPoint(t[r][0],t[r][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",s).on("mousedown",s);this.pointSelection.set.add(n)}},E.prototype.drawPoint=function(e,t){var r=this.options.pointType;switch(r){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if(typeof r=="function")return r.call(this,e,t);throw new Error("Unknown "+r+" point type!")}},E.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},E.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},E.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each(function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])})},E.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map(function(i,s){var n=e.pointCoords(i,t);e.rectSelection.set.get(s+1).center(n.x,n.y)}),this.options.rotationPoint){var r=this.rectSelection.set.length();this.rectSelection.set.get(r-1).center(t.width/2,20)}},E.prototype.selectRect=function(e){var t=this,r=this.el.bbox();function i(l){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var f=h.pageX||h.touches[0].pageX,p=h.pageY||h.touches[0].pageY;t.el.fire(l,{x:f,y:p,event:h})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(r.width,r.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(l,h){var f=t.pointCoords(l,r),p=t.drawPoint(f.x,f.y).attr("class",t.options.classPoints+"_"+l).on("mousedown",i(l)).on("touchstart",i(l));t.rectSelection.set.add(p)}),this.rectSelection.set.each(function(){this.addClass(t.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var s=function(l){(l=l||window.event).preventDefault?l.preventDefault():l.returnValue=!1,l.stopPropagation();var h=l.pageX||l.touches[0].pageX,f=l.pageY||l.touches[0].pageY;t.el.fire("rot",{x:h,y:f,event:l})},n=this.drawPoint(r.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",s).on("mousedown",s);this.rectSelection.set.add(n)}},E.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},E.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){e.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){e.handler()})},E.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,t){return typeof e=="object"&&(t=e,e=!0),(this.remember("_selectHandler")||new E(this)).init(e===void 0||e,t||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function E(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}E.prototype.transformPoint=function(e,t,r){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(r||this.m)},E.prototype._extractPosition=function(e){return{x:e.clientX!=null?e.clientX:e.touches[0].clientX,y:e.clientY!=null?e.clientY:e.touches[0].clientY}},E.prototype.init=function(e){var t=this;if(this.stop(),e!=="stop"){for(var r in this.options={},this.el.resize.defaults)this.options[r]=this.el.resize.defaults[r],e[r]!==void 0&&(this.options[r]=e[r]);this.el.on("lt.resize",function(i){t.resize(i||window.event)}),this.el.on("rt.resize",function(i){t.resize(i||window.event)}),this.el.on("rb.resize",function(i){t.resize(i||window.event)}),this.el.on("lb.resize",function(i){t.resize(i||window.event)}),this.el.on("t.resize",function(i){t.resize(i||window.event)}),this.el.on("r.resize",function(i){t.resize(i||window.event)}),this.el.on("b.resize",function(i){t.resize(i||window.event)}),this.el.on("l.resize",function(i){t.resize(i||window.event)}),this.el.on("rot.resize",function(i){t.resize(i||window.event)}),this.el.on("point.resize",function(i){t.resize(i||window.event)}),this.update()}},E.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},E.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var r=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(r.x,r.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),e.detail.i!==void 0){var i=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[i[e.detail.i][0],i[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(s,n){var l=this.snapToGrid(s,n);if(this.parameters.box.width-l[0]>0&&this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-l[0]);l=this.checkAspectRatio(l),this.el.move(this.parameters.box.x+l[0],this.parameters.box.y+l[1]).size(this.parameters.box.width-l[0],this.parameters.box.height-l[1])}};break;case"rt":this.calc=function(s,n){var l=this.snapToGrid(s,n,2);if(this.parameters.box.width+l[0]>0&&this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+l[0]);l=this.checkAspectRatio(l,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+l[1]).size(this.parameters.box.width+l[0],this.parameters.box.height-l[1])}};break;case"rb":this.calc=function(s,n){var l=this.snapToGrid(s,n,0);if(this.parameters.box.width+l[0]>0&&this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+l[0]);l=this.checkAspectRatio(l),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+l[0],this.parameters.box.height+l[1])}};break;case"lb":this.calc=function(s,n){var l=this.snapToGrid(s,n,1);if(this.parameters.box.width-l[0]>0&&this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+l[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-l[0]);l=this.checkAspectRatio(l,!0),this.el.move(this.parameters.box.x+l[0],this.parameters.box.y).size(this.parameters.box.width-l[0],this.parameters.box.height+l[1])}};break;case"t":this.calc=function(s,n){var l=this.snapToGrid(s,n,2);if(this.parameters.box.height-l[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+l[1]).height(this.parameters.box.height-l[1])}};break;case"r":this.calc=function(s,n){var l=this.snapToGrid(s,n,0);if(this.parameters.box.width+l[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+l[0])}};break;case"b":this.calc=function(s,n){var l=this.snapToGrid(s,n,0);if(this.parameters.box.height+l[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+l[1])}};break;case"l":this.calc=function(s,n){var l=this.snapToGrid(s,n,1);if(this.parameters.box.width-l[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+l[0],this.parameters.box.y).width(this.parameters.box.width-l[0])}};break;case"rot":this.calc=function(s,n){var l=s+this.parameters.p.x,h=n+this.parameters.p.y,f=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),p=Math.atan2(h-this.parameters.box.y-this.parameters.box.height/2,l-this.parameters.box.x-this.parameters.box.width/2),x=this.parameters.rotation+180*(p-f)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(x-x%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(s,n){var l=this.snapToGrid(s,n,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),h=this.el.array().valueOf();h[this.parameters.i][0]=this.parameters.pointCoords[0]+l[0],h[this.parameters.i][1]=this.parameters.pointCoords[1]+l[1],this.el.plot(h)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},E.prototype.update=function(e){if(e){var t=this._extractPosition(e),r=this.transformPoint(t.x,t.y),i=r.x-this.parameters.p.x,s=r.y-this.parameters.p.y;this.lastUpdateCall=[i,s],this.calc(i,s),this.el.fire("resizing",{dx:i,dy:s,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},E.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},E.prototype.snapToGrid=function(e,t,r,i){var s;return i!==void 0?s=[(r+e)%this.options.snapToGrid,(i+t)%this.options.snapToGrid]:(r=r??3,s=[(this.parameters.box.x+e+(1&r?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&r?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(s[0]-=this.options.snapToGrid),t<0&&(s[1]-=this.options.snapToGrid),e-=Math.abs(s[0])<this.options.snapToGrid/2?s[0]:s[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(s[1])<this.options.snapToGrid/2?s[1]:s[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,r,i)},E.prototype.constraintToBox=function(e,t,r,i){var s,n,l=this.options.constraint||{};return i!==void 0?(s=r,n=i):(s=this.parameters.box.x+(1&r?0:this.parameters.box.width),n=this.parameters.box.y+(2&r?0:this.parameters.box.height)),l.minX!==void 0&&s+e<l.minX&&(e=l.minX-s),l.maxX!==void 0&&s+e>l.maxX&&(e=l.maxX-s),l.minY!==void 0&&n+t<l.minY&&(t=l.minY-n),l.maxY!==void 0&&n+t>l.maxY&&(t=l.maxY-n),[e,t]},E.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var r=e.slice(),i=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+e[0],n=this.parameters.box.height-e[1],l=s/n;return l<i?(r[1]=s/i-this.parameters.box.height,t&&(r[1]=-r[1])):l>i&&(r[0]=this.parameters.box.width-n*i,t&&(r[0]=-r[0])),r},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new E(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var Bi=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new se(this.ctx),this.ctx.axes=new vr(this.ctx),this.ctx.core=new Do(this.ctx.el,this.ctx),this.ctx.config=new vt({}),this.ctx.data=new Ue(this.ctx),this.ctx.grid=new At(this.ctx),this.ctx.graphics=new U(this.ctx),this.ctx.coreUtils=new re(this.ctx),this.ctx.crosshairs=new Ot(this.ctx),this.ctx.events=new Pr(this.ctx),this.ctx.exports=new at(this.ctx),this.ctx.localization=new Ir(this.ctx),this.ctx.options=new Pe,this.ctx.responsive=new sr(this.ctx),this.ctx.series=new ze(this.ctx),this.ctx.theme=new lo(this.ctx),this.ctx.formatters=new Me(this.ctx),this.ctx.titleSubtitle=new co(this.ctx),this.ctx.legend=new Ti(this.ctx),this.ctx.toolbar=new Li(this.ctx),this.ctx.tooltip=new Pi(this.ctx),this.ctx.dimensions=new Rr(this.ctx),this.ctx.updateHelpers=new Po(this.ctx),this.ctx.zoomPanSelection=new mo(this.ctx),this.ctx.w.globals.tooltip=new Pi(this.ctx)}}]),E}(),Ni=function(){function E(e){m(this,E),this.ctx=e,this.w=e.w}return w(E,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(t,r){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,r=e.isUpdating,i=this.w.globals.dom.Paper.node;i.parentNode&&i.parentNode.parentNode&&!r&&(i.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach(function(l){s.removeEventListener(l,t.ctx.events.documentEvent)});var n=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(n.Paper),n.Paper.remove(),n.elWrap=null,n.elGraphical=null,n.elLegendWrap=null,n.elLegendForeign=null,n.baseEl=null,n.elGridRect=null,n.elGridRectMask=null,n.elGridRectMarkerMask=null,n.elForecastMask=null,n.elNonForecastMask=null,n.elDefs=null}}]),E}(),va=new WeakMap,Io=function(){function E(e,t){m(this,E),this.opts=t,this.ctx=this,this.w=new ft(t).init(),this.el=e,this.w.globals.cuid=O.randomId(),this.w.globals.chartID=this.w.config.chart.id?O.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Bi(this).initModules(),this.create=O.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return w(E,[{key:"render",value:function(){var e=this;return new Promise(function(t,r){if(e.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var i=e.w.config.chart.events.beforeMount;if(typeof i=="function"&&i(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(p,x){var b=!1;if(p.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var y=p.getBoundingClientRect();p.style.display!=="none"&&y.width!==0||(b=!0)}var C=new ResizeObserver(function(z){b&&x.call(p,z),b=!0});p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(p.children).forEach(function(z){return C.observe(z)}):C.observe(p),va.set(x,C)}(e.el.parentNode,e.parentResizeHandler),!e.css){var s=e.el.getRootNode&&e.el.getRootNode(),n=O.is("ShadowRoot",s),l=e.el.ownerDocument,h=l.getElementById("apexcharts-css");!n&&h||(e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent=`@keyframes opaque {
|
|
134
|
+
0% {
|
|
135
|
+
opacity: 0
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
to {
|
|
139
|
+
opacity: 1
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@keyframes resizeanim {
|
|
144
|
+
0%,to {
|
|
145
|
+
opacity: 0
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.apexcharts-canvas {
|
|
150
|
+
position: relative;
|
|
151
|
+
user-select: none
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.apexcharts-canvas ::-webkit-scrollbar {
|
|
155
|
+
-webkit-appearance: none;
|
|
156
|
+
width: 6px
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.apexcharts-canvas ::-webkit-scrollbar-thumb {
|
|
160
|
+
border-radius: 4px;
|
|
161
|
+
background-color: rgba(0,0,0,.5);
|
|
162
|
+
box-shadow: 0 0 1px rgba(255,255,255,.5);
|
|
163
|
+
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.apexcharts-inner {
|
|
167
|
+
position: relative
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.apexcharts-text tspan {
|
|
171
|
+
font-family: inherit
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.legend-mouseover-inactive {
|
|
175
|
+
transition: .15s ease all;
|
|
176
|
+
opacity: .2
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.apexcharts-legend-text {
|
|
180
|
+
padding-left: 15px;
|
|
181
|
+
margin-left: -15px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.apexcharts-series-collapsed {
|
|
185
|
+
opacity: 0
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.apexcharts-tooltip {
|
|
189
|
+
border-radius: 5px;
|
|
190
|
+
box-shadow: 2px 2px 6px -4px #999;
|
|
191
|
+
cursor: default;
|
|
192
|
+
font-size: 14px;
|
|
193
|
+
left: 62px;
|
|
194
|
+
opacity: 0;
|
|
195
|
+
pointer-events: none;
|
|
196
|
+
position: absolute;
|
|
197
|
+
top: 20px;
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
z-index: 12;
|
|
203
|
+
transition: .15s ease all
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.apexcharts-tooltip.apexcharts-active {
|
|
207
|
+
opacity: 1;
|
|
208
|
+
transition: .15s ease all
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.apexcharts-tooltip.apexcharts-theme-light {
|
|
212
|
+
border: 1px solid #e3e3e3;
|
|
213
|
+
background: rgba(255,255,255,.96)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.apexcharts-tooltip.apexcharts-theme-dark {
|
|
217
|
+
color: #fff;
|
|
218
|
+
background: rgba(30,30,30,.8)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.apexcharts-tooltip * {
|
|
222
|
+
font-family: inherit
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.apexcharts-tooltip-title {
|
|
226
|
+
padding: 6px;
|
|
227
|
+
font-size: 15px;
|
|
228
|
+
margin-bottom: 4px
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
|
|
232
|
+
background: #eceff1;
|
|
233
|
+
border-bottom: 1px solid #ddd
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
|
|
237
|
+
background: rgba(0,0,0,.7);
|
|
238
|
+
border-bottom: 1px solid #333
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
|
|
242
|
+
display: inline-block;
|
|
243
|
+
margin-left: 5px;
|
|
244
|
+
font-weight: 600
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
|
|
248
|
+
display: none
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
|
|
252
|
+
padding: 6px 0 5px
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
|
|
256
|
+
display: flex
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
|
|
260
|
+
margin-top: -6px
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.apexcharts-tooltip-marker {
|
|
264
|
+
width: 12px;
|
|
265
|
+
height: 12px;
|
|
266
|
+
position: relative;
|
|
267
|
+
top: 0;
|
|
268
|
+
margin-right: 10px;
|
|
269
|
+
border-radius: 50%
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.apexcharts-tooltip-series-group {
|
|
273
|
+
padding: 0 10px;
|
|
274
|
+
display: none;
|
|
275
|
+
text-align: left;
|
|
276
|
+
justify-content: left;
|
|
277
|
+
align-items: center
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
|
|
281
|
+
opacity: 1
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
|
|
285
|
+
padding-bottom: 4px
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.apexcharts-tooltip-series-group-hidden {
|
|
289
|
+
opacity: 0;
|
|
290
|
+
height: 0;
|
|
291
|
+
line-height: 0;
|
|
292
|
+
padding: 0!important
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.apexcharts-tooltip-y-group {
|
|
296
|
+
padding: 6px 0 5px
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
|
|
300
|
+
padding: 4px 8px
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.apexcharts-tooltip-boxPlot {
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: column-reverse
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.apexcharts-tooltip-box>div {
|
|
309
|
+
margin: 4px 0
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.apexcharts-tooltip-box span.value {
|
|
313
|
+
font-weight: 700
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.apexcharts-tooltip-rangebar {
|
|
317
|
+
padding: 5px 8px
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.apexcharts-tooltip-rangebar .category {
|
|
321
|
+
font-weight: 600;
|
|
322
|
+
color: #777
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.apexcharts-tooltip-rangebar .series-name {
|
|
326
|
+
font-weight: 700;
|
|
327
|
+
display: block;
|
|
328
|
+
margin-bottom: 5px
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
|
|
332
|
+
opacity: 0;
|
|
333
|
+
pointer-events: none;
|
|
334
|
+
color: #373d3f;
|
|
335
|
+
font-size: 13px;
|
|
336
|
+
text-align: center;
|
|
337
|
+
border-radius: 2px;
|
|
338
|
+
position: absolute;
|
|
339
|
+
z-index: 10;
|
|
340
|
+
background: #eceff1;
|
|
341
|
+
border: 1px solid #90a4ae
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.apexcharts-xaxistooltip {
|
|
345
|
+
padding: 9px 10px;
|
|
346
|
+
transition: .15s ease all
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.apexcharts-xaxistooltip.apexcharts-theme-dark {
|
|
350
|
+
background: rgba(0,0,0,.7);
|
|
351
|
+
border: 1px solid rgba(0,0,0,.5);
|
|
352
|
+
color: #fff
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
|
|
356
|
+
left: 50%;
|
|
357
|
+
border: solid transparent;
|
|
358
|
+
content: " ";
|
|
359
|
+
height: 0;
|
|
360
|
+
width: 0;
|
|
361
|
+
position: absolute;
|
|
362
|
+
pointer-events: none
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.apexcharts-xaxistooltip:after {
|
|
366
|
+
border-color: transparent;
|
|
367
|
+
border-width: 6px;
|
|
368
|
+
margin-left: -6px
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.apexcharts-xaxistooltip:before {
|
|
372
|
+
border-color: transparent;
|
|
373
|
+
border-width: 7px;
|
|
374
|
+
margin-left: -7px
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
|
|
378
|
+
bottom: 100%
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
|
|
382
|
+
top: 100%
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.apexcharts-xaxistooltip-bottom:after {
|
|
386
|
+
border-bottom-color: #eceff1
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.apexcharts-xaxistooltip-bottom:before {
|
|
390
|
+
border-bottom-color: #90a4ae
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
|
|
394
|
+
border-bottom-color: rgba(0,0,0,.5)
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.apexcharts-xaxistooltip-top:after {
|
|
398
|
+
border-top-color: #eceff1
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.apexcharts-xaxistooltip-top:before {
|
|
402
|
+
border-top-color: #90a4ae
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
|
|
406
|
+
border-top-color: rgba(0,0,0,.5)
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.apexcharts-xaxistooltip.apexcharts-active {
|
|
410
|
+
opacity: 1;
|
|
411
|
+
transition: .15s ease all
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.apexcharts-yaxistooltip {
|
|
415
|
+
padding: 4px 10px
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.apexcharts-yaxistooltip.apexcharts-theme-dark {
|
|
419
|
+
background: rgba(0,0,0,.7);
|
|
420
|
+
border: 1px solid rgba(0,0,0,.5);
|
|
421
|
+
color: #fff
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
|
|
425
|
+
top: 50%;
|
|
426
|
+
border: solid transparent;
|
|
427
|
+
content: " ";
|
|
428
|
+
height: 0;
|
|
429
|
+
width: 0;
|
|
430
|
+
position: absolute;
|
|
431
|
+
pointer-events: none
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.apexcharts-yaxistooltip:after {
|
|
435
|
+
border-color: transparent;
|
|
436
|
+
border-width: 6px;
|
|
437
|
+
margin-top: -6px
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.apexcharts-yaxistooltip:before {
|
|
441
|
+
border-color: transparent;
|
|
442
|
+
border-width: 7px;
|
|
443
|
+
margin-top: -7px
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
|
|
447
|
+
left: 100%
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
|
|
451
|
+
right: 100%
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.apexcharts-yaxistooltip-left:after {
|
|
455
|
+
border-left-color: #eceff1
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.apexcharts-yaxistooltip-left:before {
|
|
459
|
+
border-left-color: #90a4ae
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
|
|
463
|
+
border-left-color: rgba(0,0,0,.5)
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.apexcharts-yaxistooltip-right:after {
|
|
467
|
+
border-right-color: #eceff1
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.apexcharts-yaxistooltip-right:before {
|
|
471
|
+
border-right-color: #90a4ae
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
|
|
475
|
+
border-right-color: rgba(0,0,0,.5)
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.apexcharts-yaxistooltip.apexcharts-active {
|
|
479
|
+
opacity: 1
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.apexcharts-yaxistooltip-hidden {
|
|
483
|
+
display: none
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
|
|
487
|
+
pointer-events: none;
|
|
488
|
+
opacity: 0;
|
|
489
|
+
transition: .15s ease all
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
|
|
493
|
+
opacity: 1;
|
|
494
|
+
transition: .15s ease all
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.apexcharts-ycrosshairs-hidden {
|
|
498
|
+
opacity: 0
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.apexcharts-selection-rect {
|
|
502
|
+
cursor: move
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.svg_select_boundingRect,.svg_select_points_rot {
|
|
506
|
+
pointer-events: none;
|
|
507
|
+
opacity: 0;
|
|
508
|
+
visibility: hidden
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
|
|
512
|
+
opacity: 0;
|
|
513
|
+
visibility: hidden
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
|
|
517
|
+
cursor: ew-resize;
|
|
518
|
+
opacity: 1;
|
|
519
|
+
visibility: visible
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.svg_select_points {
|
|
523
|
+
fill: #efefef;
|
|
524
|
+
stroke: #333;
|
|
525
|
+
rx: 2
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
|
|
529
|
+
cursor: crosshair
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.apexcharts-svg.apexcharts-zoomable.hovering-pan {
|
|
533
|
+
cursor: move
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
|
|
537
|
+
cursor: pointer;
|
|
538
|
+
width: 20px;
|
|
539
|
+
height: 20px;
|
|
540
|
+
line-height: 24px;
|
|
541
|
+
color: #6e8192;
|
|
542
|
+
text-align: center
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
|
|
546
|
+
fill: #6e8192
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.apexcharts-selection-icon svg {
|
|
550
|
+
fill: #444;
|
|
551
|
+
transform: scale(.76)
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
|
|
555
|
+
fill: #f3f4f5
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
|
|
559
|
+
fill: #008ffb
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
|
|
563
|
+
fill: #333
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.apexcharts-menu-icon,.apexcharts-selection-icon {
|
|
567
|
+
position: relative
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.apexcharts-reset-icon {
|
|
571
|
+
margin-left: 5px
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
|
|
575
|
+
transform: scale(.85)
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
|
|
579
|
+
transform: scale(.7)
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.apexcharts-zoomout-icon {
|
|
583
|
+
margin-right: 3px
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.apexcharts-pan-icon {
|
|
587
|
+
transform: scale(.62);
|
|
588
|
+
position: relative;
|
|
589
|
+
left: 1px;
|
|
590
|
+
top: 0
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.apexcharts-pan-icon svg {
|
|
594
|
+
fill: #fff;
|
|
595
|
+
stroke: #6e8192;
|
|
596
|
+
stroke-width: 2
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.apexcharts-pan-icon.apexcharts-selected svg {
|
|
600
|
+
stroke: #008ffb
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
|
|
604
|
+
stroke: #333
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.apexcharts-toolbar {
|
|
608
|
+
position: absolute;
|
|
609
|
+
z-index: 11;
|
|
610
|
+
max-width: 176px;
|
|
611
|
+
text-align: right;
|
|
612
|
+
border-radius: 3px;
|
|
613
|
+
padding: 0 6px 2px;
|
|
614
|
+
display: flex;
|
|
615
|
+
justify-content: space-between;
|
|
616
|
+
align-items: center
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.apexcharts-menu {
|
|
620
|
+
background: #fff;
|
|
621
|
+
position: absolute;
|
|
622
|
+
top: 100%;
|
|
623
|
+
border: 1px solid #ddd;
|
|
624
|
+
border-radius: 3px;
|
|
625
|
+
padding: 3px;
|
|
626
|
+
right: 10px;
|
|
627
|
+
opacity: 0;
|
|
628
|
+
min-width: 110px;
|
|
629
|
+
transition: .15s ease all;
|
|
630
|
+
pointer-events: none
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.apexcharts-menu.apexcharts-menu-open {
|
|
634
|
+
opacity: 1;
|
|
635
|
+
pointer-events: all;
|
|
636
|
+
transition: .15s ease all
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.apexcharts-menu-item {
|
|
640
|
+
padding: 6px 7px;
|
|
641
|
+
font-size: 12px;
|
|
642
|
+
cursor: pointer
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.apexcharts-theme-light .apexcharts-menu-item:hover {
|
|
646
|
+
background: #eee
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.apexcharts-theme-dark .apexcharts-menu {
|
|
650
|
+
background: rgba(0,0,0,.7);
|
|
651
|
+
color: #fff
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
@media screen and (min-width:768px) {
|
|
655
|
+
.apexcharts-canvas:hover .apexcharts-toolbar {
|
|
656
|
+
opacity: 1
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
|
|
661
|
+
opacity: 0
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.apexcharts-hidden-element-shown {
|
|
665
|
+
opacity: 1;
|
|
666
|
+
transition: 0.25s ease all;
|
|
667
|
+
}
|
|
668
|
+
.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
|
|
669
|
+
cursor: default;
|
|
670
|
+
pointer-events: none
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.apexcharts-pie-label-delay {
|
|
674
|
+
opacity: 0;
|
|
675
|
+
animation-name: opaque;
|
|
676
|
+
animation-duration: .3s;
|
|
677
|
+
animation-fill-mode: forwards;
|
|
678
|
+
animation-timing-function: ease
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
|
|
682
|
+
pointer-events: none
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.apexcharts-marker {
|
|
686
|
+
transition: .15s ease all
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.resize-triggers {
|
|
690
|
+
animation: 1ms resizeanim;
|
|
691
|
+
visibility: hidden;
|
|
692
|
+
opacity: 0;
|
|
693
|
+
height: 100%;
|
|
694
|
+
width: 100%;
|
|
695
|
+
overflow: hidden
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.contract-trigger:before,.resize-triggers,.resize-triggers>div {
|
|
699
|
+
content: " ";
|
|
700
|
+
display: block;
|
|
701
|
+
position: absolute;
|
|
702
|
+
top: 0;
|
|
703
|
+
left: 0
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.resize-triggers>div {
|
|
707
|
+
height: 100%;
|
|
708
|
+
width: 100%;
|
|
709
|
+
background: #eee;
|
|
710
|
+
overflow: auto
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.contract-trigger:before {
|
|
714
|
+
overflow: hidden;
|
|
715
|
+
width: 200%;
|
|
716
|
+
height: 200%
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.apexcharts-bar-goals-markers{
|
|
720
|
+
pointer-events: none
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.apexcharts-bar-shadows{
|
|
724
|
+
pointer-events: none
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.apexcharts-rangebar-goals-markers{
|
|
728
|
+
pointer-events: none
|
|
729
|
+
}`,n?s.prepend(e.css):l.head.appendChild(e.css))}var f=e.create(e.w.config.series,{});if(!f)return t(e);e.mount(f).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(f)}).catch(function(p){r(p)})}else r(new Error("Element not found"))})}},{key:"create",value:function(e,t){var r=this.w;new Bi(this).initModules();var i=this.w.globals;if(i.noData=!1,i.animationEnded=!1,this.responsive.checkResponsiveConfig(t),r.config.xaxis.convertedCatToNumeric&&new Je(r.config).convertCatToNumericXaxis(r.config,this.ctx),this.el===null||(this.core.setupElements(),r.config.chart.type==="treemap"&&(r.config.grid.show=!1,r.config.yaxis[0].show=!1),i.svgWidth===0))return i.animationEnded=!0,null;var s=re.checkComboSeries(e);i.comboCharts=s.comboCharts,i.comboBarCount=s.comboBarCount;var n=e.every(function(p){return p.data&&p.data.length===0});(e.length===0||n)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new ct(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),i.noData&&i.collapsedSeries.length!==i.series.length&&!r.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),i.axisCharts&&(this.core.coreCalculations(),r.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=r.globals.minX,this.ctx.toolbar.maxX=r.globals.maxX),this.formatters.heatmapLabelFormatters(),new re(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var h=this.core.plotChartType(e,l),f=new pe(this);return f.bringForward(),r.config.dataLabels.background.enabled&&f.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:h,xyRatios:l,dimensions:{plot:{left:r.globals.translateX,top:r.globals.translateY,width:r.globals.gridWidth,height:r.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=this,i=r.w;return new Promise(function(s,n){if(r.el===null)return n(new Error("Not enough data to display or target element not found"));(t===null||i.globals.allSeriesCollapsed)&&r.series.handleNoData(),r.grid=new At(r);var l,h,f=r.grid.drawGrid();if(r.annotations=new Ze(r),r.annotations.drawImageAnnos(),r.annotations.drawTextAnnos(),i.config.grid.position==="back"&&(f&&i.globals.dom.elGraphical.add(f.el),f!=null&&(l=f.elGridBorders)!==null&&l!==void 0&&l.node&&i.globals.dom.elGraphical.add(f.elGridBorders)),Array.isArray(t.elGraph))for(var p=0;p<t.elGraph.length;p++)i.globals.dom.elGraphical.add(t.elGraph[p]);else i.globals.dom.elGraphical.add(t.elGraph);i.config.grid.position==="front"&&(f&&i.globals.dom.elGraphical.add(f.el),f!=null&&(h=f.elGridBorders)!==null&&h!==void 0&&h.node&&i.globals.dom.elGraphical.add(f.elGridBorders)),i.config.xaxis.crosshairs.position==="front"&&r.crosshairs.drawXCrosshairs(),i.config.yaxis[0].crosshairs.position==="front"&&r.crosshairs.drawYCrosshairs(),i.config.chart.type!=="treemap"&&r.axes.drawAxis(i.config.chart.type,f);var x=new it(e.ctx,f),b=new Ut(e.ctx,f);if(f!==null&&(x.xAxisLabelCorrections(f.xAxisTickWidth),b.setYAxisTextAlignments(),i.config.yaxis.map(function(C,z){i.globals.ignoreYAxisIndexes.indexOf(z)===-1&&b.yAxisTitleRotate(z,C.opposite)})),r.annotations.drawAxesAnnotations(),!i.globals.noData){if(i.config.tooltip.enabled&&!i.globals.noData&&r.w.globals.tooltip.drawTooltip(t.xyRatios),i.globals.axisCharts&&(i.globals.isXNumeric||i.config.xaxis.convertedCatToNumeric||i.globals.isRangeBar))(i.config.chart.zoom.enabled||i.config.chart.selection&&i.config.chart.selection.enabled||i.config.chart.pan&&i.config.chart.pan.enabled)&&r.zoomPanSelection.init({xyRatios:t.xyRatios});else{var y=i.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(C){y[C]=!1})}i.config.chart.toolbar.show&&!i.globals.allSeriesCollapsed&&r.toolbar.createToolbar()}i.globals.memory.methodsToExec.length>0&&i.globals.memory.methodsToExec.forEach(function(C){C.method(C.params,!1,C.context)}),i.globals.axisCharts||i.globals.noData||r.core.resizeNonAxisCharts(),s(r)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=va.get(e))&&(t.disconnect(),va.delete(e));var r=this.w.config.chart.id;r&&Apex._chartInstances.forEach(function(i,s){i.id===O.escapeString(r)&&Apex._chartInstances.splice(s,1)}),new Ni(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],l=this.w;return l.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(h,f){return t.updateHelpers._extendSeries(h,f)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),l.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,r,i,s,n)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,r)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],i=this.w.config.series.slice();return i.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(i,t,r)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this;r.w.globals.dataChanged=!0,r.series.getPreviousPaths();for(var i=r.w.config.series.slice(),s=0;s<i.length;s++)if(e[s]!==null&&e[s]!==void 0)for(var n=0;n<e[s].data.length;n++)i[s].data.push(e[s].data[n]);return r.w.config.series=i,t&&(r.w.globals.initialSeries=O.clone(r.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(r,i){new Ni(t.ctx).clear({isUpdating:!0});var s=t.create(t.w.config.series,e);if(!s)return r(t);t.mount(s).then(function(){typeof t.w.config.chart.events.updated=="function"&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,r(t)}).catch(function(n){i(n)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(r){t.push(r)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,i=this;r&&(i=r),i.annotations.addXaxisAnnotationExternal(e,t,i)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,i=this;r&&(i=r),i.annotations.addYaxisAnnotationExternal(e,t,i)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,i=this;r&&(i=r),i.annotations.addPointAnnotationExternal(e,t,i)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=this;t&&(r=t),r.annotations.removeAnnotation(r,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new br(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new br(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new at(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new at(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=O.escapeString(e),r=Apex._chartInstances.filter(function(i){return i.id===t})[0];return r&&r.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t<e.length;t++)new E(e[t],JSON.parse(e[t].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var r=this.getChartByID(e);if(r){r.w.globals.isExecCalled=!0;var i=null;if(r.publicMethods.indexOf(t)!==-1){for(var s=arguments.length,n=new Array(s>2?s-2:0),l=2;l<s;l++)n[l-2]=arguments[l];i=r[t].apply(r,n)}return i}}},{key:"merge",value:function(e,t){return O.extend(e,t)}}]),E}();c.exports=Io}(hH,kr)),kr}(function(c){c.exports=function(a){var o={};function u(g){if(o[g])return o[g].exports;var m=o[g]={i:g,l:!1,exports:{}};return a[g].call(m.exports,m,m.exports,u),m.l=!0,m.exports}return u.m=a,u.c=o,u.d=function(g,m,k){u.o(g,m)||Object.defineProperty(g,m,{enumerable:!0,get:k})},u.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},u.t=function(g,m){if(m&1&&(g=u(g)),m&8||m&4&&typeof g=="object"&&g&&g.__esModule)return g;var k=Object.create(null);if(u.r(k),Object.defineProperty(k,"default",{enumerable:!0,value:g}),m&2&&typeof g!="string")for(var w in g)u.d(k,w,function(S){return g[S]}.bind(null,w));return k},u.n=function(g){var m=g&&g.__esModule?function(){return g.default}:function(){return g};return u.d(m,"a",m),m},u.o=function(g,m){return Object.prototype.hasOwnProperty.call(g,m)},u.p="",u(u.s="fb15")}({"8bbf":function(a,o){a.exports=ee},"95e6":function(a,o){a.exports=uH()},fb15:function(a,o,u){if(u.r(o),typeof window<"u"){var g=window.document.currentScript,m=g&&g.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);m&&(u.p=m[1])}var k=u("8bbf"),w=u("95e6"),S=u.n(w);const D=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"];var H=Object(k.defineComponent)({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:D,setup($,{emit:Z}){const ae=Object(k.ref)(null),J=Object(k.ref)(null),O=pe=>pe&&typeof pe=="object"&&!Array.isArray(pe)&&pe!=null,se=(pe,ze)=>{typeof Object.assign!="function"&&function(){Object.assign=function(Fe){if(Fe==null)throw new TypeError("Cannot convert undefined or null to object");let at=Object(Fe);for(let it=1;it<arguments.length;it++){let At=arguments[it];if(At!=null)for(let pt in At)At.hasOwnProperty(pt)&&(at[pt]=At[pt])}return at}}();let Ue=Object.assign({},pe);return O(pe)&&O(ze)&&Object.keys(ze).forEach(Fe=>{O(ze[Fe])?Fe in pe?Ue[Fe]=se(pe[Fe],ze[Fe]):Object.assign(Ue,{[Fe]:ze[Fe]}):Object.assign(Ue,{[Fe]:ze[Fe]})}),Ue},le=async()=>{if(await Object(k.nextTick)(),J.value)return;const pe={chart:{type:$.type||$.options.chart.type||"line",height:$.height,width:$.width,events:{}},series:$.series};D.forEach(Ue=>{let Fe=(...at)=>Z(Ue,...at);pe.chart.events[Ue]=Fe});const ze=se($.options,pe);return J.value=new S.a(ae.value,ze),J.value.render()},U=()=>(re(),le()),re=()=>{J.value.destroy()},fe=(pe,ze)=>J.value.updateSeries(pe,ze),ve=(pe,ze,Ue,Fe)=>J.value.updateOptions(pe,ze,Ue,Fe),Ee=pe=>J.value.toggleSeries(pe),we=pe=>{J.value.showSeries(pe)},Ce=pe=>{J.value.hideSeries(pe)},Pe=(pe,ze)=>J.value.appendSeries(pe,ze),Ze=()=>{J.value.resetSeries()},ne=(pe,ze)=>{J.value.toggleDataPointSelection(pe,ze)},Me=pe=>J.value.appendData(pe),ke=(pe,ze)=>J.value.zoomX(pe,ze),qe=pe=>J.value.dataURI(pe),Je=pe=>J.value.setLocale(pe),vt=(pe,ze)=>{J.value.addXaxisAnnotation(pe,ze)},lt=(pe,ze)=>{J.value.addYaxisAnnotation(pe,ze)},ft=(pe,ze)=>{J.value.addPointAnnotation(pe,ze)},Ne=(pe,ze)=>{J.value.removeAnnotation(pe,ze)},ct=()=>{J.value.clearAnnotations()};Object(k.onBeforeMount)(()=>{window.ApexCharts=S.a}),Object(k.onMounted)(()=>{ae.value=Object(k.getCurrentInstance)().proxy.$el,le()}),Object(k.onBeforeUnmount)(()=>{J.value&&re()});const gt=Object(k.toRefs)($);return Object(k.watch)(gt.options,()=>{!J.value&&$.options?le():J.value.updateOptions($.options)}),Object(k.watch)(gt.series,()=>{!J.value&&$.series?le():J.value.updateSeries($.series)},{deep:!0}),Object(k.watch)(gt.type,()=>{U()}),Object(k.watch)(gt.width,()=>{U()}),Object(k.watch)(gt.height,()=>{U()}),{chart:J,init:le,refresh:U,destroy:re,updateOptions:ve,updateSeries:fe,toggleSeries:Ee,showSeries:we,hideSeries:Ce,resetSeries:Ze,zoomX:ke,toggleDataPointSelection:ne,appendData:Me,appendSeries:Pe,addXaxisAnnotation:vt,addYaxisAnnotation:lt,addPointAnnotation:ft,removeAnnotation:Ne,clearAnnotations:ct,setLocale:Je,dataURI:qe}},render(){return Object(k.h)("div",{class:"vue-apexcharts"})}});const q=$=>{$.component(H.name,H)};H.install=q;var X=H;o.default=X}})})(cH);class di{constructor(a,o,u){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=a,this.start=o,this.end=u}static range(a,o){return o?!a||!a.loc||!o.loc||a.loc.lexer!==o.loc.lexer?null:new di(a.loc.lexer,a.loc.start,o.loc.end):a&&a.loc}}class fi{constructor(a,o){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=a,this.loc=o}range(a,o){return new fi(o,di.range(this,a))}}class ye{constructor(a,o){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var u="KaTeX parse error: "+a,g,m,k=o&&o.loc;if(k&&k.start<=k.end){var w=k.lexer.input;g=k.start,m=k.end,g===w.length?u+=" at end of input: ":u+=" at position "+(g+1)+": ";var S=w.slice(g,m).replace(/[^]/g,"$&̲"),D;g>15?D="…"+w.slice(g-15,g):D=w.slice(0,g);var F;m+15<w.length?F=w.slice(m,m+15)+"…":F=w.slice(m),u+=D+S+F}var H=new Error(u);return H.name="ParseError",H.__proto__=ye.prototype,H.position=g,g!=null&&m!=null&&(H.length=m-g),H.rawMessage=a,H}}ye.prototype.__proto__=Error.prototype;var dH=function(a,o){return a.indexOf(o)!==-1},fH=function(a,o){return a===void 0?o:a},gH=/([A-Z])/g,pH=function(a){return a.replace(gH,"-$1").toLowerCase()},mH={"&":"&",">":">","<":"<",'"':""","'":"'"},xH=/[&><"']/g;function bH(c){return String(c).replace(xH,a=>mH[a])}var Sn=function c(a){return a.type==="ordgroup"||a.type==="color"?a.body.length===1?c(a.body[0]):a:a.type==="font"?c(a.body):a},vH=function(a){var o=Sn(a);return o.type==="mathord"||o.type==="textord"||o.type==="atom"},yH=function(a){if(!a)throw new Error("Expected non-null, but got "+String(a));return a},wH=function(a){var o=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(a);return o!=null?o[1]:"_relative"},Se={contains:dH,deflt:fH,escape:bH,hyphenate:pH,getBaseElem:Sn,isCharacterBox:vH,protocolFromUrl:wH};class Xt{constructor(a,o,u){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=a,this.size=o,this.cramped=u}sup(){return St[kH[this.id]]}sub(){return St[AH[this.id]]}fracNum(){return St[SH[this.id]]}fracDen(){return St[CH[this.id]]}cramp(){return St[MH[this.id]]}text(){return St[zH[this.id]]}isTight(){return this.size>=2}}var gi=0,Zr=1,hr=2,Ft=3,Mr=4,mt=5,ur=6,tt=7,St=[new Xt(gi,0,!1),new Xt(Zr,0,!0),new Xt(hr,1,!1),new Xt(Ft,1,!0),new Xt(Mr,2,!1),new Xt(mt,2,!0),new Xt(ur,3,!1),new Xt(tt,3,!0)],kH=[Mr,mt,Mr,mt,ur,tt,ur,tt],AH=[mt,mt,mt,mt,tt,tt,tt,tt],SH=[hr,Ft,Mr,mt,ur,tt,ur,tt],CH=[Ft,Ft,mt,mt,tt,tt,tt,tt],MH=[Zr,Zr,Ft,Ft,mt,mt,tt,tt],zH=[gi,Zr,hr,Ft,hr,Ft,hr,Ft],be={DISPLAY:St[gi],TEXT:St[hr],SCRIPT:St[Mr],SCRIPTSCRIPT:St[ur]},Ja=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function TH(c){for(var a=0;a<Ja.length;a++)for(var o=Ja[a],u=0;u<o.blocks.length;u++){var g=o.blocks[u];if(c>=g[0]&&c<=g[1])return o.name}return null}var Wr=[];Ja.forEach(c=>c.blocks.forEach(a=>Wr.push(...a)));function LH(c){for(var a=0;a<Wr.length;a+=2)if(c>=Wr[a]&&c<=Wr[a+1])return!0;return!1}var lr=80,EH=function(a,o){return"M95,"+(622+a+o)+`
|
|
730
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
731
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
732
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
733
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
734
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
735
|
+
l`+a/2.075+" -"+a+`
|
|
736
|
+
c5.3,-9.3,12,-14,20,-14
|
|
737
|
+
H400000v`+(40+a)+`H845.2724
|
|
738
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
739
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
740
|
+
M`+(834+a)+" "+o+"h400000v"+(40+a)+"h-400000z"},DH=function(a,o){return"M263,"+(601+a+o)+`c0.7,0,18,39.7,52,119
|
|
741
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
742
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
743
|
+
l`+a/2.084+" -"+a+`
|
|
744
|
+
c4.7,-7.3,11,-11,19,-11
|
|
745
|
+
H40000v`+(40+a)+`H1012.3
|
|
746
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
747
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
748
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
749
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
750
|
+
M`+(1001+a)+" "+o+"h400000v"+(40+a)+"h-400000z"},PH=function(a,o){return"M983 "+(10+a+o)+`
|
|
751
|
+
l`+a/3.13+" -"+a+`
|
|
752
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+a)+`
|
|
753
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
754
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
755
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
756
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
757
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
758
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
759
|
+
M`+(1001+a)+" "+o+"h400000v"+(40+a)+"h-400000z"},IH=function(a,o){return"M424,"+(2398+a+o)+`
|
|
760
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
761
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
762
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
763
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
764
|
+
l`+a/4.223+" -"+a+`c4,-6.7,10,-10,18,-10 H400000
|
|
765
|
+
v`+(40+a)+`H1014.6
|
|
766
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
767
|
+
c-2,6,-10,9,-24,9
|
|
768
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+a)+" "+o+`
|
|
769
|
+
h400000v`+(40+a)+"h-400000z"},RH=function(a,o){return"M473,"+(2713+a+o)+`
|
|
770
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+a/5.298+" -"+a+`
|
|
771
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+a)+`H1017.7
|
|
772
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
773
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
774
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
775
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
776
|
+
606zM`+(1001+a)+" "+o+"h400000v"+(40+a)+"H1017.7z"},FH=function(a){var o=a/2;return"M400000 "+a+" H0 L"+o+" 0 l65 45 L145 "+(a-80)+" H400000z"},_H=function(a,o,u){var g=u-54-o-a;return"M702 "+(a+o)+"H400000"+(40+a)+`
|
|
777
|
+
H742v`+g+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
778
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
779
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
780
|
+
219 661 l218 661zM702 `+o+"H400000v"+(40+a)+"H742z"},BH=function(a,o,u){o=1e3*o;var g="";switch(a){case"sqrtMain":g=EH(o,lr);break;case"sqrtSize1":g=DH(o,lr);break;case"sqrtSize2":g=PH(o,lr);break;case"sqrtSize3":g=IH(o,lr);break;case"sqrtSize4":g=RH(o,lr);break;case"sqrtTall":g=_H(o,lr,u)}return g},NH=function(a,o){switch(a){case"⎜":return"M291 0 H417 V"+o+" H291z M291 0 H417 V"+o+" H291z";case"∣":return"M145 0 H188 V"+o+" H145z M145 0 H188 V"+o+" H145z";case"∥":return"M145 0 H188 V"+o+" H145z M145 0 H188 V"+o+" H145z"+("M367 0 H410 V"+o+" H367z M367 0 H410 V"+o+" H367z");case"⎟":return"M457 0 H583 V"+o+" H457z M457 0 H583 V"+o+" H457z";case"⎢":return"M319 0 H403 V"+o+" H319z M319 0 H403 V"+o+" H319z";case"⎥":return"M263 0 H347 V"+o+" H263z M263 0 H347 V"+o+" H263z";case"⎪":return"M384 0 H504 V"+o+" H384z M384 0 H504 V"+o+" H384z";case"⏐":return"M312 0 H355 V"+o+" H312z M312 0 H355 V"+o+" H312z";case"‖":return"M257 0 H300 V"+o+" H257z M257 0 H300 V"+o+" H257z"+("M478 0 H521 V"+o+" H478z M478 0 H521 V"+o+" H478z");default:return""}},Cs={doubleleftarrow:`M262 157
|
|
781
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
782
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
783
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
784
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
785
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
786
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
787
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
788
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
789
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
790
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
791
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
792
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
793
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
794
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
795
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
796
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
797
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
798
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
799
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
800
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
801
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
802
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
803
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
804
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
805
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
806
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
807
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
808
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
809
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
810
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
811
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
812
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
813
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
814
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
815
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
816
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
817
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
818
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
819
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
820
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
821
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
822
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
823
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
824
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
825
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
826
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
827
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
828
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
829
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
830
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
831
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
832
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
833
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
834
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
835
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
836
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
837
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
838
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
839
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
840
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
841
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
842
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
843
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
844
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
845
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
846
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
847
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
848
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
849
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
850
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
851
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
852
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
853
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
854
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
855
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
856
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
857
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
858
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
859
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
860
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
861
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
862
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
863
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
864
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
865
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
866
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
867
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
868
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
869
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
870
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
871
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
872
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
873
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
874
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
875
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
876
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
877
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
878
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
879
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
880
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
881
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
882
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
883
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
884
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
885
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
886
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
887
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
888
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
889
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
890
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
891
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
892
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
893
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
894
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
895
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
896
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
897
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
898
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
899
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
900
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
901
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
902
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
903
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
904
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
905
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
906
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
907
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
908
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
909
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
910
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
911
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
912
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
913
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
914
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
915
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
916
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
917
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
918
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
919
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
920
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
921
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
922
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
923
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
924
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
925
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
926
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
927
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
928
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
929
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
930
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
931
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
932
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
933
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
934
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
935
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
936
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
937
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
938
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
939
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
940
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
941
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
942
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
943
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
944
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
945
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
946
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
947
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
948
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
949
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
950
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
951
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
952
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
953
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
954
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
955
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},OH=function(a,o){switch(a){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+o+` v1759 h347 v-84
|
|
956
|
+
H403z M403 1759 V0 H319 V1759 v`+o+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+o+` v1759 H0 v84 H347z
|
|
957
|
+
M347 1759 V0 H263 V1759 v`+o+" v1759 h84z";case"vert":return"M145 15 v585 v"+o+` v585 c2.667,10,9.667,15,21,15
|
|
958
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-o+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
959
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+o+" v585 h43z";case"doublevert":return"M145 15 v585 v"+o+` v585 c2.667,10,9.667,15,21,15
|
|
960
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-o+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
961
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+o+` v585 h43z
|
|
962
|
+
M367 15 v585 v`+o+` v585 c2.667,10,9.667,15,21,15
|
|
963
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-o+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
964
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+o+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+o+` v1715 h263 v84 H319z
|
|
965
|
+
MM319 602 V0 H403 V602 v`+o+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+o+` v1799 H0 v-84 H319z
|
|
966
|
+
MM319 602 V0 H403 V602 v`+o+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+o+` v602 h84z
|
|
967
|
+
M403 1759 V0 H319 V1759 v`+o+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+o+` v602 h84z
|
|
968
|
+
M347 1759 V0 h-84 V1759 v`+o+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
969
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
970
|
+
-36,557 l0,`+(o+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
971
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
972
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
973
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
974
|
+
l0,-`+(o+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
975
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
976
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
977
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(o+9)+`
|
|
978
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
979
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
980
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
981
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
982
|
+
l0,-`+(o+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
983
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Er{constructor(a){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(a){return Se.contains(this.classes,a)}toNode(){for(var a=document.createDocumentFragment(),o=0;o<this.children.length;o++)a.appendChild(this.children[o].toNode());return a}toMarkup(){for(var a="",o=0;o<this.children.length;o++)a+=this.children[o].toMarkup();return a}toText(){var a=o=>o.toText();return this.children.map(a).join("")}}var Rt={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ms={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function pi(c,a,o){if(!Rt[a])throw new Error("Font metrics not found for font: "+a+".");var u=c.charCodeAt(0),g=Rt[a][u];if(!g&&c[0]in Ms&&(u=Ms[c[0]].charCodeAt(0),g=Rt[a][u]),!g&&o==="text"&&LH(u)&&(g=Rt[a][77]),g)return{depth:g[0],height:g[1],italic:g[2],skew:g[3],width:g[4]}}var Ka={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},HH={ex:!0,em:!0,mu:!0},XH=function(a){return typeof a!="string"&&(a=a.unit),a in Ka||a in HH||a==="ex"},Ye=function(a,o){var u;if(a.unit in Ka)u=Ka[a.unit]/o.fontMetrics().ptPerEm/o.sizeMultiplier;else if(a.unit==="mu")u=o.fontMetrics().cssEmPerMu;else{var g;if(o.style.isTight()?g=o.havingStyle(o.style.text()):g=o,a.unit==="ex")u=g.fontMetrics().xHeight;else if(a.unit==="em")u=g.fontMetrics().quad;else throw new ye("Invalid unit: '"+a.unit+"'");g!==o&&(u*=g.sizeMultiplier/o.sizeMultiplier)}return Math.min(a.number*u,o.maxSize)},ue=function(a){return+a.toFixed(4)+"em"},Vt=function(a){return a.filter(o=>o).join(" ")},Cn=function(a,o,u){if(this.classes=a||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=u||{},o){o.style.isTight()&&this.classes.push("mtight");var g=o.getColor();g&&(this.style.color=g)}},Mn=function(a){var o=document.createElement(a);o.className=Vt(this.classes);for(var u in this.style)this.style.hasOwnProperty(u)&&(o.style[u]=this.style[u]);for(var g in this.attributes)this.attributes.hasOwnProperty(g)&&o.setAttribute(g,this.attributes[g]);for(var m=0;m<this.children.length;m++)o.appendChild(this.children[m].toNode());return o},zn=function(a){var o="<"+a;this.classes.length&&(o+=' class="'+Se.escape(Vt(this.classes))+'"');var u="";for(var g in this.style)this.style.hasOwnProperty(g)&&(u+=Se.hyphenate(g)+":"+this.style[g]+";");u&&(o+=' style="'+Se.escape(u)+'"');for(var m in this.attributes)this.attributes.hasOwnProperty(m)&&(o+=" "+m+'="'+Se.escape(this.attributes[m])+'"');o+=">";for(var k=0;k<this.children.length;k++)o+=this.children[k].toMarkup();return o+="</"+a+">",o};class ha{constructor(a,o,u,g){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Cn.call(this,a,u,g),this.children=o||[]}setAttribute(a,o){this.attributes[a]=o}hasClass(a){return Se.contains(this.classes,a)}toNode(){return Mn.call(this,"span")}toMarkup(){return zn.call(this,"span")}}class Tn{constructor(a,o,u,g){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Cn.call(this,o,g),this.children=u||[],this.setAttribute("href",a)}setAttribute(a,o){this.attributes[a]=o}hasClass(a){return Se.contains(this.classes,a)}toNode(){return Mn.call(this,"a")}toMarkup(){return zn.call(this,"a")}}class YH{constructor(a,o,u){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=o,this.src=a,this.classes=["mord"],this.style=u}hasClass(a){return Se.contains(this.classes,a)}toNode(){var a=document.createElement("img");a.src=this.src,a.alt=this.alt,a.className="mord";for(var o in this.style)this.style.hasOwnProperty(o)&&(a.style[o]=this.style[o]);return a}toMarkup(){var a="<img src='"+this.src+" 'alt='"+this.alt+"' ",o="";for(var u in this.style)this.style.hasOwnProperty(u)&&(o+=Se.hyphenate(u)+":"+this.style[u]+";");return o&&(a+=' style="'+Se.escape(o)+'"'),a+="'/>",a}}var qH={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class zt{constructor(a,o,u,g,m,k,w,S){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=a,this.height=o||0,this.depth=u||0,this.italic=g||0,this.skew=m||0,this.width=k||0,this.classes=w||[],this.style=S||{},this.maxFontSize=0;var D=TH(this.text.charCodeAt(0));D&&this.classes.push(D+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=qH[this.text])}hasClass(a){return Se.contains(this.classes,a)}toNode(){var a=document.createTextNode(this.text),o=null;this.italic>0&&(o=document.createElement("span"),o.style.marginRight=ue(this.italic)),this.classes.length>0&&(o=o||document.createElement("span"),o.className=Vt(this.classes));for(var u in this.style)this.style.hasOwnProperty(u)&&(o=o||document.createElement("span"),o.style[u]=this.style[u]);return o?(o.appendChild(a),o):a}toMarkup(){var a=!1,o="<span";this.classes.length&&(a=!0,o+=' class="',o+=Se.escape(Vt(this.classes)),o+='"');var u="";this.italic>0&&(u+="margin-right:"+this.italic+"em;");for(var g in this.style)this.style.hasOwnProperty(g)&&(u+=Se.hyphenate(g)+":"+this.style[g]+";");u&&(a=!0,o+=' style="'+Se.escape(u)+'"');var m=Se.escape(this.text);return a?(o+=">",o+=m,o+="</span>",o):m}}class Wt{constructor(a,o){this.children=void 0,this.attributes=void 0,this.children=a||[],this.attributes=o||{}}toNode(){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg");for(var u in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,u)&&o.setAttribute(u,this.attributes[u]);for(var g=0;g<this.children.length;g++)o.appendChild(this.children[g].toNode());return o}toMarkup(){var a='<svg xmlns="http://www.w3.org/2000/svg"';for(var o in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,o)&&(a+=" "+o+"='"+this.attributes[o]+"'");a+=">";for(var u=0;u<this.children.length;u++)a+=this.children[u].toMarkup();return a+="</svg>",a}}class ar{constructor(a,o){this.pathName=void 0,this.alternate=void 0,this.pathName=a,this.alternate=o}toNode(){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"path");return this.alternate?o.setAttribute("d",this.alternate):o.setAttribute("d",Cs[this.pathName]),o}toMarkup(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Cs[this.pathName]+"'/>"}}class zs{constructor(a){this.attributes=void 0,this.attributes=a||{}}toNode(){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"line");for(var u in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,u)&&o.setAttribute(u,this.attributes[u]);return o}toMarkup(){var a="<line";for(var o in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,o)&&(a+=" "+o+"='"+this.attributes[o]+"'");return a+="/>",a}}function Ts(c){if(c instanceof zt)return c;throw new Error("Expected symbolNode but got "+String(c)+".")}function VH(c){if(c instanceof ha)return c;throw new Error("Expected span<HtmlDomNode> but got "+String(c)+".")}var WH={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ke={math:{},text:{}};function A(c,a,o,u,g,m){Ke[c][g]={font:a,group:o,replace:u},m&&u&&(Ke[c][u]=Ke[c][g])}var T="math",oe="text",I="main",Y="ams",He="accent-token",ge="bin",rt="close",mr="inner",xe="mathord",je="op-token",ut="open",ua="punct",V="rel",Nt="spacing",j="textord";A(T,I,V,"≡","\\equiv",!0);A(T,I,V,"≺","\\prec",!0);A(T,I,V,"≻","\\succ",!0);A(T,I,V,"∼","\\sim",!0);A(T,I,V,"⊥","\\perp");A(T,I,V,"⪯","\\preceq",!0);A(T,I,V,"⪰","\\succeq",!0);A(T,I,V,"≃","\\simeq",!0);A(T,I,V,"∣","\\mid",!0);A(T,I,V,"≪","\\ll",!0);A(T,I,V,"≫","\\gg",!0);A(T,I,V,"≍","\\asymp",!0);A(T,I,V,"∥","\\parallel");A(T,I,V,"⋈","\\bowtie",!0);A(T,I,V,"⌣","\\smile",!0);A(T,I,V,"⊑","\\sqsubseteq",!0);A(T,I,V,"⊒","\\sqsupseteq",!0);A(T,I,V,"≐","\\doteq",!0);A(T,I,V,"⌢","\\frown",!0);A(T,I,V,"∋","\\ni",!0);A(T,I,V,"∝","\\propto",!0);A(T,I,V,"⊢","\\vdash",!0);A(T,I,V,"⊣","\\dashv",!0);A(T,I,V,"∋","\\owns");A(T,I,ua,".","\\ldotp");A(T,I,ua,"⋅","\\cdotp");A(T,I,j,"#","\\#");A(oe,I,j,"#","\\#");A(T,I,j,"&","\\&");A(oe,I,j,"&","\\&");A(T,I,j,"ℵ","\\aleph",!0);A(T,I,j,"∀","\\forall",!0);A(T,I,j,"ℏ","\\hbar",!0);A(T,I,j,"∃","\\exists",!0);A(T,I,j,"∇","\\nabla",!0);A(T,I,j,"♭","\\flat",!0);A(T,I,j,"ℓ","\\ell",!0);A(T,I,j,"♮","\\natural",!0);A(T,I,j,"♣","\\clubsuit",!0);A(T,I,j,"℘","\\wp",!0);A(T,I,j,"♯","\\sharp",!0);A(T,I,j,"♢","\\diamondsuit",!0);A(T,I,j,"ℜ","\\Re",!0);A(T,I,j,"♡","\\heartsuit",!0);A(T,I,j,"ℑ","\\Im",!0);A(T,I,j,"♠","\\spadesuit",!0);A(T,I,j,"§","\\S",!0);A(oe,I,j,"§","\\S");A(T,I,j,"¶","\\P",!0);A(oe,I,j,"¶","\\P");A(T,I,j,"†","\\dag");A(oe,I,j,"†","\\dag");A(oe,I,j,"†","\\textdagger");A(T,I,j,"‡","\\ddag");A(oe,I,j,"‡","\\ddag");A(oe,I,j,"‡","\\textdaggerdbl");A(T,I,rt,"⎱","\\rmoustache",!0);A(T,I,ut,"⎰","\\lmoustache",!0);A(T,I,rt,"⟯","\\rgroup",!0);A(T,I,ut,"⟮","\\lgroup",!0);A(T,I,ge,"∓","\\mp",!0);A(T,I,ge,"⊖","\\ominus",!0);A(T,I,ge,"⊎","\\uplus",!0);A(T,I,ge,"⊓","\\sqcap",!0);A(T,I,ge,"∗","\\ast");A(T,I,ge,"⊔","\\sqcup",!0);A(T,I,ge,"◯","\\bigcirc",!0);A(T,I,ge,"∙","\\bullet",!0);A(T,I,ge,"‡","\\ddagger");A(T,I,ge,"≀","\\wr",!0);A(T,I,ge,"⨿","\\amalg");A(T,I,ge,"&","\\And");A(T,I,V,"⟵","\\longleftarrow",!0);A(T,I,V,"⇐","\\Leftarrow",!0);A(T,I,V,"⟸","\\Longleftarrow",!0);A(T,I,V,"⟶","\\longrightarrow",!0);A(T,I,V,"⇒","\\Rightarrow",!0);A(T,I,V,"⟹","\\Longrightarrow",!0);A(T,I,V,"↔","\\leftrightarrow",!0);A(T,I,V,"⟷","\\longleftrightarrow",!0);A(T,I,V,"⇔","\\Leftrightarrow",!0);A(T,I,V,"⟺","\\Longleftrightarrow",!0);A(T,I,V,"↦","\\mapsto",!0);A(T,I,V,"⟼","\\longmapsto",!0);A(T,I,V,"↗","\\nearrow",!0);A(T,I,V,"↩","\\hookleftarrow",!0);A(T,I,V,"↪","\\hookrightarrow",!0);A(T,I,V,"↘","\\searrow",!0);A(T,I,V,"↼","\\leftharpoonup",!0);A(T,I,V,"⇀","\\rightharpoonup",!0);A(T,I,V,"↙","\\swarrow",!0);A(T,I,V,"↽","\\leftharpoondown",!0);A(T,I,V,"⇁","\\rightharpoondown",!0);A(T,I,V,"↖","\\nwarrow",!0);A(T,I,V,"⇌","\\rightleftharpoons",!0);A(T,Y,V,"≮","\\nless",!0);A(T,Y,V,"","\\@nleqslant");A(T,Y,V,"","\\@nleqq");A(T,Y,V,"⪇","\\lneq",!0);A(T,Y,V,"≨","\\lneqq",!0);A(T,Y,V,"","\\@lvertneqq");A(T,Y,V,"⋦","\\lnsim",!0);A(T,Y,V,"⪉","\\lnapprox",!0);A(T,Y,V,"⊀","\\nprec",!0);A(T,Y,V,"⋠","\\npreceq",!0);A(T,Y,V,"⋨","\\precnsim",!0);A(T,Y,V,"⪹","\\precnapprox",!0);A(T,Y,V,"≁","\\nsim",!0);A(T,Y,V,"","\\@nshortmid");A(T,Y,V,"∤","\\nmid",!0);A(T,Y,V,"⊬","\\nvdash",!0);A(T,Y,V,"⊭","\\nvDash",!0);A(T,Y,V,"⋪","\\ntriangleleft");A(T,Y,V,"⋬","\\ntrianglelefteq",!0);A(T,Y,V,"⊊","\\subsetneq",!0);A(T,Y,V,"","\\@varsubsetneq");A(T,Y,V,"⫋","\\subsetneqq",!0);A(T,Y,V,"","\\@varsubsetneqq");A(T,Y,V,"≯","\\ngtr",!0);A(T,Y,V,"","\\@ngeqslant");A(T,Y,V,"","\\@ngeqq");A(T,Y,V,"⪈","\\gneq",!0);A(T,Y,V,"≩","\\gneqq",!0);A(T,Y,V,"","\\@gvertneqq");A(T,Y,V,"⋧","\\gnsim",!0);A(T,Y,V,"⪊","\\gnapprox",!0);A(T,Y,V,"⊁","\\nsucc",!0);A(T,Y,V,"⋡","\\nsucceq",!0);A(T,Y,V,"⋩","\\succnsim",!0);A(T,Y,V,"⪺","\\succnapprox",!0);A(T,Y,V,"≆","\\ncong",!0);A(T,Y,V,"","\\@nshortparallel");A(T,Y,V,"∦","\\nparallel",!0);A(T,Y,V,"⊯","\\nVDash",!0);A(T,Y,V,"⋫","\\ntriangleright");A(T,Y,V,"⋭","\\ntrianglerighteq",!0);A(T,Y,V,"","\\@nsupseteqq");A(T,Y,V,"⊋","\\supsetneq",!0);A(T,Y,V,"","\\@varsupsetneq");A(T,Y,V,"⫌","\\supsetneqq",!0);A(T,Y,V,"","\\@varsupsetneqq");A(T,Y,V,"⊮","\\nVdash",!0);A(T,Y,V,"⪵","\\precneqq",!0);A(T,Y,V,"⪶","\\succneqq",!0);A(T,Y,V,"","\\@nsubseteqq");A(T,Y,ge,"⊴","\\unlhd");A(T,Y,ge,"⊵","\\unrhd");A(T,Y,V,"↚","\\nleftarrow",!0);A(T,Y,V,"↛","\\nrightarrow",!0);A(T,Y,V,"⇍","\\nLeftarrow",!0);A(T,Y,V,"⇏","\\nRightarrow",!0);A(T,Y,V,"↮","\\nleftrightarrow",!0);A(T,Y,V,"⇎","\\nLeftrightarrow",!0);A(T,Y,V,"△","\\vartriangle");A(T,Y,j,"ℏ","\\hslash");A(T,Y,j,"▽","\\triangledown");A(T,Y,j,"◊","\\lozenge");A(T,Y,j,"Ⓢ","\\circledS");A(T,Y,j,"®","\\circledR");A(oe,Y,j,"®","\\circledR");A(T,Y,j,"∡","\\measuredangle",!0);A(T,Y,j,"∄","\\nexists");A(T,Y,j,"℧","\\mho");A(T,Y,j,"Ⅎ","\\Finv",!0);A(T,Y,j,"⅁","\\Game",!0);A(T,Y,j,"‵","\\backprime");A(T,Y,j,"▲","\\blacktriangle");A(T,Y,j,"▼","\\blacktriangledown");A(T,Y,j,"■","\\blacksquare");A(T,Y,j,"⧫","\\blacklozenge");A(T,Y,j,"★","\\bigstar");A(T,Y,j,"∢","\\sphericalangle",!0);A(T,Y,j,"∁","\\complement",!0);A(T,Y,j,"ð","\\eth",!0);A(oe,I,j,"ð","ð");A(T,Y,j,"╱","\\diagup");A(T,Y,j,"╲","\\diagdown");A(T,Y,j,"□","\\square");A(T,Y,j,"□","\\Box");A(T,Y,j,"◊","\\Diamond");A(T,Y,j,"¥","\\yen",!0);A(oe,Y,j,"¥","\\yen",!0);A(T,Y,j,"✓","\\checkmark",!0);A(oe,Y,j,"✓","\\checkmark");A(T,Y,j,"ℶ","\\beth",!0);A(T,Y,j,"ℸ","\\daleth",!0);A(T,Y,j,"ℷ","\\gimel",!0);A(T,Y,j,"ϝ","\\digamma",!0);A(T,Y,j,"ϰ","\\varkappa");A(T,Y,ut,"┌","\\@ulcorner",!0);A(T,Y,rt,"┐","\\@urcorner",!0);A(T,Y,ut,"└","\\@llcorner",!0);A(T,Y,rt,"┘","\\@lrcorner",!0);A(T,Y,V,"≦","\\leqq",!0);A(T,Y,V,"⩽","\\leqslant",!0);A(T,Y,V,"⪕","\\eqslantless",!0);A(T,Y,V,"≲","\\lesssim",!0);A(T,Y,V,"⪅","\\lessapprox",!0);A(T,Y,V,"≊","\\approxeq",!0);A(T,Y,ge,"⋖","\\lessdot");A(T,Y,V,"⋘","\\lll",!0);A(T,Y,V,"≶","\\lessgtr",!0);A(T,Y,V,"⋚","\\lesseqgtr",!0);A(T,Y,V,"⪋","\\lesseqqgtr",!0);A(T,Y,V,"≑","\\doteqdot");A(T,Y,V,"≓","\\risingdotseq",!0);A(T,Y,V,"≒","\\fallingdotseq",!0);A(T,Y,V,"∽","\\backsim",!0);A(T,Y,V,"⋍","\\backsimeq",!0);A(T,Y,V,"⫅","\\subseteqq",!0);A(T,Y,V,"⋐","\\Subset",!0);A(T,Y,V,"⊏","\\sqsubset",!0);A(T,Y,V,"≼","\\preccurlyeq",!0);A(T,Y,V,"⋞","\\curlyeqprec",!0);A(T,Y,V,"≾","\\precsim",!0);A(T,Y,V,"⪷","\\precapprox",!0);A(T,Y,V,"⊲","\\vartriangleleft");A(T,Y,V,"⊴","\\trianglelefteq");A(T,Y,V,"⊨","\\vDash",!0);A(T,Y,V,"⊪","\\Vvdash",!0);A(T,Y,V,"⌣","\\smallsmile");A(T,Y,V,"⌢","\\smallfrown");A(T,Y,V,"≏","\\bumpeq",!0);A(T,Y,V,"≎","\\Bumpeq",!0);A(T,Y,V,"≧","\\geqq",!0);A(T,Y,V,"⩾","\\geqslant",!0);A(T,Y,V,"⪖","\\eqslantgtr",!0);A(T,Y,V,"≳","\\gtrsim",!0);A(T,Y,V,"⪆","\\gtrapprox",!0);A(T,Y,ge,"⋗","\\gtrdot");A(T,Y,V,"⋙","\\ggg",!0);A(T,Y,V,"≷","\\gtrless",!0);A(T,Y,V,"⋛","\\gtreqless",!0);A(T,Y,V,"⪌","\\gtreqqless",!0);A(T,Y,V,"≖","\\eqcirc",!0);A(T,Y,V,"≗","\\circeq",!0);A(T,Y,V,"≜","\\triangleq",!0);A(T,Y,V,"∼","\\thicksim");A(T,Y,V,"≈","\\thickapprox");A(T,Y,V,"⫆","\\supseteqq",!0);A(T,Y,V,"⋑","\\Supset",!0);A(T,Y,V,"⊐","\\sqsupset",!0);A(T,Y,V,"≽","\\succcurlyeq",!0);A(T,Y,V,"⋟","\\curlyeqsucc",!0);A(T,Y,V,"≿","\\succsim",!0);A(T,Y,V,"⪸","\\succapprox",!0);A(T,Y,V,"⊳","\\vartriangleright");A(T,Y,V,"⊵","\\trianglerighteq");A(T,Y,V,"⊩","\\Vdash",!0);A(T,Y,V,"∣","\\shortmid");A(T,Y,V,"∥","\\shortparallel");A(T,Y,V,"≬","\\between",!0);A(T,Y,V,"⋔","\\pitchfork",!0);A(T,Y,V,"∝","\\varpropto");A(T,Y,V,"◀","\\blacktriangleleft");A(T,Y,V,"∴","\\therefore",!0);A(T,Y,V,"∍","\\backepsilon");A(T,Y,V,"▶","\\blacktriangleright");A(T,Y,V,"∵","\\because",!0);A(T,Y,V,"⋘","\\llless");A(T,Y,V,"⋙","\\gggtr");A(T,Y,ge,"⊲","\\lhd");A(T,Y,ge,"⊳","\\rhd");A(T,Y,V,"≂","\\eqsim",!0);A(T,I,V,"⋈","\\Join");A(T,Y,V,"≑","\\Doteq",!0);A(T,Y,ge,"∔","\\dotplus",!0);A(T,Y,ge,"∖","\\smallsetminus");A(T,Y,ge,"⋒","\\Cap",!0);A(T,Y,ge,"⋓","\\Cup",!0);A(T,Y,ge,"⩞","\\doublebarwedge",!0);A(T,Y,ge,"⊟","\\boxminus",!0);A(T,Y,ge,"⊞","\\boxplus",!0);A(T,Y,ge,"⋇","\\divideontimes",!0);A(T,Y,ge,"⋉","\\ltimes",!0);A(T,Y,ge,"⋊","\\rtimes",!0);A(T,Y,ge,"⋋","\\leftthreetimes",!0);A(T,Y,ge,"⋌","\\rightthreetimes",!0);A(T,Y,ge,"⋏","\\curlywedge",!0);A(T,Y,ge,"⋎","\\curlyvee",!0);A(T,Y,ge,"⊝","\\circleddash",!0);A(T,Y,ge,"⊛","\\circledast",!0);A(T,Y,ge,"⋅","\\centerdot");A(T,Y,ge,"⊺","\\intercal",!0);A(T,Y,ge,"⋒","\\doublecap");A(T,Y,ge,"⋓","\\doublecup");A(T,Y,ge,"⊠","\\boxtimes",!0);A(T,Y,V,"⇢","\\dashrightarrow",!0);A(T,Y,V,"⇠","\\dashleftarrow",!0);A(T,Y,V,"⇇","\\leftleftarrows",!0);A(T,Y,V,"⇆","\\leftrightarrows",!0);A(T,Y,V,"⇚","\\Lleftarrow",!0);A(T,Y,V,"↞","\\twoheadleftarrow",!0);A(T,Y,V,"↢","\\leftarrowtail",!0);A(T,Y,V,"↫","\\looparrowleft",!0);A(T,Y,V,"⇋","\\leftrightharpoons",!0);A(T,Y,V,"↶","\\curvearrowleft",!0);A(T,Y,V,"↺","\\circlearrowleft",!0);A(T,Y,V,"↰","\\Lsh",!0);A(T,Y,V,"⇈","\\upuparrows",!0);A(T,Y,V,"↿","\\upharpoonleft",!0);A(T,Y,V,"⇃","\\downharpoonleft",!0);A(T,I,V,"⊶","\\origof",!0);A(T,I,V,"⊷","\\imageof",!0);A(T,Y,V,"⊸","\\multimap",!0);A(T,Y,V,"↭","\\leftrightsquigarrow",!0);A(T,Y,V,"⇉","\\rightrightarrows",!0);A(T,Y,V,"⇄","\\rightleftarrows",!0);A(T,Y,V,"↠","\\twoheadrightarrow",!0);A(T,Y,V,"↣","\\rightarrowtail",!0);A(T,Y,V,"↬","\\looparrowright",!0);A(T,Y,V,"↷","\\curvearrowright",!0);A(T,Y,V,"↻","\\circlearrowright",!0);A(T,Y,V,"↱","\\Rsh",!0);A(T,Y,V,"⇊","\\downdownarrows",!0);A(T,Y,V,"↾","\\upharpoonright",!0);A(T,Y,V,"⇂","\\downharpoonright",!0);A(T,Y,V,"⇝","\\rightsquigarrow",!0);A(T,Y,V,"⇝","\\leadsto");A(T,Y,V,"⇛","\\Rrightarrow",!0);A(T,Y,V,"↾","\\restriction");A(T,I,j,"‘","`");A(T,I,j,"$","\\$");A(oe,I,j,"$","\\$");A(oe,I,j,"$","\\textdollar");A(T,I,j,"%","\\%");A(oe,I,j,"%","\\%");A(T,I,j,"_","\\_");A(oe,I,j,"_","\\_");A(oe,I,j,"_","\\textunderscore");A(T,I,j,"∠","\\angle",!0);A(T,I,j,"∞","\\infty",!0);A(T,I,j,"′","\\prime");A(T,I,j,"△","\\triangle");A(T,I,j,"Γ","\\Gamma",!0);A(T,I,j,"Δ","\\Delta",!0);A(T,I,j,"Θ","\\Theta",!0);A(T,I,j,"Λ","\\Lambda",!0);A(T,I,j,"Ξ","\\Xi",!0);A(T,I,j,"Π","\\Pi",!0);A(T,I,j,"Σ","\\Sigma",!0);A(T,I,j,"Υ","\\Upsilon",!0);A(T,I,j,"Φ","\\Phi",!0);A(T,I,j,"Ψ","\\Psi",!0);A(T,I,j,"Ω","\\Omega",!0);A(T,I,j,"A","Α");A(T,I,j,"B","Β");A(T,I,j,"E","Ε");A(T,I,j,"Z","Ζ");A(T,I,j,"H","Η");A(T,I,j,"I","Ι");A(T,I,j,"K","Κ");A(T,I,j,"M","Μ");A(T,I,j,"N","Ν");A(T,I,j,"O","Ο");A(T,I,j,"P","Ρ");A(T,I,j,"T","Τ");A(T,I,j,"X","Χ");A(T,I,j,"¬","\\neg",!0);A(T,I,j,"¬","\\lnot");A(T,I,j,"⊤","\\top");A(T,I,j,"⊥","\\bot");A(T,I,j,"∅","\\emptyset");A(T,Y,j,"∅","\\varnothing");A(T,I,xe,"α","\\alpha",!0);A(T,I,xe,"β","\\beta",!0);A(T,I,xe,"γ","\\gamma",!0);A(T,I,xe,"δ","\\delta",!0);A(T,I,xe,"ϵ","\\epsilon",!0);A(T,I,xe,"ζ","\\zeta",!0);A(T,I,xe,"η","\\eta",!0);A(T,I,xe,"θ","\\theta",!0);A(T,I,xe,"ι","\\iota",!0);A(T,I,xe,"κ","\\kappa",!0);A(T,I,xe,"λ","\\lambda",!0);A(T,I,xe,"μ","\\mu",!0);A(T,I,xe,"ν","\\nu",!0);A(T,I,xe,"ξ","\\xi",!0);A(T,I,xe,"ο","\\omicron",!0);A(T,I,xe,"π","\\pi",!0);A(T,I,xe,"ρ","\\rho",!0);A(T,I,xe,"σ","\\sigma",!0);A(T,I,xe,"τ","\\tau",!0);A(T,I,xe,"υ","\\upsilon",!0);A(T,I,xe,"ϕ","\\phi",!0);A(T,I,xe,"χ","\\chi",!0);A(T,I,xe,"ψ","\\psi",!0);A(T,I,xe,"ω","\\omega",!0);A(T,I,xe,"ε","\\varepsilon",!0);A(T,I,xe,"ϑ","\\vartheta",!0);A(T,I,xe,"ϖ","\\varpi",!0);A(T,I,xe,"ϱ","\\varrho",!0);A(T,I,xe,"ς","\\varsigma",!0);A(T,I,xe,"φ","\\varphi",!0);A(T,I,ge,"∗","*",!0);A(T,I,ge,"+","+");A(T,I,ge,"−","-",!0);A(T,I,ge,"⋅","\\cdot",!0);A(T,I,ge,"∘","\\circ",!0);A(T,I,ge,"÷","\\div",!0);A(T,I,ge,"±","\\pm",!0);A(T,I,ge,"×","\\times",!0);A(T,I,ge,"∩","\\cap",!0);A(T,I,ge,"∪","\\cup",!0);A(T,I,ge,"∖","\\setminus",!0);A(T,I,ge,"∧","\\land");A(T,I,ge,"∨","\\lor");A(T,I,ge,"∧","\\wedge",!0);A(T,I,ge,"∨","\\vee",!0);A(T,I,j,"√","\\surd");A(T,I,ut,"⟨","\\langle",!0);A(T,I,ut,"∣","\\lvert");A(T,I,ut,"∥","\\lVert");A(T,I,rt,"?","?");A(T,I,rt,"!","!");A(T,I,rt,"⟩","\\rangle",!0);A(T,I,rt,"∣","\\rvert");A(T,I,rt,"∥","\\rVert");A(T,I,V,"=","=");A(T,I,V,":",":");A(T,I,V,"≈","\\approx",!0);A(T,I,V,"≅","\\cong",!0);A(T,I,V,"≥","\\ge");A(T,I,V,"≥","\\geq",!0);A(T,I,V,"←","\\gets");A(T,I,V,">","\\gt",!0);A(T,I,V,"∈","\\in",!0);A(T,I,V,"","\\@not");A(T,I,V,"⊂","\\subset",!0);A(T,I,V,"⊃","\\supset",!0);A(T,I,V,"⊆","\\subseteq",!0);A(T,I,V,"⊇","\\supseteq",!0);A(T,Y,V,"⊈","\\nsubseteq",!0);A(T,Y,V,"⊉","\\nsupseteq",!0);A(T,I,V,"⊨","\\models");A(T,I,V,"←","\\leftarrow",!0);A(T,I,V,"≤","\\le");A(T,I,V,"≤","\\leq",!0);A(T,I,V,"<","\\lt",!0);A(T,I,V,"→","\\rightarrow",!0);A(T,I,V,"→","\\to");A(T,Y,V,"≱","\\ngeq",!0);A(T,Y,V,"≰","\\nleq",!0);A(T,I,Nt," ","\\ ");A(T,I,Nt," ","\\space");A(T,I,Nt," ","\\nobreakspace");A(oe,I,Nt," ","\\ ");A(oe,I,Nt," "," ");A(oe,I,Nt," ","\\space");A(oe,I,Nt," ","\\nobreakspace");A(T,I,Nt,null,"\\nobreak");A(T,I,Nt,null,"\\allowbreak");A(T,I,ua,",",",");A(T,I,ua,";",";");A(T,Y,ge,"⊼","\\barwedge",!0);A(T,Y,ge,"⊻","\\veebar",!0);A(T,I,ge,"⊙","\\odot",!0);A(T,I,ge,"⊕","\\oplus",!0);A(T,I,ge,"⊗","\\otimes",!0);A(T,I,j,"∂","\\partial",!0);A(T,I,ge,"⊘","\\oslash",!0);A(T,Y,ge,"⊚","\\circledcirc",!0);A(T,Y,ge,"⊡","\\boxdot",!0);A(T,I,ge,"△","\\bigtriangleup");A(T,I,ge,"▽","\\bigtriangledown");A(T,I,ge,"†","\\dagger");A(T,I,ge,"⋄","\\diamond");A(T,I,ge,"⋆","\\star");A(T,I,ge,"◃","\\triangleleft");A(T,I,ge,"▹","\\triangleright");A(T,I,ut,"{","\\{");A(oe,I,j,"{","\\{");A(oe,I,j,"{","\\textbraceleft");A(T,I,rt,"}","\\}");A(oe,I,j,"}","\\}");A(oe,I,j,"}","\\textbraceright");A(T,I,ut,"{","\\lbrace");A(T,I,rt,"}","\\rbrace");A(T,I,ut,"[","\\lbrack",!0);A(oe,I,j,"[","\\lbrack",!0);A(T,I,rt,"]","\\rbrack",!0);A(oe,I,j,"]","\\rbrack",!0);A(T,I,ut,"(","\\lparen",!0);A(T,I,rt,")","\\rparen",!0);A(oe,I,j,"<","\\textless",!0);A(oe,I,j,">","\\textgreater",!0);A(T,I,ut,"⌊","\\lfloor",!0);A(T,I,rt,"⌋","\\rfloor",!0);A(T,I,ut,"⌈","\\lceil",!0);A(T,I,rt,"⌉","\\rceil",!0);A(T,I,j,"\\","\\backslash");A(T,I,j,"∣","|");A(T,I,j,"∣","\\vert");A(oe,I,j,"|","\\textbar",!0);A(T,I,j,"∥","\\|");A(T,I,j,"∥","\\Vert");A(oe,I,j,"∥","\\textbardbl");A(oe,I,j,"~","\\textasciitilde");A(oe,I,j,"\\","\\textbackslash");A(oe,I,j,"^","\\textasciicircum");A(T,I,V,"↑","\\uparrow",!0);A(T,I,V,"⇑","\\Uparrow",!0);A(T,I,V,"↓","\\downarrow",!0);A(T,I,V,"⇓","\\Downarrow",!0);A(T,I,V,"↕","\\updownarrow",!0);A(T,I,V,"⇕","\\Updownarrow",!0);A(T,I,je,"∐","\\coprod");A(T,I,je,"⋁","\\bigvee");A(T,I,je,"⋀","\\bigwedge");A(T,I,je,"⨄","\\biguplus");A(T,I,je,"⋂","\\bigcap");A(T,I,je,"⋃","\\bigcup");A(T,I,je,"∫","\\int");A(T,I,je,"∫","\\intop");A(T,I,je,"∬","\\iint");A(T,I,je,"∭","\\iiint");A(T,I,je,"∏","\\prod");A(T,I,je,"∑","\\sum");A(T,I,je,"⨂","\\bigotimes");A(T,I,je,"⨁","\\bigoplus");A(T,I,je,"⨀","\\bigodot");A(T,I,je,"∮","\\oint");A(T,I,je,"∯","\\oiint");A(T,I,je,"∰","\\oiiint");A(T,I,je,"⨆","\\bigsqcup");A(T,I,je,"∫","\\smallint");A(oe,I,mr,"…","\\textellipsis");A(T,I,mr,"…","\\mathellipsis");A(oe,I,mr,"…","\\ldots",!0);A(T,I,mr,"…","\\ldots",!0);A(T,I,mr,"⋯","\\@cdots",!0);A(T,I,mr,"⋱","\\ddots",!0);A(T,I,j,"⋮","\\varvdots");A(T,I,He,"ˊ","\\acute");A(T,I,He,"ˋ","\\grave");A(T,I,He,"¨","\\ddot");A(T,I,He,"~","\\tilde");A(T,I,He,"ˉ","\\bar");A(T,I,He,"˘","\\breve");A(T,I,He,"ˇ","\\check");A(T,I,He,"^","\\hat");A(T,I,He,"⃗","\\vec");A(T,I,He,"˙","\\dot");A(T,I,He,"˚","\\mathring");A(T,I,xe,"","\\@imath");A(T,I,xe,"","\\@jmath");A(T,I,j,"ı","ı");A(T,I,j,"ȷ","ȷ");A(oe,I,j,"ı","\\i",!0);A(oe,I,j,"ȷ","\\j",!0);A(oe,I,j,"ß","\\ss",!0);A(oe,I,j,"æ","\\ae",!0);A(oe,I,j,"œ","\\oe",!0);A(oe,I,j,"ø","\\o",!0);A(oe,I,j,"Æ","\\AE",!0);A(oe,I,j,"Œ","\\OE",!0);A(oe,I,j,"Ø","\\O",!0);A(oe,I,He,"ˊ","\\'");A(oe,I,He,"ˋ","\\`");A(oe,I,He,"ˆ","\\^");A(oe,I,He,"˜","\\~");A(oe,I,He,"ˉ","\\=");A(oe,I,He,"˘","\\u");A(oe,I,He,"˙","\\.");A(oe,I,He,"¸","\\c");A(oe,I,He,"˚","\\r");A(oe,I,He,"ˇ","\\v");A(oe,I,He,"¨",'\\"');A(oe,I,He,"˝","\\H");A(oe,I,He,"◯","\\textcircled");var Ln={"--":!0,"---":!0,"``":!0,"''":!0};A(oe,I,j,"–","--",!0);A(oe,I,j,"–","\\textendash");A(oe,I,j,"—","---",!0);A(oe,I,j,"—","\\textemdash");A(oe,I,j,"‘","`",!0);A(oe,I,j,"‘","\\textquoteleft");A(oe,I,j,"’","'",!0);A(oe,I,j,"’","\\textquoteright");A(oe,I,j,"“","``",!0);A(oe,I,j,"“","\\textquotedblleft");A(oe,I,j,"”","''",!0);A(oe,I,j,"”","\\textquotedblright");A(T,I,j,"°","\\degree",!0);A(oe,I,j,"°","\\degree");A(oe,I,j,"°","\\textdegree",!0);A(T,I,j,"£","\\pounds");A(T,I,j,"£","\\mathsterling",!0);A(oe,I,j,"£","\\pounds");A(oe,I,j,"£","\\textsterling",!0);A(T,Y,j,"✠","\\maltese");A(oe,Y,j,"✠","\\maltese");var Ls='0123456789/@."';for(var _a=0;_a<Ls.length;_a++){var Es=Ls.charAt(_a);A(T,I,j,Es,Es)}var Ds='0123456789!@*()-=+";:?/.,';for(var Ba=0;Ba<Ds.length;Ba++){var Ps=Ds.charAt(Ba);A(oe,I,j,Ps,Ps)}var Jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Na=0;Na<Jr.length;Na++){var Or=Jr.charAt(Na);A(T,I,xe,Or,Or),A(oe,I,j,Or,Or)}A(T,Y,j,"C","ℂ");A(oe,Y,j,"C","ℂ");A(T,Y,j,"H","ℍ");A(oe,Y,j,"H","ℍ");A(T,Y,j,"N","ℕ");A(oe,Y,j,"N","ℕ");A(T,Y,j,"P","ℙ");A(oe,Y,j,"P","ℙ");A(T,Y,j,"Q","ℚ");A(oe,Y,j,"Q","ℚ");A(T,Y,j,"R","ℝ");A(oe,Y,j,"R","ℝ");A(T,Y,j,"Z","ℤ");A(oe,Y,j,"Z","ℤ");A(T,I,xe,"h","ℎ");A(oe,I,xe,"h","ℎ");var Ae="";for(var nt=0;nt<Jr.length;nt++){var Ge=Jr.charAt(nt);Ae=String.fromCharCode(55349,56320+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56372+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56424+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56580+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56736+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56788+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56840+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56944+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),nt<26&&(Ae=String.fromCharCode(55349,56632+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae),Ae=String.fromCharCode(55349,56476+nt),A(T,I,xe,Ge,Ae),A(oe,I,j,Ge,Ae))}Ae=String.fromCharCode(55349,56668);A(T,I,xe,"k",Ae);A(oe,I,j,"k",Ae);for(var Kt=0;Kt<10;Kt++){var Yt=Kt.toString();Ae=String.fromCharCode(55349,57294+Kt),A(T,I,xe,Yt,Ae),A(oe,I,j,Yt,Ae),Ae=String.fromCharCode(55349,57314+Kt),A(T,I,xe,Yt,Ae),A(oe,I,j,Yt,Ae),Ae=String.fromCharCode(55349,57324+Kt),A(T,I,xe,Yt,Ae),A(oe,I,j,Yt,Ae),Ae=String.fromCharCode(55349,57334+Kt),A(T,I,xe,Yt,Ae),A(oe,I,j,Yt,Ae)}var Is="ÐÞþ";for(var Oa=0;Oa<Is.length;Oa++){var Hr=Is.charAt(Oa);A(T,I,xe,Hr,Hr),A(oe,I,j,Hr,Hr)}var Xr=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Rs=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],GH=function(a,o){var u=a.charCodeAt(0),g=a.charCodeAt(1),m=(u-55296)*1024+(g-56320)+65536,k=o==="math"?0:1;if(119808<=m&&m<120484){var w=Math.floor((m-119808)/26);return[Xr[w][2],Xr[w][k]]}else if(120782<=m&&m<=120831){var S=Math.floor((m-120782)/10);return[Rs[S][2],Rs[S][k]]}else{if(m===120485||m===120486)return[Xr[0][2],Xr[0][k]];if(120486<m&&m<120782)return["",""];throw new ye("Unsupported character: "+a)}},da=function(a,o,u){return Ke[u][a]&&Ke[u][a].replace&&(a=Ke[u][a].replace),{value:a,metrics:pi(a,o,u)}},yt=function(a,o,u,g,m){var k=da(a,o,u),w=k.metrics;a=k.value;var S;if(w){var D=w.italic;(u==="text"||g&&g.font==="mathit")&&(D=0),S=new zt(a,w.height,w.depth,D,w.skew,w.width,m)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+a+"' in style '"+o+"' and mode '"+u+"'")),S=new zt(a,0,0,0,0,0,m);if(g){S.maxFontSize=g.sizeMultiplier,g.style.isTight()&&S.classes.push("mtight");var F=g.getColor();F&&(S.style.color=F)}return S},jH=function(a,o,u,g){return g===void 0&&(g=[]),u.font==="boldsymbol"&&da(a,"Main-Bold",o).metrics?yt(a,"Main-Bold",o,u,g.concat(["mathbf"])):a==="\\"||Ke[o][a].font==="main"?yt(a,"Main-Regular",o,u,g):yt(a,"AMS-Regular",o,u,g.concat(["amsrm"]))},UH=function(a,o,u,g,m){return m!=="textord"&&da(a,"Math-BoldItalic",o).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},$H=function(a,o,u){var g=a.mode,m=a.text,k=["mord"],w=g==="math"||g==="text"&&o.font,S=w?o.font:o.fontFamily;if(m.charCodeAt(0)===55349){var[D,F]=GH(m,g);return yt(m,D,g,o,k.concat(F))}else if(S){var H,q;if(S==="boldsymbol"){var X=UH(m,g,o,k,u);H=X.fontName,q=[X.fontClass]}else w?(H=Pn[S].fontName,q=[S]):(H=Yr(S,o.fontWeight,o.fontShape),q=[S,o.fontWeight,o.fontShape]);if(da(m,H,g).metrics)return yt(m,H,g,o,k.concat(q));if(Ln.hasOwnProperty(m)&&H.slice(0,10)==="Typewriter"){for(var $=[],Z=0;Z<m.length;Z++)$.push(yt(m[Z],H,g,o,k.concat(q)));return Dn($)}}if(u==="mathord")return yt(m,"Math-Italic",g,o,k.concat(["mathnormal"]));if(u==="textord"){var ae=Ke[g][m]&&Ke[g][m].font;if(ae==="ams"){var J=Yr("amsrm",o.fontWeight,o.fontShape);return yt(m,J,g,o,k.concat("amsrm",o.fontWeight,o.fontShape))}else if(ae==="main"||!ae){var O=Yr("textrm",o.fontWeight,o.fontShape);return yt(m,O,g,o,k.concat(o.fontWeight,o.fontShape))}else{var se=Yr(ae,o.fontWeight,o.fontShape);return yt(m,se,g,o,k.concat(se,o.fontWeight,o.fontShape))}}else throw new Error("unexpected type: "+u+" in makeOrd")},ZH=(c,a)=>{if(Vt(c.classes)!==Vt(a.classes)||c.skew!==a.skew||c.maxFontSize!==a.maxFontSize)return!1;if(c.classes.length===1){var o=c.classes[0];if(o==="mbin"||o==="mord")return!1}for(var u in c.style)if(c.style.hasOwnProperty(u)&&c.style[u]!==a.style[u])return!1;for(var g in a.style)if(a.style.hasOwnProperty(g)&&c.style[g]!==a.style[g])return!1;return!0},JH=c=>{for(var a=0;a<c.length-1;a++){var o=c[a],u=c[a+1];o instanceof zt&&u instanceof zt&&ZH(o,u)&&(o.text+=u.text,o.height=Math.max(o.height,u.height),o.depth=Math.max(o.depth,u.depth),o.italic=u.italic,c.splice(a+1,1),a--)}return c},mi=function(a){for(var o=0,u=0,g=0,m=0;m<a.children.length;m++){var k=a.children[m];k.height>o&&(o=k.height),k.depth>u&&(u=k.depth),k.maxFontSize>g&&(g=k.maxFontSize)}a.height=o,a.depth=u,a.maxFontSize=g},ot=function(a,o,u,g){var m=new ha(a,o,u,g);return mi(m),m},En=(c,a,o,u)=>new ha(c,a,o,u),KH=function(a,o,u){var g=ot([a],[],o);return g.height=Math.max(u||o.fontMetrics().defaultRuleThickness,o.minRuleThickness),g.style.borderBottomWidth=ue(g.height),g.maxFontSize=1,g},QH=function(a,o,u,g){var m=new Tn(a,o,u,g);return mi(m),m},Dn=function(a){var o=new Er(a);return mi(o),o},eX=function(a,o){return a instanceof Er?ot([],[a],o):a},tX=function(a){if(a.positionType==="individualShift"){for(var o=a.children,u=[o[0]],g=-o[0].shift-o[0].elem.depth,m=g,k=1;k<o.length;k++){var w=-o[k].shift-m-o[k].elem.depth,S=w-(o[k-1].elem.height+o[k-1].elem.depth);m=m+w,u.push({type:"kern",size:S}),u.push(o[k])}return{children:u,depth:g}}var D;if(a.positionType==="top"){for(var F=a.positionData,H=0;H<a.children.length;H++){var q=a.children[H];F-=q.type==="kern"?q.size:q.elem.height+q.elem.depth}D=F}else if(a.positionType==="bottom")D=-a.positionData;else{var X=a.children[0];if(X.type!=="elem")throw new Error('First child must have type "elem".');if(a.positionType==="shift")D=-X.elem.depth-a.positionData;else if(a.positionType==="firstBaseline")D=-X.elem.depth;else throw new Error("Invalid positionType "+a.positionType+".")}return{children:a.children,depth:D}},rX=function(a,o){for(var{children:u,depth:g}=tX(a),m=0,k=0;k<u.length;k++){var w=u[k];if(w.type==="elem"){var S=w.elem;m=Math.max(m,S.maxFontSize,S.height)}}m+=2;var D=ot(["pstrut"],[]);D.style.height=ue(m);for(var F=[],H=g,q=g,X=g,$=0;$<u.length;$++){var Z=u[$];if(Z.type==="kern")X+=Z.size;else{var ae=Z.elem,J=Z.wrapperClasses||[],O=Z.wrapperStyle||{},se=ot(J,[D,ae],void 0,O);se.style.top=ue(-m-X-ae.depth),Z.marginLeft&&(se.style.marginLeft=Z.marginLeft),Z.marginRight&&(se.style.marginRight=Z.marginRight),F.push(se),X+=ae.height+ae.depth}H=Math.min(H,X),q=Math.max(q,X)}var le=ot(["vlist"],F);le.style.height=ue(q);var U;if(H<0){var re=ot([],[]),fe=ot(["vlist"],[re]);fe.style.height=ue(-H);var ve=ot(["vlist-s"],[new zt("")]);U=[ot(["vlist-r"],[le,ve]),ot(["vlist-r"],[fe])]}else U=[ot(["vlist-r"],[le])];var Ee=ot(["vlist-t"],U);return U.length===2&&Ee.classes.push("vlist-t2"),Ee.height=q,Ee.depth=-H,Ee},aX=(c,a)=>{var o=ot(["mspace"],[],a),u=Ye(c,a);return o.style.marginRight=ue(u),o},Yr=function(a,o,u){var g="";switch(a){case"amsrm":g="AMS";break;case"textrm":g="Main";break;case"textsf":g="SansSerif";break;case"texttt":g="Typewriter";break;default:g=a}var m;return o==="textbf"&&u==="textit"?m="BoldItalic":o==="textbf"?m="Bold":o==="textit"?m="Italic":m="Regular",g+"-"+m},Pn={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},In={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},iX=function(a,o){var[u,g,m]=In[a],k=new ar(u),w=new Wt([k],{width:ue(g),height:ue(m),style:"width:"+ue(g),viewBox:"0 0 "+1e3*g+" "+1e3*m,preserveAspectRatio:"xMinYMin"}),S=En(["overlay"],[w],o);return S.height=m,S.style.height=ue(m),S.style.width=ue(g),S},K={fontMap:Pn,makeSymbol:yt,mathsym:jH,makeSpan:ot,makeSvgSpan:En,makeLineSpan:KH,makeAnchor:QH,makeFragment:Dn,wrapFragment:eX,makeVList:rX,makeOrd:$H,makeGlue:aX,staticSvg:iX,svgData:In,tryCombineChars:JH},Xe={number:3,unit:"mu"},Qt={number:4,unit:"mu"},It={number:5,unit:"mu"},sX={mord:{mop:Xe,mbin:Qt,mrel:It,minner:Xe},mop:{mord:Xe,mop:Xe,mrel:It,minner:Xe},mbin:{mord:Qt,mop:Qt,mopen:Qt,minner:Qt},mrel:{mord:It,mop:It,mopen:It,minner:It},mopen:{},mclose:{mop:Xe,mbin:Qt,mrel:It,minner:Xe},mpunct:{mord:Xe,mop:Xe,mrel:It,mopen:Xe,mclose:Xe,mpunct:Xe,minner:Xe},minner:{mord:Xe,mop:Xe,mbin:Qt,mrel:It,mopen:Xe,mpunct:Xe,minner:Xe}},nX={mord:{mop:Xe},mop:{mord:Xe,mop:Xe},mbin:{},mrel:{},mopen:{},mclose:{mop:Xe},mpunct:{},minner:{mop:Xe}},oX={},Kr={},Qr={};function de(c){for(var{type:a,names:o,props:u,handler:g,htmlBuilder:m,mathmlBuilder:k}=c,w={type:a,numArgs:u.numArgs,argTypes:u.argTypes,allowedInArgument:!!u.allowedInArgument,allowedInText:!!u.allowedInText,allowedInMath:u.allowedInMath===void 0?!0:u.allowedInMath,numOptionalArgs:u.numOptionalArgs||0,infix:!!u.infix,primitive:!!u.primitive,handler:g},S=0;S<o.length;++S)oX[o[S]]=w;a&&(m&&(Kr[a]=m),k&&(Qr[a]=k))}function ir(c){var{type:a,htmlBuilder:o,mathmlBuilder:u}=c;de({type:a,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:o,mathmlBuilder:u})}var ea=function(a){return a.type==="ordgroup"&&a.body.length===1?a.body[0]:a},We=function(a){return a.type==="ordgroup"?a.body:[a]},dr=K.makeSpan,lX=["leftmost","mbin","mopen","mrel","mop","mpunct"],cX=["rightmost","mrel","mclose","mpunct"],hX={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT},uX={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Qe=function(a,o,u,g){g===void 0&&(g=[null,null]);for(var m=[],k=0;k<a.length;k++){var w=Re(a[k],o);if(w instanceof Er){var S=w.children;m.push(...S)}else m.push(w)}if(K.tryCombineChars(m),!u)return m;var D=o;if(a.length===1){var F=a[0];F.type==="sizing"?D=o.havingSize(F.size):F.type==="styling"&&(D=o.havingStyle(hX[F.style]))}var H=dr([g[0]||"leftmost"],[],o),q=dr([g[1]||"rightmost"],[],o),X=u==="root";return Fs(m,($,Z)=>{var ae=Z.classes[0],J=$.classes[0];ae==="mbin"&&Se.contains(cX,J)?Z.classes[0]="mord":J==="mbin"&&Se.contains(lX,ae)&&($.classes[0]="mord")},{node:H},q,X),Fs(m,($,Z)=>{var ae=Qa(Z),J=Qa($),O=ae&&J?$.hasClass("mtight")?nX[ae][J]:sX[ae][J]:null;if(O)return K.makeGlue(O,D)},{node:H},q,X),m},Fs=function c(a,o,u,g,m){g&&a.push(g);for(var k=0;k<a.length;k++){var w=a[k],S=Rn(w);if(S){c(S.children,o,u,null,m);continue}var D=!w.hasClass("mspace");if(D){var F=o(w,u.node);F&&(u.insertAfter?u.insertAfter(F):(a.unshift(F),k++))}D?u.node=w:m&&w.hasClass("newline")&&(u.node=dr(["leftmost"])),u.insertAfter=(H=>q=>{a.splice(H+1,0,q),k++})(k)}g&&a.pop()},Rn=function(a){return a instanceof Er||a instanceof Tn||a instanceof ha&&a.hasClass("enclosing")?a:null},dX=function c(a,o){var u=Rn(a);if(u){var g=u.children;if(g.length){if(o==="right")return c(g[g.length-1],"right");if(o==="left")return c(g[0],"left")}}return a},Qa=function(a,o){return a?(o&&(a=dX(a,o)),uX[a.classes[0]]||null):null},zr=function(a,o){var u=["nulldelimiter"].concat(a.baseSizingClasses());return dr(o.concat(u))},Re=function(a,o,u){if(!a)return dr();if(Kr[a.type]){var g=Kr[a.type](a,o);if(u&&o.size!==u.size){g=dr(o.sizingClasses(u),[g],o);var m=o.sizeMultiplier/u.sizeMultiplier;g.height*=m,g.depth*=m}return g}else throw new ye("Got group of unknown type: '"+a.type+"'")};function Fn(c){return new Er(c)}class wt{constructor(a,o,u){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=a,this.attributes={},this.children=o||[],this.classes=u||[]}setAttribute(a,o){this.attributes[a]=o}getAttribute(a){return this.attributes[a]}toNode(){var a=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var o in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,o)&&a.setAttribute(o,this.attributes[o]);this.classes.length>0&&(a.className=Vt(this.classes));for(var u=0;u<this.children.length;u++)a.appendChild(this.children[u].toNode());return a}toMarkup(){var a="<"+this.type;for(var o in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,o)&&(a+=" "+o+'="',a+=Se.escape(this.attributes[o]),a+='"');this.classes.length>0&&(a+=' class ="'+Se.escape(Vt(this.classes))+'"'),a+=">";for(var u=0;u<this.children.length;u++)a+=this.children[u].toMarkup();return a+="</"+this.type+">",a}toText(){return this.children.map(a=>a.toText()).join("")}}class Ar{constructor(a){this.text=void 0,this.text=a}toNode(){return document.createTextNode(this.text)}toMarkup(){return Se.escape(this.toText())}toText(){return this.text}}class fX{constructor(a){this.width=void 0,this.character=void 0,this.width=a,a>=.05555&&a<=.05556?this.character=" ":a>=.1666&&a<=.1667?this.character=" ":a>=.2222&&a<=.2223?this.character=" ":a>=.2777&&a<=.2778?this.character=" ":a>=-.05556&&a<=-.05555?this.character=" ":a>=-.1667&&a<=-.1666?this.character=" ":a>=-.2223&&a<=-.2222?this.character=" ":a>=-.2778&&a<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var a=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return a.setAttribute("width",ue(this.width)),a}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ue(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var he={MathNode:wt,TextNode:Ar,SpaceNode:fX,newDocumentFragment:Fn},bt=function(a,o,u){return Ke[o][a]&&Ke[o][a].replace&&a.charCodeAt(0)!==55349&&!(Ln.hasOwnProperty(a)&&u&&(u.fontFamily&&u.fontFamily.slice(4,6)==="tt"||u.font&&u.font.slice(4,6)==="tt"))&&(a=Ke[o][a].replace),new he.TextNode(a)},xi=function(a){return a.length===1?a[0]:new he.MathNode("mrow",a)},bi=function(a,o){if(o.fontFamily==="texttt")return"monospace";if(o.fontFamily==="textsf")return o.fontShape==="textit"&&o.fontWeight==="textbf"?"sans-serif-bold-italic":o.fontShape==="textit"?"sans-serif-italic":o.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(o.fontShape==="textit"&&o.fontWeight==="textbf")return"bold-italic";if(o.fontShape==="textit")return"italic";if(o.fontWeight==="textbf")return"bold";var u=o.font;if(!u||u==="mathnormal")return null;var g=a.mode;if(u==="mathit")return"italic";if(u==="boldsymbol")return a.type==="textord"?"bold":"bold-italic";if(u==="mathbf")return"bold";if(u==="mathbb")return"double-struck";if(u==="mathfrak")return"fraktur";if(u==="mathscr"||u==="mathcal")return"script";if(u==="mathsf")return"sans-serif";if(u==="mathtt")return"monospace";var m=a.text;if(Se.contains(["\\imath","\\jmath"],m))return null;Ke[g][m]&&Ke[g][m].replace&&(m=Ke[g][m].replace);var k=K.fontMap[u].fontName;return pi(m,k,g)?K.fontMap[u].variant:null},dt=function(a,o,u){if(a.length===1){var g=Be(a[0],o);return u&&g instanceof wt&&g.type==="mo"&&(g.setAttribute("lspace","0em"),g.setAttribute("rspace","0em")),[g]}for(var m=[],k,w=0;w<a.length;w++){var S=Be(a[w],o);if(S instanceof wt&&k instanceof wt){if(S.type==="mtext"&&k.type==="mtext"&&S.getAttribute("mathvariant")===k.getAttribute("mathvariant")){k.children.push(...S.children);continue}else if(S.type==="mn"&&k.type==="mn"){k.children.push(...S.children);continue}else if(S.type==="mi"&&S.children.length===1&&k.type==="mn"){var D=S.children[0];if(D instanceof Ar&&D.text==="."){k.children.push(...S.children);continue}}else if(k.type==="mi"&&k.children.length===1){var F=k.children[0];if(F instanceof Ar&&F.text==="̸"&&(S.type==="mo"||S.type==="mi"||S.type==="mn")){var H=S.children[0];H instanceof Ar&&H.text.length>0&&(H.text=H.text.slice(0,1)+"̸"+H.text.slice(1),m.pop())}}}m.push(S),k=S}return m},Gt=function(a,o,u){return xi(dt(a,o,u))},Be=function(a,o){if(!a)return new he.MathNode("mrow");if(Qr[a.type]){var u=Qr[a.type](a,o);return u}else throw new ye("Got group of unknown type: '"+a.type+"'")},gX={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},pX=function(a){var o=new he.MathNode("mo",[new he.TextNode(gX[a.replace(/^\\/,"")])]);return o.setAttribute("stretchy","true"),o},mX={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},xX=function(a){return a.type==="ordgroup"?a.body.length:1},bX=function(a,o){function u(){var w=4e5,S=a.label.slice(1);if(Se.contains(["widehat","widecheck","widetilde","utilde"],S)){var D=a,F=xX(D.base),H,q,X;if(F>5)S==="widehat"||S==="widecheck"?(H=420,w=2364,X=.42,q=S+"4"):(H=312,w=2340,X=.34,q="tilde4");else{var $=[1,1,2,2,3,3][F];S==="widehat"||S==="widecheck"?(w=[0,1062,2364,2364,2364][$],H=[0,239,300,360,420][$],X=[0,.24,.3,.3,.36,.42][$],q=S+$):(w=[0,600,1033,2339,2340][$],H=[0,260,286,306,312][$],X=[0,.26,.286,.3,.306,.34][$],q="tilde"+$)}var Z=new ar(q),ae=new Wt([Z],{width:"100%",height:ue(X),viewBox:"0 0 "+w+" "+H,preserveAspectRatio:"none"});return{span:K.makeSvgSpan([],[ae],o),minWidth:0,height:X}}else{var J=[],O=mX[S],[se,le,U]=O,re=U/1e3,fe=se.length,ve,Ee;if(fe===1){var we=O[3];ve=["hide-tail"],Ee=[we]}else if(fe===2)ve=["halfarrow-left","halfarrow-right"],Ee=["xMinYMin","xMaxYMin"];else if(fe===3)ve=["brace-left","brace-center","brace-right"],Ee=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
984
|
+
`+fe+" children.");for(var Ce=0;Ce<fe;Ce++){var Pe=new ar(se[Ce]),Ze=new Wt([Pe],{width:"400em",height:ue(re),viewBox:"0 0 "+w+" "+U,preserveAspectRatio:Ee[Ce]+" slice"}),ne=K.makeSvgSpan([ve[Ce]],[Ze],o);if(fe===1)return{span:ne,minWidth:le,height:re};ne.style.height=ue(re),J.push(ne)}return{span:K.makeSpan(["stretchy"],J,o),minWidth:le,height:re}}}var{span:g,minWidth:m,height:k}=u();return g.height=k,g.style.height=ue(k),m>0&&(g.style.minWidth=ue(m)),g},vX=function(a,o,u,g,m){var k,w=a.height+a.depth+u+g;if(/fbox|color|angl/.test(o)){if(k=K.makeSpan(["stretchy",o],[],m),o==="fbox"){var S=m.color&&m.getColor();S&&(k.style.borderColor=S)}}else{var D=[];/^[bx]cancel$/.test(o)&&D.push(new zs({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(o)&&D.push(new zs({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var F=new Wt(D,{width:"100%",height:ue(w)});k=K.makeSvgSpan([],[F],m)}return k.height=w,k.style.height=ue(w),k},Bt={encloseSpan:vX,mathMLnode:pX,svgSpan:bX};function Te(c,a){if(!c||c.type!==a)throw new Error("Expected node of type "+a+", but got "+(c?"node of type "+c.type:String(c)));return c}function vi(c){var a=fa(c);if(!a)throw new Error("Expected node of symbol group type, but got "+(c?"node of type "+c.type:String(c)));return a}function fa(c){return c&&(c.type==="atom"||WH.hasOwnProperty(c.type))?c:null}var yi=(c,a)=>{var o,u,g;c&&c.type==="supsub"?(u=Te(c.base,"accent"),o=u.base,c.base=o,g=VH(Re(c,a)),c.base=u):(u=Te(c,"accent"),o=u.base);var m=Re(o,a.havingCrampedStyle()),k=u.isShifty&&Se.isCharacterBox(o),w=0;if(k){var S=Se.getBaseElem(o),D=Re(S,a.havingCrampedStyle());w=Ts(D).skew}var F=u.label==="\\c",H=F?m.height+m.depth:Math.min(m.height,a.fontMetrics().xHeight),q;if(u.isStretchy)q=Bt.svgSpan(u,a),q=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"elem",elem:q,wrapperClasses:["svg-align"],wrapperStyle:w>0?{width:"calc(100% - "+ue(2*w)+")",marginLeft:ue(2*w)}:void 0}]},a);else{var X,$;u.label==="\\vec"?(X=K.staticSvg("vec",a),$=K.svgData.vec[1]):(X=K.makeOrd({mode:u.mode,text:u.label},a,"textord"),X=Ts(X),X.italic=0,$=X.width,F&&(H+=X.depth)),q=K.makeSpan(["accent-body"],[X]);var Z=u.label==="\\textcircled";Z&&(q.classes.push("accent-full"),H=m.height);var ae=w;Z||(ae-=$/2),q.style.left=ue(ae),u.label==="\\textcircled"&&(q.style.top=".2em"),q=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:-H},{type:"elem",elem:q}]},a)}var J=K.makeSpan(["mord","accent"],[q],a);return g?(g.children[0]=J,g.height=Math.max(J.height,g.height),g.classes[0]="mord",g):J},_n=(c,a)=>{var o=c.isStretchy?Bt.mathMLnode(c.label):new he.MathNode("mo",[bt(c.label,c.mode)]),u=new he.MathNode("mover",[Be(c.base,a),o]);return u.setAttribute("accent","true"),u},yX=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(c=>"\\"+c).join("|"));de({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(c,a)=>{var o=ea(a[0]),u=!yX.test(c.funcName),g=!u||c.funcName==="\\widehat"||c.funcName==="\\widetilde"||c.funcName==="\\widecheck";return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:u,isShifty:g,base:o}},htmlBuilder:yi,mathmlBuilder:_n});de({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(c,a)=>{var o=a[0],u=c.parser.mode;return u==="math"&&(c.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+c.funcName+" works only in text mode"),u="text"),{type:"accent",mode:u,label:c.funcName,isStretchy:!1,isShifty:!0,base:o}},htmlBuilder:yi,mathmlBuilder:_n});de({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=a[0];return{type:"accentUnder",mode:o.mode,label:u,base:g}},htmlBuilder:(c,a)=>{var o=Re(c.base,a),u=Bt.svgSpan(c,a),g=c.label==="\\utilde"?.12:0,m=K.makeVList({positionType:"top",positionData:o.height,children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:g},{type:"elem",elem:o}]},a);return K.makeSpan(["mord","accentunder"],[m],a)},mathmlBuilder:(c,a)=>{var o=Bt.mathMLnode(c.label),u=new he.MathNode("munder",[Be(c.base,a),o]);return u.setAttribute("accentunder","true"),u}});var qr=c=>{var a=new he.MathNode("mpadded",c?[c]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};de({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(c,a,o){var{parser:u,funcName:g}=c;return{type:"xArrow",mode:u.mode,label:g,body:a[0],below:o[0]}},htmlBuilder(c,a){var o=a.style,u=a.havingStyle(o.sup()),g=K.wrapFragment(Re(c.body,u,a),a),m=c.label.slice(0,2)==="\\x"?"x":"cd";g.classes.push(m+"-arrow-pad");var k;c.below&&(u=a.havingStyle(o.sub()),k=K.wrapFragment(Re(c.below,u,a),a),k.classes.push(m+"-arrow-pad"));var w=Bt.svgSpan(c,a),S=-a.fontMetrics().axisHeight+.5*w.height,D=-a.fontMetrics().axisHeight-.5*w.height-.111;(g.depth>.25||c.label==="\\xleftequilibrium")&&(D-=g.depth);var F;if(k){var H=-a.fontMetrics().axisHeight+k.height+.5*w.height+.111;F=K.makeVList({positionType:"individualShift",children:[{type:"elem",elem:g,shift:D},{type:"elem",elem:w,shift:S},{type:"elem",elem:k,shift:H}]},a)}else F=K.makeVList({positionType:"individualShift",children:[{type:"elem",elem:g,shift:D},{type:"elem",elem:w,shift:S}]},a);return F.children[0].children[0].children[1].classes.push("svg-align"),K.makeSpan(["mrel","x-arrow"],[F],a)},mathmlBuilder(c,a){var o=Bt.mathMLnode(c.label);o.setAttribute("minsize",c.label.charAt(0)==="x"?"1.75em":"3.0em");var u;if(c.body){var g=qr(Be(c.body,a));if(c.below){var m=qr(Be(c.below,a));u=new he.MathNode("munderover",[o,m,g])}else u=new he.MathNode("mover",[o,g])}else if(c.below){var k=qr(Be(c.below,a));u=new he.MathNode("munder",[o,k])}else u=qr(),u=new he.MathNode("mover",[o,u]);return u}});var wX=K.makeSpan;function Bn(c,a){var o=Qe(c.body,a,!0);return wX([c.mclass],o,a)}function Nn(c,a){var o,u=dt(c.body,a);return c.mclass==="minner"?o=new he.MathNode("mpadded",u):c.mclass==="mord"?c.isCharacterBox?(o=u[0],o.type="mi"):o=new he.MathNode("mi",u):(c.isCharacterBox?(o=u[0],o.type="mo"):o=new he.MathNode("mo",u),c.mclass==="mbin"?(o.attributes.lspace="0.22em",o.attributes.rspace="0.22em"):c.mclass==="mpunct"?(o.attributes.lspace="0em",o.attributes.rspace="0.17em"):c.mclass==="mopen"||c.mclass==="mclose"?(o.attributes.lspace="0em",o.attributes.rspace="0em"):c.mclass==="minner"&&(o.attributes.lspace="0.0556em",o.attributes.width="+0.1111em")),o}de({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(c,a){var{parser:o,funcName:u}=c,g=a[0];return{type:"mclass",mode:o.mode,mclass:"m"+u.slice(5),body:We(g),isCharacterBox:Se.isCharacterBox(g)}},htmlBuilder:Bn,mathmlBuilder:Nn});var ga=c=>{var a=c.type==="ordgroup"&&c.body.length?c.body[0]:c;return a.type==="atom"&&(a.family==="bin"||a.family==="rel")?"m"+a.family:"mord"};de({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(c,a){var{parser:o}=c;return{type:"mclass",mode:o.mode,mclass:ga(a[0]),body:We(a[1]),isCharacterBox:Se.isCharacterBox(a[1])}}});de({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(c,a){var{parser:o,funcName:u}=c,g=a[1],m=a[0],k;u!=="\\stackrel"?k=ga(g):k="mrel";var w={type:"op",mode:g.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:u!=="\\stackrel",body:We(g)},S={type:"supsub",mode:m.mode,base:w,sup:u==="\\underset"?null:m,sub:u==="\\underset"?m:null};return{type:"mclass",mode:o.mode,mclass:k,body:[S],isCharacterBox:Se.isCharacterBox(S)}},htmlBuilder:Bn,mathmlBuilder:Nn});de({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(c,a){var{parser:o}=c;return{type:"pmb",mode:o.mode,mclass:ga(a[0]),body:We(a[0])}},htmlBuilder(c,a){var o=Qe(c.body,a,!0),u=K.makeSpan([c.mclass],o,a);return u.style.textShadow="0.02em 0.01em 0.04px",u},mathmlBuilder(c,a){var o=dt(c.body,a),u=new he.MathNode("mstyle",o);return u.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),u}});var kX={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},_s=()=>({type:"styling",body:[],mode:"math",style:"display"}),Bs=c=>c.type==="textord"&&c.text==="@",AX=(c,a)=>(c.type==="mathord"||c.type==="atom")&&c.text===a;function SX(c,a,o){var u=kX[c];switch(u){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return o.callFunction(u,[a[0]],[a[1]]);case"\\uparrow":case"\\downarrow":{var g=o.callFunction("\\\\cdleft",[a[0]],[]),m={type:"atom",text:u,mode:"math",family:"rel"},k=o.callFunction("\\Big",[m],[]),w=o.callFunction("\\\\cdright",[a[1]],[]),S={type:"ordgroup",mode:"math",body:[g,k,w]};return o.callFunction("\\\\cdparent",[S],[])}case"\\\\cdlongequal":return o.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var D={type:"textord",text:"\\Vert",mode:"math"};return o.callFunction("\\Big",[D],[])}default:return{type:"textord",text:" ",mode:"math"}}}function CX(c){var a=[];for(c.gullet.beginGroup(),c.gullet.macros.set("\\cr","\\\\\\relax"),c.gullet.beginGroup();;){a.push(c.parseExpression(!1,"\\\\")),c.gullet.endGroup(),c.gullet.beginGroup();var o=c.fetch().text;if(o==="&"||o==="\\\\")c.consume();else if(o==="\\end"){a[a.length-1].length===0&&a.pop();break}else throw new ye("Expected \\\\ or \\cr or \\end",c.nextToken)}for(var u=[],g=[u],m=0;m<a.length;m++){for(var k=a[m],w=_s(),S=0;S<k.length;S++)if(!Bs(k[S]))w.body.push(k[S]);else{u.push(w),S+=1;var D=vi(k[S]).text,F=new Array(2);if(F[0]={type:"ordgroup",mode:"math",body:[]},F[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(D)>-1))if("<>AV".indexOf(D)>-1)for(var H=0;H<2;H++){for(var q=!0,X=S+1;X<k.length;X++){if(AX(k[X],D)){q=!1,S=X;break}if(Bs(k[X]))throw new ye("Missing a "+D+" character to complete a CD arrow.",k[X]);F[H].body.push(k[X])}if(q)throw new ye("Missing a "+D+" character to complete a CD arrow.",k[S])}else throw new ye('Expected one of "<>AV=|." after @',k[S]);var $=SX(D,F,c),Z={type:"styling",body:[$],mode:"math",style:"display"};u.push(Z),w=_s()}m%2===0?u.push(w):u.shift(),u=[],g.push(u)}c.gullet.endGroup(),c.gullet.endGroup();var ae=new Array(g[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:g,arraystretch:1,addJot:!0,rowGaps:[null],cols:ae,colSeparationType:"CD",hLinesBeforeRow:new Array(g.length+1).fill([])}}de({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(c,a){var{parser:o,funcName:u}=c;return{type:"cdlabel",mode:o.mode,side:u.slice(4),label:a[0]}},htmlBuilder(c,a){var o=a.havingStyle(a.style.sup()),u=K.wrapFragment(Re(c.label,o,a),a);return u.classes.push("cd-label-"+c.side),u.style.bottom=ue(.8-u.depth),u.height=0,u.depth=0,u},mathmlBuilder(c,a){var o=new he.MathNode("mrow",[Be(c.label,a)]);return o=new he.MathNode("mpadded",[o]),o.setAttribute("width","0"),c.side==="left"&&o.setAttribute("lspace","-1width"),o.setAttribute("voffset","0.7em"),o=new he.MathNode("mstyle",[o]),o.setAttribute("displaystyle","false"),o.setAttribute("scriptlevel","1"),o}});de({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(c,a){var{parser:o}=c;return{type:"cdlabelparent",mode:o.mode,fragment:a[0]}},htmlBuilder(c,a){var o=K.wrapFragment(Re(c.fragment,a),a);return o.classes.push("cd-vert-arrow"),o},mathmlBuilder(c,a){return new he.MathNode("mrow",[Be(c.fragment,a)])}});de({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(c,a){for(var{parser:o}=c,u=Te(a[0],"ordgroup"),g=u.body,m="",k=0;k<g.length;k++){var w=Te(g[k],"textord");m+=w.text}var S=parseInt(m),D;if(isNaN(S))throw new ye("\\@char has non-numeric argument "+m);if(S<0||S>=1114111)throw new ye("\\@char with invalid code point "+m);return S<=65535?D=String.fromCharCode(S):(S-=65536,D=String.fromCharCode((S>>10)+55296,(S&1023)+56320)),{type:"textord",mode:o.mode,text:D}}});var On=(c,a)=>{var o=Qe(c.body,a.withColor(c.color),!1);return K.makeFragment(o)},Hn=(c,a)=>{var o=dt(c.body,a.withColor(c.color)),u=new he.MathNode("mstyle",o);return u.setAttribute("mathcolor",c.color),u};de({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(c,a){var{parser:o}=c,u=Te(a[0],"color-token").color,g=a[1];return{type:"color",mode:o.mode,color:u,body:We(g)}},htmlBuilder:On,mathmlBuilder:Hn});de({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(c,a){var{parser:o,breakOnTokenText:u}=c,g=Te(a[0],"color-token").color;o.gullet.macros.set("\\current@color",g);var m=o.parseExpression(!0,u);return{type:"color",mode:o.mode,color:g,body:m}},htmlBuilder:On,mathmlBuilder:Hn});de({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(c,a,o){var{parser:u}=c,g=u.gullet.future().text==="["?u.parseSizeGroup(!0):null,m=!u.settings.displayMode||!u.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:u.mode,newLine:m,size:g&&Te(g,"size").value}},htmlBuilder(c,a){var o=K.makeSpan(["mspace"],[],a);return c.newLine&&(o.classes.push("newline"),c.size&&(o.style.marginTop=ue(Ye(c.size,a)))),o},mathmlBuilder(c,a){var o=new he.MathNode("mspace");return c.newLine&&(o.setAttribute("linebreak","newline"),c.size&&o.setAttribute("height",ue(Ye(c.size,a)))),o}});var ei={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Xn=c=>{var a=c.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new ye("Expected a control sequence",c);return a},MX=c=>{var a=c.gullet.popToken();return a.text==="="&&(a=c.gullet.popToken(),a.text===" "&&(a=c.gullet.popToken())),a},Yn=(c,a,o,u)=>{var g=c.gullet.macros.get(o.text);g==null&&(o.noexpand=!0,g={tokens:[o],numArgs:0,unexpandable:!c.gullet.isExpandable(o.text)}),c.gullet.macros.set(a,g,u)};de({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(c){var{parser:a,funcName:o}=c;a.consumeSpaces();var u=a.fetch();if(ei[u.text])return(o==="\\global"||o==="\\\\globallong")&&(u.text=ei[u.text]),Te(a.parseFunction(),"internal");throw new ye("Invalid token after macro prefix",u)}});de({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(c){var{parser:a,funcName:o}=c,u=a.gullet.popToken(),g=u.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(g))throw new ye("Expected a control sequence",u);for(var m=0,k,w=[[]];a.gullet.future().text!=="{";)if(u=a.gullet.popToken(),u.text==="#"){if(a.gullet.future().text==="{"){k=a.gullet.future(),w[m].push("{");break}if(u=a.gullet.popToken(),!/^[1-9]$/.test(u.text))throw new ye('Invalid argument number "'+u.text+'"');if(parseInt(u.text)!==m+1)throw new ye('Argument number "'+u.text+'" out of order');m++,w.push([])}else{if(u.text==="EOF")throw new ye("Expected a macro definition");w[m].push(u.text)}var{tokens:S}=a.gullet.consumeArg();return k&&S.unshift(k),(o==="\\edef"||o==="\\xdef")&&(S=a.gullet.expandTokens(S),S.reverse()),a.gullet.macros.set(g,{tokens:S,numArgs:m,delimiters:w},o===ei[o]),{type:"internal",mode:a.mode}}});de({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(c){var{parser:a,funcName:o}=c,u=Xn(a.gullet.popToken());a.gullet.consumeSpaces();var g=MX(a);return Yn(a,u,g,o==="\\\\globallet"),{type:"internal",mode:a.mode}}});de({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(c){var{parser:a,funcName:o}=c,u=Xn(a.gullet.popToken()),g=a.gullet.popToken(),m=a.gullet.popToken();return Yn(a,u,m,o==="\\\\globalfuture"),a.gullet.pushToken(m),a.gullet.pushToken(g),{type:"internal",mode:a.mode}}});var yr=function(a,o,u){var g=Ke.math[a]&&Ke.math[a].replace,m=pi(g||a,o,u);if(!m)throw new Error("Unsupported symbol "+a+" and font size "+o+".");return m},wi=function(a,o,u,g){var m=u.havingBaseStyle(o),k=K.makeSpan(g.concat(m.sizingClasses(u)),[a],u),w=m.sizeMultiplier/u.sizeMultiplier;return k.height*=w,k.depth*=w,k.maxFontSize=m.sizeMultiplier,k},qn=function(a,o,u){var g=o.havingBaseStyle(u),m=(1-o.sizeMultiplier/g.sizeMultiplier)*o.fontMetrics().axisHeight;a.classes.push("delimcenter"),a.style.top=ue(m),a.height-=m,a.depth+=m},zX=function(a,o,u,g,m,k){var w=K.makeSymbol(a,"Main-Regular",m,g),S=wi(w,o,g,k);return u&&qn(S,g,o),S},TX=function(a,o,u,g){return K.makeSymbol(a,"Size"+o+"-Regular",u,g)},Vn=function(a,o,u,g,m,k){var w=TX(a,o,m,g),S=wi(K.makeSpan(["delimsizing","size"+o],[w],g),be.TEXT,g,k);return u&&qn(S,g,be.TEXT),S},Ha=function(a,o,u){var g;o==="Size1-Regular"?g="delim-size1":g="delim-size4";var m=K.makeSpan(["delimsizinginner",g],[K.makeSpan([],[K.makeSymbol(a,o,u)])]);return{type:"elem",elem:m}},Xa=function(a,o,u){var g=Rt["Size4-Regular"][a.charCodeAt(0)]?Rt["Size4-Regular"][a.charCodeAt(0)][4]:Rt["Size1-Regular"][a.charCodeAt(0)][4],m=new ar("inner",NH(a,Math.round(1e3*o))),k=new Wt([m],{width:ue(g),height:ue(o),style:"width:"+ue(g),viewBox:"0 0 "+1e3*g+" "+Math.round(1e3*o),preserveAspectRatio:"xMinYMin"}),w=K.makeSvgSpan([],[k],u);return w.height=o,w.style.height=ue(o),w.style.width=ue(g),{type:"elem",elem:w}},ti=.008,Vr={type:"kern",size:-1*ti},LX=["|","\\lvert","\\rvert","\\vert"],EX=["\\|","\\lVert","\\rVert","\\Vert"],Wn=function(a,o,u,g,m,k){var w,S,D,F,H="",q=0;w=D=F=a,S=null;var X="Size1-Regular";a==="\\uparrow"?D=F="⏐":a==="\\Uparrow"?D=F="‖":a==="\\downarrow"?w=D="⏐":a==="\\Downarrow"?w=D="‖":a==="\\updownarrow"?(w="\\uparrow",D="⏐",F="\\downarrow"):a==="\\Updownarrow"?(w="\\Uparrow",D="‖",F="\\Downarrow"):Se.contains(LX,a)?(D="∣",H="vert",q=333):Se.contains(EX,a)?(D="∥",H="doublevert",q=556):a==="["||a==="\\lbrack"?(w="⎡",D="⎢",F="⎣",X="Size4-Regular",H="lbrack",q=667):a==="]"||a==="\\rbrack"?(w="⎤",D="⎥",F="⎦",X="Size4-Regular",H="rbrack",q=667):a==="\\lfloor"||a==="⌊"?(D=w="⎢",F="⎣",X="Size4-Regular",H="lfloor",q=667):a==="\\lceil"||a==="⌈"?(w="⎡",D=F="⎢",X="Size4-Regular",H="lceil",q=667):a==="\\rfloor"||a==="⌋"?(D=w="⎥",F="⎦",X="Size4-Regular",H="rfloor",q=667):a==="\\rceil"||a==="⌉"?(w="⎤",D=F="⎥",X="Size4-Regular",H="rceil",q=667):a==="("||a==="\\lparen"?(w="⎛",D="⎜",F="⎝",X="Size4-Regular",H="lparen",q=875):a===")"||a==="\\rparen"?(w="⎞",D="⎟",F="⎠",X="Size4-Regular",H="rparen",q=875):a==="\\{"||a==="\\lbrace"?(w="⎧",S="⎨",F="⎩",D="⎪",X="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(w="⎫",S="⎬",F="⎭",D="⎪",X="Size4-Regular"):a==="\\lgroup"||a==="⟮"?(w="⎧",F="⎩",D="⎪",X="Size4-Regular"):a==="\\rgroup"||a==="⟯"?(w="⎫",F="⎭",D="⎪",X="Size4-Regular"):a==="\\lmoustache"||a==="⎰"?(w="⎧",F="⎭",D="⎪",X="Size4-Regular"):(a==="\\rmoustache"||a==="⎱")&&(w="⎫",F="⎩",D="⎪",X="Size4-Regular");var $=yr(w,X,m),Z=$.height+$.depth,ae=yr(D,X,m),J=ae.height+ae.depth,O=yr(F,X,m),se=O.height+O.depth,le=0,U=1;if(S!==null){var re=yr(S,X,m);le=re.height+re.depth,U=2}var fe=Z+se+le,ve=Math.max(0,Math.ceil((o-fe)/(U*J))),Ee=fe+ve*U*J,we=g.fontMetrics().axisHeight;u&&(we*=g.sizeMultiplier);var Ce=Ee/2-we,Pe=[];if(H.length>0){var Ze=Ee-Z-se,ne=Math.round(Ee*1e3),Me=OH(H,Math.round(Ze*1e3)),ke=new ar(H,Me),qe=(q/1e3).toFixed(3)+"em",Je=(ne/1e3).toFixed(3)+"em",vt=new Wt([ke],{width:qe,height:Je,viewBox:"0 0 "+q+" "+ne}),lt=K.makeSvgSpan([],[vt],g);lt.height=ne/1e3,lt.style.width=qe,lt.style.height=Je,Pe.push({type:"elem",elem:lt})}else{if(Pe.push(Ha(F,X,m)),Pe.push(Vr),S===null){var ft=Ee-Z-se+2*ti;Pe.push(Xa(D,ft,g))}else{var Ne=(Ee-Z-se-le)/2+2*ti;Pe.push(Xa(D,Ne,g)),Pe.push(Vr),Pe.push(Ha(S,X,m)),Pe.push(Vr),Pe.push(Xa(D,Ne,g))}Pe.push(Vr),Pe.push(Ha(w,X,m))}var ct=g.havingBaseStyle(be.TEXT),gt=K.makeVList({positionType:"bottom",positionData:Ce,children:Pe},ct);return wi(K.makeSpan(["delimsizing","mult"],[gt],ct),be.TEXT,g,k)},Ya=80,qa=.08,Va=function(a,o,u,g,m){var k=BH(a,g,u),w=new ar(a,k),S=new Wt([w],{width:"400em",height:ue(o),viewBox:"0 0 400000 "+u,preserveAspectRatio:"xMinYMin slice"});return K.makeSvgSpan(["hide-tail"],[S],m)},DX=function(a,o){var u=o.havingBaseSizing(),g=$n("\\surd",a*u.sizeMultiplier,Un,u),m=u.sizeMultiplier,k=Math.max(0,o.minRuleThickness-o.fontMetrics().sqrtRuleThickness),w,S=0,D=0,F=0,H;return g.type==="small"?(F=1e3+1e3*k+Ya,a<1?m=1:a<1.4&&(m=.7),S=(1+k+qa)/m,D=(1+k)/m,w=Va("sqrtMain",S,F,k,o),w.style.minWidth="0.853em",H=.833/m):g.type==="large"?(F=(1e3+Ya)*Sr[g.size],D=(Sr[g.size]+k)/m,S=(Sr[g.size]+k+qa)/m,w=Va("sqrtSize"+g.size,S,F,k,o),w.style.minWidth="1.02em",H=1/m):(S=a+k+qa,D=a+k,F=Math.floor(1e3*a+k)+Ya,w=Va("sqrtTall",S,F,k,o),w.style.minWidth="0.742em",H=1.056),w.height=D,w.style.height=ue(S),{span:w,advanceWidth:H,ruleWidth:(o.fontMetrics().sqrtRuleThickness+k)*m}},Gn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],PX=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],jn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Sr=[0,1.2,1.8,2.4,3],IX=function(a,o,u,g,m){if(a==="<"||a==="\\lt"||a==="⟨"?a="\\langle":(a===">"||a==="\\gt"||a==="⟩")&&(a="\\rangle"),Se.contains(Gn,a)||Se.contains(jn,a))return Vn(a,o,!1,u,g,m);if(Se.contains(PX,a))return Wn(a,Sr[o],!1,u,g,m);throw new ye("Illegal delimiter: '"+a+"'")},RX=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],FX=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],Un=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],_X=function(a){if(a.type==="small")return"Main-Regular";if(a.type==="large")return"Size"+a.size+"-Regular";if(a.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+a.type+"' here.")},$n=function(a,o,u,g){for(var m=Math.min(2,3-g.style.size),k=m;k<u.length&&u[k].type!=="stack";k++){var w=yr(a,_X(u[k]),"math"),S=w.height+w.depth;if(u[k].type==="small"){var D=g.havingBaseStyle(u[k].style);S*=D.sizeMultiplier}if(S>o)return u[k]}return u[u.length-1]},Zn=function(a,o,u,g,m,k){a==="<"||a==="\\lt"||a==="⟨"?a="\\langle":(a===">"||a==="\\gt"||a==="⟩")&&(a="\\rangle");var w;Se.contains(jn,a)?w=RX:Se.contains(Gn,a)?w=Un:w=FX;var S=$n(a,o,w,g);return S.type==="small"?zX(a,S.style,u,g,m,k):S.type==="large"?Vn(a,S.size,u,g,m,k):Wn(a,o,u,g,m,k)},BX=function(a,o,u,g,m,k){var w=g.fontMetrics().axisHeight*g.sizeMultiplier,S=901,D=5/g.fontMetrics().ptPerEm,F=Math.max(o-w,u+w),H=Math.max(F/500*S,2*F-D);return Zn(a,H,!0,g,m,k)},_t={sqrtImage:DX,sizedDelim:IX,sizeToMaxHeight:Sr,customSizedDelim:Zn,leftRightDelim:BX},Ns={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},NX=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function pa(c,a){var o=fa(c);if(o&&Se.contains(NX,o.text))return o;throw o?new ye("Invalid delimiter '"+o.text+"' after '"+a.funcName+"'",c):new ye("Invalid delimiter type '"+c.type+"'",c)}de({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(c,a)=>{var o=pa(a[0],c);return{type:"delimsizing",mode:c.parser.mode,size:Ns[c.funcName].size,mclass:Ns[c.funcName].mclass,delim:o.text}},htmlBuilder:(c,a)=>c.delim==="."?K.makeSpan([c.mclass]):_t.sizedDelim(c.delim,c.size,a,c.mode,[c.mclass]),mathmlBuilder:c=>{var a=[];c.delim!=="."&&a.push(bt(c.delim,c.mode));var o=new he.MathNode("mo",a);c.mclass==="mopen"||c.mclass==="mclose"?o.setAttribute("fence","true"):o.setAttribute("fence","false"),o.setAttribute("stretchy","true");var u=ue(_t.sizeToMaxHeight[c.size]);return o.setAttribute("minsize",u),o.setAttribute("maxsize",u),o}});function Os(c){if(!c.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}de({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(c,a)=>{var o=c.parser.gullet.macros.get("\\current@color");if(o&&typeof o!="string")throw new ye("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:c.parser.mode,delim:pa(a[0],c).text,color:o}}});de({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(c,a)=>{var o=pa(a[0],c),u=c.parser;++u.leftrightDepth;var g=u.parseExpression(!1);--u.leftrightDepth,u.expect("\\right",!1);var m=Te(u.parseFunction(),"leftright-right");return{type:"leftright",mode:u.mode,body:g,left:o.text,right:m.delim,rightColor:m.color}},htmlBuilder:(c,a)=>{Os(c);for(var o=Qe(c.body,a,!0,["mopen","mclose"]),u=0,g=0,m=!1,k=0;k<o.length;k++)o[k].isMiddle?m=!0:(u=Math.max(o[k].height,u),g=Math.max(o[k].depth,g));u*=a.sizeMultiplier,g*=a.sizeMultiplier;var w;if(c.left==="."?w=zr(a,["mopen"]):w=_t.leftRightDelim(c.left,u,g,a,c.mode,["mopen"]),o.unshift(w),m)for(var S=1;S<o.length;S++){var D=o[S],F=D.isMiddle;F&&(o[S]=_t.leftRightDelim(F.delim,u,g,F.options,c.mode,[]))}var H;if(c.right===".")H=zr(a,["mclose"]);else{var q=c.rightColor?a.withColor(c.rightColor):a;H=_t.leftRightDelim(c.right,u,g,q,c.mode,["mclose"])}return o.push(H),K.makeSpan(["minner"],o,a)},mathmlBuilder:(c,a)=>{Os(c);var o=dt(c.body,a);if(c.left!=="."){var u=new he.MathNode("mo",[bt(c.left,c.mode)]);u.setAttribute("fence","true"),o.unshift(u)}if(c.right!=="."){var g=new he.MathNode("mo",[bt(c.right,c.mode)]);g.setAttribute("fence","true"),c.rightColor&&g.setAttribute("mathcolor",c.rightColor),o.push(g)}return xi(o)}});de({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(c,a)=>{var o=pa(a[0],c);if(!c.parser.leftrightDepth)throw new ye("\\middle without preceding \\left",o);return{type:"middle",mode:c.parser.mode,delim:o.text}},htmlBuilder:(c,a)=>{var o;if(c.delim===".")o=zr(a,[]);else{o=_t.sizedDelim(c.delim,1,a,c.mode,[]);var u={delim:c.delim,options:a};o.isMiddle=u}return o},mathmlBuilder:(c,a)=>{var o=c.delim==="\\vert"||c.delim==="|"?bt("|","text"):bt(c.delim,c.mode),u=new he.MathNode("mo",[o]);return u.setAttribute("fence","true"),u.setAttribute("lspace","0.05em"),u.setAttribute("rspace","0.05em"),u}});var ki=(c,a)=>{var o=K.wrapFragment(Re(c.body,a),a),u=c.label.slice(1),g=a.sizeMultiplier,m,k=0,w=Se.isCharacterBox(c.body);if(u==="sout")m=K.makeSpan(["stretchy","sout"]),m.height=a.fontMetrics().defaultRuleThickness/g,k=-.5*a.fontMetrics().xHeight;else if(u==="phase"){var S=Ye({number:.6,unit:"pt"},a),D=Ye({number:.35,unit:"ex"},a),F=a.havingBaseSizing();g=g/F.sizeMultiplier;var H=o.height+o.depth+S+D;o.style.paddingLeft=ue(H/2+S);var q=Math.floor(1e3*H*g),X=FH(q),$=new Wt([new ar("phase",X)],{width:"400em",height:ue(q/1e3),viewBox:"0 0 400000 "+q,preserveAspectRatio:"xMinYMin slice"});m=K.makeSvgSpan(["hide-tail"],[$],a),m.style.height=ue(H),k=o.depth+S+D}else{/cancel/.test(u)?w||o.classes.push("cancel-pad"):u==="angl"?o.classes.push("anglpad"):o.classes.push("boxpad");var Z=0,ae=0,J=0;/box/.test(u)?(J=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness),Z=a.fontMetrics().fboxsep+(u==="colorbox"?0:J),ae=Z):u==="angl"?(J=Math.max(a.fontMetrics().defaultRuleThickness,a.minRuleThickness),Z=4*J,ae=Math.max(0,.25-o.depth)):(Z=w?.2:0,ae=Z),m=Bt.encloseSpan(o,u,Z,ae,a),/fbox|boxed|fcolorbox/.test(u)?(m.style.borderStyle="solid",m.style.borderWidth=ue(J)):u==="angl"&&J!==.049&&(m.style.borderTopWidth=ue(J),m.style.borderRightWidth=ue(J)),k=o.depth+ae,c.backgroundColor&&(m.style.backgroundColor=c.backgroundColor,c.borderColor&&(m.style.borderColor=c.borderColor))}var O;if(c.backgroundColor)O=K.makeVList({positionType:"individualShift",children:[{type:"elem",elem:m,shift:k},{type:"elem",elem:o,shift:0}]},a);else{var se=/cancel|phase/.test(u)?["svg-align"]:[];O=K.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:m,shift:k,wrapperClasses:se}]},a)}return/cancel/.test(u)&&(O.height=o.height,O.depth=o.depth),/cancel/.test(u)&&!w?K.makeSpan(["mord","cancel-lap"],[O],a):K.makeSpan(["mord"],[O],a)},Ai=(c,a)=>{var o=0,u=new he.MathNode(c.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Be(c.body,a)]);switch(c.label){case"\\cancel":u.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":u.setAttribute("notation","downdiagonalstrike");break;case"\\phase":u.setAttribute("notation","phasorangle");break;case"\\sout":u.setAttribute("notation","horizontalstrike");break;case"\\fbox":u.setAttribute("notation","box");break;case"\\angl":u.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(o=a.fontMetrics().fboxsep*a.fontMetrics().ptPerEm,u.setAttribute("width","+"+2*o+"pt"),u.setAttribute("height","+"+2*o+"pt"),u.setAttribute("lspace",o+"pt"),u.setAttribute("voffset",o+"pt"),c.label==="\\fcolorbox"){var g=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness);u.setAttribute("style","border: "+g+"em solid "+String(c.borderColor))}break;case"\\xcancel":u.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return c.backgroundColor&&u.setAttribute("mathbackground",c.backgroundColor),u};de({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(c,a,o){var{parser:u,funcName:g}=c,m=Te(a[0],"color-token").color,k=a[1];return{type:"enclose",mode:u.mode,label:g,backgroundColor:m,body:k}},htmlBuilder:ki,mathmlBuilder:Ai});de({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(c,a,o){var{parser:u,funcName:g}=c,m=Te(a[0],"color-token").color,k=Te(a[1],"color-token").color,w=a[2];return{type:"enclose",mode:u.mode,label:g,backgroundColor:k,borderColor:m,body:w}},htmlBuilder:ki,mathmlBuilder:Ai});de({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(c,a){var{parser:o}=c;return{type:"enclose",mode:o.mode,label:"\\fbox",body:a[0]}}});de({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(c,a){var{parser:o,funcName:u}=c,g=a[0];return{type:"enclose",mode:o.mode,label:u,body:g}},htmlBuilder:ki,mathmlBuilder:Ai});de({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(c,a){var{parser:o}=c;return{type:"enclose",mode:o.mode,label:"\\angl",body:a[0]}}});var Jn={};function Et(c){for(var{type:a,names:o,props:u,handler:g,htmlBuilder:m,mathmlBuilder:k}=c,w={type:a,numArgs:u.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:g},S=0;S<o.length;++S)Jn[o[S]]=w;m&&(Kr[a]=m),k&&(Qr[a]=k)}function Hs(c){var a=[];c.consumeSpaces();var o=c.fetch().text;for(o==="\\relax"&&(c.consume(),c.consumeSpaces(),o=c.fetch().text);o==="\\hline"||o==="\\hdashline";)c.consume(),a.push(o==="\\hdashline"),c.consumeSpaces(),o=c.fetch().text;return a}var ma=c=>{var a=c.parser.settings;if(!a.displayMode)throw new ye("{"+c.envName+"} can be used only in display mode.")};function Si(c){if(c.indexOf("ed")===-1)return c.indexOf("*")===-1}function jt(c,a,o){var{hskipBeforeAndAfter:u,addJot:g,cols:m,arraystretch:k,colSeparationType:w,autoTag:S,singleRow:D,emptySingleRow:F,maxNumCols:H,leqno:q}=a;if(c.gullet.beginGroup(),D||c.gullet.macros.set("\\cr","\\\\\\relax"),!k){var X=c.gullet.expandMacroAsText("\\arraystretch");if(X==null)k=1;else if(k=parseFloat(X),!k||k<0)throw new ye("Invalid \\arraystretch: "+X)}c.gullet.beginGroup();var $=[],Z=[$],ae=[],J=[],O=S!=null?[]:void 0;function se(){S&&c.gullet.macros.set("\\@eqnsw","1",!0)}function le(){O&&(c.gullet.macros.get("\\df@tag")?(O.push(c.subparse([new fi("\\df@tag")])),c.gullet.macros.set("\\df@tag",void 0,!0)):O.push(Boolean(S)&&c.gullet.macros.get("\\@eqnsw")==="1"))}for(se(),J.push(Hs(c));;){var U=c.parseExpression(!1,D?"\\end":"\\\\");c.gullet.endGroup(),c.gullet.beginGroup(),U={type:"ordgroup",mode:c.mode,body:U},o&&(U={type:"styling",mode:c.mode,style:o,body:[U]}),$.push(U);var re=c.fetch().text;if(re==="&"){if(H&&$.length===H){if(D||w)throw new ye("Too many tab characters: &",c.nextToken);c.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}c.consume()}else if(re==="\\end"){le(),$.length===1&&U.type==="styling"&&U.body[0].body.length===0&&(Z.length>1||!F)&&Z.pop(),J.length<Z.length+1&&J.push([]);break}else if(re==="\\\\"){c.consume();var fe=void 0;c.gullet.future().text!==" "&&(fe=c.parseSizeGroup(!0)),ae.push(fe?fe.value:null),le(),J.push(Hs(c)),$=[],Z.push($),se()}else throw new ye("Expected & or \\\\ or \\cr or \\end",c.nextToken)}return c.gullet.endGroup(),c.gullet.endGroup(),{type:"array",mode:c.mode,addJot:g,arraystretch:k,body:Z,cols:m,rowGaps:ae,hskipBeforeAndAfter:u,hLinesBeforeRow:J,colSeparationType:w,tags:O,leqno:q}}function Ci(c){return c.slice(0,1)==="d"?"display":"text"}var Dt=function(a,o){var u,g,m=a.body.length,k=a.hLinesBeforeRow,w=0,S=new Array(m),D=[],F=Math.max(o.fontMetrics().arrayRuleWidth,o.minRuleThickness),H=1/o.fontMetrics().ptPerEm,q=5*H;if(a.colSeparationType&&a.colSeparationType==="small"){var X=o.havingStyle(be.SCRIPT).sizeMultiplier;q=.2778*(X/o.sizeMultiplier)}var $=a.colSeparationType==="CD"?Ye({number:3,unit:"ex"},o):12*H,Z=3*H,ae=a.arraystretch*$,J=.7*ae,O=.3*ae,se=0;function le(Ot){for(var sr=0;sr<Ot.length;++sr)sr>0&&(se+=.25),D.push({pos:se,isDashed:Ot[sr]})}for(le(k[0]),u=0;u<a.body.length;++u){var U=a.body[u],re=J,fe=O;w<U.length&&(w=U.length);var ve=new Array(U.length);for(g=0;g<U.length;++g){var Ee=Re(U[g],o);fe<Ee.depth&&(fe=Ee.depth),re<Ee.height&&(re=Ee.height),ve[g]=Ee}var we=a.rowGaps[u],Ce=0;we&&(Ce=Ye(we,o),Ce>0&&(Ce+=O,fe<Ce&&(fe=Ce),Ce=0)),a.addJot&&(fe+=Z),ve.height=re,ve.depth=fe,se+=re,ve.pos=se,se+=fe+Ce,S[u]=ve,le(k[u+1])}var Pe=se/2+o.fontMetrics().axisHeight,Ze=a.cols||[],ne=[],Me,ke,qe=[];if(a.tags&&a.tags.some(Ot=>Ot))for(u=0;u<m;++u){var Je=S[u],vt=Je.pos-Pe,lt=a.tags[u],ft=void 0;lt===!0?ft=K.makeSpan(["eqn-num"],[],o):lt===!1?ft=K.makeSpan([],[],o):ft=K.makeSpan([],Qe(lt,o,!0),o),ft.depth=Je.depth,ft.height=Je.height,qe.push({type:"elem",elem:ft,shift:vt})}for(g=0,ke=0;g<w||ke<Ze.length;++g,++ke){for(var Ne=Ze[ke]||{},ct=!0;Ne.type==="separator";){if(ct||(Me=K.makeSpan(["arraycolsep"],[]),Me.style.width=ue(o.fontMetrics().doubleRuleSep),ne.push(Me)),Ne.separator==="|"||Ne.separator===":"){var gt=Ne.separator==="|"?"solid":"dashed",pe=K.makeSpan(["vertical-separator"],[],o);pe.style.height=ue(se),pe.style.borderRightWidth=ue(F),pe.style.borderRightStyle=gt,pe.style.margin="0 "+ue(-F/2);var ze=se-Pe;ze&&(pe.style.verticalAlign=ue(-ze)),ne.push(pe)}else throw new ye("Invalid separator type: "+Ne.separator);ke++,Ne=Ze[ke]||{},ct=!1}if(!(g>=w)){var Ue=void 0;(g>0||a.hskipBeforeAndAfter)&&(Ue=Se.deflt(Ne.pregap,q),Ue!==0&&(Me=K.makeSpan(["arraycolsep"],[]),Me.style.width=ue(Ue),ne.push(Me)));var Fe=[];for(u=0;u<m;++u){var at=S[u],it=at[g];if(it){var At=at.pos-Pe;it.depth=at.depth,it.height=at.height,Fe.push({type:"elem",elem:it,shift:At})}}Fe=K.makeVList({positionType:"individualShift",children:Fe},o),Fe=K.makeSpan(["col-align-"+(Ne.align||"c")],[Fe]),ne.push(Fe),(g<w-1||a.hskipBeforeAndAfter)&&(Ue=Se.deflt(Ne.postgap,q),Ue!==0&&(Me=K.makeSpan(["arraycolsep"],[]),Me.style.width=ue(Ue),ne.push(Me)))}}if(S=K.makeSpan(["mtable"],ne),D.length>0){for(var pt=K.makeLineSpan("hline",o,F),br=K.makeLineSpan("hdashline",o,F),Ut=[{type:"elem",elem:S,shift:0}];D.length>0;){var Pr=D.pop(),Ir=Pr.pos-Pe;Pr.isDashed?Ut.push({type:"elem",elem:br,shift:Ir}):Ut.push({type:"elem",elem:pt,shift:Ir})}S=K.makeVList({positionType:"individualShift",children:Ut},o)}if(qe.length===0)return K.makeSpan(["mord"],[S],o);var vr=K.makeVList({positionType:"individualShift",children:qe},o);return vr=K.makeSpan(["tag"],[vr],o),K.makeFragment([S,vr])},OX={c:"center ",l:"left ",r:"right "},Pt=function(a,o){for(var u=[],g=new he.MathNode("mtd",[],["mtr-glue"]),m=new he.MathNode("mtd",[],["mml-eqn-num"]),k=0;k<a.body.length;k++){for(var w=a.body[k],S=[],D=0;D<w.length;D++)S.push(new he.MathNode("mtd",[Be(w[D],o)]));a.tags&&a.tags[k]&&(S.unshift(g),S.push(g),a.leqno?S.unshift(m):S.push(m)),u.push(new he.MathNode("mtr",S))}var F=new he.MathNode("mtable",u),H=a.arraystretch===.5?.1:.16+a.arraystretch-1+(a.addJot?.09:0);F.setAttribute("rowspacing",ue(H));var q="",X="";if(a.cols&&a.cols.length>0){var $=a.cols,Z="",ae=!1,J=0,O=$.length;$[0].type==="separator"&&(q+="top ",J=1),$[$.length-1].type==="separator"&&(q+="bottom ",O-=1);for(var se=J;se<O;se++)$[se].type==="align"?(X+=OX[$[se].align],ae&&(Z+="none "),ae=!0):$[se].type==="separator"&&ae&&(Z+=$[se].separator==="|"?"solid ":"dashed ",ae=!1);F.setAttribute("columnalign",X.trim()),/[sd]/.test(Z)&&F.setAttribute("columnlines",Z.trim())}if(a.colSeparationType==="align"){for(var le=a.cols||[],U="",re=1;re<le.length;re++)U+=re%2?"0em ":"1em ";F.setAttribute("columnspacing",U.trim())}else a.colSeparationType==="alignat"||a.colSeparationType==="gather"?F.setAttribute("columnspacing","0em"):a.colSeparationType==="small"?F.setAttribute("columnspacing","0.2778em"):a.colSeparationType==="CD"?F.setAttribute("columnspacing","0.5em"):F.setAttribute("columnspacing","1em");var fe="",ve=a.hLinesBeforeRow;q+=ve[0].length>0?"left ":"",q+=ve[ve.length-1].length>0?"right ":"";for(var Ee=1;Ee<ve.length-1;Ee++)fe+=ve[Ee].length===0?"none ":ve[Ee][0]?"dashed ":"solid ";return/[sd]/.test(fe)&&F.setAttribute("rowlines",fe.trim()),q!==""&&(F=new he.MathNode("menclose",[F]),F.setAttribute("notation",q.trim())),a.arraystretch&&a.arraystretch<1&&(F=new he.MathNode("mstyle",[F]),F.setAttribute("scriptlevel","1")),F},Kn=function(a,o){a.envName.indexOf("ed")===-1&&ma(a);var u=[],g=a.envName.indexOf("at")>-1?"alignat":"align",m=a.envName==="split",k=jt(a.parser,{cols:u,addJot:!0,autoTag:m?void 0:Si(a.envName),emptySingleRow:!0,colSeparationType:g,maxNumCols:m?2:void 0,leqno:a.parser.settings.leqno},"display"),w,S=0,D={type:"ordgroup",mode:a.mode,body:[]};if(o[0]&&o[0].type==="ordgroup"){for(var F="",H=0;H<o[0].body.length;H++){var q=Te(o[0].body[H],"textord");F+=q.text}w=Number(F),S=w*2}var X=!S;k.body.forEach(function(J){for(var O=1;O<J.length;O+=2){var se=Te(J[O],"styling"),le=Te(se.body[0],"ordgroup");le.body.unshift(D)}if(X)S<J.length&&(S=J.length);else{var U=J.length/2;if(w<U)throw new ye("Too many math in a row: "+("expected "+w+", but got "+U),J[0])}});for(var $=0;$<S;++$){var Z="r",ae=0;$%2===1?Z="l":$>0&&X&&(ae=1),u[$]={type:"align",align:Z,pregap:ae,postgap:0}}return k.colSeparationType=X?"align":"alignat",k};Et({type:"array",names:["array","darray"],props:{numArgs:1},handler(c,a){var o=fa(a[0]),u=o?[a[0]]:Te(a[0],"ordgroup").body,g=u.map(function(k){var w=vi(k),S=w.text;if("lcr".indexOf(S)!==-1)return{type:"align",align:S};if(S==="|")return{type:"separator",separator:"|"};if(S===":")return{type:"separator",separator:":"};throw new ye("Unknown column alignment: "+S,k)}),m={cols:g,hskipBeforeAndAfter:!0,maxNumCols:g.length};return jt(c.parser,m,Ci(c.envName))},htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(c){var a={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[c.envName.replace("*","")],o="c",u={hskipBeforeAndAfter:!1,cols:[{type:"align",align:o}]};if(c.envName.charAt(c.envName.length-1)==="*"){var g=c.parser;if(g.consumeSpaces(),g.fetch().text==="["){if(g.consume(),g.consumeSpaces(),o=g.fetch().text,"lcr".indexOf(o)===-1)throw new ye("Expected l or c or r",g.nextToken);g.consume(),g.consumeSpaces(),g.expect("]"),g.consume(),u.cols=[{type:"align",align:o}]}}var m=jt(c.parser,u,Ci(c.envName)),k=Math.max(0,...m.body.map(w=>w.length));return m.cols=new Array(k).fill({type:"align",align:o}),a?{type:"leftright",mode:c.mode,body:[m],left:a[0],right:a[1],rightColor:void 0}:m},htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(c){var a={arraystretch:.5},o=jt(c.parser,a,"script");return o.colSeparationType="small",o},htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["subarray"],props:{numArgs:1},handler(c,a){var o=fa(a[0]),u=o?[a[0]]:Te(a[0],"ordgroup").body,g=u.map(function(k){var w=vi(k),S=w.text;if("lc".indexOf(S)!==-1)return{type:"align",align:S};throw new ye("Unknown column alignment: "+S,k)});if(g.length>1)throw new ye("{subarray} can contain only one column");var m={cols:g,hskipBeforeAndAfter:!1,arraystretch:.5};if(m=jt(c.parser,m,"script"),m.body.length>0&&m.body[0].length>1)throw new ye("{subarray} can contain only one column");return m},htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(c){var a={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},o=jt(c.parser,a,Ci(c.envName));return{type:"leftright",mode:c.mode,body:[o],left:c.envName.indexOf("r")>-1?".":"\\{",right:c.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Kn,htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(c){Se.contains(["gather","gather*"],c.envName)&&ma(c);var a={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Si(c.envName),emptySingleRow:!0,leqno:c.parser.settings.leqno};return jt(c.parser,a,"display")},htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Kn,htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(c){ma(c);var a={autoTag:Si(c.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:c.parser.settings.leqno};return jt(c.parser,a,"display")},htmlBuilder:Dt,mathmlBuilder:Pt});Et({type:"array",names:["CD"],props:{numArgs:0},handler(c){return ma(c),CX(c.parser)},htmlBuilder:Dt,mathmlBuilder:Pt});de({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(c,a){throw new ye(c.funcName+" valid only within array environment")}});var Xs=Jn;de({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(c,a){var{parser:o,funcName:u}=c,g=a[0];if(g.type!=="ordgroup")throw new ye("Invalid environment name",g);for(var m="",k=0;k<g.body.length;++k)m+=Te(g.body[k],"textord").text;if(u==="\\begin"){if(!Xs.hasOwnProperty(m))throw new ye("No such environment: "+m,g);var w=Xs[m],{args:S,optArgs:D}=o.parseArguments("\\begin{"+m+"}",w),F={mode:o.mode,envName:m,parser:o},H=w.handler(F,S,D);o.expect("\\end",!1);var q=o.nextToken,X=Te(o.parseFunction(),"environment");if(X.name!==m)throw new ye("Mismatch: \\begin{"+m+"} matched by \\end{"+X.name+"}",q);return H}return{type:"environment",mode:o.mode,name:m,nameGroup:g}}});var Qn=(c,a)=>{var o=c.font,u=a.withFont(o);return Re(c.body,u)},eo=(c,a)=>{var o=c.font,u=a.withFont(o);return Be(c.body,u)},Ys={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};de({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=ea(a[0]),m=u;return m in Ys&&(m=Ys[m]),{type:"font",mode:o.mode,font:m.slice(1),body:g}},htmlBuilder:Qn,mathmlBuilder:eo});de({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(c,a)=>{var{parser:o}=c,u=a[0],g=Se.isCharacterBox(u);return{type:"mclass",mode:o.mode,mclass:ga(u),body:[{type:"font",mode:o.mode,font:"boldsymbol",body:u}],isCharacterBox:g}}});de({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(c,a)=>{var{parser:o,funcName:u,breakOnTokenText:g}=c,{mode:m}=o,k=o.parseExpression(!0,g),w="math"+u.slice(1);return{type:"font",mode:m,font:w,body:{type:"ordgroup",mode:o.mode,body:k}}},htmlBuilder:Qn,mathmlBuilder:eo});var to=(c,a)=>{var o=a;return c==="display"?o=o.id>=be.SCRIPT.id?o.text():be.DISPLAY:c==="text"&&o.size===be.DISPLAY.size?o=be.TEXT:c==="script"?o=be.SCRIPT:c==="scriptscript"&&(o=be.SCRIPTSCRIPT),o},Mi=(c,a)=>{var o=to(c.size,a.style),u=o.fracNum(),g=o.fracDen(),m;m=a.havingStyle(u);var k=Re(c.numer,m,a);if(c.continued){var w=8.5/a.fontMetrics().ptPerEm,S=3.5/a.fontMetrics().ptPerEm;k.height=k.height<w?w:k.height,k.depth=k.depth<S?S:k.depth}m=a.havingStyle(g);var D=Re(c.denom,m,a),F,H,q;c.hasBarLine?(c.barSize?(H=Ye(c.barSize,a),F=K.makeLineSpan("frac-line",a,H)):F=K.makeLineSpan("frac-line",a),H=F.height,q=F.height):(F=null,H=0,q=a.fontMetrics().defaultRuleThickness);var X,$,Z;o.size===be.DISPLAY.size||c.size==="display"?(X=a.fontMetrics().num1,H>0?$=3*q:$=7*q,Z=a.fontMetrics().denom1):(H>0?(X=a.fontMetrics().num2,$=q):(X=a.fontMetrics().num3,$=3*q),Z=a.fontMetrics().denom2);var ae;if(F){var O=a.fontMetrics().axisHeight;X-k.depth-(O+.5*H)<$&&(X+=$-(X-k.depth-(O+.5*H))),O-.5*H-(D.height-Z)<$&&(Z+=$-(O-.5*H-(D.height-Z)));var se=-(O-.5*H);ae=K.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:Z},{type:"elem",elem:F,shift:se},{type:"elem",elem:k,shift:-X}]},a)}else{var J=X-k.depth-(D.height-Z);J<$&&(X+=.5*($-J),Z+=.5*($-J)),ae=K.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:Z},{type:"elem",elem:k,shift:-X}]},a)}m=a.havingStyle(o),ae.height*=m.sizeMultiplier/a.sizeMultiplier,ae.depth*=m.sizeMultiplier/a.sizeMultiplier;var le;o.size===be.DISPLAY.size?le=a.fontMetrics().delim1:o.size===be.SCRIPTSCRIPT.size?le=a.havingStyle(be.SCRIPT).fontMetrics().delim2:le=a.fontMetrics().delim2;var U,re;return c.leftDelim==null?U=zr(a,["mopen"]):U=_t.customSizedDelim(c.leftDelim,le,!0,a.havingStyle(o),c.mode,["mopen"]),c.continued?re=K.makeSpan([]):c.rightDelim==null?re=zr(a,["mclose"]):re=_t.customSizedDelim(c.rightDelim,le,!0,a.havingStyle(o),c.mode,["mclose"]),K.makeSpan(["mord"].concat(m.sizingClasses(a)),[U,K.makeSpan(["mfrac"],[ae]),re],a)},zi=(c,a)=>{var o=new he.MathNode("mfrac",[Be(c.numer,a),Be(c.denom,a)]);if(!c.hasBarLine)o.setAttribute("linethickness","0px");else if(c.barSize){var u=Ye(c.barSize,a);o.setAttribute("linethickness",ue(u))}var g=to(c.size,a.style);if(g.size!==a.style.size){o=new he.MathNode("mstyle",[o]);var m=g.size===be.DISPLAY.size?"true":"false";o.setAttribute("displaystyle",m),o.setAttribute("scriptlevel","0")}if(c.leftDelim!=null||c.rightDelim!=null){var k=[];if(c.leftDelim!=null){var w=new he.MathNode("mo",[new he.TextNode(c.leftDelim.replace("\\",""))]);w.setAttribute("fence","true"),k.push(w)}if(k.push(o),c.rightDelim!=null){var S=new he.MathNode("mo",[new he.TextNode(c.rightDelim.replace("\\",""))]);S.setAttribute("fence","true"),k.push(S)}return xi(k)}return o};de({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=a[0],m=a[1],k,w=null,S=null,D="auto";switch(u){case"\\dfrac":case"\\frac":case"\\tfrac":k=!0;break;case"\\\\atopfrac":k=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":k=!1,w="(",S=")";break;case"\\\\bracefrac":k=!1,w="\\{",S="\\}";break;case"\\\\brackfrac":k=!1,w="[",S="]";break;default:throw new Error("Unrecognized genfrac command")}switch(u){case"\\dfrac":case"\\dbinom":D="display";break;case"\\tfrac":case"\\tbinom":D="text";break}return{type:"genfrac",mode:o.mode,continued:!1,numer:g,denom:m,hasBarLine:k,leftDelim:w,rightDelim:S,size:D,barSize:null}},htmlBuilder:Mi,mathmlBuilder:zi});de({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=a[0],m=a[1];return{type:"genfrac",mode:o.mode,continued:!0,numer:g,denom:m,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});de({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(c){var{parser:a,funcName:o,token:u}=c,g;switch(o){case"\\over":g="\\frac";break;case"\\choose":g="\\binom";break;case"\\atop":g="\\\\atopfrac";break;case"\\brace":g="\\\\bracefrac";break;case"\\brack":g="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:a.mode,replaceWith:g,token:u}}});var qs=["display","text","script","scriptscript"],Vs=function(a){var o=null;return a.length>0&&(o=a,o=o==="."?null:o),o};de({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(c,a){var{parser:o}=c,u=a[4],g=a[5],m=ea(a[0]),k=m.type==="atom"&&m.family==="open"?Vs(m.text):null,w=ea(a[1]),S=w.type==="atom"&&w.family==="close"?Vs(w.text):null,D=Te(a[2],"size"),F,H=null;D.isBlank?F=!0:(H=D.value,F=H.number>0);var q="auto",X=a[3];if(X.type==="ordgroup"){if(X.body.length>0){var $=Te(X.body[0],"textord");q=qs[Number($.text)]}}else X=Te(X,"textord"),q=qs[Number(X.text)];return{type:"genfrac",mode:o.mode,numer:u,denom:g,continued:!1,hasBarLine:F,barSize:H,leftDelim:k,rightDelim:S,size:q}},htmlBuilder:Mi,mathmlBuilder:zi});de({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(c,a){var{parser:o,funcName:u,token:g}=c;return{type:"infix",mode:o.mode,replaceWith:"\\\\abovefrac",size:Te(a[0],"size").value,token:g}}});de({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=a[0],m=yH(Te(a[1],"infix").size),k=a[2],w=m.number>0;return{type:"genfrac",mode:o.mode,numer:g,denom:k,continued:!1,hasBarLine:w,barSize:m,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Mi,mathmlBuilder:zi});var ro=(c,a)=>{var o=a.style,u,g;c.type==="supsub"?(u=c.sup?Re(c.sup,a.havingStyle(o.sup()),a):Re(c.sub,a.havingStyle(o.sub()),a),g=Te(c.base,"horizBrace")):g=Te(c,"horizBrace");var m=Re(g.base,a.havingBaseStyle(be.DISPLAY)),k=Bt.svgSpan(g,a),w;if(g.isOver?(w=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:.1},{type:"elem",elem:k}]},a),w.children[0].children[0].children[1].classes.push("svg-align")):(w=K.makeVList({positionType:"bottom",positionData:m.depth+.1+k.height,children:[{type:"elem",elem:k},{type:"kern",size:.1},{type:"elem",elem:m}]},a),w.children[0].children[0].children[0].classes.push("svg-align")),u){var S=K.makeSpan(["mord",g.isOver?"mover":"munder"],[w],a);g.isOver?w=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S},{type:"kern",size:.2},{type:"elem",elem:u}]},a):w=K.makeVList({positionType:"bottom",positionData:S.depth+.2+u.height+u.depth,children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:S}]},a)}return K.makeSpan(["mord",g.isOver?"mover":"munder"],[w],a)},HX=(c,a)=>{var o=Bt.mathMLnode(c.label);return new he.MathNode(c.isOver?"mover":"munder",[Be(c.base,a),o])};de({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(c,a){var{parser:o,funcName:u}=c;return{type:"horizBrace",mode:o.mode,label:u,isOver:/^\\over/.test(u),base:a[0]}},htmlBuilder:ro,mathmlBuilder:HX});de({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(c,a)=>{var{parser:o}=c,u=a[1],g=Te(a[0],"url").url;return o.settings.isTrusted({command:"\\href",url:g})?{type:"href",mode:o.mode,href:g,body:We(u)}:o.formatUnsupportedCmd("\\href")},htmlBuilder:(c,a)=>{var o=Qe(c.body,a,!1);return K.makeAnchor(c.href,[],o,a)},mathmlBuilder:(c,a)=>{var o=Gt(c.body,a);return o instanceof wt||(o=new wt("mrow",[o])),o.setAttribute("href",c.href),o}});de({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(c,a)=>{var{parser:o}=c,u=Te(a[0],"url").url;if(!o.settings.isTrusted({command:"\\url",url:u}))return o.formatUnsupportedCmd("\\url");for(var g=[],m=0;m<u.length;m++){var k=u[m];k==="~"&&(k="\\textasciitilde"),g.push({type:"textord",mode:"text",text:k})}var w={type:"text",mode:o.mode,font:"\\texttt",body:g};return{type:"href",mode:o.mode,href:u,body:We(w)}}});de({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(c,a){var{parser:o}=c;return{type:"hbox",mode:o.mode,body:We(a[0])}},htmlBuilder(c,a){var o=Qe(c.body,a,!1);return K.makeFragment(o)},mathmlBuilder(c,a){return new he.MathNode("mrow",dt(c.body,a))}});de({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(c,a)=>{var{parser:o,funcName:u,token:g}=c,m=Te(a[0],"raw").string,k=a[1];o.settings.strict&&o.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var w,S={};switch(u){case"\\htmlClass":S.class=m,w={command:"\\htmlClass",class:m};break;case"\\htmlId":S.id=m,w={command:"\\htmlId",id:m};break;case"\\htmlStyle":S.style=m,w={command:"\\htmlStyle",style:m};break;case"\\htmlData":{for(var D=m.split(","),F=0;F<D.length;F++){var H=D[F].split("=");if(H.length!==2)throw new ye("Error parsing key-value for \\htmlData");S["data-"+H[0].trim()]=H[1].trim()}w={command:"\\htmlData",attributes:S};break}default:throw new Error("Unrecognized html command")}return o.settings.isTrusted(w)?{type:"html",mode:o.mode,attributes:S,body:We(k)}:o.formatUnsupportedCmd(u)},htmlBuilder:(c,a)=>{var o=Qe(c.body,a,!1),u=["enclosing"];c.attributes.class&&u.push(...c.attributes.class.trim().split(/\s+/));var g=K.makeSpan(u,o,a);for(var m in c.attributes)m!=="class"&&c.attributes.hasOwnProperty(m)&&g.setAttribute(m,c.attributes[m]);return g},mathmlBuilder:(c,a)=>Gt(c.body,a)});de({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(c,a)=>{var{parser:o}=c;return{type:"htmlmathml",mode:o.mode,html:We(a[0]),mathml:We(a[1])}},htmlBuilder:(c,a)=>{var o=Qe(c.html,a,!1);return K.makeFragment(o)},mathmlBuilder:(c,a)=>Gt(c.mathml,a)});var Wa=function(a){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(a))return{number:+a,unit:"bp"};var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(a);if(!o)throw new ye("Invalid size: '"+a+"' in \\includegraphics");var u={number:+(o[1]+o[2]),unit:o[3]};if(!XH(u))throw new ye("Invalid unit: '"+u.unit+"' in \\includegraphics.");return u};de({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(c,a,o)=>{var{parser:u}=c,g={number:0,unit:"em"},m={number:.9,unit:"em"},k={number:0,unit:"em"},w="";if(o[0])for(var S=Te(o[0],"raw").string,D=S.split(","),F=0;F<D.length;F++){var H=D[F].split("=");if(H.length===2){var q=H[1].trim();switch(H[0].trim()){case"alt":w=q;break;case"width":g=Wa(q);break;case"height":m=Wa(q);break;case"totalheight":k=Wa(q);break;default:throw new ye("Invalid key: '"+H[0]+"' in \\includegraphics.")}}}var X=Te(a[0],"url").url;return w===""&&(w=X,w=w.replace(/^.*[\\/]/,""),w=w.substring(0,w.lastIndexOf("."))),u.settings.isTrusted({command:"\\includegraphics",url:X})?{type:"includegraphics",mode:u.mode,alt:w,width:g,height:m,totalheight:k,src:X}:u.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(c,a)=>{var o=Ye(c.height,a),u=0;c.totalheight.number>0&&(u=Ye(c.totalheight,a)-o);var g=0;c.width.number>0&&(g=Ye(c.width,a));var m={height:ue(o+u)};g>0&&(m.width=ue(g)),u>0&&(m.verticalAlign=ue(-u));var k=new YH(c.src,c.alt,m);return k.height=o,k.depth=u,k},mathmlBuilder:(c,a)=>{var o=new he.MathNode("mglyph",[]);o.setAttribute("alt",c.alt);var u=Ye(c.height,a),g=0;if(c.totalheight.number>0&&(g=Ye(c.totalheight,a)-u,o.setAttribute("valign",ue(-g))),o.setAttribute("height",ue(u+g)),c.width.number>0){var m=Ye(c.width,a);o.setAttribute("width",ue(m))}return o.setAttribute("src",c.src),o}});de({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(c,a){var{parser:o,funcName:u}=c,g=Te(a[0],"size");if(o.settings.strict){var m=u[1]==="m",k=g.value.unit==="mu";m?(k||o.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" supports only mu units, "+("not "+g.value.unit+" units")),o.mode!=="math"&&o.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" works only in math mode")):k&&o.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" doesn't support mu units")}return{type:"kern",mode:o.mode,dimension:g.value}},htmlBuilder(c,a){return K.makeGlue(c.dimension,a)},mathmlBuilder(c,a){var o=Ye(c.dimension,a);return new he.SpaceNode(o)}});de({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=a[0];return{type:"lap",mode:o.mode,alignment:u.slice(5),body:g}},htmlBuilder:(c,a)=>{var o;c.alignment==="clap"?(o=K.makeSpan([],[Re(c.body,a)]),o=K.makeSpan(["inner"],[o],a)):o=K.makeSpan(["inner"],[Re(c.body,a)]);var u=K.makeSpan(["fix"],[]),g=K.makeSpan([c.alignment],[o,u],a),m=K.makeSpan(["strut"]);return m.style.height=ue(g.height+g.depth),g.depth&&(m.style.verticalAlign=ue(-g.depth)),g.children.unshift(m),g=K.makeSpan(["thinbox"],[g],a),K.makeSpan(["mord","vbox"],[g],a)},mathmlBuilder:(c,a)=>{var o=new he.MathNode("mpadded",[Be(c.body,a)]);if(c.alignment!=="rlap"){var u=c.alignment==="llap"?"-1":"-0.5";o.setAttribute("lspace",u+"width")}return o.setAttribute("width","0px"),o}});de({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(c,a){var{funcName:o,parser:u}=c,g=u.mode;u.switchMode("math");var m=o==="\\("?"\\)":"$",k=u.parseExpression(!1,m);return u.expect(m),u.switchMode(g),{type:"styling",mode:u.mode,style:"text",body:k}}});de({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(c,a){throw new ye("Mismatched "+c.funcName)}});var Ws=(c,a)=>{switch(a.style.size){case be.DISPLAY.size:return c.display;case be.TEXT.size:return c.text;case be.SCRIPT.size:return c.script;case be.SCRIPTSCRIPT.size:return c.scriptscript;default:return c.text}};de({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(c,a)=>{var{parser:o}=c;return{type:"mathchoice",mode:o.mode,display:We(a[0]),text:We(a[1]),script:We(a[2]),scriptscript:We(a[3])}},htmlBuilder:(c,a)=>{var o=Ws(c,a),u=Qe(o,a,!1);return K.makeFragment(u)},mathmlBuilder:(c,a)=>{var o=Ws(c,a);return Gt(o,a)}});var ao=(c,a,o,u,g,m,k)=>{c=K.makeSpan([],[c]);var w=o&&Se.isCharacterBox(o),S,D;if(a){var F=Re(a,u.havingStyle(g.sup()),u);D={elem:F,kern:Math.max(u.fontMetrics().bigOpSpacing1,u.fontMetrics().bigOpSpacing3-F.depth)}}if(o){var H=Re(o,u.havingStyle(g.sub()),u);S={elem:H,kern:Math.max(u.fontMetrics().bigOpSpacing2,u.fontMetrics().bigOpSpacing4-H.height)}}var q;if(D&&S){var X=u.fontMetrics().bigOpSpacing5+S.elem.height+S.elem.depth+S.kern+c.depth+k;q=K.makeVList({positionType:"bottom",positionData:X,children:[{type:"kern",size:u.fontMetrics().bigOpSpacing5},{type:"elem",elem:S.elem,marginLeft:ue(-m)},{type:"kern",size:S.kern},{type:"elem",elem:c},{type:"kern",size:D.kern},{type:"elem",elem:D.elem,marginLeft:ue(m)},{type:"kern",size:u.fontMetrics().bigOpSpacing5}]},u)}else if(S){var $=c.height-k;q=K.makeVList({positionType:"top",positionData:$,children:[{type:"kern",size:u.fontMetrics().bigOpSpacing5},{type:"elem",elem:S.elem,marginLeft:ue(-m)},{type:"kern",size:S.kern},{type:"elem",elem:c}]},u)}else if(D){var Z=c.depth+k;q=K.makeVList({positionType:"bottom",positionData:Z,children:[{type:"elem",elem:c},{type:"kern",size:D.kern},{type:"elem",elem:D.elem,marginLeft:ue(m)},{type:"kern",size:u.fontMetrics().bigOpSpacing5}]},u)}else return c;var ae=[q];if(S&&m!==0&&!w){var J=K.makeSpan(["mspace"],[],u);J.style.marginRight=ue(m),ae.unshift(J)}return K.makeSpan(["mop","op-limits"],ae,u)},io=["\\smallint"],xr=(c,a)=>{var o,u,g=!1,m;c.type==="supsub"?(o=c.sup,u=c.sub,m=Te(c.base,"op"),g=!0):m=Te(c,"op");var k=a.style,w=!1;k.size===be.DISPLAY.size&&m.symbol&&!Se.contains(io,m.name)&&(w=!0);var S;if(m.symbol){var D=w?"Size2-Regular":"Size1-Regular",F="";if((m.name==="\\oiint"||m.name==="\\oiiint")&&(F=m.name.slice(1),m.name=F==="oiint"?"\\iint":"\\iiint"),S=K.makeSymbol(m.name,D,"math",a,["mop","op-symbol",w?"large-op":"small-op"]),F.length>0){var H=S.italic,q=K.staticSvg(F+"Size"+(w?"2":"1"),a);S=K.makeVList({positionType:"individualShift",children:[{type:"elem",elem:S,shift:0},{type:"elem",elem:q,shift:w?.08:0}]},a),m.name="\\"+F,S.classes.unshift("mop"),S.italic=H}}else if(m.body){var X=Qe(m.body,a,!0);X.length===1&&X[0]instanceof zt?(S=X[0],S.classes[0]="mop"):S=K.makeSpan(["mop"],X,a)}else{for(var $=[],Z=1;Z<m.name.length;Z++)$.push(K.mathsym(m.name[Z],m.mode,a));S=K.makeSpan(["mop"],$,a)}var ae=0,J=0;return(S instanceof zt||m.name==="\\oiint"||m.name==="\\oiiint")&&!m.suppressBaseShift&&(ae=(S.height-S.depth)/2-a.fontMetrics().axisHeight,J=S.italic),g?ao(S,o,u,a,k,J,ae):(ae&&(S.style.position="relative",S.style.top=ue(ae)),S)},Dr=(c,a)=>{var o;if(c.symbol)o=new wt("mo",[bt(c.name,c.mode)]),Se.contains(io,c.name)&&o.setAttribute("largeop","false");else if(c.body)o=new wt("mo",dt(c.body,a));else{o=new wt("mi",[new Ar(c.name.slice(1))]);var u=new wt("mo",[bt("","text")]);c.parentIsSupSub?o=new wt("mrow",[o,u]):o=Fn([o,u])}return o},XX={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};de({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=u;return g.length===1&&(g=XX[g]),{type:"op",mode:o.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:g}},htmlBuilder:xr,mathmlBuilder:Dr});de({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(c,a)=>{var{parser:o}=c,u=a[0];return{type:"op",mode:o.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:We(u)}},htmlBuilder:xr,mathmlBuilder:Dr});var YX={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};de({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(c){var{parser:a,funcName:o}=c;return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:o}},htmlBuilder:xr,mathmlBuilder:Dr});de({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(c){var{parser:a,funcName:o}=c;return{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:o}},htmlBuilder:xr,mathmlBuilder:Dr});de({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(c){var{parser:a,funcName:o}=c,u=o;return u.length===1&&(u=YX[u]),{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:u}},htmlBuilder:xr,mathmlBuilder:Dr});var so=(c,a)=>{var o,u,g=!1,m;c.type==="supsub"?(o=c.sup,u=c.sub,m=Te(c.base,"operatorname"),g=!0):m=Te(c,"operatorname");var k;if(m.body.length>0){for(var w=m.body.map(H=>{var q=H.text;return typeof q=="string"?{type:"textord",mode:H.mode,text:q}:H}),S=Qe(w,a.withFont("mathrm"),!0),D=0;D<S.length;D++){var F=S[D];F instanceof zt&&(F.text=F.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}k=K.makeSpan(["mop"],S,a)}else k=K.makeSpan(["mop"],[],a);return g?ao(k,o,u,a,a.style,0,0):k},qX=(c,a)=>{for(var o=dt(c.body,a.withFont("mathrm")),u=!0,g=0;g<o.length;g++){var m=o[g];if(!(m instanceof he.SpaceNode))if(m instanceof he.MathNode)switch(m.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var k=m.children[0];m.children.length===1&&k instanceof he.TextNode?k.text=k.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):u=!1;break}default:u=!1}else u=!1}if(u){var w=o.map(F=>F.toText()).join("");o=[new he.TextNode(w)]}var S=new he.MathNode("mi",o);S.setAttribute("mathvariant","normal");var D=new he.MathNode("mo",[bt("","text")]);return c.parentIsSupSub?new he.MathNode("mrow",[S,D]):he.newDocumentFragment([S,D])};de({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(c,a)=>{var{parser:o,funcName:u}=c,g=a[0];return{type:"operatorname",mode:o.mode,body:We(g),alwaysHandleSupSub:u==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:so,mathmlBuilder:qX});ir({type:"ordgroup",htmlBuilder(c,a){return c.semisimple?K.makeFragment(Qe(c.body,a,!1)):K.makeSpan(["mord"],Qe(c.body,a,!0),a)},mathmlBuilder(c,a){return Gt(c.body,a,!0)}});de({type:"overline",names:["\\overline"],props:{numArgs:1},handler(c,a){var{parser:o}=c,u=a[0];return{type:"overline",mode:o.mode,body:u}},htmlBuilder(c,a){var o=Re(c.body,a.havingCrampedStyle()),u=K.makeLineSpan("overline-line",a),g=a.fontMetrics().defaultRuleThickness,m=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:3*g},{type:"elem",elem:u},{type:"kern",size:g}]},a);return K.makeSpan(["mord","overline"],[m],a)},mathmlBuilder(c,a){var o=new he.MathNode("mo",[new he.TextNode("‾")]);o.setAttribute("stretchy","true");var u=new he.MathNode("mover",[Be(c.body,a),o]);return u.setAttribute("accent","true"),u}});de({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(c,a)=>{var{parser:o}=c,u=a[0];return{type:"phantom",mode:o.mode,body:We(u)}},htmlBuilder:(c,a)=>{var o=Qe(c.body,a.withPhantom(),!1);return K.makeFragment(o)},mathmlBuilder:(c,a)=>{var o=dt(c.body,a);return new he.MathNode("mphantom",o)}});de({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(c,a)=>{var{parser:o}=c,u=a[0];return{type:"hphantom",mode:o.mode,body:u}},htmlBuilder:(c,a)=>{var o=K.makeSpan([],[Re(c.body,a.withPhantom())]);if(o.height=0,o.depth=0,o.children)for(var u=0;u<o.children.length;u++)o.children[u].height=0,o.children[u].depth=0;return o=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},a),K.makeSpan(["mord"],[o],a)},mathmlBuilder:(c,a)=>{var o=dt(We(c.body),a),u=new he.MathNode("mphantom",o),g=new he.MathNode("mpadded",[u]);return g.setAttribute("height","0px"),g.setAttribute("depth","0px"),g}});de({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(c,a)=>{var{parser:o}=c,u=a[0];return{type:"vphantom",mode:o.mode,body:u}},htmlBuilder:(c,a)=>{var o=K.makeSpan(["inner"],[Re(c.body,a.withPhantom())]),u=K.makeSpan(["fix"],[]);return K.makeSpan(["mord","rlap"],[o,u],a)},mathmlBuilder:(c,a)=>{var o=dt(We(c.body),a),u=new he.MathNode("mphantom",o),g=new he.MathNode("mpadded",[u]);return g.setAttribute("width","0px"),g}});de({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(c,a){var{parser:o}=c,u=Te(a[0],"size").value,g=a[1];return{type:"raisebox",mode:o.mode,dy:u,body:g}},htmlBuilder(c,a){var o=Re(c.body,a),u=Ye(c.dy,a);return K.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:o}]},a)},mathmlBuilder(c,a){var o=new he.MathNode("mpadded",[Be(c.body,a)]),u=c.dy.number+c.dy.unit;return o.setAttribute("voffset",u),o}});de({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(c){var{parser:a}=c;return{type:"internal",mode:a.mode}}});de({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(c,a,o){var{parser:u}=c,g=o[0],m=Te(a[0],"size"),k=Te(a[1],"size");return{type:"rule",mode:u.mode,shift:g&&Te(g,"size").value,width:m.value,height:k.value}},htmlBuilder(c,a){var o=K.makeSpan(["mord","rule"],[],a),u=Ye(c.width,a),g=Ye(c.height,a),m=c.shift?Ye(c.shift,a):0;return o.style.borderRightWidth=ue(u),o.style.borderTopWidth=ue(g),o.style.bottom=ue(m),o.width=u,o.height=g+m,o.depth=-m,o.maxFontSize=g*1.125*a.sizeMultiplier,o},mathmlBuilder(c,a){var o=Ye(c.width,a),u=Ye(c.height,a),g=c.shift?Ye(c.shift,a):0,m=a.color&&a.getColor()||"black",k=new he.MathNode("mspace");k.setAttribute("mathbackground",m),k.setAttribute("width",ue(o)),k.setAttribute("height",ue(u));var w=new he.MathNode("mpadded",[k]);return g>=0?w.setAttribute("height",ue(g)):(w.setAttribute("height",ue(g)),w.setAttribute("depth",ue(-g))),w.setAttribute("voffset",ue(g)),w}});function no(c,a,o){for(var u=Qe(c,a,!1),g=a.sizeMultiplier/o.sizeMultiplier,m=0;m<u.length;m++){var k=u[m].classes.indexOf("sizing");k<0?Array.prototype.push.apply(u[m].classes,a.sizingClasses(o)):u[m].classes[k+1]==="reset-size"+a.size&&(u[m].classes[k+1]="reset-size"+o.size),u[m].height*=g,u[m].depth*=g}return K.makeFragment(u)}var Gs=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],VX=(c,a)=>{var o=a.havingSize(c.size);return no(c.body,o,a)};de({type:"sizing",names:Gs,props:{numArgs:0,allowedInText:!0},handler:(c,a)=>{var{breakOnTokenText:o,funcName:u,parser:g}=c,m=g.parseExpression(!1,o);return{type:"sizing",mode:g.mode,size:Gs.indexOf(u)+1,body:m}},htmlBuilder:VX,mathmlBuilder:(c,a)=>{var o=a.havingSize(c.size),u=dt(c.body,o),g=new he.MathNode("mstyle",u);return g.setAttribute("mathsize",ue(o.sizeMultiplier)),g}});de({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(c,a,o)=>{var{parser:u}=c,g=!1,m=!1,k=o[0]&&Te(o[0],"ordgroup");if(k)for(var w="",S=0;S<k.body.length;++S){var D=k.body[S];if(w=D.text,w==="t")g=!0;else if(w==="b")m=!0;else{g=!1,m=!1;break}}else g=!0,m=!0;var F=a[0];return{type:"smash",mode:u.mode,body:F,smashHeight:g,smashDepth:m}},htmlBuilder:(c,a)=>{var o=K.makeSpan([],[Re(c.body,a)]);if(!c.smashHeight&&!c.smashDepth)return o;if(c.smashHeight&&(o.height=0,o.children))for(var u=0;u<o.children.length;u++)o.children[u].height=0;if(c.smashDepth&&(o.depth=0,o.children))for(var g=0;g<o.children.length;g++)o.children[g].depth=0;var m=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},a);return K.makeSpan(["mord"],[m],a)},mathmlBuilder:(c,a)=>{var o=new he.MathNode("mpadded",[Be(c.body,a)]);return c.smashHeight&&o.setAttribute("height","0px"),c.smashDepth&&o.setAttribute("depth","0px"),o}});de({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(c,a,o){var{parser:u}=c,g=o[0],m=a[0];return{type:"sqrt",mode:u.mode,body:m,index:g}},htmlBuilder(c,a){var o=Re(c.body,a.havingCrampedStyle());o.height===0&&(o.height=a.fontMetrics().xHeight),o=K.wrapFragment(o,a);var u=a.fontMetrics(),g=u.defaultRuleThickness,m=g;a.style.id<be.TEXT.id&&(m=a.fontMetrics().xHeight);var k=g+m/4,w=o.height+o.depth+k+g,{span:S,ruleWidth:D,advanceWidth:F}=_t.sqrtImage(w,a),H=S.height-D;H>o.height+o.depth+k&&(k=(k+H-o.height-o.depth)/2);var q=S.height-o.height-k-D;o.style.paddingLeft=ue(F);var X=K.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:-(o.height+q)},{type:"elem",elem:S},{type:"kern",size:D}]},a);if(c.index){var $=a.havingStyle(be.SCRIPTSCRIPT),Z=Re(c.index,$,a),ae=.6*(X.height-X.depth),J=K.makeVList({positionType:"shift",positionData:-ae,children:[{type:"elem",elem:Z}]},a),O=K.makeSpan(["root"],[J]);return K.makeSpan(["mord","sqrt"],[O,X],a)}else return K.makeSpan(["mord","sqrt"],[X],a)},mathmlBuilder(c,a){var{body:o,index:u}=c;return u?new he.MathNode("mroot",[Be(o,a),Be(u,a)]):new he.MathNode("msqrt",[Be(o,a)])}});var js={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};de({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(c,a){var{breakOnTokenText:o,funcName:u,parser:g}=c,m=g.parseExpression(!0,o),k=u.slice(1,u.length-5);return{type:"styling",mode:g.mode,style:k,body:m}},htmlBuilder(c,a){var o=js[c.style],u=a.havingStyle(o).withFont("");return no(c.body,u,a)},mathmlBuilder(c,a){var o=js[c.style],u=a.havingStyle(o),g=dt(c.body,u),m=new he.MathNode("mstyle",g),k={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},w=k[c.style];return m.setAttribute("scriptlevel",w[0]),m.setAttribute("displaystyle",w[1]),m}});var WX=function(a,o){var u=a.base;if(u)if(u.type==="op"){var g=u.limits&&(o.style.size===be.DISPLAY.size||u.alwaysHandleSupSub);return g?xr:null}else if(u.type==="operatorname"){var m=u.alwaysHandleSupSub&&(o.style.size===be.DISPLAY.size||u.limits);return m?so:null}else{if(u.type==="accent")return Se.isCharacterBox(u.base)?yi:null;if(u.type==="horizBrace"){var k=!a.sub;return k===u.isOver?ro:null}else return null}else return null};ir({type:"supsub",htmlBuilder(c,a){var o=WX(c,a);if(o)return o(c,a);var{base:u,sup:g,sub:m}=c,k=Re(u,a),w,S,D=a.fontMetrics(),F=0,H=0,q=u&&Se.isCharacterBox(u);if(g){var X=a.havingStyle(a.style.sup());w=Re(g,X,a),q||(F=k.height-X.fontMetrics().supDrop*X.sizeMultiplier/a.sizeMultiplier)}if(m){var $=a.havingStyle(a.style.sub());S=Re(m,$,a),q||(H=k.depth+$.fontMetrics().subDrop*$.sizeMultiplier/a.sizeMultiplier)}var Z;a.style===be.DISPLAY?Z=D.sup1:a.style.cramped?Z=D.sup3:Z=D.sup2;var ae=a.sizeMultiplier,J=ue(.5/D.ptPerEm/ae),O=null;if(S){var se=c.base&&c.base.type==="op"&&c.base.name&&(c.base.name==="\\oiint"||c.base.name==="\\oiiint");(k instanceof zt||se)&&(O=ue(-k.italic))}var le;if(w&&S){F=Math.max(F,Z,w.depth+.25*D.xHeight),H=Math.max(H,D.sub2);var U=D.defaultRuleThickness,re=4*U;if(F-w.depth-(S.height-H)<re){H=re-(F-w.depth)+S.height;var fe=.8*D.xHeight-(F-w.depth);fe>0&&(F+=fe,H-=fe)}var ve=[{type:"elem",elem:S,shift:H,marginRight:J,marginLeft:O},{type:"elem",elem:w,shift:-F,marginRight:J}];le=K.makeVList({positionType:"individualShift",children:ve},a)}else if(S){H=Math.max(H,D.sub1,S.height-.8*D.xHeight);var Ee=[{type:"elem",elem:S,marginLeft:O,marginRight:J}];le=K.makeVList({positionType:"shift",positionData:H,children:Ee},a)}else if(w)F=Math.max(F,Z,w.depth+.25*D.xHeight),le=K.makeVList({positionType:"shift",positionData:-F,children:[{type:"elem",elem:w,marginRight:J}]},a);else throw new Error("supsub must have either sup or sub.");var we=Qa(k,"right")||"mord";return K.makeSpan([we],[k,K.makeSpan(["msupsub"],[le])],a)},mathmlBuilder(c,a){var o=!1,u,g;c.base&&c.base.type==="horizBrace"&&(g=!!c.sup,g===c.base.isOver&&(o=!0,u=c.base.isOver)),c.base&&(c.base.type==="op"||c.base.type==="operatorname")&&(c.base.parentIsSupSub=!0);var m=[Be(c.base,a)];c.sub&&m.push(Be(c.sub,a)),c.sup&&m.push(Be(c.sup,a));var k;if(o)k=u?"mover":"munder";else if(c.sub)if(c.sup){var D=c.base;D&&D.type==="op"&&D.limits&&a.style===be.DISPLAY||D&&D.type==="operatorname"&&D.alwaysHandleSupSub&&(a.style===be.DISPLAY||D.limits)?k="munderover":k="msubsup"}else{var S=c.base;S&&S.type==="op"&&S.limits&&(a.style===be.DISPLAY||S.alwaysHandleSupSub)||S&&S.type==="operatorname"&&S.alwaysHandleSupSub&&(S.limits||a.style===be.DISPLAY)?k="munder":k="msub"}else{var w=c.base;w&&w.type==="op"&&w.limits&&(a.style===be.DISPLAY||w.alwaysHandleSupSub)||w&&w.type==="operatorname"&&w.alwaysHandleSupSub&&(w.limits||a.style===be.DISPLAY)?k="mover":k="msup"}return new he.MathNode(k,m)}});ir({type:"atom",htmlBuilder(c,a){return K.mathsym(c.text,c.mode,a,["m"+c.family])},mathmlBuilder(c,a){var o=new he.MathNode("mo",[bt(c.text,c.mode)]);if(c.family==="bin"){var u=bi(c,a);u==="bold-italic"&&o.setAttribute("mathvariant",u)}else c.family==="punct"?o.setAttribute("separator","true"):(c.family==="open"||c.family==="close")&&o.setAttribute("stretchy","false");return o}});var oo={mi:"italic",mn:"normal",mtext:"normal"};ir({type:"mathord",htmlBuilder(c,a){return K.makeOrd(c,a,"mathord")},mathmlBuilder(c,a){var o=new he.MathNode("mi",[bt(c.text,c.mode,a)]),u=bi(c,a)||"italic";return u!==oo[o.type]&&o.setAttribute("mathvariant",u),o}});ir({type:"textord",htmlBuilder(c,a){return K.makeOrd(c,a,"textord")},mathmlBuilder(c,a){var o=bt(c.text,c.mode,a),u=bi(c,a)||"normal",g;return c.mode==="text"?g=new he.MathNode("mtext",[o]):/[0-9]/.test(c.text)?g=new he.MathNode("mn",[o]):c.text==="\\prime"?g=new he.MathNode("mo",[o]):g=new he.MathNode("mi",[o]),u!==oo[g.type]&&g.setAttribute("mathvariant",u),g}});var Ga={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ja={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ir({type:"spacing",htmlBuilder(c,a){if(ja.hasOwnProperty(c.text)){var o=ja[c.text].className||"";if(c.mode==="text"){var u=K.makeOrd(c,a,"textord");return u.classes.push(o),u}else return K.makeSpan(["mspace",o],[K.mathsym(c.text,c.mode,a)],a)}else{if(Ga.hasOwnProperty(c.text))return K.makeSpan(["mspace",Ga[c.text]],[],a);throw new ye('Unknown type of space "'+c.text+'"')}},mathmlBuilder(c,a){var o;if(ja.hasOwnProperty(c.text))o=new he.MathNode("mtext",[new he.TextNode(" ")]);else{if(Ga.hasOwnProperty(c.text))return new he.MathNode("mspace");throw new ye('Unknown type of space "'+c.text+'"')}return o}});var Us=()=>{var c=new he.MathNode("mtd",[]);return c.setAttribute("width","50%"),c};ir({type:"tag",mathmlBuilder(c,a){var o=new he.MathNode("mtable",[new he.MathNode("mtr",[Us(),new he.MathNode("mtd",[Gt(c.body,a)]),Us(),new he.MathNode("mtd",[Gt(c.tag,a)])])]);return o.setAttribute("width","100%"),o}});var $s={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Zs={"\\textbf":"textbf","\\textmd":"textmd"},GX={"\\textit":"textit","\\textup":"textup"},Js=(c,a)=>{var o=c.font;return o?$s[o]?a.withTextFontFamily($s[o]):Zs[o]?a.withTextFontWeight(Zs[o]):a.withTextFontShape(GX[o]):a};de({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(c,a){var{parser:o,funcName:u}=c,g=a[0];return{type:"text",mode:o.mode,body:We(g),font:u}},htmlBuilder(c,a){var o=Js(c,a),u=Qe(c.body,o,!0);return K.makeSpan(["mord","text"],u,o)},mathmlBuilder(c,a){var o=Js(c,a);return Gt(c.body,o)}});de({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(c,a){var{parser:o}=c;return{type:"underline",mode:o.mode,body:a[0]}},htmlBuilder(c,a){var o=Re(c.body,a),u=K.makeLineSpan("underline-line",a),g=a.fontMetrics().defaultRuleThickness,m=K.makeVList({positionType:"top",positionData:o.height,children:[{type:"kern",size:g},{type:"elem",elem:u},{type:"kern",size:3*g},{type:"elem",elem:o}]},a);return K.makeSpan(["mord","underline"],[m],a)},mathmlBuilder(c,a){var o=new he.MathNode("mo",[new he.TextNode("‾")]);o.setAttribute("stretchy","true");var u=new he.MathNode("munder",[Be(c.body,a),o]);return u.setAttribute("accentunder","true"),u}});de({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(c,a){var{parser:o}=c;return{type:"vcenter",mode:o.mode,body:a[0]}},htmlBuilder(c,a){var o=Re(c.body,a),u=a.fontMetrics().axisHeight,g=.5*(o.height-u-(o.depth+u));return K.makeVList({positionType:"shift",positionData:g,children:[{type:"elem",elem:o}]},a)},mathmlBuilder(c,a){return new he.MathNode("mpadded",[Be(c.body,a)],["vcenter"])}});de({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(c,a,o){throw new ye("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(c,a){for(var o=Ks(c),u=[],g=a.havingStyle(a.style.text()),m=0;m<o.length;m++){var k=o[m];k==="~"&&(k="\\textasciitilde"),u.push(K.makeSymbol(k,"Typewriter-Regular",c.mode,g,["mord","texttt"]))}return K.makeSpan(["mord","text"].concat(g.sizingClasses(a)),K.tryCombineChars(u),g)},mathmlBuilder(c,a){var o=new he.TextNode(Ks(c)),u=new he.MathNode("mtext",[o]);return u.setAttribute("mathvariant","monospace"),u}});var Ks=c=>c.body.replace(/ /g,c.star?"␣":" ");ue(Rt["Main-Regular"]["T".charCodeAt(0)][1]-.7*Rt["Main-Regular"]["A".charCodeAt(0)][1]);typeof document<"u"&&document.compatMode!=="CSS1Compat"&&typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.");const jX={install:c=>{c.component("EpBadge",Qs),c.component("EpBtn",en),c.component("EpCard",tn),c.component("EpChip",rn)}};exports.EpBadge=Qs;exports.EpBtn=en;exports.EpCard=tn;exports.EpChip=rn;exports.default=jX;
|