ep-lib-ts 0.1.3 → 0.1.4
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/charts/EpBarChart.vue.d.ts +82 -0
- package/dist/ep-lib-ts.js +13574 -4573
- package/dist/ep-lib-ts.umd.cjs +729 -30
- package/dist/index.d.ts +2 -1
- package/dist/main.d.ts +0 -34
- package/package.json +1 -1
package/dist/ep-lib-ts.umd.cjs
CHANGED
|
@@ -1,46 +1,745 @@
|
|
|
1
|
-
(function(E,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(E=typeof globalThis<"u"?globalThis:E||self,t(E.epLibTs={},E.Vue))})(this,function(E,t){"use strict";function Z(n){return/<\/?[a-z][\s\S]*>/i.test(n)}function qr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Ar(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var r=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(n).forEach(function(o){var s=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return n[o]}})}),r}var D={},st={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
2
|
-
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},Ne=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,X={},ct={};function Dr(n){var e,r,o=ct[n];if(o)return o;for(o=ct[n]=[],e=0;e<128;e++)r=String.fromCharCode(e),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<n.length;e++)o[n.charCodeAt(e)]=n[e];return o}function he(n,e,r){var o,s,c,l,i,a="";for(typeof e!="string"&&(r=e,e=he.defaultChars),typeof r>"u"&&(r=!0),i=Dr(e),o=0,s=n.length;o<s;o++){if(c=n.charCodeAt(o),r&&c===37&&o+2<s&&/^[0-9a-f]{2}$/i.test(n.slice(o+1,o+3))){a+=n.slice(o,o+3),o+=2;continue}if(c<128){a+=i[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&o+1<s&&(l=n.charCodeAt(o+1),l>=56320&&l<=57343)){a+=encodeURIComponent(n[o]+n[o+1]),o++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(n[o])}return a}he.defaultChars=";/?:@&=+$,-_.!~*'()#",he.componentChars="-_.!~*'()";var Vr=he,it={};function Lr(n){var e,r,o=it[n];if(o)return o;for(o=it[n]=[],e=0;e<128;e++)r=String.fromCharCode(e),o.push(r);for(e=0;e<n.length;e++)r=n.charCodeAt(e),o[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return o}function me(n,e){var r;return typeof e!="string"&&(e=me.defaultChars),r=Lr(e),n.replace(/(%[a-f0-9]{2})+/gi,function(o){var s,c,l,i,a,u,d,h="";for(s=0,c=o.length;s<c;s+=3){if(l=parseInt(o.slice(s+1,s+3),16),l<128){h+=r[l];continue}if((l&224)===192&&s+3<c&&(i=parseInt(o.slice(s+4,s+6),16),(i&192)===128)){d=l<<6&1984|i&63,d<128?h+="��":h+=String.fromCharCode(d),s+=3;continue}if((l&240)===224&&s+6<c&&(i=parseInt(o.slice(s+4,s+6),16),a=parseInt(o.slice(s+7,s+9),16),(i&192)===128&&(a&192)===128)){d=l<<12&61440|i<<6&4032|a&63,d<2048||d>=55296&&d<=57343?h+="���":h+=String.fromCharCode(d),s+=6;continue}if((l&248)===240&&s+9<c&&(i=parseInt(o.slice(s+4,s+6),16),a=parseInt(o.slice(s+7,s+9),16),u=parseInt(o.slice(s+10,s+12),16),(i&192)===128&&(a&192)===128&&(u&192)===128)){d=l<<18&1835008|i<<12&258048|a<<6&4032|u&63,d<65536||d>1114111?h+="����":(d-=65536,h+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}h+="�"}return h})}me.defaultChars=";/?:@&=+$,#",me.componentChars="";var Sr=me,Nr=function(e){var r="";return r+=e.protocol||"",r+=e.slashes?"//":"",r+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?r+="["+e.hostname+"]":r+=e.hostname||"",r+=e.port?":"+e.port:"",r+=e.pathname||"",r+=e.search||"",r+=e.hash||"",r};function ge(){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 Br=/^([a-z0-9.+-]+:)/i,Tr=/:[0-9]*$/,vr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$r=["<",">",'"',"`"," ","\r",`
|
|
3
|
-
`," "],
|
|
4
|
-
`},
|
|
5
|
-
`:
|
|
6
|
-
`):"<pre><code"+
|
|
7
|
-
`},
|
|
1
|
+
(function(ae,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(ae=typeof globalThis<"u"?globalThis:ae||self,d(ae.epLibTs={},ae.Vue))})(this,function(ae,d){"use strict";function Ye(b){return/<\/?[a-z][\s\S]*>/i.test(b)}function ws(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}function ta(b){if(b.__esModule)return b;var r=b.default;if(typeof r=="function"){var x=function v(){return this instanceof v?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};x.prototype=r.prototype}else x={};return Object.defineProperty(x,"__esModule",{value:!0}),Object.keys(b).forEach(function(v){var A=Object.getOwnPropertyDescriptor(b,v);Object.defineProperty(x,v,A.get?A:{enumerable:!0,get:function(){return b[v]}})}),x}var ue={},ks={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
2
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},Ft=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,at={},Cs={};function sa(b){var r,x,v=Cs[b];if(v)return v;for(v=Cs[b]=[],r=0;r<128;r++)x=String.fromCharCode(r),/^[0-9a-z]$/i.test(x)?v.push(x):v.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r<b.length;r++)v[b.charCodeAt(r)]=b[r];return v}function mt(b,r,x){var v,A,C,T,S,P="";for(typeof r!="string"&&(x=r,r=mt.defaultChars),typeof x>"u"&&(x=!0),S=sa(r),v=0,A=b.length;v<A;v++){if(C=b.charCodeAt(v),x&&C===37&&v+2<A&&/^[0-9a-f]{2}$/i.test(b.slice(v+1,v+3))){P+=b.slice(v,v+3),v+=2;continue}if(C<128){P+=S[C];continue}if(C>=55296&&C<=57343){if(C>=55296&&C<=56319&&v+1<A&&(T=b.charCodeAt(v+1),T>=56320&&T<=57343)){P+=encodeURIComponent(b[v]+b[v+1]),v++;continue}P+="%EF%BF%BD";continue}P+=encodeURIComponent(b[v])}return P}mt.defaultChars=";/?:@&=+$,-_.!~*'()#",mt.componentChars="-_.!~*'()";var ia=mt,As={};function aa(b){var r,x,v=As[b];if(v)return v;for(v=As[b]=[],r=0;r<128;r++)x=String.fromCharCode(r),v.push(x);for(r=0;r<b.length;r++)x=b.charCodeAt(r),v[x]="%"+("0"+x.toString(16).toUpperCase()).slice(-2);return v}function bt(b,r){var x;return typeof r!="string"&&(r=bt.defaultChars),x=aa(r),b.replace(/(%[a-f0-9]{2})+/gi,function(v){var A,C,T,S,P,N,B,X="";for(A=0,C=v.length;A<C;A+=3){if(T=parseInt(v.slice(A+1,A+3),16),T<128){X+=x[T];continue}if((T&224)===192&&A+3<C&&(S=parseInt(v.slice(A+4,A+6),16),(S&192)===128)){B=T<<6&1984|S&63,B<128?X+="��":X+=String.fromCharCode(B),A+=3;continue}if((T&240)===224&&A+6<C&&(S=parseInt(v.slice(A+4,A+6),16),P=parseInt(v.slice(A+7,A+9),16),(S&192)===128&&(P&192)===128)){B=T<<12&61440|S<<6&4032|P&63,B<2048||B>=55296&&B<=57343?X+="���":X+=String.fromCharCode(B),A+=6;continue}if((T&248)===240&&A+9<C&&(S=parseInt(v.slice(A+4,A+6),16),P=parseInt(v.slice(A+7,A+9),16),N=parseInt(v.slice(A+10,A+12),16),(S&192)===128&&(P&192)===128&&(N&192)===128)){B=T<<18&1835008|S<<12&258048|P<<6&4032|N&63,B<65536||B>1114111?X+="����":(B-=65536,X+=String.fromCharCode(55296+(B>>10),56320+(B&1023))),A+=9;continue}X+="�"}return X})}bt.defaultChars=";/?:@&=+$,#",bt.componentChars="";var na=bt,oa=function(r){var x="";return x+=r.protocol||"",x+=r.slashes?"//":"",x+=r.auth?r.auth+"@":"",r.hostname&&r.hostname.indexOf(":")!==-1?x+="["+r.hostname+"]":x+=r.hostname||"",x+=r.port?":"+r.port:"",x+=r.pathname||"",x+=r.search||"",x+=r.hash||"",x};function vt(){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 ra=/^([a-z0-9.+-]+:)/i,la=/:[0-9]*$/,ca=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ha=["<",">",'"',"`"," ","\r",`
|
|
3
|
+
`," "],da=["{","}","|","\\","^","`"].concat(ha),ua=["'"].concat(da),Ss=["%","/","?",";","#"].concat(ua),_s=["/","?","#"],pa=255,Es=/^[+a-z0-9A-Z_-]{0,63}$/,ga=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ls={javascript:!0,"javascript:":!0},Ts={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function fa(b,r){if(b&&b instanceof vt)return b;var x=new vt;return x.parse(b,r),x}vt.prototype.parse=function(b,r){var x,v,A,C,T,S=b;if(S=S.trim(),!r&&b.split("#").length===1){var P=ca.exec(S);if(P)return this.pathname=P[1],P[2]&&(this.search=P[2]),this}var N=ra.exec(S);if(N&&(N=N[0],A=N.toLowerCase(),this.protocol=N,S=S.substr(N.length)),(r||N||S.match(/^\/\/[^@\/]+@[^@\/]+/))&&(T=S.substr(0,2)==="//",T&&!(N&&Ls[N])&&(S=S.substr(2),this.slashes=!0)),!Ls[N]&&(T||N&&!Ts[N])){var B=-1;for(x=0;x<_s.length;x++)C=S.indexOf(_s[x]),C!==-1&&(B===-1||C<B)&&(B=C);var X,H;for(B===-1?H=S.lastIndexOf("@"):H=S.lastIndexOf("@",B),H!==-1&&(X=S.slice(0,H),S=S.slice(H+1),this.auth=X),B=-1,x=0;x<Ss.length;x++)C=S.indexOf(Ss[x]),C!==-1&&(B===-1||C<B)&&(B=C);B===-1&&(B=S.length),S[B-1]===":"&&B--;var O=S.slice(0,B);S=S.slice(B),this.parseHost(O),this.hostname=this.hostname||"";var U=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!U){var q=this.hostname.split(/\./);for(x=0,v=q.length;x<v;x++){var te=q[x];if(te&&!te.match(Es)){for(var J="",R=0,$=te.length;R<$;R++)te.charCodeAt(R)>127?J+="x":J+=te[R];if(!J.match(Es)){var ee=q.slice(0,x),Y=q.slice(x+1),K=te.match(ga);K&&(ee.push(K[1]),Y.unshift(K[2])),Y.length&&(S=Y.join(".")+S),this.hostname=ee.join(".");break}}}}this.hostname.length>pa&&(this.hostname=""),U&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var ce=S.indexOf("#");ce!==-1&&(this.hash=S.substr(ce),S=S.slice(0,ce));var be=S.indexOf("?");return be!==-1&&(this.search=S.substr(be),S=S.slice(0,be)),S&&(this.pathname=S),Ts[A]&&this.hostname&&!this.pathname&&(this.pathname=""),this},vt.prototype.parseHost=function(b){var r=la.exec(b);r&&(r=r[0],r!==":"&&(this.port=r.substr(1)),b=b.substr(0,b.length-r.length)),b&&(this.hostname=b)};var xa=fa;at.encode=ia,at.decode=na,at.format=oa,at.parse=xa;var Qe={},Vt,Ds;function Ps(){return Ds||(Ds=1,Vt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Vt}var Ht,Is;function zs(){return Is||(Is=1,Ht=/[\0-\x1F\x7F-\x9F]/),Ht}var Ot,Ms;function ma(){return Ms||(Ms=1,Ot=/[\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]/),Ot}var Xt,Ns;function Bs(){return Ns||(Ns=1,Xt=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Xt}var Rs;function ba(){return Rs||(Rs=1,Qe.Any=Ps(),Qe.Cc=zs(),Qe.Cf=ma(),Qe.P=Ft,Qe.Z=Bs()),Qe}(function(b){function r(Q){return Object.prototype.toString.call(Q)}function x(Q){return r(Q)==="[object String]"}var v=Object.prototype.hasOwnProperty;function A(Q,pe){return v.call(Q,pe)}function C(Q){var pe=Array.prototype.slice.call(arguments,1);return pe.forEach(function(re){if(re){if(typeof re!="object")throw new TypeError(re+"must be object");Object.keys(re).forEach(function(Ce){Q[Ce]=re[Ce]})}}),Q}function T(Q,pe,re){return[].concat(Q.slice(0,pe),re,Q.slice(pe+1))}function S(Q){return!(Q>=55296&&Q<=57343||Q>=64976&&Q<=65007||(Q&65535)===65535||(Q&65535)===65534||Q>=0&&Q<=8||Q===11||Q>=14&&Q<=31||Q>=127&&Q<=159||Q>1114111)}function P(Q){if(Q>65535){Q-=65536;var pe=55296+(Q>>10),re=56320+(Q&1023);return String.fromCharCode(pe,re)}return String.fromCharCode(Q)}var N=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,B=/&([a-z#][a-z0-9]{1,31});/gi,X=new RegExp(N.source+"|"+B.source,"gi"),H=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,O=ks;function U(Q,pe){var re=0;return A(O,pe)?O[pe]:pe.charCodeAt(0)===35&&H.test(pe)&&(re=pe[1].toLowerCase()==="x"?parseInt(pe.slice(2),16):parseInt(pe.slice(1),10),S(re))?P(re):Q}function q(Q){return Q.indexOf("\\")<0?Q:Q.replace(N,"$1")}function te(Q){return Q.indexOf("\\")<0&&Q.indexOf("&")<0?Q:Q.replace(X,function(pe,re,Ce){return re||U(pe,Ce)})}var J=/[&<>"]/,R=/[&<>"]/g,$={"&":"&","<":"<",">":">",'"':"""};function ee(Q){return $[Q]}function Y(Q){return J.test(Q)?Q.replace(R,ee):Q}var K=/[.?*+^$[\]\\(){}|-]/g;function ce(Q){return Q.replace(K,"\\$&")}function be(Q){switch(Q){case 9:case 32:return!0}return!1}function Re(Q){if(Q>=8192&&Q<=8202)return!0;switch(Q){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 he=Ft;function ge(Q){return he.test(Q)}function ke(Q){switch(Q){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 Fe(Q){return Q=Q.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(Q=Q.replace(/ẞ/g,"ß")),Q.toLowerCase().toUpperCase()}b.lib={},b.lib.mdurl=at,b.lib.ucmicro=ba(),b.assign=C,b.isString=x,b.has=A,b.unescapeMd=q,b.unescapeAll=te,b.isValidEntityCode=S,b.fromCodePoint=P,b.escapeHtml=Y,b.arrayReplaceAt=T,b.isSpace=be,b.isWhiteSpace=Re,b.isMdAsciiPunct=ke,b.isPunctChar=ge,b.escapeRE=ce,b.normalizeReference=Fe})(ue);var yt={},va=function(r,x,v){var A,C,T,S,P=-1,N=r.posMax,B=r.pos;for(r.pos=x+1,A=1;r.pos<N;){if(T=r.src.charCodeAt(r.pos),T===93&&(A--,A===0)){C=!0;break}if(S=r.pos,r.md.inline.skipToken(r),T===91){if(S===r.pos-1)A++;else if(v)return r.pos=B,-1}}return C&&(P=r.pos),r.pos=B,P},Fs=ue.unescapeAll,ya=function(r,x,v){var A,C,T=0,S=x,P={ok:!1,pos:0,lines:0,str:""};if(r.charCodeAt(x)===60){for(x++;x<v;){if(A=r.charCodeAt(x),A===10||A===60)return P;if(A===62)return P.pos=x+1,P.str=Fs(r.slice(S+1,x)),P.ok=!0,P;if(A===92&&x+1<v){x+=2;continue}x++}return P}for(C=0;x<v&&(A=r.charCodeAt(x),!(A===32||A<32||A===127));){if(A===92&&x+1<v){if(r.charCodeAt(x+1)===32)break;x+=2;continue}if(A===40&&(C++,C>32))return P;if(A===41){if(C===0)break;C--}x++}return S===x||C!==0||(P.str=Fs(r.slice(S,x)),P.lines=T,P.pos=x,P.ok=!0),P},wa=ue.unescapeAll,ka=function(r,x,v){var A,C,T=0,S=x,P={ok:!1,pos:0,lines:0,str:""};if(x>=v||(C=r.charCodeAt(x),C!==34&&C!==39&&C!==40))return P;for(x++,C===40&&(C=41);x<v;){if(A=r.charCodeAt(x),A===C)return P.pos=x+1,P.lines=T,P.str=wa(r.slice(S+1,x)),P.ok=!0,P;if(A===40&&C===41)return P;A===10?T++:A===92&&x+1<v&&(x++,r.charCodeAt(x)===10&&T++),x++}return P};yt.parseLinkLabel=va,yt.parseLinkDestination=ya,yt.parseLinkTitle=ka;var Ca=ue.assign,Aa=ue.unescapeAll,Ke=ue.escapeHtml,Ie={};Ie.code_inline=function(b,r,x,v,A){var C=b[r];return"<code"+A.renderAttrs(C)+">"+Ke(b[r].content)+"</code>"},Ie.code_block=function(b,r,x,v,A){var C=b[r];return"<pre"+A.renderAttrs(C)+"><code>"+Ke(b[r].content)+`</code></pre>
|
|
4
|
+
`},Ie.fence=function(b,r,x,v,A){var C=b[r],T=C.info?Aa(C.info).trim():"",S="",P="",N,B,X,H,O;return T&&(X=T.split(/(\s+)/g),S=X[0],P=X.slice(2).join("")),x.highlight?N=x.highlight(C.content,S,P)||Ke(C.content):N=Ke(C.content),N.indexOf("<pre")===0?N+`
|
|
5
|
+
`:T?(B=C.attrIndex("class"),H=C.attrs?C.attrs.slice():[],B<0?H.push(["class",x.langPrefix+S]):(H[B]=H[B].slice(),H[B][1]+=" "+x.langPrefix+S),O={attrs:H},"<pre><code"+A.renderAttrs(O)+">"+N+`</code></pre>
|
|
6
|
+
`):"<pre><code"+A.renderAttrs(C)+">"+N+`</code></pre>
|
|
7
|
+
`},Ie.image=function(b,r,x,v,A){var C=b[r];return C.attrs[C.attrIndex("alt")][1]=A.renderInlineAsText(C.children,x,v),A.renderToken(b,r,x)},Ie.hardbreak=function(b,r,x){return x.xhtmlOut?`<br />
|
|
8
8
|
`:`<br>
|
|
9
|
-
`},
|
|
9
|
+
`},Ie.softbreak=function(b,r,x){return x.breaks?x.xhtmlOut?`<br />
|
|
10
10
|
`:`<br>
|
|
11
11
|
`:`
|
|
12
|
-
`},
|
|
13
|
-
`),
|
|
14
|
-
`:">",
|
|
15
|
-
`);return
|
|
16
|
-
`),
|
|
17
|
-
`,l.map=[r,e.line],!0},En=function(e,r,o,s){var c,l,i,a,u,d,h,p=!1,f=e.bMarks[r]+e.tShift[r],m=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||f+3>m||(c=e.src.charCodeAt(f),c!==126&&c!==96)||(u=f,f=e.skipChars(f,c),l=f-u,l<3)||(h=e.src.slice(u,f),i=e.src.slice(f,m),c===96&&i.indexOf(String.fromCharCode(c))>=0))return!1;if(s)return!0;for(a=r;a++,!(a>=o||(f=u=e.bMarks[a]+e.tShift[a],m=e.eMarks[a],f<m&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(f)===c&&!(e.sCount[a]-e.blkIndent>=4)&&(f=e.skipChars(f,c),!(f-u<l)&&(f=e.skipSpaces(f),!(f<m)))){p=!0;break}return l=e.sCount[r],e.line=a+(p?1:0),d=e.push("fence","code",0),d.info=i,d.content=e.getLines(r+1,a,l,!0),d.markup=h,d.map=[r,e.line],!0},St=D.isSpace,qn=function(e,r,o,s){var c,l,i,a,u,d,h,p,f,m,_,w,x,g,y,C,q,k,L,T,ce=e.lineMax,A=e.bMarks[r]+e.tShift[r],N=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(A++)!==62)return!1;if(s)return!0;for(a=f=e.sCount[r]+1,e.src.charCodeAt(A)===32?(A++,a++,f++,c=!1,C=!0):e.src.charCodeAt(A)===9?(C=!0,(e.bsCount[r]+f)%4===3?(A++,a++,f++,c=!1):c=!0):C=!1,m=[e.bMarks[r]],e.bMarks[r]=A;A<N&&(l=e.src.charCodeAt(A),St(l));){l===9?f+=4-(f+e.bsCount[r]+(c?1:0))%4:f++;A++}for(_=[e.bsCount[r]],e.bsCount[r]=e.sCount[r]+1+(C?1:0),d=A>=N,g=[e.sCount[r]],e.sCount[r]=f-a,y=[e.tShift[r]],e.tShift[r]=A-e.bMarks[r],k=e.md.block.ruler.getRules("blockquote"),x=e.parentType,e.parentType="blockquote",p=r+1;p<o&&(T=e.sCount[p]<e.blkIndent,A=e.bMarks[p]+e.tShift[p],N=e.eMarks[p],!(A>=N));p++){if(e.src.charCodeAt(A++)===62&&!T){for(a=f=e.sCount[p]+1,e.src.charCodeAt(A)===32?(A++,a++,f++,c=!1,C=!0):e.src.charCodeAt(A)===9?(C=!0,(e.bsCount[p]+f)%4===3?(A++,a++,f++,c=!1):c=!0):C=!1,m.push(e.bMarks[p]),e.bMarks[p]=A;A<N&&(l=e.src.charCodeAt(A),St(l));){l===9?f+=4-(f+e.bsCount[p]+(c?1:0))%4:f++;A++}d=A>=N,_.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(C?1:0),g.push(e.sCount[p]),e.sCount[p]=f-a,y.push(e.tShift[p]),e.tShift[p]=A-e.bMarks[p];continue}if(d)break;for(q=!1,i=0,u=k.length;i<u;i++)if(k[i](e,p,o,!0)){q=!0;break}if(q){e.lineMax=p,e.blkIndent!==0&&(m.push(e.bMarks[p]),_.push(e.bsCount[p]),y.push(e.tShift[p]),g.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}m.push(e.bMarks[p]),_.push(e.bsCount[p]),y.push(e.tShift[p]),g.push(e.sCount[p]),e.sCount[p]=-1}for(w=e.blkIndent,e.blkIndent=0,L=e.push("blockquote_open","blockquote",1),L.markup=">",L.map=h=[r,0],e.md.block.tokenize(e,r,p),L=e.push("blockquote_close","blockquote",-1),L.markup=">",e.lineMax=ce,e.parentType=x,h[1]=e.line,i=0;i<y.length;i++)e.bMarks[i+r]=m[i],e.tShift[i+r]=y[i],e.sCount[i+r]=g[i],e.bsCount[i+r]=_[i];return e.blkIndent=w,!0},An=D.isSpace,Dn=function(e,r,o,s){var c,l,i,a,u=e.bMarks[r]+e.tShift[r],d=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(u++),c!==42&&c!==45&&c!==95))return!1;for(l=1;u<d;){if(i=e.src.charCodeAt(u++),i!==c&&!An(i))return!1;i===c&&l++}return l<3?!1:(s||(e.line=r+1,a=e.push("hr","hr",0),a.map=[r,e.line],a.markup=Array(l+1).join(String.fromCharCode(c))),!0)},Nt=D.isSpace;function Bt(n,e){var r,o,s,c;return o=n.bMarks[e]+n.tShift[e],s=n.eMarks[e],r=n.src.charCodeAt(o++),r!==42&&r!==45&&r!==43||o<s&&(c=n.src.charCodeAt(o),!Nt(c))?-1:o}function Tt(n,e){var r,o=n.bMarks[e]+n.tShift[e],s=o,c=n.eMarks[e];if(s+1>=c||(r=n.src.charCodeAt(s++),r<48||r>57))return-1;for(;;){if(s>=c)return-1;if(r=n.src.charCodeAt(s++),r>=48&&r<=57){if(s-o>=10)return-1;continue}if(r===41||r===46)break;return-1}return s<c&&(r=n.src.charCodeAt(s),!Nt(r))?-1:s}function Vn(n,e){var r,o,s=n.level+2;for(r=e+2,o=n.tokens.length-2;r<o;r++)n.tokens[r].level===s&&n.tokens[r].type==="paragraph_open"&&(n.tokens[r+2].hidden=!0,n.tokens[r].hidden=!0,r+=2)}var Ln=function(e,r,o,s){var c,l,i,a,u,d,h,p,f,m,_,w,x,g,y,C,q,k,L,T,ce,A,N,fe,ie,b,B,V,G=!1,Er=!0;if(e.sCount[r]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[r]-e.listIndent>=4&&e.sCount[r]<e.blkIndent)return!1;if(s&&e.parentType==="paragraph"&&e.sCount[r]>=e.blkIndent&&(G=!0),(N=Tt(e,r))>=0){if(h=!0,ie=e.bMarks[r]+e.tShift[r],x=Number(e.src.slice(ie,N-1)),G&&x!==1)return!1}else if((N=Bt(e,r))>=0)h=!1;else return!1;if(G&&e.skipSpaces(N)>=e.eMarks[r])return!1;if(w=e.src.charCodeAt(N-1),s)return!0;for(_=e.tokens.length,h?(V=e.push("ordered_list_open","ol",1),x!==1&&(V.attrs=[["start",x]])):V=e.push("bullet_list_open","ul",1),V.map=m=[r,0],V.markup=String.fromCharCode(w),y=r,fe=!1,B=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";y<o;){for(A=N,g=e.eMarks[y],d=C=e.sCount[y]+N-(e.bMarks[r]+e.tShift[r]);A<g;){if(c=e.src.charCodeAt(A),c===9)C+=4-(C+e.bsCount[y])%4;else if(c===32)C++;else break;A++}if(l=A,l>=g?u=1:u=C-d,u>4&&(u=1),a=d+u,V=e.push("list_item_open","li",1),V.markup=String.fromCharCode(w),V.map=p=[r,0],h&&(V.info=e.src.slice(ie,N-1)),ce=e.tight,T=e.tShift[r],L=e.sCount[r],q=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[r]=l-e.bMarks[r],e.sCount[r]=C,l>=g&&e.isEmpty(r+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,r,o,!0),(!e.tight||fe)&&(Er=!1),fe=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=q,e.tShift[r]=T,e.sCount[r]=L,e.tight=ce,V=e.push("list_item_close","li",-1),V.markup=String.fromCharCode(w),y=r=e.line,p[1]=y,l=e.bMarks[r],y>=o||e.sCount[y]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)break;for(b=!1,i=0,f=B.length;i<f;i++)if(B[i](e,y,o,!0)){b=!0;break}if(b)break;if(h){if(N=Tt(e,y),N<0)break;ie=e.bMarks[y]+e.tShift[y]}else if(N=Bt(e,y),N<0)break;if(w!==e.src.charCodeAt(N-1))break}return h?V=e.push("ordered_list_close","ol",-1):V=e.push("bullet_list_close","ul",-1),V.markup=String.fromCharCode(w),m[1]=y,e.line=y,e.parentType=k,Er&&Vn(e,_),!0},Sn=D.normalizeReference,ke=D.isSpace,Nn=function(e,r,o,s){var c,l,i,a,u,d,h,p,f,m,_,w,x,g,y,C,q=0,k=e.bMarks[r]+e.tShift[r],L=e.eMarks[r],T=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(k)!==91)return!1;for(;++k<L;)if(e.src.charCodeAt(k)===93&&e.src.charCodeAt(k-1)!==92){if(k+1===L||e.src.charCodeAt(k+1)!==58)return!1;break}for(a=e.lineMax,y=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";T<a&&!e.isEmpty(T);T++)if(!(e.sCount[T]-e.blkIndent>3)&&!(e.sCount[T]<0)){for(g=!1,d=0,h=y.length;d<h;d++)if(y[d](e,T,a,!0)){g=!0;break}if(g)break}for(x=e.getLines(r,T,e.blkIndent,!1).trim(),L=x.length,k=1;k<L;k++){if(c=x.charCodeAt(k),c===91)return!1;if(c===93){f=k;break}else c===10?q++:c===92&&(k++,k<L&&x.charCodeAt(k)===10&&q++)}if(f<0||x.charCodeAt(f+1)!==58)return!1;for(k=f+2;k<L;k++)if(c=x.charCodeAt(k),c===10)q++;else if(!ke(c))break;if(_=e.md.helpers.parseLinkDestination(x,k,L),!_.ok||(u=e.md.normalizeLink(_.str),!e.md.validateLink(u)))return!1;for(k=_.pos,q+=_.lines,l=k,i=q,w=k;k<L;k++)if(c=x.charCodeAt(k),c===10)q++;else if(!ke(c))break;for(_=e.md.helpers.parseLinkTitle(x,k,L),k<L&&w!==k&&_.ok?(C=_.str,k=_.pos,q+=_.lines):(C="",k=l,q=i);k<L&&(c=x.charCodeAt(k),!!ke(c));)k++;if(k<L&&x.charCodeAt(k)!==10&&C)for(C="",k=l,q=i;k<L&&(c=x.charCodeAt(k),!!ke(c));)k++;return k<L&&x.charCodeAt(k)!==10||(p=Sn(x.slice(1,f)),!p)?!1:(s||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:C,href:u}),e.parentType=m,e.line=r+q+1),!0)},Bn=["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"],xe={},Tn="[a-zA-Z_:][a-zA-Z0-9:._-]*",vn="[^\"'=<>`\\x00-\\x20]+",$n="'[^']*'",Rn='"[^"]*"',Fn="(?:"+vn+"|"+$n+"|"+Rn+")",zn="(?:\\s+"+Tn+"(?:\\s*=\\s*"+Fn+")?)",vt="<[A-Za-z][A-Za-z0-9\\-]*"+zn+"*\\s*\\/?>",$t="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",In="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Mn="<[?][\\s\\S]*?[?]>",Hn="<![A-Z]+\\s+[^>]*>",Pn="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Un=new RegExp("^(?:"+vt+"|"+$t+"|"+In+"|"+Mn+"|"+Hn+"|"+Pn+")"),On=new RegExp("^(?:"+vt+"|"+$t+")");xe.HTML_TAG_RE=Un,xe.HTML_OPEN_CLOSE_TAG_RE=On;var jn=Bn,Gn=xe.HTML_OPEN_CLOSE_TAG_RE,re=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+jn.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Gn.source+"\\s*$"),/^$/,!1]],Zn=function(e,r,o,s){var c,l,i,a,u=e.bMarks[r]+e.tShift[r],d=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(a=e.src.slice(u,d),c=0;c<re.length&&!re[c][0].test(a);c++);if(c===re.length)return!1;if(s)return re[c][2];if(l=r+1,!re[c][1].test(a)){for(;l<o&&!(e.sCount[l]<e.blkIndent);l++)if(u=e.bMarks[l]+e.tShift[l],d=e.eMarks[l],a=e.src.slice(u,d),re[c][1].test(a)){a.length!==0&&l++;break}}return e.line=l,i=e.push("html_block","",0),i.map=[r,l],i.content=e.getLines(r,l,e.blkIndent,!0),!0},Rt=D.isSpace,Wn=function(e,r,o,s){var c,l,i,a,u=e.bMarks[r]+e.tShift[r],d=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(u),c!==35||u>=d))return!1;for(l=1,c=e.src.charCodeAt(++u);c===35&&u<d&&l<=6;)l++,c=e.src.charCodeAt(++u);return l>6||u<d&&!Rt(c)?!1:(s||(d=e.skipSpacesBack(d,u),i=e.skipCharsBack(d,35,u),i>u&&Rt(e.src.charCodeAt(i-1))&&(d=i),e.line=r+1,a=e.push("heading_open","h"+String(l),1),a.markup="########".slice(0,l),a.map=[r,e.line],a=e.push("inline","",0),a.content=e.src.slice(u,d).trim(),a.map=[r,e.line],a.children=[],a=e.push("heading_close","h"+String(l),-1),a.markup="########".slice(0,l)),!0)},Jn=function(e,r,o){var s,c,l,i,a,u,d,h,p,f=r+1,m,_=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";f<o&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(u=e.bMarks[f]+e.tShift[f],d=e.eMarks[f],u<d&&(p=e.src.charCodeAt(u),(p===45||p===61)&&(u=e.skipChars(u,p),u=e.skipSpaces(u),u>=d)))){h=p===61?1:2;break}if(!(e.sCount[f]<0)){for(c=!1,l=0,i=_.length;l<i;l++)if(_[l](e,f,o,!0)){c=!0;break}if(c)break}}return h?(s=e.getLines(r,f,e.blkIndent,!1).trim(),e.line=f+1,a=e.push("heading_open","h"+String(h),1),a.markup=String.fromCharCode(p),a.map=[r,e.line],a=e.push("inline","",0),a.content=s,a.map=[r,e.line-1],a.children=[],a=e.push("heading_close","h"+String(h),-1),a.markup=String.fromCharCode(p),e.parentType=m,!0):!1},Yn=function(e,r){var o,s,c,l,i,a,u=r+1,d=e.md.block.ruler.getRules("paragraph"),h=e.lineMax;for(a=e.parentType,e.parentType="paragraph";u<h&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(s=!1,c=0,l=d.length;c<l;c++)if(d[c](e,u,h,!0)){s=!0;break}if(s)break}return o=e.getLines(r,u,e.blkIndent,!1).trim(),e.line=u,i=e.push("paragraph_open","p",1),i.map=[r,e.line],i=e.push("inline","",0),i.content=o,i.map=[r,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=a,!0},Ft=Fe,ye=D.isSpace;function M(n,e,r,o){var s,c,l,i,a,u,d,h;for(this.src=n,this.md=e,this.env=r,this.tokens=o,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="",c=this.src,h=!1,l=i=u=d=0,a=c.length;i<a;i++){if(s=c.charCodeAt(i),!h)if(ye(s)){u++,s===9?d+=4-d%4:d++;continue}else h=!0;(s===10||i===a-1)&&(s!==10&&i++,this.bMarks.push(l),this.eMarks.push(i),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),h=!1,u=0,d=0,l=i+1)}this.bMarks.push(c.length),this.eMarks.push(c.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}M.prototype.push=function(n,e,r){var o=new Ft(n,e,r);return o.block=!0,r<0&&this.level--,o.level=this.level,r>0&&this.level++,this.tokens.push(o),o},M.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},M.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},M.prototype.skipSpaces=function(e){for(var r,o=this.src.length;e<o&&(r=this.src.charCodeAt(e),!!ye(r));e++);return e},M.prototype.skipSpacesBack=function(e,r){if(e<=r)return e;for(;e>r;)if(!ye(this.src.charCodeAt(--e)))return e+1;return e},M.prototype.skipChars=function(e,r){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===r;e++);return e},M.prototype.skipCharsBack=function(e,r,o){if(e<=o)return e;for(;e>o;)if(r!==this.src.charCodeAt(--e))return e+1;return e},M.prototype.getLines=function(e,r,o,s){var c,l,i,a,u,d,h,p=e;if(e>=r)return"";for(d=new Array(r-e),c=0;p<r;p++,c++){for(l=0,h=a=this.bMarks[p],p+1<r||s?u=this.eMarks[p]+1:u=this.eMarks[p];a<u&&l<o;){if(i=this.src.charCodeAt(a),ye(i))i===9?l+=4-(l+this.bsCount[p])%4:l++;else if(a-h<this.tShift[p])l++;else break;a++}l>o?d[c]=new Array(l-o+1).join(" ")+this.src.slice(a,u):d[c]=this.src.slice(a,u)}return d.join("")},M.prototype.Token=Ft;var Qn=M,Kn=Re,we=[["table",wn,["paragraph","reference"]],["code",Cn],["fence",En,["paragraph","reference","blockquote","list"]],["blockquote",qn,["paragraph","reference","blockquote","list"]],["hr",Dn,["paragraph","reference","blockquote","list"]],["list",Ln,["paragraph","reference","blockquote"]],["reference",Nn],["html_block",Zn,["paragraph","reference","blockquote"]],["heading",Wn,["paragraph","reference","blockquote"]],["lheading",Jn],["paragraph",Yn]];function Ce(){this.ruler=new Kn;for(var n=0;n<we.length;n++)this.ruler.push(we[n][0],we[n][1],{alt:(we[n][2]||[]).slice()})}Ce.prototype.tokenize=function(n,e,r){for(var o,s,c=this.ruler.getRules(""),l=c.length,i=e,a=!1,u=n.md.options.maxNesting;i<r&&(n.line=i=n.skipEmptyLines(i),!(i>=r||n.sCount[i]<n.blkIndent));){if(n.level>=u){n.line=r;break}for(s=0;s<l&&(o=c[s](n,i,r,!1),!o);s++);n.tight=!a,n.isEmpty(n.line-1)&&(a=!0),i=n.line,i<r&&n.isEmpty(i)&&(a=!0,i++,n.line=i)}},Ce.prototype.parse=function(n,e,r,o){var s;n&&(s=new this.State(n,e,r,o),this.tokenize(s,s.line,s.lineMax))},Ce.prototype.State=Qn;var Xn=Ce;function eo(n){switch(n){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}}for(var to=function(e,r){for(var o=e.pos;o<e.posMax&&!eo(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(r||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},ro=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,no=function(e,r){var o,s,c,l,i,a,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,s=e.posMax,o+3>s)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(c=e.pending.match(ro),!c)||(l=c[1],i=e.md.linkify.matchAtStart(e.src.slice(o-l.length)),!i)||(a=i.url,a=a.replace(/\*+$/,""),u=e.md.normalizeLink(a),!e.md.validateLink(u))?!1:(r||(e.pending=e.pending.slice(0,-l.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(a),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=a.length-l.length,!0)},oo=D.isSpace,so=function(e,r){var o,s,c,l=e.pos;if(e.src.charCodeAt(l)!==10)return!1;if(o=e.pending.length-1,s=e.posMax,!r)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(c=o-1;c>=1&&e.pending.charCodeAt(c-1)===32;)c--;e.pending=e.pending.slice(0,c),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(l++;l<s&&oo(e.src.charCodeAt(l));)l++;return e.pos=l,!0},co=D.isSpace,Pe=[],zt=0;zt<256;zt++)Pe.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(n){Pe[n.charCodeAt(0)]=1});var io=function(e,r){var o,s,c,l,i,a=e.pos,u=e.posMax;if(e.src.charCodeAt(a)!==92||(a++,a>=u))return!1;if(o=e.src.charCodeAt(a),o===10){for(r||e.push("hardbreak","br",0),a++;a<u&&(o=e.src.charCodeAt(a),!!co(o));)a++;return e.pos=a,!0}return l=e.src[a],o>=55296&&o<=56319&&a+1<u&&(s=e.src.charCodeAt(a+1),s>=56320&&s<=57343&&(l+=e.src[a+1],a++)),c="\\"+l,r||(i=e.push("text_special","",0),o<256&&Pe[o]!==0?i.content=l:i.content=c,i.markup=c,i.info="escape"),e.pos=a+1,!0},lo=function(e,r){var o,s,c,l,i,a,u,d,h=e.pos,p=e.src.charCodeAt(h);if(p!==96)return!1;for(o=h,h++,s=e.posMax;h<s&&e.src.charCodeAt(h)===96;)h++;if(c=e.src.slice(o,h),u=c.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return r||(e.pending+=c),e.pos+=u,!0;for(i=a=h;(i=e.src.indexOf("`",a))!==-1;){for(a=i+1;a<s&&e.src.charCodeAt(a)===96;)a++;if(d=a-i,d===u)return r||(l=e.push("code_inline","code",0),l.markup=c,l.content=e.src.slice(h,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[d]=i}return e.backticksScanned=!0,r||(e.pending+=c),e.pos+=u,!0},Ee={};Ee.tokenize=function(e,r){var o,s,c,l,i,a=e.pos,u=e.src.charCodeAt(a);if(r||u!==126||(s=e.scanDelims(e.pos,!0),l=s.length,i=String.fromCharCode(u),l<2))return!1;for(l%2&&(c=e.push("text","",0),c.content=i,l--),o=0;o<l;o+=2)c=e.push("text","",0),c.content=i+i,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function It(n,e){var r,o,s,c,l,i=[],a=e.length;for(r=0;r<a;r++)s=e[r],s.marker===126&&s.end!==-1&&(c=e[s.end],l=n.tokens[s.token],l.type="s_open",l.tag="s",l.nesting=1,l.markup="~~",l.content="",l=n.tokens[c.token],l.type="s_close",l.tag="s",l.nesting=-1,l.markup="~~",l.content="",n.tokens[c.token-1].type==="text"&&n.tokens[c.token-1].content==="~"&&i.push(c.token-1));for(;i.length;){for(r=i.pop(),o=r+1;o<n.tokens.length&&n.tokens[o].type==="s_close";)o++;o--,r!==o&&(l=n.tokens[o],n.tokens[o]=n.tokens[r],n.tokens[r]=l)}}Ee.postProcess=function(e){var r,o=e.tokens_meta,s=e.tokens_meta.length;for(It(e,e.delimiters),r=0;r<s;r++)o[r]&&o[r].delimiters&&It(e,o[r].delimiters)};var qe={};qe.tokenize=function(e,r){var o,s,c,l=e.pos,i=e.src.charCodeAt(l);if(r||i!==95&&i!==42)return!1;for(s=e.scanDelims(e.pos,i===42),o=0;o<s.length;o++)c=e.push("text","",0),c.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function Mt(n,e){var r,o,s,c,l,i,a=e.length;for(r=a-1;r>=0;r--)o=e[r],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(s=e[o.end],i=r>0&&e[r-1].end===o.end+1&&e[r-1].marker===o.marker&&e[r-1].token===o.token-1&&e[o.end+1].token===s.token+1,l=String.fromCharCode(o.marker),c=n.tokens[o.token],c.type=i?"strong_open":"em_open",c.tag=i?"strong":"em",c.nesting=1,c.markup=i?l+l:l,c.content="",c=n.tokens[s.token],c.type=i?"strong_close":"em_close",c.tag=i?"strong":"em",c.nesting=-1,c.markup=i?l+l:l,c.content="",i&&(n.tokens[e[r-1].token].content="",n.tokens[e[o.end+1].token].content="",r--))}qe.postProcess=function(e){var r,o=e.tokens_meta,s=e.tokens_meta.length;for(Mt(e,e.delimiters),r=0;r<s;r++)o[r]&&o[r].delimiters&&Mt(e,o[r].delimiters)};var ao=D.normalizeReference,Ue=D.isSpace,uo=function(e,r){var o,s,c,l,i,a,u,d,h,p="",f="",m=e.pos,_=e.posMax,w=e.pos,x=!0;if(e.src.charCodeAt(e.pos)!==91||(i=e.pos+1,l=e.md.helpers.parseLinkLabel(e,e.pos,!0),l<0))return!1;if(a=l+1,a<_&&e.src.charCodeAt(a)===40){for(x=!1,a++;a<_&&(s=e.src.charCodeAt(a),!(!Ue(s)&&s!==10));a++);if(a>=_)return!1;if(w=a,u=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),u.ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?a=u.pos:p="",w=a;a<_&&(s=e.src.charCodeAt(a),!(!Ue(s)&&s!==10));a++);if(u=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<_&&w!==a&&u.ok)for(f=u.str,a=u.pos;a<_&&(s=e.src.charCodeAt(a),!(!Ue(s)&&s!==10));a++);}(a>=_||e.src.charCodeAt(a)!==41)&&(x=!0),a++}if(x){if(typeof e.env.references>"u")return!1;if(a<_&&e.src.charCodeAt(a)===91?(w=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?c=e.src.slice(w,a++):a=l+1):a=l+1,c||(c=e.src.slice(i,l)),d=e.env.references[ao(c)],!d)return e.pos=m,!1;p=d.href,f=d.title}return r||(e.pos=i,e.posMax=l,h=e.push("link_open","a",1),h.attrs=o=[["href",p]],f&&o.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=a,e.posMax=_,!0},po=D.normalizeReference,Oe=D.isSpace,fo=function(e,r){var o,s,c,l,i,a,u,d,h,p,f,m,_,w="",x=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,i=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),i<0))return!1;if(u=i+1,u<g&&e.src.charCodeAt(u)===40){for(u++;u<g&&(s=e.src.charCodeAt(u),!(!Oe(s)&&s!==10));u++);if(u>=g)return!1;for(_=u,h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),h.ok&&(w=e.md.normalizeLink(h.str),e.md.validateLink(w)?u=h.pos:w=""),_=u;u<g&&(s=e.src.charCodeAt(u),!(!Oe(s)&&s!==10));u++);if(h=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<g&&_!==u&&h.ok)for(p=h.str,u=h.pos;u<g&&(s=e.src.charCodeAt(u),!(!Oe(s)&&s!==10));u++);else p="";if(u>=g||e.src.charCodeAt(u)!==41)return e.pos=x,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<g&&e.src.charCodeAt(u)===91?(_=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?l=e.src.slice(_,u++):u=i+1):u=i+1,l||(l=e.src.slice(a,i)),d=e.env.references[po(l)],!d)return e.pos=x,!1;w=d.href,p=d.title}return r||(c=e.src.slice(a,i),e.md.inline.parse(c,e.md,e.env,m=[]),f=e.push("image","img",0),f.attrs=o=[["src",w],["alt",""]],f.children=m,f.content=c,p&&o.push(["title",p])),e.pos=u,e.posMax=g,!0},ho=/^([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])?)*)$/,mo=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,go=function(e,r){var o,s,c,l,i,a,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(i=e.pos,a=e.posMax;;){if(++u>=a||(l=e.src.charCodeAt(u),l===60))return!1;if(l===62)break}return o=e.src.slice(i+1,u),mo.test(o)?(s=e.md.normalizeLink(o),e.md.validateLink(s)?(r||(c=e.push("link_open","a",1),c.attrs=[["href",s]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(o),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=o.length+2,!0):!1):ho.test(o)?(s=e.md.normalizeLink("mailto:"+o),e.md.validateLink(s)?(r||(c=e.push("link_open","a",1),c.attrs=[["href",s]],c.markup="autolink",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(o),c=e.push("link_close","a",-1),c.markup="autolink",c.info="auto"),e.pos+=o.length+2,!0):!1):!1},bo=xe.HTML_TAG_RE;function _o(n){return/^<a[>\s]/i.test(n)}function ko(n){return/^<\/a\s*>/i.test(n)}function xo(n){var e=n|32;return e>=97&&e<=122}var yo=function(e,r){var o,s,c,l,i=e.pos;return!e.md.options.html||(c=e.posMax,e.src.charCodeAt(i)!==60||i+2>=c)||(o=e.src.charCodeAt(i+1),o!==33&&o!==63&&o!==47&&!xo(o))||(s=e.src.slice(i).match(bo),!s)?!1:(r||(l=e.push("html_inline","",0),l.content=e.src.slice(i,i+s[0].length),_o(l.content)&&e.linkLevel++,ko(l.content)&&e.linkLevel--),e.pos+=s[0].length,!0)},Ht=st,wo=D.has,Co=D.isValidEntityCode,Pt=D.fromCodePoint,Eo=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,qo=/^&([a-z][a-z0-9]{1,31});/i,Ao=function(e,r){var o,s,c,l,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==38||i+1>=a)return!1;if(o=e.src.charCodeAt(i+1),o===35){if(c=e.src.slice(i).match(Eo),c)return r||(s=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),l=e.push("text_special","",0),l.content=Co(s)?Pt(s):Pt(65533),l.markup=c[0],l.info="entity"),e.pos+=c[0].length,!0}else if(c=e.src.slice(i).match(qo),c&&wo(Ht,c[1]))return r||(l=e.push("text_special","",0),l.content=Ht[c[1]],l.markup=c[0],l.info="entity"),e.pos+=c[0].length,!0;return!1};function Ut(n,e){var r,o,s,c,l,i,a,u,d={},h=e.length;if(h){var p=0,f=-2,m=[];for(r=0;r<h;r++)if(s=e[r],m.push(0),(e[p].marker!==s.marker||f!==s.token-1)&&(p=r),f=s.token,s.length=s.length||0,!!s.close){for(d.hasOwnProperty(s.marker)||(d[s.marker]=[-1,-1,-1,-1,-1,-1]),l=d[s.marker][(s.open?3:0)+s.length%3],o=p-m[p]-1,i=o;o>l;o-=m[o]+1)if(c=e[o],c.marker===s.marker&&c.open&&c.end<0&&(a=!1,(c.close||s.open)&&(c.length+s.length)%3===0&&(c.length%3!==0||s.length%3!==0)&&(a=!0),!a)){u=o>0&&!e[o-1].open?m[o-1]+1:0,m[r]=r-o+u,m[o]=u,s.open=!1,c.end=r,c.close=!1,i=-1,f=-2;break}i!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=i)}}}var Do=function(e){var r,o=e.tokens_meta,s=e.tokens_meta.length;for(Ut(e,e.delimiters),r=0;r<s;r++)o[r]&&o[r].delimiters&&Ut(e,o[r].delimiters)},Vo=function(e){var r,o,s=0,c=e.tokens,l=e.tokens.length;for(r=o=0;r<l;r++)c[r].nesting<0&&s--,c[r].level=s,c[r].nesting>0&&s++,c[r].type==="text"&&r+1<l&&c[r+1].type==="text"?c[r+1].content=c[r].content+c[r+1].content:(r!==o&&(c[o]=c[r]),o++);r!==o&&(c.length=o)},je=Fe,Ot=D.isWhiteSpace,jt=D.isPunctChar,Gt=D.isMdAsciiPunct;function le(n,e,r,o){this.src=n,this.env=r,this.md=e,this.tokens=o,this.tokens_meta=Array(o.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}le.prototype.pushPending=function(){var n=new je("text","",0);return n.content=this.pending,n.level=this.pendingLevel,this.tokens.push(n),this.pending="",n},le.prototype.push=function(n,e,r){this.pending&&this.pushPending();var o=new je(n,e,r),s=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(s),o},le.prototype.scanDelims=function(n,e){var r=n,o,s,c,l,i,a,u,d,h,p=!0,f=!0,m=this.posMax,_=this.src.charCodeAt(n);for(o=n>0?this.src.charCodeAt(n-1):32;r<m&&this.src.charCodeAt(r)===_;)r++;return c=r-n,s=r<m?this.src.charCodeAt(r):32,u=Gt(o)||jt(String.fromCharCode(o)),h=Gt(s)||jt(String.fromCharCode(s)),a=Ot(o),d=Ot(s),d?p=!1:h&&(a||u||(p=!1)),a?f=!1:u&&(d||h||(f=!1)),e?(l=p,i=f):(l=p&&(!f||u),i=f&&(!p||h)),{can_open:l,can_close:i,length:c}},le.prototype.Token=je;var Lo=le,Zt=Re,Ge=[["text",to],["linkify",no],["newline",so],["escape",io],["backticks",lo],["strikethrough",Ee.tokenize],["emphasis",qe.tokenize],["link",uo],["image",fo],["autolink",go],["html_inline",yo],["entity",Ao]],Ze=[["balance_pairs",Do],["strikethrough",Ee.postProcess],["emphasis",qe.postProcess],["fragments_join",Vo]];function ae(){var n;for(this.ruler=new Zt,n=0;n<Ge.length;n++)this.ruler.push(Ge[n][0],Ge[n][1]);for(this.ruler2=new Zt,n=0;n<Ze.length;n++)this.ruler2.push(Ze[n][0],Ze[n][1])}ae.prototype.skipToken=function(n){var e,r,o=n.pos,s=this.ruler.getRules(""),c=s.length,l=n.md.options.maxNesting,i=n.cache;if(typeof i[o]<"u"){n.pos=i[o];return}if(n.level<l)for(r=0;r<c&&(n.level++,e=s[r](n,!0),n.level--,!e);r++);else n.pos=n.posMax;e||n.pos++,i[o]=n.pos},ae.prototype.tokenize=function(n){for(var e,r,o=this.ruler.getRules(""),s=o.length,c=n.posMax,l=n.md.options.maxNesting;n.pos<c;){if(n.level<l)for(r=0;r<s&&(e=o[r](n,!1),!e);r++);if(e){if(n.pos>=c)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()},ae.prototype.parse=function(n,e,r,o){var s,c,l,i=new this.State(n,e,r,o);for(this.tokenize(i),c=this.ruler2.getRules(""),l=c.length,s=0;s<l;s++)c[s](i)},ae.prototype.State=Lo;var So=ae,We,Wt;function No(){return Wt||(Wt=1,We=function(n){var e={};n=n||{},e.src_Any=ht().source,e.src_Cc=gt().source,e.src_Z=kt().source,e.src_P=Ne.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><|]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!"+(n["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),We}function Je(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){r&&Object.keys(r).forEach(function(o){n[o]=r[o]})}),n}function Ae(n){return Object.prototype.toString.call(n)}function Bo(n){return Ae(n)==="[object String]"}function To(n){return Ae(n)==="[object Object]"}function vo(n){return Ae(n)==="[object RegExp]"}function Jt(n){return Ae(n)==="[object Function]"}function $o(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Yt={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ro(n){return Object.keys(n||{}).reduce(function(e,r){return e||Yt.hasOwnProperty(r)},!1)}var Fo={"http:":{validate:function(n,e,r){var o=n.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(o)?o.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,r){var o=n.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(o)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:o.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,r){var o=n.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(o)?o.match(r.re.mailto)[0].length:0}}},zo="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]",Io="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Mo(n){n.__index__=-1,n.__text_cache__=""}function Ho(n){return function(e,r){var o=e.slice(r);return n.test(o)?o.match(n)[0].length:0}}function Qt(){return function(n,e){e.normalize(n)}}function De(n){var e=n.re=No()(n.__opts__),r=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||r.push(zo),r.push(e.src_xn),e.src_tlds=r.join("|");function o(i){return i.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var s=[];n.__compiled__={};function c(i,a){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+a)}Object.keys(n.__schemas__).forEach(function(i){var a=n.__schemas__[i];if(a!==null){var u={validate:null,link:null};if(n.__compiled__[i]=u,To(a)){vo(a.validate)?u.validate=Ho(a.validate):Jt(a.validate)?u.validate=a.validate:c(i,a),Jt(a.normalize)?u.normalize=a.normalize:a.normalize?c(i,a):u.normalize=Qt();return}if(Bo(a)){s.push(i);return}c(i,a)}}),s.forEach(function(i){n.__compiled__[n.__schemas__[i]]&&(n.__compiled__[i].validate=n.__compiled__[n.__schemas__[i]].validate,n.__compiled__[i].normalize=n.__compiled__[n.__schemas__[i]].normalize)}),n.__compiled__[""]={validate:null,normalize:Qt()};var l=Object.keys(n.__compiled__).filter(function(i){return i.length>0&&n.__compiled__[i]}).map($o).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),Mo(n)}function Po(n,e){var r=n.__index__,o=n.__last_index__,s=n.__text_cache__.slice(r,o);this.schema=n.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=o+e,this.raw=s,this.text=s,this.url=s}function Ye(n,e){var r=new Po(n,e);return n.__compiled__[r.schema].normalize(r,n),r}function v(n,e){if(!(this instanceof v))return new v(n,e);e||Ro(n)&&(e=n,n={}),this.__opts__=Je({},Yt,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Je({},Fo,n),this.__compiled__={},this.__tlds__=Io,this.__tlds_replaced__=!1,this.re={},De(this)}v.prototype.add=function(e,r){return this.__schemas__[e]=r,De(this),this},v.prototype.set=function(e){return this.__opts__=Je(this.__opts__,e),this},v.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,o,s,c,l,i,a,u,d;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(c=this.testSchemaAt(e,r[2],a.lastIndex),c){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(l=o.index+o[1].length,(this.__index__<0||l<this.__index__)&&(this.__schema__="",this.__index__=l,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(s=e.match(this.re.email_fuzzy))!==null&&(l=s.index+s[1].length,i=s.index+s[0].length,(this.__index__<0||l<this.__index__||l===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=i))),this.__index__>=0},v.prototype.pretest=function(e){return this.re.pretest.test(e)},v.prototype.testSchemaAt=function(e,r,o){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,o,this):0},v.prototype.match=function(e){var r=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(Ye(this,r)),r=this.__last_index__);for(var s=r?e.slice(r):e;this.test(s);)o.push(Ye(this,r)),s=s.slice(this.__last_index__),r+=this.__last_index__;return o.length?o:null},v.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var r=this.re.schema_at_start.exec(e);if(!r)return null;var o=this.testSchemaAt(e,r[2],r[0].length);return o?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o,Ye(this,0)):null},v.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,s,c){return o!==c[s-1]}).reverse(),De(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,De(this),this)},v.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},v.prototype.onCompile=function(){};var Uo=v;const ne=2147483647,H=36,Qe=1,ue=26,Oo=38,jo=700,Kt=72,Xt=128,er="-",Go=/^xn--/,Zo=/[^\0-\x7F]/,Wo=/[\x2E\u3002\uFF0E\uFF61]/g,Jo={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ke=H-Qe,P=Math.floor,Xe=String.fromCharCode;function O(n){throw new RangeError(Jo[n])}function Yo(n,e){const r=[];let o=n.length;for(;o--;)r[o]=e(n[o]);return r}function tr(n,e){const r=n.split("@");let o="";r.length>1&&(o=r[0]+"@",n=r[1]),n=n.replace(Wo,".");const s=n.split("."),c=Yo(s,e).join(".");return o+c}function et(n){const e=[];let r=0;const o=n.length;for(;r<o;){const s=n.charCodeAt(r++);if(s>=55296&&s<=56319&&r<o){const c=n.charCodeAt(r++);(c&64512)==56320?e.push(((s&1023)<<10)+(c&1023)+65536):(e.push(s),r--)}else e.push(s)}return e}const rr=n=>String.fromCodePoint(...n),Qo=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:H},nr=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},or=function(n,e,r){let o=0;for(n=r?P(n/jo):n>>1,n+=P(n/e);n>Ke*ue>>1;o+=H)n=P(n/Ke);return P(o+(Ke+1)*n/(n+Oo))},tt=function(n){const e=[],r=n.length;let o=0,s=Xt,c=Kt,l=n.lastIndexOf(er);l<0&&(l=0);for(let i=0;i<l;++i)n.charCodeAt(i)>=128&&O("not-basic"),e.push(n.charCodeAt(i));for(let i=l>0?l+1:0;i<r;){const a=o;for(let d=1,h=H;;h+=H){i>=r&&O("invalid-input");const p=Qo(n.charCodeAt(i++));p>=H&&O("invalid-input"),p>P((ne-o)/d)&&O("overflow"),o+=p*d;const f=h<=c?Qe:h>=c+ue?ue:h-c;if(p<f)break;const m=H-f;d>P(ne/m)&&O("overflow"),d*=m}const u=e.length+1;c=or(o-a,u,a==0),P(o/u)>ne-s&&O("overflow"),s+=P(o/u),o%=u,e.splice(o++,0,s)}return String.fromCodePoint(...e)},rt=function(n){const e=[];n=et(n);const r=n.length;let o=Xt,s=0,c=Kt;for(const a of n)a<128&&e.push(Xe(a));const l=e.length;let i=l;for(l&&e.push(er);i<r;){let a=ne;for(const d of n)d>=o&&d<a&&(a=d);const u=i+1;a-o>P((ne-s)/u)&&O("overflow"),s+=(a-o)*u,o=a;for(const d of n)if(d<o&&++s>ne&&O("overflow"),d===o){let h=s;for(let p=H;;p+=H){const f=p<=c?Qe:p>=c+ue?ue:p-c;if(h<f)break;const m=h-f,_=H-f;e.push(Xe(nr(f+m%_,0))),h=P(m/_)}e.push(Xe(nr(h,0))),c=or(s,u,i===l),s=0,++i}++s,++o}return e.join("")},sr=function(n){return tr(n,function(e){return Go.test(e)?tt(e.slice(4).toLowerCase()):e})},cr=function(n){return tr(n,function(e){return Zo.test(e)?"xn--"+rt(e):e})},Ko=Ar(Object.freeze(Object.defineProperty({__proto__:null,decode:tt,default:{version:"2.1.0",ucs2:{decode:et,encode:rr},decode:tt,encode:rt,toASCII:cr,toUnicode:sr},encode:rt,toASCII:cr,toUnicode:sr,ucs2decode:et,ucs2encode:rr},Symbol.toStringTag,{value:"Module"})));var Xo={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},es={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"]}}},ts={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"]}}},de=D,rs=be,ns=Yr,os=yn,ss=Xn,cs=So,is=Uo,Y=X,ir=Ko,ls={default:Xo,zero:es,commonmark:ts},as=/^(vbscript|javascript|file|data):/,us=/^data:image\/(gif|png|jpeg|webp);/;function ds(n){var e=n.trim().toLowerCase();return as.test(e)?!!us.test(e):!0}var lr=["http:","https:","mailto:"];function ps(n){var e=Y.parse(n,!0);if(e.hostname&&(!e.protocol||lr.indexOf(e.protocol)>=0))try{e.hostname=ir.toASCII(e.hostname)}catch{}return Y.encode(Y.format(e))}function fs(n){var e=Y.parse(n,!0);if(e.hostname&&(!e.protocol||lr.indexOf(e.protocol)>=0))try{e.hostname=ir.toUnicode(e.hostname)}catch{}return Y.decode(Y.format(e),Y.decode.defaultChars+"%")}function $(n,e){if(!(this instanceof $))return new $(n,e);e||de.isString(n)||(e=n||{},n="default"),this.inline=new cs,this.block=new ss,this.core=new os,this.renderer=new ns,this.linkify=new is,this.validateLink=ds,this.normalizeLink=ps,this.normalizeLinkText=fs,this.utils=de,this.helpers=de.assign({},rs),this.options={},this.configure(n),e&&this.set(e)}$.prototype.set=function(n){return de.assign(this.options,n),this},$.prototype.configure=function(n){var e=this,r;if(de.isString(n)&&(r=n,n=ls[r],!n))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(o){n.components[o].rules&&e[o].ruler.enableOnly(n.components[o].rules),n.components[o].rules2&&e[o].ruler2.enableOnly(n.components[o].rules2)}),this},$.prototype.enable=function(n,e){var r=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){r=r.concat(this[s].ruler.enable(n,!0))},this),r=r.concat(this.inline.ruler2.enable(n,!0));var o=n.filter(function(s){return r.indexOf(s)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},$.prototype.disable=function(n,e){var r=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){r=r.concat(this[s].ruler.disable(n,!0))},this),r=r.concat(this.inline.ruler2.disable(n,!0));var o=n.filter(function(s){return r.indexOf(s)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},$.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this},$.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var r=new this.core.State(n,this,e);return this.core.process(r),r.tokens},$.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)},$.prototype.parseInline=function(n,e){var r=new this.core.State(n,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens},$.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var hs=$,ms=hs;const gs=qr(ms);var bs=new gs({breaks:!0,linkify:!0,typographer:!0});function Q(n){return bs.render(n)}const _s=["width","height","viewBox"],ks=["d"],S=t.defineComponent({__name:"EpIcon",props:{size:{default:32},viewBox:{default:"0 0 24 24"},iconPath:{},extraClass:{}},setup(n){const e=n,{size:r,viewBox:o,iconPath:s,extraClass:c}=t.toRefs(e);return(l,i)=>(t.openBlock(),t.createElementBlock("svg",{width:t.unref(r),height:t.unref(r),viewBox:t.unref(o),color:"currentColor",fill:"currentColor",class:t.normalizeClass(`inline ${t.unref(c)}`)},[t.createElementVNode("path",{d:t.unref(s)},null,8,ks)],10,_s))}}),xs={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 F(n,e){const o=`${n}${e}`.replace(/-/g,"");return xs[o]}const ys={compact:"p-0",default:"p-4",comfortable:"p-8"},ws=["src"],Cs={key:0,class:"mb-2 flex items-center justify-between"},Es={class:"text-2xl font-bold"},qs={key:0},Ve=t.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(n){const e=n,r=t.computed(()=>e.flat?"":"shadow-lg"),o=t.computed(()=>e.outlined&&e.color?`border solid ${F("border",e.color)}`:e.outlined?"border solid border-grey-700":""),s=t.computed(()=>e.color&&!e.outlined?`${F("bg",e.color)} text-white`:"bg-white text-black"),c=t.computed(()=>e.color&&!e.outlined?"text-white":"text-gray-600"),l=t.computed(()=>ys[e.density]),i=t.computed(()=>`${r.value} ${o.value} ${s.value} ${e.maxWidth} my-4 `),{title:a,subtitle:u,icon:d,src:h,density:p}=t.toRefs(e);return(f,m)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`${i.value} rounded-md`)},[t.unref(h)?(t.openBlock(),t.createElementBlock("img",{key:0,src:t.unref(h),class:"w-full rounded-t-md",alt:"header card"},null,8,ws)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(l.value)},[t.unref(a)||t.unref(u)?(t.openBlock(),t.createElementBlock("div",Cs,[t.createElementVNode("div",null,[t.createElementVNode("h3",Es,t.toDisplayString(t.unref(a)),1),t.createElementVNode("h4",{class:t.normalizeClass(`text-xs ${c.value}`)},t.toDisplayString(t.unref(u)),3)]),t.unref(d)?(t.openBlock(),t.createElementBlock("div",qs,[t.createVNode(S,{"icon-path":t.unref(d)},null,8,["icon-path"])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(f.$slots,"card-header"),t.renderSlot(f.$slots,"default"),t.renderSlot(f.$slots,"card-actions")],2)],2))}}),As=["onClick"],Ds={class:"mx-auto"},Le=t.defineComponent({__name:"EpModal",props:{modelValue:{type:Boolean,default:!1},title:{default:null},subtitle:{default:null},icon:{default:null},persistent:{type:Boolean,default:!1},size:{default:"default"}},emits:["update:modelValue"],setup(n,{emit:e}){const r=n,o={compact:"w-[40%]",default:"w-[75%]",comfortable:"w-[85%]"},s=()=>{r.persistent||e("update:modelValue",!1)},c=t.computed(()=>o[r.size]),{title:l,subtitle:i,icon:a}=t.toRefs(r);return(u,d)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[u.modelValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-mask",onClick:t.withModifiers(s,["self"])},[t.createElementVNode("div",{class:t.normalizeClass(`modal-container ${c.value}`)},[t.createElementVNode("div",Ds,[t.createVNode(Ve,{title:t.unref(l),subtitle:t.unref(i),icon:t.unref(a)},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},8,["title","subtitle","icon"])])],2)],8,As)):t.createCommentVNode("",!0)]),_:3})]))}}),VI="",oe=t.defineComponent({__name:"EpDivider",props:{color:{default:null},size:{default:"border"},inset:{type:Boolean,default:!1},icon:{default:null},margin:{default:"my-2"}},setup(n){const e=n,r=t.computed(()=>e.color?`${e.size} ${F("border",e.color)}`:`${e.size} border-grey-700`),o=t.computed(()=>`${r.value} ${e.inset?"w-9/12 mx-auto":"w-full"} ${e.margin}`);return(s,c)=>(t.openBlock(),t.createElementBlock("hr",{class:t.normalizeClass(`h-px ${o.value}`)},null,2))}}),Vs={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"}},Ls={small:"px-2 py-1 text-sm",medium:"px-4 py-2",large:"px-8 py-4 text-lg"},Ss=["disabled"],Ns=["disabled","href"],z=t.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:{}},setup(n){const e=n,r=t.computed(()=>e.outlined?"":e.color),o=t.computed(()=>e.outlined?"outlined":"default"),s=t.computed(()=>{var d;return e.text?`uppercase ${F("text",e.type)} hover:${F("bg",e.type+"light")}`:`${(d=Vs[e.type])==null?void 0:d[o.value]}`}),c=t.computed(()=>`
|
|
12
|
+
`},Ie.text=function(b,r){return Ke(b[r].content)},Ie.html_block=function(b,r){return b[r].content},Ie.html_inline=function(b,r){return b[r].content};function nt(){this.rules=Ca({},Ie)}nt.prototype.renderAttrs=function(r){var x,v,A;if(!r.attrs)return"";for(A="",x=0,v=r.attrs.length;x<v;x++)A+=" "+Ke(r.attrs[x][0])+'="'+Ke(r.attrs[x][1])+'"';return A},nt.prototype.renderToken=function(r,x,v){var A,C="",T=!1,S=r[x];return S.hidden?"":(S.block&&S.nesting!==-1&&x&&r[x-1].hidden&&(C+=`
|
|
13
|
+
`),C+=(S.nesting===-1?"</":"<")+S.tag,C+=this.renderAttrs(S),S.nesting===0&&v.xhtmlOut&&(C+=" /"),S.block&&(T=!0,S.nesting===1&&x+1<r.length&&(A=r[x+1],(A.type==="inline"||A.hidden||A.nesting===-1&&A.tag===S.tag)&&(T=!1))),C+=T?`>
|
|
14
|
+
`:">",C)},nt.prototype.renderInline=function(b,r,x){for(var v,A="",C=this.rules,T=0,S=b.length;T<S;T++)v=b[T].type,typeof C[v]<"u"?A+=C[v](b,T,r,x,this):A+=this.renderToken(b,T,r);return A},nt.prototype.renderInlineAsText=function(b,r,x){for(var v="",A=0,C=b.length;A<C;A++)b[A].type==="text"?v+=b[A].content:b[A].type==="image"?v+=this.renderInlineAsText(b[A].children,r,x):b[A].type==="softbreak"&&(v+=`
|
|
15
|
+
`);return v},nt.prototype.render=function(b,r,x){var v,A,C,T="",S=this.rules;for(v=0,A=b.length;v<A;v++)C=b[v].type,C==="inline"?T+=this.renderInline(b[v].children,r,x):typeof S[C]<"u"?T+=S[b[v].type](b,v,r,x,this):T+=this.renderToken(b,v,r,x);return T};var Sa=nt;function Te(){this.__rules__=[],this.__cache__=null}Te.prototype.__find__=function(b){for(var r=0;r<this.__rules__.length;r++)if(this.__rules__[r].name===b)return r;return-1},Te.prototype.__compile__=function(){var b=this,r=[""];b.__rules__.forEach(function(x){x.enabled&&x.alt.forEach(function(v){r.indexOf(v)<0&&r.push(v)})}),b.__cache__={},r.forEach(function(x){b.__cache__[x]=[],b.__rules__.forEach(function(v){v.enabled&&(x&&v.alt.indexOf(x)<0||b.__cache__[x].push(v.fn))})})},Te.prototype.at=function(b,r,x){var v=this.__find__(b),A=x||{};if(v===-1)throw new Error("Parser rule not found: "+b);this.__rules__[v].fn=r,this.__rules__[v].alt=A.alt||[],this.__cache__=null},Te.prototype.before=function(b,r,x,v){var A=this.__find__(b),C=v||{};if(A===-1)throw new Error("Parser rule not found: "+b);this.__rules__.splice(A,0,{name:r,enabled:!0,fn:x,alt:C.alt||[]}),this.__cache__=null},Te.prototype.after=function(b,r,x,v){var A=this.__find__(b),C=v||{};if(A===-1)throw new Error("Parser rule not found: "+b);this.__rules__.splice(A+1,0,{name:r,enabled:!0,fn:x,alt:C.alt||[]}),this.__cache__=null},Te.prototype.push=function(b,r,x){var v=x||{};this.__rules__.push({name:b,enabled:!0,fn:r,alt:v.alt||[]}),this.__cache__=null},Te.prototype.enable=function(b,r){Array.isArray(b)||(b=[b]);var x=[];return b.forEach(function(v){var A=this.__find__(v);if(A<0){if(r)return;throw new Error("Rules manager: invalid rule name "+v)}this.__rules__[A].enabled=!0,x.push(v)},this),this.__cache__=null,x},Te.prototype.enableOnly=function(b,r){Array.isArray(b)||(b=[b]),this.__rules__.forEach(function(x){x.enabled=!1}),this.enable(b,r)},Te.prototype.disable=function(b,r){Array.isArray(b)||(b=[b]);var x=[];return b.forEach(function(v){var A=this.__find__(v);if(A<0){if(r)return;throw new Error("Rules manager: invalid rule name "+v)}this.__rules__[A].enabled=!1,x.push(v)},this),this.__cache__=null,x},Te.prototype.getRules=function(b){return this.__cache__===null&&this.__compile__(),this.__cache__[b]||[]};var Yt=Te,_a=/\r\n?|\n/g,Ea=/\0/g,La=function(r){var x;x=r.src.replace(_a,`
|
|
16
|
+
`),x=x.replace(Ea,"�"),r.src=x},Ta=function(r){var x;r.inlineMode?(x=new r.Token("inline","",0),x.content=r.src,x.map=[0,1],x.children=[],r.tokens.push(x)):r.md.block.parse(r.src,r.md,r.env,r.tokens)},Da=function(r){var x=r.tokens,v,A,C;for(A=0,C=x.length;A<C;A++)v=x[A],v.type==="inline"&&r.md.inline.parse(v.content,r.md,r.env,v.children)},Pa=ue.arrayReplaceAt;function Ia(b){return/^<a[>\s]/i.test(b)}function za(b){return/^<\/a\s*>/i.test(b)}var Ma=function(r){var x,v,A,C,T,S,P,N,B,X,H,O,U,q,te,J,R=r.tokens,$;if(r.md.options.linkify){for(v=0,A=R.length;v<A;v++)if(!(R[v].type!=="inline"||!r.md.linkify.pretest(R[v].content)))for(C=R[v].children,U=0,x=C.length-1;x>=0;x--){if(S=C[x],S.type==="link_close"){for(x--;C[x].level!==S.level&&C[x].type!=="link_open";)x--;continue}if(S.type==="html_inline"&&(Ia(S.content)&&U>0&&U--,za(S.content)&&U++),!(U>0)&&S.type==="text"&&r.md.linkify.test(S.content)){for(B=S.content,$=r.md.linkify.match(B),P=[],O=S.level,H=0,$.length>0&&$[0].index===0&&x>0&&C[x-1].type==="text_special"&&($=$.slice(1)),N=0;N<$.length;N++)q=$[N].url,te=r.md.normalizeLink(q),r.md.validateLink(te)&&(J=$[N].text,$[N].schema?$[N].schema==="mailto:"&&!/^mailto:/i.test(J)?J=r.md.normalizeLinkText("mailto:"+J).replace(/^mailto:/,""):J=r.md.normalizeLinkText(J):J=r.md.normalizeLinkText("http://"+J).replace(/^http:\/\//,""),X=$[N].index,X>H&&(T=new r.Token("text","",0),T.content=B.slice(H,X),T.level=O,P.push(T)),T=new r.Token("link_open","a",1),T.attrs=[["href",te]],T.level=O++,T.markup="linkify",T.info="auto",P.push(T),T=new r.Token("text","",0),T.content=J,T.level=O,P.push(T),T=new r.Token("link_close","a",-1),T.level=--O,T.markup="linkify",T.info="auto",P.push(T),H=$[N].lastIndex);H<B.length&&(T=new r.Token("text","",0),T.content=B.slice(H),T.level=O,P.push(T)),R[v].children=C=Pa(C,x,P)}}}},Vs=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Na=/\((c|tm|r)\)/i,Ba=/\((c|tm|r)\)/ig,Ra={c:"©",r:"®",tm:"™"};function Fa(b,r){return Ra[r.toLowerCase()]}function Va(b){var r,x,v=0;for(r=b.length-1;r>=0;r--)x=b[r],x.type==="text"&&!v&&(x.content=x.content.replace(Ba,Fa)),x.type==="link_open"&&x.info==="auto"&&v--,x.type==="link_close"&&x.info==="auto"&&v++}function Ha(b){var r,x,v=0;for(r=b.length-1;r>=0;r--)x=b[r],x.type==="text"&&!v&&Vs.test(x.content)&&(x.content=x.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–")),x.type==="link_open"&&x.info==="auto"&&v--,x.type==="link_close"&&x.info==="auto"&&v++}var Oa=function(r){var x;if(r.md.options.typographer)for(x=r.tokens.length-1;x>=0;x--)r.tokens[x].type==="inline"&&(Na.test(r.tokens[x].content)&&Va(r.tokens[x].children),Vs.test(r.tokens[x].content)&&Ha(r.tokens[x].children))},Hs=ue.isWhiteSpace,Os=ue.isPunctChar,Xs=ue.isMdAsciiPunct,Xa=/['"]/,Ys=/['"]/g,Ws="’";function wt(b,r,x){return b.slice(0,r)+x+b.slice(r+1)}function Ya(b,r){var x,v,A,C,T,S,P,N,B,X,H,O,U,q,te,J,R,$,ee,Y,K;for(ee=[],x=0;x<b.length;x++){for(v=b[x],P=b[x].level,R=ee.length-1;R>=0&&!(ee[R].level<=P);R--);if(ee.length=R+1,v.type==="text"){A=v.content,T=0,S=A.length;e:for(;T<S&&(Ys.lastIndex=T,C=Ys.exec(A),!!C);){if(te=J=!0,T=C.index+1,$=C[0]==="'",B=32,C.index-1>=0)B=A.charCodeAt(C.index-1);else for(R=x-1;R>=0&&!(b[R].type==="softbreak"||b[R].type==="hardbreak");R--)if(b[R].content){B=b[R].content.charCodeAt(b[R].content.length-1);break}if(X=32,T<S)X=A.charCodeAt(T);else for(R=x+1;R<b.length&&!(b[R].type==="softbreak"||b[R].type==="hardbreak");R++)if(b[R].content){X=b[R].content.charCodeAt(0);break}if(H=Xs(B)||Os(String.fromCharCode(B)),O=Xs(X)||Os(String.fromCharCode(X)),U=Hs(B),q=Hs(X),q?te=!1:O&&(U||H||(te=!1)),U?J=!1:H&&(q||O||(J=!1)),X===34&&C[0]==='"'&&B>=48&&B<=57&&(J=te=!1),te&&J&&(te=H,J=O),!te&&!J){$&&(v.content=wt(v.content,C.index,Ws));continue}if(J){for(R=ee.length-1;R>=0&&(N=ee[R],!(ee[R].level<P));R--)if(N.single===$&&ee[R].level===P){N=ee[R],$?(Y=r.md.options.quotes[2],K=r.md.options.quotes[3]):(Y=r.md.options.quotes[0],K=r.md.options.quotes[1]),v.content=wt(v.content,C.index,K),b[N.token].content=wt(b[N.token].content,N.pos,Y),T+=K.length-1,N.token===x&&(T+=Y.length-1),A=v.content,S=A.length,ee.length=R;continue e}}te?ee.push({token:x,pos:C.index,single:$,level:P}):J&&$&&(v.content=wt(v.content,C.index,Ws))}}}}var Wa=function(r){var x;if(r.md.options.typographer)for(x=r.tokens.length-1;x>=0;x--)r.tokens[x].type!=="inline"||!Xa.test(r.tokens[x].content)||Ya(r.tokens[x].children,r)},Ga=function(r){var x,v,A,C,T,S,P=r.tokens;for(x=0,v=P.length;x<v;x++)if(P[x].type==="inline"){for(A=P[x].children,T=A.length,C=0;C<T;C++)A[C].type==="text_special"&&(A[C].type="text");for(C=S=0;C<T;C++)A[C].type==="text"&&C+1<T&&A[C+1].type==="text"?A[C+1].content=A[C].content+A[C+1].content:(C!==S&&(A[S]=A[C]),S++);C!==S&&(A.length=S)}};function ot(b,r,x){this.type=b,this.tag=r,this.attrs=null,this.map=null,this.nesting=x,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ot.prototype.attrIndex=function(r){var x,v,A;if(!this.attrs)return-1;for(x=this.attrs,v=0,A=x.length;v<A;v++)if(x[v][0]===r)return v;return-1},ot.prototype.attrPush=function(r){this.attrs?this.attrs.push(r):this.attrs=[r]},ot.prototype.attrSet=function(r,x){var v=this.attrIndex(r),A=[r,x];v<0?this.attrPush(A):this.attrs[v]=A},ot.prototype.attrGet=function(r){var x=this.attrIndex(r),v=null;return x>=0&&(v=this.attrs[x][1]),v},ot.prototype.attrJoin=function(r,x){var v=this.attrIndex(r);v<0?this.attrPush([r,x]):this.attrs[v][1]=this.attrs[v][1]+" "+x};var Wt=ot,ja=Wt;function Gs(b,r,x){this.src=b,this.env=x,this.tokens=[],this.inlineMode=!1,this.md=r}Gs.prototype.Token=ja;var Ua=Gs,Za=Yt,Gt=[["normalize",La],["block",Ta],["inline",Da],["linkify",Ma],["replacements",Oa],["smartquotes",Wa],["text_join",Ga]];function jt(){this.ruler=new Za;for(var b=0;b<Gt.length;b++)this.ruler.push(Gt[b][0],Gt[b][1])}jt.prototype.process=function(b){var r,x,v;for(v=this.ruler.getRules(""),r=0,x=v.length;r<x;r++)v[r](b)},jt.prototype.State=Ua;var Ja=jt,Ut=ue.isSpace;function Zt(b,r){var x=b.bMarks[r]+b.tShift[r],v=b.eMarks[r];return b.src.slice(x,v)}function js(b){var r=[],x=0,v=b.length,A,C=!1,T=0,S="";for(A=b.charCodeAt(x);x<v;)A===124&&(C?(S+=b.substring(T,x-1),T=x):(r.push(S+b.substring(T,x)),S="",T=x+1)),C=A===92,x++,A=b.charCodeAt(x);return r.push(S+b.substring(T)),r}var Qa=function(r,x,v,A){var C,T,S,P,N,B,X,H,O,U,q,te,J,R,$,ee,Y,K;if(x+2>v||(B=x+1,r.sCount[B]<r.blkIndent)||r.sCount[B]-r.blkIndent>=4||(S=r.bMarks[B]+r.tShift[B],S>=r.eMarks[B])||(Y=r.src.charCodeAt(S++),Y!==124&&Y!==45&&Y!==58)||S>=r.eMarks[B]||(K=r.src.charCodeAt(S++),K!==124&&K!==45&&K!==58&&!Ut(K))||Y===45&&Ut(K))return!1;for(;S<r.eMarks[B];){if(C=r.src.charCodeAt(S),C!==124&&C!==45&&C!==58&&!Ut(C))return!1;S++}for(T=Zt(r,x+1),X=T.split("|"),U=[],P=0;P<X.length;P++){if(q=X[P].trim(),!q){if(P===0||P===X.length-1)continue;return!1}if(!/^:?-+:?$/.test(q))return!1;q.charCodeAt(q.length-1)===58?U.push(q.charCodeAt(0)===58?"center":"right"):q.charCodeAt(0)===58?U.push("left"):U.push("")}if(T=Zt(r,x).trim(),T.indexOf("|")===-1||r.sCount[x]-r.blkIndent>=4||(X=js(T),X.length&&X[0]===""&&X.shift(),X.length&&X[X.length-1]===""&&X.pop(),H=X.length,H===0||H!==U.length))return!1;if(A)return!0;for(R=r.parentType,r.parentType="table",ee=r.md.block.ruler.getRules("blockquote"),O=r.push("table_open","table",1),O.map=te=[x,0],O=r.push("thead_open","thead",1),O.map=[x,x+1],O=r.push("tr_open","tr",1),O.map=[x,x+1],P=0;P<X.length;P++)O=r.push("th_open","th",1),U[P]&&(O.attrs=[["style","text-align:"+U[P]]]),O=r.push("inline","",0),O.content=X[P].trim(),O.children=[],O=r.push("th_close","th",-1);for(O=r.push("tr_close","tr",-1),O=r.push("thead_close","thead",-1),B=x+2;B<v&&!(r.sCount[B]<r.blkIndent);B++){for($=!1,P=0,N=ee.length;P<N;P++)if(ee[P](r,B,v,!0)){$=!0;break}if($||(T=Zt(r,B).trim(),!T)||r.sCount[B]-r.blkIndent>=4)break;for(X=js(T),X.length&&X[0]===""&&X.shift(),X.length&&X[X.length-1]===""&&X.pop(),B===x+2&&(O=r.push("tbody_open","tbody",1),O.map=J=[x+2,0]),O=r.push("tr_open","tr",1),O.map=[B,B+1],P=0;P<H;P++)O=r.push("td_open","td",1),U[P]&&(O.attrs=[["style","text-align:"+U[P]]]),O=r.push("inline","",0),O.content=X[P]?X[P].trim():"",O.children=[],O=r.push("td_close","td",-1);O=r.push("tr_close","tr",-1)}return J&&(O=r.push("tbody_close","tbody",-1),J[1]=B),O=r.push("table_close","table",-1),te[1]=B,r.parentType=R,r.line=B,!0},Ka=function(r,x,v){var A,C,T;if(r.sCount[x]-r.blkIndent<4)return!1;for(C=A=x+1;A<v;){if(r.isEmpty(A)){A++;continue}if(r.sCount[A]-r.blkIndent>=4){A++,C=A;continue}break}return r.line=C,T=r.push("code_block","code",0),T.content=r.getLines(x,C,4+r.blkIndent,!1)+`
|
|
17
|
+
`,T.map=[x,r.line],!0},qa=function(r,x,v,A){var C,T,S,P,N,B,X,H=!1,O=r.bMarks[x]+r.tShift[x],U=r.eMarks[x];if(r.sCount[x]-r.blkIndent>=4||O+3>U||(C=r.src.charCodeAt(O),C!==126&&C!==96)||(N=O,O=r.skipChars(O,C),T=O-N,T<3)||(X=r.src.slice(N,O),S=r.src.slice(O,U),C===96&&S.indexOf(String.fromCharCode(C))>=0))return!1;if(A)return!0;for(P=x;P++,!(P>=v||(O=N=r.bMarks[P]+r.tShift[P],U=r.eMarks[P],O<U&&r.sCount[P]<r.blkIndent));)if(r.src.charCodeAt(O)===C&&!(r.sCount[P]-r.blkIndent>=4)&&(O=r.skipChars(O,C),!(O-N<T)&&(O=r.skipSpaces(O),!(O<U)))){H=!0;break}return T=r.sCount[x],r.line=P+(H?1:0),B=r.push("fence","code",0),B.info=S,B.content=r.getLines(x+1,P,T,!0),B.markup=X,B.map=[x,r.line],!0},Us=ue.isSpace,$a=function(r,x,v,A){var C,T,S,P,N,B,X,H,O,U,q,te,J,R,$,ee,Y,K,ce,be,Re=r.lineMax,he=r.bMarks[x]+r.tShift[x],ge=r.eMarks[x];if(r.sCount[x]-r.blkIndent>=4||r.src.charCodeAt(he++)!==62)return!1;if(A)return!0;for(P=O=r.sCount[x]+1,r.src.charCodeAt(he)===32?(he++,P++,O++,C=!1,ee=!0):r.src.charCodeAt(he)===9?(ee=!0,(r.bsCount[x]+O)%4===3?(he++,P++,O++,C=!1):C=!0):ee=!1,U=[r.bMarks[x]],r.bMarks[x]=he;he<ge&&(T=r.src.charCodeAt(he),Us(T));){T===9?O+=4-(O+r.bsCount[x]+(C?1:0))%4:O++;he++}for(q=[r.bsCount[x]],r.bsCount[x]=r.sCount[x]+1+(ee?1:0),B=he>=ge,R=[r.sCount[x]],r.sCount[x]=O-P,$=[r.tShift[x]],r.tShift[x]=he-r.bMarks[x],K=r.md.block.ruler.getRules("blockquote"),J=r.parentType,r.parentType="blockquote",H=x+1;H<v&&(be=r.sCount[H]<r.blkIndent,he=r.bMarks[H]+r.tShift[H],ge=r.eMarks[H],!(he>=ge));H++){if(r.src.charCodeAt(he++)===62&&!be){for(P=O=r.sCount[H]+1,r.src.charCodeAt(he)===32?(he++,P++,O++,C=!1,ee=!0):r.src.charCodeAt(he)===9?(ee=!0,(r.bsCount[H]+O)%4===3?(he++,P++,O++,C=!1):C=!0):ee=!1,U.push(r.bMarks[H]),r.bMarks[H]=he;he<ge&&(T=r.src.charCodeAt(he),Us(T));){T===9?O+=4-(O+r.bsCount[H]+(C?1:0))%4:O++;he++}B=he>=ge,q.push(r.bsCount[H]),r.bsCount[H]=r.sCount[H]+1+(ee?1:0),R.push(r.sCount[H]),r.sCount[H]=O-P,$.push(r.tShift[H]),r.tShift[H]=he-r.bMarks[H];continue}if(B)break;for(Y=!1,S=0,N=K.length;S<N;S++)if(K[S](r,H,v,!0)){Y=!0;break}if(Y){r.lineMax=H,r.blkIndent!==0&&(U.push(r.bMarks[H]),q.push(r.bsCount[H]),$.push(r.tShift[H]),R.push(r.sCount[H]),r.sCount[H]-=r.blkIndent);break}U.push(r.bMarks[H]),q.push(r.bsCount[H]),$.push(r.tShift[H]),R.push(r.sCount[H]),r.sCount[H]=-1}for(te=r.blkIndent,r.blkIndent=0,ce=r.push("blockquote_open","blockquote",1),ce.markup=">",ce.map=X=[x,0],r.md.block.tokenize(r,x,H),ce=r.push("blockquote_close","blockquote",-1),ce.markup=">",r.lineMax=Re,r.parentType=J,X[1]=r.line,S=0;S<$.length;S++)r.bMarks[S+x]=U[S],r.tShift[S+x]=$[S],r.sCount[S+x]=R[S],r.bsCount[S+x]=q[S];return r.blkIndent=te,!0},en=ue.isSpace,tn=function(r,x,v,A){var C,T,S,P,N=r.bMarks[x]+r.tShift[x],B=r.eMarks[x];if(r.sCount[x]-r.blkIndent>=4||(C=r.src.charCodeAt(N++),C!==42&&C!==45&&C!==95))return!1;for(T=1;N<B;){if(S=r.src.charCodeAt(N++),S!==C&&!en(S))return!1;S===C&&T++}return T<3?!1:(A||(r.line=x+1,P=r.push("hr","hr",0),P.map=[x,r.line],P.markup=Array(T+1).join(String.fromCharCode(C))),!0)},Zs=ue.isSpace;function Js(b,r){var x,v,A,C;return v=b.bMarks[r]+b.tShift[r],A=b.eMarks[r],x=b.src.charCodeAt(v++),x!==42&&x!==45&&x!==43||v<A&&(C=b.src.charCodeAt(v),!Zs(C))?-1:v}function Qs(b,r){var x,v=b.bMarks[r]+b.tShift[r],A=v,C=b.eMarks[r];if(A+1>=C||(x=b.src.charCodeAt(A++),x<48||x>57))return-1;for(;;){if(A>=C)return-1;if(x=b.src.charCodeAt(A++),x>=48&&x<=57){if(A-v>=10)return-1;continue}if(x===41||x===46)break;return-1}return A<C&&(x=b.src.charCodeAt(A),!Zs(x))?-1:A}function sn(b,r){var x,v,A=b.level+2;for(x=r+2,v=b.tokens.length-2;x<v;x++)b.tokens[x].level===A&&b.tokens[x].type==="paragraph_open"&&(b.tokens[x+2].hidden=!0,b.tokens[x].hidden=!0,x+=2)}var an=function(r,x,v,A){var C,T,S,P,N,B,X,H,O,U,q,te,J,R,$,ee,Y,K,ce,be,Re,he,ge,ke,Fe,Q,pe,re,Ce=!1,Ve=!0;if(r.sCount[x]-r.blkIndent>=4||r.listIndent>=0&&r.sCount[x]-r.listIndent>=4&&r.sCount[x]<r.blkIndent)return!1;if(A&&r.parentType==="paragraph"&&r.sCount[x]>=r.blkIndent&&(Ce=!0),(ge=Qs(r,x))>=0){if(X=!0,Fe=r.bMarks[x]+r.tShift[x],J=Number(r.src.slice(Fe,ge-1)),Ce&&J!==1)return!1}else if((ge=Js(r,x))>=0)X=!1;else return!1;if(Ce&&r.skipSpaces(ge)>=r.eMarks[x])return!1;if(te=r.src.charCodeAt(ge-1),A)return!0;for(q=r.tokens.length,X?(re=r.push("ordered_list_open","ol",1),J!==1&&(re.attrs=[["start",J]])):re=r.push("bullet_list_open","ul",1),re.map=U=[x,0],re.markup=String.fromCharCode(te),$=x,ke=!1,pe=r.md.block.ruler.getRules("list"),K=r.parentType,r.parentType="list";$<v;){for(he=ge,R=r.eMarks[$],B=ee=r.sCount[$]+ge-(r.bMarks[x]+r.tShift[x]);he<R;){if(C=r.src.charCodeAt(he),C===9)ee+=4-(ee+r.bsCount[$])%4;else if(C===32)ee++;else break;he++}if(T=he,T>=R?N=1:N=ee-B,N>4&&(N=1),P=B+N,re=r.push("list_item_open","li",1),re.markup=String.fromCharCode(te),re.map=H=[x,0],X&&(re.info=r.src.slice(Fe,ge-1)),Re=r.tight,be=r.tShift[x],ce=r.sCount[x],Y=r.listIndent,r.listIndent=r.blkIndent,r.blkIndent=P,r.tight=!0,r.tShift[x]=T-r.bMarks[x],r.sCount[x]=ee,T>=R&&r.isEmpty(x+1)?r.line=Math.min(r.line+2,v):r.md.block.tokenize(r,x,v,!0),(!r.tight||ke)&&(Ve=!1),ke=r.line-x>1&&r.isEmpty(r.line-1),r.blkIndent=r.listIndent,r.listIndent=Y,r.tShift[x]=be,r.sCount[x]=ce,r.tight=Re,re=r.push("list_item_close","li",-1),re.markup=String.fromCharCode(te),$=x=r.line,H[1]=$,T=r.bMarks[x],$>=v||r.sCount[$]<r.blkIndent||r.sCount[x]-r.blkIndent>=4)break;for(Q=!1,S=0,O=pe.length;S<O;S++)if(pe[S](r,$,v,!0)){Q=!0;break}if(Q)break;if(X){if(ge=Qs(r,$),ge<0)break;Fe=r.bMarks[$]+r.tShift[$]}else if(ge=Js(r,$),ge<0)break;if(te!==r.src.charCodeAt(ge-1))break}return X?re=r.push("ordered_list_close","ol",-1):re=r.push("bullet_list_close","ul",-1),re.markup=String.fromCharCode(te),U[1]=$,r.line=$,r.parentType=K,Ve&&sn(r,q),!0},nn=ue.normalizeReference,kt=ue.isSpace,on=function(r,x,v,A){var C,T,S,P,N,B,X,H,O,U,q,te,J,R,$,ee,Y=0,K=r.bMarks[x]+r.tShift[x],ce=r.eMarks[x],be=x+1;if(r.sCount[x]-r.blkIndent>=4||r.src.charCodeAt(K)!==91)return!1;for(;++K<ce;)if(r.src.charCodeAt(K)===93&&r.src.charCodeAt(K-1)!==92){if(K+1===ce||r.src.charCodeAt(K+1)!==58)return!1;break}for(P=r.lineMax,$=r.md.block.ruler.getRules("reference"),U=r.parentType,r.parentType="reference";be<P&&!r.isEmpty(be);be++)if(!(r.sCount[be]-r.blkIndent>3)&&!(r.sCount[be]<0)){for(R=!1,B=0,X=$.length;B<X;B++)if($[B](r,be,P,!0)){R=!0;break}if(R)break}for(J=r.getLines(x,be,r.blkIndent,!1).trim(),ce=J.length,K=1;K<ce;K++){if(C=J.charCodeAt(K),C===91)return!1;if(C===93){O=K;break}else C===10?Y++:C===92&&(K++,K<ce&&J.charCodeAt(K)===10&&Y++)}if(O<0||J.charCodeAt(O+1)!==58)return!1;for(K=O+2;K<ce;K++)if(C=J.charCodeAt(K),C===10)Y++;else if(!kt(C))break;if(q=r.md.helpers.parseLinkDestination(J,K,ce),!q.ok||(N=r.md.normalizeLink(q.str),!r.md.validateLink(N)))return!1;for(K=q.pos,Y+=q.lines,T=K,S=Y,te=K;K<ce;K++)if(C=J.charCodeAt(K),C===10)Y++;else if(!kt(C))break;for(q=r.md.helpers.parseLinkTitle(J,K,ce),K<ce&&te!==K&&q.ok?(ee=q.str,K=q.pos,Y+=q.lines):(ee="",K=T,Y=S);K<ce&&(C=J.charCodeAt(K),!!kt(C));)K++;if(K<ce&&J.charCodeAt(K)!==10&&ee)for(ee="",K=T,Y=S;K<ce&&(C=J.charCodeAt(K),!!kt(C));)K++;return K<ce&&J.charCodeAt(K)!==10||(H=nn(J.slice(1,O)),!H)?!1:(A||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[H]>"u"&&(r.env.references[H]={title:ee,href:N}),r.parentType=U,r.line=x+Y+1),!0)},rn=["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"],Ct={},ln="[a-zA-Z_:][a-zA-Z0-9:._-]*",cn="[^\"'=<>`\\x00-\\x20]+",hn="'[^']*'",dn='"[^"]*"',un="(?:"+cn+"|"+hn+"|"+dn+")",pn="(?:\\s+"+ln+"(?:\\s*=\\s*"+un+")?)",Ks="<[A-Za-z][A-Za-z0-9\\-]*"+pn+"*\\s*\\/?>",qs="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",gn="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",fn="<[?][\\s\\S]*?[?]>",xn="<![A-Z]+\\s+[^>]*>",mn="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",bn=new RegExp("^(?:"+Ks+"|"+qs+"|"+gn+"|"+fn+"|"+xn+"|"+mn+")"),vn=new RegExp("^(?:"+Ks+"|"+qs+")");Ct.HTML_TAG_RE=bn,Ct.HTML_OPEN_CLOSE_TAG_RE=vn;var yn=rn,wn=Ct.HTML_OPEN_CLOSE_TAG_RE,rt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+yn.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(wn.source+"\\s*$"),/^$/,!1]],kn=function(r,x,v,A){var C,T,S,P,N=r.bMarks[x]+r.tShift[x],B=r.eMarks[x];if(r.sCount[x]-r.blkIndent>=4||!r.md.options.html||r.src.charCodeAt(N)!==60)return!1;for(P=r.src.slice(N,B),C=0;C<rt.length&&!rt[C][0].test(P);C++);if(C===rt.length)return!1;if(A)return rt[C][2];if(T=x+1,!rt[C][1].test(P)){for(;T<v&&!(r.sCount[T]<r.blkIndent);T++)if(N=r.bMarks[T]+r.tShift[T],B=r.eMarks[T],P=r.src.slice(N,B),rt[C][1].test(P)){P.length!==0&&T++;break}}return r.line=T,S=r.push("html_block","",0),S.map=[x,T],S.content=r.getLines(x,T,r.blkIndent,!0),!0},$s=ue.isSpace,Cn=function(r,x,v,A){var C,T,S,P,N=r.bMarks[x]+r.tShift[x],B=r.eMarks[x];if(r.sCount[x]-r.blkIndent>=4||(C=r.src.charCodeAt(N),C!==35||N>=B))return!1;for(T=1,C=r.src.charCodeAt(++N);C===35&&N<B&&T<=6;)T++,C=r.src.charCodeAt(++N);return T>6||N<B&&!$s(C)?!1:(A||(B=r.skipSpacesBack(B,N),S=r.skipCharsBack(B,35,N),S>N&&$s(r.src.charCodeAt(S-1))&&(B=S),r.line=x+1,P=r.push("heading_open","h"+String(T),1),P.markup="########".slice(0,T),P.map=[x,r.line],P=r.push("inline","",0),P.content=r.src.slice(N,B).trim(),P.map=[x,r.line],P.children=[],P=r.push("heading_close","h"+String(T),-1),P.markup="########".slice(0,T)),!0)},An=function(r,x,v){var A,C,T,S,P,N,B,X,H,O=x+1,U,q=r.md.block.ruler.getRules("paragraph");if(r.sCount[x]-r.blkIndent>=4)return!1;for(U=r.parentType,r.parentType="paragraph";O<v&&!r.isEmpty(O);O++)if(!(r.sCount[O]-r.blkIndent>3)){if(r.sCount[O]>=r.blkIndent&&(N=r.bMarks[O]+r.tShift[O],B=r.eMarks[O],N<B&&(H=r.src.charCodeAt(N),(H===45||H===61)&&(N=r.skipChars(N,H),N=r.skipSpaces(N),N>=B)))){X=H===61?1:2;break}if(!(r.sCount[O]<0)){for(C=!1,T=0,S=q.length;T<S;T++)if(q[T](r,O,v,!0)){C=!0;break}if(C)break}}return X?(A=r.getLines(x,O,r.blkIndent,!1).trim(),r.line=O+1,P=r.push("heading_open","h"+String(X),1),P.markup=String.fromCharCode(H),P.map=[x,r.line],P=r.push("inline","",0),P.content=A,P.map=[x,r.line-1],P.children=[],P=r.push("heading_close","h"+String(X),-1),P.markup=String.fromCharCode(H),r.parentType=U,!0):!1},Sn=function(r,x){var v,A,C,T,S,P,N=x+1,B=r.md.block.ruler.getRules("paragraph"),X=r.lineMax;for(P=r.parentType,r.parentType="paragraph";N<X&&!r.isEmpty(N);N++)if(!(r.sCount[N]-r.blkIndent>3)&&!(r.sCount[N]<0)){for(A=!1,C=0,T=B.length;C<T;C++)if(B[C](r,N,X,!0)){A=!0;break}if(A)break}return v=r.getLines(x,N,r.blkIndent,!1).trim(),r.line=N,S=r.push("paragraph_open","p",1),S.map=[x,r.line],S=r.push("inline","",0),S.content=v,S.map=[x,r.line],S.children=[],S=r.push("paragraph_close","p",-1),r.parentType=P,!0},ei=Wt,At=ue.isSpace;function ze(b,r,x,v){var A,C,T,S,P,N,B,X;for(this.src=b,this.md=r,this.env=x,this.tokens=v,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="",C=this.src,X=!1,T=S=N=B=0,P=C.length;S<P;S++){if(A=C.charCodeAt(S),!X)if(At(A)){N++,A===9?B+=4-B%4:B++;continue}else X=!0;(A===10||S===P-1)&&(A!==10&&S++,this.bMarks.push(T),this.eMarks.push(S),this.tShift.push(N),this.sCount.push(B),this.bsCount.push(0),X=!1,N=0,B=0,T=S+1)}this.bMarks.push(C.length),this.eMarks.push(C.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ze.prototype.push=function(b,r,x){var v=new ei(b,r,x);return v.block=!0,x<0&&this.level--,v.level=this.level,x>0&&this.level++,this.tokens.push(v),v},ze.prototype.isEmpty=function(r){return this.bMarks[r]+this.tShift[r]>=this.eMarks[r]},ze.prototype.skipEmptyLines=function(r){for(var x=this.lineMax;r<x&&!(this.bMarks[r]+this.tShift[r]<this.eMarks[r]);r++);return r},ze.prototype.skipSpaces=function(r){for(var x,v=this.src.length;r<v&&(x=this.src.charCodeAt(r),!!At(x));r++);return r},ze.prototype.skipSpacesBack=function(r,x){if(r<=x)return r;for(;r>x;)if(!At(this.src.charCodeAt(--r)))return r+1;return r},ze.prototype.skipChars=function(r,x){for(var v=this.src.length;r<v&&this.src.charCodeAt(r)===x;r++);return r},ze.prototype.skipCharsBack=function(r,x,v){if(r<=v)return r;for(;r>v;)if(x!==this.src.charCodeAt(--r))return r+1;return r},ze.prototype.getLines=function(r,x,v,A){var C,T,S,P,N,B,X,H=r;if(r>=x)return"";for(B=new Array(x-r),C=0;H<x;H++,C++){for(T=0,X=P=this.bMarks[H],H+1<x||A?N=this.eMarks[H]+1:N=this.eMarks[H];P<N&&T<v;){if(S=this.src.charCodeAt(P),At(S))S===9?T+=4-(T+this.bsCount[H])%4:T++;else if(P-X<this.tShift[H])T++;else break;P++}T>v?B[C]=new Array(T-v+1).join(" ")+this.src.slice(P,N):B[C]=this.src.slice(P,N)}return B.join("")},ze.prototype.Token=ei;var _n=ze,En=Yt,St=[["table",Qa,["paragraph","reference"]],["code",Ka],["fence",qa,["paragraph","reference","blockquote","list"]],["blockquote",$a,["paragraph","reference","blockquote","list"]],["hr",tn,["paragraph","reference","blockquote","list"]],["list",an,["paragraph","reference","blockquote"]],["reference",on],["html_block",kn,["paragraph","reference","blockquote"]],["heading",Cn,["paragraph","reference","blockquote"]],["lheading",An],["paragraph",Sn]];function _t(){this.ruler=new En;for(var b=0;b<St.length;b++)this.ruler.push(St[b][0],St[b][1],{alt:(St[b][2]||[]).slice()})}_t.prototype.tokenize=function(b,r,x){for(var v,A,C=this.ruler.getRules(""),T=C.length,S=r,P=!1,N=b.md.options.maxNesting;S<x&&(b.line=S=b.skipEmptyLines(S),!(S>=x||b.sCount[S]<b.blkIndent));){if(b.level>=N){b.line=x;break}for(A=0;A<T&&(v=C[A](b,S,x,!1),!v);A++);b.tight=!P,b.isEmpty(b.line-1)&&(P=!0),S=b.line,S<x&&b.isEmpty(S)&&(P=!0,S++,b.line=S)}},_t.prototype.parse=function(b,r,x,v){var A;b&&(A=new this.State(b,r,x,v),this.tokenize(A,A.line,A.lineMax))},_t.prototype.State=_n;var Ln=_t;function Tn(b){switch(b){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}}for(var Dn=function(r,x){for(var v=r.pos;v<r.posMax&&!Tn(r.src.charCodeAt(v));)v++;return v===r.pos?!1:(x||(r.pending+=r.src.slice(r.pos,v)),r.pos=v,!0)},Pn=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,In=function(r,x){var v,A,C,T,S,P,N,B;return!r.md.options.linkify||r.linkLevel>0||(v=r.pos,A=r.posMax,v+3>A)||r.src.charCodeAt(v)!==58||r.src.charCodeAt(v+1)!==47||r.src.charCodeAt(v+2)!==47||(C=r.pending.match(Pn),!C)||(T=C[1],S=r.md.linkify.matchAtStart(r.src.slice(v-T.length)),!S)||(P=S.url,P=P.replace(/\*+$/,""),N=r.md.normalizeLink(P),!r.md.validateLink(N))?!1:(x||(r.pending=r.pending.slice(0,-T.length),B=r.push("link_open","a",1),B.attrs=[["href",N]],B.markup="linkify",B.info="auto",B=r.push("text","",0),B.content=r.md.normalizeLinkText(P),B=r.push("link_close","a",-1),B.markup="linkify",B.info="auto"),r.pos+=P.length-T.length,!0)},zn=ue.isSpace,Mn=function(r,x){var v,A,C,T=r.pos;if(r.src.charCodeAt(T)!==10)return!1;if(v=r.pending.length-1,A=r.posMax,!x)if(v>=0&&r.pending.charCodeAt(v)===32)if(v>=1&&r.pending.charCodeAt(v-1)===32){for(C=v-1;C>=1&&r.pending.charCodeAt(C-1)===32;)C--;r.pending=r.pending.slice(0,C),r.push("hardbreak","br",0)}else r.pending=r.pending.slice(0,-1),r.push("softbreak","br",0);else r.push("softbreak","br",0);for(T++;T<A&&zn(r.src.charCodeAt(T));)T++;return r.pos=T,!0},Nn=ue.isSpace,Jt=[],ti=0;ti<256;ti++)Jt.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(b){Jt[b.charCodeAt(0)]=1});var Bn=function(r,x){var v,A,C,T,S,P=r.pos,N=r.posMax;if(r.src.charCodeAt(P)!==92||(P++,P>=N))return!1;if(v=r.src.charCodeAt(P),v===10){for(x||r.push("hardbreak","br",0),P++;P<N&&(v=r.src.charCodeAt(P),!!Nn(v));)P++;return r.pos=P,!0}return T=r.src[P],v>=55296&&v<=56319&&P+1<N&&(A=r.src.charCodeAt(P+1),A>=56320&&A<=57343&&(T+=r.src[P+1],P++)),C="\\"+T,x||(S=r.push("text_special","",0),v<256&&Jt[v]!==0?S.content=T:S.content=C,S.markup=C,S.info="escape"),r.pos=P+1,!0},Rn=function(r,x){var v,A,C,T,S,P,N,B,X=r.pos,H=r.src.charCodeAt(X);if(H!==96)return!1;for(v=X,X++,A=r.posMax;X<A&&r.src.charCodeAt(X)===96;)X++;if(C=r.src.slice(v,X),N=C.length,r.backticksScanned&&(r.backticks[N]||0)<=v)return x||(r.pending+=C),r.pos+=N,!0;for(S=P=X;(S=r.src.indexOf("`",P))!==-1;){for(P=S+1;P<A&&r.src.charCodeAt(P)===96;)P++;if(B=P-S,B===N)return x||(T=r.push("code_inline","code",0),T.markup=C,T.content=r.src.slice(X,S).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),r.pos=P,!0;r.backticks[B]=S}return r.backticksScanned=!0,x||(r.pending+=C),r.pos+=N,!0},Et={};Et.tokenize=function(r,x){var v,A,C,T,S,P=r.pos,N=r.src.charCodeAt(P);if(x||N!==126||(A=r.scanDelims(r.pos,!0),T=A.length,S=String.fromCharCode(N),T<2))return!1;for(T%2&&(C=r.push("text","",0),C.content=S,T--),v=0;v<T;v+=2)C=r.push("text","",0),C.content=S+S,r.delimiters.push({marker:N,length:0,token:r.tokens.length-1,end:-1,open:A.can_open,close:A.can_close});return r.pos+=A.length,!0};function si(b,r){var x,v,A,C,T,S=[],P=r.length;for(x=0;x<P;x++)A=r[x],A.marker===126&&A.end!==-1&&(C=r[A.end],T=b.tokens[A.token],T.type="s_open",T.tag="s",T.nesting=1,T.markup="~~",T.content="",T=b.tokens[C.token],T.type="s_close",T.tag="s",T.nesting=-1,T.markup="~~",T.content="",b.tokens[C.token-1].type==="text"&&b.tokens[C.token-1].content==="~"&&S.push(C.token-1));for(;S.length;){for(x=S.pop(),v=x+1;v<b.tokens.length&&b.tokens[v].type==="s_close";)v++;v--,x!==v&&(T=b.tokens[v],b.tokens[v]=b.tokens[x],b.tokens[x]=T)}}Et.postProcess=function(r){var x,v=r.tokens_meta,A=r.tokens_meta.length;for(si(r,r.delimiters),x=0;x<A;x++)v[x]&&v[x].delimiters&&si(r,v[x].delimiters)};var Lt={};Lt.tokenize=function(r,x){var v,A,C,T=r.pos,S=r.src.charCodeAt(T);if(x||S!==95&&S!==42)return!1;for(A=r.scanDelims(r.pos,S===42),v=0;v<A.length;v++)C=r.push("text","",0),C.content=String.fromCharCode(S),r.delimiters.push({marker:S,length:A.length,token:r.tokens.length-1,end:-1,open:A.can_open,close:A.can_close});return r.pos+=A.length,!0};function ii(b,r){var x,v,A,C,T,S,P=r.length;for(x=P-1;x>=0;x--)v=r[x],!(v.marker!==95&&v.marker!==42)&&v.end!==-1&&(A=r[v.end],S=x>0&&r[x-1].end===v.end+1&&r[x-1].marker===v.marker&&r[x-1].token===v.token-1&&r[v.end+1].token===A.token+1,T=String.fromCharCode(v.marker),C=b.tokens[v.token],C.type=S?"strong_open":"em_open",C.tag=S?"strong":"em",C.nesting=1,C.markup=S?T+T:T,C.content="",C=b.tokens[A.token],C.type=S?"strong_close":"em_close",C.tag=S?"strong":"em",C.nesting=-1,C.markup=S?T+T:T,C.content="",S&&(b.tokens[r[x-1].token].content="",b.tokens[r[v.end+1].token].content="",x--))}Lt.postProcess=function(r){var x,v=r.tokens_meta,A=r.tokens_meta.length;for(ii(r,r.delimiters),x=0;x<A;x++)v[x]&&v[x].delimiters&&ii(r,v[x].delimiters)};var Fn=ue.normalizeReference,Qt=ue.isSpace,Vn=function(r,x){var v,A,C,T,S,P,N,B,X,H="",O="",U=r.pos,q=r.posMax,te=r.pos,J=!0;if(r.src.charCodeAt(r.pos)!==91||(S=r.pos+1,T=r.md.helpers.parseLinkLabel(r,r.pos,!0),T<0))return!1;if(P=T+1,P<q&&r.src.charCodeAt(P)===40){for(J=!1,P++;P<q&&(A=r.src.charCodeAt(P),!(!Qt(A)&&A!==10));P++);if(P>=q)return!1;if(te=P,N=r.md.helpers.parseLinkDestination(r.src,P,r.posMax),N.ok){for(H=r.md.normalizeLink(N.str),r.md.validateLink(H)?P=N.pos:H="",te=P;P<q&&(A=r.src.charCodeAt(P),!(!Qt(A)&&A!==10));P++);if(N=r.md.helpers.parseLinkTitle(r.src,P,r.posMax),P<q&&te!==P&&N.ok)for(O=N.str,P=N.pos;P<q&&(A=r.src.charCodeAt(P),!(!Qt(A)&&A!==10));P++);}(P>=q||r.src.charCodeAt(P)!==41)&&(J=!0),P++}if(J){if(typeof r.env.references>"u")return!1;if(P<q&&r.src.charCodeAt(P)===91?(te=P+1,P=r.md.helpers.parseLinkLabel(r,P),P>=0?C=r.src.slice(te,P++):P=T+1):P=T+1,C||(C=r.src.slice(S,T)),B=r.env.references[Fn(C)],!B)return r.pos=U,!1;H=B.href,O=B.title}return x||(r.pos=S,r.posMax=T,X=r.push("link_open","a",1),X.attrs=v=[["href",H]],O&&v.push(["title",O]),r.linkLevel++,r.md.inline.tokenize(r),r.linkLevel--,X=r.push("link_close","a",-1)),r.pos=P,r.posMax=q,!0},Hn=ue.normalizeReference,Kt=ue.isSpace,On=function(r,x){var v,A,C,T,S,P,N,B,X,H,O,U,q,te="",J=r.pos,R=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(P=r.pos+2,S=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),S<0))return!1;if(N=S+1,N<R&&r.src.charCodeAt(N)===40){for(N++;N<R&&(A=r.src.charCodeAt(N),!(!Kt(A)&&A!==10));N++);if(N>=R)return!1;for(q=N,X=r.md.helpers.parseLinkDestination(r.src,N,r.posMax),X.ok&&(te=r.md.normalizeLink(X.str),r.md.validateLink(te)?N=X.pos:te=""),q=N;N<R&&(A=r.src.charCodeAt(N),!(!Kt(A)&&A!==10));N++);if(X=r.md.helpers.parseLinkTitle(r.src,N,r.posMax),N<R&&q!==N&&X.ok)for(H=X.str,N=X.pos;N<R&&(A=r.src.charCodeAt(N),!(!Kt(A)&&A!==10));N++);else H="";if(N>=R||r.src.charCodeAt(N)!==41)return r.pos=J,!1;N++}else{if(typeof r.env.references>"u")return!1;if(N<R&&r.src.charCodeAt(N)===91?(q=N+1,N=r.md.helpers.parseLinkLabel(r,N),N>=0?T=r.src.slice(q,N++):N=S+1):N=S+1,T||(T=r.src.slice(P,S)),B=r.env.references[Hn(T)],!B)return r.pos=J,!1;te=B.href,H=B.title}return x||(C=r.src.slice(P,S),r.md.inline.parse(C,r.md,r.env,U=[]),O=r.push("image","img",0),O.attrs=v=[["src",te],["alt",""]],O.children=U,O.content=C,H&&v.push(["title",H])),r.pos=N,r.posMax=R,!0},Xn=/^([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])?)*)$/,Yn=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Wn=function(r,x){var v,A,C,T,S,P,N=r.pos;if(r.src.charCodeAt(N)!==60)return!1;for(S=r.pos,P=r.posMax;;){if(++N>=P||(T=r.src.charCodeAt(N),T===60))return!1;if(T===62)break}return v=r.src.slice(S+1,N),Yn.test(v)?(A=r.md.normalizeLink(v),r.md.validateLink(A)?(x||(C=r.push("link_open","a",1),C.attrs=[["href",A]],C.markup="autolink",C.info="auto",C=r.push("text","",0),C.content=r.md.normalizeLinkText(v),C=r.push("link_close","a",-1),C.markup="autolink",C.info="auto"),r.pos+=v.length+2,!0):!1):Xn.test(v)?(A=r.md.normalizeLink("mailto:"+v),r.md.validateLink(A)?(x||(C=r.push("link_open","a",1),C.attrs=[["href",A]],C.markup="autolink",C.info="auto",C=r.push("text","",0),C.content=r.md.normalizeLinkText(v),C=r.push("link_close","a",-1),C.markup="autolink",C.info="auto"),r.pos+=v.length+2,!0):!1):!1},Gn=Ct.HTML_TAG_RE;function jn(b){return/^<a[>\s]/i.test(b)}function Un(b){return/^<\/a\s*>/i.test(b)}function Zn(b){var r=b|32;return r>=97&&r<=122}var Jn=function(r,x){var v,A,C,T,S=r.pos;return!r.md.options.html||(C=r.posMax,r.src.charCodeAt(S)!==60||S+2>=C)||(v=r.src.charCodeAt(S+1),v!==33&&v!==63&&v!==47&&!Zn(v))||(A=r.src.slice(S).match(Gn),!A)?!1:(x||(T=r.push("html_inline","",0),T.content=r.src.slice(S,S+A[0].length),jn(T.content)&&r.linkLevel++,Un(T.content)&&r.linkLevel--),r.pos+=A[0].length,!0)},ai=ks,Qn=ue.has,Kn=ue.isValidEntityCode,ni=ue.fromCodePoint,qn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,$n=/^&([a-z][a-z0-9]{1,31});/i,eo=function(r,x){var v,A,C,T,S=r.pos,P=r.posMax;if(r.src.charCodeAt(S)!==38||S+1>=P)return!1;if(v=r.src.charCodeAt(S+1),v===35){if(C=r.src.slice(S).match(qn),C)return x||(A=C[1][0].toLowerCase()==="x"?parseInt(C[1].slice(1),16):parseInt(C[1],10),T=r.push("text_special","",0),T.content=Kn(A)?ni(A):ni(65533),T.markup=C[0],T.info="entity"),r.pos+=C[0].length,!0}else if(C=r.src.slice(S).match($n),C&&Qn(ai,C[1]))return x||(T=r.push("text_special","",0),T.content=ai[C[1]],T.markup=C[0],T.info="entity"),r.pos+=C[0].length,!0;return!1};function oi(b,r){var x,v,A,C,T,S,P,N,B={},X=r.length;if(X){var H=0,O=-2,U=[];for(x=0;x<X;x++)if(A=r[x],U.push(0),(r[H].marker!==A.marker||O!==A.token-1)&&(H=x),O=A.token,A.length=A.length||0,!!A.close){for(B.hasOwnProperty(A.marker)||(B[A.marker]=[-1,-1,-1,-1,-1,-1]),T=B[A.marker][(A.open?3:0)+A.length%3],v=H-U[H]-1,S=v;v>T;v-=U[v]+1)if(C=r[v],C.marker===A.marker&&C.open&&C.end<0&&(P=!1,(C.close||A.open)&&(C.length+A.length)%3===0&&(C.length%3!==0||A.length%3!==0)&&(P=!0),!P)){N=v>0&&!r[v-1].open?U[v-1]+1:0,U[x]=x-v+N,U[v]=N,A.open=!1,C.end=x,C.close=!1,S=-1,O=-2;break}S!==-1&&(B[A.marker][(A.open?3:0)+(A.length||0)%3]=S)}}}var to=function(r){var x,v=r.tokens_meta,A=r.tokens_meta.length;for(oi(r,r.delimiters),x=0;x<A;x++)v[x]&&v[x].delimiters&&oi(r,v[x].delimiters)},so=function(r){var x,v,A=0,C=r.tokens,T=r.tokens.length;for(x=v=0;x<T;x++)C[x].nesting<0&&A--,C[x].level=A,C[x].nesting>0&&A++,C[x].type==="text"&&x+1<T&&C[x+1].type==="text"?C[x+1].content=C[x].content+C[x+1].content:(x!==v&&(C[v]=C[x]),v++);x!==v&&(C.length=v)},qt=Wt,ri=ue.isWhiteSpace,li=ue.isPunctChar,ci=ue.isMdAsciiPunct;function ut(b,r,x,v){this.src=b,this.env=x,this.md=r,this.tokens=v,this.tokens_meta=Array(v.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}ut.prototype.pushPending=function(){var b=new qt("text","",0);return b.content=this.pending,b.level=this.pendingLevel,this.tokens.push(b),this.pending="",b},ut.prototype.push=function(b,r,x){this.pending&&this.pushPending();var v=new qt(b,r,x),A=null;return x<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),v.level=this.level,x>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],A={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(v),this.tokens_meta.push(A),v},ut.prototype.scanDelims=function(b,r){var x=b,v,A,C,T,S,P,N,B,X,H=!0,O=!0,U=this.posMax,q=this.src.charCodeAt(b);for(v=b>0?this.src.charCodeAt(b-1):32;x<U&&this.src.charCodeAt(x)===q;)x++;return C=x-b,A=x<U?this.src.charCodeAt(x):32,N=ci(v)||li(String.fromCharCode(v)),X=ci(A)||li(String.fromCharCode(A)),P=ri(v),B=ri(A),B?H=!1:X&&(P||N||(H=!1)),P?O=!1:N&&(B||X||(O=!1)),r?(T=H,S=O):(T=H&&(!O||N),S=O&&(!H||X)),{can_open:T,can_close:S,length:C}},ut.prototype.Token=qt;var io=ut,hi=Yt,$t=[["text",Dn],["linkify",In],["newline",Mn],["escape",Bn],["backticks",Rn],["strikethrough",Et.tokenize],["emphasis",Lt.tokenize],["link",Vn],["image",On],["autolink",Wn],["html_inline",Jn],["entity",eo]],es=[["balance_pairs",to],["strikethrough",Et.postProcess],["emphasis",Lt.postProcess],["fragments_join",so]];function pt(){var b;for(this.ruler=new hi,b=0;b<$t.length;b++)this.ruler.push($t[b][0],$t[b][1]);for(this.ruler2=new hi,b=0;b<es.length;b++)this.ruler2.push(es[b][0],es[b][1])}pt.prototype.skipToken=function(b){var r,x,v=b.pos,A=this.ruler.getRules(""),C=A.length,T=b.md.options.maxNesting,S=b.cache;if(typeof S[v]<"u"){b.pos=S[v];return}if(b.level<T)for(x=0;x<C&&(b.level++,r=A[x](b,!0),b.level--,!r);x++);else b.pos=b.posMax;r||b.pos++,S[v]=b.pos},pt.prototype.tokenize=function(b){for(var r,x,v=this.ruler.getRules(""),A=v.length,C=b.posMax,T=b.md.options.maxNesting;b.pos<C;){if(b.level<T)for(x=0;x<A&&(r=v[x](b,!1),!r);x++);if(r){if(b.pos>=C)break;continue}b.pending+=b.src[b.pos++]}b.pending&&b.pushPending()},pt.prototype.parse=function(b,r,x,v){var A,C,T,S=new this.State(b,r,x,v);for(this.tokenize(S),C=this.ruler2.getRules(""),T=C.length,A=0;A<T;A++)C[A](S)},pt.prototype.State=io;var ao=pt,ts,di;function no(){return di||(di=1,ts=function(b){var r={};b=b||{},r.src_Any=Ps().source,r.src_Cc=zs().source,r.src_Z=Bs().source,r.src_P=Ft.source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var x="[><|]";return r.src_pseudo_letter="(?:(?!"+x+"|"+r.src_ZPCc+")"+r.src_Any+")",r.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]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+x+"|"+r.src_ZPCc+")(?!"+(b["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+x+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+r.src_ZCc+"|[.]|$)|"+(b["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+r.src_ZCc+"|$)|;(?!"+r.src_ZCc+"|$)|\\!+(?!"+r.src_ZCc+"|[!]|$)|\\?(?!"+r.src_ZCc+"|[?]|$))+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+x+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),ts}function ss(b){var r=Array.prototype.slice.call(arguments,1);return r.forEach(function(x){x&&Object.keys(x).forEach(function(v){b[v]=x[v]})}),b}function Tt(b){return Object.prototype.toString.call(b)}function oo(b){return Tt(b)==="[object String]"}function ro(b){return Tt(b)==="[object Object]"}function lo(b){return Tt(b)==="[object RegExp]"}function ui(b){return Tt(b)==="[object Function]"}function co(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var pi={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ho(b){return Object.keys(b||{}).reduce(function(r,x){return r||pi.hasOwnProperty(x)},!1)}var uo={"http:":{validate:function(b,r,x){var v=b.slice(r);return x.re.http||(x.re.http=new RegExp("^\\/\\/"+x.re.src_auth+x.re.src_host_port_strict+x.re.src_path,"i")),x.re.http.test(v)?v.match(x.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,r,x){var v=b.slice(r);return x.re.no_http||(x.re.no_http=new RegExp("^"+x.re.src_auth+"(?:localhost|(?:(?:"+x.re.src_domain+")\\.)+"+x.re.src_domain_root+")"+x.re.src_port+x.re.src_host_terminator+x.re.src_path,"i")),x.re.no_http.test(v)?r>=3&&b[r-3]===":"||r>=3&&b[r-3]==="/"?0:v.match(x.re.no_http)[0].length:0}},"mailto:":{validate:function(b,r,x){var v=b.slice(r);return x.re.mailto||(x.re.mailto=new RegExp("^"+x.re.src_email_name+"@"+x.re.src_host_strict,"i")),x.re.mailto.test(v)?v.match(x.re.mailto)[0].length:0}}},po="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]",go="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function fo(b){b.__index__=-1,b.__text_cache__=""}function xo(b){return function(r,x){var v=r.slice(x);return b.test(v)?v.match(b)[0].length:0}}function gi(){return function(b,r){r.normalize(b)}}function Dt(b){var r=b.re=no()(b.__opts__),x=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||x.push(po),x.push(r.src_xn),r.src_tlds=x.join("|");function v(S){return S.replace("%TLDS%",r.src_tlds)}r.email_fuzzy=RegExp(v(r.tpl_email_fuzzy),"i"),r.link_fuzzy=RegExp(v(r.tpl_link_fuzzy),"i"),r.link_no_ip_fuzzy=RegExp(v(r.tpl_link_no_ip_fuzzy),"i"),r.host_fuzzy_test=RegExp(v(r.tpl_host_fuzzy_test),"i");var A=[];b.__compiled__={};function C(S,P){throw new Error('(LinkifyIt) Invalid schema "'+S+'": '+P)}Object.keys(b.__schemas__).forEach(function(S){var P=b.__schemas__[S];if(P!==null){var N={validate:null,link:null};if(b.__compiled__[S]=N,ro(P)){lo(P.validate)?N.validate=xo(P.validate):ui(P.validate)?N.validate=P.validate:C(S,P),ui(P.normalize)?N.normalize=P.normalize:P.normalize?C(S,P):N.normalize=gi();return}if(oo(P)){A.push(S);return}C(S,P)}}),A.forEach(function(S){b.__compiled__[b.__schemas__[S]]&&(b.__compiled__[S].validate=b.__compiled__[b.__schemas__[S]].validate,b.__compiled__[S].normalize=b.__compiled__[b.__schemas__[S]].normalize)}),b.__compiled__[""]={validate:null,normalize:gi()};var T=Object.keys(b.__compiled__).filter(function(S){return S.length>0&&b.__compiled__[S]}).map(co).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+T+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+T+")","ig"),b.re.schema_at_start=RegExp("^"+b.re.schema_search.source,"i"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),fo(b)}function mo(b,r){var x=b.__index__,v=b.__last_index__,A=b.__text_cache__.slice(x,v);this.schema=b.__schema__.toLowerCase(),this.index=x+r,this.lastIndex=v+r,this.raw=A,this.text=A,this.url=A}function is(b,r){var x=new mo(b,r);return b.__compiled__[x.schema].normalize(x,b),x}function Se(b,r){if(!(this instanceof Se))return new Se(b,r);r||ho(b)&&(r=b,b={}),this.__opts__=ss({},pi,r),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ss({},uo,b),this.__compiled__={},this.__tlds__=go,this.__tlds_replaced__=!1,this.re={},Dt(this)}Se.prototype.add=function(r,x){return this.__schemas__[r]=x,Dt(this),this},Se.prototype.set=function(r){return this.__opts__=ss(this.__opts__,r),this},Se.prototype.test=function(r){if(this.__text_cache__=r,this.__index__=-1,!r.length)return!1;var x,v,A,C,T,S,P,N,B;if(this.re.schema_test.test(r)){for(P=this.re.schema_search,P.lastIndex=0;(x=P.exec(r))!==null;)if(C=this.testSchemaAt(r,x[2],P.lastIndex),C){this.__schema__=x[2],this.__index__=x.index+x[1].length,this.__last_index__=x.index+x[0].length+C;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(N=r.search(this.re.host_fuzzy_test),N>=0&&(this.__index__<0||N<this.__index__)&&(v=r.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(T=v.index+v[1].length,(this.__index__<0||T<this.__index__)&&(this.__schema__="",this.__index__=T,this.__last_index__=v.index+v[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(B=r.indexOf("@"),B>=0&&(A=r.match(this.re.email_fuzzy))!==null&&(T=A.index+A[1].length,S=A.index+A[0].length,(this.__index__<0||T<this.__index__||T===this.__index__&&S>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=T,this.__last_index__=S))),this.__index__>=0},Se.prototype.pretest=function(r){return this.re.pretest.test(r)},Se.prototype.testSchemaAt=function(r,x,v){return this.__compiled__[x.toLowerCase()]?this.__compiled__[x.toLowerCase()].validate(r,v,this):0},Se.prototype.match=function(r){var x=0,v=[];this.__index__>=0&&this.__text_cache__===r&&(v.push(is(this,x)),x=this.__last_index__);for(var A=x?r.slice(x):r;this.test(A);)v.push(is(this,x)),A=A.slice(this.__last_index__),x+=this.__last_index__;return v.length?v:null},Se.prototype.matchAtStart=function(r){if(this.__text_cache__=r,this.__index__=-1,!r.length)return null;var x=this.re.schema_at_start.exec(r);if(!x)return null;var v=this.testSchemaAt(r,x[2],x[0].length);return v?(this.__schema__=x[2],this.__index__=x.index+x[1].length,this.__last_index__=x.index+x[0].length+v,is(this,0)):null},Se.prototype.tlds=function(r,x){return r=Array.isArray(r)?r:[r],x?(this.__tlds__=this.__tlds__.concat(r).sort().filter(function(v,A,C){return v!==C[A-1]}).reverse(),Dt(this),this):(this.__tlds__=r.slice(),this.__tlds_replaced__=!0,Dt(this),this)},Se.prototype.normalize=function(r){r.schema||(r.url="http://"+r.url),r.schema==="mailto:"&&!/^mailto:/i.test(r.url)&&(r.url="mailto:"+r.url)},Se.prototype.onCompile=function(){};var bo=Se;const lt=2147483647,Me=36,as=1,gt=26,vo=38,yo=700,fi=72,xi=128,mi="-",wo=/^xn--/,ko=/[^\0-\x7F]/,Co=/[\x2E\u3002\uFF0E\uFF61]/g,Ao={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ns=Me-as,Ne=Math.floor,os=String.fromCharCode;function We(b){throw new RangeError(Ao[b])}function So(b,r){const x=[];let v=b.length;for(;v--;)x[v]=r(b[v]);return x}function bi(b,r){const x=b.split("@");let v="";x.length>1&&(v=x[0]+"@",b=x[1]),b=b.replace(Co,".");const A=b.split("."),C=So(A,r).join(".");return v+C}function rs(b){const r=[];let x=0;const v=b.length;for(;x<v;){const A=b.charCodeAt(x++);if(A>=55296&&A<=56319&&x<v){const C=b.charCodeAt(x++);(C&64512)==56320?r.push(((A&1023)<<10)+(C&1023)+65536):(r.push(A),x--)}else r.push(A)}return r}const vi=b=>String.fromCodePoint(...b),_o=function(b){return b>=48&&b<58?26+(b-48):b>=65&&b<91?b-65:b>=97&&b<123?b-97:Me},yi=function(b,r){return b+22+75*(b<26)-((r!=0)<<5)},wi=function(b,r,x){let v=0;for(b=x?Ne(b/yo):b>>1,b+=Ne(b/r);b>ns*gt>>1;v+=Me)b=Ne(b/ns);return Ne(v+(ns+1)*b/(b+vo))},ls=function(b){const r=[],x=b.length;let v=0,A=xi,C=fi,T=b.lastIndexOf(mi);T<0&&(T=0);for(let S=0;S<T;++S)b.charCodeAt(S)>=128&&We("not-basic"),r.push(b.charCodeAt(S));for(let S=T>0?T+1:0;S<x;){const P=v;for(let B=1,X=Me;;X+=Me){S>=x&&We("invalid-input");const H=_o(b.charCodeAt(S++));H>=Me&&We("invalid-input"),H>Ne((lt-v)/B)&&We("overflow"),v+=H*B;const O=X<=C?as:X>=C+gt?gt:X-C;if(H<O)break;const U=Me-O;B>Ne(lt/U)&&We("overflow"),B*=U}const N=r.length+1;C=wi(v-P,N,P==0),Ne(v/N)>lt-A&&We("overflow"),A+=Ne(v/N),v%=N,r.splice(v++,0,A)}return String.fromCodePoint(...r)},cs=function(b){const r=[];b=rs(b);const x=b.length;let v=xi,A=0,C=fi;for(const P of b)P<128&&r.push(os(P));const T=r.length;let S=T;for(T&&r.push(mi);S<x;){let P=lt;for(const B of b)B>=v&&B<P&&(P=B);const N=S+1;P-v>Ne((lt-A)/N)&&We("overflow"),A+=(P-v)*N,v=P;for(const B of b)if(B<v&&++A>lt&&We("overflow"),B===v){let X=A;for(let H=Me;;H+=Me){const O=H<=C?as:H>=C+gt?gt:H-C;if(X<O)break;const U=X-O,q=Me-O;r.push(os(yi(O+U%q,0))),X=Ne(U/q)}r.push(os(yi(X,0))),C=wi(A,N,S===T),A=0,++S}++A,++v}return r.join("")},ki=function(b){return bi(b,function(r){return wo.test(r)?ls(r.slice(4).toLowerCase()):r})},Ci=function(b){return bi(b,function(r){return ko.test(r)?"xn--"+cs(r):r})},Eo=ta(Object.freeze(Object.defineProperty({__proto__:null,decode:ls,default:{version:"2.1.0",ucs2:{decode:rs,encode:vi},decode:ls,encode:cs,toASCII:Ci,toUnicode:ki},encode:cs,toASCII:Ci,toUnicode:ki,ucs2decode:rs,ucs2encode:vi},Symbol.toStringTag,{value:"Module"})));var Lo={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},To={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"]}}},Do={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"]}}},ft=ue,Po=yt,Io=Sa,zo=Ja,Mo=Ln,No=ao,Bo=bo,qe=at,Ai=Eo,Ro={default:Lo,zero:To,commonmark:Do},Fo=/^(vbscript|javascript|file|data):/,Vo=/^data:image\/(gif|png|jpeg|webp);/;function Ho(b){var r=b.trim().toLowerCase();return Fo.test(r)?!!Vo.test(r):!0}var Si=["http:","https:","mailto:"];function Oo(b){var r=qe.parse(b,!0);if(r.hostname&&(!r.protocol||Si.indexOf(r.protocol)>=0))try{r.hostname=Ai.toASCII(r.hostname)}catch{}return qe.encode(qe.format(r))}function Xo(b){var r=qe.parse(b,!0);if(r.hostname&&(!r.protocol||Si.indexOf(r.protocol)>=0))try{r.hostname=Ai.toUnicode(r.hostname)}catch{}return qe.decode(qe.format(r),qe.decode.defaultChars+"%")}function Ee(b,r){if(!(this instanceof Ee))return new Ee(b,r);r||ft.isString(b)||(r=b||{},b="default"),this.inline=new No,this.block=new Mo,this.core=new zo,this.renderer=new Io,this.linkify=new Bo,this.validateLink=Ho,this.normalizeLink=Oo,this.normalizeLinkText=Xo,this.utils=ft,this.helpers=ft.assign({},Po),this.options={},this.configure(b),r&&this.set(r)}Ee.prototype.set=function(b){return ft.assign(this.options,b),this},Ee.prototype.configure=function(b){var r=this,x;if(ft.isString(b)&&(x=b,b=Ro[x],!b))throw new Error('Wrong `markdown-it` preset "'+x+'", check name');if(!b)throw new Error("Wrong `markdown-it` preset, can't be empty");return b.options&&r.set(b.options),b.components&&Object.keys(b.components).forEach(function(v){b.components[v].rules&&r[v].ruler.enableOnly(b.components[v].rules),b.components[v].rules2&&r[v].ruler2.enableOnly(b.components[v].rules2)}),this},Ee.prototype.enable=function(b,r){var x=[];Array.isArray(b)||(b=[b]),["core","block","inline"].forEach(function(A){x=x.concat(this[A].ruler.enable(b,!0))},this),x=x.concat(this.inline.ruler2.enable(b,!0));var v=b.filter(function(A){return x.indexOf(A)<0});if(v.length&&!r)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+v);return this},Ee.prototype.disable=function(b,r){var x=[];Array.isArray(b)||(b=[b]),["core","block","inline"].forEach(function(A){x=x.concat(this[A].ruler.disable(b,!0))},this),x=x.concat(this.inline.ruler2.disable(b,!0));var v=b.filter(function(A){return x.indexOf(A)<0});if(v.length&&!r)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+v);return this},Ee.prototype.use=function(b){var r=[this].concat(Array.prototype.slice.call(arguments,1));return b.apply(b,r),this},Ee.prototype.parse=function(b,r){if(typeof b!="string")throw new Error("Input data should be a String");var x=new this.core.State(b,this,r);return this.core.process(x),x.tokens},Ee.prototype.render=function(b,r){return r=r||{},this.renderer.render(this.parse(b,r),this.options,r)},Ee.prototype.parseInline=function(b,r){var x=new this.core.State(b,this,r);return x.inlineMode=!0,this.core.process(x),x.tokens},Ee.prototype.renderInline=function(b,r){return r=r||{},this.renderer.render(this.parseInline(b,r),this.options,r)};var Yo=Ee,Wo=Yo;const Go=ws(Wo);var jo=new Go({breaks:!0,linkify:!0,typographer:!0});function Ge(b){return jo.render(b)}const Uo=["width","height","viewBox"],Zo=["d"],fe=d.defineComponent({__name:"EpIcon",props:{size:{default:32},viewBox:{default:"0 0 24 24"},iconPath:{},extraClass:{}},setup(b){const r=b,{size:x,viewBox:v,iconPath:A,extraClass:C}=d.toRefs(r);return(T,S)=>(d.openBlock(),d.createElementBlock("svg",{width:d.unref(x),height:d.unref(x),viewBox:d.unref(v),color:"currentColor",fill:"currentColor",class:d.normalizeClass(`inline ${d.unref(C)}`)},[d.createElementVNode("path",{d:d.unref(A)},null,8,Zo)],10,Uo))}}),Jo={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 De(b,r){const v=`${b}${r}`.replace(/-/g,"");return Jo[v]}const Qo={compact:"p-0",default:"p-4",comfortable:"p-8"},Ko=["src"],qo={key:0,class:"mb-2 flex items-center justify-between"},$o={class:"text-2xl font-bold"},er={key:0},Pt=d.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(b){const r=b,x=d.computed(()=>r.flat?"":"shadow-lg"),v=d.computed(()=>r.outlined&&r.color?`border solid ${De("border",r.color)}`:r.outlined?"border solid border-grey-700":""),A=d.computed(()=>r.color&&!r.outlined?`${De("bg",r.color)} text-white`:"bg-white text-black"),C=d.computed(()=>r.color&&!r.outlined?"text-white":"text-gray-600"),T=d.computed(()=>Qo[r.density]),S=d.computed(()=>`${x.value} ${v.value} ${A.value} ${r.maxWidth} my-4 `),{title:P,subtitle:N,icon:B,src:X,density:H}=d.toRefs(r);return(O,U)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(`${S.value} rounded-md`)},[d.unref(X)?(d.openBlock(),d.createElementBlock("img",{key:0,src:d.unref(X),class:"w-full rounded-t-md",alt:"header card"},null,8,Ko)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:d.normalizeClass(T.value)},[d.unref(P)||d.unref(N)?(d.openBlock(),d.createElementBlock("div",qo,[d.createElementVNode("div",null,[d.createElementVNode("h3",$o,d.toDisplayString(d.unref(P)),1),d.createElementVNode("h4",{class:d.normalizeClass(`text-xs ${C.value}`)},d.toDisplayString(d.unref(N)),3)]),d.unref(B)?(d.openBlock(),d.createElementBlock("div",er,[d.createVNode(fe,{"icon-path":d.unref(B)},null,8,["icon-path"])])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),d.renderSlot(O.$slots,"card-header"),d.renderSlot(O.$slots,"default"),d.renderSlot(O.$slots,"card-actions")],2)],2))}}),tr=["onClick"],sr={class:"mx-auto"},It=d.defineComponent({__name:"EpModal",props:{modelValue:{type:Boolean,default:!1},title:{default:null},subtitle:{default:null},icon:{default:null},persistent:{type:Boolean,default:!1},size:{default:"default"}},emits:["update:modelValue"],setup(b,{emit:r}){const x=b,v={compact:"w-[40%]",default:"w-[75%]",comfortable:"w-[85%]"},A=()=>{x.persistent||r("update:modelValue",!1)},C=d.computed(()=>v[x.size]),{title:T,subtitle:S,icon:P}=d.toRefs(x);return(N,B)=>(d.openBlock(),d.createBlock(d.Teleport,{to:"body"},[d.createVNode(d.Transition,{name:"modal"},{default:d.withCtx(()=>[N.modelValue?(d.openBlock(),d.createElementBlock("div",{key:0,class:"modal-mask",onClick:d.withModifiers(A,["self"])},[d.createElementVNode("div",{class:d.normalizeClass(`modal-container ${C.value}`)},[d.createElementVNode("div",sr,[d.createVNode(Pt,{title:d.unref(T),subtitle:d.unref(S),icon:d.unref(P)},{default:d.withCtx(()=>[d.renderSlot(N.$slots,"default")]),_:3},8,["title","subtitle","icon"])])],2)],8,tr)):d.createCommentVNode("",!0)]),_:3})]))}}),H8="",ct=d.defineComponent({__name:"EpDivider",props:{color:{default:null},size:{default:"border"},inset:{type:Boolean,default:!1},icon:{default:null},margin:{default:"my-2"}},setup(b){const r=b,x=d.computed(()=>r.color?`${r.size} ${De("border",r.color)}`:`${r.size} border-grey-700`),v=d.computed(()=>`${x.value} ${r.inset?"w-9/12 mx-auto":"w-full"} ${r.margin}`);return(A,C)=>(d.openBlock(),d.createElementBlock("hr",{class:d.normalizeClass(`h-px ${v.value}`)},null,2))}}),ir={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"}},ar={small:"px-2 py-1 text-sm",medium:"px-4 py-2",large:"px-8 py-4 text-lg"},nr=["disabled"],or=["disabled","href"],Pe=d.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:{}},setup(b){const r=b,x=d.computed(()=>r.outlined?"":r.color),v=d.computed(()=>r.outlined?"outlined":"default"),A=d.computed(()=>{var B;return r.text?`uppercase ${De("text",r.type)} hover:${De("bg",r.type+"light")}`:`${(B=ir[r.type])==null?void 0:B[v.value]}`}),C=d.computed(()=>`
|
|
18
18
|
transition
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
${
|
|
22
|
-
${
|
|
23
|
-
${
|
|
24
|
-
${
|
|
25
|
-
${e.extraClass?e.extraClass:"transition"}`),l=t.computed(()=>{if(e.size==="large")return"30";if(e.size==="medium")return"20";if(e.size==="small")return"15"}),{disabled:i,prependIcon:a,appendIcon:u}=t.toRefs(e);return(d,h)=>d.href?(t.openBlock(),t.createElementBlock("a",{key:1,class:t.normalizeClass(`${c.value} text-center inline-block`),disabled:t.unref(i),href:d.href,target:"_blank"},[t.unref(a)?(t.openBlock(),t.createBlock(S,{key:0,iconPath:t.unref(a),size:l.value,extraClass:"mr-2"},null,8,["iconPath","size"])):t.createCommentVNode("",!0),t.renderSlot(d.$slots,"default"),t.unref(u)?(t.openBlock(),t.createBlock(S,{key:1,iconPath:t.unref(u),size:l.value,extraClass:"ml-2"},null,8,["iconPath","size"])):t.createCommentVNode("",!0)],10,Ns)):(t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(c.value),disabled:t.unref(i)},[t.unref(a)?(t.openBlock(),t.createBlock(S,{key:0,iconPath:t.unref(a),size:l.value,extraClass:"mr-2"},null,8,["iconPath","size"])):t.createCommentVNode("",!0),t.renderSlot(d.$slots,"default"),t.unref(u)?(t.openBlock(),t.createBlock(S,{key:1,iconPath:t.unref(u),size:l.value,extraClass:"ml-2"},null,8,["iconPath","size"])):t.createCommentVNode("",!0)],10,Ss))}});var Bs="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",Ts="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",vs="M21,2H3A2,2 0 0,0 1,4V20A2,2 0 0,0 3,22H21A2,2 0 0,0 23,20V4A2,2 0 0,0 21,2M11,17.5L9.5,19L5,14.5L9.5,10L11,11.5L8,14.5L11,17.5M14.5,19L13,17.5L16,14.5L13,11.5L14.5,10L19,14.5L14.5,19M21,7H3V4H21V7Z",$s="M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z",ar="M19 2L14 6.5V17.5L19 13V2M6.5 5C4.55 5 2.45 5.4 1 6.5V21.16C1 21.41 1.25 21.66 1.5 21.66C1.6 21.66 1.65 21.59 1.75 21.59C3.1 20.94 5.05 20.5 6.5 20.5C8.45 20.5 10.55 20.9 12 22C13.35 21.15 15.8 20.5 17.5 20.5C19.15 20.5 20.85 20.81 22.25 21.56C22.35 21.61 22.4 21.59 22.5 21.59C22.75 21.59 23 21.34 23 21.09V6.5C22.4 6.05 21.75 5.75 21 5.5V19C19.9 18.65 18.7 18.5 17.5 18.5C15.8 18.5 13.35 19.15 12 20V6.5C10.55 5.4 8.45 5 6.5 5Z",nt="M17.5 14.33C18.29 14.33 19.13 14.41 20 14.57V16.07C19.38 15.91 18.54 15.83 17.5 15.83C15.6 15.83 14.11 16.16 13 16.82V15.13C14.17 14.6 15.67 14.33 17.5 14.33M13 12.46C14.29 11.93 15.79 11.67 17.5 11.67C18.29 11.67 19.13 11.74 20 11.9V13.4C19.38 13.24 18.54 13.16 17.5 13.16C15.6 13.16 14.11 13.5 13 14.15M17.5 10.5C15.6 10.5 14.11 10.82 13 11.5V9.84C14.23 9.28 15.73 9 17.5 9C18.29 9 19.13 9.08 20 9.23V10.78C19.26 10.59 18.41 10.5 17.5 10.5M21 18.5V7C19.96 6.67 18.79 6.5 17.5 6.5C15.45 6.5 13.62 7 12 8V19.5C13.62 18.5 15.45 18 17.5 18C18.69 18 19.86 18.16 21 18.5M17.5 4.5C19.85 4.5 21.69 5 23 6V20.56C23 20.68 22.95 20.8 22.84 20.91C22.73 21 22.61 21.08 22.5 21.08C22.39 21.08 22.31 21.06 22.25 21.03C20.97 20.34 19.38 20 17.5 20C15.45 20 13.62 20.5 12 21.5C10.66 20.5 8.83 20 6.5 20C4.84 20 3.25 20.36 1.75 21.07C1.72 21.08 1.68 21.08 1.63 21.1C1.59 21.11 1.55 21.12 1.5 21.12C1.39 21.12 1.27 21.08 1.16 21C1.05 20.89 1 20.78 1 20.65V6C2.34 5 4.18 4.5 6.5 4.5C8.83 4.5 10.66 5 12 6C13.34 5 15.17 4.5 17.5 4.5Z",ur="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M18 14L15.5 12.5L13 14V6H18V14Z",dr="M9,1H19A2,2 0 0,1 21,3V19L19,18.13V3H7A2,2 0 0,1 9,1M15,20V7H5V20L10,17.82L15,20M15,5C16.11,5 17,5.9 17,7V23L10,20L3,23V7A2,2 0 0,1 5,5H15Z",Rs="M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z",Fs="M22,5V7H17L13.53,12H16V14H14.46L18.17,22H15.97L15.04,20H6.38L5.35,22H3.1L7.23,14H7C6.55,14 6.17,13.7 6.04,13.3L2.87,3.84L3.82,3.5C4.34,3.34 4.91,3.63 5.08,4.15L7.72,12H12.1L15.57,7H12V5H22M9.5,14L7.42,18H14.11L12.26,14H9.5Z",zs="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",Is="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",Ms="M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12M15.4,16.6L10.8,12L15.4,7.4L14,6L8,12L14,18L15.4,16.6Z",Hs="M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12M8.6,16.6L13.2,12L8.6,7.4L10,6L16,12L10,18L8.6,16.6Z",Ps="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",Us="M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H18A3,3 0 0,0 21,17V10C21,5 16.97,1 12,1Z",Os="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",js="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",Gs="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",pr="M4,6H20V16H4M20,18A2,2 0 0,0 22,16V6C22,4.89 21.1,4 20,4H4C2.89,4 2,4.89 2,6V16A2,2 0 0,0 4,18H0V20H24V18H20Z",Zs="M16.84,2.73C16.45,2.73 16.07,2.88 15.77,3.17L13.65,5.29L18.95,10.6L21.07,8.5C21.67,7.89 21.67,6.94 21.07,6.36L17.9,3.17C17.6,2.88 17.22,2.73 16.84,2.73M12.94,6L4.84,14.11L7.4,14.39L7.58,16.68L9.86,16.85L10.15,19.41L18.25,11.3M4.25,15.04L2.5,21.73L9.2,19.94L8.96,17.78L6.65,17.61L6.47,15.29",Ws="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",Js="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z",fr="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",Ys="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M19.03,7.39L20.45,5.97C20,5.46 19.55,5 19.04,4.56L17.62,6C16.07,4.74 14.12,4 12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22C17,22 21,17.97 21,13C21,10.88 20.26,8.93 19.03,7.39M11,14H13V8H11M15,1H9V3H15V1Z",hr="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z";const Qs=t.createElementVNode("span",{class:"absolute top-0 left-0 flex w-full h-0 mb-0 transition-all duration-300 ease-out transform translate-y-0 bg-primary group-hover:h-full opacity-90"},null,-1),Ks={class:"relative group-hover:text-primary-light"},Xs={class:"mb-2 flex items-center justify-between"},ec={class:"font-bold text-2xl"},tc={class:"text-sm font-light text-error italic"},rc={key:0,class:"text-xs"},nc={class:"mb-4 flex items-center justify-between"},oc=t.createElementVNode("h3",{class:"text-primary font-bold"},"Définition",-1),sc={key:0,class:"text-xs"},cc={class:"font-bold"},ic=["innerHTML"],lc={key:1,class:"text-sm mt-2"},ac=t.createElementVNode("span",{class:"mr-2 font-bold"},"Variations :",-1),uc={key:2,class:"text-sm mt-2"},dc=t.createElementVNode("span",{class:"mr-2 font-bold"},"Relations :",-1),pc={class:"flex justify-end"},mr=t.defineComponent({__name:"EpTerm",props:{term:{default:"test"},word:{},definition:{},variations:{default:""},domain:{},graminfo:{},relations:{default:""},idrelation:{default:""},labelClose:{default:"Fermer"}},setup(n){const e=n,r=t.ref(!1),o=t.computed(()=>Z(e.definition)?e.definition:Q(e.definition)),s=t.computed(()=>e.term!==e.word?`(${e.word})`:null),c=t.computed(()=>{var f;let h=null,p=(f=e.variations)==null?void 0:f.trim();return(p==null?void 0:p.length)>0&&(h=p.split(",")),h}),l=t.computed(()=>{var f;let h=null,p=(f=e.relations)==null?void 0:f.trim();return(p==null?void 0:p.length)>0&&(h=p.split(",")),h});t.computed(()=>{var f;let h=null,p=(f=e.idrelation)==null?void 0:f.trim();return(p==null?void 0:p.length)>0&&(h=p.split(",")),h});const i=t.computed(()=>e.domain==="null"?null:e.domain),{term:a,graminfo:u,labelClose:d}=t.toRefs(e);return(h,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("span",{onClick:p[0]||(p[0]=f=>r.value=!0),class:"cursor-pointer border-primary border text-primary px-2 py-1 rounded group overflow-hidden relative"},[Qs,t.createElementVNode("span",Ks,[t.createTextVNode(t.toDisplayString(h.word)+" ",1),t.createVNode(S,{"icon-path":t.unref(dr),size:"18"},null,8,["icon-path"])])]),t.createVNode(Le,{modelValue:r.value,"onUpdate:modelValue":p[2]||(p[2]=f=>r.value=f),size:"compact"},{default:t.withCtx(()=>[t.createElementVNode("div",Xs,[t.createElementVNode("div",null,[t.createElementVNode("h3",ec,[t.createTextVNode(t.toDisplayString(t.unref(a))+" ",1),t.createElementVNode("span",tc,t.toDisplayString(t.unref(u)),1)]),s.value?(t.openBlock(),t.createElementBlock("h4",rc,t.toDisplayString(s.value),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,[t.createVNode(S,{"icon-path":t.unref(dr)},null,8,["icon-path"])])]),t.createVNode(oe,{color:"primary",margin:"mb-2"}),t.createElementVNode("div",nc,[oc,i.value?(t.openBlock(),t.createElementBlock("span",sc,[t.createTextVNode("Domaine : "),t.createElementVNode("span",cc,t.toDisplayString(i.value),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{innerHTML:o.value},null,8,ic),c.value||l.value?(t.openBlock(),t.createBlock(oe,{key:0})):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("div",lc,[ac,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(f,m)=>(t.openBlock(),t.createElementBlock("span",{key:`variation-${m}`},t.toDisplayString(f)+t.toDisplayString(c.value.length>m+1?", ":"."),1))),128))])):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock("div",uc,[dc,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(f,m)=>(t.openBlock(),t.createBlock(z,{key:`relation-${m}`,size:"small",rounded:"","extra-class":"mr-2"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f),1)]),_:2},1024))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",pc,[t.createVNode(z,{type:"error",outlined:"",onClick:p[1]||(p[1]=f=>r.value=!1),rounded:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)),1)]),_:1})])]),_:1},8,["modelValue"])],64))}}),fc=t.defineComponent({__name:"EpText",props:{glossary:{},content:{},title:{},compact:{type:Boolean}},setup(n){const e=n,r=t.computed(()=>{if(!Z(e.content))return Q(e.content);const s=document.createElement("DIV");s.innerHTML=e.content.trim();let c=s.outerHTML;const l=s.querySelectorAll(".ep_glossary_item");return console.log(l),l.length>0&&l.forEach(i=>{const a=i.getAttribute("data-id"),u=i.innerHTML;let d=[];e.glossary&&(d=e.glossary);const h=d.find(p=>p.id===a);if(h){const p=i.outerHTML,f=d.filter(g=>g.relation.some(y=>y==a)),m=f.map(g=>g.id),_=f.map(g=>g.term),w=h.variation,x=` <EpTerm term="${h.term}" definition="${h.definition}" word="${u}" variations="${w}" graminfo='${h.graminfo}' domain='${h.domain}' relations='${_}' idrelation="${m}"></EpTerm> `;c=c.replace(p,x)}}),s.innerHTML=c,s.innerHTML}),o=t.defineComponent({components:{epterm:mr},template:r.value});return(s,c)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(o))))}}),hc={key:0,class:"flex"},mc=["src","alt"],gc={class:"px-4 py-2"},bc={class:"text-2xl font-bold"},_c={class:"text-gray-500 text-sm"},kc={class:"text-gray-700 mt-4"},xc={key:1,class:"relative group inline-block m-2"},yc=["src","alt"],wc={class:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white text-center"},Cc=["src","alt"],Ec={class:"px-4 py-2"},qc={class:"text-2xl font-bold"},Ac={class:"text-gray-500 text-sm"},Dc=t.defineComponent({__name:"EpImg",props:{src:{},alt:{default:"Image snfas"},height:{},width:{},thumbnail:{type:Boolean,default:!1},caption:{},bib:{},title:{},gallery:{type:Boolean},cols:{default:"basis-4/12"}},setup(n){const e=n,r=t.ref(!1),{src:o,alt:s,title:c,caption:l,thumbnail:i,bib:a,cols:u}=t.toRefs(e);return(d,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",hc,[t.createElementVNode("div",{class:t.normalizeClass(`mx-auto bg-white rounded-md overflow-hidden shadow-md ${t.unref(u)}`)},[t.createElementVNode("img",{class:"object-cover object-center w-full",src:t.unref(o),alt:t.unref(s),onClick:h[0]||(h[0]=p=>r.value=!0)},null,8,mc),t.createElementVNode("div",gc,[t.createElementVNode("h2",bc,t.toDisplayString(t.unref(c)),1),t.createElementVNode("p",_c,t.toDisplayString(t.unref(l)),1),t.createElementVNode("p",kc,t.toDisplayString(t.unref(a)),1)])],2)])),t.unref(i)?(t.openBlock(),t.createElementBlock("div",xc,[t.createElementVNode("img",{class:"w-36 h-36 object-cover object-center group-hover:opacity-50",src:t.unref(o),alt:t.unref(s)},null,8,yc),t.createElementVNode("div",{class:"absolute top-0 left-0 w-36 h-36 bg-black opacity-0 transition-opacity duration-300 group-hover:opacity-50 cursor-pointer",onClick:h[1]||(h[1]=p=>r.value=!0)},[t.createElementVNode("div",wc,[t.createVNode(S,{"icon-path":t.unref($s)},null,8,["icon-path"])])])])):t.createCommentVNode("",!0),t.createVNode(Le,{modelValue:r.value,"onUpdate:modelValue":h[2]||(h[2]=p=>r.value=p)},{default:t.withCtx(()=>[t.createElementVNode("img",{class:"object-cover object-center h-5/6 w-5/6 mx-auto",src:t.unref(o),alt:t.unref(s)},null,8,Cc),t.createElementVNode("div",Ec,[t.createElementVNode("h2",qc,t.toDisplayString(t.unref(c)),1),t.createElementVNode("p",Ac,t.toDisplayString(t.unref(l)),1)])]),_:1},8,["modelValue"])],64))}}),Vc={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},Lc=[t.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)],Sc=t.defineComponent({__name:"EpBadge",props:{color:{default:"primary"},outlined:{type:Boolean},square:{type:Boolean,default:!1},iconPath:{default:null}},setup(n){const e=n;return t.computed(()=>e.outlined?F("border",e.color):F("bg",e.color)),t.computed(()=>e.square?"":"rounded-full"),t.toRefs(e),(r,o)=>(t.openBlock(),t.createElementBlock("div",Vc,Lc))}}),Nc={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"}},Bc={small:"px-1 py-1 text-xs",medium:"py-2 px-3 text-sm",large:"px-3 py-3 text-lg"},se=t.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(n){const e=n,r=t.computed(()=>e.outlined?"outlined":"default"),o=t.computed(()=>e.square?"":"rounded-full"),s=t.computed(()=>e.outlined?"":e.dark?"text-white":"text-black"),c=t.computed(()=>{var a;return`
|
|
26
|
-
${
|
|
27
|
-
${
|
|
28
|
-
${
|
|
29
|
-
${(
|
|
30
|
-
`}),l=t.computed(()=>{if(e.size==="large")return"30";if(e.size==="medium")return"20";if(e.size==="small")return"15"}),{appendIcon:i}=t.toRefs(e);return(a,u)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(`${c.value} mx-2 cursor-default`)},[a.prependIcon?(t.openBlock(),t.createBlock(S,{key:0,iconPath:a.prependIcon,size:l.value,extraClass:"mr-2"},null,8,["iconPath","size"])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"default"),t.unref(i)?(t.openBlock(),t.createBlock(S,{key:1,iconPath:t.unref(i),size:l.value,extraClass:"ml-2"},null,8,["iconPath","size"])):t.createCommentVNode("",!0)],2))}}),Tc={class:"EpSection"},vc={class:"relative items-center w-full"},$c={class:"w-full mx-auto text-left"},Rc={class:"relative flex-col items-center m-auto align-middle"},Fc={class:"gap-12 text-left lg:gap-24"},zc={class:"order-first block w-full mt-12 lg:mt-0"},Ic=["src"],Mc={class:"flex flex-col space-y-20 lg:mt-0"},Hc={class:"border-b"},Pc={class:"text-2xl font-medium tracking-tight text-black sm:text-4xl"},Uc={class:""},Oc={class:"lg:max-w-7xl"},jc=t.defineComponent({__name:"EpSection",props:{title:{default:null},subtitle:{},prependIcon:{},iconSize:{},color:{default:null},taxonomyLevel:{},courseCode:{},courseTitle:{},height:{},src:{},synchrone:{type:Boolean}},setup(n){const e=n,{title:r,icon:o,color:s,src:c}=t.toRefs(e);return(l,i)=>(t.openBlock(),t.createElementBlock("section",Tc,[t.createElementVNode("div",vc,[t.createElementVNode("div",$c,[t.createElementVNode("div",Rc,[t.createElementVNode("div",Fc,[t.createElementVNode("div",zc,[t.unref(c)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"object-cover object-center w-full mx-auto bg-gray-300 border lg:ml-auto",alt:"hero",src:t.unref(c)},null,8,Ic)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Mc,[t.createElementVNode("div",Hc,[t.createElementVNode("div",null,[t.createElementVNode("p",Pc,t.toDisplayString(t.unref(r)),1),t.createElementVNode("p",Uc,t.toDisplayString(l.subtitle),1)])]),t.createElementVNode("div",Oc,[t.renderSlot(l.$slots,"default")])])])])])])]))}}),Gc=["width","height"],Zc=[t.createElementVNode("animateTransform",{attributeName:"transform",dur:"0.75s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"},null,-1)],Wc=["width","height"],Jc=t.createElementVNode("animateTransform",{attributeName:"transform",calcMode:"discrete",dur:"0.75s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12"},null,-1),Yc=t.defineComponent({__name:"EpSpinner",props:{color:{default:"primary"},dots:{type:Boolean,default:!1},size:{default:46}},setup(n){const e=n,r=t.computed(()=>F("fill",e.color));return(o,s)=>o.dots?(t.openBlock(),t.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",width:o.size,height:o.size,class:"inline",viewBox:"0 0 32 32"},[t.createElementVNode("g",null,[t.createElementVNode("circle",{cx:"12",cy:"2.5",r:"1.5",class:t.normalizeClass(r.value),fill:"currentColor",opacity:".14"},null,2),t.createElementVNode("circle",{cx:"16.75",cy:"3.77",r:"1.5",class:t.normalizeClass(r.value),fill:"currentColor",opacity:".29"},null,2),t.createElementVNode("circle",{cx:"20.23",cy:"7.25",r:"1.5",class:t.normalizeClass(r.value),fill:"currentColor",opacity:".43"},null,2),t.createElementVNode("circle",{cx:"21.5",cy:"12",r:"1.5",class:t.normalizeClass(r.value),fill:"currentColor",opacity:".57"},null,2),t.createElementVNode("circle",{cx:"20.23",cy:"16.75",r:"1.5",class:t.normalizeClass(r.value),fill:"currentColor",opacity:".71"},null,2),t.createElementVNode("circle",{cx:"16.75",cy:"20.23",r:"1.5",class:t.normalizeClass(r.value),fill:"currentColor",opacity:".86"},null,2),t.createElementVNode("circle",{cx:"12",cy:"21.5",r:"1.5",class:t.normalizeClass(r.value),fill:"currentColor"},null,2),Jc])],8,Wc)):(t.openBlock(),t.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:o.size,height:o.size,class:"inline",viewBox:"0 0 32 32"},[t.createElementVNode("path",{class:t.normalizeClass(r.value),fill:"currentColor",d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,2),t.createElementVNode("path",{class:t.normalizeClass(r.value),fill:"currentColor",d:"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"},Zc,2)],8,Gc))}}),Qc={class:"grid grid-cols-2 gap-4"},Kc=t.defineComponent({__name:"EpFlex",setup(n){return(e,r)=>(t.openBlock(),t.createElementBlock("div",Qc,[t.renderSlot(e.$slots,"default")]))}}),Xc={class:"min-w-full divide-y divide-gray-200 shadow"},ei={key:0,class:"bg-gray-50"},ti={class:"bg-white divide-y divide-gray-200"},ri="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",ni=t.defineComponent({__name:"EpTable",props:{arrayContent:{},headers:{},title:{}},setup(n){const e=n,{headers:r,arrayContent:o,title:s}=t.toRefs(e);return(c,l)=>(t.openBlock(),t.createBlock(Ve,{flat:"",title:t.unref(s)},{default:t.withCtx(()=>[t.createElementVNode("table",Xc,[t.unref(r)?(t.openBlock(),t.createElementBlock("thead",ei,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(r),(i,a)=>(t.openBlock(),t.createElementBlock("th",{key:`th-${a}`,scope:"col",class:t.normalizeClass(ri)},t.toDisplayString(i),1))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("tbody",ti,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(o),(i,a)=>(t.openBlock(),t.createElementBlock("tr",{key:`tr-${a}`,class:"hover:bg-gray-50"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i,(u,d)=>(t.openBlock(),t.createElementBlock("td",{key:`td-${a}-${d}`,class:"px-6 py-4 whitespace-nowrap"},t.toDisplayString(u),1))),128))]))),128))])])]),_:1},8,["title"]))}}),gr={base:"bg-neutral-100 text-black",primary:"bg-primary text-white",secondary:"bg-secondary text-white",accent:"bg-accent text-white",info:"bg-info text-white",warning:"bg-warning text-white",success:"bg-success text-white",error:"bg-error text-white"},br=t.defineComponent({__name:"EpScope",props:{title:{default:"Essentiel"}},setup(n){const e=n,{title:r}=t.toRefs(e);return(o,s)=>(t.openBlock(),t.createBlock(se,{size:"small",type:"base"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)),1)]),_:1}))}}),oi={class:"font-bold align-middle"},si={class:"px-5"},ci={key:0,class:"py-2 grow"},ii=t.createElementVNode("h4",{class:"font-semibold mb-2 text-sm uppercase tracking-wide text-gray-500"}," [Intentions] ",-1),li={class:"grow"},U=t.defineComponent({__name:"EpEdu",props:{title:{default:null},subtitle:{},icon:{},mandateLevel:{},synchrone:{type:Boolean},type:{default:"base"},intentions:{},hideIcon:{type:Boolean,default:!1},flat:{type:Boolean,default:!1}},setup(n){const e=n,r=t.useSlots(),o=t.computed(()=>!!r.intentions),s=t.computed(()=>!!r.actions),c=t.computed(()=>e.icon?e.icon:Zs),l=t.computed(()=>`${gr[e.type]} text-left px-5 py-2 ${e.flat?"":"rounded-t-md"} flex justify-between items-center `),i=t.computed(()=>`${gr[e.type]} text-right pr-5`),a=t.computed(()=>s.value||o.value||e.title?`rounded-lg overflow-hidden ${e.flat?"":"shadow-md"} flex flex-col justify-between h-full`:"flex flex-col justify-between h-full"),{title:u,hideIcon:d}=t.toRefs(e);return(h,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(a.value)},[t.unref(u)||h.mandateLevel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(`${l.value}`)},[t.createElementVNode("h3",null,[t.unref(d)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(S,{key:0,iconPath:c.value,size:"24"},null,8,["iconPath"])),t.createTextVNode(),t.createElementVNode("span",oi,t.toDisplayString(t.unref(u)),1)]),h.mandateLevel?(t.openBlock(),t.createBlock(br,{key:0,title:h.mandateLevel},null,8,["title"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",si,[o.value?(t.openBlock(),t.createElementBlock("div",ci,[ii,t.renderSlot(h.$slots,"intentions"),t.createVNode(oe)])):t.createCommentVNode("",!0),t.createElementVNode("div",li,[t.renderSlot(h.$slots,"content")])]),s.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.value)},[t.renderSlot(h.$slots,"actions")],2)):t.createCommentVNode("",!0)],2))}});function ai(n){return t.getCurrentScope()?(t.onScopeDispose(n),!0):!1}function _r(n){return typeof n=="function"?n():t.unref(n)}const kr=typeof window<"u",ot=()=>{},ui=di();function di(){var n;return kr&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function pe(n){var e;const r=_r(n);return(e=r==null?void 0:r.$el)!=null?e:r}const xr=kr?window:void 0;function Se(...n){let e,r,o,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([r,o,s]=n,e=xr):[e,r,o,s]=n,!e)return ot;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],l=()=>{c.forEach(d=>d()),c.length=0},i=(d,h,p,f)=>(d.addEventListener(h,p,f),()=>d.removeEventListener(h,p,f)),a=t.watch(()=>[pe(e),_r(s)],([d,h])=>{l(),d&&c.push(...r.flatMap(p=>o.map(f=>i(d,p,f,h))))},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return ai(u),u}let yr=!1;function pi(n,e,r={}){const{window:o=xr,ignore:s=[],capture:c=!0,detectIframe:l=!1}=r;if(!o)return;ui&&!yr&&(yr=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",ot)),o.document.documentElement.addEventListener("click",ot));let i=!0;const a=p=>s.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(m=>m===p.target||p.composedPath().includes(m));{const m=pe(f);return m&&(p.target===m||p.composedPath().includes(m))}}),d=[Se(o,"click",p=>{const f=pe(n);if(!(!f||f===p.target||p.composedPath().includes(f))){if(p.detail===0&&(i=!a(p)),!i){i=!0;return}e(p)}},{passive:!0,capture:c}),Se(o,"pointerdown",p=>{const f=pe(n);f&&(i=!p.composedPath().includes(f)&&!a(p))},{passive:!0}),l&&Se(o,"blur",p=>{setTimeout(()=>{var f;const m=pe(n);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(m!=null&&m.contains(o.document.activeElement))&&e(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}const fi={class:"relative"},hi=t.defineComponent({__name:"DisplayBox",setup(n){const e=t.ref(),r=t.ref();pi(e,l=>{r.value=!1}),Se("keydown",l=>{l.key==="Escape"&&r&&(r.value=!1)});function o(){return r.value=!0}function s(){return r.value=!1}const c=t.computed(()=>r.value?"absolute w-[32rem] -left-96 z-40":"hidden");return(l,i)=>(t.openBlock(),t.createElementBlock("div",fi,[t.renderSlot(l.$slots,"default",{open:o}),t.createElementVNode("div",{ref_key:"menu",ref:e,class:t.normalizeClass(c.value)},[t.renderSlot(l.$slots,"menu",{isOpen:r.value,close:s})],2)]))}});function j(n){return Z(n)?n:Q(n)}const mi={key:0,class:"flex rounded-lg overflow-hidden bg-white md:flex-row"},gi={key:0,class:"bg-primary h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},bi=["src","alt"],_i={key:1,class:"h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},ki={class:"flex flex-col w-full"},xi=["innerHTML"],yi={class:"w-full"},wi={class:"flex"},Ci={key:0,class:"flex-1 py-2"},Ei={class:"font-medium"},qi={key:0,class:"text-sm italic pr-1"},Ai={key:1,class:"font-bold"},Di={key:2},Vi={key:3},Li={key:4},Si={key:0},Ni=t.createElementVNode("span",{class:"text-sm italic pr-1"},"dans",-1),Bi={class:""},Ti={class:"pl-2 align-middle"},vi=["innerHTML"],$i={class:"flex flex-row justify-between"},Ri={class:"p-5"},Fi={class:"text-lg leading-6 font-semibold font-sans text-skin-inverted group-hover:text-skin-primary"},zi={class:"flex"},Ii={class:"p-5"},Mi={class:"w-[32rem]"},Hi={class:"flex flex-col rounded-lg bg-white md:flex-row"},Pi=["src","alt"],Ui={key:1,class:"h-96 border-l border-t border-b w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},Oi={class:"flex flex-col justify-between w-full"},ji={class:"bg-neutral-100 text-left px-5 py-2"},Gi=t.createElementVNode("span",{class:"pl-2 align-middle"},"Lecture",-1),Zi={class:"w-full px-5"},Wi={class:"flex"},Ji={key:0,class:"flex-1 py-2"},Yi={class:"font-medium"},Qi={key:0,class:"text-sm italic pr-1"},Ki={key:1,class:"font-bold"},Xi={key:2},el={key:3},tl={key:4},rl={key:0},nl=t.createElementVNode("span",{class:"text-sm italic pr-1"},"dans",-1),ol={class:""},sl={class:"pl-2 align-middle"},cl={class:"bg-neutral-100 text-right pr-5"},il={class:"border-l p-5"},ll="https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg",al=t.defineComponent({__name:"EpReading",props:{url:{},year:{},author:{},cover:{default:""},title:{default:null},container:{},editor:{},pages:{},mandateLevel:{},intentions:{default:""},compact:{type:Boolean,default:!1},more:{type:Boolean},version_link:{},hideCover:{type:Boolean,default:!1},labelcard:{default:"lecture"},labelBtb:{default:"lire"},labelIntentions:{default:"Intentions de lecture"},type:{default:"base"},hideIcon:{type:Boolean,default:!1}},setup(n){const e=n,r=t.computed(()=>!(e.cover===ll||e.cover.trim().length===0)),o=t.computed(()=>!!(e.author||e.editor||e.container||e.year)),{title:s,intentions:c,cover:l,hideCover:i,labelcard:a,year:u,author:d,container:h,editor:p,pages:f,type:m,mandateLevel:_}=t.toRefs(e);return(w,x)=>w.compact?(t.openBlock(),t.createBlock(U,{key:1,title:t.unref(a),icon:t.unref(nt),flat:"",type:t.unref(m),hideIcon:w.hideIcon},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",$i,[t.createElementVNode("div",Ri,[t.createElementVNode("span",Fi,t.toDisplayString(t.unref(s)),1)]),t.createElementVNode("div",zi,[t.createElementVNode("div",Ii,[t.createVNode(hi,null,{default:t.withCtx(({open:g})=>[t.createVNode(z,{text:"",onClick:t.withModifiers(g,["stop"])},{default:t.withCtx(()=>[t.createTextVNode(" détails ")]),_:2},1032,["onClick"])]),menu:t.withCtx(({close:g})=>[t.createElementVNode("div",Mi,[t.createElementVNode("div",Hi,[t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.value?(t.openBlock(),t.createElementBlock("img",{key:0,class:"object-cover h-96 w-full rounded-t-lg object-cover md:h-auto md:w-56 md:rounded-none md:rounded-l-lg",src:t.unref(l),alt:`image de la lecture ${t.unref(s)}`},null,8,Pi)):(t.openBlock(),t.createElementBlock("div",Ui,[t.createVNode(S,{"icon-path":t.unref(ar),size:"95"},null,8,["icon-path"])]))],64)),t.createElementVNode("div",Oi,[t.createElementVNode("div",ji,[t.createVNode(S,{size:24,"icon-path":t.unref(nt)},null,8,["icon-path"]),Gi]),t.createElementVNode("div",Zi,[t.createElementVNode("h4",{class:t.normalizeClass(`text-xl font-semibold py-4 ${o.value||t.unref(f)?"border-b":""}`)},t.toDisplayString(t.unref(s)),3),t.createElementVNode("div",Wi,[o.value?(t.openBlock(),t.createElementBlock("div",Ji,[t.createElementVNode("p",Yi,[t.unref(d)?(t.openBlock(),t.createElementBlock("span",Qi,"par")):t.createCommentVNode("",!0),t.unref(d)?(t.openBlock(),t.createElementBlock("span",Ki,t.toDisplayString(t.unref(d)),1)):t.createCommentVNode("",!0),t.unref(u)?(t.openBlock(),t.createElementBlock("span",Xi,"("+t.toDisplayString(t.unref(u))+")",1)):t.createCommentVNode("",!0),t.unref(u)&&t.unref(p)?(t.openBlock(),t.createElementBlock("span",el,", ")):t.createCommentVNode("",!0),t.unref(p)?(t.openBlock(),t.createElementBlock("span",tl,t.toDisplayString(t.unref(p)),1)):t.createCommentVNode("",!0)]),t.unref(h)?(t.openBlock(),t.createElementBlock("p",rl,[nl,t.createElementVNode("span",ol,t.toDisplayString(t.unref(h)),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.unref(f)?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(`flex-1 pt-2 pb-2 ${o.value?"border-l pl-2":""}`)},[t.createVNode(S,{size:24,"icon-path":t.unref(ur)},null,8,["icon-path"]),t.createElementVNode("span",sl,t.toDisplayString(t.unref(f)),1)],2)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",cl,[t.createVNode(z,{text:"",onClick:t.withModifiers(g,["stop"])},{default:t.withCtx(()=>[t.createTextVNode(" Fermer ")]),_:2},1032,["onClick"])])])])])]),_:1})]),t.createElementVNode("div",il,[t.createVNode(z,{text:""},{default:t.withCtx(()=>[t.createVNode(S,{size:20,"icon-path":t.unref(fr)},null,8,["icon-path"]),t.createTextVNode(" Lire ")]),_:1})])])])]),_:2},[t.unref(j)(t.unref(c))?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:t.unref(j)(t.unref(c))},null,8,vi)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon"])):(t.openBlock(),t.createElementBlock("div",mi,[t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.value?(t.openBlock(),t.createElementBlock("div",gi,[t.createElementVNode("img",{src:t.unref(l),alt:`image de la lecture ${t.unref(s)}`},null,8,bi)])):(t.openBlock(),t.createElementBlock("div",_i,[t.createVNode(S,{"icon-path":t.unref(ar),size:"95"},null,8,["icon-path"])]))],64)),t.createElementVNode("div",ki,[t.createVNode(U,{title:t.unref(a),icon:t.unref(nt),flat:"",type:t.unref(m),hideIcon:w.hideIcon,mandateLevel:t.unref(_)},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",yi,[t.createElementVNode("h4",{class:t.normalizeClass(`text-xl font-semibold ${o.value||t.unref(f)?"border-b":""}`)},t.toDisplayString(t.unref(s)),3),t.createElementVNode("div",wi,[o.value?(t.openBlock(),t.createElementBlock("div",Ci,[t.createElementVNode("p",Ei,[t.unref(d)?(t.openBlock(),t.createElementBlock("span",qi,"par")):t.createCommentVNode("",!0),t.unref(d)?(t.openBlock(),t.createElementBlock("span",Ai,t.toDisplayString(t.unref(d)),1)):t.createCommentVNode("",!0),t.unref(u)?(t.openBlock(),t.createElementBlock("span",Di,"("+t.toDisplayString(t.unref(u))+")",1)):t.createCommentVNode("",!0),t.unref(u)&&t.unref(p)?(t.openBlock(),t.createElementBlock("span",Vi,", ")):t.createCommentVNode("",!0),t.unref(p)?(t.openBlock(),t.createElementBlock("span",Li,t.toDisplayString(t.unref(p)),1)):t.createCommentVNode("",!0)]),t.unref(h)?(t.openBlock(),t.createElementBlock("p",Si,[Ni,t.createElementVNode("span",Bi,t.toDisplayString(t.unref(h)),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.unref(f)?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(`flex-1 pt-2 pb-2 ${o.value?"border-l pl-2":""}`)},[t.createVNode(S,{size:24,"icon-path":t.unref(ur)},null,8,["icon-path"]),t.createElementVNode("span",Ti,t.toDisplayString(t.unref(f)),1)],2)):t.createCommentVNode("",!0)])])]),actions:t.withCtx(()=>[t.createVNode(z,{color:t.unref(m)=="base"?"text-gray-700":"text-white",type:t.unref(m)},{default:t.withCtx(()=>[t.createTextVNode("LIRE")]),_:1},8,["color","type"])]),_:2},[t.unref(j)(t.unref(c))?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:t.unref(j)(t.unref(c))},null,8,xi)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"])])]))}}),ul={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"}},dl=n=>(t.pushScopeId("data-v-69793e45"),n=n(),t.popScopeId(),n),pl={class:"text-lg"},fl=[dl(()=>t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1))],hl={class:"py-4"},ml=t.defineComponent({__name:"EpAccordeon",props:{title:{default:"En savoir plus"},type:{default:"base"},icon:{},open:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},setup(n){const e=n,r=t.ref(e.open),o=t.ref(),s=t.computed(()=>e.outlined?"outlined":"default"),c=t.computed(()=>{var d;return`flex justify-between items-center px-4 py-2 cursor-pointer ${(d=ul[e.type])==null?void 0:d[s.value]}`}),l=t.computed(()=>`px-4 ${F("bg",e.type+"light")}`);t.onMounted(()=>{var d=o.value;e.open&&(d.style.maxHeight=d.scrollHeight+"px")});function i(){r.value=!r.value;var d=o.value;d.style.maxHeight?d.style.maxHeight=null:d.style.maxHeight=d.scrollHeight+"px",d.style.transition||(d.style.transition="max-height 0.2s ease-out")}const{title:a,icon:u}=t.toRefs(e);return(d,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(c.value),onClick:i},[t.createElementVNode("h3",pl,[t.unref(u)?(t.openBlock(),t.createBlock(S,{key:0,"icon-path":t.unref(u)},null,8,["icon-path"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(a)),1)]),(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:t.normalizeClass(`mx-4 my-3 h-6 w-6 transition-all duration-200 ${r.value?"rotate-45":""}`)},fl,2))],2),t.createElementVNode("div",{ref_key:"collapsible",ref:o,class:t.normalizeClass(`${l.value} content`)},[t.createElementVNode("div",hl,[t.renderSlot(d.$slots,"default",{},void 0,!0)])],2)],64))}}),BI="",K=(n,e)=>{const r=n.__vccOpts||n;for(const[o,s]of e)r[o]=s;return r},wr=K(ml,[["__scopeId","data-v-69793e45"]]),gl={},bl={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},_l=[t.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function kl(n,e){return t.openBlock(),t.createElementBlock("div",bl,_l)}const xl=K(gl,[["render",kl]]),yl={},wl={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},Cl=[t.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function El(n,e){return t.openBlock(),t.createElementBlock("div",wl,Cl)}const ql=K(yl,[["render",El]]),Al={},Dl={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},Vl=[t.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function Ll(n,e){return t.openBlock(),t.createElementBlock("div",Dl,Vl)}const Sl=K(Al,[["render",Ll]]),Nl={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 640 360",style:{"enable-background":"new 0 0 640 360"},"xml:space":"preserve"},Bl=t.createStaticVNode(`<pattern y="-20" width="150" height="100" patternUnits="userSpaceOnUse" id="New_Pattern" viewBox="8 -107.8 150 100" style="overflow:visible;"><g><rect x="8" y="-107.8" style="fill:none;" width="150" height="100"></rect><g style="opacity:0.1;"><path d="M159.8-15.5c3.5,0.8,6.2,4,6.2,7.8s-2.7,7-6.2,7.8v-1.8c2.6-0.8,4.4-3.1,4.4-5.9s-1.9-5.2-4.4-5.9V-15.5 M162-7.8
|
|
19
|
+
${A.value}
|
|
20
|
+
${ar[r.size]}
|
|
21
|
+
${x.value}
|
|
22
|
+
${r.disabled?"opacity-50":""}
|
|
23
|
+
${r.block?"w-full block":""}
|
|
24
|
+
${r.rounded?"rounded-md":""}
|
|
25
|
+
${r.extraClass?r.extraClass:"transition"}`),T=d.computed(()=>{if(r.size==="large")return"30";if(r.size==="medium")return"20";if(r.size==="small")return"15"}),{disabled:S,prependIcon:P,appendIcon:N}=d.toRefs(r);return(B,X)=>B.href?(d.openBlock(),d.createElementBlock("a",{key:1,class:d.normalizeClass(`${C.value} text-center inline-block`),disabled:d.unref(S),href:B.href,target:"_blank"},[d.unref(P)?(d.openBlock(),d.createBlock(fe,{key:0,iconPath:d.unref(P),size:T.value,extraClass:"mr-2"},null,8,["iconPath","size"])):d.createCommentVNode("",!0),d.renderSlot(B.$slots,"default"),d.unref(N)?(d.openBlock(),d.createBlock(fe,{key:1,iconPath:d.unref(N),size:T.value,extraClass:"ml-2"},null,8,["iconPath","size"])):d.createCommentVNode("",!0)],10,or)):(d.openBlock(),d.createElementBlock("button",{key:0,class:d.normalizeClass(C.value),disabled:d.unref(S)},[d.unref(P)?(d.openBlock(),d.createBlock(fe,{key:0,iconPath:d.unref(P),size:T.value,extraClass:"mr-2"},null,8,["iconPath","size"])):d.createCommentVNode("",!0),d.renderSlot(B.$slots,"default"),d.unref(N)?(d.openBlock(),d.createBlock(fe,{key:1,iconPath:d.unref(N),size:T.value,extraClass:"ml-2"},null,8,["iconPath","size"])):d.createCommentVNode("",!0)],10,nr))}});var rr="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",lr="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",cr="M21,2H3A2,2 0 0,0 1,4V20A2,2 0 0,0 3,22H21A2,2 0 0,0 23,20V4A2,2 0 0,0 21,2M11,17.5L9.5,19L5,14.5L9.5,10L11,11.5L8,14.5L11,17.5M14.5,19L13,17.5L16,14.5L13,11.5L14.5,10L19,14.5L14.5,19M21,7H3V4H21V7Z",hr="M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z",_i="M19 2L14 6.5V17.5L19 13V2M6.5 5C4.55 5 2.45 5.4 1 6.5V21.16C1 21.41 1.25 21.66 1.5 21.66C1.6 21.66 1.65 21.59 1.75 21.59C3.1 20.94 5.05 20.5 6.5 20.5C8.45 20.5 10.55 20.9 12 22C13.35 21.15 15.8 20.5 17.5 20.5C19.15 20.5 20.85 20.81 22.25 21.56C22.35 21.61 22.4 21.59 22.5 21.59C22.75 21.59 23 21.34 23 21.09V6.5C22.4 6.05 21.75 5.75 21 5.5V19C19.9 18.65 18.7 18.5 17.5 18.5C15.8 18.5 13.35 19.15 12 20V6.5C10.55 5.4 8.45 5 6.5 5Z",hs="M17.5 14.33C18.29 14.33 19.13 14.41 20 14.57V16.07C19.38 15.91 18.54 15.83 17.5 15.83C15.6 15.83 14.11 16.16 13 16.82V15.13C14.17 14.6 15.67 14.33 17.5 14.33M13 12.46C14.29 11.93 15.79 11.67 17.5 11.67C18.29 11.67 19.13 11.74 20 11.9V13.4C19.38 13.24 18.54 13.16 17.5 13.16C15.6 13.16 14.11 13.5 13 14.15M17.5 10.5C15.6 10.5 14.11 10.82 13 11.5V9.84C14.23 9.28 15.73 9 17.5 9C18.29 9 19.13 9.08 20 9.23V10.78C19.26 10.59 18.41 10.5 17.5 10.5M21 18.5V7C19.96 6.67 18.79 6.5 17.5 6.5C15.45 6.5 13.62 7 12 8V19.5C13.62 18.5 15.45 18 17.5 18C18.69 18 19.86 18.16 21 18.5M17.5 4.5C19.85 4.5 21.69 5 23 6V20.56C23 20.68 22.95 20.8 22.84 20.91C22.73 21 22.61 21.08 22.5 21.08C22.39 21.08 22.31 21.06 22.25 21.03C20.97 20.34 19.38 20 17.5 20C15.45 20 13.62 20.5 12 21.5C10.66 20.5 8.83 20 6.5 20C4.84 20 3.25 20.36 1.75 21.07C1.72 21.08 1.68 21.08 1.63 21.1C1.59 21.11 1.55 21.12 1.5 21.12C1.39 21.12 1.27 21.08 1.16 21C1.05 20.89 1 20.78 1 20.65V6C2.34 5 4.18 4.5 6.5 4.5C8.83 4.5 10.66 5 12 6C13.34 5 15.17 4.5 17.5 4.5Z",Ei="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M18 14L15.5 12.5L13 14V6H18V14Z",Li="M9,1H19A2,2 0 0,1 21,3V19L19,18.13V3H7A2,2 0 0,1 9,1M15,20V7H5V20L10,17.82L15,20M15,5C16.11,5 17,5.9 17,7V23L10,20L3,23V7A2,2 0 0,1 5,5H15Z",dr="M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z",ur="M22,5V7H17L13.53,12H16V14H14.46L18.17,22H15.97L15.04,20H6.38L5.35,22H3.1L7.23,14H7C6.55,14 6.17,13.7 6.04,13.3L2.87,3.84L3.82,3.5C4.34,3.34 4.91,3.63 5.08,4.15L7.72,12H12.1L15.57,7H12V5H22M9.5,14L7.42,18H14.11L12.26,14H9.5Z",pr="M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z",gr="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",fr="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",xr="M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12M15.4,16.6L10.8,12L15.4,7.4L14,6L8,12L14,18L15.4,16.6Z",mr="M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12M8.6,16.6L13.2,12L8.6,7.4L10,6L16,12L10,18L8.6,16.6Z",br="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",vr="M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H18A3,3 0 0,0 21,17V10C21,5 16.97,1 12,1Z",yr="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",wr="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",kr="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",Ti="M4,6H20V16H4M20,18A2,2 0 0,0 22,16V6C22,4.89 21.1,4 20,4H4C2.89,4 2,4.89 2,6V16A2,2 0 0,0 4,18H0V20H24V18H20Z",Cr="M16.84,2.73C16.45,2.73 16.07,2.88 15.77,3.17L13.65,5.29L18.95,10.6L21.07,8.5C21.67,7.89 21.67,6.94 21.07,6.36L17.9,3.17C17.6,2.88 17.22,2.73 16.84,2.73M12.94,6L4.84,14.11L7.4,14.39L7.58,16.68L9.86,16.85L10.15,19.41L18.25,11.3M4.25,15.04L2.5,21.73L9.2,19.94L8.96,17.78L6.65,17.61L6.47,15.29",Ar="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",Sr="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z",Di="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",_r="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M19.03,7.39L20.45,5.97C20,5.46 19.55,5 19.04,4.56L17.62,6C16.07,4.74 14.12,4 12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22C17,22 21,17.97 21,13C21,10.88 20.26,8.93 19.03,7.39M11,14H13V8H11M15,1H9V3H15V1Z",Pi="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z";const Er=d.createElementVNode("span",{class:"absolute top-0 left-0 flex w-full h-0 mb-0 transition-all duration-300 ease-out transform translate-y-0 bg-primary group-hover:h-full opacity-90"},null,-1),Lr={class:"relative group-hover:text-primary-light"},Tr={class:"mb-2 flex items-center justify-between"},Dr={class:"font-bold text-2xl"},Pr={class:"text-sm font-light text-error italic"},Ir={key:0,class:"text-xs"},zr={class:"mb-4 flex items-center justify-between"},Mr=d.createElementVNode("h3",{class:"text-primary font-bold"},"Définition",-1),Nr={key:0,class:"text-xs"},Br={class:"font-bold"},Rr=["innerHTML"],Fr={key:1,class:"text-sm mt-2"},Vr=d.createElementVNode("span",{class:"mr-2 font-bold"},"Variations :",-1),Hr={key:2,class:"text-sm mt-2"},Or=d.createElementVNode("span",{class:"mr-2 font-bold"},"Relations :",-1),Xr={class:"flex justify-end"},Ii=d.defineComponent({__name:"EpTerm",props:{term:{default:"test"},word:{},definition:{},variations:{default:""},domain:{},graminfo:{},relations:{default:""},idrelation:{default:""},labelClose:{default:"Fermer"}},setup(b){const r=b,x=d.ref(!1),v=d.computed(()=>Ye(r.definition)?r.definition:Ge(r.definition)),A=d.computed(()=>r.term!==r.word?`(${r.word})`:null),C=d.computed(()=>{var O;let X=null,H=(O=r.variations)==null?void 0:O.trim();return(H==null?void 0:H.length)>0&&(X=H.split(",")),X}),T=d.computed(()=>{var O;let X=null,H=(O=r.relations)==null?void 0:O.trim();return(H==null?void 0:H.length)>0&&(X=H.split(",")),X});d.computed(()=>{var O;let X=null,H=(O=r.idrelation)==null?void 0:O.trim();return(H==null?void 0:H.length)>0&&(X=H.split(",")),X});const S=d.computed(()=>r.domain==="null"?null:r.domain),{term:P,graminfo:N,labelClose:B}=d.toRefs(r);return(X,H)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("span",{onClick:H[0]||(H[0]=O=>x.value=!0),class:"cursor-pointer border-primary border text-primary px-2 py-1 rounded group overflow-hidden relative"},[Er,d.createElementVNode("span",Lr,[d.createTextVNode(d.toDisplayString(X.word)+" ",1),d.createVNode(fe,{"icon-path":d.unref(Li),size:"18"},null,8,["icon-path"])])]),d.createVNode(It,{modelValue:x.value,"onUpdate:modelValue":H[2]||(H[2]=O=>x.value=O),size:"compact"},{default:d.withCtx(()=>[d.createElementVNode("div",Tr,[d.createElementVNode("div",null,[d.createElementVNode("h3",Dr,[d.createTextVNode(d.toDisplayString(d.unref(P))+" ",1),d.createElementVNode("span",Pr,d.toDisplayString(d.unref(N)),1)]),A.value?(d.openBlock(),d.createElementBlock("h4",Ir,d.toDisplayString(A.value),1)):d.createCommentVNode("",!0)]),d.createElementVNode("div",null,[d.createVNode(fe,{"icon-path":d.unref(Li)},null,8,["icon-path"])])]),d.createVNode(ct,{color:"primary",margin:"mb-2"}),d.createElementVNode("div",zr,[Mr,S.value?(d.openBlock(),d.createElementBlock("span",Nr,[d.createTextVNode("Domaine : "),d.createElementVNode("span",Br,d.toDisplayString(S.value),1)])):d.createCommentVNode("",!0)]),d.createElementVNode("div",{innerHTML:v.value},null,8,Rr),C.value||T.value?(d.openBlock(),d.createBlock(ct,{key:0})):d.createCommentVNode("",!0),C.value?(d.openBlock(),d.createElementBlock("div",Fr,[Vr,(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(C.value,(O,U)=>(d.openBlock(),d.createElementBlock("span",{key:`variation-${U}`},d.toDisplayString(O)+d.toDisplayString(C.value.length>U+1?", ":"."),1))),128))])):d.createCommentVNode("",!0),T.value?(d.openBlock(),d.createElementBlock("div",Hr,[Or,(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(T.value,(O,U)=>(d.openBlock(),d.createBlock(Pe,{key:`relation-${U}`,size:"small",rounded:"","extra-class":"mr-2"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(O),1)]),_:2},1024))),128))])):d.createCommentVNode("",!0),d.createElementVNode("div",Xr,[d.createVNode(Pe,{type:"error",outlined:"",onClick:H[1]||(H[1]=O=>x.value=!1),rounded:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(B)),1)]),_:1})])]),_:1},8,["modelValue"])],64))}}),Yr=d.defineComponent({__name:"EpText",props:{glossary:{},content:{},title:{},compact:{type:Boolean}},setup(b){const r=b,x=d.computed(()=>{if(!Ye(r.content))return Ge(r.content);const A=document.createElement("DIV");A.innerHTML=r.content.trim();let C=A.outerHTML;const T=A.querySelectorAll(".ep_glossary_item");return console.log(T),T.length>0&&T.forEach(S=>{const P=S.getAttribute("data-id"),N=S.innerHTML;let B=[];r.glossary&&(B=r.glossary);const X=B.find(H=>H.id===P);if(X){const H=S.outerHTML,O=B.filter(R=>R.relation.some($=>$==P)),U=O.map(R=>R.id),q=O.map(R=>R.term),te=X.variation,J=` <EpTerm term="${X.term}" definition="${X.definition}" word="${N}" variations="${te}" graminfo='${X.graminfo}' domain='${X.domain}' relations='${q}' idrelation="${U}"></EpTerm> `;C=C.replace(H,J)}}),A.innerHTML=C,A.innerHTML}),v=d.defineComponent({components:{epterm:Ii},template:x.value});return(A,C)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(d.unref(v))))}}),Wr={key:0,class:"flex"},Gr=["src","alt"],jr={class:"px-4 py-2"},Ur={class:"text-2xl font-bold"},Zr={class:"text-gray-500 text-sm"},Jr={class:"text-gray-700 mt-4"},Qr={key:1,class:"relative group inline-block m-2"},Kr=["src","alt"],qr={class:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white text-center"},$r=["src","alt"],el={class:"px-4 py-2"},tl={class:"text-2xl font-bold"},sl={class:"text-gray-500 text-sm"},il=d.defineComponent({__name:"EpImg",props:{src:{},alt:{default:"Image snfas"},height:{},width:{},thumbnail:{type:Boolean,default:!1},caption:{},bib:{},title:{},gallery:{type:Boolean},cols:{default:"basis-4/12"}},setup(b){const r=b,x=d.ref(!1),{src:v,alt:A,title:C,caption:T,thumbnail:S,bib:P,cols:N}=d.toRefs(r);return(B,X)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.unref(S)?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",Wr,[d.createElementVNode("div",{class:d.normalizeClass(`mx-auto bg-white rounded-md overflow-hidden shadow-md ${d.unref(N)}`)},[d.createElementVNode("img",{class:"object-cover object-center w-full",src:d.unref(v),alt:d.unref(A),onClick:X[0]||(X[0]=H=>x.value=!0)},null,8,Gr),d.createElementVNode("div",jr,[d.createElementVNode("h2",Ur,d.toDisplayString(d.unref(C)),1),d.createElementVNode("p",Zr,d.toDisplayString(d.unref(T)),1),d.createElementVNode("p",Jr,d.toDisplayString(d.unref(P)),1)])],2)])),d.unref(S)?(d.openBlock(),d.createElementBlock("div",Qr,[d.createElementVNode("img",{class:"w-36 h-36 object-cover object-center group-hover:opacity-50",src:d.unref(v),alt:d.unref(A)},null,8,Kr),d.createElementVNode("div",{class:"absolute top-0 left-0 w-36 h-36 bg-black opacity-0 transition-opacity duration-300 group-hover:opacity-50 cursor-pointer",onClick:X[1]||(X[1]=H=>x.value=!0)},[d.createElementVNode("div",qr,[d.createVNode(fe,{"icon-path":d.unref(hr)},null,8,["icon-path"])])])])):d.createCommentVNode("",!0),d.createVNode(It,{modelValue:x.value,"onUpdate:modelValue":X[2]||(X[2]=H=>x.value=H)},{default:d.withCtx(()=>[d.createElementVNode("img",{class:"object-cover object-center h-5/6 w-5/6 mx-auto",src:d.unref(v),alt:d.unref(A)},null,8,$r),d.createElementVNode("div",el,[d.createElementVNode("h2",tl,d.toDisplayString(d.unref(C)),1),d.createElementVNode("p",sl,d.toDisplayString(d.unref(T)),1)])]),_:1},8,["modelValue"])],64))}}),al={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},nl=[d.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)],ol=d.defineComponent({__name:"EpBadge",props:{color:{default:"primary"},outlined:{type:Boolean},square:{type:Boolean,default:!1},iconPath:{default:null}},setup(b){const r=b;return d.computed(()=>r.outlined?De("border",r.color):De("bg",r.color)),d.computed(()=>r.square?"":"rounded-full"),d.toRefs(r),(x,v)=>(d.openBlock(),d.createElementBlock("div",al,nl))}}),rl={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"}},ll={small:"px-1 py-1 text-xs",medium:"py-2 px-3 text-sm",large:"px-3 py-3 text-lg"},ht=d.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(b){const r=b,x=d.computed(()=>r.outlined?"outlined":"default"),v=d.computed(()=>r.square?"":"rounded-full"),A=d.computed(()=>r.outlined?"":r.dark?"text-white":"text-black"),C=d.computed(()=>{var P;return`
|
|
26
|
+
${A.value}
|
|
27
|
+
${ll[r.size]}
|
|
28
|
+
${v.value}
|
|
29
|
+
${(P=rl[r.type])==null?void 0:P[x.value]}
|
|
30
|
+
`}),T=d.computed(()=>{if(r.size==="large")return"30";if(r.size==="medium")return"20";if(r.size==="small")return"15"}),{appendIcon:S}=d.toRefs(r);return(P,N)=>(d.openBlock(),d.createElementBlock("span",{class:d.normalizeClass(`${C.value} mx-2 cursor-default`)},[P.prependIcon?(d.openBlock(),d.createBlock(fe,{key:0,iconPath:P.prependIcon,size:T.value,extraClass:"mr-2"},null,8,["iconPath","size"])):d.createCommentVNode("",!0),d.renderSlot(P.$slots,"default"),d.unref(S)?(d.openBlock(),d.createBlock(fe,{key:1,iconPath:d.unref(S),size:T.value,extraClass:"ml-2"},null,8,["iconPath","size"])):d.createCommentVNode("",!0)],2))}}),cl={class:"EpSection"},hl={class:"relative items-center w-full"},dl={class:"w-full mx-auto text-left"},ul={class:"relative flex-col items-center m-auto align-middle"},pl={class:"gap-12 text-left lg:gap-24"},gl={class:"order-first block w-full mt-12 lg:mt-0"},fl=["src"],xl={class:"flex flex-col space-y-20 lg:mt-0"},ml={class:"border-b"},bl={class:"text-2xl font-medium tracking-tight text-black sm:text-4xl"},vl={class:""},yl={class:"lg:max-w-7xl"},wl=d.defineComponent({__name:"EpSection",props:{title:{default:null},subtitle:{},prependIcon:{},iconSize:{},color:{default:null},taxonomyLevel:{},courseCode:{},courseTitle:{},height:{},src:{},synchrone:{type:Boolean}},setup(b){const r=b,{title:x,icon:v,color:A,src:C}=d.toRefs(r);return(T,S)=>(d.openBlock(),d.createElementBlock("section",cl,[d.createElementVNode("div",hl,[d.createElementVNode("div",dl,[d.createElementVNode("div",ul,[d.createElementVNode("div",pl,[d.createElementVNode("div",gl,[d.unref(C)?(d.openBlock(),d.createElementBlock("img",{key:0,class:"object-cover object-center w-full mx-auto bg-gray-300 border lg:ml-auto",alt:"hero",src:d.unref(C)},null,8,fl)):d.createCommentVNode("",!0)]),d.createElementVNode("div",xl,[d.createElementVNode("div",ml,[d.createElementVNode("div",null,[d.createElementVNode("p",bl,d.toDisplayString(d.unref(x)),1),d.createElementVNode("p",vl,d.toDisplayString(T.subtitle),1)])]),d.createElementVNode("div",yl,[d.renderSlot(T.$slots,"default")])])])])])])]))}}),kl=["width","height"],Cl=[d.createElementVNode("animateTransform",{attributeName:"transform",dur:"0.75s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"},null,-1)],Al=["width","height"],Sl=d.createElementVNode("animateTransform",{attributeName:"transform",calcMode:"discrete",dur:"0.75s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12"},null,-1),_l=d.defineComponent({__name:"EpSpinner",props:{color:{default:"primary"},dots:{type:Boolean,default:!1},size:{default:46}},setup(b){const r=b,x=d.computed(()=>De("fill",r.color));return(v,A)=>v.dots?(d.openBlock(),d.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",width:v.size,height:v.size,class:"inline",viewBox:"0 0 32 32"},[d.createElementVNode("g",null,[d.createElementVNode("circle",{cx:"12",cy:"2.5",r:"1.5",class:d.normalizeClass(x.value),fill:"currentColor",opacity:".14"},null,2),d.createElementVNode("circle",{cx:"16.75",cy:"3.77",r:"1.5",class:d.normalizeClass(x.value),fill:"currentColor",opacity:".29"},null,2),d.createElementVNode("circle",{cx:"20.23",cy:"7.25",r:"1.5",class:d.normalizeClass(x.value),fill:"currentColor",opacity:".43"},null,2),d.createElementVNode("circle",{cx:"21.5",cy:"12",r:"1.5",class:d.normalizeClass(x.value),fill:"currentColor",opacity:".57"},null,2),d.createElementVNode("circle",{cx:"20.23",cy:"16.75",r:"1.5",class:d.normalizeClass(x.value),fill:"currentColor",opacity:".71"},null,2),d.createElementVNode("circle",{cx:"16.75",cy:"20.23",r:"1.5",class:d.normalizeClass(x.value),fill:"currentColor",opacity:".86"},null,2),d.createElementVNode("circle",{cx:"12",cy:"21.5",r:"1.5",class:d.normalizeClass(x.value),fill:"currentColor"},null,2),Sl])],8,Al)):(d.openBlock(),d.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:v.size,height:v.size,class:"inline",viewBox:"0 0 32 32"},[d.createElementVNode("path",{class:d.normalizeClass(x.value),fill:"currentColor",d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,2),d.createElementVNode("path",{class:d.normalizeClass(x.value),fill:"currentColor",d:"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"},Cl,2)],8,kl))}}),El={class:"grid grid-cols-2 gap-4"},Ll=d.defineComponent({__name:"EpFlex",setup(b){return(r,x)=>(d.openBlock(),d.createElementBlock("div",El,[d.renderSlot(r.$slots,"default")]))}}),Tl={class:"min-w-full divide-y divide-gray-200 shadow"},Dl={key:0,class:"bg-gray-50"},Pl={class:"bg-white divide-y divide-gray-200"},Il="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",zl=d.defineComponent({__name:"EpTable",props:{arrayContent:{},headers:{},title:{}},setup(b){const r=b,{headers:x,arrayContent:v,title:A}=d.toRefs(r);return(C,T)=>(d.openBlock(),d.createBlock(Pt,{flat:"",title:d.unref(A)},{default:d.withCtx(()=>[d.createElementVNode("table",Tl,[d.unref(x)?(d.openBlock(),d.createElementBlock("thead",Dl,[d.createElementVNode("tr",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(x),(S,P)=>(d.openBlock(),d.createElementBlock("th",{key:`th-${P}`,scope:"col",class:d.normalizeClass(Il)},d.toDisplayString(S),1))),128))])])):d.createCommentVNode("",!0),d.createElementVNode("tbody",Pl,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(v),(S,P)=>(d.openBlock(),d.createElementBlock("tr",{key:`tr-${P}`,class:"hover:bg-gray-50"},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(S,(N,B)=>(d.openBlock(),d.createElementBlock("td",{key:`td-${P}-${B}`,class:"px-6 py-4 whitespace-nowrap"},d.toDisplayString(N),1))),128))]))),128))])])]),_:1},8,["title"]))}});var zi={exports:{}},zt={exports:{}};/*!
|
|
31
|
+
* ApexCharts v3.41.1
|
|
32
|
+
* (c) 2018-2023 ApexCharts
|
|
33
|
+
* Released under the MIT License.
|
|
34
|
+
*/var Mi;function Ml(){return Mi||(Mi=1,function(b,r){function x(E,e){var t=Object.keys(E);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(E);e&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(E,i).enumerable})),t.push.apply(t,s)}return t}function v(E){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?x(Object(t),!0).forEach(function(s){P(E,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach(function(s){Object.defineProperty(E,s,Object.getOwnPropertyDescriptor(t,s))})}return E}function A(E){return A=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},A(E)}function C(E,e){if(!(E instanceof e))throw new TypeError("Cannot call a class as a function")}function T(E,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(E,s.key,s)}}function S(E,e,t){return e&&T(E.prototype,e),t&&T(E,t),E}function P(E,e,t){return e in E?Object.defineProperty(E,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):E[e]=t,E}function N(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&&X(E,e)}function B(E){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B(E)}function X(E,e){return X=Object.setPrototypeOf||function(t,s){return t.__proto__=s,t},X(E,e)}function H(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 O(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,s=B(E);if(e){var i=B(this).constructor;t=Reflect.construct(s,arguments,i)}else t=s.apply(this,arguments);return H(this,t)}}function U(E,e){return function(t){if(Array.isArray(t))return t}(E)||function(t,s){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var a,n,o=[],l=!0,h=!1;try{for(i=i.call(t);!(l=(a=i.next()).done)&&(o.push(a.value),!s||o.length!==s);l=!0);}catch(u){h=!0,n=u}finally{try{l||i.return==null||i.return()}finally{if(h)throw n}}return o}}(E,e)||te(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 q(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)||te(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 te(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,s=new Array(e);t<e;t++)s[t]=E[t];return s}var R=function(){function E(){C(this,E)}return S(E,[{key:"shadeRGBColor",value:function(e,t){var s=t.split(","),i=e<0?0:255,a=e<0?-1*e:e,n=parseInt(s[0].slice(4),10),o=parseInt(s[1],10),l=parseInt(s[2],10);return"rgb("+(Math.round((i-n)*a)+n)+","+(Math.round((i-o)*a)+o)+","+(Math.round((i-l)*a)+l)+")"}},{key:"shadeHexColor",value:function(e,t){var s=parseInt(t.slice(1),16),i=e<0?0:255,a=e<0?-1*e:e,n=s>>16,o=s>>8&255,l=255&s;return"#"+(16777216+65536*(Math.round((i-n)*a)+n)+256*(Math.round((i-o)*a)+o)+(Math.round((i-l)*a)+l)).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&&A(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,s=[];for(t=0;t<e.length;t++)s[t]=e[t];return s}},{key:"extend",value:function(e,t){var s=this;typeof Object.assign!="function"&&(Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(a),o=1;o<arguments.length;o++){var l=arguments[o];if(l!=null)for(var h in l)l.hasOwnProperty(h)&&(n[h]=l[h])}return n});var i=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(a){s.isObject(t[a])&&a in e?i[a]=s.extend(e[a],t[a]):Object.assign(i,P({},a,t[a]))}),i}},{key:"extendArray",value:function(e,t){var s=[];return e.map(function(i){s.push(E.extend(t,i))}),e=s}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){if(E.is("Array",e)){for(var t=[],s=0;s<e.length;s++)t[s]=this.clone(e[s]);return t}if(E.is("Null",e))return null;if(E.is("Date",e))return e;if(A(e)==="object"){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=this.clone(e[a]));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 s="",i=e<0?"-":"",a=t[0].replace(".",""),n=Number(t[1])+1;if(n<0){for(s=i+"0.";n++;)s+="0";return s+a.replace(/^-/,"")}for(n-=a.length;n--;)s+="0";return a+s}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),s=e.clientHeight,i=e.clientWidth;return s-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),s]}},{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,s){return Array.isArray(s)&&(s=s.reduce(function(i,a){return i.length>a.length?i:a})),t.length>s.length?t:s},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 s=e.replace("#","");s=s.match(new RegExp("(.{"+s.length/3+"})","g"));for(var i=0;i<s.length;i++)s[i]=parseInt(s[i].length===1?s[i]+s[i]:s[i],16);return t!==void 0&&s.push(t),"rgba("+s.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 s=[],i=2*Math.PI/t,a=0;a<t;a++){var n={};n.x=e*Math.sin(a*i),n.y=-e*Math.cos(a*i),s.push(n)}return s}},{key:"polarToCartesian",value:function(e,t,s,i){var a=(i-90)*Math.PI/180;return{x:e+s*Math.cos(a),y:t+s*Math.sin(a)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",s=e.toString().slice();return s=s.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,s){if(s>=e.length)for(var i=s-e.length+1;i--;)e.push(void 0);return e.splice(s,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 s in t)t.hasOwnProperty(s)&&(e.style.key=t[s])}},{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 s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var i=e.indexOf("Edge/");return i>0&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)}}]),E}(),$=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return S(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 s=1.70158;return(t-=1)*t*((s+1)*t+s)+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,s,i){e.attr(t).animate(i).attr(s)}},{key:"animateMarker",value:function(e,t,s,i,a,n){t||(t=0),e.attr({r:t,width:t,height:t}).animate(i,a).attr({r:s,width:s.width,height:s.height}).afterAll(function(){n()})}},{key:"animateCircle",value:function(e,t,s,i,a){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(i,a).attr({r:s.r,cx:s.cx,cy:s.cy})}},{key:"animateRect",value:function(e,t,s,i,a){e.attr(t).animate(i).attr(s).afterAll(function(){return a()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,s=e.realIndex,i=e.j,a=e.fill,n=e.pathFrom,o=e.pathTo,l=e.speed,h=e.delay,u=this.w,p=0;u.config.chart.animations.animateGradually.enabled&&(p=u.config.chart.animations.animateGradually.delay),u.config.chart.animations.dynamicAnimation.enabled&&u.globals.dataChanged&&u.config.chart.type!=="bar"&&(p=0),this.morphSVG(t,s,i,u.config.chart.type!=="line"||u.globals.comboCharts?a:"stroke",n,o,l,h*p)}},{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,s,i,a,n,o,l){var h=this,u=this.w;a||(a=e.attr("pathFrom")),n||(n=e.attr("pathTo"));var p=function(g){return u.config.chart.type==="radar"&&(o=1),"M 0 ".concat(u.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=p()),(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=p()),u.globals.shouldAnimate||(o=1),e.plot(a).animate(1,u.globals.easing,l).plot(a).animate(o,u.globals.easing,l).plot(n).afterAll(function(){R.isNumber(s)?s===u.globals.series[u.globals.maxValsInArrayIndex].length-2&&u.globals.shouldAnimate&&h.animationCompleted(e):i!=="none"&&u.globals.shouldAnimate&&(!u.globals.comboCharts&&t===u.globals.series.length-1||u.globals.comboCharts)&&h.animationCompleted(e),h.showDelayedElements()})}}]),E}(),ee=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"getDefaultFilter",value:function(e,t){var s=this.w;e.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),s.config.states.normal.filter!=="none"?this.applyFilter(e,t,s.config.states.normal.filter.type,s.config.states.normal.filter.value):s.config.chart.dropShadow.enabled&&this.dropShadow(e,s.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var s=this.w;s.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,s.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,s){var i=this,a=this.w,n=s.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(o){var l=a.config.chart.dropShadow;(l.enabled?i.addShadow(o,t,l):o).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,s){var i=this,a=this.w,n=s.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(o){var l=a.config.chart.dropShadow;(l.enabled?i.addShadow(o,t,l):o).componentTransfer({rgb:{type:"linear",slope:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,s){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(s){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,s){var i=s.blur,a=s.top,n=s.left,o=s.color,l=s.opacity,h=e.flood(Array.isArray(o)?o[t]:o,l).composite(e.sourceAlpha,"in").offset(n,a).gaussianBlur(i).merge(e.source);return e.blend(e.source,h)}},{key:"dropShadow",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=t.top,a=t.left,n=t.blur,o=t.color,l=t.opacity,h=t.noUserSpaceOnUse,u=this.w;return e.unfilter(!0),R.isIE()&&u.config.chart.type==="radialBar"||(o=Array.isArray(o)?o[s]:o,e.filter(function(p){var g=null;g=R.isSafari()||R.isFirefox()||R.isIE()?p.flood(o,l).composite(p.sourceAlpha,"in").offset(a,i).gaussianBlur(n):p.flood(o,l).composite(p.sourceAlpha,"in").offset(a,i).gaussianBlur(n).merge(p.source),p.blend(p.source,g)}),h||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,s){var i=this.w;if(i.globals.selectedDataPoints[t]!==void 0&&i.globals.selectedDataPoints[t].indexOf(s)>-1){e.node.setAttribute("selected",!0);var a=i.config.states.active.filter;a!=="none"&&this.applyFilter(e,t,a.type,a.value)}}},{key:"_scaleFilterSize",value:function(e){(function(t){for(var s in t)t.hasOwnProperty(s)&&e.setAttribute(s,t[s])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),E}(),Y=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"roundPathCorners",value:function(e,t){function s(M,F,V){var W=F.x-M.x,j=F.y-M.y,G=Math.sqrt(W*W+j*j);return i(M,F,Math.min(1,V/G))}function i(M,F,V){return{x:M.x+(F.x-M.x)*V,y:M.y+(F.y-M.y)*V}}function a(M,F){M.length>2&&(M[M.length-2]=F.x,M[M.length-1]=F.y)}function n(M){return{x:parseFloat(M[M.length-2]),y:parseFloat(M[M.length-1])}}e.indexOf("NaN")>-1&&(e="");var o=e.split(/[,\s]/).reduce(function(M,F){var V=F.match("([a-zA-Z])(.+)");return V?(M.push(V[1]),M.push(V[2])):M.push(F),M},[]).reduce(function(M,F){return parseFloat(F)==F&&M.length?M[M.length-1].push(F):M.push([F]),M},[]),l=[];if(o.length>1){var h=n(o[0]),u=null;o[o.length-1][0]=="Z"&&o[0].length>2&&(u=["L",h.x,h.y],o[o.length-1]=u),l.push(o[0]);for(var p=1;p<o.length;p++){var g=l[l.length-1],m=o[p],y=m==u?o[1]:o[p+1];if(y&&g&&g.length>2&&m[0]=="L"&&y.length>2&&y[0]=="L"){var k,_,D=n(g),I=n(m),c=n(y);k=s(I,D,t),_=s(I,c,t),a(m,k),m.origPoint=I,l.push(m);var f=i(k,I,.5),w=i(I,_,.5),L=["C",f.x,f.y,w.x,w.y,_.x,_.y];L.origPoint=I,l.push(L)}else l.push(m)}if(u){var z=n(l[l.length-1]);l.push(["Z"]),a(l[0],z)}}else l=o;return l.reduce(function(M,F){return M+F.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,s,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:s,y2:i,stroke:a,"stroke-dasharray":n,"stroke-width":o,"stroke-linecap":l})}},{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,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,p=this.w.globals.dom.Paper.rect();return p.attr({x:e,y:t,width:s>0?s:0,height:i>0?i:0,rx:a,ry:a,opacity:o,"stroke-width":l!==null?l:0,stroke:h!==null?h:"none","stroke-dasharray":u}),p.node.setAttribute("fill",n),p}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",s=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":s})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e<0&&(e=0);var s=this.w.globals.dom.Paper.circle(2*e);return t!==null&&s.attr(t),s}},{key:"drawPath",value:function(e){var t=e.d,s=t===void 0?"":t,i=e.stroke,a=i===void 0?"#a8a8a8":i,n=e.strokeWidth,o=n===void 0?1:n,l=e.fill,h=e.fillOpacity,u=h===void 0?1:h,p=e.strokeOpacity,g=p===void 0?1:p,m=e.classes,y=e.strokeLinecap,k=y===void 0?null:y,_=e.strokeDashArray,D=_===void 0?0:_,I=this.w;return k===null&&(k=I.config.stroke.lineCap),(s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s="M 0 ".concat(I.globals.gridHeight)),I.globals.dom.Paper.path(s).attr({fill:l,"fill-opacity":u,stroke:a,"stroke-opacity":g,"stroke-linecap":k,"stroke-width":o,"stroke-dasharray":D,class:m})}},{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 s=["M",e,t].join(" ");return s}},{key:"line",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=null;return s===null?i=[" L",e,t].join(" "):s==="H"?i=[" H",e].join(" "):s==="V"&&(i=[" V",t].join(" ")),i}},{key:"curve",value:function(e,t,s,i,a,n){var o=["C",e,t,s,i,a,n].join(" ");return o}},{key:"quadraticCurve",value:function(e,t,s,i){return["Q",e,t,s,i].join(" ")}},{key:"arc",value:function(e,t,s,i,a,n,o){var l="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(l="a");var h=[l,e,t,s,i,a,n,o].join(" ");return h}},{key:"renderPaths",value:function(e){var t,s=e.j,i=e.realIndex,a=e.pathFrom,n=e.pathTo,o=e.stroke,l=e.strokeWidth,h=e.strokeLinecap,u=e.fill,p=e.animationDelay,g=e.initialSpeed,m=e.dataChangeSpeed,y=e.className,k=e.shouldClipToGrid,_=k===void 0||k,D=e.bindEventsOnPaths,I=D===void 0||D,c=e.drawShadow,f=c===void 0||c,w=this.w,L=new ee(this.ctx),z=new $(this.ctx),M=this.w.config.chart.animations.enabled,F=M&&this.w.config.chart.animations.dynamicAnimation.enabled,V=!!(M&&!w.globals.resized||F&&w.globals.dataChanged&&w.globals.shouldAnimate);V?t=a:(t=n,w.globals.animationEnded=!0);var W=w.config.stroke.dashArray,j=0;j=Array.isArray(W)?W[i]:w.config.stroke.dashArray;var G=this.drawPath({d:t,stroke:o,strokeWidth:l,fill:u,fillOpacity:1,classes:y,strokeLinecap:h,strokeDashArray:j});if(G.attr("index",i),_&&G.attr({"clip-path":"url(#gridRectMask".concat(w.globals.cuid,")")}),w.config.states.normal.filter.type!=="none")L.getDefaultFilter(G,i);else if(w.config.chart.dropShadow.enabled&&f&&(!w.config.chart.dropShadow.enabledOnSeries||w.config.chart.dropShadow.enabledOnSeries&&w.config.chart.dropShadow.enabledOnSeries.indexOf(i)!==-1)){var Z=w.config.chart.dropShadow;L.dropShadow(G,Z,i)}I&&(G.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,G)),G.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,G)),G.node.addEventListener("mousedown",this.pathMouseDown.bind(this,G))),G.attr({pathTo:n,pathFrom:a});var se={el:G,j:s,realIndex:i,pathFrom:a,pathTo:n,fill:u,strokeWidth:l,delay:p};return!M||w.globals.resized||w.globals.dataChanged?!w.globals.resized&&w.globals.dataChanged||z.showDelayedElements():z.animatePathsGradually(v(v({},se),{},{speed:g})),w.globals.dataChanged&&F&&V&&z.animatePathsGradually(v(v({},se),{},{speed:m})),G}},{key:"drawPattern",value:function(e,t,s){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,s,function(n){e==="horizontalLines"?n.line(0,0,s,0).stroke({color:i,width:a+1}):e==="verticalLines"?n.line(0,0,0,t).stroke({color:i,width:a+1}):e==="slantedLines"?n.line(0,0,t,s).stroke({color:i,width:a}):e==="squares"?n.rect(t,s).fill("none").stroke({color:i,width:a}):e==="circles"&&n.circle(t).fill("none").stroke({color:i,width:a})})}},{key:"drawGradient",value:function(e,t,s,i,a){var n,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,p=this.w;t.length<9&&t.indexOf("#")===0&&(t=R.hexToRgba(t,i)),s.length<9&&s.indexOf("#")===0&&(s=R.hexToRgba(s,a));var g=0,m=1,y=1,k=null;l!==null&&(g=l[0]!==void 0?l[0]/100:0,m=l[1]!==void 0?l[1]/100:1,y=l[2]!==void 0?l[2]/100:1,k=l[3]!==void 0?l[3]/100:null);var _=!(p.config.chart.type!=="donut"&&p.config.chart.type!=="pie"&&p.config.chart.type!=="polarArea"&&p.config.chart.type!=="bubble");if(n=h===null||h.length===0?p.globals.dom.Paper.gradient(_?"radial":"linear",function(c){c.at(g,t,i),c.at(m,s,a),c.at(y,s,a),k!==null&&c.at(k,t,i)}):p.globals.dom.Paper.gradient(_?"radial":"linear",function(c){(Array.isArray(h[u])?h[u]:h).forEach(function(f){c.at(f.offset/100,f.color,f.opacity)})}),_){var D=p.globals.gridWidth/2,I=p.globals.gridHeight/2;p.config.chart.type!=="bubble"?n.attr({gradientUnits:"userSpaceOnUse",cx:D,cy:I,r:o}):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,s=e.maxWidth,i=e.fontSize,a=e.fontFamily,n=this.getTextRects(t,i,a),o=n.width/t.length,l=Math.floor(s/o);return s<n.width?t.slice(0,l-3)+"...":t}},{key:"drawText",value:function(e){var t=this,s=e.x,i=e.y,a=e.text,n=e.textAnchor,o=e.fontSize,l=e.fontFamily,h=e.fontWeight,u=e.foreColor,p=e.opacity,g=e.maxWidth,m=e.cssClass,y=m===void 0?"":m,k=e.isPlainText,_=k===void 0||k,D=this.w;a===void 0&&(a="");var I=a;n||(n="start"),u&&u.length||(u=D.config.chart.foreColor),l=l||D.config.chart.fontFamily,h=h||"regular";var c,f={maxWidth:g,fontSize:o=o||"11px",fontFamily:l};return Array.isArray(a)?c=D.globals.dom.Paper.text(function(w){for(var L=0;L<a.length;L++)I=a[L],g&&(I=t.getTextBasedOnMaxWidth(v({text:a[L]},f))),L===0?w.tspan(I):w.tspan(I).newLine()}):(g&&(I=this.getTextBasedOnMaxWidth(v({text:a},f))),c=_?D.globals.dom.Paper.plain(a):D.globals.dom.Paper.text(function(w){return w.tspan(I)})),c.attr({x:s,y:i,"text-anchor":n,"dominant-baseline":"auto","font-size":o,"font-family":l,"font-weight":h,fill:u,class:"apexcharts-text "+y}),c.node.style.fontFamily=l,c.node.style.opacity=p,c}},{key:"drawMarker",value:function(e,t,s){e=e||0;var i=s.pSize||0,a=null;if(s.shape==="square"||s.shape==="rect"){var n=s.pRadius===void 0?i/2:s.pRadius;t!==null&&i||(i=0,n=0);var o=1.2*i+n,l=this.drawRect(o,o,o,o,n);l.attr({x:e-o/2,y:t-o/2,cx:e,cy:t,class:s.class?s.class:"",fill:s.pointFillColor,"fill-opacity":s.pointFillOpacity?s.pointFillOpacity:1,stroke:s.pointStrokeColor,"stroke-width":s.pointStrokeWidth?s.pointStrokeWidth:0,"stroke-opacity":s.pointStrokeOpacity?s.pointStrokeOpacity:1}),a=l}else s.shape!=="circle"&&s.shape||(R.isNumber(t)||(i=0,t=0),a=this.drawCircle(i,{cx:e,cy:t,class:s.class?s.class:"",stroke:s.pointStrokeColor,fill:s.pointFillColor,"fill-opacity":s.pointFillOpacity?s.pointFillOpacity:1,"stroke-width":s.pointStrokeWidth?s.pointStrokeWidth:0,"stroke-opacity":s.pointStrokeOpacity?s.pointStrokeOpacity:1}));return a}},{key:"pathMouseEnter",value:function(e,t){var s=this.w,i=new ee(this.ctx),a=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);if(typeof s.config.chart.events.dataPointMouseEnter=="function"&&s.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:s}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:s}]),(s.config.states.active.filter.type==="none"||e.node.getAttribute("selected")!=="true")&&s.config.states.hover.filter.type!=="none"&&!s.globals.isTouchDevice){var o=s.config.states.hover.filter;i.applyFilter(e,a,o.type,o.value)}}},{key:"pathMouseLeave",value:function(e,t){var s=this.w,i=new ee(this.ctx),a=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);typeof s.config.chart.events.dataPointMouseLeave=="function"&&s.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:s}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:s}]),s.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true"||s.config.states.hover.filter.type!=="none"&&i.getDefaultFilter(e,a)}},{key:"pathMouseDown",value:function(e,t){var s=this.w,i=new ee(this.ctx),a=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10),o="false";if(e.node.getAttribute("selected")==="true"){if(e.node.setAttribute("selected","false"),s.globals.selectedDataPoints[a].indexOf(n)>-1){var l=s.globals.selectedDataPoints[a].indexOf(n);s.globals.selectedDataPoints[a].splice(l,1)}}else{if(!s.config.states.active.allowMultipleDataPointsSelection&&s.globals.selectedDataPoints.length>0){s.globals.selectedDataPoints=[];var h=s.globals.dom.Paper.select(".apexcharts-series path").members,u=s.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,p=function(y){Array.prototype.forEach.call(y,function(k){k.node.setAttribute("selected","false"),i.getDefaultFilter(k,a)})};p(h),p(u)}e.node.setAttribute("selected","true"),o="true",s.globals.selectedDataPoints[a]===void 0&&(s.globals.selectedDataPoints[a]=[]),s.globals.selectedDataPoints[a].push(n)}if(o==="true"){var g=s.config.states.active.filter;if(g!=="none")i.applyFilter(e,a,g.type,g.value);else if(s.config.states.hover.filter!=="none"&&!s.globals.isTouchDevice){var m=s.config.states.hover.filter;i.applyFilter(e,a,m.type,m.value)}}else s.config.states.active.filter.type!=="none"&&(s.config.states.hover.filter.type==="none"||s.globals.isTouchDevice?i.getDefaultFilter(e,a):(m=s.config.states.hover.filter,i.applyFilter(e,a,m.type,m.value)));typeof s.config.chart.events.dataPointSelection=="function"&&s.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:s.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:n,w:s}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:s.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:n,w:s}])}},{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,s,i){var a=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:s,foreColor:"#fff",opacity:0});i&&o.attr("transform",i),n.globals.dom.Paper.add(o);var l=o.bbox();return a||(l=o.node.getBoundingClientRect()),o.remove(),{width:l.width,height:l.height}}},{key:"placeTextWithEllipsis",value:function(e,t,s){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=s/1.1)){for(var i=t.length-3;i>0;i-=3)if(e.getSubStringLength(0,i)<=s/1.1)return void(e.textContent=t.substring(0,i)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var s in t)t.hasOwnProperty(s)&&e.setAttribute(s,t[s])}}]),E}(),K=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.w,s=[];if(t.globals.series.length===0)return s;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var a=0,n=0;n<t.globals.series.length;n++)t.globals.series[n][i]!==void 0&&e.indexOf(n)===-1&&(a+=t.globals.series[n][i]);s.push(a)}return s}},{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,s){return t+s},0):this.w.globals.series[e].reduce(function(t,s){return t+s},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,s,i){return t===i[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,s=e.slice();return t.config.xaxis.convertedCatToNumeric&&(s=e.map(function(i,a){return t.config.xaxis.labels.formatter(i-t.globals.minX+1)})),s}},{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(s){t=Math.max(t,s)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(s){t=Math.max(t,s.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,s){var i=0;if(Array.isArray(t))for(var a=0;a<t.length;a++)i+=t[a];else i+=t;return i})}},{key:"getSeriesTotalsXRange",value:function(e,t){var s=this.w;return s.globals.series.map(function(i,a){for(var n=0,o=0;o<i.length;o++)s.globals.seriesX[a][o]>e&&s.globals.seriesX[a][o]<t&&(n+=i[o]);return n})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,s){var i=[];if(Array.isArray(t))for(var a=0;a<t.length;a++){var n=e.globals.stackedSeriesTotals[a],o=0;n&&(o=100*t[a]/n),i.push(o)}else{var l=100*t/e.globals.seriesTotals.reduce(function(h,u){return h+u},0);i.push(l)}return i})}},{key:"getCalculatedRatios",value:function(){var e,t,s,i,a=this.w.globals,n=[],o=0,l=[],h=.1,u=0;if(a.yRange=[],a.isMultipleYAxis)for(var p=0;p<a.minYArr.length;p++)a.yRange.push(Math.abs(a.minYArr[p]-a.maxYArr[p])),l.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var g=0;g<a.yRange.length;g++)n.push(a.yRange[g]/a.gridHeight);if(t=a.xRange/a.gridWidth,s=Math.abs(a.initialMaxX-a.initialMinX)/a.gridWidth,e=a.yRange/a.gridWidth,i=a.xRange/a.gridHeight,(o=a.zRange/a.gridHeight*16)||(o=1),a.minY!==Number.MIN_VALUE&&Math.abs(a.minY)!==0&&(a.hasNegs=!0),a.isMultipleYAxis){l=[];for(var m=0;m<n.length;m++)l.push(-a.minYArr[m]/n[m])}else l.push(-a.minY/n[0]),a.minY!==Number.MIN_VALUE&&Math.abs(a.minY)!==0&&(h=-a.minY/e,u=a.minX/t);return{yRatio:n,invertedYRatio:e,zRatio:o,xRatio:t,initialXRatio:s,invertedXRatio:i,baseLineInvertedY:h,baseLineY:l,baseLineX:u}}},{key:"getLogSeries",value:function(e){var t=this,s=this.w;return s.globals.seriesLog=e.map(function(i,a){return s.config.yaxis[a]&&s.config.yaxis[a].logarithmic?i.map(function(n){return n===null?null:t.getLogVal(s.config.yaxis[a].logBase,n,a)}):i}),s.globals.invalidLogScale?e:s.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,s){if(t===0)return 0;var i=this.w,a=i.globals.minYArr[s]===0?-1:this.getBaseLog(e,i.globals.minYArr[s]),n=(i.globals.maxYArr[s]===0?0:this.getBaseLog(e,i.globals.maxYArr[s]))-a;return t<1?t/n:(this.getBaseLog(e,t)-a)/n}},{key:"getLogYRatios",value:function(e){var t=this,s=this.w,i=this.w.globals;return i.yLogRatio=e.slice(),i.logYRange=i.yRange.map(function(a,n){if(s.config.yaxis[n]&&t.w.config.yaxis[n].logarithmic){var o,l=-Number.MAX_VALUE,h=Number.MIN_VALUE;return i.seriesLog.forEach(function(u,p){u.forEach(function(g){s.config.yaxis[p]&&s.config.yaxis[p].logarithmic&&(l=Math.max(g,l),h=Math.min(g,h))})}),o=Math.pow(i.yRange[n],Math.abs(h-l)/i.yRange[n]),i.yLogRatio[n]=o/i.gridHeight,o}}),i.invalidLogScale?e.slice():i.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,s=0,i=0;return e.length&&e[0].type!==void 0&&e.forEach(function(a){a.type!=="bar"&&a.type!=="column"&&a.type!=="candlestick"&&a.type!=="boxPlot"||s++,a.type!==void 0&&i++}),i>0&&(t=!0),{comboBarCount:s,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,s){return t.yaxis&&(t=e.extendYAxis(t,s)),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}(),ce=function(){function E(e){C(this,E),this.w=e.w,this.annoCtx=e}return S(E,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=this.w;if(e.label.orientation==="vertical"){var i=t!==null?t:0,a=s.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i,"']"));if(a!==null){var n=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-n.height+4),e.label.position==="top"?a.setAttribute("y",parseFloat(a.getAttribute("y"))+n.width):a.setAttribute("y",parseFloat(a.getAttribute("y"))-n.width);var o=this.annoCtx.graphics.rotateAroundCenter(a),l=o.x,h=o.y;a.setAttribute("transform","rotate(-90 ".concat(l," ").concat(h,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var s=this.w;if(!e||t.label.text===void 0||t.label.text!==void 0&&!String(t.label.text).trim())return null;var i=s.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=e.getBoundingClientRect(),n=t.label.style.padding.left,o=t.label.style.padding.right,l=t.label.style.padding.top,h=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(l=t.label.style.padding.left,h=t.label.style.padding.right,n=t.label.style.padding.top,o=t.label.style.padding.bottom);var u=a.left-i.left-n,p=a.top-i.top-l,g=this.annoCtx.graphics.drawRect(u-s.globals.barPadForNumericAxis,p,a.width+n+o,a.height+l+h,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,s=function(i,a,n){var o=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(a,"']"));if(o){var l=o.parentNode,h=e.addBackgroundToAnno(o,i);h&&(l.insertBefore(h.node,o),i.label.mouseEnter&&h.node.addEventListener("mouseenter",i.label.mouseEnter.bind(e,i)),i.label.mouseLeave&&h.node.addEventListener("mouseleave",i.label.mouseLeave.bind(e,i)),i.label.click&&h.node.addEventListener("click",i.label.click.bind(e,i)))}};t.config.annotations.xaxis.map(function(i,a){s(i,a,"xaxis")}),t.config.annotations.yaxis.map(function(i,a){s(i,a,"yaxis")}),t.config.annotations.points.map(function(i,a){s(i,a,"point")})}},{key:"getY1Y2",value:function(e,t){var s,i=e==="y1"?t.y:t.y2,a=this.w;if(this.annoCtx.invertAxis){var n=a.globals.labels.indexOf(i);a.config.xaxis.convertedCatToNumeric&&(n=a.globals.categoryLabels.indexOf(i));var o=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(n+1)+")");o&&(s=parseFloat(o.getAttribute("y")))}else{var l;a.config.yaxis[t.yAxisIndex].logarithmic?l=(i=new K(this.annoCtx.ctx).getLogVal(i,t.yAxisIndex))/a.globals.yLogRatio[t.yAxisIndex]:l=(i-a.globals.minYArr[t.yAxisIndex])/(a.globals.yRange[t.yAxisIndex]/a.globals.gridHeight),s=a.globals.gridHeight-l,!t.marker||t.y!==void 0&&t.y!==null||(s=0),a.config.yaxis[t.yAxisIndex]&&a.config.yaxis[t.yAxisIndex].reversed&&(s=l)}return typeof i=="string"&&i.indexOf("px")>-1&&(s=parseFloat(i)),s}},{key:"getX1X2",value:function(e,t){var s=this.w,i=this.annoCtx.invertAxis?s.globals.minY:s.globals.minX,a=this.annoCtx.invertAxis?s.globals.maxY:s.globals.maxX,n=this.annoCtx.invertAxis?s.globals.yRange[0]:s.globals.xRange,o=(t.x-i)/(n/s.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(a-t.x)/(n/s.globals.gridWidth)),s.config.xaxis.type!=="category"&&!s.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||s.globals.dataFormatXNumeric||(o=this.getStringX(t.x));var l=(t.x2-i)/(n/s.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(l=(a-t.x2)/(n/s.globals.gridWidth)),s.config.xaxis.type!=="category"&&!s.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||s.globals.dataFormatXNumeric||(l=this.getStringX(t.x2)),t.x!==void 0&&t.x!==null||!t.marker||(o=s.globals.gridWidth),e==="x1"&&typeof t.x=="string"&&t.x.indexOf("px")>-1&&(o=parseFloat(t.x)),e==="x2"&&typeof t.x2=="string"&&t.x2.indexOf("px")>-1&&(l=parseFloat(t.x2)),e==="x1"?o:l}},{key:"getStringX",value:function(e){var t=this.w,s=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var i=t.globals.labels.indexOf(e),a=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(i+1)+")");return a&&(s=parseFloat(a.getAttribute("x"))),s}}]),E}(),be=function(){function E(e){C(this,E),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new ce(this.annoCtx)}return S(E,[{key:"addXaxisAnnotation",value:function(e,t,s){var i,a=this.w,n=this.helpers.getX1X2("x1",e),o=e.label.text,l=e.strokeDashArray;if(R.isNumber(n)){if(e.x2===null||e.x2===void 0){var h=this.annoCtx.graphics.drawLine(n+e.offsetX,0+e.offsetY,n+e.offsetX,a.globals.gridHeight+e.offsetY,e.borderColor,l,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}else{if((i=this.helpers.getX1X2("x2",e))<n){var u=n;n=i,i=u}var p=this.annoCtx.graphics.drawRect(n+e.offsetX,0+e.offsetY,i-n,a.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,l);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}var g=this.annoCtx.graphics.getTextRects(o,parseFloat(e.label.style.fontSize)),m=e.label.position==="top"?4:e.label.position==="center"?a.globals.gridHeight/2+(e.label.orientation==="vertical"?g.width/2:0):a.globals.gridHeight,y=this.annoCtx.graphics.drawText({x:n+e.label.offsetX,y:m+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?g.width/2-12:-g.width/2:0),text:o,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:"")});y.attr({rel:s}),t.appendChild(y.node),this.annoCtx.helpers.setOrientations(e,s)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,s=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(i,a){e.addXaxisAnnotation(i,s.node,a)}),s}}]),E}(),Re=function(){function E(e){C(this,E),this.w=e.w,this.annoCtx=e,this.helpers=new ce(this.annoCtx)}return S(E,[{key:"addYaxisAnnotation",value:function(e,t,s){var i,a=this.w,n=e.strokeDashArray,o=this.helpers.getY1Y2("y1",e),l=e.label.text;if(e.y2===null||e.y2===void 0){var h=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,n,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}else{if((i=this.helpers.getY1Y2("y2",e))>o){var u=o;o=i,i=u}var p=this.annoCtx.graphics.drawRect(0+e.offsetX,i+e.offsetY,this._getYAxisAnnotationWidth(e),o-i,0,e.fillColor,e.opacity,1,e.borderColor,n);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}var g=e.label.position==="right"?a.globals.gridWidth:e.label.position==="center"?a.globals.gridWidth/2:0,m=this.annoCtx.graphics.drawText({x:g+e.label.offsetX,y:(i??o)+e.label.offsetY-3,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-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});m.attr({rel:s}),t.appendChild(m.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,s=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map(function(i,a){e.addYaxisAnnotation(i,s.node,a)}),s}}]),E}(),he=function(){function E(e){C(this,E),this.w=e.w,this.annoCtx=e,this.helpers=new ce(this.annoCtx)}return S(E,[{key:"addPointAnnotation",value:function(e,t,s){this.w;var i=this.helpers.getX1X2("x1",e),a=this.helpers.getY1Y2("y1",e);if(R.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:"")},o=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,a+e.marker.offsetY,n);t.appendChild(o.node);var l=e.label.text?e.label.text:"",h=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:a+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,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-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(h.attr({rel:s}),t.appendChild(h.node),e.customSVG.SVG){var u=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});u.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(a+e.customSVG.offsetY,")")}),u.node.innerHTML=e.customSVG.SVG,t.appendChild(u.node)}if(e.image.path){var p=e.image.width?e.image.width:20,g=e.image.height?e.image.height:20;o=this.annoCtx.addImage({x:i+e.image.offsetX-p/2,y:a+e.image.offsetY-g/2,width:p,height:g,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&o.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&o.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&o.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,s=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(i,a){e.addPointAnnotation(i,s.node,a)}),s}}]),E}(),ge={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"}}},ke=function(){function E(){C(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 S(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:[ge],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,s){return t+s},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,s){return t+s},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}(),Fe=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.graphics=new Y(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new ce(this),this.xAxisAnnotations=new be(this),this.yAxisAnnotations=new Re(this),this.pointsAnnotations=new he(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 S(E,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),s=this.xAxisAnnotations.drawXAxisAnnotations(),i=this.pointsAnnotations.drawPointAnnotations(),a=e.config.chart.animations.enabled,n=[t,s,i],o=[s.node,t.node,i.node],l=0;l<3;l++)e.globals.dom.elGraphical.add(n[l]),!a||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&o[l].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[l],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,s){e.addImage(t,s)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,s){e.addText(t,s)})}},{key:"addXaxisAnnotation",value:function(e,t,s){this.xAxisAnnotations.addXaxisAnnotation(e,t,s)}},{key:"addYaxisAnnotation",value:function(e,t,s){this.yAxisAnnotations.addYaxisAnnotation(e,t,s)}},{key:"addPointAnnotation",value:function(e,t,s){this.pointsAnnotations.addPointAnnotation(e,t,s)}},{key:"addText",value:function(e,t){var s=e.x,i=e.y,a=e.text,n=e.textAnchor,o=e.foreColor,l=e.fontSize,h=e.fontFamily,u=e.fontWeight,p=e.cssClass,g=e.backgroundColor,m=e.borderWidth,y=e.strokeDashArray,k=e.borderRadius,_=e.borderColor,D=e.appendTo,I=D===void 0?".apexcharts-annotations":D,c=e.paddingLeft,f=c===void 0?4:c,w=e.paddingRight,L=w===void 0?4:w,z=e.paddingBottom,M=z===void 0?2:z,F=e.paddingTop,V=F===void 0?2:F,W=this.w,j=this.graphics.drawText({x:s,y:i,text:a,textAnchor:n||"start",fontSize:l||"12px",fontWeight:u||"regular",fontFamily:h||W.config.chart.fontFamily,foreColor:o||W.config.chart.foreColor,cssClass:p}),G=W.globals.dom.baseEl.querySelector(I);G&&G.appendChild(j.node);var Z=j.bbox();if(a){var se=this.graphics.drawRect(Z.x-f,Z.y-V,Z.width+f+L,Z.height+M+V,k,g||"transparent",1,m,_,y);G.insertBefore(se.node,j.node)}}},{key:"addImage",value:function(e,t){var s=this.w,i=e.path,a=e.x,n=a===void 0?0:a,o=e.y,l=o===void 0?0:o,h=e.width,u=h===void 0?20:h,p=e.height,g=p===void 0?20:p,m=e.appendTo,y=m===void 0?".apexcharts-annotations":m,k=s.globals.dom.Paper.image(i);k.size(u,g).move(n,l);var _=s.globals.dom.baseEl.querySelector(y);return _&&_.appendChild(k.node),k}},{key:"addXaxisAnnotationExternal",value:function(e,t,s){return this.addAnnotationExternal({params:e,pushToMemory:t,context:s,type:"xaxis",contextMethod:s.addXaxisAnnotation}),s}},{key:"addYaxisAnnotationExternal",value:function(e,t,s){return this.addAnnotationExternal({params:e,pushToMemory:t,context:s,type:"yaxis",contextMethod:s.addYaxisAnnotation}),s}},{key:"addPointAnnotationExternal",value:function(e,t,s){return this.invertAxis===void 0&&(this.invertAxis=s.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:s,type:"point",contextMethod:s.addPointAnnotation}),s}},{key:"addAnnotationExternal",value:function(e){var t=e.params,s=e.pushToMemory,i=e.context,a=e.type,n=e.contextMethod,o=i,l=o.w,h=l.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),u=h.childNodes.length+1,p=new ke,g=Object.assign({},a==="xaxis"?p.xAxisAnnotation:a==="yaxis"?p.yAxisAnnotation:p.pointAnnotation),m=R.extend(g,t);switch(a){case"xaxis":this.addXaxisAnnotation(m,h,u);break;case"yaxis":this.addYaxisAnnotation(m,h,u);break;case"point":this.addPointAnnotation(m,h,u)}var y=l.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(u,"']")),k=this.helpers.addBackgroundToAnno(y,m);return k&&h.insertBefore(k.node,y),s&&l.globals.memory.methodsToExec.push({context:o,id:m.id?m.id:R.randomId(),method:n,label:"addAnnotation",params:t}),i}},{key:"clearAnnotations",value:function(e){var t=e.w,s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(i,a){i.label!=="addText"&&i.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(a,1)}),s=R.listToArray(s),Array.prototype.forEach.call(s,function(i){for(;i.firstChild;)i.removeChild(i.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var s=e.w,i=s.globals.dom.baseEl.querySelectorAll(".".concat(t));i&&(s.globals.memory.methodsToExec.map(function(a,n){a.id===t&&s.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(i,function(a){a.parentElement.removeChild(a)}))}}]),E}(),Q=function(){function E(e){C(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 S(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 s=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return s=this.getTimeStamp(s)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var s=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,a=["\0"].concat(q(s.months)),n=[""].concat(q(s.shortMonths)),o=[""].concat(q(s.days)),l=[""].concat(q(s.shortDays));function h(M,F){var V=M+"";for(F=F||2;V.length<F;)V="0"+V;return V}var u=i?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+u)).replace(/(^|[^\\])yy/g,"$1"+u.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+u);var p=(i?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+n[0])).replace(/(^|[^\\])MM/g,"$1"+h(p))).replace(/(^|[^\\])M/g,"$1"+p);var g=i?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+l[0])).replace(/(^|[^\\])dd/g,"$1"+h(g))).replace(/(^|[^\\])d/g,"$1"+g);var m=i?e.getUTCHours():e.getHours(),y=m>12?m-12:m===0?12:m;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+h(m))).replace(/(^|[^\\])H/g,"$1"+m)).replace(/(^|[^\\])hh+/g,"$1"+h(y))).replace(/(^|[^\\])h/g,"$1"+y);var k=i?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+h(k))).replace(/(^|[^\\])m/g,"$1"+k);var _=i?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+h(_))).replace(/(^|[^\\])s/g,"$1"+_);var D=i?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+h(D,3)),D=Math.round(D/10),t=t.replace(/(^|[^\\])ff/g,"$1"+h(D)),D=Math.round(D/10);var I=m<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+D)).replace(/(^|[^\\])TT+/g,"$1"+I)).replace(/(^|[^\\])T/g,"$1"+I.charAt(0));var c=I.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+c)).replace(/(^|[^\\])t/g,"$1"+c.charAt(0));var f=-e.getTimezoneOffset(),w=i||!f?"Z":f>0?"+":"-";if(!i){var L=(f=Math.abs(f))%60;w+=h(Math.floor(f/60))+":"+h(L)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var z=(i?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[z])).replace(new RegExp(l[0],"g"),l[z])).replace(new RegExp(a[0],"g"),a[p])).replace(new RegExp(n[0],"g"),n[p])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,s){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 a=this.getDate(e),n=this.getDate(t),o=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),l=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(l[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(l[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(l[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(l[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(l[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(l[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(l[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,s){return this.determineDaysOfMonths(e,t)-s}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,s){var i=this.daysCntOfYear[t]+s;return t>1&&this.isLeapYear()&&i++,i}},{key:"determineDaysOfMonths",value:function(e,t){var s=30;switch(e=R.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(s=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:s=31}return s}}]),E}(),pe=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return S(E,[{key:"xLabelFormat",value:function(e,t,s,i){var a=this.w;if(a.config.xaxis.type==="datetime"&&a.config.xaxis.labels.formatter===void 0&&a.config.tooltip.x.formatter===void 0){var n=new Q(this.ctx);return n.formatDate(n.getDate(t),a.config.tooltip.x.format)}return e(t,s,i)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,s){var i=this.w;return R.isNumber(e)&&(e=i.globals.yValueDecimal!==0?e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:i.globals.yValueDecimal):i.globals.maxYArr[s]-i.globals.minYArr[s]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(s){return e.defaultGeneralFormatter(s)},t.globals.ttKeyFormatter=function(s){return e.defaultGeneralFormatter(s)},t.globals.ttZFormatter=function(s){return s},t.globals.legendFormatter=function(s){return e.defaultGeneralFormatter(s)},t.config.xaxis.labels.formatter!==void 0?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(s){if(R.isNumber(s)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(R.isNumber(t.config.xaxis.decimalsInFloat))return s.toFixed(t.config.xaxis.decimalsInFloat);var i=t.globals.maxX-t.globals.minX;return i>0&&i<100?s.toFixed(1):s.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?s.toFixed(1):s.toFixed(0)}return s},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(s,i){s.labels.formatter!==void 0?t.globals.yLabelFormatters[i]=s.labels.formatter:t.globals.yLabelFormatters[i]=function(a){return t.globals.xyCharts?Array.isArray(a)?a.map(function(n){return e.defaultYFormatter(n,s,i)}):e.defaultYFormatter(a,s,i):a}}),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(s,i){return s.length>i.length?s:i},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),E}(),re=function(E){var e,t=E.isTimeline,s=E.ctx,i=E.seriesIndex,a=E.dataPointIndex,n=E.y1,o=E.y2,l=E.w,h=l.globals.seriesRangeStart[i][a],u=l.globals.seriesRangeEnd[i][a],p=l.globals.labels[a],g=l.config.series[i].name?l.config.series[i].name:"",m=l.globals.ttKeyFormatter,y=l.config.tooltip.y.title.formatter,k={w:l,seriesIndex:i,dataPointIndex:a,start:h,end:u};typeof y=="function"&&(g=y(g,k)),(e=l.config.series[i].data[a])!==null&&e!==void 0&&e.x&&(p=l.config.series[i].data[a].x),t||l.config.xaxis.type==="datetime"&&(p=new pe(s).xLabelFormat(l.globals.ttKeyFormatter,p,p,{i:void 0,dateFormatter:new Q(s).formatDate,w:l})),typeof m=="function"&&(p=m(p,k)),Number.isFinite(n)&&Number.isFinite(o)&&(h=n,u=o);var _="",D="",I=l.globals.colors[i];if(l.config.tooltip.x.formatter===void 0)if(l.config.xaxis.type==="datetime"){var c=new Q(s);_=c.formatDate(c.getDate(h),l.config.tooltip.x.format),D=c.formatDate(c.getDate(u),l.config.tooltip.x.format)}else _=h,D=u;else _=l.config.tooltip.x.formatter(h),D=l.config.tooltip.x.formatter(u);return{start:h,end:u,startVal:_,endVal:D,ylabel:p,color:I,seriesName:g}},Ce=function(E){var e=E.color,t=E.seriesName,s=E.ylabel,i=E.start,a=E.end,n=E.seriesIndex,o=E.dataPointIndex,l=E.ctx.tooltip.tooltipLabels.getFormatters(n);i=l.yLbFormatter(i),a=l.yLbFormatter(a);var h=l.yLbFormatter(E.w.globals.series[n][o]),u=`<span class="value start-value">
|
|
37
|
+
`.concat(i,`
|
|
38
|
+
</span> <span class="separator">-</span> <span class="value end-value">
|
|
39
|
+
`).concat(a,`
|
|
40
|
+
</span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(t||"")+'</span></div><div> <span class="category">'+s+": </span> "+(E.w.globals.comboCharts?E.w.config.series[n].type==="rangeArea"||E.w.config.series[n].type==="rangeBar"?u:"<span>".concat(h,"</span>"):u)+" </div></div>"},Ve=function(){function E(e){C(this,E),this.opts=e}return S(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(),R.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(),v(v({},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 s=t.seriesIndex,i=t.dataPointIndex,a=t.w;return e._getBoxTooltip(a,s,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 s=t.seriesIndex,i=t.dataPointIndex,a=t.w;return e._getBoxTooltip(a,s,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 s=t.seriesIndex,i=t.dataPointIndex,a=t.w,n=function(){var o=a.globals.seriesRangeStart[s][i];return a.globals.seriesRangeEnd[s][i]-o};return a.globals.comboCharts?a.config.series[s].type==="rangeBar"||a.config.series[s].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 s=re(v(v({},t),{},{isTimeline:!0})),i=s.color,a=s.seriesName,n=s.ylabel,o=s.startVal,l=s.endVal;return Ce(v(v({},t),{},{color:i,seriesName:a,ylabel:n,start:o,end:l}))}(e):function(t){var s=re(t),i=s.color,a=s.seriesName,n=s.ylabel,o=s.start,l=s.end;return Ce(v(v({},t),{},{color:i,seriesName:a,ylabel:n,start:o,end:l}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,s;return(t=e.plotOptions.bar)!==null&&t!==void 0&&t.barHeight||(e.plotOptions.bar.barHeight=2),(s=e.plotOptions.bar)!==null&&s!==void 0&&s.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 s=re(t),i=s.color,a=s.seriesName,n=s.ylabel,o=s.start,l=s.end;return Ce(v(v({},t),{},{color:i,seriesName:a,ylabel:n,start:o,end:l}))}(e)}}}}},{key:"brush",value:function(e){return R.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(s,i){e.yaxis[i].min=0,e.yaxis[i].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(s){return typeof s=="number"&&s?s.toFixed(0)+"%":s}),e}},{key:"stackedBars",value:function(){var e=this.bar();return v(v({},e),{},{plotOptions:v(v({},e.plotOptions),{},{bar:v(v({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,s){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(n){return R.isNumber(n)?Math.floor(n):n};var i=e.xaxis.labels.formatter,a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return s&&s.length&&(a=s.map(function(n){return Array.isArray(n)?n:String(n)})),a&&a.length&&(e.xaxis.labels.formatter=function(n){return R.isNumber(n)?i(a[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,s,i,a){var n=e.globals.seriesCandleO[t][s],o=e.globals.seriesCandleH[t][s],l=e.globals.seriesCandleM[t][s],h=e.globals.seriesCandleL[t][s],u=e.globals.seriesCandleC[t][s];return e.config.series[t].type&&e.config.series[t].type!==a?`<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][s],`</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">')+o+"</span></div>"+(l?"<div>".concat(i[2],': <span class="value">')+l+"</span></div>":"")+"<div>".concat(i[3],': <span class="value">')+h+"</span></div>"+"<div>".concat(i[4],': <span class="value">')+u+"</span></div></div>"}}]),E}(),et=function(){function E(e){C(this,E),this.opts=e}return S(E,[{key:"init",value:function(e){var t=e.responsiveOverride,s=this.opts,i=new ke,a=new Ve(s);this.chartType=s.chart.type,s=this.extendYAxis(s),s=this.extendAnnotations(s);var n=i.init(),o={};if(s&&A(s)==="object"){var l,h,u,p,g,m,y,k,_={};_=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(s.chart.type)!==-1?a[s.chart.type]():a.line(),(l=s.plotOptions)!==null&&l!==void 0&&(h=l.bar)!==null&&h!==void 0&&h.isFunnel&&(_=a.funnel()),s.chart.stacked&&s.chart.type==="bar"&&(_=a.stackedBars()),(u=s.chart.brush)!==null&&u!==void 0&&u.enabled&&(_=a.brush(_)),s.chart.stacked&&s.chart.stackType==="100%"&&(s=a.stacked100(s)),(p=s.plotOptions)!==null&&p!==void 0&&(g=p.bar)!==null&&g!==void 0&&g.isDumbbell&&(s=a.dumbbell(s)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(s),s.xaxis=s.xaxis||window.Apex.xaxis||{},t||(s.xaxis.convertedCatToNumeric=!1),((m=(s=this.checkForCatToNumericXAxis(this.chartType,_,s)).chart.sparkline)!==null&&m!==void 0&&m.enabled||(y=window.Apex.chart)!==null&&y!==void 0&&(k=y.sparkline)!==null&&k!==void 0&&k.enabled)&&(_=a.sparkline(_)),o=R.extend(n,_)}var D=R.extend(o,window.Apex);return n=R.extend(D,s),n=this.handleUserInputErrors(n)}},{key:"checkForCatToNumericXAxis",value:function(e,t,s){var i,a,n=new Ve(s),o=(e==="bar"||e==="boxPlot")&&((i=s.plotOptions)===null||i===void 0||(a=i.bar)===null||a===void 0?void 0:a.horizontal),l=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",h=s.xaxis.type!=="datetime"&&s.xaxis.type!=="numeric",u=s.xaxis.tickPlacement?s.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||l||!h||u==="between"||(s=n.convertCatToNumeric(s)),s}},{key:"extendYAxis",value:function(e,t){var s=new ke;(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=R.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[R.extend(s.yAxis,e.yaxis)]:e.yaxis=R.extendArray(e.yaxis,s.yAxis);var i=!1;e.yaxis.forEach(function(n){n.logarithmic&&(i=!0)});var a=e.series;return t&&!a&&(a=t.config.series),i&&a.length!==e.yaxis.length&&a.length&&(e.yaxis=a.map(function(n,o){if(n.name||(a[o].name="series-".concat(o+1)),e.yaxis[o])return e.yaxis[o].seriesName=a[o].name,e.yaxis[o];var l=R.extend(s.yAxis,e.yaxis[0]);return l.show=!1,l})),i&&a.length>1&&a.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 ke;return e.annotations.yaxis=R.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new ke;return e.annotations.xaxis=R.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new ke;return e.annotations.points=R.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}(),Nt=function(){function E(){C(this,E)}return S(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=R.extend({},e),t.initialSeries=R.clone(e.series),t.lastXAxis=R.clone(t.initialConfig.xaxis),t.lastYAxis=R.clone(t.initialConfig.yaxis),t}}]),E}(),us=function(){function E(e){C(this,E),this.opts=e}return S(E,[{key:"init",value:function(){var e=new et(this.opts).init({responsiveOverride:!1});return{config:e,globals:new Nt().init(e)}}}]),E}(),_e=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return S(E,[{key:"clippedImgArea",value:function(e){var t=this.w,s=t.config,i=parseInt(t.globals.gridWidth,10),a=parseInt(t.globals.gridHeight,10),n=i>a?i:a,o=e.image,l=0,h=0;e.width===void 0&&e.height===void 0?s.fill.image.width!==void 0&&s.fill.image.height!==void 0?(l=s.fill.image.width+1,h=s.fill.image.height):(l=n+1,h=n):(l=e.width,h=e.height);var u=document.createElementNS(t.globals.SVGNS,"pattern");Y.setAttrs(u,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:l+"px",height:h+"px"});var p=document.createElementNS(t.globals.SVGNS,"image");u.appendChild(p),p.setAttributeNS(window.SVG.xlink,"href",o),Y.setAttrs(p,{x:0,y:0,preserveAspectRatio:"none",width:l+"px",height:h+"px"}),p.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(u)}},{key:"getSeriesIndex",value:function(e){var t=this.w,s=t.config.chart.type;return(s==="bar"||s==="rangeBar")&&t.config.plotOptions.bar.distributed||s==="heatmap"||s==="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 s,i,a,n=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(o=t.globals.seriesColors[this.seriesIndex]),typeof o=="function"&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var l=e.fillType?e.fillType:this.getFillType(this.seriesIndex),h=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity;e.color&&(o=e.color);var u=o;if(o.indexOf("rgb")===-1?o.length<9&&(u=R.hexToRgba(o,h)):o.indexOf("rgba")>-1&&(h=R.getOpacityFromRGBA(o)),e.opacity&&(h=e.opacity),l==="pattern"&&(i=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:i,fillColor:o,fillOpacity:h,defaultColor:u})),l==="gradient"&&(a=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:o,fillOpacity:h,i:this.seriesIndex})),l==="image"){var p=n.fill.image.src,g=e.patternID?e.patternID:"";this.clippedImgArea({opacity:h,image:Array.isArray(p)?e.seriesNumber<p.length?p[e.seriesNumber]:p[0]:p,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(g)}),s="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(g,")")}else s=l==="gradient"?a:l==="pattern"?i:u;return e.solid&&(s=u),s}},{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,s=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),s.fillColors!==void 0&&(i=[],Array.isArray(s.fillColors)?i=s.fillColors.slice():i.push(s.fillColors)),i}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,s=e.patternFill,i=e.fillColor,a=e.fillOpacity,n=e.defaultColor,o=this.w.config.fill;t&&(o=t);var l=this.opts,h=new Y(this.ctx),u=Array.isArray(o.pattern.strokeWidth)?o.pattern.strokeWidth[this.seriesIndex]:o.pattern.strokeWidth,p=i;return Array.isArray(o.pattern.style)?s=o.pattern.style[l.seriesNumber]!==void 0?h.drawPattern(o.pattern.style[l.seriesNumber],o.pattern.width,o.pattern.height,p,u,a):n:s=h.drawPattern(o.pattern.style,o.pattern.width,o.pattern.height,p,u,a),s}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,s=e.fillOpacity,i=e.fillConfig,a=e.i,n=this.w.config.fill;i&&(n=v(v({},n),i));var o,l=this.opts,h=new Y(this.ctx),u=new R,p=n.gradient.type,g=t,m=n.gradient.opacityFrom===void 0?s:Array.isArray(n.gradient.opacityFrom)?n.gradient.opacityFrom[a]:n.gradient.opacityFrom;g.indexOf("rgba")>-1&&(m=R.getOpacityFromRGBA(g));var y=n.gradient.opacityTo===void 0?s:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[a]:n.gradient.opacityTo;if(n.gradient.gradientToColors===void 0||n.gradient.gradientToColors.length===0)o=n.gradient.shade==="dark"?u.shadeColor(-1*parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?R.rgb2hex(t):t):u.shadeColor(parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?R.rgb2hex(t):t);else if(n.gradient.gradientToColors[l.seriesNumber]){var k=n.gradient.gradientToColors[l.seriesNumber];o=k,k.indexOf("rgba")>-1&&(y=R.getOpacityFromRGBA(k))}else o=t;if(n.gradient.gradientFrom&&(g=n.gradient.gradientFrom),n.gradient.gradientTo&&(o=n.gradient.gradientTo),n.gradient.inverseColors){var _=g;g=o,o=_}return g.indexOf("rgb")>-1&&(g=R.rgb2hex(g)),o.indexOf("rgb")>-1&&(o=R.rgb2hex(o)),h.drawGradient(p,g,o,m,y,l.size,n.gradient.stops,n.gradient.colorStops,a)}}]),E}(),tt=function(){function E(e,t){C(this,E),this.ctx=e,this.w=e.w}return S(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(s){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e,t,s,i){var a,n=arguments.length>4&&arguments[4]!==void 0&&arguments[4],o=this.w,l=t,h=e,u=null,p=new Y(this.ctx),g=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[t]>0||n||g)&&(u=p.group({class:n||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(h.x))for(var m=0;m<h.x.length;m++){var y=s;s===1&&m===0&&(y=0),s===1&&m===1&&(y=1);var k="apexcharts-marker";if(o.config.chart.type!=="line"&&o.config.chart.type!=="area"||o.globals.comboCharts||o.config.tooltip.intersect||(k+=" no-pointer-events"),(Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0)||n||g){R.isNumber(h.y[m])?k+=" w".concat(R.randomId()):k="apexcharts-nullpoint";var _=this.getMarkerConfig({cssClass:k,seriesIndex:t,dataPointIndex:y});o.config.series[l].data[y]&&(o.config.series[l].data[y].fillColor&&(_.pointFillColor=o.config.series[l].data[y].fillColor),o.config.series[l].data[y].strokeColor&&(_.pointStrokeColor=o.config.series[l].data[y].strokeColor)),i&&(_.pSize=i),(h.x[m]<0||h.x[m]>o.globals.gridWidth||h.y[m]<0||h.y[m]>o.globals.gridHeight)&&(_.pSize=0),(a=p.drawMarker(h.x[m],h.y[m],_)).attr("rel",y),a.attr("j",y),a.attr("index",t),a.node.setAttribute("default-marker-size",_.pSize),new ee(this.ctx).setSelectionFilter(a,t,y),this.addEvents(a),u&&u.add(a)}else o.globals.pointsArray[t]===void 0&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([h.x[m],h.y[m]])}return u}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,s=e.seriesIndex,i=e.dataPointIndex,a=i===void 0?null:i,n=e.finishRadius,o=n===void 0?null:n,l=this.w,h=this.getMarkerStyle(s),u=l.globals.markers.size[s],p=l.config.markers;return a!==null&&p.discrete.length&&p.discrete.map(function(g){g.seriesIndex===s&&g.dataPointIndex===a&&(h.pointStrokeColor=g.strokeColor,h.pointFillColor=g.fillColor,u=g.size,h.pointShape=g.shape)}),{pSize:o===null?u:o,pRadius:p.radius,width:Array.isArray(p.width)?p.width[s]:p.width,height:Array.isArray(p.height)?p.height[s]:p.height,pointStrokeWidth:Array.isArray(p.strokeWidth)?p.strokeWidth[s]:p.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(p.shape)?p.shape[s]:p.shape),class:t,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[s]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[s]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[s]:p.fillOpacity,seriesIndex:s}}},{key:"addEvents",value:function(e){var t=this.w,s=new Y(this.ctx);e.node.addEventListener("mouseenter",s.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",s.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",s.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",s.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,s=t.globals.markers.colors,i=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[e]:i,pointFillColor:Array.isArray(s)?s[e]:s}}}]),E}(),Ue=function(){function E(e){C(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 S(E,[{key:"draw",value:function(e,t,s){var i=this.w,a=new Y(this.ctx),n=s.realIndex,o=s.pointsPos,l=s.zRatio,h=s.elParent,u=a.group({class:"apexcharts-series-markers apexcharts-series-".concat(i.config.chart.type)});if(u.attr("clip-path","url(#gridRectMarkerMask".concat(i.globals.cuid,")")),Array.isArray(o.x))for(var p=0;p<o.x.length;p++){var g=t+1,m=!0;t===0&&p===0&&(g=0),t===0&&p===1&&(g=1);var y=0,k=i.globals.markers.size[n];if(l!==1/0){var _=i.config.plotOptions.bubble;k=i.globals.seriesZ[n][g],_.zScaling&&(k/=l),_.minBubbleRadius&&k<_.minBubbleRadius&&(k=_.minBubbleRadius),_.maxBubbleRadius&&k>_.maxBubbleRadius&&(k=_.maxBubbleRadius)}i.config.chart.animations.enabled||(y=k);var D=o.x[p],I=o.y[p];if(y=y||0,I!==null&&i.globals.series[n][g]!==void 0||(m=!1),m){var c=this.drawPoint(D,I,y,k,n,g,t);u.add(c)}h.add(u)}}},{key:"drawPoint",value:function(e,t,s,i,a,n,o){var l=this.w,h=a,u=new $(this.ctx),p=new ee(this.ctx),g=new _e(this.ctx),m=new tt(this.ctx),y=new Y(this.ctx),k=m.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:h,dataPointIndex:n,finishRadius:l.config.chart.type==="bubble"||l.globals.comboCharts&&l.config.series[a]&&l.config.series[a].type==="bubble"?i:null});i=k.pSize;var _,D=g.fillPath({seriesNumber:a,dataPointIndex:n,color:k.pointFillColor,patternUnits:"objectBoundingBox",value:l.globals.series[a][o]});if(k.shape==="circle"?_=y.drawCircle(s):k.shape!=="square"&&k.shape!=="rect"||(_=y.drawRect(0,0,k.width-k.pointStrokeWidth/2,k.height-k.pointStrokeWidth/2,k.pRadius)),l.config.series[h].data[n]&&l.config.series[h].data[n].fillColor&&(D=l.config.series[h].data[n].fillColor),_.attr({x:e-k.width/2-k.pointStrokeWidth/2,y:t-k.height/2-k.pointStrokeWidth/2,cx:e,cy:t,fill:D,"fill-opacity":k.pointFillOpacity,stroke:k.pointStrokeColor,r:i,"stroke-width":k.pointStrokeWidth,"stroke-dasharray":k.pointStrokeDashArray,"stroke-opacity":k.pointStrokeOpacity}),l.config.chart.dropShadow.enabled){var I=l.config.chart.dropShadow;p.dropShadow(_,I,a)}if(!this.initialAnim||l.globals.dataChanged||l.globals.resized)l.globals.animationEnded=!0;else{var c=l.config.chart.animations.speed;u.animateMarker(_,0,k.shape==="circle"?i:{width:k.width,height:k.height},c,l.globals.easing,function(){window.setTimeout(function(){u.animationCompleted(_)},100)})}if(l.globals.dataChanged&&k.shape==="circle")if(this.dynamicAnim){var f,w,L,z,M=l.config.chart.animations.dynamicAnimation.speed;(z=l.globals.previousPaths[a]&&l.globals.previousPaths[a][o])!=null&&(f=z.x,w=z.y,L=z.r!==void 0?z.r:i);for(var F=0;F<l.globals.collapsedSeries.length;F++)l.globals.collapsedSeries[F].index===a&&(M=1,i=0);e===0&&t===0&&(i=0),u.animateCircle(_,{cx:f,cy:w,r:L},{cx:e,cy:t,r:i},M,l.globals.easing)}else _.attr({r:i});return _.attr({rel:n,j:n,index:a,"default-marker-size":i}),p.setSelectionFilter(_,a,n),m.addEvents(_),_.node.classList.add("apexcharts-marker"),_}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),E}(),ie=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"dataLabelsCorrection",value:function(e,t,s,i,a,n,o){var l=this.w,h=!1,u=new Y(this.ctx).getTextRects(s,o),p=u.width,g=u.height;t<0&&(t=0),t>l.globals.gridHeight+g&&(t=l.globals.gridHeight+g/2),l.globals.dataLabelsRects[i]===void 0&&(l.globals.dataLabelsRects[i]=[]),l.globals.dataLabelsRects[i].push({x:e,y:t,width:p,height:g});var m=l.globals.dataLabelsRects[i].length-2,y=l.globals.lastDrawnDataLabelsIndexes[i]!==void 0?l.globals.lastDrawnDataLabelsIndexes[i][l.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(l.globals.dataLabelsRects[i][m]!==void 0){var k=l.globals.dataLabelsRects[i][y];(e>k.x+k.width+2||t>k.y+k.height+2||e+p<k.x)&&(h=!0)}return(a===0||n)&&(h=!0),{x:e,y:t,textRects:u,drawnextLabel:h}}},{key:"drawDataLabel",value:function(e){var t=this,s=e.type,i=e.pos,a=e.i,n=e.j,o=e.isRangeStart,l=e.strokeWidth,h=l===void 0?2:l,u=this.w,p=new Y(this.ctx),g=u.config.dataLabels,m=0,y=0,k=n,_=null;if(!g.enabled||!Array.isArray(i.x))return _;_=p.group({class:"apexcharts-data-labels"});for(var D=0;D<i.x.length;D++)if(m=i.x[D]+g.offsetX,y=i.y[D]+g.offsetY+h,!isNaN(m)){n===1&&D===0&&(k=0),n===1&&D===1&&(k=1);var I=u.globals.series[a][k];s==="rangeArea"&&(I=o?u.globals.seriesRangeStart[a][k]:u.globals.seriesRangeEnd[a][k]);var c="",f=function(w){return u.config.dataLabels.formatter(w,{ctx:t.ctx,seriesIndex:a,dataPointIndex:k,w:u})};u.config.chart.type==="bubble"?(c=f(I=u.globals.seriesZ[a][k]),y=i.y[D],y=new Ue(this.ctx).centerTextInBubble(y,a,k).y):I!==void 0&&(c=f(I)),this.plotDataLabelsText({x:m,y,text:c,i:a,j:k,parent:_,offsetCorrection:!0,dataLabelsConfig:u.config.dataLabels})}return _}},{key:"plotDataLabelsText",value:function(e){var t=this.w,s=new Y(this.ctx),i=e.x,a=e.y,n=e.i,o=e.j,l=e.text,h=e.textAnchor,u=e.fontSize,p=e.parent,g=e.dataLabelsConfig,m=e.color,y=e.alwaysDrawDataLabel,k=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(n)<0)){var _={x:i,y:a,drawnextLabel:!0,textRects:null};k&&(_=this.dataLabelsCorrection(i,a,l,n,o,y,parseInt(g.style.fontSize,10))),t.globals.zoomed||(i=_.x,a=_.y),_.textRects&&(i<-10-_.textRects.width||i>t.globals.gridWidth+_.textRects.width+10)&&(l="");var D=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)&&(D=t.globals.dataLabels.style.colors[o]),typeof D=="function"&&(D=D({series:t.globals.series,seriesIndex:n,dataPointIndex:o,w:t})),m&&(D=m);var I=g.offsetX,c=g.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(I=0,c=0),_.drawnextLabel){var f=s.drawText({width:100,height:parseInt(g.style.fontSize,10),x:i+I,y:a+c,foreColor:D,textAnchor:h||g.textAnchor,text:l,fontSize:u||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||"normal"});if(f.attr({class:"apexcharts-datalabel",cx:i,cy:a}),g.dropShadow.enabled){var w=g.dropShadow;new ee(this.ctx).dropShadow(f,w)}p.add(f),t.globals.lastDrawnDataLabelsIndexes[n]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var s=this.w,i=s.config.dataLabels.background,a=i.padding,n=i.padding/2,o=t.width,l=t.height,h=new Y(this.ctx).drawRect(t.x-a,t.y-n/2,o+2*a,l+n,i.borderRadius,s.config.chart.background==="transparent"?"#fff":s.config.chart.background,i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new ee(this.ctx).dropShadow(h,i.dropShadow),h}},{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"),s=0;s<t.length;s++){var i=t[s],a=i.getBBox(),n=null;if(a.width&&a.height&&(n=this.addBackgroundToDataLabel(i,a)),n){i.parentNode.insertBefore(n.node,i);var o=i.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?n.animate().attr({fill:o}):n.attr({fill:o}),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"),s=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),i=0;i<t.length;i++)s&&s.insertBefore(t[i],s.nextSibling)}}]),E}(),oe=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return S(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(R.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),s=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:s}}},{key:"addCollapsedClassToSeries",value:function(e,t){var s=this.w;function i(a){for(var n=0;n<a.length;n++)a[n].index===t&&e.node.classList.add("apexcharts-series-collapsed")}i(s.globals.collapsedSeries),i(s.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],s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],i=this.w,a=R.clone(i.globals.initialSeries);i.globals.previousPaths=[],s?(i.globals.collapsedSeries=[],i.globals.ancillaryCollapsedSeries=[],i.globals.collapsedSeriesIndices=[],i.globals.ancillaryCollapsedSeriesIndices=[]):a=this.emptyCollapsedSeries(a),i.config.series=a,e&&(t&&(i.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,i.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,s=0;s<e.length;s++)t.globals.collapsedSeriesIndices.indexOf(s)>-1&&(e[s].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var s=this.w;t||(t=e.target);var i=s.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(e.type==="mousemove"){var a=parseInt(t.getAttribute("rel"),10)-1,n=null,o=null;s.globals.axisCharts||s.config.chart.type==="radialBar"?s.globals.axisCharts?(n=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(a,"']")),o=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(a,"']"))):n=s.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"']")):n=s.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"'] path"));for(var l=0;l<i.length;l++)i[l].classList.add(this.legendInactiveClass);n!==null&&(s.globals.axisCharts||n.parentNode.classList.remove(this.legendInactiveClass),n.classList.remove(this.legendInactiveClass),o!==null&&o.classList.remove(this.legendInactiveClass))}else if(e.type==="mouseout")for(var h=0;h<i.length;h++)i[h].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var s=this,i=this.w,a=i.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),n=function(l){for(var h=0;h<a.length;h++)a[h].classList[l](s.legendInactiveClass)};if(e.type==="mousemove"){var o=parseInt(t.getAttribute("rel"),10)-1;n("add"),function(l){for(var h=0;h<a.length;h++){var u=parseInt(a[h].getAttribute("val"),10);u>=l.from&&u<=l.to&&a[h].classList.remove(s.legendInactiveClass)}}(i.config.plotOptions.heatmap.colorScale.ranges[o])}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]:[],s=this.w,i=0;if(s.config.series.length>1){for(var a=s.config.series.map(function(o,l){return o.data&&o.data.length>0&&s.globals.collapsedSeriesIndices.indexOf(l)===-1&&(!s.globals.comboCharts||t.length===0||t.length&&t.indexOf(s.config.series[l].type)>-1)?l:-1}),n=e==="asc"?0:a.length-1;e==="asc"?n<a.length:n>=0;e==="asc"?n++:n--)if(a[n]!==-1){i=a[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,o,l){for(var h=n[o].childNodes,u={type:l,paths:[],realIndex:n[o].getAttribute("data:realIndex")},p=0;p<h.length;p++)if(h[p].hasAttribute("pathTo")){var g=h[p].getAttribute("pathTo");u.paths.push({d:g})}e.globals.previousPaths.push(u)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(n){for(var o,l=(o=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(o,"-series .apexcharts-series"))),h=0;h<l.length;h++)t(l,h,n)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(s.length>0)for(var i=function(n){for(var o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(n,"'] rect")),l=[],h=function(p){var g=function(y){return o[p].getAttribute(y)},m={x:parseFloat(g("x")),y:parseFloat(g("y")),width:parseFloat(g("width")),height:parseFloat(g("height"))};l.push({rect:m,color:o[p].getAttribute("color")})},u=0;u<o.length;u++)h(u);e.globals.previousPaths.push(l)},a=0;a<s.length;a++)i(a);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(s.length>0)for(var i=0;i<s.length;i++){for(var a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(i,"'] circle")),n=[],o=0;o<a.length;o++)n.push({x:a[o].getAttribute("cx"),y:a[o].getAttribute("cy"),r:a[o].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,s=new Y(this.ctx),i=e.globals.svgWidth/2,a=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"?a=50:t.verticalAlign==="bottom"&&(a=e.globals.svgHeight-50),i+=t.offsetX,a=a+parseInt(t.style.fontSize,10)+2+t.offsetY,t.text!==void 0&&t.text!==""){var o=s.drawText({x:i,y:a,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(o)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,s=0;s<e.length;s++)if(e[s].length===0)for(var i=0;i<e[t.globals.maxValsInArrayIndex].length;i++)e[s].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,s=this.filteredSeriesX(),i=0;i<s.length-1;i++)if(s[i][0]!==s[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}(),Le=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new K(this.ctx)}return S(E,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new oe(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 oe(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 s=this.w.config,i=this.w.globals,a=s.chart.type==="boxPlot"||s.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&&!a?this.twoDSeries.push(R.parseNumber(e[t].data[n][1][3])):e[t].data[n].length>=5?this.twoDSeries.push(R.parseNumber(e[t].data[n][4])):this.twoDSeries.push(R.parseNumber(e[t].data[n][1])),i.dataFormatXNumeric=!0),s.xaxis.type==="datetime"){var o=new Date(e[t].data[n][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[n][0]);for(var l=0;l<e[t].data.length;l++)e[t].data[l][2]!==void 0&&(this.threeDSeries.push(e[t].data[l][2]),i.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var s=this.w.config,i=this.w.globals,a=new Q(this.ctx),n=t;i.collapsedSeriesIndices.indexOf(t)>-1&&(n=this.activeSeriesIndex);for(var o=0;o<e[t].data.length;o++)e[t].data[o].y!==void 0&&(Array.isArray(e[t].data[o].y)?this.twoDSeries.push(R.parseNumber(e[t].data[o].y[e[t].data[o].y.length-1])):this.twoDSeries.push(R.parseNumber(e[t].data[o].y))),e[t].data[o].goals!==void 0&&Array.isArray(e[t].data[o].goals)?(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[o].goals)):(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var l=0;l<e[n].data.length;l++){var h=typeof e[n].data[l].x=="string",u=Array.isArray(e[n].data[l].x),p=!u&&!!a.isValidDate(e[n].data[l].x.toString());if(h||p)if(h||s.xaxis.convertedCatToNumeric){var g=i.isBarHorizontal&&i.isRangeData;s.xaxis.type!=="datetime"||g?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[l].x)):this.twoDSeriesX.push(a.parseDate(e[n].data[l].x))}else s.xaxis.type==="datetime"?this.twoDSeriesX.push(a.parseDate(e[n].data[l].x.toString())):(i.dataFormatXNumeric=!0,i.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[n].data[l].x)));else u?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[l].x)):(i.isXNumeric=!0,i.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[n].data[l].x))}if(e[t].data[0]&&e[t].data[0].z!==void 0){for(var m=0;m<e[t].data.length;m++)this.threeDSeries.push(e[t].data[m].z);i.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var s=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleRangeDataFormat("xy",e,t)),s.seriesRangeStart.push(i.start),s.seriesRangeEnd.push(i.end),s.seriesRange.push(i.rangeUniques),s.seriesRange.forEach(function(a,n){a&&a.forEach(function(o,l){o.y.forEach(function(h,u){for(var p=0;p<o.y.length;p++)if(u!==p){var g=h.y1,m=h.y2,y=o.y[p].y1;g<=o.y[p].y2&&y<=m&&(o.overlaps.indexOf(h.rangeName)<0&&o.overlaps.push(h.rangeName),o.overlaps.indexOf(o.y[p].rangeName)<0&&o.overlaps.push(o.y[p].rangeName))}})})}),i}},{key:"handleCandleStickBoxData",value:function(e,t){var s=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleCandleStickBoxDataFormat("xy",e,t)),s.seriesCandleO[t]=i.o,s.seriesCandleH[t]=i.h,s.seriesCandleM[t]=i.m,s.seriesCandleL[t]=i.l,s.seriesCandleC[t]=i.c,i}},{key:"handleRangeDataFormat",value:function(e,t,s){var i=[],a=[],n=t[s].data.filter(function(u,p,g){return p===g.findIndex(function(m){return m.x===u.x})}).map(function(u,p){return{x:u.x,overlaps:[],y:[]}});if(e==="array")for(var o=0;o<t[s].data.length;o++)Array.isArray(t[s].data[o])?(i.push(t[s].data[o][1][0]),a.push(t[s].data[o][1][1])):(i.push(t[s].data[o]),a.push(t[s].data[o]));else if(e==="xy")for(var l=function(u){var p=Array.isArray(t[s].data[u].y),g=R.randomId(),m=t[s].data[u].x,y={y1:p?t[s].data[u].y[0]:t[s].data[u].y,y2:p?t[s].data[u].y[1]:t[s].data[u].y,rangeName:g};t[s].data[u].rangeName=g;var k=n.findIndex(function(_){return _.x===m});n[k].y.push(y),i.push(y.y1),a.push(y.y2)},h=0;h<t[s].data.length;h++)l(h);return{start:i,end:a,rangeUniques:n}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,s){var i=this.w,a=i.config.chart.type==="boxPlot"||i.config.series[s].type==="boxPlot",n=[],o=[],l=[],h=[],u=[];if(e==="array")if(a&&t[s].data[0].length===6||!a&&t[s].data[0].length===5)for(var p=0;p<t[s].data.length;p++)n.push(t[s].data[p][1]),o.push(t[s].data[p][2]),a?(l.push(t[s].data[p][3]),h.push(t[s].data[p][4]),u.push(t[s].data[p][5])):(h.push(t[s].data[p][3]),u.push(t[s].data[p][4]));else for(var g=0;g<t[s].data.length;g++)Array.isArray(t[s].data[g][1])&&(n.push(t[s].data[g][1][0]),o.push(t[s].data[g][1][1]),a?(l.push(t[s].data[g][1][2]),h.push(t[s].data[g][1][3]),u.push(t[s].data[g][1][4])):(h.push(t[s].data[g][1][2]),u.push(t[s].data[g][1][3])));else if(e==="xy")for(var m=0;m<t[s].data.length;m++)Array.isArray(t[s].data[m].y)&&(n.push(t[s].data[m].y[0]),o.push(t[s].data[m].y[1]),a?(l.push(t[s].data[m].y[2]),h.push(t[s].data[m].y[3]),u.push(t[s].data[m].y[4])):(h.push(t[s].data[m].y[2]),u.push(t[s].data[m].y[3])));return{o:n,h:o,m:l,l:h,c:u}}},{key:"parseDataAxisCharts",value:function(e){var t,s=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,a=this.w.config,n=this.w.globals,o=new Q(i),l=a.labels.length>0?a.labels.slice():a.xaxis.categories.slice();if(n.isRangeBar=a.chart.type==="rangeBar"&&n.isBarHorizontal,n.hasXaxisGroups=a.xaxis.type==="category"&&a.xaxis.group.groups.length>0,n.hasXaxisGroups&&(n.groups=a.xaxis.group.groups),n.hasSeriesGroups=(t=e[0])===null||t===void 0?void 0:t.group,n.hasSeriesGroups){var h=[],u=q(new Set(e.map(function(y){return y.group})));e.forEach(function(y,k){var _=u.indexOf(y.group);h[_]||(h[_]=[]),h[_].push(y.name)}),n.seriesGroups=h}for(var p=function(){for(var y=0;y<l.length;y++)if(typeof l[y]=="string"){if(!o.isValidDate(l[y]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");s.twoDSeriesX.push(o.parseDate(l[y]))}else s.twoDSeriesX.push(l[y])},g=0;g<e.length;g++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[g].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(a.chart.type!=="rangeBar"&&a.chart.type!=="rangeArea"&&e[g].type!=="rangeBar"&&e[g].type!=="rangeArea"||(n.isRangeData=!0,n.isComboCharts?e[g].type!=="rangeBar"&&e[g].type!=="rangeArea"||this.handleRangeData(e,g):a.chart.type!=="rangeBar"&&a.chart.type!=="rangeArea"||this.handleRangeData(e,g)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,g):this.isFormatXY()&&this.handleFormatXY(e,g),a.chart.type!=="candlestick"&&e[g].type!=="candlestick"&&a.chart.type!=="boxPlot"&&e[g].type!=="boxPlot"||this.handleCandleStickBoxData(e,g),n.series.push(this.twoDSeries),n.labels.push(this.twoDSeriesX),n.seriesX.push(this.twoDSeriesX),n.seriesGoals=this.seriesGoals,g!==this.activeSeriesIndex||this.fallbackToCategory||(n.isXNumeric=!0);else{a.xaxis.type==="datetime"?(n.isXNumeric=!0,p(),n.seriesX.push(this.twoDSeriesX)):a.xaxis.type==="numeric"&&(n.isXNumeric=!0,l.length>0&&(this.twoDSeriesX=l,n.seriesX.push(this.twoDSeriesX))),n.labels.push(this.twoDSeriesX);var m=e[g].data.map(function(y){return R.parseNumber(y)});n.series.push(m)}n.seriesZ.push(this.threeDSeries),e[g].name!==void 0?n.seriesNames.push(e[g].name):n.seriesNames.push("series-"+parseInt(g+1,10)),e[g].color!==void 0?n.seriesColors.push(e[g].color):n.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,s=this.w.config;t.series=e.slice(),t.seriesNames=s.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,s=this.w.globals;t.xaxis.categories.length>0?s.labels=t.xaxis.categories:t.labels.length>0?s.labels=t.labels.slice():this.fallbackToCategory?(s.labels=s.labels[0],s.seriesRange.length&&(s.seriesRange.map(function(i){i.forEach(function(a){s.labels.indexOf(a.x)<0&&a.x&&s.labels.push(a.x)})}),s.labels=Array.from(new Set(s.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new Ve(t).convertCatToNumericXaxis(t,this.ctx,s.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,s=this.w.config,i=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var a=s.series.map(function(p,g){return p.data.filter(function(m,y,k){return k.findIndex(function(_){return _.x===m.x})===y})}),n=a.reduce(function(p,g,m,y){return y[p].length>g.length?p:m},0),o=0;o<a[n].length;o++)i.push(o+1);else for(var l=0;l<t.series[t.maxValsInArrayIndex].length;l++)i.push(l+1);t.seriesX=[];for(var h=0;h<e.length;h++)t.seriesX.push(i);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(i.length===0){i=t.axisCharts?[]:t.series.map(function(p,g){return g+1});for(var u=0;u<e.length;u++)t.seriesX.push(i)}t.labels=i,s.xaxis.convertedCatToNumeric&&(t.categoryLabels=i.map(function(p){return s.xaxis.labels.formatter(p)})),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,s=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),s.chart.stacked){var a=new oe(this.ctx);i.series=a.setNullSeriesToZeroValues(i.series)}this.coreUtils.getSeriesTotals(),i.axisCharts&&(i.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals()),this.coreUtils.getPercentSeries(),i.dataFormatXNumeric||i.isXNumeric&&(s.xaxis.type!=="numeric"||s.labels.length!==0||s.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);for(var n=this.coreUtils.getCategoryLabels(i.labels),o=0;o<n.length;o++)if(Array.isArray(n[o])){i.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this,t=this.w;t.globals.ignoreYAxisIndexes=t.globals.collapsedSeries.map(function(s,i){if(e.w.globals.isMultipleYAxis&&!t.config.chart.stacked)return s.index})}}]),E}(),xe=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"getLabel",value:function(e,t,s,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",o=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],l=this.w,h=e[i]===void 0?"":e[i],u=h,p=l.globals.xLabelFormatter,g=l.config.xaxis.labels.formatter,m=!1,y=new pe(this.ctx),k=h;o&&(u=y.xLabelFormat(p,h,k,{i,dateFormatter:new Q(this.ctx).formatDate,w:l}),g!==void 0&&(u=g(h,e[i],{i,dateFormatter:new Q(this.ctx).formatDate,w:l})));var _,D;t.length>0?(_=t[i].unit,D=null,t.forEach(function(w){w.unit==="month"?D="year":w.unit==="day"?D="month":w.unit==="hour"?D="day":w.unit==="minute"&&(D="hour")}),m=D===_,s=t[i].position,u=t[i].value):l.config.xaxis.type==="datetime"&&g===void 0&&(u=""),u===void 0&&(u=""),u=Array.isArray(u)?u:u.toString();var I=new Y(this.ctx),c={};c=l.globals.rotateXLabels&&o?I.getTextRects(u,parseInt(n,10),null,"rotate(".concat(l.config.xaxis.labels.rotate," 0 0)"),!1):I.getTextRects(u,parseInt(n,10));var f=!l.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(u)&&(u.indexOf("NaN")===0||u.toLowerCase().indexOf("invalid")===0||u.toLowerCase().indexOf("infinity")>=0||a.indexOf(u)>=0&&f)&&(u=""),{x:s,text:u,textRect:c,isBold:m}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,s){var i=this.w,a=i.config.xaxis.tickAmount;return a==="dataPoints"&&(a=Math.round(i.globals.gridWidth/120)),a>s||e%Math.round(s/(a+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,s,i,a){var n=this.w;if(e===0&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===s-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&i.length>0){var o=a[a.length-1];t.x<o.textRect.width/(n.globals.rotateXLabels?Math.abs(n.config.xaxis.labels.rotate)/12:1.01)+o.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var s=this.w;return s.config.yaxis[e]&&s.config.yaxis[e].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(e){var t=this.w,s=new K(this.ctx);return!t.config.yaxis[e].show||!t.config.yaxis[e].showForNullSeries&&s.isSeriesNull(e)&&t.globals.collapsedSeriesIndices.indexOf(e)===-1}},{key:"getYAxisForeColor",value:function(e,t){var s=this.w;return Array.isArray(e)&&s.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,s.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,s,i,a,n,o){var l=this.w,h=new Y(this.ctx),u=l.globals.translateY;if(i.show&&t>0){l.config.yaxis[a].opposite===!0&&(e+=i.width);for(var p=t;p>=0;p--){var g=u+t/10+l.config.yaxis[a].labels.offsetY-1;l.globals.isBarHorizontal&&(g=n*p),l.config.chart.type==="heatmap"&&(g+=n/2);var m=h.drawLine(e+s.offsetX-i.width+i.offsetX,g+i.offsetY,e+s.offsetX+i.offsetX,g+i.offsetY,i.color);o.add(m),u+=n}}}}]),E}(),Oe=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"scaleSvgNode",value:function(e,t){var s=parseFloat(e.getAttributeNS(null,"width")),i=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",s*t),e.setAttributeNS(null,"height",i*t),e.setAttributeNS(null,"viewBox","0 0 "+s+" "+i)}},{key:"fixSvgStringForIe11",value:function(e){if(!R.isIE11())return e.replace(/ /g," ");var t=0,s=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 s=(s=s.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 s=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(s,e),t=new XMLSerializer().serializeToString(s)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),s=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(a){a.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),s&&s[0]&&(s[0].setAttribute("y",-100),s[0].setAttribute("y1",-100),s[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(s){var i=t.w,a=e?e.scale||e.width/i.globals.svgWidth:1;t.cleanup();var n=document.createElement("canvas");n.width=i.globals.svgWidth*a,n.height=parseInt(i.globals.dom.elWrap.style.height,10)*a;var o=i.config.chart.background==="transparent"?"#fff":i.config.chart.background,l=n.getContext("2d");l.fillStyle=o,l.fillRect(0,0,n.width*a,n.height*a);var h=t.getSvgString(a);if(window.canvg&&R.isIE11()){var u=window.canvg.Canvg.fromString(l,h,{ignoreClear:!0,ignoreDimensions:!0});u.start();var p=n.msToBlob();u.stop(),s({blob:p})}else{var g="data:image/svg+xml,"+encodeURIComponent(h),m=new Image;m.crossOrigin="anonymous",m.onload=function(){if(l.drawImage(m,0,0),n.msToBlob){var y=n.msToBlob();s({blob:y})}else{var k=n.toDataURL("image/png");s({imgURI:k})}},m.src=g}})}},{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 s=t.imgURI,i=t.blob;i?navigator.msSaveOrOpenBlob(i,e.w.globals.chartID+".png"):e.triggerDownload(s,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,s=e.series,i=e.fileName,a=e.columnDelimiter,n=a===void 0?",":a,o=e.lineDelimiter,l=o===void 0?`
|
|
43
|
+
`:o,h=this.w;s||(s=h.config.series);var u=[],p=[],g="",m=h.globals.series.map(function(c,f){return h.globals.collapsedSeriesIndices.indexOf(f)===-1?c:[]}),y=Math.max.apply(Math,q(s.map(function(c){return c.data?c.data.length:0}))),k=new Le(this.ctx),_=new xe(this.ctx),D=function(c){var f="";if(h.globals.axisCharts){if(h.config.xaxis.type==="category"||h.config.xaxis.convertedCatToNumeric)if(h.globals.isBarHorizontal){var w=h.globals.yLabelFormatters[0],L=new oe(t.ctx).getActiveConfigSeriesIndex();f=w(h.globals.labels[c],{seriesIndex:L,dataPointIndex:c,w:h})}else f=_.getLabel(h.globals.labels,h.globals.timescaleLabels,0,c).text;h.config.xaxis.type==="datetime"&&(h.config.xaxis.categories.length?f=h.config.xaxis.categories[c]:h.config.labels.length&&(f=h.config.labels[c]))}else f=h.config.labels[c];return Array.isArray(f)&&(f=f.join(" ")),R.isNumber(f)?f:f.split(n).join("")},I=function(c,f){if(u.length&&f===0&&p.push(u.join(n)),c.data){c.data=c.data.length&&c.data||q(Array(y)).map(function(){return""});for(var w=0;w<c.data.length;w++){u=[];var L=D(w);if(L||(k.isFormatXY()?L=s[f].data[w].x:k.isFormat2DArray()&&(L=s[f].data[w]?s[f].data[w][0]:"")),f===0){u.push((F=L,h.config.xaxis.type==="datetime"&&String(F).length>=10?h.config.chart.toolbar.export.csv.dateFormatter(L):R.isNumber(L)?L:L.split(n).join("")));for(var z=0;z<h.globals.series.length;z++){var M;k.isFormatXY()?u.push((M=s[z].data[w])===null||M===void 0?void 0:M.y):u.push(m[z][w])}}(h.config.chart.type==="candlestick"||c.type&&c.type==="candlestick")&&(u.pop(),u.push(h.globals.seriesCandleO[f][w]),u.push(h.globals.seriesCandleH[f][w]),u.push(h.globals.seriesCandleL[f][w]),u.push(h.globals.seriesCandleC[f][w])),(h.config.chart.type==="boxPlot"||c.type&&c.type==="boxPlot")&&(u.pop(),u.push(h.globals.seriesCandleO[f][w]),u.push(h.globals.seriesCandleH[f][w]),u.push(h.globals.seriesCandleM[f][w]),u.push(h.globals.seriesCandleL[f][w]),u.push(h.globals.seriesCandleC[f][w])),h.config.chart.type==="rangeBar"&&(u.pop(),u.push(h.globals.seriesRangeStart[f][w]),u.push(h.globals.seriesRangeEnd[f][w])),u.length&&p.push(u.join(n))}}var F};u.push(h.config.chart.toolbar.export.csv.headerCategory),h.config.chart.type==="boxPlot"?(u.push("minimum"),u.push("q1"),u.push("median"),u.push("q3"),u.push("maximum")):h.config.chart.type==="candlestick"?(u.push("open"),u.push("high"),u.push("low"),u.push("close")):h.config.chart.type==="rangeBar"?(u.push("minimum"),u.push("maximum")):s.map(function(c,f){var w=(c.name?c.name:"series-".concat(f))+"";h.globals.axisCharts&&u.push(w.split(n).join("")?w.split(n).join(""):"series-".concat(f))}),h.globals.axisCharts||(u.push(h.config.chart.toolbar.export.csv.headerValue),p.push(u.join(n))),s.map(function(c,f){h.globals.axisCharts?I(c,f):((u=[]).push(h.globals.labels[f].split(n).join("")),u.push(m[f]),p.push(u.join(n)))}),g+=p.join(l),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+g),i||h.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,s){var i=document.createElement("a");i.href=e,i.download=(t||this.w.globals.chartID)+s,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}]),E}(),Xe=function(){function E(e,t){C(this,E),this.ctx=e,this.elgrid=t,this.w=e.w;var s=this.w;this.axesUtils=new xe(e),this.xaxisLabels=s.globals.labels.slice(),s.globals.timescaleLabels.length>0&&!s.globals.isBarHorizontal&&(this.xaxisLabels=s.globals.timescaleLabels.slice()),s.config.xaxis.overwriteCategories&&(this.xaxisLabels=s.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],s.config.xaxis.position==="top"?this.offY=0:this.offY=s.globals.gridHeight+1,this.offY=this.offY+s.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=s.config.chart.type==="bar"&&s.config.plotOptions.bar.horizontal,this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.xaxisBorderWidth=s.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=s.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=s.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=s.config.xaxis.axisBorder.height,this.yaxis=s.config.yaxis[0]}return S(E,[{key:"drawXaxis",value:function(){var e=this.w,t=new Y(this.ctx),s=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,")")});s.add(i);for(var a=[],n=0;n<this.xaxisLabels.length;n++)a.push(this.xaxisLabels[n]);if(this.drawXAxisLabelAndGroup(!0,t,i,a,e.globals.isXNumeric,function(y,k){return k}),e.globals.hasXaxisGroups){var o=e.globals.groups;a=[];for(var l=0;l<o.length;l++)a.push(o[l].title);var h={};e.config.xaxis.group.style&&(h.xaxisFontSize=e.config.xaxis.group.style.fontSize,h.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,h.xaxisForeColors=e.config.xaxis.group.style.colors,h.fontWeight=e.config.xaxis.group.style.fontWeight,h.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,i,a,!1,function(y,k){return o[y].cols*k},h)}if(e.config.xaxis.title.text!==void 0){var u=t.group({class:"apexcharts-xaxis-title"}),p=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});u.add(p),s.add(u)}if(e.config.xaxis.axisBorder.show){var g=e.globals.barPadForNumericAxis,m=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-g,this.offY,this.xaxisBorderWidth+g,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(m):s.add(m)}return s}},{key:"drawXAxisLabelAndGroup",value:function(e,t,s,i,a,n){var o,l=this,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},u=[],p=[],g=this.w,m=h.xaxisFontSize||this.xaxisFontSize,y=h.xaxisFontFamily||this.xaxisFontFamily,k=h.xaxisForeColors||this.xaxisForeColors,_=h.fontWeight||g.config.xaxis.labels.style.fontWeight,D=h.cssClass||g.config.xaxis.labels.style.cssClass,I=g.globals.padHorizontal,c=i.length,f=g.config.xaxis.type==="category"?g.globals.dataPoints:c;if(f===0&&c>f&&(f=c),a){var w=f>1?f-1:f;o=g.globals.gridWidth/w,I=I+n(0,o)/2+g.config.xaxis.labels.offsetX}else o=g.globals.gridWidth/f,I=I+n(0,o)+g.config.xaxis.labels.offsetX;for(var L=function(M){var F=I-n(M,o)/2+g.config.xaxis.labels.offsetX;M===0&&c===1&&o/2===I&&f===1&&(F=g.globals.gridWidth/2);var V=l.axesUtils.getLabel(i,g.globals.timescaleLabels,F,M,u,m,e),W=28;if(g.globals.rotateXLabels&&e&&(W=22),g.config.xaxis.title.text&&g.config.xaxis.position==="top"&&(W+=parseFloat(g.config.xaxis.title.style.fontSize)+2),e||(W=W+parseFloat(m)+(g.globals.xAxisLabelsHeight-g.globals.xAxisGroupLabelsHeight)+(g.globals.rotateXLabels?10:0)),V=g.config.xaxis.tickAmount!==void 0&&g.config.xaxis.tickAmount!=="dataPoints"&&g.config.xaxis.type!=="datetime"?l.axesUtils.checkLabelBasedOnTickamount(M,V,c):l.axesUtils.checkForOverflowingLabels(M,V,c,u,p),g.config.xaxis.labels.show){var j=t.drawText({x:V.x,y:l.offY+g.config.xaxis.labels.offsetY+W-(g.config.xaxis.position==="top"?g.globals.xAxisHeight+g.config.xaxis.axisTicks.height-2:0),text:V.text,textAnchor:"middle",fontWeight:V.isBold?600:_,fontSize:m,fontFamily:y,foreColor:Array.isArray(k)?e&&g.config.xaxis.convertedCatToNumeric?k[g.globals.minX+M-1]:k[M]:k,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+D});if(s.add(j),j.on("click",function(Z){if(typeof g.config.chart.events.xAxisLabelClick=="function"){var se=Object.assign({},g,{labelIndex:M});g.config.chart.events.xAxisLabelClick(Z,l.ctx,se)}}),e){var G=document.createElementNS(g.globals.SVGNS,"title");G.textContent=Array.isArray(V.text)?V.text.join(" "):V.text,j.node.appendChild(G),V.text!==""&&(u.push(V.text),p.push(V))}}M<c-1&&(I+=n(M+1,o))},z=0;z<=c-1;z++)L(z)}},{key:"drawXaxisInversed",value:function(e){var t,s,i=this,a=this.w,n=new Y(this.ctx),o=a.config.yaxis[0].opposite?a.globals.translateYAxisX[e]:0,l=n.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),h=n.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});l.add(h);var u=[];if(a.config.yaxis[e].show)for(var p=0;p<this.xaxisLabels.length;p++)u.push(this.xaxisLabels[p]);t=a.globals.gridHeight/u.length,s=-t/2.2;var g=a.globals.yLabelFormatters[0],m=a.config.yaxis[0].labels;if(m.show)for(var y=function(w){var L=u[w]===void 0?"":u[w];L=g(L,{seriesIndex:e,dataPointIndex:w,w:a});var z=i.axesUtils.getYAxisForeColor(m.style.colors,e),M=0;Array.isArray(L)&&(M=L.length/2*parseInt(m.style.fontSize,10));var F=m.offsetX-15,V="end";i.yaxis.opposite&&(V="start"),a.config.yaxis[0].labels.align==="left"?(F=m.offsetX,V="start"):a.config.yaxis[0].labels.align==="center"?(F=m.offsetX,V="middle"):a.config.yaxis[0].labels.align==="right"&&(V="end");var W=n.drawText({x:F,y:s+t+m.offsetY-M,text:L,textAnchor:V,foreColor:Array.isArray(z)?z[w]:z,fontSize:m.style.fontSize,fontFamily:m.style.fontFamily,fontWeight:m.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+m.style.cssClass,maxWidth:m.maxWidth});h.add(W),W.on("click",function(Z){if(typeof a.config.chart.events.xAxisLabelClick=="function"){var se=Object.assign({},a,{labelIndex:w});a.config.chart.events.xAxisLabelClick(Z,i.ctx,se)}});var j=document.createElementNS(a.globals.SVGNS,"title");if(j.textContent=Array.isArray(L)?L.join(" "):L,W.node.appendChild(j),a.config.yaxis[e].labels.rotate!==0){var G=n.rotateAroundCenter(W.node);W.node.setAttribute("transform","rotate(".concat(a.config.yaxis[e].labels.rotate," 0 ").concat(G.y,")"))}s+=t},k=0;k<=u.length-1;k++)y(k);if(a.config.yaxis[0].title.text!==void 0){var _=n.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),D=n.drawText({x:a.config.yaxis[0].title.offsetX,y:a.globals.gridHeight/2+a.config.yaxis[0].title.offsetY,text:a.config.yaxis[0].title.text,textAnchor:"middle",foreColor:a.config.yaxis[0].title.style.color,fontSize:a.config.yaxis[0].title.style.fontSize,fontWeight:a.config.yaxis[0].title.style.fontWeight,fontFamily:a.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[0].title.style.cssClass});_.add(D),l.add(_)}var I=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(I=a.globals.gridWidth);var c=a.config.xaxis.axisBorder;if(c.show){var f=n.drawLine(a.globals.padHorizontal+c.offsetX+I,1+c.offsetY,a.globals.padHorizontal+c.offsetX+I,a.globals.gridHeight+c.offsetY,c.color,0);this.elgrid&&this.elgrid.elGridBorders&&a.config.grid.show?this.elgrid.elGridBorders.add(f):l.add(f)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(I,u.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,t,l),l}},{key:"drawXaxisTicks",value:function(e,t,s){var i=this.w,a=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 o=new Y(this.ctx).drawLine(e+i.config.xaxis.axisTicks.offsetX,n+i.config.xaxis.offsetY,a+i.config.xaxis.axisTicks.offsetX,t+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);s.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],s=this.xaxisLabels.length,i=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var a=0;a<s;a++)i=this.xaxisLabels[a].position,t.push(i);else for(var n=s,o=0;o<n;o++){var l=n;e.globals.isXNumeric&&e.config.chart.type!=="bar"&&(l-=1),i+=e.globals.gridWidth/l,t.push(i)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new Y(this.ctx),s=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)"),a=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 o=0;o<i.length;o++){var l=t.rotateAroundCenter(i[o]);l.y=l.y-1,l.x=l.x+1,i[o].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(l.x," ").concat(l.y,")")),i[o].setAttribute("text-anchor","end"),s.setAttribute("transform","translate(0, ".concat(-10,")"));var h=i[o].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(h,function(m){t.placeTextWithEllipsis(m,m.textContent,e.globals.xAxisLabelsHeight-(e.config.legend.position==="bottom"?20:10))})}else(function(){for(var m=e.globals.gridWidth/(e.globals.labels.length+1),y=0;y<i.length;y++){var k=i[y].childNodes;e.config.xaxis.labels.trim&&e.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(k,function(_){t.placeTextWithEllipsis(_,_.textContent,m)})}})();if(a.length>0){var u=a[a.length-1].getBBox(),p=a[0].getBBox();u.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),p.x+p.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var g=0;g<n.length;g++)t.placeTextWithEllipsis(n[g],n[g].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}(),Ze=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisLabels=t.globals.labels.slice(),this.axesUtils=new xe(e),this.isRangeBar=t.globals.seriesRange.length&&t.globals.isBarHorizontal,t.globals.timescaleLabels.length>0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return S(E,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,s=new Y(this.ctx);e===null&&(e=s.group({class:"apexcharts-grid"}));var i=s.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),a=s.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(a),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,s=new Y(this.ctx),i=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var a=0;e.config.stroke.width.forEach(function(p){a=Math.max(a,p)}),i=a}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,o=0,l=0;(n==="bar"||n==="rangeBar"||n==="candlestick"||n==="boxPlot"||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=e.config.grid.padding.left,l=e.config.grid.padding.right,t.barPadForNumericAxis>o&&(o=t.barPadForNumericAxis,l=t.barPadForNumericAxis)),t.dom.elGridRect=s.drawRect(-i/2-o-2,-i/2,t.gridWidth+i+l+o+4,t.gridHeight+i,0,"#fff");var h=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=s.drawRect(2*-h,2*-h,t.gridWidth+4*h,t.gridHeight+4*h,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var u=t.dom.baseEl.querySelector("defs");u.appendChild(t.dom.elGridRectMask),u.appendChild(t.dom.elForecastMask),u.appendChild(t.dom.elNonForecastMask),u.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,s=e.x1,i=e.y1,a=e.x2,n=e.y2,o=e.xCount,l=e.parent,h=this.w;if(!(t===0&&h.globals.skipFirstTimelinelabel||t===o-1&&h.globals.skipLastTimelinelabel&&!h.config.xaxis.labels.formatter||h.config.chart.type==="radar")){h.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:s,y1:i,x2:a,y2:n,xCount:o,parent:l});var u=0;if(h.globals.hasXaxisGroups&&h.config.xaxis.tickPlacement==="between"){var p=h.globals.groups;if(p){for(var g=0,m=0;g<t&&m<p.length;m++)g+=p[m].cols;g===t&&(u=.6*h.globals.xAxisLabelsHeight)}}new Xe(this.ctx).drawXaxisTicks(s,u,h.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,s=e.x1,i=e.y1,a=e.x2,n=e.y2,o=e.xCount,l=e.parent,h=this.w,u=!1,p=l.node.classList.contains("apexcharts-gridlines-horizontal"),g=h.config.grid.strokeDashArray,m=h.globals.barPadForNumericAxis;(i===0&&n===0||s===0&&a===0)&&(u=!0),i===h.globals.gridHeight&&n===h.globals.gridHeight&&(u=!0),!h.globals.isBarHorizontal||t!==0&&t!==o-1||(u=!0);var y=new Y(this).drawLine(s-(p?m:0),i,a+(p?m:0),n,h.config.grid.borderColor,g);y.node.classList.add("apexcharts-gridline"),u&&h.config.grid.show?this.elGridBorders.add(y):l.add(y)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,s=e.x1,i=e.y1,a=e.x2,n=e.y2,o=e.type,l=this.w,h=new Y(this.ctx),u=l.globals.barPadForNumericAxis;if(o!=="column"||l.config.xaxis.type!=="datetime"){var p=l.config.grid[o].colors[t],g=h.drawRect(s-(o==="row"?u:0),i,a+(o==="row"?2*u:0),n,0,p,l.config.grid[o].opacity);this.elg.add(g),g.attr("clip-path","url(#gridRectMask".concat(l.globals.cuid,")")),g.node.classList.add("apexcharts-grid-".concat(o))}}},{key:"_drawXYLines",value:function(e){var t=this,s=e.xCount,i=e.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var n,o=a.globals.padHorizontal,l=a.globals.gridHeight;a.globals.timescaleLabels.length?function(y){for(var k=y.xC,_=y.x1,D=y.y1,I=y.x2,c=y.y2,f=0;f<k;f++)_=t.xaxisLabels[f].position,I=t.xaxisLabels[f].position,t._drawGridLines({i:f,x1:_,y1:D,x2:I,y2:c,xCount:s,parent:t.elgridLinesV})}({xC:s,x1:o,y1:0,x2:n,y2:l}):(a.globals.isXNumeric&&(s=a.globals.xAxisScale.result.length),function(y){for(var k=y.xC,_=y.x1,D=y.y1,I=y.x2,c=y.y2,f=0;f<k+(a.globals.isXNumeric?0:1);f++)f===0&&k===1&&a.globals.dataPoints===1&&(I=_=a.globals.gridWidth/2),t._drawGridLines({i:f,x1:_,y1:D,x2:I,y2:c,xCount:s,parent:t.elgridLinesV}),I=_+=a.globals.gridWidth/(a.globals.isXNumeric?k-1:k)}({xC:s,x1:o,y1:0,x2:n,y2:l}))}if(a.config.grid.yaxis.lines.show){var h=0,u=0,p=a.globals.gridWidth,g=i+1;this.isRangeBar&&(g=a.globals.labels.length);for(var m=0;m<g+(this.isRangeBar?1:0);m++)this._drawGridLine({i:m,xCount:g+(this.isRangeBar?1:0),x1:0,y1:h,x2:p,y2:u,parent:this.elgridLinesH}),u=h+=a.globals.gridHeight/(this.isRangeBar?g:i)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,s=this.w;if(s.config.grid.xaxis.lines.show||s.config.xaxis.axisTicks.show)for(var i,a=s.globals.padHorizontal,n=s.globals.gridHeight,o=0;o<t+1;o++)s.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:t+1,x1:a,y1:0,x2:i,y2:n,parent:this.elgridLinesV}),new Xe(this.ctx).drawXaxisTicks(a,0,s.globals.dom.elGraphical),i=a=a+s.globals.gridWidth/t+.3;if(s.config.grid.yaxis.lines.show)for(var l=0,h=0,u=s.globals.gridWidth,p=0;p<s.globals.dataPoints+1;p++)this._drawGridLine({i:p,xCount:s.globals.dataPoints+1,x1:0,y1:l,x2:u,y2:h,parent:this.elgridLinesH}),h=l+=s.globals.gridHeight/s.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=new Y(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 s,i=e.globals.yAxisScale.length?e.globals.yAxisScale[0].result.length-1:5,a=0;a<e.globals.series.length&&(e.globals.yAxisScale[a]!==void 0&&(i=e.globals.yAxisScale[a].result.length-1),!(i>2));a++);return!e.globals.isBarHorizontal||this.isRangeBar?(s=this.xaxisLabels.length,this.isRangeBar&&(s--,i=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(s=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:s,tickAmount:i})):(s=i,i=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:s,tickAmount:i})),this.drawGridBands(s,i),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.globals.gridWidth/s}}},{key:"drawGridBands",value:function(e,t){var s=this.w;if(s.config.grid.row.colors!==void 0&&s.config.grid.row.colors.length>0)for(var i=0,a=s.globals.gridHeight/t,n=s.globals.gridWidth,o=0,l=0;o<t;o++,l++)l>=s.config.grid.row.colors.length&&(l=0),this._drawGridBandRect({c:l,x1:0,y1:i,x2:n,y2:a,type:"row"}),i+=s.globals.gridHeight/t;if(s.config.grid.column.colors!==void 0&&s.config.grid.column.colors.length>0)for(var h=s.globals.isBarHorizontal||s.config.xaxis.type!=="category"&&!s.config.xaxis.convertedCatToNumeric?e:e-1,u=s.globals.padHorizontal,p=s.globals.padHorizontal+s.globals.gridWidth/h,g=s.globals.gridHeight,m=0,y=0;m<e;m++,y++)y>=s.config.grid.column.colors.length&&(y=0),this._drawGridBandRect({c:y,x1:u,y1:0,x2:p,y2:g,type:"column"}),u+=s.globals.gridWidth/h}}]),E}(),He=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"niceScale",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,n=this.w,o=Math.abs(t-e);if((s=this._adjustTicksForSmallRange(s,i,o))==="dataPoints"&&(s=n.globals.dataPoints-1),e===Number.MIN_VALUE&&t===0||!R.isNumber(e)&&!R.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)return e=0,t=s,this.linearScale(e,t,s);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 l=[];o<1&&a&&(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 h=s+1;h<2?h=2:h>2&&(h-=2);var u=o/h,p=Math.floor(R.log10(u)),g=Math.pow(10,p),m=Math.round(u/g);m<1&&(m=1);var y=m*g,k=y*Math.floor(e/y),_=y*Math.ceil(t/y),D=k;if(a&&o>2){for(;l.push(R.stripNumber(D,7)),!((D+=y)>_););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var I=e;(l=[]).push(R.stripNumber(I,7));for(var c=Math.abs(t-e)/s,f=0;f<=s;f++)I+=c,l.push(I);return l[l.length-2]>=t&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,i=arguments.length>3?arguments[3]:void 0,a=Math.abs(t-e);(s=this._adjustTicksForSmallRange(s,i,a))==="dataPoints"&&(s=this.w.globals.dataPoints-1);var n=a/s;s===Number.MAX_VALUE&&(s=10,n=1);for(var o=[],l=e;s>=0;)o.push(l),l+=n,s-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,s){t<=0&&(t=Math.max(e,s)),e<=0&&(e=Math.min(t,s));for(var i=[],a=Math.ceil(Math.log(t)/Math.log(s)+1),n=Math.floor(Math.log(e)/Math.log(s));n<a;n++)i.push(Math.pow(s,n));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}},{key:"logarithmicScale",value:function(e,t,s){t<=0&&(t=Math.max(e,s)),e<=0&&(e=Math.min(t,s));for(var i=[],a=Math.log(t)/Math.log(s),n=Math.log(e)/Math.log(s),o=a-n,l=Math.round(o),h=o/l,u=0,p=n;u<l;u++,p+=h)i.push(Math.pow(s,p));return i.push(Math.pow(s,a)),{result:i,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,s){var i=e;if(t!==void 0&&this.w.config.yaxis[t].labels.formatter&&this.w.config.yaxis[t].tickAmount===void 0){var a=Number(this.w.config.yaxis[t].labels.formatter(1));R.isNumber(a)&&this.w.globals.yValueDecimal===0&&(i=Math.ceil(s))}return i<e?i:e}},{key:"setYScaleForIndex",value:function(e,t,s){var i=this.w.globals,a=this.w.config,n=i.isBarHorizontal?a.xaxis:a.yaxis[e];i.yAxisScale[e]===void 0&&(i.yAxisScale[e]=[]);var o=Math.abs(s-t);if(n.logarithmic&&o<=5&&(i.invalidLogScale=!0),n.logarithmic&&o>5)i.allSeriesCollapsed=!1,i.yAxisScale[e]=this.logarithmicScale(t,s,n.logBase),i.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,s,n.logBase):this.logarithmicScale(t,s,n.logBase);else if(s!==-Number.MAX_VALUE&&R.isNumber(s))if(i.allSeriesCollapsed=!1,n.min===void 0&&n.max===void 0||n.forceNiceScale){var l=a.yaxis[e].max===void 0&&a.yaxis[e].min===void 0||a.yaxis[e].forceNiceScale;i.yAxisScale[e]=this.niceScale(t,s,n.tickAmount?n.tickAmount:o<5&&o>1?o+1:5,e,l)}else i.yAxisScale[e]=this.linearScale(t,s,n.tickAmount,e);else i.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var s=this.w,i=s.globals,a=s.config.xaxis,n=Math.abs(t-e);return t!==-Number.MAX_VALUE&&R.isNumber(t)?i.xAxisScale=this.linearScale(e,t,a.tickAmount?a.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,s=this.w.config,i=t.minYArr.concat([]),a=t.maxYArr.concat([]),n=[];s.yaxis.forEach(function(o,l){var h=l;s.series.forEach(function(g,m){g.name===o.seriesName&&(h=m,l!==m?n.push({index:m,similarIndex:l,alreadyExists:!0}):n.push({index:m}))});var u=i[h],p=a[h];e.setYScaleForIndex(l,u,p)}),this.sameScaleInMultipleAxes(i,a,n)}},{key:"sameScaleInMultipleAxes",value:function(e,t,s){var i=this,a=this.w.config,n=this.w.globals,o=[];s.forEach(function(k){k.alreadyExists&&(o[k.index]===void 0&&(o[k.index]=[]),o[k.index].push(k.index),o[k.index].push(k.similarIndex))}),n.yAxisSameScaleIndices=o,o.forEach(function(k,_){o.forEach(function(D,I){var c,f;_!==I&&(c=k,f=D,c.filter(function(w){return f.indexOf(w)!==-1})).length>0&&(o[_]=o[_].concat(o[I]))})});var l=o.map(function(k){return k.filter(function(_,D){return k.indexOf(_)===D})}).map(function(k){return k.sort()});o=o.filter(function(k){return!!k});var h=l.slice(),u=h.map(function(k){return JSON.stringify(k)});h=h.filter(function(k,_){return u.indexOf(JSON.stringify(k))===_});var p=[],g=[];e.forEach(function(k,_){h.forEach(function(D,I){D.indexOf(_)>-1&&(p[I]===void 0&&(p[I]=[],g[I]=[]),p[I].push({key:_,value:k}),g[I].push({key:_,value:t[_]}))})});var m=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),y=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);p.forEach(function(k,_){k.forEach(function(D,I){m[_]=Math.min(D.value,m[_])})}),g.forEach(function(k,_){k.forEach(function(D,I){y[_]=Math.max(D.value,y[_])})}),e.forEach(function(k,_){g.forEach(function(D,I){var c=m[I],f=y[I];a.chart.stacked&&(f=0,D.forEach(function(w,L){w.value!==-Number.MAX_VALUE&&(f+=w.value),c!==Number.MIN_VALUE&&(c+=p[I][L].value)})),D.forEach(function(w,L){D[L].key===_&&(a.yaxis[_].min!==void 0&&(c=typeof a.yaxis[_].min=="function"?a.yaxis[_].min(n.minY):a.yaxis[_].min),a.yaxis[_].max!==void 0&&(f=typeof a.yaxis[_].max=="function"?a.yaxis[_].max(n.maxY):a.yaxis[_].max),i.setYScaleForIndex(_,c,f))})})})}},{key:"autoScaleY",value:function(e,t,s){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 a=i.globals.seriesX[0],n=i.config.chart.stacked;return t.forEach(function(o,l){for(var h=0,u=0;u<a.length;u++)if(a[u]>=s.xaxis.min){h=u;break}var p,g,m=i.globals.minYArr[l],y=i.globals.maxYArr[l],k=i.globals.stackedSeriesTotals;i.globals.series.forEach(function(_,D){var I=_[h];n?(I=k[h],p=g=I,k.forEach(function(c,f){a[f]<=s.xaxis.max&&a[f]>=s.xaxis.min&&(c>g&&c!==null&&(g=c),_[f]<p&&_[f]!==null&&(p=_[f]))})):(p=g=I,_.forEach(function(c,f){if(a[f]<=s.xaxis.max&&a[f]>=s.xaxis.min){var w=c,L=c;i.globals.series.forEach(function(z,M){c!==null&&(w=Math.min(z[f],w),L=Math.max(z[f],L))}),L>g&&L!==null&&(g=L),w<p&&w!==null&&(p=w)}})),p===void 0&&g===void 0&&(p=m,g=y),g*=g<0?.9:1.1,(p*=p<0?1.1:.9)===0&&g===0&&(p=-1,g=1),g<0&&g<y&&(g=y),p<0&&p>m&&(p=m),t.length>1?(t[D].min=o.min===void 0?p:o.min,t[D].max=o.max===void 0?g:o.max):(t[0].min=o.min===void 0?p:o.min,t[0].max=o.max===void 0?g:o.max)})}),t}}]),E}(),ps=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.scales=new He(e)}return S(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,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.w.config,n=this.w.globals,o=-Number.MAX_VALUE,l=Number.MIN_VALUE;i===null&&(i=e+1);var h=n.series,u=h,p=h;a.chart.type==="candlestick"?(u=n.seriesCandleL,p=n.seriesCandleH):a.chart.type==="boxPlot"?(u=n.seriesCandleO,p=n.seriesCandleC):n.isRangeData&&(u=n.seriesRangeStart,p=n.seriesRangeEnd);for(var g=e;g<i;g++){n.dataPoints=Math.max(n.dataPoints,h[g].length),n.categoryLabels.length&&(n.dataPoints=n.categoryLabels.filter(function(k){return k!==void 0}).length),n.labels.length&&a.xaxis.type!=="datetime"&&n.series.reduce(function(k,_){return k+_.length},0)!==0&&(n.dataPoints=Math.max(n.dataPoints,n.labels.length));for(var m=0;m<n.series[g].length;m++){var y=h[g][m];y!==null&&R.isNumber(y)?(p[g][m]!==void 0&&(o=Math.max(o,p[g][m]),t=Math.min(t,p[g][m])),u[g][m]!==void 0&&(t=Math.min(t,u[g][m]),s=Math.max(s,u[g][m])),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[g][m]!==void 0&&(o=Math.max(o,n.seriesCandleO[g][m]),o=Math.max(o,n.seriesCandleH[g][m]),o=Math.max(o,n.seriesCandleL[g][m]),o=Math.max(o,n.seriesCandleC[g][m]),this.w.config.chart.type==="boxPlot"&&(o=Math.max(o,n.seriesCandleM[g][m]))),!a.series[g].type||a.series[g].type==="candlestick"&&a.series[g].type==="boxPlot"&&a.series[g].type==="rangeArea"&&a.series[g].type==="rangeBar"||(o=Math.max(o,n.series[g][m]),t=Math.min(t,n.series[g][m])),s=o),n.seriesGoals[g]&&n.seriesGoals[g][m]&&Array.isArray(n.seriesGoals[g][m])&&n.seriesGoals[g][m].forEach(function(k){l!==Number.MIN_VALUE&&(l=Math.min(l,k.value),t=l),o=Math.max(o,k.value),s=o}),R.isFloat(y)&&(y=R.noExponents(y),n.yValueDecimal=Math.max(n.yValueDecimal,y.toString().split(".")[1].length)),l>u[g][m]&&u[g][m]<0&&(l=u[g][m])):n.hasNullValues=!0}}return a.chart.type==="rangeBar"&&n.seriesRangeStart.length&&n.isBarHorizontal&&(l=t),a.chart.type==="bar"&&(l<0&&o<0&&(o=0),l===Number.MIN_VALUE&&(l=0)),{minY:l,maxY:o,lowestY:t,highestY:s}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var s=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var i=0;i<e.series.length;i++){var a=this.getMinYMaxY(i,s,null,i+1);e.minYArr.push(a.minY),e.maxYArr.push(a.maxY),s=a.lowestY}var n=this.getMinYMaxY(0,s,null,e.series.length);if(e.minY=n.minY,e.maxY=n.maxY,s=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&&s!==-Number.MAX_VALUE&&s!==e.maxY){var o=e.maxY-s;(s>=0&&s<=10||t.yaxis[0].min!==void 0||t.yaxis[0].max!==void 0)&&(o=0),e.minY=s-5*o/100,s>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*o/100}return t.yaxis.forEach(function(l,h){l.max!==void 0&&(typeof l.max=="number"?e.maxYArr[h]=l.max:typeof l.max=="function"&&(e.maxYArr[h]=l.max(e.isMultipleYAxis?e.maxYArr[h]:e.maxY)),e.maxY=e.maxYArr[h]),l.min!==void 0&&(typeof l.min=="number"?e.minYArr[h]=l.min:typeof l.min=="function"&&(e.minYArr[h]=l.min(e.isMultipleYAxis?e.minYArr[h]===Number.MIN_VALUE?0:e.minYArr[h]:e.minY)),e.minY=e.minYArr[h])}),e.isBarHorizontal&&["min","max"].forEach(function(l){t.xaxis[l]!==void 0&&typeof t.xaxis[l]=="number"&&(l==="min"?e.minY=t.xaxis[l]:e.maxY=t.xaxis[l])}),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=s,e.yAxisScale.forEach(function(l,h){e.minYArr[h]=l.niceMin,e.maxYArr[h]=l.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,s=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var o=0;o<e.series.length;o++)if(e.labels[o])for(var l=0;l<e.labels[o].length;l++)e.labels[o][l]!==null&&R.isNumber(e.labels[o][l])&&(e.maxX=Math.max(e.maxX,e.labels[o][l]),e.initialMaxX=Math.max(e.maxX,e.labels[o][l]),e.minX=Math.min(e.minX,e.labels[o][l]),e.initialMinX=Math.min(e.minX,e.labels[o][l]))}(),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 a=[],n=e.minX-1;n<e.maxX;n++)a.push(n+1);e.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.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());s&&(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 s=0;s<e.seriesZ[t].length;s++)e.seriesZ[t][s]!==null&&R.isNumber(e.seriesZ[t][s])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][s]),e.minZ=Math.min(e.minZ,e.seriesZ[t][s]))}}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var s=new Q(this.ctx);if(t.xaxis.type==="datetime"){var i=s.getDate(e.minX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()-2):i.setDate(i.getDate()-2),e.minX=new Date(i).getTime();var a=s.getDate(e.maxX);t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()+2):a.setDate(a.getDate()+2),e.maxX=new Date(a).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,s){t.length===1&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort(function(a,n){return a-n}),i.forEach(function(a,n){if(n>0){var o=a-i[n-1];o>0&&(e.minXDiff=Math.min(o,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 s=t.seriesGroups;s.length||(s=[this.w.config.series.map(function(n){return n.name})]);var i={},a={};s.forEach(function(n){i[n]=[],a[n]=[],e.w.config.series.map(function(o,l){return n.indexOf(o.name)>-1?l:null}).filter(function(o){return o!==null}).forEach(function(o){for(var l=0;l<t.series[t.maxValsInArrayIndex].length;l++)i[n][l]===void 0&&(i[n][l]=0,a[n][l]=0),t.series[o][l]!==null&&R.isNumber(t.series[o][l])&&(t.series[o][l]>0?i[n][l]+=parseFloat(t.series[o][l])+1e-4:a[n][l]+=parseFloat(t.series[o][l]))})}),Object.entries(i).forEach(function(n){var o=U(n,1)[0];i[o].forEach(function(l,h){t.maxY=Math.max(t.maxY,i[o][h]),t.minY=Math.min(t.minY,a[o][h])})})}}}]),E}(),gs=function(){function E(e,t){C(this,E),this.ctx=e,this.elgrid=t,this.w=e.w;var s=this.w;this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.axisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=s.config.chart.type==="bar"&&s.config.plotOptions.bar.horizontal,this.xAxisoffX=0,s.config.xaxis.position==="bottom"&&(this.xAxisoffX=s.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new xe(e)}return S(E,[{key:"drawYaxis",value:function(e){var t=this,s=this.w,i=new Y(this.ctx),a=s.config.yaxis[e].labels.style,n=a.fontSize,o=a.fontFamily,l=a.fontWeight,h=i.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+s.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return h;var u=i.group({class:"apexcharts-yaxis-texts-g"});h.add(u);var p=s.globals.yAxisScale[e].result.length-1,g=s.globals.gridHeight/p,m=s.globals.translateY,y=s.globals.yLabelFormatters[e],k=s.globals.yAxisScale[e].result.slice();k=this.axesUtils.checkForReversedLabels(e,k);var _="";if(s.config.yaxis[e].labels.show)for(var D=function(F){var V=k[F];V=y(V,F,s);var W=s.config.yaxis[e].labels.padding;s.config.yaxis[e].opposite&&s.config.yaxis.length!==0&&(W*=-1);var j="end";s.config.yaxis[e].opposite&&(j="start"),s.config.yaxis[e].labels.align==="left"?j="start":s.config.yaxis[e].labels.align==="center"?j="middle":s.config.yaxis[e].labels.align==="right"&&(j="end");var G=t.axesUtils.getYAxisForeColor(a.colors,e),Z=i.drawText({x:W,y:m+p/10+s.config.yaxis[e].labels.offsetY+1,text:V,textAnchor:j,fontSize:n,fontFamily:o,fontWeight:l,maxWidth:s.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(G)?G[F]:G,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+a.cssClass});F===p&&(_=Z),u.add(Z);var se=document.createElementNS(s.globals.SVGNS,"title");if(se.textContent=Array.isArray(V)?V.join(" "):V,Z.node.appendChild(se),s.config.yaxis[e].labels.rotate!==0){var ne=i.rotateAroundCenter(_.node),le=i.rotateAroundCenter(Z.node);Z.node.setAttribute("transform","rotate(".concat(s.config.yaxis[e].labels.rotate," ").concat(ne.x," ").concat(le.y,")"))}m+=g},I=p;I>=0;I--)D(I);if(s.config.yaxis[e].title.text!==void 0){var c=i.group({class:"apexcharts-yaxis-title"}),f=0;s.config.yaxis[e].opposite&&(f=s.globals.translateYAxisX[e]);var w=i.drawText({x:f,y:s.globals.gridHeight/2+s.globals.translateY+s.config.yaxis[e].title.offsetY,text:s.config.yaxis[e].title.text,textAnchor:"end",foreColor:s.config.yaxis[e].title.style.color,fontSize:s.config.yaxis[e].title.style.fontSize,fontWeight:s.config.yaxis[e].title.style.fontWeight,fontFamily:s.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+s.config.yaxis[e].title.style.cssClass});c.add(w),h.add(c)}var L=s.config.yaxis[e].axisBorder,z=31+L.offsetX;if(s.config.yaxis[e].opposite&&(z=-31-L.offsetX),L.show){var M=i.drawLine(z,s.globals.translateY+L.offsetY-2,z,s.globals.gridHeight+s.globals.translateY+L.offsetY+2,L.color,0,L.width);h.add(M)}return s.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(z,p,L,s.config.yaxis[e].axisTicks,e,g,h),h}},{key:"drawYaxisInversed",value:function(e){var t=this.w,s=new Y(this.ctx),i=s.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=s.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);var n=t.globals.yAxisScale[e].result.length-1,o=t.globals.gridWidth/n+.1,l=o+t.config.xaxis.labels.offsetX,h=t.globals.xLabelFormatter,u=t.globals.yAxisScale[e].result.slice(),p=t.globals.timescaleLabels;p.length>0&&(this.xaxisLabels=p.slice(),n=(u=p.slice()).length),u=this.axesUtils.checkForReversedLabels(e,u);var g=p.length;if(t.config.xaxis.labels.show)for(var m=g?0:n;g?m<g:m>=0;g?m++:m--){var y=u[m];y=h(y,m,t);var k=t.globals.gridWidth+t.globals.padHorizontal-(l-o+t.config.xaxis.labels.offsetX);if(p.length){var _=this.axesUtils.getLabel(u,p,k,m,this.drawnLabels,this.xaxisFontSize);k=_.x,y=_.text,this.drawnLabels.push(_.text),m===0&&t.globals.skipFirstTimelinelabel&&(y=""),m===u.length-1&&t.globals.skipLastTimelinelabel&&(y="")}var D=s.drawText({x:k,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:y,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});a.add(D),D.tspan(y);var I=document.createElementNS(t.globals.SVGNS,"title");I.textContent=y,D.node.appendChild(I),l+=o}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,s=new Y(this.ctx),i=t.config.xaxis.axisBorder;if(i.show){var a=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(a-=15);var n=s.drawLine(t.globals.padHorizontal+a+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,s=new Y(this.ctx);if(t.config.xaxis.title.text!==void 0){var i=s.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=s.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(a),e.add(i)}}},{key:"yAxisTitleRotate",value:function(e,t){var s=this.w,i=new Y(this.ctx),a={width:0,height:0},n={width:0,height:0},o=s.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));o!==null&&(a=o.getBoundingClientRect());var l=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(l!==null&&(n=l.getBoundingClientRect()),l!==null){var h=this.xPaddingForYAxisTitle(e,a,n,t);l.setAttribute("x",h.xPos-(t?10:0))}if(l!==null){var u=i.rotateAroundCenter(l);l.setAttribute("transform","rotate(".concat(t?-1*s.config.yaxis[e].title.rotate:s.config.yaxis[e].title.rotate," ").concat(u.x," ").concat(u.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,s,i){var a=this.w,n=0,o=0,l=10;return a.config.yaxis[e].title.text===void 0||e<0?{xPos:o,padd:0}:(i?(o=t.width+a.config.yaxis[e].title.offsetX+s.width/2+l/2,(n+=1)===0&&(o-=l/2)):(o=-1*t.width+a.config.yaxis[e].title.offsetX+l/2+s.width/2,a.globals.isBarHorizontal&&(l=25,o=-1*t.width-a.config.yaxis[e].title.offsetX-l)),{xPos:o,padd:l})}},{key:"setYAxisXPosition",value:function(e,t){var s=this.w,i=0,a=0,n=18,o=1;s.config.yaxis.length>1&&(this.multipleYs=!0),s.config.yaxis.map(function(l,h){var u=s.globals.ignoreYAxisIndexes.indexOf(h)>-1||!l.show||l.floating||e[h].width===0,p=e[h].width+t[h].width;l.opposite?s.globals.isBarHorizontal?(a=s.globals.gridWidth+s.globals.translateX-1,s.globals.translateYAxisX[h]=a-l.labels.offsetX):(a=s.globals.gridWidth+s.globals.translateX+o,u||(o=o+p+20),s.globals.translateYAxisX[h]=a-l.labels.offsetX+20):(i=s.globals.translateX-n,u||(n=n+p+20),s.globals.translateYAxisX[h]=i+l.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=R.listToArray(t)).forEach(function(s,i){var a=e.config.yaxis[i];if(a&&!a.floating&&a.labels.align!==void 0){var n=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));o=R.listToArray(o);var l=n.getBoundingClientRect();a.labels.align==="left"?(o.forEach(function(h,u){h.setAttribute("text-anchor","start")}),a.opposite||n.setAttribute("transform","translate(-".concat(l.width,", 0)"))):a.labels.align==="center"?(o.forEach(function(h,u){h.setAttribute("text-anchor","middle")}),n.setAttribute("transform","translate(".concat(l.width/2*(a.opposite?1:-1),", 0)"))):a.labels.align==="right"&&(o.forEach(function(h,u){h.setAttribute("text-anchor","end")}),a.opposite&&n.setAttribute("transform","translate(".concat(l.width,", 0)")))}})}}]),E}(),Wd=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.documentEvent=R.bind(this.documentEvent,this)}return S(E,[{key:"addEventListener",value:function(e,t){var s=this.w;s.globals.events.hasOwnProperty(e)?s.globals.events[e].push(t):s.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var s=this.w;if(s.globals.events.hasOwnProperty(e)){var i=s.globals.events[e].indexOf(t);i!==-1&&s.globals.events[e].splice(i,1)}}},{key:"fireEvent",value:function(e,t){var s=this.w;if(s.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var i=s.globals.events[e],a=i.length,n=0;n<a;n++)i[n].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,s=this.ctx,i=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(a){i.addEventListener(a,function(n){var o=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,s,o):n.type==="mouseleave"||n.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(n,s,o):(n.type==="mouseup"&&n.which===1||n.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(n,s,o),s.ctx.events.fireEvent("click",[n,s,o]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(a){t.globals.dom.baseEl.addEventListener(a,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,s=e.target.className;if(e.type==="click"){var i=t.globals.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&s!=="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}(),Gd=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(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 s=t.filter(function(a){return a.name===e})[0];if(!s)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var i=R.extend(ge,s);this.w.globals.locale=i.options}}]),E}(),jd=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"drawAxis",value:function(e,t){var s,i,a=this,n=this.w.globals,o=this.w.config,l=new Xe(this.ctx,t),h=new gs(this.ctx,t);n.axisCharts&&e!=="radar"&&(n.isBarHorizontal?(i=h.drawYaxisInversed(0),s=l.drawXaxisInversed(0),n.dom.elGraphical.add(s),n.dom.elGraphical.add(i)):(s=l.drawXaxis(),n.dom.elGraphical.add(s),o.yaxis.map(function(u,p){if(n.ignoreYAxisIndexes.indexOf(p)===-1&&(i=h.drawYaxis(p),n.dom.Paper.add(i),a.w.config.grid.position==="back")){var g=n.dom.Paper.children()[1];g.remove(),n.dom.Paper.add(g)}})))}}]),E}(),fs=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new Y(this.ctx),s=new ee(this.ctx),i=e.config.xaxis.crosshairs.fill.gradient,a=e.config.xaxis.crosshairs.dropShadow,n=e.config.xaxis.crosshairs.fill.type,o=i.colorFrom,l=i.colorTo,h=i.opacityFrom,u=i.opacityTo,p=i.stops,g=a.enabled,m=a.left,y=a.top,k=a.blur,_=a.color,D=a.opacity,I=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){n==="gradient"&&(I=t.drawGradient("vertical",o,l,h,u,null,p,null));var c=t.drawRect();e.config.xaxis.crosshairs.width===1&&(c=t.drawLine());var f=e.globals.gridHeight;(!R.isNumber(f)||f<0)&&(f=0);var w=e.config.xaxis.crosshairs.width;(!R.isNumber(w)||w<0)&&(w=0),c.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:f,width:w,height:f,fill:I,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}),g&&(c=s.dropShadow(c,{left:m,top:y,blur:k,color:_,opacity:D})),e.globals.dom.elGraphical.add(c)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new Y(this.ctx),s=e.config.yaxis[0].crosshairs,i=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var a=t.drawLine(-i,0,e.globals.gridWidth+i,0,s.stroke.color,s.stroke.dashArray,s.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(a)}var n=t.drawLine(-i,0,e.globals.gridWidth+i,0,s.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(n)}}]),E}(),Ud=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"checkResponsiveConfig",value:function(e){var t=this,s=this.w,i=s.config;if(i.responsive.length!==0){var a=i.responsive.slice();a.sort(function(h,u){return h.breakpoint>u.breakpoint?1:u.breakpoint>h.breakpoint?-1:0}).reverse();var n=new et({}),o=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a[0].breakpoint,p=window.innerWidth>0?window.innerWidth:screen.width;if(p>u){var g=K.extendArrayProps(n,s.globals.initialConfig,s);h=R.extend(g,h),h=R.extend(s.config,h),t.overrideResponsiveOptions(h)}else for(var m=0;m<a.length;m++)p<a[m].breakpoint&&(h=K.extendArrayProps(n,a[m].options,s),h=R.extend(s.config,h),t.overrideResponsiveOptions(h))};if(e){var l=K.extendArrayProps(n,e,s);l=R.extend(s.config,l),o(l=R.extend(l,e))}else o({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new et(e).init({responsiveOverride:!0});this.w.config=t}}]),E}(),Zd=function(){function E(e){C(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 S(E,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e,t=this,s=this.w,i=new R;if(s.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(s.config.theme.mode)),s.config.colors===void 0||((e=s.config.colors)===null||e===void 0?void 0:e.length)===0?s.globals.colors=this.predefined():(s.globals.colors=s.config.colors,Array.isArray(s.config.colors)&&s.config.colors.length>0&&typeof s.config.colors[0]=="function"&&(s.globals.colors=s.config.series.map(function(y,k){var _=s.config.colors[k];return _||(_=s.config.colors[0]),typeof _=="function"?(t.isColorFn=!0,_({value:s.globals.axisCharts?s.globals.series[k][0]?s.globals.series[k][0]:0:s.globals.series[k],seriesIndex:k,dataPointIndex:k,w:s})):_}))),s.globals.seriesColors.map(function(y,k){y&&(s.globals.colors[k]=y)}),s.config.theme.monochrome.enabled){var a=[],n=s.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(n=s.globals.series[0].length*s.globals.series.length);for(var o=s.config.theme.monochrome.color,l=1/(n/s.config.theme.monochrome.shadeIntensity),h=s.config.theme.monochrome.shadeTo,u=0,p=0;p<n;p++){var g=void 0;h==="dark"?(g=i.shadeColor(-1*u,o),u+=l):(g=i.shadeColor(u,o),u+=l),a.push(g)}s.globals.colors=a.slice()}var m=s.globals.colors.slice();this.pushExtraColors(s.globals.colors),["fill","stroke"].forEach(function(y){s.config[y].colors===void 0?s.globals[y].colors=t.isColorFn?s.config.colors:m:s.globals[y].colors=s.config[y].colors.slice(),t.pushExtraColors(s.globals[y].colors)}),s.config.dataLabels.style.colors===void 0?s.globals.dataLabels.style.colors=m:s.globals.dataLabels.style.colors=s.config.dataLabels.style.colors.slice(),this.pushExtraColors(s.globals.dataLabels.style.colors,50),s.config.plotOptions.radar.polygons.fill.colors===void 0?s.globals.radarPolygons.fill.colors=[s.config.theme.mode==="dark"?"#424242":"none"]:s.globals.radarPolygons.fill.colors=s.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(s.globals.radarPolygons.fill.colors,20),s.config.markers.colors===void 0?s.globals.markers.colors=m:s.globals.markers.colors=s.config.markers.colors.slice(),this.pushExtraColors(s.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=this.w,a=t||i.globals.series.length;if(s===null&&(s=this.isBarDistributed||this.isHeatmapDistributed||i.config.chart.type==="heatmap"&&i.config.plotOptions.heatmap.colorScale.inverse),s&&i.globals.series.length&&(a=i.globals.series[i.globals.maxValsInArrayIndex].length*i.globals.series.length),e.length<a)for(var n=a-e.length,o=0;o<n;o++)e.push(e[o])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",s=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=s,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}(),Jd=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,s=e==="title"?t.config.title:t.config.subtitle,i=t.globals.svgWidth/2,a=s.offsetY,n="middle";if(s.align==="left"?(i=10,n="start"):s.align==="right"&&(i=t.globals.svgWidth-10,n="end"),i+=s.offsetX,a=a+parseInt(s.style.fontSize,10)+s.margin/2,s.text!==void 0){var o=new Y(this.ctx).drawText({x:i,y:a,text:s.text,textAnchor:n,fontSize:s.style.fontSize,fontFamily:s.style.fontFamily,fontWeight:s.style.fontWeight,foreColor:s.style.color,opacity:1});o.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(o)}}}]),E}(),Qd=function(){function E(e){C(this,E),this.w=e.w,this.dCtx=e}return S(E,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,s=0,i=0,a=e==="title"?t.config.title.floating:t.config.subtitle.floating,n=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(n!==null&&!a){var o=n.getBoundingClientRect();s=o.width,i=t.globals.axisCharts?o.height+5:o.height}return{width:s,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 s=Object.assign({},R.getBoundingClientRect(t));return t!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:s.x,y:s.y,height:s.height,width:s.height===0?0:s.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 s=e;if(this.w.globals.isMultiLineX){var i=t.map(function(n,o){return Array.isArray(n)?n.length:1}),a=Math.max.apply(Math,q(i));s=t[i.indexOf(a)]}return s}}]),E}(),Kd=function(){function E(e){C(this,E),this.w=e.w,this.dCtx=e}return S(E,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,s=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&s.length===0&&(s=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 a=t.globals.xLabelFormatter,n=R.getLargestStringFromArr(s),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,s);t.globals.isBarHorizontal&&(o=n=t.globals.yAxisScale[0].result.reduce(function(y,k){return y.length>k.length?y:k},0));var l=new pe(this.dCtx.ctx),h=n;n=l.xLabelFormat(a,n,h,{i:void 0,dateFormatter:new Q(this.dCtx.ctx).formatDate,w:t}),o=l.xLabelFormat(a,o,h,{i:void 0,dateFormatter:new Q(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&n===void 0||String(n).trim()==="")&&(o=n="1");var u=new Y(this.dCtx.ctx),p=u.getTextRects(n,t.config.xaxis.labels.style.fontSize),g=p;if(n!==o&&(g=u.getTextRects(o,t.config.xaxis.labels.style.fontSize)),(e={width:p.width>=g.width?p.width:g.width,height:p.height>=g.height?p.height:g.height}).width*s.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 m=function(y){return u.getTextRects(y,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};p=m(n),n!==o&&(g=m(o)),e.height=(p.height>g.height?p.height:g.height)/1.5,e.width=p.width>g.width?p.width:g.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 s,i=((e=t.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,a=t.globals.groups.map(function(p){return p.title}),n=R.getLargestStringFromArr(a),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,a),l=new Y(this.dCtx.ctx),h=l.getTextRects(n,i),u=h;return n!==o&&(u=l.getTextRects(o,i)),s={width:h.width>=u.width?h.width:u.width,height:h.height>=u.height?h.height:u.height},t.config.xaxis.labels.show||(s={width:0,height:0}),{width:s.width,height:s.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,s=0;if(e.config.xaxis.title.text!==void 0){var i=new Y(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=i.width,s=i.height}return{width:t,height:s}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var s=this.dCtx.timescaleLabels.map(function(a){return a.value}),i=s.reduce(function(a,n){return a===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):a.length>n.length?a:n},0);return 1.05*(e=new Y(this.dCtx.ctx).getTextRects(i,t.config.xaxis.labels.style.fontSize)).width*s.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,s=this.w,i=s.globals,a=s.config,n=a.xaxis.type,o=e.width;i.skipLastTimelinelabel=!1,i.skipFirstTimelinelabel=!1;var l=s.config.yaxis[0].opposite&&s.globals.isBarHorizontal,h=function(u,p){a.yaxis.length>1&&function(g){return i.collapsedSeriesIndices.indexOf(g)!==-1}(p)||function(g){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var m=t.dCtx.timescaleLabels[0],y=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+o/1.75-t.dCtx.yAxisWidthRight,k=m.position-o/1.75+t.dCtx.yAxisWidthLeft,_=s.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;y>i.svgWidth-i.translateX-_&&(i.skipLastTimelinelabel=!0),k<-(g.show&&!g.floating||a.chart.type!=="bar"&&a.chart.type!=="candlestick"&&a.chart.type!=="rangeBar"&&a.chart.type!=="boxPlot"?10:o/1.75)&&(i.skipFirstTimelinelabel=!0)}else n==="datetime"?t.dCtx.gridPad.right<o&&!i.rotateXLabels&&(i.skipLastTimelinelabel=!0):n!=="datetime"&&t.dCtx.gridPad.right<o/2-t.dCtx.yAxisWidthRight&&!i.rotateXLabels&&!s.config.xaxis.labels.trim&&(s.config.xaxis.tickPlacement!=="between"||s.globals.isBarHorizontal)&&(t.dCtx.xPadRight=o/2+1)}(u)};a.yaxis.forEach(function(u,p){l?(t.dCtx.gridPad.left<o&&(t.dCtx.xPadLeft=o/2+1),t.dCtx.xPadRight=o/2+1):h(u,p)})}}]),E}(),qd=function(){function E(e){C(this,E),this.w=e.w,this.dCtx=e}return S(E,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,s=[],i=10,a=new xe(this.dCtx.ctx);return t.config.yaxis.map(function(n,o){var l=t.globals.yAxisScale[o],h=0;if(!a.isYAxisHidden(o)&&n.labels.show&&n.labels.minWidth!==void 0&&(h=n.labels.minWidth),!a.isYAxisHidden(o)&&n.labels.show&&l.result.length){var u=t.globals.yLabelFormatters[o],p=l.niceMin===Number.MIN_VALUE?0:l.niceMin,g=String(p).length>String(l.niceMax).length?p:l.niceMax,m=u(g,{seriesIndex:o,dataPointIndex:-1,w:t}),y=m;if(m!==void 0&&m.length!==0||(m=g),t.globals.isBarHorizontal){i=0;var k=t.globals.labels.slice();m=u(m=R.getLargestStringFromArr(k),{seriesIndex:o,dataPointIndex:-1,w:t}),y=e.dCtx.dimHelpers.getLargestStringFromMultiArr(m,k)}var _=new Y(e.dCtx.ctx),D="rotate(".concat(n.labels.rotate," 0 0)"),I=_.getTextRects(m,n.labels.style.fontSize,n.labels.style.fontFamily,D,!1),c=I;m!==y&&(c=_.getTextRects(y,n.labels.style.fontSize,n.labels.style.fontFamily,D,!1)),s.push({width:(h>c.width||h>I.width?h:c.width>I.width?c.width:I.width)+i,height:c.height>I.height?c.height:I.height})}else s.push({width:0,height:0})}),s}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,s=[];return t.config.yaxis.map(function(i,a){if(i.show&&i.title.text!==void 0){var n=new Y(e.dCtx.ctx),o="rotate(".concat(i.title.rotate," 0 0)"),l=n.getTextRects(i.title.text,i.title.style.fontSize,i.title.style.fontFamily,o,!1);s.push({width:l.width,height:l.height})}else s.push({width:0,height:0})}),s}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,s=0,i=0,a=e.globals.yAxisScale.length>1?10:0,n=new xe(this.dCtx.ctx),o=function(l,h){var u=e.config.yaxis[h].floating,p=0;l.width>0&&!u?(p=l.width+a,function(g){return e.globals.ignoreYAxisIndexes.indexOf(g)>-1}(h)&&(p=p-l.width-a)):p=u||n.isYAxisHidden(h)?0:5,e.config.yaxis[h].opposite?i+=p:s+=p,t+=p};return e.globals.yLabelsCoords.map(function(l,h){o(l,h)}),e.globals.yTitleCoords.map(function(l,h){o(l,h)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=s,this.dCtx.yAxisWidthRight=i,t}}]),E}(),$d=function(){function E(e){C(this,E),this.w=e.w,this.dCtx=e}return S(E,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var s=function(u){return u==="bar"||u==="rangeBar"||u==="candlestick"||u==="boxPlot"},i=t.config.chart.type,a=0,n=s(i)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(n=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(u){s(u.type)&&(n-=1)}),t.config.chart.stacked&&(n=1),(s(i)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&n>0){var o,l,h=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);h<=3&&(h=t.globals.dataPoints),o=h/e,t.globals.minXDiff&&t.globals.minXDiff/o>0&&(l=t.globals.minXDiff/o),l>e/2&&(l/=2),(a=l/n*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(a=1),a=a/(n>1?1:1.5)+5,t.globals.barPadForNumericAxis=a}return a}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,s=t.globals,i=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(o){t.config[o].text!==void 0?i+=t.config[o].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 a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");s.gridHeight=s.gridHeight-a.height-n.height-i,s.translateY=s.translateY+a.height+n.height+i}},{key:"setGridXPosForDualYAxis",value:function(e,t){var s=this.w,i=new xe(this.dCtx.ctx);s.config.yaxis.map(function(a,n){s.globals.ignoreYAxisIndexes.indexOf(n)!==-1||a.floating||i.isYAxisHidden(n)||(a.opposite&&(s.globals.translateX=s.globals.translateX-(t[n].width+e[n].width)-parseInt(s.config.yaxis[n].labels.style.fontSize,10)/1.2-12),s.globals.translateX<2&&(s.globals.translateX=2))})}}]),E}(),Bt=function(){function E(e){C(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 Qd(this),this.dimYAxis=new qd(this),this.dimXAxis=new Kd(this),this.dimGrid=new $d(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return S(E,[{key:"plotCoords",value:function(){var e=this,t=this.w,s=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(a){var n=U(a,2),o=n[0],l=n[1];e.gridPad[o]=Math.max(l,e.w.globals.markers.largestSize/1.5)}),s.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),s.gridHeight=s.gridHeight-this.gridPad.top-this.gridPad.bottom,s.gridWidth=s.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(s.gridWidth);s.gridWidth=s.gridWidth-2*i,s.translateX=s.translateX+this.gridPad.left+this.xPadLeft+(i>0?i+4:0),s.translateY=s.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,s=t.globals,i=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(m,y){t.globals.yLabelsCoords.push({width:i[y].width,index:y}),t.globals.yTitleCoords.push({width:a[y].width,index:y})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),l=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,l,o),s.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,s.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(s.rotateXLabels=!1,s.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),s.translateXAxisY=s.translateXAxisY+t.config.xaxis.labels.offsetY,s.translateXAxisX=s.translateXAxisX+t.config.xaxis.labels.offsetX;var h=this.yAxisWidth,u=this.xAxisHeight;s.xAxisLabelsHeight=this.xAxisHeight-l.height,s.xAxisGroupLabelsHeight=s.xAxisLabelsHeight-n.height,s.xAxisLabelsWidth=this.xAxisWidth,s.xAxisHeight=this.xAxisHeight;var p=10;(t.config.chart.type==="radar"||this.isSparkline)&&(h=0,u=s.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(h=0,u=0,p=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);var g=function(){s.translateX=h,s.gridHeight=s.svgHeight-e.lgRect.height-u-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),s.gridWidth=s.svgWidth-h};switch(t.config.xaxis.position==="top"&&(p=s.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":s.translateY=p,g();break;case"top":s.translateY=this.lgRect.height+p,g();break;case"left":s.translateY=p,s.translateX=this.lgRect.width+h,s.gridHeight=s.svgHeight-u-12,s.gridWidth=s.svgWidth-this.lgRect.width-h;break;case"right":s.translateY=p,s.translateX=h,s.gridHeight=s.svgHeight-u-12,s.gridWidth=s.svgWidth-this.lgRect.width-h-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,i),new gs(this.ctx).setYAxisXPosition(i,a)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,s=e.config,i=0;e.config.legend.show&&!e.config.legend.floating&&(i=20);var a=s.chart.type==="pie"||s.chart.type==="polarArea"||s.chart.type==="donut"?"pie":"radialBar",n=s.plotOptions[a].offsetY,o=s.plotOptions[a].offsetX;if(!s.legend.show||s.legend.floating)return t.gridHeight=t.svgHeight-s.grid.padding.left+s.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=n,void(t.translateX=o+(t.svgWidth-t.gridWidth)/2);switch(s.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=n-10,t.translateX=o+(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=o+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-i,t.gridHeight=s.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=o+this.lgRect.width+i;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-i-5,t.gridHeight=s.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,s){var i=this.w,a=i.globals.hasXaxisGroups?2:1,n=s.height+e.height+t.height,o=i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO,l=i.globals.rotateXLabels?22:10,h=i.globals.rotateXLabels&&i.config.legend.position==="bottom"?10:0;this.xAxisHeight=n*o+a*l+h,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 u=0,p=0;i.config.yaxis.forEach(function(g){u+=g.labels.minWidth,p+=g.labels.maxWidth}),this.yAxisWidth<u&&(this.yAxisWidth=u),this.yAxisWidth>p&&(this.yAxisWidth=p)}}]),E}(),eu=function(){function E(e){C(this,E),this.w=e.w,this.lgCtx=e}return S(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 s=this,i=this.w;if(i.globals.axisCharts||i.config.chart.type==="radialBar"){i.globals.resized=!0;var a=null,n=null;i.globals.risingSeries=[],i.globals.axisCharts?(a=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),n=parseInt(a.getAttribute("data:realIndex"),10)):(a=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),n=parseInt(a.getAttribute("rel"),10)-1),t?[{cs:i.globals.collapsedSeries,csi:i.globals.collapsedSeriesIndices},{cs:i.globals.ancillaryCollapsedSeries,csi:i.globals.ancillaryCollapsedSeriesIndices}].forEach(function(u){s.riseCollapsedSeries(u.cs,u.csi,n)}):this.hideSeries({seriesEl:a,realIndex:n})}else{var o=i.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),l=i.config.chart.type;if(l==="pie"||l==="polarArea"||l==="donut"){var h=i.config.plotOptions.pie.donut.labels;new Y(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,h)}o.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,s=e.realIndex,i=this.w,a=R.clone(i.config.series);if(i.globals.axisCharts){var n=!1;if(i.config.yaxis[s]&&i.config.yaxis[s].show&&i.config.yaxis[s].showAlways&&(n=!0,i.globals.ancillaryCollapsedSeriesIndices.indexOf(s)<0&&(i.globals.ancillaryCollapsedSeries.push({index:s,data:a[s].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.ancillaryCollapsedSeriesIndices.push(s))),!n){i.globals.collapsedSeries.push({index:s,data:a[s].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.collapsedSeriesIndices.push(s);var o=i.globals.risingSeries.indexOf(s);i.globals.risingSeries.splice(o,1)}}else i.globals.collapsedSeries.push({index:s,data:a[s]}),i.globals.collapsedSeriesIndices.push(s);for(var l=t.childNodes,h=0;h<l.length;h++)l[h].classList.contains("apexcharts-series-markers-wrap")&&(l[h].classList.contains("apexcharts-hide")?l[h].classList.remove("apexcharts-hide"):l[h].classList.add("apexcharts-hide"));i.globals.allSeriesCollapsed=i.globals.collapsedSeries.length===i.config.series.length,a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,i.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,s){var i=this.w,a=R.clone(i.config.series);if(e.length>0){for(var n=0;n<e.length;n++)e[n].index===s&&(i.globals.axisCharts?(a[s].data=e[n].data.slice(),e.splice(n,1),t.splice(n,1),i.globals.risingSeries.push(s)):(a[s]=e[n].data,e.splice(n,1),t.splice(n,1),i.globals.risingSeries.push(s)));a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,i.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w;return t.globals.axisCharts?e.forEach(function(s,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[])}):e.forEach(function(s,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i]=0)}),e}}]),E}(),Yi=function(){function E(e){C(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 eu(this)}return S(E,[{key:"init",value:function(){var e=this.w,t=e.globals,s=e.config;if((s.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&s.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),R.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),s.legend.position==="bottom"||s.legend.position==="top"?this.legendAlignHorizontal():s.legend.position!=="right"&&s.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,s=t.config.legend.fontFamily,i=t.globals.seriesNames,a=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var n=t.config.plotOptions.heatmap.colorScale.ranges;i=n.map(function(G){return G.name?G.name:G.from+" - "+G.to}),a=n.map(function(G){return G.color})}else this.isBarsDistributed&&(i=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(i=t.config.legend.customLegendItems);for(var o=t.globals.legendFormatter,l=t.config.legend.inverseOrder,h=l?i.length-1:0;l?h>=0:h<=i.length-1;l?h--:h++){var u,p=o(i[h],{seriesIndex:h,w:t}),g=!1,m=!1;if(t.globals.collapsedSeries.length>0)for(var y=0;y<t.globals.collapsedSeries.length;y++)t.globals.collapsedSeries[y].index===h&&(g=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var k=0;k<t.globals.ancillaryCollapsedSeriesIndices.length;k++)t.globals.ancillaryCollapsedSeriesIndices[k]===h&&(m=!0);var _=document.createElement("span");_.classList.add("apexcharts-legend-marker");var D=t.config.legend.markers.offsetX,I=t.config.legend.markers.offsetY,c=t.config.legend.markers.height,f=t.config.legend.markers.width,w=t.config.legend.markers.strokeWidth,L=t.config.legend.markers.strokeColor,z=t.config.legend.markers.radius,M=_.style;M.background=a[h],M.color=a[h],M.setProperty("background",a[h],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[h]&&(M.background=t.config.legend.markers.fillColors[h]),t.globals.seriesColors[h]!==void 0&&(M.background=t.globals.seriesColors[h],M.color=t.globals.seriesColors[h]),M.height=Array.isArray(c)?parseFloat(c[h])+"px":parseFloat(c)+"px",M.width=Array.isArray(f)?parseFloat(f[h])+"px":parseFloat(f)+"px",M.left=(Array.isArray(D)?parseFloat(D[h]):parseFloat(D))+"px",M.top=(Array.isArray(I)?parseFloat(I[h]):parseFloat(I))+"px",M.borderWidth=Array.isArray(w)?w[h]:w,M.borderColor=Array.isArray(L)?L[h]:L,M.borderRadius=Array.isArray(z)?parseFloat(z[h])+"px":parseFloat(z)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[h]&&(_.innerHTML=t.config.legend.markers.customHTML[h]()):_.innerHTML=t.config.legend.markers.customHTML()),Y.setAttrs(_,{rel:h+1,"data:collapsed":g||m}),(g||m)&&_.classList.add("apexcharts-inactive-legend");var F=document.createElement("div"),V=document.createElement("span");V.classList.add("apexcharts-legend-text"),V.innerHTML=Array.isArray(p)?p.join(" "):p;var W=t.config.legend.labels.useSeriesColors?t.globals.colors[h]:Array.isArray(t.config.legend.labels.colors)?(u=t.config.legend.labels.colors)===null||u===void 0?void 0:u[h]:t.config.legend.labels.colors;W||(W=t.config.chart.foreColor),V.style.color=W,V.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",V.style.fontWeight=t.config.legend.fontWeight,V.style.fontFamily=s||t.config.chart.fontFamily,Y.setAttrs(V,{rel:h+1,i:h,"data:default-text":encodeURIComponent(p),"data:collapsed":g||m}),F.appendChild(_),F.appendChild(V);var j=new K(this.ctx);t.config.legend.showForZeroSeries||j.getSeriesTotalByIndex(h)===0&&j.seriesHaveSameValues(h)&&!j.isSeriesNull(h)&&t.globals.collapsedSeriesIndices.indexOf(h)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(h)===-1&&F.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||j.isSeriesNull(h)&&t.globals.collapsedSeriesIndices.indexOf(h)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(h)===-1&&F.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(F),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),F.classList.add("apexcharts-legend-series"),F.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":"",Y.setAttrs(F,{rel:h+1,seriesName:R.escapeString(i[h]),"data:collapsed":g||m}),(g||m)&&F.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||F.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 s=this.w,i=s.globals.dom.elLegendWrap,a=i.getBoundingClientRect(),n=0,o=0;if(s.config.legend.position==="bottom")o+=s.globals.svgHeight-a.height/2;else if(s.config.legend.position==="top"){var l=new Bt(this.ctx),h=l.dimHelpers.getTitleSubtitleCoords("title").height,u=l.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=o+(h>0?h-10:0)+(u>0?u-10:0)}i.style.position="absolute",n=n+e+s.config.legend.offsetX,o=o+t+s.config.legend.offsetY,i.style.left=n+"px",i.style.top=o+"px",s.config.legend.position==="bottom"?(i.style.top="auto",i.style.bottom=5-s.config.legend.offsetY+"px"):s.config.legend.position==="right"&&(i.style.left="auto",i.style.right=25+s.config.legend.offsetX+"px"),["width","height"].forEach(function(p){i.style[p]&&(i.style[p]=parseInt(s.config.legend[p],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendBBox(),s=new Bt(this.ctx),i=s.dimHelpers.getTitleSubtitleCoords("title"),a=s.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;e.config.legend.position==="bottom"?n=-t.clwh/1.8:e.config.legend.position==="top"&&(n=i.height+a.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(),s=0;e.config.legend.position==="left"&&(s=20),e.config.legend.position==="right"&&(s=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(s,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,s=e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(s){var i=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,i,this.w]),new oe(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&s&&new oe(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 s=parseInt(e.target.getAttribute("rel"),10)-1,i=e.target.getAttribute("data:collapsed")==="true",a=this.w.config.chart.events.legendClick;typeof a=="function"&&a(this.ctx,s,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,s,this.w]);var n=this.w.config.legend.markers.onClick;typeof n=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,s,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,s,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(s,i)}}}]),E}(),Wi=function(){function E(e){C(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 S(E,[{key:"createToolbar",value:function(){var e=this,t=this.w,s=function(){return document.createElement("div")},i=s();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=s(),this.elZoomIn=s(),this.elZoomOut=s(),this.elPan=s(),this.elSelection=s(),this.elZoomReset=s(),this.elMenuIcon=s(),this.elMenu=s(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(s());var n=[],o=function(p,g,m){var y=p.toLowerCase();e.t[y]&&t.config.chart.zoom.enabled&&n.push({el:g,icon:typeof e.t[y]=="string"?e.t[y]:m,title:e.localeValues[p],class:"apexcharts-".concat(y,"-icon")})};o("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
|
+
`),o("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 l=function(p){e.t[p]&&t.config.chart[p].enabled&&n.push({el:p==="zoom"?e.elZoom:e.elSelection,icon:typeof e.t[p]=="string"?e.t[p]:p==="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[p==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(p,"-icon")})};l("zoom"),l("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"}),o("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 h=0;h<this.elCustomIcons.length;h++)n.push({el:this.elCustomIcons[h],icon:this.t.customIcons[h].icon,title:this.t.customIcons[h].title,index:this.t.customIcons[h].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[h].class});n.forEach(function(p,g){p.index&&R.moveIndexInArray(n,g,p.index)});for(var u=0;u<n.length;u++)Y.setAttrs(n[u].el,{class:n[u].class,title:n[u].title}),n[u].el.innerHTML=n[u].icon,i.appendChild(n[u].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),Y.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 s=0;s<t.length;s++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[s].innerHTML=t[s].title,Y.setAttrs(this.elMenuItems[s],{class:"apexcharts-menu-item ".concat(t[s].name),title:t[s].title}),this.elMenu.appendChild(this.elMenuItems[s])}},{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(s){s.classList.contains("exportSVG")?s.addEventListener("click",e.handleDownload.bind(e,"svg")):s.classList.contains("exportPNG")?s.addEventListener("click",e.handleDownload.bind(e,"png")):s.classList.contains("exportCSV")&&s.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 s=e==="selection"?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i=e==="selection"?"selectionEnabled":"zoomEnabled";t.w.globals[i]=!t.w.globals[i],s.classList.contains(t.ctx.toolbar.selectedClass)?s.classList.remove(t.ctx.toolbar.selectedClass):s.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,s=e==="pan"?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),s&&s.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(s){s&&s.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,s=(this.minX+t)/2,i=(this.maxX+t)/2,a=this._getNewMinXMaxX(s,i);e.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.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,s=this.minX-(t-this.minX),i=this.maxX-(t-this.maxX),a=this._getNewMinXMaxX(s,i);e.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var s=this.w.config.xaxis.convertedCatToNumeric;return{minX:s?Math.floor(e):e,maxX:s?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var s=this.w;if(e!==void 0||t!==void 0){if(!(s.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=s.globals.dataPoints),t-e<2))){var i={min:e,max:t},a=this.getBeforeZoomRange(i);a&&(i=a.xaxis);var n={xaxis:i},o=R.clone(s.globals.initialConfig.yaxis);s.config.chart.zoom.autoScaleYaxis&&(o=new He(this.ctx).autoScaleY(this.ctx,o,{xaxis:i})),s.config.chart.group||(n.yaxis=o),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(n,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(i,o)}}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 s=null;return typeof this.ev.beforeZoom=="function"&&(s=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),s}},{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,s=new Oe(this.ctx);switch(e){case"svg":s.exportToSVG(this.ctx);break;case"png":s.exportToPng(this.ctx);break;case"csv":s.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 s=t.w;if(s.globals.lastXAxis.min=void 0,s.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),typeof s.config.chart.events.beforeResetZoom=="function"){var i=s.config.chart.events.beforeResetZoom(t,s);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}typeof s.config.chart.events.zoomed=="function"&&t.ctx.toolbar.zoomCallback({min:s.config.xaxis.min,max:s.config.xaxis.max}),s.globals.zoomed=!1;var a=t.ctx.series.emptyCollapsedSeries(R.clone(s.globals.initialSeries));t.updateHelpers._updateSeries(a,s.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}(),tu=function(E){N(t,Wi);var e=O(t);function t(s){var i;return C(this,t),(i=e.call(this,s)).ctx=s,i.w=s.w,i.dragged=!1,i.graphics=new Y(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 S(t,[{key:"init",value:function(s){var i=this,a=s.xyRatios,n=this.w,o=this;this.xyRatios=a,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(l){i.hoverArea.addEventListener(l,o.svgMouseEvents.bind(o,a),{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(s,i){var a=this.w,n=this,o=this.ctx.toolbar,l=a.globals.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type,h=a.config.chart.toolbar.autoSelected;if(i.shiftKey?(this.shiftWasPressed=!0,o.enableZoomPanFromToolbar(h==="pan"?"zoom":"pan")):this.shiftWasPressed&&(o.enableZoomPanFromToolbar(h),this.shiftWasPressed=!1),i.target){var u,p=i.target.classList;if(i.target.parentNode&&i.target.parentNode!==null&&(u=i.target.parentNode.classList),!(p.contains("apexcharts-selection-rect")||p.contains("apexcharts-legend-marker")||p.contains("apexcharts-legend-text")||u&&u.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 g=n.gridRect.getBoundingClientRect();n.startX=n.clientX-g.left,n.startY=n.clientY-g.top,n.dragged=!1,n.w.globals.mousedown=!0}if((i.type==="mousemove"&&i.which===1||i.type==="touchmove")&&(n.dragged=!0,a.globals.panEnabled?(a.globals.selection=null,n.w.globals.mousedown&&n.panDragging({context:n,zoomtype:l,xyRatios:s})):(n.w.globals.mousedown&&a.globals.zoomEnabled||n.w.globals.mousedown&&a.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:l}))),i.type==="mouseup"||i.type==="touchend"||i.type==="mouseleave"){var m=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-m.left,n.endY=n.clientY-m.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(a.globals.zoomEnabled||a.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:l}),a.globals.panEnabled&&a.config.xaxis.convertedCatToNumeric&&n.delayedPanScrolled()),a.globals.zoomEnabled&&n.hideSelectionRect(this.selectionRect),n.dragged=!1,n.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var s=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:s.globals.gridWidth,maxY:s.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var s=this.w,i=this.xyRatios;if(!s.globals.zoomEnabled){if(s.globals.selection!==void 0&&s.globals.selection!==null)this.drawSelectionRect(s.globals.selection);else if(s.config.chart.selection.xaxis.min!==void 0&&s.config.chart.selection.xaxis.max!==void 0){var a=(s.config.chart.selection.xaxis.min-s.globals.minX)/i.xRatio,n={x:a,y:0,width:s.globals.gridWidth-(s.globals.maxX-s.config.chart.selection.xaxis.max)/i.xRatio-a,height:s.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),typeof s.config.chart.events.selection=="function"&&s.config.chart.events.selection(this.ctx,{xaxis:{min:s.config.chart.selection.xaxis.min,max:s.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(s){var i=s.x,a=s.y,n=s.width,o=s.height,l=s.translateX,h=l===void 0?0:l,u=s.translateY,p=u===void 0?0:u,g=this.w,m=this.zoomRect,y=this.selectionRect;if(this.dragged||g.globals.selection!==null){var k={transform:"translate("+h+", "+p+")"};g.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),m.attr({x:i,y:a,width:n,height:o,fill:g.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":g.config.chart.zoom.zoomedArea.fill.opacity,stroke:g.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":g.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":g.config.chart.zoom.zoomedArea.stroke.opacity}),Y.setAttrs(m.node,k)),g.globals.selectionEnabled&&(y.attr({x:i,y:a,width:n>0?n:0,height:o>0?o:0,fill:g.config.chart.selection.fill.color,"fill-opacity":g.config.chart.selection.fill.opacity,stroke:g.config.chart.selection.stroke.color,"stroke-width":g.config.chart.selection.stroke.width,"stroke-dasharray":g.config.chart.selection.stroke.dashArray,"stroke-opacity":g.config.chart.selection.stroke.opacity}),Y.setAttrs(y.node,k))}}},{key:"hideSelectionRect",value:function(s){s&&s.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(s){var i=s.context,a=s.zoomtype,n=this.w,o=i,l=this.gridRect.getBoundingClientRect(),h=o.startX-1,u=o.startY,p=!1,g=!1,m=o.clientX-l.left-h,y=o.clientY-l.top-u,k={};return Math.abs(m+h)>n.globals.gridWidth?m=n.globals.gridWidth-h:o.clientX-l.left<0&&(m=h),h>o.clientX-l.left&&(p=!0,m=Math.abs(m)),u>o.clientY-l.top&&(g=!0,y=Math.abs(y)),k=a==="x"?{x:p?h-m:h,y:0,width:m,height:n.globals.gridHeight}:a==="y"?{x:0,y:g?u-y:u,width:n.globals.gridWidth,height:y}:{x:p?h-m:h,y:g?u-y:u,width:m,height:y},o.drawSelectionRect(k),o.selectionDragging("resizing"),k}},{key:"selectionDragging",value:function(s,i){var a=this,n=this.w,o=this.xyRatios,l=this.selectionRect,h=0;s==="resizing"&&(h=30);var u=function(g){return parseFloat(l.node.getAttribute(g))},p={x:u("x"),y:u("y"),width:u("width"),height:u("height")};n.globals.selection=p,typeof n.config.chart.events.selection=="function"&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var g=a.gridRect.getBoundingClientRect(),m=l.node.getBoundingClientRect(),y={xaxis:{min:n.globals.xAxisScale.niceMin+(m.left-g.left)*o.xRatio,max:n.globals.xAxisScale.niceMin+(m.right-g.left)*o.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(g.bottom-m.bottom)*o.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(m.top-g.top)*o.yRatio[0]}};n.config.chart.events.selection(a.ctx,y),n.config.chart.brush.enabled&&n.config.chart.events.brushScrolled!==void 0&&n.config.chart.events.brushScrolled(a.ctx,y)},h))}},{key:"selectionDrawn",value:function(s){var i=s.context,a=s.zoomtype,n=this.w,o=i,l=this.xyRatios,h=this.ctx.toolbar;if(o.startX>o.endX){var u=o.startX;o.startX=o.endX,o.endX=u}if(o.startY>o.endY){var p=o.startY;o.startY=o.endY,o.endY=p}var g=void 0,m=void 0;n.globals.isRangeBar?(g=n.globals.yAxisScale[0].niceMin+o.startX*l.invertedYRatio,m=n.globals.yAxisScale[0].niceMin+o.endX*l.invertedYRatio):(g=n.globals.xAxisScale.niceMin+o.startX*l.xRatio,m=n.globals.xAxisScale.niceMin+o.endX*l.xRatio);var y=[],k=[];if(n.config.yaxis.forEach(function(z,M){y.push(n.globals.yAxisScale[M].niceMax-l.yRatio[M]*o.startY),k.push(n.globals.yAxisScale[M].niceMax-l.yRatio[M]*o.endY)}),o.dragged&&(o.dragX>10||o.dragY>10)&&g!==m){if(n.globals.zoomEnabled){var _=R.clone(n.globals.initialConfig.yaxis),D=R.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(g=Math.floor(g),m=Math.floor(m),g<1&&(g=1,m=n.globals.dataPoints),m-g<2&&(m=g+1)),a!=="xy"&&a!=="x"||(D={min:g,max:m}),a!=="xy"&&a!=="y"||_.forEach(function(z,M){_[M].min=k[M],_[M].max=y[M]}),n.config.chart.zoom.autoScaleYaxis){var I=new He(o.ctx);_=I.autoScaleY(o.ctx,_,{xaxis:D})}if(h){var c=h.getBeforeZoomRange(D,_);c&&(D=c.xaxis?c.xaxis:D,_=c.yaxis?c.yaxis:_)}var f={xaxis:D};n.config.chart.group||(f.yaxis=_),o.ctx.updateHelpers._updateOptions(f,!1,o.w.config.chart.animations.dynamicAnimation.enabled),typeof n.config.chart.events.zoomed=="function"&&h.zoomCallback(D,_)}else if(n.globals.selectionEnabled){var w,L=null;w={min:g,max:m},a!=="xy"&&a!=="y"||(L=R.clone(n.config.yaxis)).forEach(function(z,M){L[M].min=k[M],L[M].max=y[M]}),n.globals.selection=o.selection,typeof n.config.chart.events.selection=="function"&&n.config.chart.events.selection(o.ctx,{xaxis:w,yaxis:L})}}}},{key:"panDragging",value:function(s){var i=s.context,a=this.w,n=i;if(a.globals.lastClientPosition.x!==void 0){var o=a.globals.lastClientPosition.x-n.clientX,l=a.globals.lastClientPosition.y-n.clientY;Math.abs(o)>Math.abs(l)&&o>0?this.moveDirection="left":Math.abs(o)>Math.abs(l)&&o<0?this.moveDirection="right":Math.abs(l)>Math.abs(o)&&l>0?this.moveDirection="up":Math.abs(l)>Math.abs(o)&&l<0&&(this.moveDirection="down")}a.globals.lastClientPosition={x:n.clientX,y:n.clientY};var h=a.globals.isRangeBar?a.globals.minY:a.globals.minX,u=a.globals.isRangeBar?a.globals.maxY:a.globals.maxX;a.config.xaxis.convertedCatToNumeric||n.panScrolled(h,u)}},{key:"delayedPanScrolled",value:function(){var s=this.w,i=s.globals.minX,a=s.globals.maxX,n=(s.globals.maxX-s.globals.minX)/2;this.moveDirection==="left"?(i=s.globals.minX+n,a=s.globals.maxX+n):this.moveDirection==="right"&&(i=s.globals.minX-n,a=s.globals.maxX-n),i=Math.floor(i),a=Math.floor(a),this.updateScrolledChart({xaxis:{min:i,max:a}},i,a)}},{key:"panScrolled",value:function(s,i){var a=this.w,n=this.xyRatios,o=R.clone(a.globals.initialConfig.yaxis),l=n.xRatio,h=a.globals.minX,u=a.globals.maxX;a.globals.isRangeBar&&(l=n.invertedYRatio,h=a.globals.minY,u=a.globals.maxY),this.moveDirection==="left"?(s=h+a.globals.gridWidth/15*l,i=u+a.globals.gridWidth/15*l):this.moveDirection==="right"&&(s=h-a.globals.gridWidth/15*l,i=u-a.globals.gridWidth/15*l),a.globals.isRangeBar||(s<a.globals.initialMinX||i>a.globals.initialMaxX)&&(s=h,i=u);var p={min:s,max:i};a.config.chart.zoom.autoScaleYaxis&&(o=new He(this.ctx).autoScaleY(this.ctx,o,{xaxis:p}));var g={xaxis:{min:s,max:i}};a.config.chart.group||(g.yaxis=o),this.updateScrolledChart(g,s,i)}},{key:"updateScrolledChart",value:function(s,i,a){var n=this.w;this.ctx.updateHelpers._updateOptions(s,!1,!1),typeof n.config.chart.events.scrolled=="function"&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:i,max:a}})}}]),t}(),Gi=function(){function E(e){C(this,E),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return S(E,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,s=e.elGrid,i=e.clientX,a=e.clientY,n=this.w,o=s.getBoundingClientRect(),l=o.width,h=o.height,u=l/(n.globals.dataPoints-1),p=h/n.globals.dataPoints,g=this.hasBars();!n.globals.comboCharts&&!g||n.config.xaxis.convertedCatToNumeric||(u=l/n.globals.dataPoints);var m=i-o.left-n.globals.barPadForNumericAxis,y=a-o.top;m<0||y<0||m>l||y>h?(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 k=Math.round(m/u),_=Math.floor(y/p);g&&!n.config.xaxis.convertedCatToNumeric&&(k=Math.ceil(m/u),k-=1);var D=null,I=null,c=[],f=[];if(n.globals.seriesXvalues.forEach(function(M){c.push([M[0]+1e-6].concat(M))}),n.globals.seriesYvalues.forEach(function(M){f.push([M[0]+1e-6].concat(M))}),c=c.map(function(M){return M.filter(function(F){return R.isNumber(F)})}),f=f.map(function(M){return M.filter(function(F){return R.isNumber(F)})}),n.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),L=m*(w.width/l),z=y*(w.height/h);D=(I=this.closestInMultiArray(L,z,c,f)).index,k=I.j,D!==null&&(c=n.globals.seriesXvalues[D],k=(I=this.closestInArray(L,c)).index)}return n.globals.capturedSeriesIndex=D===null?-1:D,(!k||k<1)&&(k=0),n.globals.isBarHorizontal?n.globals.capturedDataPointIndex=_:n.globals.capturedDataPointIndex=k,{capturedSeries:D,j:n.globals.isBarHorizontal?_:k,hoverX:m,hoverY:y}}},{key:"closestInMultiArray",value:function(e,t,s,i){var a=this.w,n=0,o=null,l=-1;a.globals.series.length>1?n=this.getFirstActiveXArray(s):o=0;var h=s[n][0],u=Math.abs(e-h);if(s.forEach(function(m){m.forEach(function(y,k){var _=Math.abs(e-y);_<u&&(u=_,l=k)})}),l!==-1){var p=i[n][l],g=Math.abs(t-p);o=n,i.forEach(function(m,y){var k=Math.abs(t-m[l]);k<g&&(g=k,o=y)})}return{index:o,j:l}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,s=0,i=e.map(function(n,o){return n.length>0?o:-1}),a=0;a<i.length;a++)if(i[a]!==-1&&t.globals.collapsedSeriesIndices.indexOf(a)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(a)===-1){s=i[a];break}return s}},{key:"closestInArray",value:function(e,t){for(var s=t[0],i=null,a=Math.abs(e-s),n=0;n<t.length;n++){var o=Math.abs(e-t[n]);o<a&&(a=o,i=n)}return{index:i}}},{key:"isXoverlap",value:function(e){var t=[],s=this.w.globals.seriesX.filter(function(a){return a[0]!==void 0});if(s.length>0)for(var i=0;i<s.length-1;i++)s[i][e]!==void 0&&s[i+1][e]!==void 0&&s[i][e]!==s[i+1][e]&&t.push("unEqual");return t.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,s=0;s<t.length-1;s++)if(t[s].data.length!==t[s+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return q(e).reduce(function(t,s){return t+s.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=q(e)).sort(function(s,i){var a=Number(s.getAttribute("data:realIndex")),n=Number(i.getAttribute("data:realIndex"));return n<a?1:n>a?-1:0});var t=[];return e.forEach(function(s){t.push(s.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,s=t.config.markers.hover.size;return s===void 0&&(s=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),s}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,s=this.ttCtx;s.allTooltipSeriesGroups.length===0&&(s.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var i=s.allTooltipSeriesGroups,a=0;a<i.length;a++)e==="enable"?(i[a].classList.add("apexcharts-active"),i[a].style.display=t.config.tooltip.items.display):(i[a].classList.remove("apexcharts-active"),i[a].style.display="none")}}]),E}(),su=function(){function E(e){C(this,E),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new Gi(e)}return S(E,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,s=t===void 0||t,i=e.ttItems,a=e.i,n=a===void 0?0:a,o=e.j,l=o===void 0?null:o,h=e.y1,u=e.y2,p=e.e,g=this.w;g.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:n,j:l,y1:h,y2:u,w:g}):this.toggleActiveInactiveSeries(s);var m=this.getValuesToPrint({i:n,j:l});this.printLabels({i:n,j:l,values:m,ttItems:i,shared:s,e:p});var y=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=y.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=y.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,s=this,i=e.i,a=e.j,n=e.values,o=e.ttItems,l=e.shared,h=e.e,u=this.w,p=[],g=function(w){return u.globals.seriesGoals[w]&&u.globals.seriesGoals[w][a]&&Array.isArray(u.globals.seriesGoals[w][a])},m=n.xVal,y=n.zVal,k=n.xAxisTTVal,_="",D=u.globals.colors[i];a!==null&&u.config.plotOptions.bar.distributed&&(D=u.globals.colors[a]);for(var I=function(w,L){var z=s.getFormatters(i);_=s.getSeriesName({fn:z.yLbTitleFormatter,index:i,seriesIndex:i,j:a}),u.config.chart.type==="treemap"&&(_=z.yLbTitleFormatter(String(u.config.series[i].data[a].x),{series:u.globals.series,seriesIndex:i,dataPointIndex:a,w:u}));var M=u.config.tooltip.inverseOrder?L:w;if(u.globals.axisCharts){var F=function(j){var G,Z,se,ne;return u.globals.isRangeData?z.yLbFormatter((G=u.globals.seriesRangeStart)===null||G===void 0||(Z=G[j])===null||Z===void 0?void 0:Z[a],{series:u.globals.seriesRangeStart,seriesIndex:j,dataPointIndex:a,w:u})+" - "+z.yLbFormatter((se=u.globals.seriesRangeEnd)===null||se===void 0||(ne=se[j])===null||ne===void 0?void 0:ne[a],{series:u.globals.seriesRangeEnd,seriesIndex:j,dataPointIndex:a,w:u}):z.yLbFormatter(u.globals.series[j][a],{series:u.globals.series,seriesIndex:j,dataPointIndex:a,w:u})};if(l)z=s.getFormatters(M),_=s.getSeriesName({fn:z.yLbTitleFormatter,index:M,seriesIndex:i,j:a}),D=u.globals.colors[M],t=F(M),g(M)&&(p=u.globals.seriesGoals[M][a].map(function(j){return{attrs:j,val:z.yLbFormatter(j.value,{seriesIndex:M,dataPointIndex:a,w:u})}}));else{var V,W=h==null||(V=h.target)===null||V===void 0?void 0:V.getAttribute("fill");W&&(D=W.indexOf("url")!==-1?document.querySelector(W.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):W),t=F(i),g(i)&&Array.isArray(u.globals.seriesGoals[i][a])&&(p=u.globals.seriesGoals[i][a].map(function(j){return{attrs:j,val:z.yLbFormatter(j.value,{seriesIndex:i,dataPointIndex:a,w:u})}}))}}a===null&&(t=z.yLbFormatter(u.globals.series[i],v(v({},u),{},{seriesIndex:i,dataPointIndex:i}))),s.DOMHandling({i,t:M,j:a,ttItems:o,values:{val:t,goalVals:p,xVal:m,xAxisTTVal:k,zVal:y},seriesName:_,shared:l,pColor:D})},c=0,f=u.globals.series.length-1;c<u.globals.series.length;c++,f--)I(c,f)}},{key:"getFormatters",value:function(e){var t,s=this.w,i=s.globals.yLabelFormatters[e];return s.globals.ttVal!==void 0?Array.isArray(s.globals.ttVal)?(i=s.globals.ttVal[e]&&s.globals.ttVal[e].formatter,t=s.globals.ttVal[e]&&s.globals.ttVal[e].title&&s.globals.ttVal[e].title.formatter):(i=s.globals.ttVal.formatter,typeof s.globals.ttVal.title.formatter=="function"&&(t=s.globals.ttVal.title.formatter)):t=s.config.tooltip.y.title.formatter,typeof i!="function"&&(i=s.globals.yLabelFormatters[0]?s.globals.yLabelFormatters[0]:function(a){return a}),typeof t!="function"&&(t=function(a){return a}),{yLbFormatter:i,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,s=e.index,i=e.seriesIndex,a=e.j,n=this.w;return t(String(n.globals.seriesNames[s]),{series:n.globals.series,seriesIndex:i,dataPointIndex:a,w:n})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,s=e.j,i=e.ttItems,a=e.values,n=e.seriesName,o=e.shared,l=e.pColor,h=this.w,u=this.ttCtx,p=a.val,g=a.goalVals,m=a.xVal,y=a.xAxisTTVal,k=a.zVal,_=null;_=i[t].children,h.config.tooltip.fillSeriesColor&&(i[t].style.backgroundColor=l,_[0].style.display="none"),u.showTooltipTitle&&(u.tooltipTitle===null&&(u.tooltipTitle=h.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),u.tooltipTitle.innerHTML=m),u.isXAxisTooltipEnabled&&(u.xaxisTooltipText.innerHTML=y!==""?y:m);var D=i[t].querySelector(".apexcharts-tooltip-text-y-label");D&&(D.innerHTML=n||"");var I=i[t].querySelector(".apexcharts-tooltip-text-y-value");I&&(I.innerHTML=p!==void 0?p:""),_[0]&&_[0].classList.contains("apexcharts-tooltip-marker")&&(h.config.tooltip.marker.fillColors&&Array.isArray(h.config.tooltip.marker.fillColors)&&(l=h.config.tooltip.marker.fillColors[t]),_[0].style.backgroundColor=l),h.config.tooltip.marker.show||(_[0].style.display="none");var c=i[t].querySelector(".apexcharts-tooltip-text-goals-label"),f=i[t].querySelector(".apexcharts-tooltip-text-goals-value");if(g.length&&h.globals.seriesGoals[t]){var w=function(){var L="<div >",z="<div>";g.forEach(function(M,F){L+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(M.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(M.attrs.name,"</div>"),z+="<div>".concat(M.val,"</div>")}),c.innerHTML=L+"</div>",f.innerHTML=z+"</div>"};o?h.globals.seriesGoals[t][s]&&Array.isArray(h.globals.seriesGoals[t][s])?w():(c.innerHTML="",f.innerHTML=""):w()}else c.innerHTML="",f.innerHTML="";k!==null&&(i[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=h.config.tooltip.z.title,i[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=k!==void 0?k:""),o&&_[0]&&(p==null||h.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||h.globals.collapsedSeriesIndices.indexOf(t)>-1?_[0].parentNode.style.display="none":_[0].parentNode.style.display=h.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 s=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");s&&(s.classList.add("apexcharts-active"),s.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,s=e.j,i=this.w,a=this.ctx.series.filteredSeriesX(),n="",o="",l=null,h=null,u={series:i.globals.series,seriesIndex:t,dataPointIndex:s,w:i},p=i.globals.ttZFormatter;s===null?h=i.globals.series[t]:i.globals.isXNumeric&&i.config.chart.type!=="treemap"?(n=a[t][s],a[t].length===0&&(n=a[this.tooltipUtil.getFirstActiveXArray(a)][s])):n=i.globals.labels[s]!==void 0?i.globals.labels[s]:"";var g=n;return i.globals.isXNumeric&&i.config.xaxis.type==="datetime"?n=new pe(this.ctx).xLabelFormat(i.globals.ttKeyFormatter,g,g,{i:void 0,dateFormatter:new Q(this.ctx).formatDate,w:this.w}):n=i.globals.isBarHorizontal?i.globals.yLabelFormatters[0](g,u):i.globals.xLabelFormatter(g,u),i.config.tooltip.x.formatter!==void 0&&(n=i.globals.ttKeyFormatter(g,u)),i.globals.seriesZ.length>0&&i.globals.seriesZ[t].length>0&&(l=p(i.globals.seriesZ[t][s],i)),o=typeof i.config.xaxis.tooltip.formatter=="function"?i.globals.xaxisTooltipFormatter(g,u):n,{val:Array.isArray(h)?h.join(" "):h,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:l}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,s=e.j,i=e.y1,a=e.y2,n=e.w,o=this.ttCtx.getElTooltip(),l=n.config.tooltip.custom;Array.isArray(l)&&l[t]&&(l=l[t]),o.innerHTML=l({ctx:this.ctx,series:n.globals.series,seriesIndex:t,dataPointIndex:s,y1:i,y2:a,w:n})}}]),E}(),ji=function(){function E(e){C(this,E),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return S(E,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=this.ttCtx,i=this.w,a=s.getElXCrosshairs(),n=e-s.xcrosshairsWidth/2,o=i.globals.labels.slice().length;if(t!==null&&(n=i.globals.gridWidth/o*t),a===null||i.globals.isBarHorizontal||(a.setAttribute("x",n),a.setAttribute("x1",n),a.setAttribute("x2",n),a.setAttribute("y2",i.globals.gridHeight),a.classList.add("apexcharts-active")),n<0&&(n=0),n>i.globals.gridWidth&&(n=i.globals.gridWidth),s.isXAxisTooltipEnabled){var l=n;i.config.xaxis.crosshairs.width!=="tickWidth"&&i.config.xaxis.crosshairs.width!=="barWidth"||(l=n+s.xcrosshairsWidth/2),this.moveXAxisTooltip(l)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&Y.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&Y.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,s=this.ttCtx;if(s.xaxisTooltip!==null&&s.xcrosshairsWidth!==0){s.xaxisTooltip.classList.add("apexcharts-active");var i=s.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=s.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=t.globals.translateX;var a;a=new Y(this.ctx).getTextRects(s.xaxisTooltipText.innerHTML),s.xaxisTooltipText.style.minWidth=a.width+"px",s.xaxisTooltip.style.left=e+"px",s.xaxisTooltip.style.top=i+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,s=this.ttCtx;s.yaxisTTEls===null&&(s.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var i=parseInt(s.ycrosshairsHidden.getAttribute("y1"),10),a=t.globals.translateY+i,n=s.yaxisTTEls[e].getBoundingClientRect().height,o=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(o-=26),a-=n/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1?(s.yaxisTTEls[e].classList.add("apexcharts-active"),s.yaxisTTEls[e].style.top=a+"px",s.yaxisTTEls[e].style.left=o+t.config.yaxis[e].tooltip.offsetX+"px"):s.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=this.w,a=this.ttCtx,n=a.getElTooltip(),o=a.tooltipRect,l=s!==null?parseFloat(s):1,h=parseFloat(e)+l+5,u=parseFloat(t)+l/2;if(h>i.globals.gridWidth/2&&(h=h-o.ttWidth-l-10),h>i.globals.gridWidth-o.ttWidth-10&&(h=i.globals.gridWidth-o.ttWidth),h<-20&&(h=-20),i.config.tooltip.followCursor){var p=a.getElGrid().getBoundingClientRect();(h=a.e.clientX-p.left)>i.globals.gridWidth/2&&(h-=a.tooltipRect.ttWidth),(u=a.e.clientY+i.globals.translateY-p.top)>i.globals.gridHeight/2&&(u-=a.tooltipRect.ttHeight)}else i.globals.isBarHorizontal||o.ttHeight/2+u>i.globals.gridHeight&&(u=i.globals.gridHeight-o.ttHeight+i.globals.translateY);isNaN(h)||(h+=i.globals.translateX,n.style.left=h+"px",n.style.top=u+"px")}},{key:"moveMarkers",value:function(e,t){var s=this.w,i=this.ttCtx;if(s.globals.markers.size[e]>0)for(var a=s.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),n=0;n<a.length;n++)parseInt(a[n].getAttribute("rel"),10)===t&&(i.marker.resetPointsSize(),i.marker.enlargeCurrentPoint(t,a[n]));else i.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var s,i,a=this.w,n=this.ttCtx,o=a.globals.pointsArray,l=n.tooltipUtil.getHoverMarkerSize(t),h=a.config.series[t].type;if(!h||h!=="column"&&h!=="candlestick"&&h!=="boxPlot"){s=o[t][e][0],i=o[t][e][1]?o[t][e][1]:0;var u=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));u&&i<a.globals.gridHeight&&i>0&&(u.setAttribute("r",l),u.setAttribute("cx",s),u.setAttribute("cy",i)),this.moveXCrosshairs(s),n.fixedTooltip||this.moveTooltip(s,i,l)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,s=this.ttCtx,i=s.w,a=0,n=0,o=i.globals.pointsArray;t=new oe(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var l=s.tooltipUtil.getHoverMarkerSize(t);o[t]&&(a=o[t][e][0],n=o[t][e][1]);var h=s.tooltipUtil.getAllMarkers();if(h!==null)for(var u=0;u<i.globals.series.length;u++){var p=o[u];if(i.globals.comboCharts&&p===void 0&&h.splice(u,0,null),p&&p.length){var g=o[u][e][1],m=void 0;if(h[u].setAttribute("cx",a),i.config.chart.type==="rangeArea"&&!i.globals.comboCharts){var y=e+i.globals.series[u].length;m=o[u][y][1],g-=Math.abs(g-m)/2}g!==null&&!isNaN(g)&&g<i.globals.gridHeight+l&&g+l>0?(h[u]&&h[u].setAttribute("r",l),h[u]&&h[u].setAttribute("cy",g)):h[u]&&h[u].setAttribute("r",0)}}this.moveXCrosshairs(a),s.fixedTooltip||this.moveTooltip(a,n||i.globals.gridHeight,l)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var s=this.w,i=this.ttCtx,a=s.globals.columnSeries?s.globals.columnSeries.length:s.globals.series.length,n=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;s.globals.isBarHorizontal&&(n=new oe(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=s.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,"']"));o||typeof t!="number"||(o=s.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 l=o?parseFloat(o.getAttribute("cx")):0,h=o?parseFloat(o.getAttribute("cy")):0,u=o?parseFloat(o.getAttribute("barWidth")):0,p=i.getElGrid().getBoundingClientRect(),g=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));s.globals.isXNumeric?(o&&!g&&(l-=a%2!=0?u/2:0),o&&g&&s.globals.comboCharts&&(l-=u/2)):s.globals.isBarHorizontal||(l=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(l)&&(l=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),s.globals.isBarHorizontal?h-=i.tooltipRect.ttHeight:s.config.tooltip.followCursor?h=i.e.clientY-p.top-i.tooltipRect.ttHeight/2:h+i.tooltipRect.ttHeight+15>s.globals.gridHeight&&(h=s.globals.gridHeight),s.globals.isBarHorizontal||this.moveXCrosshairs(l),i.fixedTooltip||this.moveTooltip(l,h||s.globals.gridHeight)}}]),E}(),iu=function(){function E(e){C(this,E),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new ji(e)}return S(E,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new Y(this.ctx),s=new tt(this.ctx),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");i=q(i),e.config.chart.stacked&&i.sort(function(p,g){return parseFloat(p.getAttribute("data:realIndex"))-parseFloat(g.getAttribute("data:realIndex"))});for(var a=0;a<i.length;a++){var n=i[a].querySelector(".apexcharts-series-markers-wrap");if(n!==null){var o=void 0,l="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||(l+=" no-pointer-events");var h=s.getMarkerConfig({cssClass:l,seriesIndex:Number(n.getAttribute("data:realIndex"))});(o=t.drawMarker(0,0,h)).node.setAttribute("default-marker-size",0);var u=document.createElementNS(e.globals.SVGNS,"g");u.classList.add("apexcharts-series-markers"),u.appendChild(o.node),n.appendChild(u)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.w;a.config.chart.type!=="bubble"&&this.newPointSize(e,t);var n=t.getAttribute("cx"),o=t.getAttribute("cy");if(s!==null&&i!==null&&(n=s,o=i),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if(a.config.chart.type==="radar"){var l=this.ttCtx.getElGrid().getBoundingClientRect();n=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(n,o,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,s=this,i=this.ttCtx,a=e,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=t.config.markers.hover.size,l=0;l<n.length;l++){var h=n[l].getAttribute("rel"),u=n[l].getAttribute("index");if(o===void 0&&(o=t.globals.markers.size[u]+t.config.markers.hover.sizeOffset),a===parseInt(h,10)){s.newPointSize(a,n[l]);var p=n[l].getAttribute("cx"),g=n[l].getAttribute("cy");s.tooltipPosition.moveXCrosshairs(p),i.fixedTooltip||s.tooltipPosition.moveTooltip(p,g,o)}else s.oldPointSize(n[l])}}},{key:"newPointSize",value:function(e,t){var s=this.w,i=s.config.markers.hover.size,a=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(a.getAttribute("default-marker-size")!=="0"){var n=parseInt(a.getAttribute("index"),10);i===void 0&&(i=s.globals.markers.size[n]+s.config.markers.hover.sizeOffset),i<0&&(i=0),a.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 s=parseFloat(e[t].getAttribute("default-marker-size"));R.isNumber(s)&&s>=0?e[t].setAttribute("r",s):e[t].setAttribute("r",0)}}}]),E}(),au=function(){function E(e){C(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 S(E,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,s=e.opt,i=e.x,a=e.y,n=e.type,o=this.ttCtx,l=this.w;if(t.target.classList.contains("apexcharts-".concat(n,"-rect"))){var h=this.getAttr(t,"i"),u=this.getAttr(t,"j"),p=this.getAttr(t,"cx"),g=this.getAttr(t,"cy"),m=this.getAttr(t,"width"),y=this.getAttr(t,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:h,j:u,shared:!1,e:t}),l.globals.capturedSeriesIndex=h,l.globals.capturedDataPointIndex=u,i=p+o.tooltipRect.ttWidth/2+m,a=g+o.tooltipRect.ttHeight/2-y/2,o.tooltipPosition.moveXCrosshairs(p+m/2),i>l.globals.gridWidth/2&&(i=p-o.tooltipRect.ttWidth/2+m),o.w.config.tooltip.followCursor){var k=l.globals.dom.elWrap.getBoundingClientRect();i=l.globals.clientX-k.left-(i>l.globals.gridWidth/2?o.tooltipRect.ttWidth:0),a=l.globals.clientY-k.top-(a>l.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:i,y:a}}},{key:"handleMarkerTooltip",value:function(e){var t,s,i=e.e,a=e.opt,n=e.x,o=e.y,l=this.w,h=this.ttCtx;if(i.target.classList.contains("apexcharts-marker")){var u=parseInt(a.paths.getAttribute("cx"),10),p=parseInt(a.paths.getAttribute("cy"),10),g=parseFloat(a.paths.getAttribute("val"));if(s=parseInt(a.paths.getAttribute("rel"),10),t=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,h.intersect){var m=R.findAncestor(a.paths,"apexcharts-series");m&&(t=parseInt(m.getAttribute("data:realIndex"),10))}if(h.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:t,j:s,shared:!h.showOnIntersect&&l.config.tooltip.shared,e:i}),i.type==="mouseup"&&h.markerClick(i,t,s),l.globals.capturedSeriesIndex=t,l.globals.capturedDataPointIndex=s,n=u,o=p+l.globals.translateY-1.4*h.tooltipRect.ttHeight,h.w.config.tooltip.followCursor){var y=h.getElGrid().getBoundingClientRect();o=h.e.clientY+l.globals.translateY-y.top}g<0&&(o=p),h.marker.enlargeCurrentPoint(s,a.paths,n,o)}return{x:n,y:o}}},{key:"handleBarTooltip",value:function(e){var t,s,i=e.e,a=e.opt,n=this.w,o=this.ttCtx,l=o.getElTooltip(),h=0,u=0,p=0,g=this.getBarTooltipXY({e:i,opt:a});t=g.i;var m=g.barHeight,y=g.j;n.globals.capturedSeriesIndex=t,n.globals.capturedDataPointIndex=y,n.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!n.config.tooltip.shared?(u=g.x,p=g.y,s=Array.isArray(n.config.stroke.width)?n.config.stroke.width[t]:n.config.stroke.width,h=u):n.globals.comboCharts||n.config.tooltip.shared||(h/=2),isNaN(p)&&(p=n.globals.svgHeight-o.tooltipRect.ttHeight);var k=parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10),_=n.globals.isMultipleYAxis?n.config.yaxis[k]&&n.config.yaxis[k].reversed:n.config.yaxis[0].reversed;if(u+o.tooltipRect.ttWidth>n.globals.gridWidth&&!_?u-=o.tooltipRect.ttWidth:u<0&&(u=0),o.w.config.tooltip.followCursor){var D=o.getElGrid().getBoundingClientRect();p=o.e.clientY-D.top}o.tooltip===null&&(o.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(h+s/2):o.tooltipPosition.moveXCrosshairs(h)),!o.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(_&&(u-=o.tooltipRect.ttWidth)<0&&(u=0),!_||n.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(p=p+m-2*(n.globals.series[t][y]<0?m:0)),p=p+n.globals.translateY-o.tooltipRect.ttHeight/2,l.style.left=u+n.globals.translateX+"px",l.style.top=p+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,s=e.e,i=e.opt,a=this.w,n=null,o=this.ttCtx,l=0,h=0,u=0,p=0,g=0,m=s.target.classList;if(m.contains("apexcharts-bar-area")||m.contains("apexcharts-candlestick-area")||m.contains("apexcharts-boxPlot-area")||m.contains("apexcharts-rangebar-area")){var y=s.target,k=y.getBoundingClientRect(),_=i.elGrid.getBoundingClientRect(),D=k.height;g=k.height;var I=k.width,c=parseInt(y.getAttribute("cx"),10),f=parseInt(y.getAttribute("cy"),10);p=parseFloat(y.getAttribute("barWidth"));var w=s.type==="touchmove"?s.touches[0].clientX:s.clientX;n=parseInt(y.getAttribute("j"),10),l=parseInt(y.parentNode.getAttribute("rel"),10)-1;var L=y.getAttribute("data-range-y1"),z=y.getAttribute("data-range-y2");a.globals.comboCharts&&(l=parseInt(y.parentNode.getAttribute("data:realIndex"),10));var M=function(V){return a.globals.isXNumeric?c-I/2:t.isVerticalGroupedRangeBar?c+I/2:c-o.dataPointsDividedWidth+I/2},F=function(){return f-o.dataPointsDividedHeight+D/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:n,y1:L?parseInt(L,10):null,y2:z?parseInt(z,10):null,shared:!o.showOnIntersect&&a.config.tooltip.shared,e:s}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(h=w-_.left+15,u=F()):(h=M(),u=s.clientY-_.top-o.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((h=c)<o.xyRatios.baseLineInvertedY&&(h=c-o.tooltipRect.ttWidth),u=F()):(h=M(),u=f)}return{x:h,y:u,barHeight:g,barWidth:p,i:l,j:n}}}]),E}(),nu=function(){function E(e){C(this,E),this.w=e.w,this.ttCtx=e}return S(E,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,s=e.config.xaxis.position==="bottom";t.xaxisOffY=s?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var i=s?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=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),a.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,s=function(a){var n=e.config.yaxis[a].opposite||e.config.yaxis[a].crosshairs.opposite;t.yaxisOffX=n?e.globals.gridWidth+1:1;var o="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(a,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");e.globals.yAxisSameScaleIndices.map(function(h,u){h.map(function(p,g){g===a&&(o+=e.config.yaxis[g].show?" ":" apexcharts-yaxistooltip-hidden")})});var l=e.globals.dom.elWrap;e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(a))===null&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",o+" apexcharts-theme-"+e.config.tooltip.theme),l.appendChild(t.yaxisTooltip),a===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[a]=document.createElement("div"),t.yaxisTooltipText[a].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[a]))},i=0;i<e.config.yaxis.length;i++)s(i)}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,s=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 a=parseFloat(i.getAttribute("barWidth"));t.xcrosshairsWidth=a}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 o=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/o}else if(e.config.xaxis.crosshairs.width==="barWidth"){var l=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(l!==null){var h=parseFloat(l.getAttribute("barWidth"));t.xcrosshairsWidth=h}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),s!==null&&t.xcrosshairsWidth>0&&s.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,s){var i=this.ttCtx,a=this.w,n=a.globals.yLabelFormatters[e];if(i.yaxisTooltips[e]){var o=i.getElGrid().getBoundingClientRect(),l=(t-o.top)*s.yRatio[e],h=a.globals.maxYArr[e]-a.globals.minYArr[e],u=a.globals.minYArr[e]+(h-l);i.tooltipPosition.moveYCrosshairs(t-o.top),i.yaxisTooltipText[e].innerHTML=n(u),i.tooltipPosition.moveYAxisTooltip(e)}}}]),E}(),Ui=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new Gi(this),this.tooltipLabels=new su(this),this.tooltipPosition=new ji(this),this.marker=new iu(this),this.intersect=new au(this),this.axesTooltip=new nu(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 S(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,o){return!!(n.show&&n.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var s=document.createElement("div");if(s.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&s.classList.add(t.config.tooltip.cssClass),s.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(s),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var i=new Xe(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,s.appendChild(this.tooltipTitle));var a=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,s=this.w,i=[],a=this.getElTooltip(),n=function(l){var h=document.createElement("div");h.classList.add("apexcharts-tooltip-series-group"),h.style.order=s.config.tooltip.inverseOrder?e-l:l+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(l)<0&&h.classList.add("apexcharts-tooltip-series-group-hidden");var u=document.createElement("span");u.classList.add("apexcharts-tooltip-marker"),u.style.backgroundColor=s.globals.colors[l],h.appendChild(u);var p=document.createElement("div");p.classList.add("apexcharts-tooltip-text"),p.style.fontFamily=t.tConfig.style.fontFamily||s.config.chart.fontFamily,p.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(g){var m=document.createElement("div");m.classList.add("apexcharts-tooltip-".concat(g,"-group"));var y=document.createElement("span");y.classList.add("apexcharts-tooltip-text-".concat(g,"-label")),m.appendChild(y);var k=document.createElement("span");k.classList.add("apexcharts-tooltip-text-".concat(g,"-value")),m.appendChild(k),p.appendChild(m)}),h.appendChild(p),a.appendChild(h),i.push(h)},o=0;o<e;o++)n(o);return i}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,s=this.getElTooltip(),i=!(t!=="bar"&&t!=="candlestick"&&t!=="boxPlot"&&t!=="rangeBar"),a=t==="area"||t==="line"||t==="scatter"||t==="bubble"||t==="radar",n=e.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var l,h=[],u=[],p={hoverArea:n,elGrid:o,tooltipEl:s,tooltipY:h,tooltipX:u,ttItems:this.ttItems};if(e.globals.axisCharts&&(a?l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?l=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"||(l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),l&&l.length))for(var g=0;g<l.length;g++)h.push(l[g].getAttribute("cy")),u.push(l[g].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([n],p);else if(i&&!e.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(p);else if(!e.globals.axisCharts||t==="heatmap"||t==="treemap"){var m=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(m,p)}if(this.showOnIntersect){var y=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");y.length>0&&this.addPathsEventListeners(y,p),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(p)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),s=t.getBoundingClientRect(),i=s.width+10,a=s.height+10,n=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,l=this.tConfig.fixed.position.toLowerCase();return l.indexOf("right")>-1&&(n=n+e.globals.svgWidth-i+10),l.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-a-10),t.style.left=n+"px",t.style.top=o+"px",{x:n,y:o,ttWidth:i,ttHeight:a}}},{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 s=this,i=function(n){var o={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(l){return e[n].addEventListener(l,s.onSeriesHover.bind(s,o),{capture:!1,passive:!0})})},a=0;a<e.length;a++)i(a)}},{key:"onSeriesHover",value:function(e,t){var s=this,i=Date.now()-this.lastHoverTime;i>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){s.seriesHover(e,t)},100-i))}},{key:"seriesHover",value:function(e,t){var s=this;this.lastHoverTime=Date.now();var i=[],a=this.w;a.config.chart.group&&(i=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||a.globals.dataPoints===0)||(i.length?i.forEach(function(n){var o=s.getElTooltip(n),l={paths:e.paths,tooltipEl:o,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===s.w.globals.minX&&n.w.globals.maxX===s.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:l,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,s=e.ttCtx,i=e.opt,a=e.e,n=t.w,o=this.getElTooltip();o&&(s.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},s.e=a,s.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!s.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new oe(t).toggleSeriesOnHover(a,a.target.parentNode),s.fixedTooltip&&s.drawFixedTooltipRect(),n.globals.axisCharts?s.axisChartsTooltips({e:a,opt:i,tooltipRect:s.tooltipRect}):s.nonAxisChartsTooltips({e:a,opt:i,tooltipRect:s.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,s,i=e.e,a=e.opt,n=this.w,o=a.elGrid.getBoundingClientRect(),l=i.type==="touchmove"?i.touches[0].clientX:i.clientX,h=i.type==="touchmove"?i.touches[0].clientY:i.clientY;if(this.clientY=h,this.clientX=l,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,h<o.top||h>o.top+o.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var u=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(u)<0)return void this.handleMouseOut(a)}var p=this.getElTooltip(),g=this.getElXCrosshairs(),m=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;g!==null&&g.classList.add("apexcharts-active");var y=this.yaxisTooltips.filter(function(D){return D===!0});if(this.ycrosshairs!==null&&y.length&&this.ycrosshairs.classList.add("apexcharts-active"),m&&!this.showOnIntersect)this.handleStickyTooltip(i,l,h,a);else if(n.config.chart.type==="heatmap"||n.config.chart.type==="treemap"){var k=this.intersect.handleHeatTreeTooltip({e:i,opt:a,x:t,y:s,type:n.config.chart.type});t=k.x,s=k.y,p.style.left=t+"px",p.style.top=s+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:i,opt:a}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:i,opt:a,x:t,y:s});if(this.yaxisTooltips.length)for(var _=0;_<n.config.yaxis.length;_++)this.axesTooltip.drawYaxisTooltipText(_,h,this.xyRatios);a.tooltipEl.classList.add("apexcharts-active")}else i.type!=="mouseout"&&i.type!=="touchend"||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,s=e.opt,i=e.tooltipRect,a=this.w,n=s.paths.getAttribute("rel"),o=this.getElTooltip(),l=a.globals.dom.elWrap.getBoundingClientRect();if(t.type==="mousemove"||t.type==="touchmove"){o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:parseInt(n,10)-1,shared:!1});var h=a.globals.clientX-l.left-i.ttWidth/2,u=a.globals.clientY-l.top-i.ttHeight-10;if(o.style.left=h+"px",o.style.top=u+"px",a.config.legend.tooltipHoverFormatter){var p=n-1,g=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[p].getAttribute("data:default-text"),{seriesIndex:p,dataPointIndex:p,w:a});this.legendLabels[p].innerHTML=g}}else t.type!=="mouseout"&&t.type!=="touchend"||(o.classList.remove("apexcharts-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(m){var y=m.getAttribute("data:default-text");m.innerHTML=decodeURIComponent(y)}))}},{key:"handleStickyTooltip",value:function(e,t,s,i){var a=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:t,clientY:s}),o=n.j,l=n.capturedSeries;a.globals.collapsedSeriesIndices.includes(l)&&(l=null);var h=i.elGrid.getBoundingClientRect();if(n.hoverX<0||n.hoverX>h.width)this.handleMouseOut(i);else if(l!==null)this.handleStickyCapturedSeries(e,l,i,o);else if(this.tooltipUtil.isXoverlap(o)||a.globals.isBarHorizontal){var u=a.globals.series.findIndex(function(p,g){return!a.globals.collapsedSeriesIndices.includes(g)});this.create(e,this,u,o,i.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,s,i){var a=this.w;if(!this.tConfig.shared&&a.globals.series[t][i]===null)return void this.handleMouseOut(s);if(a.globals.series[t][i]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,i,s.ttItems):this.create(e,this,t,i,s.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){var n=a.globals.series.findIndex(function(o,l){return!a.globals.collapsedSeriesIndices.includes(l)});this.create(e,this,n,i,s.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new Y(this.ctx),s=e.globals.dom.Paper.select(".apexcharts-bar-area"),i=0;i<s.length;i++)t.pathMouseLeave(s[i])}},{key:"handleMouseOut",value:function(e){var t=this.w,s=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),t.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),s!==null&&s.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(a){var n=a.getAttribute("data:default-text");a.innerHTML=decodeURIComponent(n)})}},{key:"markerClick",value:function(e,t,s){var i=this.w;typeof i.config.chart.events.markerClick=="function"&&i.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:s,w:i}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:s,w:i}])}},{key:"create",value:function(e,t,s,i,a){var n,o,l,h,u,p,g,m,y,k,_,D,I,c,f,w,L=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,z=this.w,M=t;e.type==="mouseup"&&this.markerClick(e,s,i),L===null&&(L=this.tConfig.shared);var F=this.tooltipUtil.hasMarkers(s),V=this.tooltipUtil.getElBars();if(z.config.legend.tooltipHoverFormatter){var W=z.config.legend.tooltipHoverFormatter,j=Array.from(this.legendLabels);j.forEach(function(Je){var it=Je.getAttribute("data:default-text");Je.innerHTML=decodeURIComponent(it)});for(var G=0;G<j.length;G++){var Z=j[G],se=parseInt(Z.getAttribute("i"),10),ne=decodeURIComponent(Z.getAttribute("data:default-text")),le=W(ne,{seriesIndex:L?se:s,dataPointIndex:i,w:z});if(L)Z.innerHTML=z.globals.collapsedSeriesIndices.indexOf(se)<0?le:ne;else if(Z.innerHTML=se===s?le:ne,s===se)break}}var de=v(v({ttItems:a,i:s,j:i},((n=z.globals.seriesRange)===null||n===void 0||(o=n[s])===null||o===void 0||(l=o[i])===null||l===void 0||(h=l.y[0])===null||h===void 0?void 0:h.y1)!==void 0&&{y1:(u=z.globals.seriesRange)===null||u===void 0||(p=u[s])===null||p===void 0||(g=p[i])===null||g===void 0||(m=g.y[0])===null||m===void 0?void 0:m.y1}),((y=z.globals.seriesRange)===null||y===void 0||(k=y[s])===null||k===void 0||(_=k[i])===null||_===void 0||(D=_.y[0])===null||D===void 0?void 0:D.y2)!==void 0&&{y2:(I=z.globals.seriesRange)===null||I===void 0||(c=I[s])===null||c===void 0||(f=c[i])===null||f===void 0||(w=f.y[0])===null||w===void 0?void 0:w.y2});if(L){if(M.tooltipLabels.drawSeriesTexts(v(v({},de),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),F)z.globals.markers.largestSize>0?M.marker.enlargePoints(i):M.tooltipPosition.moveDynamicPointsOnHover(i);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(V),this.barSeriesHeight>0)){var ve=new Y(this.ctx),me=z.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(i,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(i,s);for(var ye=0;ye<me.length;ye++)ve.pathMouseEnter(me[ye])}}else M.tooltipLabels.drawSeriesTexts(v({shared:!1},de)),this.tooltipUtil.hasBars()&&M.tooltipPosition.moveStickyTooltipOverBars(i,s),F&&M.tooltipPosition.moveMarkers(s,i)}}]),E}(),ou=function(){function E(e){C(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 S(E,[{key:"handleBarDataLabels",value:function(e){var t=e.x,s=e.y,i=e.y1,a=e.y2,n=e.i,o=e.j,l=e.realIndex,h=e.groupIndex,u=e.series,p=e.barHeight,g=e.barWidth,m=e.barXPosition,y=e.barYPosition,k=e.visibleSeries,_=e.renderedPath,D=this.w,I=new Y(this.barCtx.ctx),c=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[l]:this.barCtx.strokeWidth,f=t+parseFloat(g*k),w=s+parseFloat(p*k);D.globals.isXNumeric&&!D.globals.isBarHorizontal&&(f=t+parseFloat(g*(k+1)),w=s+parseFloat(p*(k+1))-c);var L,z=null,M=t,F=s,V={},W=D.config.dataLabels,j=this.barCtx.barOptions.dataLabels,G=this.barCtx.barOptions.dataLabels.total;y!==void 0&&this.barCtx.isRangeBar&&(w=y,F=y),m!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(f=m,M=m);var Z=W.offsetX,se=W.offsetY,ne={width:0,height:0};if(D.config.dataLabels.enabled){var le=this.barCtx.series[n][o];ne=I.getTextRects(D.globals.yLabelFormatters[0](le),parseFloat(W.style.fontSize))}var de={x:t,y:s,i:n,j:o,realIndex:l,groupIndex:h||-1,renderedPath:_,bcx:f,bcy:w,barHeight:p,barWidth:g,textRects:ne,strokeWidth:c,dataLabelsX:M,dataLabelsY:F,dataLabelsConfig:W,barDataLabelsConfig:j,barTotalDataLabelsConfig:G,offX:Z,offY:se};return V=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(de):this.calculateColumnsDataLabelsPosition(de),_.attr({cy:V.bcy,cx:V.bcx,j:o,val:u[n][o],barHeight:p,barWidth:g}),L=this.drawCalculatedDataLabels({x:V.dataLabelsX,y:V.dataLabelsY,val:this.barCtx.isRangeBar?[i,a]:u[n][o],i:l,j:o,barWidth:g,barHeight:p,textRects:ne,dataLabelsConfig:W}),D.config.chart.stacked&&G.enabled&&(z=this.drawTotalDataLabels({x:V.totalDataLabelsX,y:V.totalDataLabelsY,realIndex:l,textAnchor:V.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:l,j:o}),dataLabelsConfig:W,barTotalDataLabelsConfig:G})),{dataLabels:L,totalDataLabels:z}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,s=e.j,i=this.w,a=this.barCtx.stackedSeriesTotals[s];return this.totalFormatter&&(a=this.totalFormatter(a,v(v({},i),{},{seriesIndex:t,dataPointIndex:s,w:i}))),a}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,s,i=this.w,a=e.i,n=e.j,o=e.realIndex,l=e.groupIndex,h=e.y,u=e.bcx,p=e.barWidth,g=e.barHeight,m=e.textRects,y=e.dataLabelsX,k=e.dataLabelsY,_=e.dataLabelsConfig,D=e.barDataLabelsConfig,I=e.barTotalDataLabelsConfig,c=e.strokeWidth,f=e.offX,w=e.offY;g=Math.abs(g);var L=i.config.plotOptions.bar.dataLabels.orientation==="vertical";u=u-c/2+(l!==-1?l*p:0);var z=i.globals.gridWidth/i.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?y+=p/2:y=i.globals.isXNumeric?u-p/2+f:u-z+p/2+f,L&&(y=y+m.height/2-c/2-2);var M=this.barCtx.series[a][n]<0,F=h;switch(this.barCtx.isReversed&&(F=h-g+(M?2*g:0),h-=g),D.position){case"center":k=L?M?F+g/2+w:F+g/2-w:M?F-g/2+m.height/2+w:F+g/2+m.height/2-w;break;case"bottom":k=L?M?F+g+w:F+g-w:M?F-g+m.height+c+w:F+g-m.height/2+c-w;break;case"top":k=L?M?F+w:F-w:M?F-m.height/2-w:F+m.height+w}if(this.barCtx.lastActiveBarSerieIndex===o&&I.enabled){var V=new Y(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:n}),_.fontSize);t=M?F-V.height/2-w-I.offsetY+18:F+V.height+w+I.offsetY-18,s=y+I.offsetX}return i.config.chart.stacked||(k<0?k=0+c:k+m.height/3>i.globals.gridHeight&&(k=i.globals.gridHeight-c)),{bcx:u,bcy:h,dataLabelsX:y,dataLabelsY:k,totalDataLabelsX:s,totalDataLabelsY:t,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,s=e.x,i=e.i,a=e.j,n=e.realIndex,o=e.groupIndex,l=e.bcy,h=e.barHeight,u=e.barWidth,p=e.textRects,g=e.dataLabelsX,m=e.strokeWidth,y=e.dataLabelsConfig,k=e.barDataLabelsConfig,_=e.barTotalDataLabelsConfig,D=e.offX,I=e.offY,c=t.globals.gridHeight/t.globals.dataPoints;u=Math.abs(u);var f,w,L=(l+=o!==-1?o*h:0)-(this.barCtx.isRangeBar?0:c)+h/2+p.height/2+I-3,z="start",M=this.barCtx.series[i][a]<0,F=s;switch(this.barCtx.isReversed&&(F=s+u-(M?2*u:0),s=t.globals.gridWidth-u),k.position){case"center":g=M?F+u/2-D:Math.max(p.width/2,F-u/2)+D;break;case"bottom":g=M?F+u-m-Math.round(p.width/2)-D:F-u+m+Math.round(p.width/2)+D;break;case"top":g=M?F-m+Math.round(p.width/2)-D:F-m-Math.round(p.width/2)+D}if(this.barCtx.lastActiveBarSerieIndex===n&&_.enabled){var V=new Y(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:a}),y.fontSize);M?(f=F-m+Math.round(V.width/2)-D-_.offsetX-15,z="end"):f=F-m-Math.round(V.width/2)+D+_.offsetX+15,w=L+_.offsetY}return t.config.chart.stacked||(g<0?g=g+p.width+m:g+p.width/2>t.globals.gridWidth&&(g=t.globals.gridWidth-p.width-m)),{bcx:s,bcy:l,dataLabelsX:g,dataLabelsY:L,totalDataLabelsX:f,totalDataLabelsY:w,totalDataLabelsAnchor:z}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,s=e.y,i=e.val,a=e.i,n=e.j,o=e.textRects,l=e.barHeight,h=e.barWidth,u=e.dataLabelsConfig,p=this.w,g="rotate(0)";p.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(g="rotate(-90, ".concat(t,", ").concat(s,")"));var m=new ie(this.barCtx.ctx),y=new Y(this.barCtx.ctx),k=u.formatter,_=null,D=p.globals.collapsedSeriesIndices.indexOf(a)>-1;if(u.enabled&&!D){_=y.group({class:"apexcharts-data-labels",transform:g});var I="";i!==void 0&&(I=k(i,v(v({},p),{},{seriesIndex:a,dataPointIndex:n,w:p}))),!i&&p.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(I="");var c=p.globals.series[a][n]<0,f=p.config.plotOptions.bar.dataLabels.position;p.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(f==="top"&&(u.textAnchor=c?"end":"start"),f==="center"&&(u.textAnchor="middle"),f==="bottom"&&(u.textAnchor=c?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&h<y.getTextRects(I,parseFloat(u.style.fontSize)).width&&(I=""),p.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(h)&&(I=""):o.height/1.6>Math.abs(l)&&(I=""));var w=v({},u);this.barCtx.isHorizontal&&i<0&&(u.textAnchor==="start"?w.textAnchor="end":u.textAnchor==="end"&&(w.textAnchor="start")),m.plotDataLabelsText({x:t,y:s,text:I,i:a,j:n,parent:_,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return _}},{key:"drawTotalDataLabels",value:function(e){var t,s=e.x,i=e.y,a=e.val,n=e.realIndex,o=e.textAnchor,l=e.barTotalDataLabelsConfig,h=new Y(this.barCtx.ctx);return l.enabled&&s!==void 0&&i!==void 0&&this.barCtx.lastActiveBarSerieIndex===n&&(t=h.drawText({x:s,y:i,foreColor:l.style.color,text:a,textAnchor:o,fontFamily:l.style.fontFamily,fontSize:l.style.fontSize,fontWeight:l.style.fontWeight})),t}}]),E}(),ru=function(){function E(e){C(this,E),this.w=e.w,this.barCtx=e}return S(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 s=0;s<e.length;s++)if(e[s].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[s].length),t.globals.isXNumeric)for(var i=0;i<e[s].length;i++)t.globals.seriesX[s][i]>t.globals.minX&&t.globals.seriesX[s][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,s,i,a,n,o,l,h=this.w,u=h.globals.dataPoints;this.barCtx.isRangeBar&&(u=h.globals.labels.length);var p=this.barCtx.seriesLen;if(h.config.plotOptions.bar.rangeBarGroupRows&&(p=1),this.barCtx.isHorizontal)a=(s=h.globals.gridHeight/u)/p,h.globals.isXNumeric&&(a=(s=h.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),a=a*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(a=parseInt(this.barCtx.barOptions.barHeight,10)),l=this.barCtx.baseLineInvertedY+h.globals.padHorizontal+(this.barCtx.isReversed?h.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(l=h.globals.gridWidth/2),t=(s-a*this.barCtx.seriesLen)/2;else{if(i=h.globals.gridWidth/this.barCtx.visibleItems,h.config.xaxis.convertedCatToNumeric&&(i=h.globals.gridWidth/h.globals.dataPoints),n=i/p*parseInt(this.barCtx.barOptions.columnWidth,10)/100,h.globals.isXNumeric){var g=this.barCtx.xRatio;h.config.xaxis.convertedCatToNumeric&&(g=this.barCtx.initialXRatio),h.globals.minXDiff&&h.globals.minXDiff!==.5&&h.globals.minXDiff/g>0&&(i=h.globals.minXDiff/g),(n=i/p*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(n=parseInt(this.barCtx.barOptions.columnWidth,10)),o=h.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?h.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=h.globals.padHorizontal+(i-n*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:s,xDivision:i,barHeight:a,barWidth:n,zeroH:o,zeroW:l}}},{key:"initializeStackedPrevVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach(function(s){e[s]||(e[s]={}),e[s].prevY=[],e[s].prevX=[],e[s].prevYF=[],e[s].prevXF=[],e[s].prevYVal=[],e[s].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(s){e[s]||(e[s]={}),e[s].xArrj=[],e[s].xArrjF=[],e[s].xArrjVal=[],e[s].yArrj=[],e[s].yArrjF=[],e[s].yArrjVal=[]}):(e.xArrj=[],e.xArrjF=[],e.xArrjVal=[],e.yArrj=[],e.yArrjF=[],e.yArrjVal=[])}},{key:"getPathFillColor",value:function(e,t,s,i){var a,n,o,l,h=this.w,u=new _e(this.barCtx.ctx),p=null,g=this.barCtx.barOptions.distributed?s:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(m){e[t][s]>=m.from&&e[t][s]<=m.to&&(p=m.color)}),h.config.series[t].data[s]&&h.config.series[t].data[s].fillColor&&(p=h.config.series[t].data[s].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?g:i,dataPointIndex:s,color:p,value:e[t][s],fillConfig:(a=h.config.series[t].data[s])===null||a===void 0?void 0:a.fill,fillType:(n=h.config.series[t].data[s])!==null&&n!==void 0&&(o=n.fill)!==null&&o!==void 0&&o.type?(l=h.config.series[t].data[s])===null||l===void 0?void 0:l.fill.type:h.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,s){var i=0,a=this.w;return this.barCtx.series[e][t]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,a.config.stroke.show&&(this.barCtx.isNullValue||(i=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[s]:this.barCtx.strokeWidth)),i}},{key:"shouldApplyRadius",value:function(e){var t=this.w,s=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&t.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===e&&(s=!0):s=!0),s}},{key:"barBackground",value:function(e){var t=e.j,s=e.i,i=e.x1,a=e.x2,n=e.y1,o=e.y2,l=e.elSeries,h=this.w,u=new Y(this.barCtx.ctx),p=new oe(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&p===s){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var g=this.barCtx.barOptions.colors.backgroundBarColors[t],m=u.drawRect(i!==void 0?i:0,n!==void 0?n:0,a!==void 0?a:h.globals.gridWidth,o!==void 0?o:h.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,g,this.barCtx.barOptions.colors.backgroundBarOpacity);l.add(m),m.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,s=e.barWidth,i=e.barXPosition,a=e.y1,n=e.y2,o=e.strokeWidth,l=e.seriesGroup,h=e.realIndex,u=e.i,p=e.j,g=e.w,m=new Y(this.barCtx.ctx);(o=Array.isArray(o)?o[h]:o)||(o=0);var y=s,k=i;(t=g.config.series[h].data[p])!==null&&t!==void 0&&t.columnWidthOffset&&(k=i-g.config.series[h].data[p].columnWidthOffset/2,y=s+g.config.series[h].data[p].columnWidthOffset);var _=k,D=k+y;a+=.001,n+=.001;var I=m.move(_,a),c=m.move(_,a),f=m.line(D-o,a);if(g.globals.previousPaths.length>0&&(c=this.barCtx.getPreviousPath(h,p,!1)),I=I+m.line(_,n)+m.line(D-o,n)+m.line(D-o,a)+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),c=c+m.line(_,a)+f+f+f+f+f+m.line(_,a)+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(h)&&(I=m.roundPathCorners(I,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var w=this.barCtx;g.globals.hasSeriesGroups&&l&&(w=this.barCtx[l]),w.yArrj.push(n),w.yArrjF.push(Math.abs(a-n)),w.yArrjVal.push(this.barCtx.series[u][p])}return{pathTo:I,pathFrom:c}}},{key:"getBarpaths",value:function(e){var t,s=e.barYPosition,i=e.barHeight,a=e.x1,n=e.x2,o=e.strokeWidth,l=e.seriesGroup,h=e.realIndex,u=e.i,p=e.j,g=e.w,m=new Y(this.barCtx.ctx);(o=Array.isArray(o)?o[h]:o)||(o=0);var y=s,k=i;(t=g.config.series[h].data[p])!==null&&t!==void 0&&t.barHeightOffset&&(y=s-g.config.series[h].data[p].barHeightOffset/2,k=i+g.config.series[h].data[p].barHeightOffset);var _=y,D=y+k;a+=.001,n+=.001;var I=m.move(a,_),c=m.move(a,_);g.globals.previousPaths.length>0&&(c=this.barCtx.getPreviousPath(h,p,!1));var f=m.line(a,D-o);if(I=I+m.line(n,_)+m.line(n,D-o)+f+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),c=c+m.line(a,_)+f+f+f+f+f+m.line(a,_)+(g.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(h)&&(I=m.roundPathCorners(I,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var w=this.barCtx;g.globals.hasSeriesGroups&&l&&(w=this.barCtx[l]),w.xArrj.push(n),w.xArrjF.push(Math.abs(a-n)),w.xArrjVal.push(this.barCtx.series[u][p])}return{pathTo:I,pathFrom:c}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,s=this.w,i=0;i<t.length;i++){for(var a=0,n=0;n<t[s.globals.maxValsInArrayIndex].length;n++)a+=t[i][n];a===0&&this.barCtx.zeroSerieses.push(i)}}},{key:"getXForValue",value:function(e,t){var s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?t:null;return e!=null&&(s=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),s}},{key:"getYForValue",value:function(e,t){var s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?t:null;return e!=null&&(s=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),s}},{key:"getGoalValues",value:function(e,t,s,i,a){var n=this,o=this.w,l=[],h=function(g,m){var y;l.push((P(y={},e,e==="x"?n.getXForValue(g,t,!1):n.getYForValue(g,s,!1)),P(y,"attrs",m),y))};if(o.globals.seriesGoals[i]&&o.globals.seriesGoals[i][a]&&Array.isArray(o.globals.seriesGoals[i][a])&&o.globals.seriesGoals[i][a].forEach(function(g){h(g.value,g)}),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var u=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,p={strokeHeight:e==="x"?0:o.globals.markers.size[i],strokeWidth:e==="x"?o.globals.markers.size[i]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(u[i])?u[i][0]:u[i]};h(o.globals.seriesRangeStart[i][a],p),h(o.globals.seriesRangeEnd[i][a],v(v({},p),{},{strokeColor:Array.isArray(u[i])?u[i][1]:u[i]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,s=e.barYPosition,i=e.goalX,a=e.goalY,n=e.barWidth,o=e.barHeight,l=new Y(this.barCtx.ctx),h=l.group({className:"apexcharts-bar-goals-groups"});h.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:h.node}),h.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var u=null;return this.barCtx.isHorizontal?Array.isArray(i)&&i.forEach(function(p){var g=p.attrs.strokeHeight!==void 0?p.attrs.strokeHeight:o/2,m=s+g+o/2;u=l.drawLine(p.x,m-2*g,p.x,m,p.attrs.strokeColor?p.attrs.strokeColor:void 0,p.attrs.strokeDashArray,p.attrs.strokeWidth?p.attrs.strokeWidth:2,p.attrs.strokeLineCap),h.add(u)}):Array.isArray(a)&&a.forEach(function(p){var g=p.attrs.strokeWidth!==void 0?p.attrs.strokeWidth:n/2,m=t+g+n/2;u=l.drawLine(m-2*g,p.y,m,p.y,p.attrs.strokeColor?p.attrs.strokeColor:void 0,p.attrs.strokeDashArray,p.attrs.strokeHeight?p.attrs.strokeHeight:2,p.attrs.strokeLineCap),h.add(u)}),h}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,s=e.currPaths,i=e.color,a=this.w,n=t.x,o=t.x1,l=t.barYPosition,h=s.x,u=s.x1,p=s.barYPosition,g=l+s.barHeight,m=new Y(this.barCtx.ctx),y=new R,k=m.move(o,g)+m.line(n,g)+m.line(h,p)+m.line(u,p)+m.line(o,g)+(a.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return m.drawPath({d:k,fill:y.shadeColor(.5,R.rgb2hex(i)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}}]),E}(),dt=function(){function E(e,t){C(this,E),this.ctx=e,this.w=e.w;var s=this.w;this.barOptions=s.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=s.config.stroke.width,this.isNullValue=!1,this.isRangeBar=s.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!s.globals.isBarHorizontal&&s.globals.seriesRange.length&&s.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 oe(this.ctx);this.lastActiveBarSerieIndex=i.getActiveConfigSeriesIndex("desc",["bar","column"]);var a=i.getBarSeriesIndices(),n=new K(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map(function(o,l){return a.indexOf(l)===-1?l:-1}).filter(function(o){return o!==-1})),this.barHelpers=new ru(this)}return S(E,[{key:"draw",value:function(e,t){var s=this.w,i=new Y(this.ctx),a=new K(this.ctx,s);e=a.getLogSeries(e),this.series=e,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=i.group({class:"apexcharts-bar-series apexcharts-plot-series"});s.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 o=0,l=0;o<e.length;o++,l++){var h,u,p,g,m=void 0,y=void 0,k=[],_=[],D=s.globals.comboCharts?t[o]:o,I=i.group({class:"apexcharts-series",rel:o+1,seriesName:R.escapeString(s.globals.seriesNames[D]),"data:realIndex":D});this.ctx.series.addCollapsedClassToSeries(I,D),e[o].length>0&&(this.visibleI=this.visibleI+1);var c=0,f=0;this.yRatio.length>1&&(this.yaxisIndex=D),this.isReversed=s.config.yaxis[this.yaxisIndex]&&s.config.yaxis[this.yaxisIndex].reversed;var w=this.barHelpers.initialPositions();y=w.y,c=w.barHeight,u=w.yDivision,g=w.zeroW,m=w.x,f=w.barWidth,h=w.xDivision,p=w.zeroH,this.horizontal||_.push(m+f/2);var L=i.group({class:"apexcharts-datalabels","data:realIndex":D});s.globals.delayedElements.push({el:L.node}),L.node.classList.add("apexcharts-element-hidden");var z=i.group({class:"apexcharts-bar-goals-markers"}),M=i.group({class:"apexcharts-bar-shadows"});s.globals.delayedElements.push({el:M.node}),M.node.classList.add("apexcharts-element-hidden");for(var F=0;F<s.globals.dataPoints;F++){var V=this.barHelpers.getStrokeWidth(o,F,D),W=null,j={indexes:{i:o,j:F,realIndex:D,bc:l},x:m,y,strokeWidth:V,elSeries:I};this.isHorizontal?(W=this.drawBarPaths(v(v({},j),{},{barHeight:c,zeroW:g,yDivision:u})),f=this.series[o][F]/this.invertedYRatio):(W=this.drawColumnPaths(v(v({},j),{},{xDivision:h,barWidth:f,zeroH:p})),c=this.series[o][F]/this.yRatio[this.yaxisIndex]);var G=this.barHelpers.getPathFillColor(e,o,F,D);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&F>0){var Z=this.barHelpers.drawBarShadow({color:typeof G=="string"&&(G==null?void 0:G.indexOf("url"))===-1?G:R.hexToRgba(s.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:W});Z&&M.add(Z)}this.pathArr.push(W);var se=this.barHelpers.drawGoalLine({barXPosition:W.barXPosition,barYPosition:W.barYPosition,goalX:W.goalX,goalY:W.goalY,barHeight:c,barWidth:f});se&&z.add(se),y=W.y,m=W.x,F>0&&_.push(m+f/2),k.push(y),this.renderSeries({realIndex:D,pathFill:G,j:F,i:o,pathFrom:W.pathFrom,pathTo:W.pathTo,strokeWidth:V,elSeries:I,x:m,y,series:e,barHeight:W.barHeight?W.barHeight:c,barWidth:W.barWidth?W.barWidth:f,elDataLabelsWrap:L,elGoalsMarkers:z,elBarShadows:M,visibleSeries:this.visibleI,type:"bar"})}s.globals.seriesXvalues[D]=_,s.globals.seriesYvalues[D]=k,n.add(I)}return n}},{key:"renderSeries",value:function(e){var t=e.realIndex,s=e.pathFill,i=e.lineFill,a=e.j,n=e.i,o=e.groupIndex,l=e.pathFrom,h=e.pathTo,u=e.strokeWidth,p=e.elSeries,g=e.x,m=e.y,y=e.y1,k=e.y2,_=e.series,D=e.barHeight,I=e.barWidth,c=e.barXPosition,f=e.barYPosition,w=e.elDataLabelsWrap,L=e.elGoalsMarkers,z=e.elBarShadows,M=e.visibleSeries,F=e.type,V=this.w,W=new Y(this.ctx);i||(i=this.barOptions.distributed?V.globals.stroke.colors[a]:V.globals.stroke.colors[t]),V.config.series[n].data[a]&&V.config.series[n].data[a].strokeColor&&(i=V.config.series[n].data[a].strokeColor),this.isNullValue&&(s="none");var j=a/V.config.chart.animations.animateGradually.delay*(V.config.chart.animations.speed/V.globals.dataPoints)/2.4,G=W.renderPaths({i:n,j:a,realIndex:t,pathFrom:l,pathTo:h,stroke:i,strokeWidth:u,strokeLineCap:V.config.stroke.lineCap,fill:s,animationDelay:j,initialSpeed:V.config.chart.animations.speed,dataChangeSpeed:V.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(F,"-area")});G.attr("clip-path","url(#gridRectMask".concat(V.globals.cuid,")"));var Z=V.config.forecastDataPoints;Z.count>0&&a>=V.globals.dataPoints-Z.count&&(G.node.setAttribute("stroke-dasharray",Z.dashArray),G.node.setAttribute("stroke-width",Z.strokeWidth),G.node.setAttribute("fill-opacity",Z.fillOpacity)),y!==void 0&&k!==void 0&&(G.attr("data-range-y1",y),G.attr("data-range-y2",k)),new ee(this.ctx).setSelectionFilter(G,t,a),p.add(G);var se=new ou(this).handleBarDataLabels({x:g,y:m,y1:y,y2:k,i:n,j:a,series:_,realIndex:t,groupIndex:o,barHeight:D,barWidth:I,barXPosition:c,barYPosition:f,renderedPath:G,visibleSeries:M});return se.dataLabels!==null&&w.add(se.dataLabels),se.totalDataLabels&&w.add(se.totalDataLabels),p.add(w),L&&p.add(L),z&&p.add(z),p}},{key:"drawBarPaths",value:function(e){var t,s=e.indexes,i=e.barHeight,a=e.strokeWidth,n=e.zeroW,o=e.x,l=e.y,h=e.yDivision,u=e.elSeries,p=this.w,g=s.i,m=s.j;if(p.globals.isXNumeric)t=(l=(p.globals.seriesX[g][m]-p.globals.minX)/this.invertedXRatio-i)+i*this.visibleI;else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var y=0,k=0;p.globals.seriesPercent.forEach(function(D,I){D[m]&&y++,I<g&&D[m]===0&&k++}),y>0&&(i=this.seriesLen*i/y),t=l+i*this.visibleI,t-=i*k}else t=l+i*this.visibleI;this.isFunnel&&(n-=(this.barHelpers.getXForValue(this.series[g][m],n)-n)/2),o=this.barHelpers.getXForValue(this.series[g][m],n);var _=this.barHelpers.getBarpaths({barYPosition:t,barHeight:i,x1:n,x2:o,strokeWidth:a,series:this.series,realIndex:s.realIndex,i:g,j:m,w:p});return p.globals.isXNumeric||(l+=h),this.barHelpers.barBackground({j:m,i:g,y1:t-i*this.visibleI,y2:i*this.seriesLen,elSeries:u}),{pathTo:_.pathTo,pathFrom:_.pathFrom,x1:n,x:o,y:l,goalX:this.barHelpers.getGoalValues("x",n,null,g,m),barYPosition:t,barHeight:i}}},{key:"drawColumnPaths",value:function(e){var t,s=e.indexes,i=e.x,a=e.y,n=e.xDivision,o=e.barWidth,l=e.zeroH,h=e.strokeWidth,u=e.elSeries,p=this.w,g=s.realIndex,m=s.i,y=s.j,k=s.bc;if(p.globals.isXNumeric){var _=g;p.globals.seriesX[g].length||(_=p.globals.maxValsInArrayIndex),p.globals.seriesX[_][y]&&(i=(p.globals.seriesX[_][y]-p.globals.minX)/this.xRatio-o*this.seriesLen/2),t=i+o*this.visibleI}else if(p.config.plotOptions.bar.hideZeroBarsWhenGrouped){var D=0,I=0;p.globals.seriesPercent.forEach(function(f,w){f[y]&&D++,w<m&&f[y]===0&&I++}),D>0&&(o=this.seriesLen*o/D),t=i+o*this.visibleI,t-=o*I}else t=i+o*this.visibleI;a=this.barHelpers.getYForValue(this.series[m][y],l);var c=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:o,y1:l,y2:a,strokeWidth:h,series:this.series,realIndex:s.realIndex,i:m,j:y,w:p});return p.globals.isXNumeric||(i+=n),this.barHelpers.barBackground({bc:k,j:y,i:m,x1:t-h/2-o*this.visibleI,x2:o*this.seriesLen+h/2,elSeries:u}),{pathTo:c.pathTo,pathFrom:c.pathFrom,x:i,y:a,goalY:this.barHelpers.getGoalValues("y",null,l,m,y),barXPosition:t,barWidth:o}}},{key:"getPreviousPath",value:function(e,t){for(var s,i=this.w,a=0;a<i.globals.previousPaths.length;a++){var n=i.globals.previousPaths[a];n.paths&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(e,10)&&i.globals.previousPaths[a].paths[t]!==void 0&&(s=i.globals.previousPaths[a].paths[t].d)}return s}}]),E}(),Zi=function(E){N(t,dt);var e=O(t);function t(){return C(this,t),e.apply(this,arguments)}return S(t,[{key:"draw",value:function(s,i){var a=this,n=this.w;this.graphics=new Y(this.ctx),this.bar=new dt(this.ctx,this.xyRatios);var o=new K(this.ctx,n);s=o.getLogSeries(s),this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(s),n.config.chart.stackType==="100%"&&(s=n.globals.seriesPercent.slice()),this.series=s,this.barHelpers.initializeStackedPrevVars(this);for(var l=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),h=0,u=0,p=function(y,k){var _=void 0,D=void 0,I=void 0,c=void 0,f=-1;a.groupCtx=a,n.globals.seriesGroups.forEach(function(me,ye){me.indexOf(n.config.series[y].name)>-1&&(f=ye)}),f!==-1&&(a.groupCtx=a[n.globals.seriesGroups[f]]);var w=[],L=[],z=n.globals.comboCharts?i[y]:y;a.yRatio.length>1&&(a.yaxisIndex=z),a.isReversed=n.config.yaxis[a.yaxisIndex]&&n.config.yaxis[a.yaxisIndex].reversed;var M=a.graphics.group({class:"apexcharts-series",seriesName:R.escapeString(n.globals.seriesNames[z]),rel:y+1,"data:realIndex":z});a.ctx.series.addCollapsedClassToSeries(M,z);var F=a.graphics.group({class:"apexcharts-datalabels","data:realIndex":z}),V=a.graphics.group({class:"apexcharts-bar-goals-markers"}),W=0,j=0,G=a.initialPositions(h,u,_,D,I,c);u=G.y,W=G.barHeight,D=G.yDivision,c=G.zeroW,h=G.x,j=G.barWidth,_=G.xDivision,I=G.zeroH,a.barHelpers.initializeStackedXYVars(a),a.groupCtx.prevY.length===1&&a.groupCtx.prevY[0].every(function(me){return isNaN(me)})&&(a.groupCtx.prevY[0]=a.groupCtx.prevY[0].map(function(me){return I}),a.groupCtx.prevYF[0]=a.groupCtx.prevYF[0].map(function(me){return 0}));for(var Z=0;Z<n.globals.dataPoints;Z++){var se=a.barHelpers.getStrokeWidth(y,Z,z),ne={indexes:{i:y,j:Z,realIndex:z,bc:k},strokeWidth:se,x:h,y:u,elSeries:M,groupIndex:f,seriesGroup:n.globals.seriesGroups[f]},le=null;a.isHorizontal?(le=a.drawStackedBarPaths(v(v({},ne),{},{zeroW:c,barHeight:W,yDivision:D})),j=a.series[y][Z]/a.invertedYRatio):(le=a.drawStackedColumnPaths(v(v({},ne),{},{xDivision:_,barWidth:j,zeroH:I})),W=a.series[y][Z]/a.yRatio[a.yaxisIndex]);var de=a.barHelpers.drawGoalLine({barXPosition:le.barXPosition,barYPosition:le.barYPosition,goalX:le.goalX,goalY:le.goalY,barHeight:W,barWidth:j});de&&V.add(de),u=le.y,h=le.x,w.push(h),L.push(u);var ve=a.barHelpers.getPathFillColor(s,y,Z,z);M=a.renderSeries({realIndex:z,pathFill:ve,j:Z,i:y,groupIndex:f,pathFrom:le.pathFrom,pathTo:le.pathTo,strokeWidth:se,elSeries:M,x:h,y:u,series:s,barHeight:W,barWidth:j,elDataLabelsWrap:F,elGoalsMarkers:V,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[z]=w,n.globals.seriesYvalues[z]=L,a.groupCtx.prevY.push(a.groupCtx.yArrj),a.groupCtx.prevYF.push(a.groupCtx.yArrjF),a.groupCtx.prevYVal.push(a.groupCtx.yArrjVal),a.groupCtx.prevX.push(a.groupCtx.xArrj),a.groupCtx.prevXF.push(a.groupCtx.xArrjF),a.groupCtx.prevXVal.push(a.groupCtx.xArrjVal),l.add(M)},g=0,m=0;g<s.length;g++,m++)p(g,m);return l}},{key:"initialPositions",value:function(s,i,a,n,o,l){var h,u,p,g,m=this.w;return this.isHorizontal?(p=(p=n=m.globals.gridHeight/m.globals.dataPoints)*parseInt(m.config.plotOptions.bar.barHeight,10)/100,String(m.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(p=parseInt(m.config.plotOptions.bar.barHeight,10)),l=this.baseLineInvertedY+m.globals.padHorizontal+(this.isReversed?m.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),i=(n-p)/2):(g=a=m.globals.gridWidth/m.globals.dataPoints,g=m.globals.isXNumeric&&m.globals.dataPoints>1?(a=m.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:g*parseInt(m.config.plotOptions.bar.columnWidth,10)/100,String(m.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(g=parseInt(m.config.plotOptions.bar.columnWidth,10)),o=m.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?m.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),s=m.globals.padHorizontal+(a-g)/2),{x:s,y:i,yDivision:n,xDivision:a,barHeight:(h=m.globals.seriesGroups)!==null&&h!==void 0&&h.length?p/m.globals.seriesGroups.length:p,barWidth:(u=m.globals.seriesGroups)!==null&&u!==void 0&&u.length?g/m.globals.seriesGroups.length:g,zeroH:o,zeroW:l}}},{key:"drawStackedBarPaths",value:function(s){for(var i,a=s.indexes,n=s.barHeight,o=s.strokeWidth,l=s.zeroW,h=s.x,u=s.y,p=s.groupIndex,g=s.seriesGroup,m=s.yDivision,y=s.elSeries,k=this.w,_=u+(p!==-1?p*n:0),D=a.i,I=a.j,c=0,f=0;f<this.groupCtx.prevXF.length;f++)c+=this.groupCtx.prevXF[f][I];var w=D;if(g&&(w=g.indexOf(k.config.series[D].name)),w>0){var L=l;this.groupCtx.prevXVal[w-1][I]<0?L=this.series[D][I]>=0?this.groupCtx.prevX[w-1][I]+c-2*(this.isReversed?c:0):this.groupCtx.prevX[w-1][I]:this.groupCtx.prevXVal[w-1][I]>=0&&(L=this.series[D][I]>=0?this.groupCtx.prevX[w-1][I]:this.groupCtx.prevX[w-1][I]-c+2*(this.isReversed?c:0)),i=L}else i=l;h=this.series[D][I]===null?i:i+this.series[D][I]/this.invertedYRatio-2*(this.isReversed?this.series[D][I]/this.invertedYRatio:0);var z=this.barHelpers.getBarpaths({barYPosition:_,barHeight:n,x1:i,x2:h,strokeWidth:o,series:this.series,realIndex:a.realIndex,seriesGroup:g,i:D,j:I,w:k});return this.barHelpers.barBackground({j:I,i:D,y1:_,y2:n,elSeries:y}),u+=m,{pathTo:z.pathTo,pathFrom:z.pathFrom,goalX:this.barHelpers.getGoalValues("x",l,null,D,I),barYPosition:_,x:h,y:u}}},{key:"drawStackedColumnPaths",value:function(s){var i=s.indexes,a=s.x,n=s.y,o=s.xDivision,l=s.barWidth,h=s.zeroH,u=s.groupIndex,p=s.seriesGroup,g=s.elSeries,m=this.w,y=i.i,k=i.j,_=i.bc;if(m.globals.isXNumeric){var D=m.globals.seriesX[y][k];D||(D=0),a=(D-m.globals.minX)/this.xRatio-l/2,m.globals.seriesGroups.length&&(a=(D-m.globals.minX)/this.xRatio-l/2*m.globals.seriesGroups.length)}for(var I,c=a+(u!==-1?u*l:0),f=0,w=0;w<this.groupCtx.prevYF.length;w++)f+=isNaN(this.groupCtx.prevYF[w][k])?0:this.groupCtx.prevYF[w][k];var L=y;if(p&&(L=p.indexOf(m.config.series[y].name)),L>0&&!m.globals.isXNumeric||L>0&&m.globals.isXNumeric&&m.globals.seriesX[y-1][k]===m.globals.seriesX[y][k]){var z,M,F,V=Math.min(this.yRatio.length+1,y+1);if(this.groupCtx.prevY[L-1]!==void 0&&this.groupCtx.prevY[L-1].length)for(var W=1;W<V;W++){var j;if(!isNaN((j=this.groupCtx.prevY[L-W])===null||j===void 0?void 0:j[k])){F=this.groupCtx.prevY[L-W][k];break}}for(var G=1;G<V;G++){var Z,se;if(((Z=this.groupCtx.prevYVal[L-G])===null||Z===void 0?void 0:Z[k])<0){M=this.series[y][k]>=0?F-f+2*(this.isReversed?f:0):F;break}if(((se=this.groupCtx.prevYVal[L-G])===null||se===void 0?void 0:se[k])>=0){M=this.series[y][k]>=0?F:F+f-2*(this.isReversed?f:0);break}}M===void 0&&(M=m.globals.gridHeight),I=(z=this.groupCtx.prevYF[0])!==null&&z!==void 0&&z.every(function(le){return le===0})&&this.groupCtx.prevYF.slice(1,L).every(function(le){return le.every(function(de){return isNaN(de)})})?h:M}else I=h;n=this.series[y][k]?I-this.series[y][k]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[y][k]/this.yRatio[this.yaxisIndex]:0):I;var ne=this.barHelpers.getColumnPaths({barXPosition:c,barWidth:l,y1:I,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:p,realIndex:i.realIndex,i:y,j:k,w:m});return this.barHelpers.barBackground({bc:_,j:k,i:y,x1:c,x2:l,elSeries:g}),a+=o,{pathTo:ne.pathTo,pathFrom:ne.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,h,y,k),barXPosition:c,x:m.globals.isXNumeric?a-o:a,y:n}}}]),t}(),xs=function(E){N(t,dt);var e=O(t);function t(){return C(this,t),e.apply(this,arguments)}return S(t,[{key:"draw",value:function(s,i,a){var n=this,o=this.w,l=new Y(this.ctx),h=o.globals.comboCharts?i:o.config.chart.type,u=new _e(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=o.config.plotOptions.bar.horizontal;var p=new K(this.ctx,o);s=p.getLogSeries(s),this.series=s,this.yRatio=p.getLogYRatios(this.yRatio),this.barHelpers.initVariables(s);for(var g=l.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),m=function(k){n.isBoxPlot=o.config.chart.type==="boxPlot"||o.config.series[k].type==="boxPlot";var _,D,I,c,f=void 0,w=void 0,L=[],z=[],M=o.globals.comboCharts?a[k]:k,F=l.group({class:"apexcharts-series",seriesName:R.escapeString(o.globals.seriesNames[M]),rel:k+1,"data:realIndex":M});n.ctx.series.addCollapsedClassToSeries(F,M),s[k].length>0&&(n.visibleI=n.visibleI+1);var V,W;n.yRatio.length>1&&(n.yaxisIndex=M);var j=n.barHelpers.initialPositions();w=j.y,V=j.barHeight,D=j.yDivision,c=j.zeroW,f=j.x,W=j.barWidth,_=j.xDivision,I=j.zeroH,z.push(f+W/2);for(var G=l.group({class:"apexcharts-datalabels","data:realIndex":M}),Z=function(ne){var le=n.barHelpers.getStrokeWidth(k,ne,M),de=null,ve={indexes:{i:k,j:ne,realIndex:M},x:f,y:w,strokeWidth:le,elSeries:F};de=n.isHorizontal?n.drawHorizontalBoxPaths(v(v({},ve),{},{yDivision:D,barHeight:V,zeroW:c})):n.drawVerticalBoxPaths(v(v({},ve),{},{xDivision:_,barWidth:W,zeroH:I})),w=de.y,f=de.x,ne>0&&z.push(f+W/2),L.push(w),de.pathTo.forEach(function(me,ye){var Je=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?de.color[ye]:o.globals.stroke.colors[k],it=u.fillPath({seriesNumber:M,dataPointIndex:ne,color:de.color[ye],value:s[k][ne]});n.renderSeries({realIndex:M,pathFill:it,lineFill:Je,j:ne,i:k,pathFrom:de.pathFrom,pathTo:me,strokeWidth:le,elSeries:F,x:f,y:w,series:s,barHeight:V,barWidth:W,elDataLabelsWrap:G,visibleSeries:n.visibleI,type:o.config.chart.type})})},se=0;se<o.globals.dataPoints;se++)Z(se);o.globals.seriesXvalues[M]=z,o.globals.seriesYvalues[M]=L,g.add(F)},y=0;y<s.length;y++)m(y);return g}},{key:"drawVerticalBoxPaths",value:function(s){var i=s.indexes,a=s.x;s.y;var n=s.xDivision,o=s.barWidth,l=s.zeroH,h=s.strokeWidth,u=this.w,p=new Y(this.ctx),g=i.i,m=i.j,y=!0,k=u.config.plotOptions.candlestick.colors.upward,_=u.config.plotOptions.candlestick.colors.downward,D="";this.isBoxPlot&&(D=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var I=this.yRatio[this.yaxisIndex],c=i.realIndex,f=this.getOHLCValue(c,m),w=l,L=l;f.o>f.c&&(y=!1);var z=Math.min(f.o,f.c),M=Math.max(f.o,f.c),F=f.m;u.globals.isXNumeric&&(a=(u.globals.seriesX[c][m]-u.globals.minX)/this.xRatio-o/2);var V=a+o*this.visibleI;this.series[g][m]===void 0||this.series[g][m]===null?(z=l,M=l):(z=l-z/I,M=l-M/I,w=l-f.h/I,L=l-f.l/I,F=l-f.m/I);var W=p.move(V,l),j=p.move(V+o/2,z);return u.globals.previousPaths.length>0&&(j=this.getPreviousPath(c,m,!0)),W=this.isBoxPlot?[p.move(V,z)+p.line(V+o/2,z)+p.line(V+o/2,w)+p.line(V+o/4,w)+p.line(V+o-o/4,w)+p.line(V+o/2,w)+p.line(V+o/2,z)+p.line(V+o,z)+p.line(V+o,F)+p.line(V,F)+p.line(V,z+h/2),p.move(V,F)+p.line(V+o,F)+p.line(V+o,M)+p.line(V+o/2,M)+p.line(V+o/2,L)+p.line(V+o-o/4,L)+p.line(V+o/4,L)+p.line(V+o/2,L)+p.line(V+o/2,M)+p.line(V,M)+p.line(V,F)+"z"]:[p.move(V,M)+p.line(V+o/2,M)+p.line(V+o/2,w)+p.line(V+o/2,M)+p.line(V+o,M)+p.line(V+o,z)+p.line(V+o/2,z)+p.line(V+o/2,L)+p.line(V+o/2,z)+p.line(V,z)+p.line(V,M-h/2)],j+=p.move(V,z),u.globals.isXNumeric||(a+=n),{pathTo:W,pathFrom:j,x:a,y:M,barXPosition:V,color:this.isBoxPlot?D:y?[k]:[_]}}},{key:"drawHorizontalBoxPaths",value:function(s){var i=s.indexes;s.x;var a=s.y,n=s.yDivision,o=s.barHeight,l=s.zeroW,h=s.strokeWidth,u=this.w,p=new Y(this.ctx),g=i.i,m=i.j,y=this.boxOptions.colors.lower;this.isBoxPlot&&(y=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var k=this.invertedYRatio,_=i.realIndex,D=this.getOHLCValue(_,m),I=l,c=l,f=Math.min(D.o,D.c),w=Math.max(D.o,D.c),L=D.m;u.globals.isXNumeric&&(a=(u.globals.seriesX[_][m]-u.globals.minX)/this.invertedXRatio-o/2);var z=a+o*this.visibleI;this.series[g][m]===void 0||this.series[g][m]===null?(f=l,w=l):(f=l+f/k,w=l+w/k,I=l+D.h/k,c=l+D.l/k,L=l+D.m/k);var M=p.move(l,z),F=p.move(f,z+o/2);return u.globals.previousPaths.length>0&&(F=this.getPreviousPath(_,m,!0)),M=[p.move(f,z)+p.line(f,z+o/2)+p.line(I,z+o/2)+p.line(I,z+o/2-o/4)+p.line(I,z+o/2+o/4)+p.line(I,z+o/2)+p.line(f,z+o/2)+p.line(f,z+o)+p.line(L,z+o)+p.line(L,z)+p.line(f+h/2,z),p.move(L,z)+p.line(L,z+o)+p.line(w,z+o)+p.line(w,z+o/2)+p.line(c,z+o/2)+p.line(c,z+o-o/4)+p.line(c,z+o/4)+p.line(c,z+o/2)+p.line(w,z+o/2)+p.line(w,z)+p.line(L,z)+"z"],F+=p.move(f,z),u.globals.isXNumeric||(a+=n),{pathTo:M,pathFrom:F,x:w,y:a,barYPosition:z,color:y}}},{key:"getOHLCValue",value:function(s,i){var a=this.w;return{o:this.isBoxPlot?a.globals.seriesCandleH[s][i]:a.globals.seriesCandleO[s][i],h:this.isBoxPlot?a.globals.seriesCandleO[s][i]:a.globals.seriesCandleH[s][i],m:a.globals.seriesCandleM[s][i],l:this.isBoxPlot?a.globals.seriesCandleC[s][i]:a.globals.seriesCandleL[s][i],c:this.isBoxPlot?a.globals.seriesCandleL[s][i]:a.globals.seriesCandleC[s][i]}}}]),t}(),Ji=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,s=e.config.plotOptions[e.config.chart.type];return s.colorScale.ranges.length>0&&s.colorScale.ranges.map(function(i,a){i.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,s,i){var a=this.w,n=1,o=a.config.plotOptions[e].shadeIntensity,l=this.determineColor(e,t,s);a.globals.hasNegs||i?n=a.config.plotOptions[e].reverseNegativeShade?l.percent<0?l.percent/100*(1.25*o):(1-l.percent/100)*(1.25*o):l.percent<=0?1-(1+l.percent/100)*o:(1-l.percent/100)*o:(n=1-l.percent/100,e==="treemap"&&(n=(1-l.percent/100)*(1.25*o)));var h=l.color,u=new R;return a.config.plotOptions[e].enableShades&&(h=this.w.config.theme.mode==="dark"?R.hexToRgba(u.shadeColor(-1*n,l.color),a.config.fill.opacity):R.hexToRgba(u.shadeColor(n,l.color),a.config.fill.opacity)),{color:h,colorProps:l}}},{key:"determineColor",value:function(e,t,s){var i=this.w,a=i.globals.series[t][s],n=i.config.plotOptions[e],o=n.colorScale.inverse?s:t;n.distributed&&i.config.chart.type==="treemap"&&(o=s);var l=i.globals.colors[o],h=null,u=Math.min.apply(Math,q(i.globals.series[t])),p=Math.max.apply(Math,q(i.globals.series[t]));n.distributed||e!=="heatmap"||(u=i.globals.minY,p=i.globals.maxY),n.colorScale.min!==void 0&&(u=n.colorScale.min<i.globals.minY?n.colorScale.min:i.globals.minY,p=n.colorScale.max>i.globals.maxY?n.colorScale.max:i.globals.maxY);var g=Math.abs(p)+Math.abs(u),m=100*a/(g===0?g-1e-6:g);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(y,k){if(a>=y.from&&a<=y.to){l=y.color,h=y.foreColor?y.foreColor:null,u=y.from,p=y.to;var _=Math.abs(p)+Math.abs(u);m=100*a/(_===0?_-1e-6:_)}}),{color:l,foreColor:h,percent:m}}},{key:"calculateDataLabels",value:function(e){var t=e.text,s=e.x,i=e.y,a=e.i,n=e.j,o=e.colorProps,l=e.fontSize,h=this.w.config.dataLabels,u=new Y(this.ctx),p=new ie(this.ctx),g=null;if(h.enabled){g=u.group({class:"apexcharts-data-labels"});var m=h.offsetX,y=h.offsetY,k=s+m,_=i+parseFloat(h.style.fontSize)/3+y;p.plotDataLabelsText({x:k,y:_,text:t,i:a,j:n,color:o.foreColor,parent:g,fontSize:l,dataLabelsConfig:h})}return g}},{key:"addListeners",value:function(e){var t=new Y(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}(),lu=function(){function E(e,t){C(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 Ji(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return S(E,[{key:"draw",value:function(e){var t=this.w,s=new Y(this.ctx),i=s.group({class:"apexcharts-heatmap"});i.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var a=t.globals.gridWidth/t.globals.dataPoints,n=t.globals.gridHeight/t.globals.series.length,o=0,l=!1;this.negRange=this.helpers.checkColorRange();var h=e.slice();t.config.yaxis[0].reversed&&(l=!0,h.reverse());for(var u=l?0:h.length-1;l?u<h.length:u>=0;l?u++:u--){var p=s.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:R.escapeString(t.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});if(this.ctx.series.addCollapsedClassToSeries(p,u),t.config.chart.dropShadow.enabled){var g=t.config.chart.dropShadow;new ee(this.ctx).dropShadow(p,g,u)}for(var m=0,y=t.config.plotOptions.heatmap.shadeIntensity,k=0;k<h[u].length;k++){var _=this.helpers.getShadeColor(t.config.chart.type,u,k,this.negRange),D=_.color,I=_.colorProps;t.config.fill.type==="image"&&(D=new _e(this.ctx).fillPath({seriesNumber:u,dataPointIndex:k,opacity:t.globals.hasNegs?I.percent<0?1-(1+I.percent/100):y+I.percent/100:I.percent/100,patternID:R.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:a,height:t.config.fill.image.height?t.config.fill.image.height:n}));var c=this.rectRadius,f=s.drawRect(m,o,a,n,c);if(f.attr({cx:m,cy:o}),f.node.classList.add("apexcharts-heatmap-rect"),p.add(f),f.attr({fill:D,i:u,index:u,j:k,val:h[u][k],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?D:t.globals.stroke.colors[0],color:D}),this.helpers.addListeners(f),t.config.chart.animations.enabled&&!t.globals.dataChanged){var w=1;t.globals.resized||(w=t.config.chart.animations.speed),this.animateHeatMap(f,m,o,a,n,w)}if(t.globals.dataChanged){var L=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){L=this.dynamicAnim.speed;var z=t.globals.previousPaths[u]&&t.globals.previousPaths[u][k]&&t.globals.previousPaths[u][k].color;z||(z="rgba(255, 255, 255, 0)"),this.animateHeatColor(f,R.isColorHex(z)?z:R.rgb2hex(z),R.isColorHex(D)?D:R.rgb2hex(D),L)}}var M=(0,t.config.dataLabels.formatter)(t.globals.series[u][k],{value:t.globals.series[u][k],seriesIndex:u,dataPointIndex:k,w:t}),F=this.helpers.calculateDataLabels({text:M,x:m+a/2,y:o+n/2,i:u,j:k,colorProps:I,series:h});F!==null&&p.add(F),m+=a}o+=n,i.add(p)}var V=t.globals.yAxisScale[0].result.slice();t.config.yaxis[0].reversed?V.unshift(""):V.push(""),t.globals.yAxisScale[0].result=V;var W=t.globals.gridHeight/t.globals.series.length;return t.config.yaxis[0].labels.offsetY=-W/2,i}},{key:"animateHeatMap",value:function(e,t,s,i,a,n){var o=new $(this.ctx);o.animateRect(e,{x:t+i/2,y:s+a/2,width:0,height:0},{x:t,y:s,width:i,height:a},n,function(){o.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,s,i){e.attr({fill:t}).animate(i).attr({fill:s})}}]),E}(),Qi=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"drawYAxisTexts",value:function(e,t,s,i){var a=this.w,n=a.config.yaxis[0],o=a.globals.yLabelFormatters[0];return new Y(this.ctx).drawText({x:e+n.labels.offsetX,y:t+n.labels.offsetY,text:o(i,s),textAnchor:"middle",fontSize:n.labels.style.fontSize,fontFamily:n.labels.style.fontFamily,foreColor:Array.isArray(n.labels.style.colors)?n.labels.style.colors[s]:n.labels.style.colors})}}]),E}(),Ki=function(){function E(e){C(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 S(E,[{key:"draw",value:function(e){var t=this,s=this.w,i=new Y(this.ctx);if(this.ret=i.group({class:"apexcharts-pie"}),s.globals.noData)return this.ret;for(var a=0,n=0;n<e.length;n++)a+=R.negToZero(e[n]);var o=[],l=i.group();a===0&&(a=1e-5),e.forEach(function(z){t.maxY=Math.max(t.maxY,z)}),s.config.yaxis[0].max&&(this.maxY=s.config.yaxis[0].max),s.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var h=0;h<e.length;h++){var u=this.fullAngle*R.negToZero(e[h])/a;o.push(u),this.chartType==="polarArea"?(o[h]=this.fullAngle/e.length,this.sliceSizes.push(s.globals.radialSize*e[h]/this.maxY)):this.sliceSizes.push(s.globals.radialSize)}if(s.globals.dataChanged){for(var p,g=0,m=0;m<s.globals.previousPaths.length;m++)g+=R.negToZero(s.globals.previousPaths[m]);for(var y=0;y<s.globals.previousPaths.length;y++)p=this.fullAngle*R.negToZero(s.globals.previousPaths[y])/g,this.prevSectorAngleArr.push(p)}this.donutSize<0&&(this.donutSize=0);var k=s.config.plotOptions.pie.customScale,_=s.globals.gridWidth/2,D=s.globals.gridHeight/2,I=_-s.globals.gridWidth/2*k,c=D-s.globals.gridHeight/2*k;if(this.chartType==="donut"){var f=i.drawCircle(this.donutSize);f.attr({cx:this.centerX,cy:this.centerY,fill:s.config.plotOptions.pie.donut.background?s.config.plotOptions.pie.donut.background:"transparent"}),l.add(f)}var w=this.drawArcs(o,e);if(this.sliceLabels.forEach(function(z){w.add(z)}),l.attr({transform:"translate(".concat(I,", ").concat(c,") scale(").concat(k,")")}),l.add(w),this.ret.add(l),this.donutDataLabels.show){var L=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:I,translateY:c});this.ret.add(L)}return s.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var s=this.w,i=new ee(this.ctx),a=new Y(this.ctx),n=new _e(this.ctx),o=a.group({class:"apexcharts-slices"}),l=this.initialAngle,h=this.initialAngle,u=this.initialAngle,p=this.initialAngle;this.strokeWidth=s.config.stroke.show?s.config.stroke.width:0;for(var g=0;g<e.length;g++){var m=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:R.escapeString(s.globals.seriesNames[g]),rel:g+1,"data:realIndex":g});o.add(m),h=p,u=(l=u)+e[g],p=h+this.prevSectorAngleArr[g];var y=u<l?this.fullAngle+u-l:u-l,k=n.fillPath({seriesNumber:g,size:this.sliceSizes[g],value:t[g]}),_=this.getChangedPath(h,p),D=a.drawPath({d:_,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[g]:this.lineColorArr,strokeWidth:0,fill:k,fillOpacity:s.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(g)});if(D.attr({index:0,j:g}),i.setSelectionFilter(D,0,g),s.config.chart.dropShadow.enabled){var I=s.config.chart.dropShadow;i.dropShadow(D,I,g)}this.addListeners(D,this.donutDataLabels),Y.setAttrs(D.node,{"data:angle":y,"data:startAngle":l,"data:strokeWidth":this.strokeWidth,"data:value":t[g]});var c={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?c=R.polarToCartesian(this.centerX,this.centerY,s.globals.radialSize/1.25+s.config.plotOptions.pie.dataLabels.offset,(l+y/2)%this.fullAngle):this.chartType==="donut"&&(c=R.polarToCartesian(this.centerX,this.centerY,(s.globals.radialSize+this.donutSize)/2+s.config.plotOptions.pie.dataLabels.offset,(l+y/2)%this.fullAngle)),m.add(D);var f=0;if(!this.initialAnim||s.globals.resized||s.globals.dataChanged?this.animBeginArr.push(0):((f=y/this.fullAngle*s.config.chart.animations.speed)===0&&(f=1),this.animDur=f+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&s.globals.dataChanged?this.animatePaths(D,{size:this.sliceSizes[g],endAngle:u,startAngle:l,prevStartAngle:h,prevEndAngle:p,animateStartingPos:!0,i:g,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:s.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(D,{size:this.sliceSizes[g],endAngle:u,startAngle:l,i:g,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:f}),s.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&D.click(this.pieClicked.bind(this,g)),s.globals.selectedDataPoints[0]!==void 0&&s.globals.selectedDataPoints[0].indexOf(g)>-1&&this.pieClicked(g),s.config.dataLabels.enabled){var w=c.x,L=c.y,z=100*y/this.fullAngle+"%";if(y!==0&&s.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[g]){var M=s.config.dataLabels.formatter;M!==void 0&&(z=M(s.globals.seriesPercent[g][0],{seriesIndex:g,w:s}));var F=s.globals.dataLabels.style.colors[g],V=a.group({class:"apexcharts-datalabels"}),W=a.drawText({x:w,y:L,text:z,textAnchor:"middle",fontSize:s.config.dataLabels.style.fontSize,fontFamily:s.config.dataLabels.style.fontFamily,fontWeight:s.config.dataLabels.style.fontWeight,foreColor:F});if(V.add(W),s.config.dataLabels.dropShadow.enabled){var j=s.config.dataLabels.dropShadow;i.dropShadow(W,j)}W.node.classList.add("apexcharts-pie-label"),s.config.chart.animations.animate&&s.globals.resized===!1&&(W.node.classList.add("apexcharts-pie-label-delay"),W.node.style.animationDelay=s.config.chart.animations.speed/940+"s"),this.sliceLabels.push(V)}}}return o}},{key:"addListeners",value:function(e,t){var s=new Y(this.ctx);e.node.addEventListener("mouseenter",s.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",s.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",s.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 s=this.w,i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,a=i,n=t.startAngle,o=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(n=t.prevEndAngle,a=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===s.config.series.length-1&&(i+o>this.fullAngle?t.endAngle=t.endAngle-(i+o):i+o<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(i+o)))),i===this.fullAngle&&(i=this.fullAngle-.01),this.animateArc(e,n,o,i,a,t)}},{key:"animateArc",value:function(e,t,s,i,a,n){var o,l=this,h=this.w,u=new $(this.ctx),p=n.size;(isNaN(t)||isNaN(a))&&(t=s,a=i,n.dur=0);var g=i,m=s,y=t<s?this.fullAngle+t-s:t-s;h.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(o=l.getPiePath({me:l,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:p}),e.attr({d:o})),n.dur!==0?e.animate(n.dur,h.globals.easing,n.animBeginArr[n.i]).afterAll(function(){l.chartType!=="pie"&&l.chartType!=="donut"&&l.chartType!=="polarArea"||this.animate(h.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":l.strokeWidth}),n.i===h.config.series.length-1&&u.animationCompleted(e)}).during(function(k){g=y+(i-y)*k,n.animateStartingPos&&(g=a+(i-a)*k,m=t-a+(s-(t-a))*k),o=l.getPiePath({me:l,startAngle:m,angle:g,size:p}),e.node.setAttribute("data:pathOrig",o),e.attr({d:o})}):(o=l.getPiePath({me:l,startAngle:m,angle:i,size:p}),n.isTrack||(h.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",o),e.attr({d:o,"stroke-width":l.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,s=this.w,i=this,a=i.sliceSizes[e]+(s.config.plotOptions.pie.expandOnClick?4:0),n=s.globals.dom.Paper.select(".apexcharts-".concat(i.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if(n.attr("data:pieClicked")!=="true"){var o=s.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(o,function(p){p.setAttribute("data:pieClicked","false");var g=p.getAttribute("data:pathOrig");g&&p.setAttribute("d",g)}),n.attr("data:pieClicked","true");var l=parseInt(n.attr("data:startAngle"),10),h=parseInt(n.attr("data:angle"),10);t=i.getPiePath({me:i,startAngle:l,angle:h,size:a}),h!==360&&n.plot(t)}else{n.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(n.node,this.donutDataLabels);var u=n.attr("data:pathOrig");n.attr({d:u})}}},{key:"getChangedPath",value:function(e,t){var s="";return this.dynamicAnim&&this.w.globals.dataChanged&&(s=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),s}},{key:"getPiePath",value:function(e){var t=e.me,s=e.startAngle,i=e.angle,a=e.size,n=s,o=Math.PI*(n-90)/180,l=i+s;Math.ceil(l)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(l=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(l)>this.fullAngle&&(l-=this.fullAngle);var h=Math.PI*(l-90)/180,u=t.centerX+a*Math.cos(o),p=t.centerY+a*Math.sin(o),g=t.centerX+a*Math.cos(h),m=t.centerY+a*Math.sin(h),y=R.polarToCartesian(t.centerX,t.centerY,t.donutSize,l),k=R.polarToCartesian(t.centerX,t.centerY,t.donutSize,n),_=i>180?1:0,D=["M",u,p,"A",a,a,0,_,1,g,m];return t.chartType==="donut"?[].concat(D,["L",y.x,y.y,"A",t.donutSize,t.donutSize,0,_,0,k.x,k.y,"L",u,p,"z"]).join(" "):t.chartType==="pie"||t.chartType==="polarArea"?[].concat(D,["L",t.centerX,t.centerY,"L",u,p]).join(" "):[].concat(D).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,s=new He(this.ctx),i=new Y(this.ctx),a=new Qi(this.ctx),n=i.group(),o=i.group(),l=s.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),h=l.result.reverse(),u=l.result.length;this.maxY=l.niceMax;for(var p=t.globals.radialSize,g=p/(u-1),m=0;m<u-1;m++){var y=i.drawCircle(p);if(y.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 k=a.drawYAxisTexts(this.centerX,this.centerY-p+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,m,h[m]);o.add(k)}n.add(y),p-=g}this.drawSpokes(e),e.add(n),e.add(o)}},{key:"renderInnerDataLabels",value:function(e,t){var s=this.w,i=new Y(this.ctx),a=i.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(s.config.plotOptions.pie.customScale,")")}),n=e.total.show;a.node.style.opacity=t.opacity;var o,l,h=t.centerX,u=t.centerY;o=e.name.color===void 0?s.globals.colors[0]:e.name.color;var p=e.name.fontSize,g=e.name.fontFamily,m=e.name.fontWeight;l=e.value.color===void 0?s.config.chart.foreColor:e.value.color;var y=e.value.formatter,k="",_="";if(n?(o=e.total.color,p=e.total.fontSize,g=e.total.fontFamily,m=e.total.fontWeight,_=e.total.label,k=e.total.formatter(s)):s.globals.series.length===1&&(k=y(s.globals.series[0],s),_=s.globals.seriesNames[0]),_&&(_=e.name.formatter(_,e.total.show,s)),e.name.show){var D=i.drawText({x:h,y:u+parseFloat(e.name.offsetY),text:_,textAnchor:"middle",foreColor:o,fontSize:p,fontWeight:m,fontFamily:g});D.node.classList.add("apexcharts-datalabel-label"),a.add(D)}if(e.value.show){var I=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,c=i.drawText({x:h,y:u+I,text:k,textAnchor:"middle",foreColor:l,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});c.node.classList.add("apexcharts-datalabel-value"),a.add(c)}return a}},{key:"printInnerLabels",value:function(e,t,s,i){var a,n=this.w;i?a=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&&(a=e.total.color);var o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),l=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");s=(0,e.value.formatter)(s,n),i||typeof e.total.formatter!="function"||(s=e.total.formatter(n));var h=t===e.total.label;t=e.name.formatter(t,h,n),o!==null&&(o.textContent=t),l!==null&&(l.textContent=s),o!==null&&(o.style.fill=a)}},{key:"printDataLabelsInner",value:function(e,t){var s=this.w,i=e.getAttribute("data:value"),a=s.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];s.globals.series.length>1&&this.printInnerLabels(t,a,i,e);var n=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");n!==null&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,s=this.w,i=new Y(this.ctx),a=s.config.plotOptions.polarArea.spokes;if(a.strokeWidth!==0){for(var n=[],o=360/s.globals.series.length,l=0;l<s.globals.series.length;l++)n.push(R.polarToCartesian(this.centerX,this.centerY,s.globals.radialSize,s.config.plotOptions.pie.startAngle+o*l));n.forEach(function(h,u){var p=i.drawLine(h.x,h.y,t.centerX,t.centerY,Array.isArray(a.connectorColors)?a.connectorColors[u]:a.connectorColors);e.add(p)})}}},{key:"revertDataLabelsInner",value:function(e,t,s){var i=this,a=this.w,n=a.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),o=!1,l=a.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),h=function(g){var m=g.makeSliceOut,y=g.printLabel;Array.prototype.forEach.call(l,function(k){k.getAttribute("data:pieClicked")==="true"&&(m&&(o=!0),y&&i.printDataLabelsInner(k,t))})};if(h({makeSliceOut:!0,printLabel:!1}),t.total.show&&a.globals.series.length>1)o&&!t.total.showAlways?h({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(a));else if(h({makeSliceOut:!1,printLabel:!0}),!o)if(a.globals.selectedDataPoints.length&&a.globals.series.length>1)if(a.globals.selectedDataPoints[0].length>0){var u=a.globals.selectedDataPoints[0],p=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(u));this.printDataLabelsInner(p,t)}else n&&a.globals.selectedDataPoints.length&&a.globals.selectedDataPoints[0].length===0&&(n.style.opacity=0);else n&&a.globals.series.length>1&&(n.style.opacity=0)}}]),E}(),cu=function(){function E(e){C(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 Y(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 K(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 S(E,[{key:"draw",value:function(e){var t=this,s=this.w,i=new _e(this.ctx),a=[],n=new ie(this.ctx);e.length&&(this.dataPointsLen=e[s.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=s.globals.gridWidth/2,l=s.globals.gridHeight/2,h=o+s.config.plotOptions.radar.offsetX,u=l+s.config.plotOptions.radar.offsetY,p=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(h||0,", ").concat(u||0,")")}),g=[],m=null,y=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(_,D){var I=_.length===s.globals.dataPoints,c=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":I,seriesName:R.escapeString(s.globals.seriesNames[D]),rel:D+1,"data:realIndex":D});t.dataRadiusOfPercent[D]=[],t.dataRadius[D]=[],t.angleArr[D]=[],_.forEach(function(G,Z){var se=Math.abs(t.maxValue-t.minValue);G+=Math.abs(t.minValue),t.isLog&&(G=t.coreUtils.getLogVal(G,0)),t.dataRadiusOfPercent[D][Z]=G/se,t.dataRadius[D][Z]=t.dataRadiusOfPercent[D][Z]*t.size,t.angleArr[D][Z]=Z*t.disAngle}),g=t.getDataPointsPos(t.dataRadius[D],t.angleArr[D]);var f=t.createPaths(g,{x:0,y:0});m=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),y=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":D}),s.globals.delayedElements.push({el:m.node,index:D});var w={i:D,realIndex:D,animationDelay:D,initialSpeed:s.config.chart.animations.speed,dataChangeSpeed:s.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:s.globals.stroke.colors[D],strokeLineCap:s.config.stroke.lineCap},L=null;s.globals.previousPaths.length>0&&(L=t.getPreviousPath(D));for(var z=0;z<f.linePathsTo.length;z++){var M=t.graphics.renderPaths(v(v({},w),{},{pathFrom:L===null?f.linePathsFrom[z]:L,pathTo:f.linePathsTo[z],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[D]:t.strokeWidth,fill:"none",drawShadow:!1}));c.add(M);var F=i.fillPath({seriesNumber:D}),V=t.graphics.renderPaths(v(v({},w),{},{pathFrom:L===null?f.areaPathsFrom[z]:L,pathTo:f.areaPathsTo[z],strokeWidth:0,fill:F,drawShadow:!1}));if(s.config.chart.dropShadow.enabled){var W=new ee(t.ctx),j=s.config.chart.dropShadow;W.dropShadow(V,Object.assign({},j,{noUserSpaceOnUse:!0}),D)}c.add(V)}_.forEach(function(G,Z){var se=new tt(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:D,dataPointIndex:Z}),ne=t.graphics.drawMarker(g[Z].x,g[Z].y,se);ne.attr("rel",Z),ne.attr("j",Z),ne.attr("index",D),ne.node.setAttribute("default-marker-size",se.pSize);var le=t.graphics.group({class:"apexcharts-series-markers"});le&&le.add(ne),m.add(le),c.add(m);var de=s.config.dataLabels;if(de.enabled){var ve=de.formatter(s.globals.series[D][Z],{seriesIndex:D,dataPointIndex:Z,w:s});n.plotDataLabelsText({x:g[Z].x,y:g[Z].y,text:ve,textAnchor:"middle",i:D,j:D,parent:y,offsetCorrection:!1,dataLabelsConfig:v({},de)})}c.add(y)}),a.push(c)}),this.drawPolygons({parent:p}),s.config.xaxis.labels.show){var k=this.drawXAxisTexts();p.add(k)}return a.forEach(function(_){p.add(_)}),p.add(this.yaxisLabels),p}},{key:"drawPolygons",value:function(e){for(var t=this,s=this.w,i=e.parent,a=new Qi(this.ctx),n=s.globals.yAxisScale[0].result.reverse(),o=n.length,l=[],h=this.size/(o-1),u=0;u<o;u++)l[u]=h*u;l.reverse();var p=[],g=[];l.forEach(function(m,y){var k=R.getPolygonPos(m,t.dataPointsLen),_="";k.forEach(function(D,I){if(y===0){var c=t.graphics.drawLine(D.x,D.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[I]:t.polygons.connectorColors);g.push(c)}I===0&&t.yaxisLabelsTextsPos.push({x:D.x,y:D.y}),_+=D.x+","+D.y+" "}),p.push(_)}),p.forEach(function(m,y){var k=t.polygons.strokeColors,_=t.polygons.strokeWidth,D=t.graphics.drawPolygon(m,Array.isArray(k)?k[y]:k,Array.isArray(_)?_[y]:_,s.globals.radarPolygons.fill.colors[y]);i.add(D)}),g.forEach(function(m){i.add(m)}),s.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(m,y){var k=a.drawYAxisTexts(m.x,m.y,y,n[y]);t.yaxisLabels.add(k)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,s=t.config.xaxis.labels,i=this.graphics.group({class:"apexcharts-xaxis"}),a=R.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(n,o){var l=t.config.xaxis.labels.formatter,h=new ie(e.ctx);if(a[o]){var u=e.getTextPos(a[o],e.size),p=l(n,{seriesIndex:-1,dataPointIndex:o,w:t});h.plotDataLabelsText({x:u.newX,y:u.newY,text:p,textAnchor:u.textAnchor,i:o,j:o,parent:i,color:Array.isArray(s.style.colors)&&s.style.colors[o]?s.style.colors[o]:"#a8a8a8",dataLabelsConfig:v({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},s),offsetCorrection:!1})}}),i}},{key:"createPaths",value:function(e,t){var s=this,i=[],a=[],n=[],o=[];if(e.length){a=[this.graphics.move(t.x,t.y)],o=[this.graphics.move(t.x,t.y)];var l=this.graphics.move(e[0].x,e[0].y),h=this.graphics.move(e[0].x,e[0].y);e.forEach(function(u,p){l+=s.graphics.line(u.x,u.y),h+=s.graphics.line(u.x,u.y),p===e.length-1&&(l+="Z",h+="Z")}),i.push(l),n.push(h)}return{linePathsFrom:a,linePathsTo:i,areaPathsFrom:o,areaPathsTo:n}}},{key:"getTextPos",value:function(e,t){var s="middle",i=e.x,a=e.y;return Math.abs(e.x)>=10?e.x>0?(s="start",i+=10):e.x<0&&(s="end",i-=10):s="middle",Math.abs(e.y)>=t-10&&(e.y<0?a-=10:e.y>0&&(a+=10)),{textAnchor:s,newX:i,newY:a}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,s=null,i=0;i<t.globals.previousPaths.length;i++){var a=t.globals.previousPaths[i];a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&t.globals.previousPaths[i].paths[0]!==void 0&&(s=t.globals.previousPaths[i].paths[0].d)}return s}},{key:"getDataPointsPos",value:function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var i=[],a=0;a<s;a++){var n={};n.x=e[a]*Math.sin(t[a]),n.y=-e[a]*Math.cos(t[a]),i.push(n)}return i}}]),E}(),hu=function(E){N(t,Ki);var e=O(t);function t(s){var i;C(this,t),(i=e.call(this,s)).ctx=s,i.w=s.w,i.animBeginArr=[0],i.animDur=0;var a=i.w;return i.startAngle=a.config.plotOptions.radialBar.startAngle,i.endAngle=a.config.plotOptions.radialBar.endAngle,i.totalAngle=Math.abs(a.config.plotOptions.radialBar.endAngle-a.config.plotOptions.radialBar.startAngle),i.trackStartAngle=a.config.plotOptions.radialBar.track.startAngle,i.trackEndAngle=a.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(a.config.plotOptions.radialBar.track.margin,10),i}return S(t,[{key:"draw",value:function(s){var i=this.w,a=new Y(this.ctx),n=a.group({class:"apexcharts-radialbar"});if(i.globals.noData)return n;var o=a.group(),l=this.defaultSize/2,h=i.globals.gridWidth/2,u=this.defaultSize/2.05;i.config.chart.sparkline.enabled||(u=u-i.config.stroke.width-i.config.chart.dropShadow.blur);var p=i.globals.fill.colors;if(i.config.plotOptions.radialBar.track.show){var g=this.drawTracks({size:u,centerX:h,centerY:l,colorArr:p,series:s});o.add(g)}var m=this.drawArcs({size:u,centerX:h,centerY:l,colorArr:p,series:s}),y=360;i.config.plotOptions.radialBar.startAngle<0&&(y=this.totalAngle);var k=(360-y)/360;if(i.globals.radialSize=u-u*k,this.radialDataLabels.value.show){var _=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);i.globals.radialSize+=_*k}return o.add(m.g),i.config.plotOptions.radialBar.hollow.position==="front"&&(m.g.add(m.elHollow),m.dataLabels&&m.g.add(m.dataLabels)),n.add(o),n}},{key:"drawTracks",value:function(s){var i=this.w,a=new Y(this.ctx),n=a.group({class:"apexcharts-tracks"}),o=new ee(this.ctx),l=new _e(this.ctx),h=this.getStrokeWidth(s);s.size=s.size-h/2;for(var u=0;u<s.series.length;u++){var p=a.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(p),p.attr({rel:u+1}),s.size=s.size-h-this.margin;var g=i.config.plotOptions.radialBar.track,m=l.fillPath({seriesNumber:0,size:s.size,fillColors:Array.isArray(g.background)?g.background[u]:g.background,solid:!0}),y=this.trackStartAngle,k=this.trackEndAngle;Math.abs(k)+Math.abs(y)>=360&&(k=360-Math.abs(this.startAngle)-.1);var _=a.drawPath({d:"",stroke:m,strokeWidth:h*parseInt(g.strokeWidth,10)/100,fill:"none",strokeOpacity:g.opacity,classes:"apexcharts-radialbar-area"});if(g.dropShadow.enabled){var D=g.dropShadow;o.dropShadow(_,D)}p.add(_),_.attr("id","apexcharts-radialbarTrack-"+u),this.animatePaths(_,{centerX:s.centerX,centerY:s.centerY,endAngle:k,startAngle:y,size:s.size,i:u,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:i.globals.easing})}return n}},{key:"drawArcs",value:function(s){var i=this.w,a=new Y(this.ctx),n=new _e(this.ctx),o=new ee(this.ctx),l=a.group(),h=this.getStrokeWidth(s);s.size=s.size-h/2;var u=i.config.plotOptions.radialBar.hollow.background,p=s.size-h*s.series.length-this.margin*s.series.length-h*parseInt(i.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,g=p-i.config.plotOptions.radialBar.hollow.margin;i.config.plotOptions.radialBar.hollow.image!==void 0&&(u=this.drawHollowImage(s,l,p,u));var m=this.drawHollow({size:g,centerX:s.centerX,centerY:s.centerY,fill:u||"transparent"});if(i.config.plotOptions.radialBar.hollow.dropShadow.enabled){var y=i.config.plotOptions.radialBar.hollow.dropShadow;o.dropShadow(m,y)}var k=1;!this.radialDataLabels.total.show&&i.globals.series.length>1&&(k=0);var _=null;this.radialDataLabels.show&&(_=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:p,centerX:s.centerX,centerY:s.centerY,opacity:k})),i.config.plotOptions.radialBar.hollow.position==="back"&&(l.add(m),_&&l.add(_));var D=!1;i.config.plotOptions.radialBar.inverseOrder&&(D=!0);for(var I=D?s.series.length-1:0;D?I>=0:I<s.series.length;D?I--:I++){var c=a.group({class:"apexcharts-series apexcharts-radial-series",seriesName:R.escapeString(i.globals.seriesNames[I])});l.add(c),c.attr({rel:I+1,"data:realIndex":I}),this.ctx.series.addCollapsedClassToSeries(c,I),s.size=s.size-h-this.margin;var f=n.fillPath({seriesNumber:I,size:s.size,value:s.series[I]}),w=this.startAngle,L=void 0,z=R.negToZero(s.series[I]>100?100:s.series[I])/100,M=Math.round(this.totalAngle*z)+this.startAngle,F=void 0;i.globals.dataChanged&&(L=this.startAngle,F=Math.round(this.totalAngle*R.negToZero(i.globals.previousPaths[I])/100)+L),Math.abs(M)+Math.abs(w)>=360&&(M-=.01),Math.abs(F)+Math.abs(L)>=360&&(F-=.01);var V=M-w,W=Array.isArray(i.config.stroke.dashArray)?i.config.stroke.dashArray[I]:i.config.stroke.dashArray,j=a.drawPath({d:"",stroke:f,strokeWidth:h,fill:"none",fillOpacity:i.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+I,strokeDashArray:W});if(Y.setAttrs(j.node,{"data:angle":V,"data:value":s.series[I]}),i.config.chart.dropShadow.enabled){var G=i.config.chart.dropShadow;o.dropShadow(j,G,I)}o.setSelectionFilter(j,0,I),this.addListeners(j,this.radialDataLabels),c.add(j),j.attr({index:0,j:I});var Z=0;!this.initialAnim||i.globals.resized||i.globals.dataChanged||(Z=i.config.chart.animations.speed),i.globals.dataChanged&&(Z=i.config.chart.animations.dynamicAnimation.speed),this.animDur=Z/(1.2*s.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(j,{centerX:s.centerX,centerY:s.centerY,endAngle:M,startAngle:w,prevEndAngle:F,prevStartAngle:L,size:s.size,i:I,totalItems:2,animBeginArr:this.animBeginArr,dur:Z,shouldSetPrevPaths:!0,easing:i.globals.easing})}return{g:l,elHollow:m,dataLabels:_}}},{key:"drawHollow",value:function(s){var i=new Y(this.ctx).drawCircle(2*s.size);return i.attr({class:"apexcharts-radialbar-hollow",cx:s.centerX,cy:s.centerY,r:s.size,fill:s.fill}),i}},{key:"drawHollowImage",value:function(s,i,a,n){var o=this.w,l=new _e(this.ctx),h=R.randomId(),u=o.config.plotOptions.radialBar.hollow.image;if(o.config.plotOptions.radialBar.hollow.imageClipped)l.clippedImgArea({width:a,height:a,image:u,patternID:"pattern".concat(o.globals.cuid).concat(h)}),n="url(#pattern".concat(o.globals.cuid).concat(h,")");else{var p=o.config.plotOptions.radialBar.hollow.imageWidth,g=o.config.plotOptions.radialBar.hollow.imageHeight;if(p===void 0&&g===void 0){var m=o.globals.dom.Paper.image(u).loaded(function(k){this.move(s.centerX-k.width/2+o.config.plotOptions.radialBar.hollow.imageOffsetX,s.centerY-k.height/2+o.config.plotOptions.radialBar.hollow.imageOffsetY)});i.add(m)}else{var y=o.globals.dom.Paper.image(u).loaded(function(k){this.move(s.centerX-p/2+o.config.plotOptions.radialBar.hollow.imageOffsetX,s.centerY-g/2+o.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(p,g)});i.add(y)}}return n}},{key:"getStrokeWidth",value:function(s){var i=this.w;return s.size*(100-parseInt(i.config.plotOptions.radialBar.hollow.size,10))/100/(s.series.length+1)-this.margin}}]),t}(),du=function(E){N(t,dt);var e=O(t);function t(){return C(this,t),e.apply(this,arguments)}return S(t,[{key:"draw",value:function(s,i){var a=this.w,n=new Y(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=s,this.seriesRangeStart=a.globals.seriesRangeStart,this.seriesRangeEnd=a.globals.seriesRangeEnd,this.barHelpers.initVariables(s);for(var o=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),l=0;l<s.length;l++){var h,u,p,g,m=void 0,y=void 0,k=a.globals.comboCharts?i[l]:l,_=n.group({class:"apexcharts-series",seriesName:R.escapeString(a.globals.seriesNames[k]),rel:l+1,"data:realIndex":k});this.ctx.series.addCollapsedClassToSeries(_,k),s[l].length>0&&(this.visibleI=this.visibleI+1);var D=0,I=0;this.yRatio.length>1&&(this.yaxisIndex=k);var c=this.barHelpers.initialPositions();y=c.y,g=c.zeroW,m=c.x,I=c.barWidth,D=c.barHeight,h=c.xDivision,u=c.yDivision,p=c.zeroH;for(var f=n.group({class:"apexcharts-datalabels","data:realIndex":k}),w=n.group({class:"apexcharts-rangebar-goals-markers"}),L=0;L<a.globals.dataPoints;L++){var z,M=this.barHelpers.getStrokeWidth(l,L,k),F=this.seriesRangeStart[l][L],V=this.seriesRangeEnd[l][L],W=null,j=null,G=null,Z={x:m,y,strokeWidth:M,elSeries:_},se=this.seriesLen;if(a.config.plotOptions.bar.rangeBarGroupRows&&(se=1),a.config.series[l].data[L]===void 0)break;if(this.isHorizontal){G=y+D*this.visibleI;var ne=(u-D*se)/2;if(a.config.series[l].data[L].x){var le=this.detectOverlappingBars({i:l,j:L,barYPosition:G,srty:ne,barHeight:D,yDivision:u,initPositions:c});D=le.barHeight,G=le.barYPosition}I=(W=this.drawRangeBarPaths(v({indexes:{i:l,j:L,realIndex:k},barHeight:D,barYPosition:G,zeroW:g,yDivision:u,y1:F,y2:V},Z))).barWidth}else{a.globals.isXNumeric&&(m=(a.globals.seriesX[l][L]-a.globals.minX)/this.xRatio-I/2),j=m+I*this.visibleI;var de=(h-I*se)/2;if(a.config.series[l].data[L].x){var ve=this.detectOverlappingBars({i:l,j:L,barXPosition:j,srtx:de,barWidth:I,xDivision:h,initPositions:c});I=ve.barWidth,j=ve.barXPosition}D=(W=this.drawRangeColumnPaths(v({indexes:{i:l,j:L,realIndex:k},barWidth:I,barXPosition:j,zeroH:p,xDivision:h},Z))).barHeight}var me=this.barHelpers.drawGoalLine({barXPosition:W.barXPosition,barYPosition:G,goalX:W.goalX,goalY:W.goalY,barHeight:D,barWidth:I});me&&w.add(me),y=W.y,m=W.x;var ye=this.barHelpers.getPathFillColor(s,l,L,k),Je=a.globals.stroke.colors[k];this.renderSeries((P(z={realIndex:k,pathFill:ye,lineFill:Je,j:L,i:l,x:m,y,y1:F,y2:V,pathFrom:W.pathFrom,pathTo:W.pathTo,strokeWidth:M,elSeries:_,series:s,barHeight:D,barWidth:I,barXPosition:j,barYPosition:G},"barWidth",I),P(z,"elDataLabelsWrap",f),P(z,"elGoalsMarkers",w),P(z,"visibleSeries",this.visibleI),P(z,"type","rangebar"),z))}o.add(_)}return o}},{key:"detectOverlappingBars",value:function(s){var i=s.i,a=s.j,n=s.barYPosition,o=s.barXPosition,l=s.srty,h=s.srtx,u=s.barHeight,p=s.barWidth,g=s.yDivision,m=s.xDivision,y=s.initPositions,k=this.w,_=[],D=k.config.series[i].data[a].rangeName,I=k.config.series[i].data[a].x,c=Array.isArray(I)?I.join(" "):I,f=k.globals.labels.map(function(L){return Array.isArray(L)?L.join(" "):L}).indexOf(c),w=k.globals.seriesRange[i].findIndex(function(L){return L.x===c&&L.overlaps.length>0});return this.isHorizontal?(n=k.config.plotOptions.bar.rangeBarGroupRows?l+g*f:l+u*this.visibleI+g*f,w>-1&&!k.config.plotOptions.bar.rangeBarOverlap&&(_=k.globals.seriesRange[i][w].overlaps).indexOf(D)>-1&&(n=(u=y.barHeight/_.length)*this.visibleI+g*(100-parseInt(this.barOptions.barHeight,10))/100/2+u*(this.visibleI+_.indexOf(D))+g*f)):(f>-1&&(o=k.config.plotOptions.bar.rangeBarGroupRows?h+m*f:h+p*this.visibleI+m*f),w>-1&&!k.config.plotOptions.bar.rangeBarOverlap&&(_=k.globals.seriesRange[i][w].overlaps).indexOf(D)>-1&&(o=(p=y.barWidth/_.length)*this.visibleI+m*(100-parseInt(this.barOptions.barWidth,10))/100/2+p*(this.visibleI+_.indexOf(D))+m*f)),{barYPosition:n,barXPosition:o,barHeight:u,barWidth:p}}},{key:"drawRangeColumnPaths",value:function(s){var i=s.indexes,a=s.x,n=s.xDivision,o=s.barWidth,l=s.barXPosition,h=s.zeroH,u=this.w,p=i.i,g=i.j,m=this.yRatio[this.yaxisIndex],y=i.realIndex,k=this.getRangeValue(y,g),_=Math.min(k.start,k.end),D=Math.max(k.start,k.end);this.series[p][g]===void 0||this.series[p][g]===null?_=h:(_=h-_/m,D=h-D/m);var I=Math.abs(D-_),c=this.barHelpers.getColumnPaths({barXPosition:l,barWidth:o,y1:_,y2:D,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:i.realIndex,i:y,j:g,w:u});return u.globals.isXNumeric||(a+=n),{pathTo:c.pathTo,pathFrom:c.pathFrom,barHeight:I,x:a,y:D,goalY:this.barHelpers.getGoalValues("y",null,h,p,g),barXPosition:l}}},{key:"drawRangeBarPaths",value:function(s){var i=s.indexes,a=s.y,n=s.y1,o=s.y2,l=s.yDivision,h=s.barHeight,u=s.barYPosition,p=s.zeroW,g=this.w,m=p+n/this.invertedYRatio,y=p+o/this.invertedYRatio,k=Math.abs(y-m),_=this.barHelpers.getBarpaths({barYPosition:u,barHeight:h,x1:m,x2:y,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:i.realIndex,realIndex:i.realIndex,j:i.j,w:g});return g.globals.isXNumeric||(a+=l),{pathTo:_.pathTo,pathFrom:_.pathFrom,barWidth:k,x:y,goalX:this.barHelpers.getGoalValues("x",p,null,i.realIndex,i.j),y:a}}},{key:"getRangeValue",value:function(s,i){var a=this.w;return{start:a.globals.seriesRangeStart[s][i],end:a.globals.seriesRangeEnd[s][i]}}}]),t}(),uu=function(){function E(e){C(this,E),this.w=e.w,this.lineCtx=e}return S(E,[{key:"sameValueSeriesFix",value:function(e,t){var s=this.w;if((s.config.fill.type==="gradient"||s.config.fill.type[e]==="gradient")&&new K(this.lineCtx.ctx,s).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,s=e.realIndex,i=e.x,a=e.y,n=e.i,o=e.j,l=e.prevY,h=this.w,u=[],p=[];if(o===0){var g=this.lineCtx.categoryAxisCorrection+h.config.markers.offsetX;h.globals.isXNumeric&&(g=(h.globals.seriesX[s][0]-h.globals.minX)/this.lineCtx.xRatio+h.config.markers.offsetX),u.push(g),p.push(R.isNumber(t[n][0])?l+h.config.markers.offsetY:null),u.push(i+h.config.markers.offsetX),p.push(R.isNumber(t[n][o+1])?a+h.config.markers.offsetY:null)}else u.push(i+h.config.markers.offsetX),p.push(R.isNumber(t[n][o+1])?a+h.config.markers.offsetY:null);return{x:u,y:p}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,s=e.pathFromArea,i=e.realIndex,a=this.w,n=0;n<a.globals.previousPaths.length;n++){var o=a.globals.previousPaths[n];(o.type==="line"||o.type==="area")&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(i,10)&&(o.type==="line"?(this.lineCtx.appendPathFrom=!1,t=a.globals.previousPaths[n].paths[0].d):o.type==="area"&&(this.lineCtx.appendPathFrom=!1,s=a.globals.previousPaths[n].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[n].paths[1]&&(t=a.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:t,pathFromArea:s}}},{key:"determineFirstPrevY",value:function(e){var t,s=e.i,i=e.series,a=e.prevY,n=e.lineYPosition,o=this.w;if(((t=i[s])===null||t===void 0?void 0:t[0])!==void 0)a=(n=o.config.chart.stacked&&s>0?this.lineCtx.prevSeriesY[s-1][0]:this.lineCtx.zeroY)-i[s][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[s][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(o.config.chart.stacked&&s>0&&i[s][0]===void 0){for(var l=s-1;l>=0;l--)if(i[l][0]!==null&&i[l][0]!==void 0){a=n=this.lineCtx.prevSeriesY[l][0];break}}return{prevY:a,lineYPosition:n}}}]),E}(),ms=function(){function E(e,t,s){C(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")||s,this.scatter=new Ue(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new uu(this),this.markers=new tt(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return S(E,[{key:"draw",value:function(e,t,s,i){var a=this.w,n=new Y(this.ctx),o=a.globals.comboCharts?t:a.config.chart.type,l=n.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),h=new K(this.ctx,a);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=h.getLogSeries(e),this.yRatio=h.getLogYRatios(this.yRatio);for(var u=[],p=0;p<e.length;p++){e=this.lineHelpers.sameValueSeriesFix(p,e);var g=a.globals.comboCharts?s[p]:p;this._initSerieVariables(e,p,g);var m=[],y=[],k=a.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,g),a.globals.isXNumeric&&a.globals.seriesX.length>0&&(k=(a.globals.seriesX[g][0]-a.globals.minX)/this.xRatio),y.push(k);var _,D=k,I=void 0,c=D,f=this.zeroY,w=this.zeroY;f=this.lineHelpers.determineFirstPrevY({i:p,series:e,prevY:f,lineYPosition:0}).prevY,m.push(f),_=f,o==="rangeArea"&&(I=w=this.lineHelpers.determineFirstPrevY({i:p,series:i,prevY:w,lineYPosition:0}).prevY);var L={type:o,series:e,realIndex:g,i:p,x:k,y:1,pX:D,pY:_,pathsFrom:this._calculatePathsFrom({type:o,series:e,i:p,realIndex:g,prevX:c,prevY:f,prevY2:w}),linePaths:[],areaPaths:[],seriesIndex:s,lineYPosition:0,xArrj:y,yArrj:m,seriesRangeEnd:i},z=this._iterateOverDataPoints(v(v({},L),{},{iterations:o==="rangeArea"?e[p].length-1:void 0,isRangeStart:!0}));if(o==="rangeArea"){var M=this._calculatePathsFrom({series:i,i:p,realIndex:g,prevX:c,prevY:w}),F=this._iterateOverDataPoints(v(v({},L),{},{series:i,pY:I,pathsFrom:M,iterations:i[p].length-1,isRangeStart:!1}));z.linePaths[0]=F.linePath+z.linePath,z.pathFromLine=F.pathFromLine+z.pathFromLine}this._handlePaths({type:o,realIndex:g,i:p,paths:z}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),u.push(this.elSeries)}if(a.config.chart.stacked)for(var V=u.length;V>0;V--)l.add(u[V-1]);else for(var W=0;W<u.length;W++)l.add(u[W]);return l}},{key:"_initSerieVariables",value:function(e,t,s){var i=this.w,a=new Y(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[s]:i.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=s),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=a.group({class:"apexcharts-series",seriesName:R.escapeString(i.globals.seriesNames[s])}),this.elPointsMain=a.group({class:"apexcharts-series-markers-wrap","data:realIndex":s}),this.elDataLabelsWrap=a.group({class:"apexcharts-datalabels","data:realIndex":s});var n=e[t].length===i.globals.dataPoints;this.elSeries.attr({"data:longestSeries":n,rel:t+1,"data:realIndex":s}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,s,i,a,n=e.type,o=e.series,l=e.i,h=e.realIndex,u=e.prevX,p=e.prevY,g=e.prevY2,m=this.w,y=new Y(this.ctx);if(o[l][0]===null){for(var k=0;k<o[l].length;k++)if(o[l][k]!==null){u=this.xDivision*k,p=this.zeroY-o[l][k]/this.yRatio[this.yaxisIndex],t=y.move(u,p),s=y.move(u,this.areaBottomY);break}}else t=y.move(u,p),n==="rangeArea"&&(t=y.move(u,g)+y.line(u,p)),s=y.move(u,this.areaBottomY)+y.line(u,p);if(i=y.move(-1,this.zeroY)+y.line(-1,this.zeroY),a=y.move(-1,this.zeroY)+y.line(-1,this.zeroY),m.globals.previousPaths.length>0){var _=this.lineHelpers.checkPreviousPaths({pathFromLine:i,pathFromArea:a,realIndex:h});i=_.pathFromLine,a=_.pathFromArea}return{prevX:u,prevY:p,linePath:t,areaPath:s,pathFromLine:i,pathFromArea:a}}},{key:"_handlePaths",value:function(e){var t=e.type,s=e.realIndex,i=e.i,a=e.paths,n=this.w,o=new Y(this.ctx),l=new _e(this.ctx);this.prevSeriesY.push(a.yArrj),n.globals.seriesXvalues[s]=a.xArrj,n.globals.seriesYvalues[s]=a.yArrj;var h=n.config.forecastDataPoints;if(h.count>0&&t!=="rangeArea"){var u=n.globals.seriesXvalues[s][n.globals.seriesXvalues[s].length-h.count-1],p=o.drawRect(u,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(p.node);var g=o.drawRect(0,0,u,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:s});var m={i,realIndex:s,animationDelay:i,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var y=l.fillPath({seriesNumber:s}),k=0;k<a.areaPaths.length;k++){var _=o.renderPaths(v(v({},m),{},{pathFrom:a.pathFromArea,pathTo:a.areaPaths[k],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:y}));this.elSeries.add(_)}if(n.config.stroke.show&&!this.pointsChart){var D=null;if(t==="line")D=l.fillPath({seriesNumber:s,i});else if(n.config.stroke.fill.type==="solid")D=n.globals.stroke.colors[s];else{var I=n.config.fill;n.config.fill=n.config.stroke.fill,D=l.fillPath({seriesNumber:s,i}),n.config.fill=I}for(var c=0;c<a.linePaths.length;c++){var f=D;t==="rangeArea"&&(f=l.fillPath({seriesNumber:s}));var w=v(v({},m),{},{pathFrom:a.pathFromLine,pathTo:a.linePaths[c],stroke:D,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:t==="rangeArea"?f:"none"}),L=o.renderPaths(w);if(this.elSeries.add(L),L.attr("fill-rule","evenodd"),h.count>0&&t!=="rangeArea"){var z=o.renderPaths(w);z.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&z.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(z),z.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),L.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t=e.type,s=e.series,i=e.iterations,a=e.realIndex,n=e.i,o=e.x,l=e.y,h=e.pX,u=e.pY,p=e.pathsFrom,g=e.linePaths,m=e.areaPaths,y=e.seriesIndex,k=e.lineYPosition,_=e.xArrj,D=e.yArrj,I=e.isRangeStart,c=e.seriesRangeEnd,f=this.w,w=new Y(this.ctx),L=this.yRatio,z=p.prevY,M=p.linePath,F=p.areaPath,V=p.pathFromLine,W=p.pathFromArea,j=R.isNumber(f.globals.minYArr[a])?f.globals.minYArr[a]:f.globals.minY;i||(i=f.globals.dataPoints>1?f.globals.dataPoints-1:f.globals.dataPoints);for(var G=l,Z=0;Z<i;Z++){var se=s[n][Z+1]===void 0||s[n][Z+1]===null;if(f.globals.isXNumeric){var ne=f.globals.seriesX[a][Z+1];f.globals.seriesX[a][Z+1]===void 0&&(ne=f.globals.seriesX[a][i-1]),o=(ne-f.globals.minX)/this.xRatio}else o+=this.xDivision;f.config.chart.stacked?n>0&&f.globals.collapsedSeries.length<f.config.series.length-1?k=this.prevSeriesY[function(ve){for(var me=ve,ye=0;ye<f.globals.series.length;ye++)if(f.globals.collapsedSeriesIndices.indexOf(ve)>-1){me--;break}return me>=0?me:0}(n-1)][Z+1]:k=this.zeroY:k=this.zeroY,se?l=k-j/L[this.yaxisIndex]+2*(this.isReversed?j/L[this.yaxisIndex]:0):(l=k-s[n][Z+1]/L[this.yaxisIndex]+2*(this.isReversed?s[n][Z+1]/L[this.yaxisIndex]:0),t==="rangeArea"&&(G=k-c[n][Z+1]/L[this.yaxisIndex]+2*(this.isReversed?c[n][Z+1]/L[this.yaxisIndex]:0))),_.push(o),D.push(l);var le=this.lineHelpers.calculatePoints({series:s,x:o,y:l,realIndex:a,i:n,j:Z,prevY:z}),de=this._createPaths({type:t,series:s,i:n,realIndex:a,j:Z,x:o,y:l,y2:G,pX:h,pY:u,linePath:M,areaPath:F,linePaths:g,areaPaths:m,seriesIndex:y,isRangeStart:I});m=de.areaPaths,g=de.linePaths,h=de.pX,u=de.pY,F=de.areaPath,M=de.linePath,this.appendPathFrom&&(V+=w.line(o,this.zeroY),W+=w.line(o,this.zeroY)),this.handleNullDataPoints(s,le,n,Z,a),this._handleMarkersAndLabels({type:t,pointsPos:le,i:n,j:Z,realIndex:a,isRangeStart:I})}return{yArrj:D,xArrj:_,pathFromArea:W,areaPaths:m,pathFromLine:V,linePaths:g,linePath:M,areaPath:F}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,s=e.pointsPos,i=e.isRangeStart,a=e.i,n=e.j,o=e.realIndex,l=this.w,h=new ie(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:o,pointsPos:s,zRatio:this.zRatio,elParent:this.elPointsMain});else{l.globals.series[a].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var u=this.markers.plotChartMarkers(s,o,n+1);u!==null&&this.elPointsMain.add(u)}var p=h.drawDataLabel({type:t,isRangeStart:i,pos:s,i:o,j:n+1});p!==null&&this.elDataLabelsWrap.add(p)}},{key:"_createPaths",value:function(e){var t=e.type,s=e.series,i=e.i,a=e.realIndex,n=e.j,o=e.x,l=e.y,h=e.y2,u=e.pX,p=e.pY,g=e.linePath,m=e.areaPath,y=e.linePaths,k=e.areaPaths,_=e.seriesIndex,D=e.isRangeStart,I=this.w,c=new Y(this.ctx),f=I.config.stroke.curve,w=this.areaBottomY;if(Array.isArray(I.config.stroke.curve)&&(f=Array.isArray(_)?I.config.stroke.curve[_[i]]:I.config.stroke.curve[i]),f==="smooth"){var L=.35*(o-u);I.globals.hasNullValues?(s[i][n]!==null&&(s[i][n+1]!==null?(g=c.move(u,p)+c.curve(u+L,p,o-L,l,o+1,l),m=c.move(u+1,p)+c.curve(u+L,p,o-L,l,o+1,l)+c.line(o,w)+c.line(u,w)+"z"):(g=c.move(u,p),m=c.move(u,p)+"z")),y.push(g),k.push(m)):(g+=c.curve(u+L,p,o-L,l,o,l),m+=c.curve(u+L,p,o-L,l,o,l)),u=o,p=l,n===s[i].length-2&&(m=m+c.curve(u,p,o,l,o,w)+c.move(o,l)+"z",t==="rangeArea"&&D?g=g+c.curve(u,p,o,l,o,h)+c.move(o,h)+"z":I.globals.hasNullValues||(y.push(g),k.push(m)))}else{if(s[i][n+1]===null){g+=c.move(o,l);var z=I.globals.isXNumeric?(I.globals.seriesX[a][n]-I.globals.minX)/this.xRatio:o-this.xDivision;m=m+c.line(z,w)+c.move(o,l)+"z"}s[i][n]===null&&(g+=c.move(o,l),m+=c.move(o,w)),f==="stepline"?(g=g+c.line(o,null,"H")+c.line(null,l,"V"),m=m+c.line(o,null,"H")+c.line(null,l,"V")):f==="straight"&&(g+=c.line(o,l),m+=c.line(o,l)),n===s[i].length-2&&(m=m+c.line(o,w)+c.move(o,l)+"z",t==="rangeArea"&&D?g=g+c.line(o,h)+c.move(o,h)+"z":(y.push(g),k.push(m)))}return{linePaths:y,areaPaths:k,pX:u,pY:p,linePath:g,areaPath:m}}},{key:"handleNullDataPoints",value:function(e,t,s,i,a){var n=this.w;if(e[s][i]===null&&n.config.markers.showNullDataPoints||e[s].length===1){var o=this.markers.plotChartMarkers(t,a,i+1,this.strokeWidth-n.config.markers.strokeWidth/2,!0);o!==null&&this.elPointsMain.add(o)}}}]),E}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function E(o,l,h,u){this.xoffset=o,this.yoffset=l,this.height=u,this.width=h,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(p){var g,m=[],y=this.xoffset,k=this.yoffset,_=a(p)/this.height,D=a(p)/this.width;if(this.width>=this.height)for(g=0;g<p.length;g++)m.push([y,k,y+_,k+p[g]/_]),k+=p[g]/_;else for(g=0;g<p.length;g++)m.push([y,k,y+p[g]/D,k+D]),y+=p[g]/D;return m},this.cutArea=function(p){var g;if(this.width>=this.height){var m=p/this.height,y=this.width-m;g=new E(this.xoffset+m,this.yoffset,y,this.height)}else{var k=p/this.width,_=this.height-k;g=new E(this.xoffset,this.yoffset+k,this.width,_)}return g}}function e(o,l,h,u,p){u=u===void 0?0:u,p=p===void 0?0:p;var g=t(function(m,y){var k,_=[],D=y/a(m);for(k=0;k<m.length;k++)_[k]=m[k]*D;return _}(o,l*h),[],new E(u,p,l,h),[]);return function(m){var y,k,_=[];for(y=0;y<m.length;y++)for(k=0;k<m[y].length;k++)_.push(m[y][k]);return _}(g)}function t(o,l,h,u){var p,g,m;if(o.length!==0)return p=h.shortestEdge(),function(y,k,_){var D;if(y.length===0)return!0;(D=y.slice()).push(k);var I=s(y,_),c=s(D,_);return I>=c}(l,g=o[0],p)?(l.push(g),t(o.slice(1),l,h,u)):(m=h.cutArea(a(l),u),u.push(h.getCoordinates(l)),t(o,[],m,u)),u;u.push(h.getCoordinates(l))}function s(o,l){var h=Math.min.apply(Math,o),u=Math.max.apply(Math,o),p=a(o);return Math.max(Math.pow(l,2)*u/Math.pow(p,2),Math.pow(p,2)/(Math.pow(l,2)*h))}function i(o){return o&&o.constructor===Array}function a(o){var l,h=0;for(l=0;l<o.length;l++)h+=o[l];return h}function n(o){var l,h=0;if(i(o[0]))for(l=0;l<o.length;l++)h+=n(o[l]);else h=a(o);return h}return function o(l,h,u,p,g){p=p===void 0?0:p,g=g===void 0?0:g;var m,y,k=[],_=[];if(i(l[0])){for(y=0;y<l.length;y++)k[y]=n(l[y]);for(m=e(k,h,u,p,g),y=0;y<l.length;y++)_.push(o(l[y],m[y][2]-m[y][0],m[y][3]-m[y][1],m[y][0],m[y][1]))}else _=e(l,h,u,p,g);return _}}();var st,Rt,pu=function(){function E(e,t){C(this,E),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Ji(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return S(E,[{key:"draw",value:function(e){var t=this,s=this.w,i=new Y(this.ctx),a=new _e(this.ctx),n=i.group({class:"apexcharts-treemap"});if(s.globals.noData)return n;var o=[];return e.forEach(function(l){var h=l.map(function(u){return Math.abs(u)});o.push(h)}),this.negRange=this.helpers.checkColorRange(),s.config.series.forEach(function(l,h){l.data.forEach(function(u){Array.isArray(t.labels[h])||(t.labels[h]=[]),t.labels[h].push(u.x)})}),window.TreemapSquared.generate(o,s.globals.gridWidth,s.globals.gridHeight).forEach(function(l,h){var u=i.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:R.escapeString(s.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});if(s.config.chart.dropShadow.enabled){var p=s.config.chart.dropShadow;new ee(t.ctx).dropShadow(n,p,h)}var g=i.group({class:"apexcharts-data-labels"});l.forEach(function(m,y){var k=m[0],_=m[1],D=m[2],I=m[3],c=i.drawRect(k,_,D-k,I-_,0,"#fff",1,t.strokeWidth,s.config.plotOptions.treemap.useFillColorAsStroke?w:s.globals.stroke.colors[h]);c.attr({cx:k,cy:_,index:h,i:h,j:y,width:D-k,height:I-_});var f=t.helpers.getShadeColor(s.config.chart.type,h,y,t.negRange),w=f.color;s.config.series[h].data[y]!==void 0&&s.config.series[h].data[y].fillColor&&(w=s.config.series[h].data[y].fillColor);var L=a.fillPath({color:w,seriesNumber:h,dataPointIndex:y});c.node.classList.add("apexcharts-treemap-rect"),c.attr({fill:L}),t.helpers.addListeners(c);var z={x:k+(D-k)/2,y:_+(I-_)/2,width:0,height:0},M={x:k,y:_,width:D-k,height:I-_};if(s.config.chart.animations.enabled&&!s.globals.dataChanged){var F=1;s.globals.resized||(F=s.config.chart.animations.speed),t.animateTreemap(c,z,M,F)}if(s.globals.dataChanged){var V=1;t.dynamicAnim.enabled&&s.globals.shouldAnimate&&(V=t.dynamicAnim.speed,s.globals.previousPaths[h]&&s.globals.previousPaths[h][y]&&s.globals.previousPaths[h][y].rect&&(z=s.globals.previousPaths[h][y].rect),t.animateTreemap(c,z,M,V))}var W=t.getFontSize(m),j=s.config.dataLabels.formatter(t.labels[h][y],{value:s.globals.series[h][y],seriesIndex:h,dataPointIndex:y,w:s});s.config.plotOptions.treemap.dataLabels.format==="truncate"&&(W=parseInt(s.config.dataLabels.style.fontSize,10),j=t.truncateLabels(j,W,k,_,D,I));var G=t.helpers.calculateDataLabels({text:j,x:(k+D)/2,y:(_+I)/2+t.strokeWidth/2+W/3,i:h,j:y,colorProps:f,fontSize:W,series:e});s.config.dataLabels.enabled&&G&&t.rotateToFitLabel(G,W,j,k,_,D,I),u.add(c),G!==null&&u.add(G)}),u.add(g),n.add(u)}),n}},{key:"getFontSize",value:function(e){var t=this.w,s,i,a,n,o=function l(h){var u,p=0;if(Array.isArray(h[0]))for(u=0;u<h.length;u++)p+=l(h[u]);else for(u=0;u<h.length;u++)p+=h[u].length;return p}(this.labels)/function l(h){var u,p=0;if(Array.isArray(h[0]))for(u=0;u<h.length;u++)p+=l(h[u]);else for(u=0;u<h.length;u++)p+=1;return p}(this.labels);return s=e[2]-e[0],i=e[3]-e[1],a=s*i,n=Math.pow(a,.5),Math.min(n/o,parseInt(t.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,s,i,a,n,o){var l=new Y(this.ctx),h=l.getTextRects(s,t);if(h.width+this.w.config.stroke.width+5>n-i&&h.width<=o-a){var u=l.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(u.x," ").concat(u.y,") translate(").concat(h.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,s,i,a,n){var o=new Y(this.ctx),l=o.getTextRects(e,t).width+this.w.config.stroke.width+5>a-s&&n-i>a-s?n-i:a-s,h=o.getTextBasedOnMaxWidth({text:e,maxWidth:l,fontSize:t});return e.length!==h.length&&l/t<5?"":h}},{key:"animateTreemap",value:function(e,t,s,i){var a=new $(this.ctx);a.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:s.x,y:s.y,width:s.width,height:s.height},i,function(){a.animationCompleted(e)})}}]),E}(),gu=86400,fu=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return S(E,[{key:"calculateTimeScaleTicks",value:function(e,t){var s=this,i=this.w;if(i.globals.allSeriesCollapsed)return i.globals.labels=[],i.globals.timescaleLabels=[],[];var a=new Q(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 o=a.getTimeUnitsfromTimestamp(e,t,this.utc),l=i.globals.gridWidth/n,h=l/24,u=h/60,p=u/60,g=Math.floor(24*n),m=Math.floor(1440*n),y=Math.floor(n*gu),k=Math.floor(n),_=Math.floor(n/30),D=Math.floor(n/365),I={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},c={firstVal:I,currentMillisecond:I.minMillisecond,currentSecond:I.minSecond,currentMinute:I.minMinute,currentHour:I.minHour,currentMonthDate:I.minDate,currentDate:I.minDate,currentMonth:I.minMonth,currentYear:I.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:h,minutesWidthOnXAxis:u,secondsWidthOnXAxis:p,numberOfSeconds:y,numberOfMinutes:m,numberOfHours:g,numberOfDays:k,numberOfMonths:_,numberOfYears:D};switch(this.tickInterval){case"years":this.generateYearScale(c);break;case"months":case"half_year":this.generateMonthScale(c);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(c);break;case"hours":this.generateHourScale(c);break;case"minutes_fives":case"minutes":this.generateMinuteScale(c);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(c)}var f=this.timeScaleArray.map(function(w){var L={position:w.position,unit:w.unit,year:w.year,day:w.day?w.day:1,hour:w.hour?w.hour:0,month:w.month+1};return w.unit==="month"?v(v({},L),{},{day:1,value:w.value+1}):w.unit==="day"||w.unit==="hour"?v(v({},L),{},{value:w.value}):w.unit==="minute"?v(v({},L),{},{value:w.value,minute:w.value}):w.unit==="second"?v(v({},L),{},{value:w.value,minute:w.minute,second:w.second}):w});return f.filter(function(w){var L=1,z=Math.ceil(i.globals.gridWidth/120),M=w.value;i.config.xaxis.tickAmount!==void 0&&(z=i.config.xaxis.tickAmount),f.length>z&&(L=Math.floor(f.length/z));var F=!1,V=!1;switch(s.tickInterval){case"years":w.unit==="year"&&(F=!0);break;case"half_year":L=7,w.unit==="year"&&(F=!0);break;case"months":L=1,w.unit==="year"&&(F=!0);break;case"months_fortnight":L=15,w.unit!=="year"&&w.unit!=="month"||(F=!0),M===30&&(V=!0);break;case"months_days":L=10,w.unit==="month"&&(F=!0),M===30&&(V=!0);break;case"week_days":L=8,w.unit==="month"&&(F=!0);break;case"days":L=1,w.unit==="month"&&(F=!0);break;case"hours":w.unit==="day"&&(F=!0);break;case"minutes_fives":case"seconds_fives":M%5!=0&&(V=!0);break;case"seconds_tens":M%10!=0&&(V=!0)}if(s.tickInterval==="hours"||s.tickInterval==="minutes_fives"||s.tickInterval==="seconds_tens"||s.tickInterval==="seconds_fives"){if(!V)return!0}else if((M%L==0||F)&&!V)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var s=this.w,i=this.formatDates(e),a=this.removeOverlappingTS(i);s.globals.timescaleLabels=a.slice(),new Bt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,s=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 s>15:this.tickInterval="minutes_fives";break;case s>5:this.tickInterval="minutes";break;case s>1:this.tickInterval="seconds_tens";break;case 60*s>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,s=e.currentMonth,i=e.currentYear,a=e.daysWidthOnXAxis,n=e.numberOfYears,o=t.minYear,l=0,h=new Q(this.ctx),u="year";if(t.minDate>1||t.minMonth>0){var p=h.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);l=(h.determineDaysOfYear(t.minYear)-p+1)*a,o=t.minYear+1,this.timeScaleArray.push({position:l,value:o,unit:u,year:o,month:R.monthMod(s+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:l,value:o,unit:u,year:i,month:R.monthMod(s+1)});for(var g=o,m=l,y=0;y<n;y++)g++,m=h.determineDaysOfYear(g-1)*a+m,this.timeScaleArray.push({position:m,value:g,unit:u,year:g,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,s=e.currentMonthDate,i=e.currentMonth,a=e.currentYear,n=e.daysWidthOnXAxis,o=e.numberOfMonths,l=i,h=0,u=new Q(this.ctx),p="month",g=0;if(t.minDate>1){h=(u.determineDaysOfMonths(i+1,t.minYear)-s+1)*n,l=R.monthMod(i+1);var m=a+g,y=R.monthMod(l),k=l;l===0&&(p="year",k=m,y=1,m+=g+=1),this.timeScaleArray.push({position:h,value:k,unit:p,year:m,month:y})}else this.timeScaleArray.push({position:h,value:l,unit:p,year:a,month:R.monthMod(i)});for(var _=l+1,D=h,I=0,c=1;I<o;I++,c++){(_=R.monthMod(_))===0?(p="year",g+=1):p="month";var f=this._getYear(a,_,g);D=u.determineDaysOfMonths(_,f)*n+D;var w=_===0?f:_;this.timeScaleArray.push({position:D,value:w,unit:p,year:f,month:_===0?1:_}),_++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,s=e.currentMonth,i=e.currentYear,a=e.hoursWidthOnXAxis,n=e.numberOfDays,o=new Q(this.ctx),l="day",h=t.minDate+1,u=h,p=function(c,f,w){return c>o.determineDaysOfMonths(f+1,w)&&(u=1,l="month",m=f+=1),f},g=(24-t.minHour)*a,m=h,y=p(u,s,i);t.minHour===0&&t.minDate===1?(g=0,m=R.monthMod(t.minMonth),l="month",u=t.minDate,n++):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(g=0,h=t.minDate,m=h,y=p(u=h,s,i)),this.timeScaleArray.push({position:g,value:m,unit:l,year:this._getYear(i,y,0),month:R.monthMod(y),day:u});for(var k=g,_=0;_<n;_++){l="day",y=p(u+=1,y,this._getYear(i,y,0));var D=this._getYear(i,y,0);k=24*a+k;var I=u===1?R.monthMod(y):u;this.timeScaleArray.push({position:k,value:I,unit:l,year:D,month:R.monthMod(y),day:I})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,s=e.currentDate,i=e.currentMonth,a=e.currentYear,n=e.minutesWidthOnXAxis,o=e.numberOfHours,l=new Q(this.ctx),h="hour",u=function(L,z){return L>l.determineDaysOfMonths(z+1,a)&&(_=1,z+=1),{month:z,date:_}},p=function(L,z){return L>l.determineDaysOfMonths(z+1,a)?z+=1:z},g=60-(t.minMinute+t.minSecond/60),m=g*n,y=t.minHour+1,k=y+1;g===60&&(m=0,k=(y=t.minHour)+1);var _=s,D=p(_,i);this.timeScaleArray.push({position:m,value:y,unit:h,day:_,hour:k,year:a,month:R.monthMod(D)});for(var I=m,c=0;c<o;c++){h="hour",k>=24&&(k=0,h="day",D=u(_+=1,D).month,D=p(_,D));var f=this._getYear(a,D,0);I=60*n+I;var w=k===0?_:k;this.timeScaleArray.push({position:I,value:w,unit:h,hour:k,day:_,year:f,month:R.monthMod(D)}),k++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,s=e.currentSecond,i=e.currentMinute,a=e.currentHour,n=e.currentDate,o=e.currentMonth,l=e.currentYear,h=e.minutesWidthOnXAxis,u=e.secondsWidthOnXAxis,p=e.numberOfMinutes,g=i+1,m=n,y=o,k=l,_=a,D=(60-s-t/1e3)*u,I=0;I<p;I++)g>=60&&(g=0,(_+=1)===24&&(_=0)),this.timeScaleArray.push({position:D,value:g,unit:"minute",hour:_,minute:g,day:m,year:this._getYear(k,y,0),month:R.monthMod(y)}),D+=h,g++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,s=e.currentSecond,i=e.currentMinute,a=e.currentHour,n=e.currentDate,o=e.currentMonth,l=e.currentYear,h=e.secondsWidthOnXAxis,u=e.numberOfSeconds,p=s+1,g=i,m=n,y=o,k=l,_=a,D=(1e3-t)/1e3*h,I=0;I<u;I++)p>=60&&(p=0,++g>=60&&(g=0,++_===24&&(_=0))),this.timeScaleArray.push({position:D,value:p,unit:"second",hour:_,minute:g,second:p,day:m,year:this._getYear(k,y,0),month:R.monthMod(y)}),D+=h,p++}},{key:"createRawDateString",value:function(e,t){var s=e.year;return e.month===0&&(e.month=1),s+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?s+=e.unit==="day"?"-"+("0"+t).slice(-2):"-01":s+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?s+=e.unit==="hour"?"T"+("0"+t).slice(-2):"T00":s+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?s+=":"+("0"+t).slice(-2):s+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?s+=":"+("0"+t).slice(-2):s+=":00",this.utc&&(s+=".000Z"),s}},{key:"formatDates",value:function(e){var t=this,s=this.w;return e.map(function(i){var a=i.value.toString(),n=new Q(t.ctx),o=t.createRawDateString(i,a),l=n.getDate(n.parseDate(o));if(t.utc||(l=n.getDate(n.parseDateWithTimezone(o))),s.config.xaxis.labels.format===void 0){var h="dd MMM",u=s.config.xaxis.labels.datetimeFormatter;i.unit==="year"&&(h=u.year),i.unit==="month"&&(h=u.month),i.unit==="day"&&(h=u.day),i.unit==="hour"&&(h=u.hour),i.unit==="minute"&&(h=u.minute),i.unit==="second"&&(h=u.second),a=n.formatDate(l,h)}else a=n.formatDate(l,s.config.xaxis.labels.format);return{dateString:o,position:i.position,value:a,unit:i.unit,year:i.year,month:i.month}})}},{key:"removeOverlappingTS",value:function(e){var t,s=this,i=new Y(this.ctx),a=!1;e.length>0&&e[0].value&&e.every(function(l){return l.value.length===e[0].value.length})&&(a=!0,t=i.getTextRects(e[0].value).width);var n=0,o=e.map(function(l,h){if(h>0&&s.w.config.xaxis.labels.hideOverlappingLabels){var u=a?t:i.getTextRects(e[n].value).width,p=e[n].position;return l.position>p+u+10?(n=h,l):null}return l});return o=o.filter(function(l){return l!==null})}},{key:"_getYear",value:function(e,t,s){return e+Math.floor(t/12)+s}}]),E}(),xu=function(){function E(e,t){C(this,E),this.ctx=t,this.w=t.w,this.el=e}return S(E,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,s=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(s)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(s)>-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"),Y.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"),Y.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 s=this.w,i=s.config,a=s.globals,n={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},u={series:[],i:[]},p={series:[],i:[]},g={series:[],i:[]},m={series:[],i:[]},y={series:[],seriesRangeEnd:[],i:[]};a.series.map(function(z,M){var F=0;e[M].type!==void 0?(e[M].type==="column"||e[M].type==="bar"?(a.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`"),u.series.push(z),u.i.push(M),F++,s.globals.columnSeries=u.series):e[M].type==="area"?(o.series.push(z),o.i.push(M),F++):e[M].type==="line"?(n.series.push(z),n.i.push(M),F++):e[M].type==="scatter"?(l.series.push(z),l.i.push(M)):e[M].type==="bubble"?(h.series.push(z),h.i.push(M),F++):e[M].type==="candlestick"?(p.series.push(z),p.i.push(M),F++):e[M].type==="boxPlot"?(g.series.push(z),g.i.push(M),F++):e[M].type==="rangeBar"?(m.series.push(z),m.i.push(M),F++):e[M].type==="rangeArea"?(y.series.push(a.seriesRangeStart[M]),y.seriesRangeEnd.push(a.seriesRangeEnd[M]),y.i.push(M),F++):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"),F>1&&(a.comboCharts=!0)):(n.series.push(z),n.i.push(M))});var k=new ms(this.ctx,t),_=new xs(this.ctx,t);this.ctx.pie=new Ki(this.ctx);var D=new hu(this.ctx);this.ctx.rangeBar=new du(this.ctx,t);var I=new cu(this.ctx),c=[];if(a.comboCharts){if(o.series.length>0&&c.push(k.draw(o.series,"area",o.i)),u.series.length>0)if(s.config.chart.stacked){var f=new Zi(this.ctx,t);c.push(f.draw(u.series,u.i))}else this.ctx.bar=new dt(this.ctx,t),c.push(this.ctx.bar.draw(u.series,u.i));if(y.series.length>0&&c.push(k.draw(y.series,"rangeArea",y.i,y.seriesRangeEnd)),n.series.length>0&&c.push(k.draw(n.series,"line",n.i)),p.series.length>0&&c.push(_.draw(p.series,"candlestick",p.i)),g.series.length>0&&c.push(_.draw(g.series,"boxPlot",g.i)),m.series.length>0&&c.push(this.ctx.rangeBar.draw(m.series,m.i)),l.series.length>0){var w=new ms(this.ctx,t,!0);c.push(w.draw(l.series,"scatter",l.i))}if(h.series.length>0){var L=new ms(this.ctx,t,!0);c.push(L.draw(h.series,"bubble",h.i))}}else switch(i.chart.type){case"line":c=k.draw(a.series,"line");break;case"area":c=k.draw(a.series,"area");break;case"bar":i.chart.stacked?c=new Zi(this.ctx,t).draw(a.series):(this.ctx.bar=new dt(this.ctx,t),c=this.ctx.bar.draw(a.series));break;case"candlestick":c=new xs(this.ctx,t).draw(a.series,"candlestick");break;case"boxPlot":c=new xs(this.ctx,t).draw(a.series,i.chart.type);break;case"rangeBar":c=this.ctx.rangeBar.draw(a.series);break;case"rangeArea":c=k.draw(a.seriesRangeStart,"rangeArea",void 0,a.seriesRangeEnd);break;case"heatmap":c=new lu(this.ctx,t).draw(a.series);break;case"treemap":c=new pu(this.ctx,t).draw(a.series);break;case"pie":case"donut":case"polarArea":c=this.ctx.pie.draw(a.series);break;case"radialBar":c=D.draw(a.series);break;case"radar":c=I.draw(a.series);break;default:c=k.draw(a.series)}return c}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var s=R.getDimensions(this.el),i=t.chart.width.toString().split(/[0-9]+/g).pop();i==="%"?R.isNumber(s[0])&&(s[0].width===0&&(s=R.getDimensions(this.el.parentNode)),e.svgWidth=s[0]*parseInt(t.chart.width,10)/100):i!=="px"&&i!==""||(e.svgWidth=parseInt(t.chart.width,10));var a=t.chart.height.toString().split(/[0-9]+/g).pop();if(e.svgHeight!=="auto"&&e.svgHeight!=="")if(a==="%"){var n=R.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),Y.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),a!=="%"){var o=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+o+"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,s={transform:"translate("+e.translateX+", "+t+")"};Y.setAttrs(e.dom.elGraphical.node,s)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,s=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||(s=new Yi(this.ctx).legendHelpers.getLegendBBox().clwh+10);var a=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*e.globals.radialSize;if(a&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var o=R.getBoundingClientRect(a);n=o.bottom;var l=o.bottom-o.top;n=Math.max(2.05*e.globals.radialSize,l)}var h=n+t.translateY+s+i;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",h),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=h+"px",Y.setAttrs(t.dom.Paper.node,{height:h}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=h+"px")}},{key:"coreCalculations",value:function(){new ps(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(a){return[]})},s=new Nt,i=this.w.globals;s.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 fs(this.ctx).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new fs(this.ctx).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new fu(this.ctx);var s=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?s=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(s=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(s)}e=new K(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 s=Array.isArray(t.config.chart.brush.targets)||[t.config.chart.brush.target];s.forEach(function(i){var a=ApexCharts.getChartByID(i);a.w.globals.brushSource=e.ctx,typeof a.w.config.chart.events.zoomed!="function"&&(a.w.config.chart.events.zoomed=function(){e.updateSourceChart(a)}),typeof a.w.config.chart.events.scrolled!="function"&&(a.w.config.chart.events.scrolled=function(){e.updateSourceChart(a)})}),t.config.chart.events.selection=function(i,a){s.forEach(function(n){var o=ApexCharts.getChartByID(n),l=R.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&o.w.globals.series.length===1){var h=new He(o);l=h.autoScaleY(o,l,a)}var u=o.w.config.yaxis.reduce(function(p,g,m){return[].concat(q(p),[v(v({},o.w.config.yaxis[m]),{},{min:l[0].min,max:l[0].max})])},[]);o.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max},yaxis:u},!1,!1,!1,!1)})}}}}]),E}(),mu=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(E,[{key:"_updateOptions",value:function(e){var t=this,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(o){var l=[t.ctx];a&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach(function(h,u){var p=h.w;if(p.globals.shouldAnimate=i,s||(p.globals.resized=!0,p.globals.dataChanged=!0,i&&h.series.getPreviousPaths()),e&&A(e)==="object"&&(h.config=new et(e),e=K.extendArrayProps(h.config,e,p),h.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,p.config=R.extend(p.config,e),n&&(p.globals.lastXAxis=e.xaxis?R.clone(e.xaxis):[],p.globals.lastYAxis=e.yaxis?R.clone(e.yaxis):[],p.globals.initialConfig=R.extend({},p.config),p.globals.initialSeries=R.clone(p.config.series),e.series))){for(var g=0;g<p.globals.collapsedSeriesIndices.length;g++){var m=p.config.series[p.globals.collapsedSeriesIndices[g]];p.globals.collapsedSeries[g].data=p.globals.axisCharts?m.data.slice():m}for(var y=0;y<p.globals.ancillaryCollapsedSeriesIndices.length;y++){var k=p.config.series[p.globals.ancillaryCollapsedSeriesIndices[y]];p.globals.ancillaryCollapsedSeries[y].data=p.globals.axisCharts?k.data.slice():k}h.series.emptyCollapsedSeries(p.config.series)}return h.update(e).then(function(){u===l.length-1&&o(h)})})})}},{key:"_updateSeries",value:function(e,t){var s=this,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(a){var n,o=s.w;return o.globals.shouldAnimate=t,o.globals.dataChanged=!0,t&&s.ctx.series.getPreviousPaths(),o.globals.axisCharts?((n=e.map(function(l,h){return s._extendSeries(l,h)})).length===0&&(n=[{data:[]}]),o.config.series=n):o.config.series=e.slice(),i&&(o.globals.initialConfig.series=R.clone(o.config.series),o.globals.initialSeries=R.clone(o.config.series)),s.ctx.update().then(function(){a(s.ctx)})})}},{key:"_extendSeries",value:function(e,t){var s=this.w,i=s.config.series[t];return v(v({},s.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 s=this.w,i=null,a=".apexcharts-series[data\\:realIndex='".concat(e,"']");return s.globals.axisCharts?i=s.globals.dom.Paper.select("".concat(a," path[j='").concat(t,"'], ").concat(a," circle[j='").concat(t,"'], ").concat(a," rect[j='").concat(t,"']")).members[0]:t===void 0&&(i=s.globals.dom.Paper.select("".concat(a," path[j='").concat(e,"']")).members[0],s.config.chart.type!=="pie"&&s.config.chart.type!=="polarArea"&&s.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),i?(new Y(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 s=new Ve(e);e=s.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,s){e.yaxis[s].min=0,e.yaxis[s].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,s=this.w,i=s.globals.lastXAxis,a=s.globals.lastYAxis;e&&e.xaxis&&(i=e.xaxis),e&&e.yaxis&&(a=e.yaxis),s.config.xaxis.min=i.min,s.config.xaxis.max=i.max;var n=function(o){a[o]!==void 0&&(s.config.yaxis[o].min=a[o].min,s.config.yaxis[o].max=a[o].max)};s.config.yaxis.map(function(o,l){s.globals.zoomed||a[l]!==void 0?n(l):t.ctx.opts.yaxis[l]!==void 0&&(o.min=t.ctx.opts.yaxis[l].min,o.max=t.ctx.opts.yaxis[l].max)})}}]),E}();st=typeof window<"u"?window:void 0,Rt=function(E,e){var t=(this!==void 0?this:E).SVG=function(c){if(t.supported)return c=new t.Doc(c),t.parser.draw||t.prepare(),c};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(c){return"Svgjs"+u(c)+t.did++},t.create=function(c){var f=e.createElementNS(this.ns,c);return f.setAttribute("id",this.eid(c)),f},t.extend=function(){var c,f;f=(c=[].slice.call(arguments)).pop();for(var w=c.length-1;w>=0;w--)if(c[w])for(var L in f)c[w].prototype[L]=f[L];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(c){var f=typeof c.create=="function"?c.create:function(){this.constructor.call(this,t.create(c.create))};return c.inherit&&(f.prototype=new c.inherit),c.extend&&t.extend(f,c.extend),c.construct&&t.extend(c.parent||t.Container,c.construct),f},t.adopt=function(c){return c?c.instance?c.instance:((f=c.nodeName=="svg"?c.parentNode instanceof E.SVGElement?new t.Nested:new t.Doc:c.nodeName=="linearGradient"?new t.Gradient("linear"):c.nodeName=="radialGradient"?new t.Gradient("radial"):t[u(c.nodeName)]?new t[u(c.nodeName)]:new t.Element(c)).type=c.nodeName,f.node=c,c.instance=f,f instanceof t.Doc&&f.namespace().defs(),f.setData(JSON.parse(c.getAttribute("svgjs:data"))||{}),f):null;var f},t.prepare=function(){var c=e.getElementsByTagName("body")[0],f=(c?new t.Doc(c):t.adopt(e.documentElement).nested()).size(2,0);t.parser={body:c||e.documentElement,draw:f.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:f.polyline().node,path:f.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(c,f){for(var w=c.length,L=[],z=0;z<w;z++)L.push(f(c[z]));return L},filter:function(c,f){for(var w=c.length,L=[],z=0;z<w;z++)f(c[z])&&L.push(c[z]);return L},filterSVGElements:function(c){return this.filter(c,function(f){return f 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(c){var f,w;this.r=0,this.g=0,this.b=0,c&&(typeof c=="string"?t.regex.isRgb.test(c)?(f=t.regex.rgb.exec(c.replace(t.regex.whitespace,"")),this.r=parseInt(f[1]),this.g=parseInt(f[2]),this.b=parseInt(f[3])):t.regex.isHex.test(c)&&(f=t.regex.hex.exec((w=c).length==4?["#",w.substring(1,2),w.substring(1,2),w.substring(2,3),w.substring(2,3),w.substring(3,4),w.substring(3,4)].join(""):w),this.r=parseInt(f[1],16),this.g=parseInt(f[2],16),this.b=parseInt(f[3],16)):A(c)==="object"&&(this.r=c.r,this.g=c.g,this.b=c.b))},t.extend(t.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+p(this.r)+p(this.g)+p(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(c){return this.destination=new t.Color(c),this},at:function(c){return this.destination?(c=c<0?0:c>1?1:c,new t.Color({r:~~(this.r+(this.destination.r-this.r)*c),g:~~(this.g+(this.destination.g-this.g)*c),b:~~(this.b+(this.destination.b-this.b)*c)})):this}}),t.Color.test=function(c){return c+="",t.regex.isHex.test(c)||t.regex.isRgb.test(c)},t.Color.isRgb=function(c){return c&&typeof c.r=="number"&&typeof c.g=="number"&&typeof c.b=="number"},t.Color.isColor=function(c){return t.Color.isRgb(c)||t.Color.test(c)},t.Array=function(c,f){(c=(c||[]).valueOf()).length==0&&f&&(c=f.valueOf()),this.value=this.parse(c)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(c){return c=c.valueOf(),Array.isArray(c)?c:this.split(c)}}),t.PointArray=function(c,f){t.Array.call(this,c,f||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var s={M:function(c,f,w){return f.x=w.x=c[0],f.y=w.y=c[1],["M",f.x,f.y]},L:function(c,f){return f.x=c[0],f.y=c[1],["L",c[0],c[1]]},H:function(c,f){return f.x=c[0],["H",c[0]]},V:function(c,f){return f.y=c[0],["V",c[0]]},C:function(c,f){return f.x=c[4],f.y=c[5],["C",c[0],c[1],c[2],c[3],c[4],c[5]]},Q:function(c,f){return f.x=c[2],f.y=c[3],["Q",c[0],c[1],c[2],c[3]]},Z:function(c,f,w){return f.x=w.x,f.y=w.y,["Z"]}},i="mlhvqtcsaz".split(""),a=0,n=i.length;a<n;++a)s[i[a]]=function(c){return function(f,w,L){if(c=="H")f[0]=f[0]+w.x;else if(c=="V")f[0]=f[0]+w.y;else if(c=="A")f[5]=f[5]+w.x,f[6]=f[6]+w.y;else for(var z=0,M=f.length;z<M;++z)f[z]=f[z]+(z%2?w.y:w.x);if(s&&typeof s[c]=="function")return s[c](f,w,L)}}(i[a].toUpperCase());t.PathArray=function(c,f){t.Array.call(this,c,f||[["M",0,0]])},t.PathArray.prototype=new t.Array,t.PathArray.prototype.constructor=t.PathArray,t.extend(t.PathArray,{toString:function(){return function(c){for(var f=0,w=c.length,L="";f<w;f++)L+=c[f][0],c[f][1]!=null&&(L+=c[f][1],c[f][2]!=null&&(L+=" ",L+=c[f][2],c[f][3]!=null&&(L+=" ",L+=c[f][3],L+=" ",L+=c[f][4],c[f][5]!=null&&(L+=" ",L+=c[f][5],L+=" ",L+=c[f][6],c[f][7]!=null&&(L+=" ",L+=c[f][7])))));return L+" "}(this.value)},move:function(c,f){var w=this.bbox();return w.x,w.y,this},at:function(c){if(!this.destination)return this;for(var f=this.value,w=this.destination.value,L=[],z=new t.PathArray,M=0,F=f.length;M<F;M++){L[M]=[f[M][0]];for(var V=1,W=f[M].length;V<W;V++)L[M][V]=f[M][V]+(w[M][V]-f[M][V])*c;L[M][0]==="A"&&(L[M][4]=+(L[M][4]!=0),L[M][5]=+(L[M][5]!=0))}return z.value=L,z},parse:function(c){if(c instanceof t.PathArray)return c.valueOf();var f,w={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};c=typeof c=="string"?c.replace(t.regex.numbersWithDots,l).replace(t.regex.pathLetters," $& ").replace(t.regex.hyphen,"$1 -").trim().split(t.regex.delimiter):c.reduce(function(W,j){return[].concat.call(W,j)},[]);var L=[],z=new t.Point,M=new t.Point,F=0,V=c.length;do t.regex.isPathLetter.test(c[F])?(f=c[F],++F):f=="M"?f="L":f=="m"&&(f="l"),L.push(s[f].call(null,c.slice(F,F+=w[f.toUpperCase()]).map(parseFloat),z,M));while(V>F);return L},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(c,f){this.value=0,this.unit=f||"",typeof c=="number"?this.value=isNaN(c)?0:isFinite(c)?c:c<0?-34e37:34e37:typeof c=="string"?(f=c.match(t.regex.numberAndUnit))&&(this.value=parseFloat(f[1]),f[5]=="%"?this.value/=100:f[5]=="s"&&(this.value*=1e3),this.unit=f[5]):c instanceof t.Number&&(this.value=c.valueOf(),this.unit=c.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(c){return c=new t.Number(c),new t.Number(this+c,this.unit||c.unit)},minus:function(c){return c=new t.Number(c),new t.Number(this-c,this.unit||c.unit)},times:function(c){return c=new t.Number(c),new t.Number(this*c,this.unit||c.unit)},divide:function(c){return c=new t.Number(c),new t.Number(this/c,this.unit||c.unit)},to:function(c){var f=new t.Number(this);return typeof c=="string"&&(f.unit=c),f},morph:function(c){return this.destination=new t.Number(c),c.relative&&(this.destination.value+=this.value),this},at:function(c){return this.destination?new t.Number(this.destination).minus(this).times(c).plus(this):this}}}),t.Element=t.invent({create:function(c){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=c)&&(this.type=c.nodeName,this.node.instance=this,this._stroke=c.getAttribute("stroke")||this._stroke)},extend:{x:function(c){return this.attr("x",c)},y:function(c){return this.attr("y",c)},cx:function(c){return c==null?this.x()+this.width()/2:this.x(c-this.width()/2)},cy:function(c){return c==null?this.y()+this.height()/2:this.y(c-this.height()/2)},move:function(c,f){return this.x(c).y(f)},center:function(c,f){return this.cx(c).cy(f)},width:function(c){return this.attr("width",c)},height:function(c){return this.attr("height",c)},size:function(c,f){var w=g(this,c,f);return this.width(new t.Number(w.width)).height(new t.Number(w.height))},clone:function(c){this.writeDataToDom();var f=k(this.node.cloneNode(!0));return c?c.add(f):this.after(f),f},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(c){return this.after(c).remove(),c},addTo:function(c){return c.put(this)},putIn:function(c){return c.add(this)},id:function(c){return this.attr("id",c)},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 c=this.attr("class");return c==null?[]:c.trim().split(t.regex.delimiter)},hasClass:function(c){return this.classes().indexOf(c)!=-1},addClass:function(c){if(!this.hasClass(c)){var f=this.classes();f.push(c),this.attr("class",f.join(" "))}return this},removeClass:function(c){return this.hasClass(c)&&this.attr("class",this.classes().filter(function(f){return f!=c}).join(" ")),this},toggleClass:function(c){return this.hasClass(c)?this.removeClass(c):this.addClass(c)},reference:function(c){return t.get(this.attr(c))},parent:function(c){var f=this;if(!f.node.parentNode)return null;if(f=t.adopt(f.node.parentNode),!c)return f;for(;f&&f.node instanceof E.SVGElement;){if(typeof c=="string"?f.matches(c):f instanceof c)return f;if(!f.node.parentNode||f.node.parentNode.nodeName=="#document")return null;f=t.adopt(f.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(c){var f=[],w=this;do{if(!(w=w.parent(c))||!w.node)break;f.push(w)}while(w.parent);return f},matches:function(c){return function(f,w){return(f.matches||f.matchesSelector||f.msMatchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector).call(f,w)}(this.node,c)},native:function(){return this.node},svg:function(c){var f=e.createElement("svg");if(!(c&&this instanceof t.Parent))return f.appendChild(c=e.createElement("svg")),this.writeDataToDom(),c.appendChild(this.node.cloneNode(!0)),f.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");f.innerHTML="<svg>"+c.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var w=0,L=f.firstChild.childNodes.length;w<L;w++)this.node.appendChild(f.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(c){return this.dom=c,this},is:function(c){return function(f,w){return f instanceof w}(this,c)}}}),t.easing={"-":function(c){return c},"<>":function(c){return-Math.cos(c*Math.PI)/2+.5},">":function(c){return Math.sin(c*Math.PI/2)},"<":function(c){return 1-Math.cos(c*Math.PI/2)}},t.morph=function(c){return function(f,w){return new t.MorphObj(f,w).at(c)}},t.Situation=t.invent({create:function(c){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new t.Number(c.duration).valueOf(),this.delay=new t.Number(c.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=c.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),t.FX=t.invent({create:function(c){this._target=c,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(c,f,w){A(c)==="object"&&(f=c.ease,w=c.delay,c=c.duration);var L=new t.Situation({duration:c||1e3,delay:w||0,ease:t.easing[f||"-"]||f});return this.queue(L),this},target:function(c){return c&&c instanceof t.Element?(this._target=c,this):this._target},timeToAbsPos:function(c){return(c-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(c){return this.situation.duration/this._speed*c+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(c){return(typeof c=="function"||c instanceof t.Situation)&&this.situations.push(c),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 c,f=this.situation;if(f.init)return this;for(var w in f.animations){c=this.target()[w](),Array.isArray(c)||(c=[c]),Array.isArray(f.animations[w])||(f.animations[w]=[f.animations[w]]);for(var L=c.length;L--;)f.animations[w][L]instanceof t.Number&&(c[L]=new t.Number(c[L])),f.animations[w][L]=c[L].morph(f.animations[w][L])}for(var w in f.attrs)f.attrs[w]=new t.MorphObj(this.target().attr(w),f.attrs[w]);for(var w in f.styles)f.styles[w]=new t.MorphObj(this.target().style(w),f.styles[w]);return f.initialTransformation=this.target().matrixify(),f.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(c,f){var w=this.active;return this.active=!1,f&&this.clearQueue(),c&&this.situation&&(!w&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(c){var f=this.last();return this.target().on("finished.fx",function w(L){L.detail.situation==f&&(c.call(this,f),this.off("finished.fx",w))}),this._callStart()},during:function(c){var f=this.last(),w=function(L){L.detail.situation==f&&c.call(this,L.detail.pos,t.morph(L.detail.pos),L.detail.eased,f)};return this.target().off("during.fx",w).on("during.fx",w),this.after(function(){this.off("during.fx",w)}),this._callStart()},afterAll:function(c){var f=function w(L){c.call(this),this.off("allfinished.fx",w)};return this.target().off("allfinished.fx",f).on("allfinished.fx",f),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(c,f,w){return this.last()[w||"animations"][c]=f,this._callStart()},step:function(c){var f,w,L;c||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(f=Math.max(this.absPos,0),w=Math.floor(f),this.situation.loops===!0||w<this.situation.loops?(this.pos=f-w,L=this.situation.loop,this.situation.loop=w):(this.absPos=this.situation.loops,this.pos=1,L=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-L)%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 z=this.situation.ease(this.pos);for(var M in this.situation.once)M>this.lastPos&&M<=z&&(this.situation.once[M].call(this.target(),this.pos,z),delete this.situation.once[M]);return this.active&&this.target().fire("during",{pos:this.pos,eased:z,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=z,this):this},eachAt:function(){var c,f=this,w=this.target(),L=this.situation;for(var z in L.animations)c=[].concat(L.animations[z]).map(function(V){return typeof V!="string"&&V.at?V.at(L.ease(f.pos),f.pos):V}),w[z].apply(w,c);for(var z in L.attrs)c=[z].concat(L.attrs[z]).map(function(W){return typeof W!="string"&&W.at?W.at(L.ease(f.pos),f.pos):W}),w.attr.apply(w,c);for(var z in L.styles)c=[z].concat(L.styles[z]).map(function(W){return typeof W!="string"&&W.at?W.at(L.ease(f.pos),f.pos):W}),w.style.apply(w,c);if(L.transforms.length){c=L.initialTransformation,z=0;for(var M=L.transforms.length;z<M;z++){var F=L.transforms[z];F instanceof t.Matrix?c=F.relative?c.multiply(new t.Matrix().morph(F).at(L.ease(this.pos))):c.morph(F).at(L.ease(this.pos)):(F.relative||F.undo(c.extract()),c=c.multiply(F.at(L.ease(this.pos))))}w.matrix(c)}return this},once:function(c,f,w){var L=this.last();return w||(c=L.ease(c)),L.once[c]=f,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:t.Element,construct:{animate:function(c,f,w){return(this.fx||(this.fx=new t.FX(this))).animate(c,f,w)},delay:function(c){return(this.fx||(this.fx=new t.FX(this))).delay(c)},stop:function(c,f){return this.fx&&this.fx.stop(c,f),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),t.MorphObj=t.invent({create:function(c,f){return t.Color.isColor(f)?new t.Color(c).morph(f):t.regex.delimiter.test(c)?t.regex.pathLetters.test(c)?new t.PathArray(c).morph(f):new t.Array(c).morph(f):t.regex.numberAndUnit.test(f)?new t.Number(c).morph(f):(this.value=c,void(this.destination=f))},extend:{at:function(c,f){return f<1?this.value:this.destination},valueOf:function(){return this.value}}}),t.extend(t.FX,{attr:function(c,f,w){if(A(c)==="object")for(var L in c)this.attr(L,c[L]);else this.add(c,f,"attrs");return this},plot:function(c,f,w,L){return arguments.length==4?this.plot([c,f,w,L]):this.add("plot",new(this.target()).morphArray(c))}}),t.Box=t.invent({create:function(c,f,w,L){if(!(A(c)!=="object"||c instanceof t.Element))return t.Box.call(this,c.left!=null?c.left:c.x,c.top!=null?c.top:c.y,c.width,c.height);var z;arguments.length==4&&(this.x=c,this.y=f,this.width=w,this.height=L),(z=this).x==null&&(z.x=0,z.y=0,z.width=0,z.height=0),z.w=z.width,z.h=z.height,z.x2=z.x+z.width,z.y2=z.y+z.height,z.cx=z.x+z.width/2,z.cy=z.y+z.height/2}}),t.BBox=t.invent({create:function(c){if(t.Box.apply(this,[].slice.call(arguments)),c instanceof t.Element){var f;try{if(!e.documentElement.contains){for(var w=c.node;w.parentNode;)w=w.parentNode;if(w!=e)throw new Error("Element not in the dom")}f=c.node.getBBox()}catch{if(c instanceof t.Shape){t.parser.draw||t.prepare();var L=c.clone(t.parser.draw.instance).show();L&&L.node&&typeof L.node.getBBox=="function"&&(f=L.node.getBBox()),L&&typeof L.remove=="function"&&L.remove()}else f={x:c.node.clientLeft,y:c.node.clientTop,width:c.node.clientWidth,height:c.node.clientHeight}}t.Box.call(this,f)}},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(c){var f=y([1,0,0,1,0,0]);c=c===null?f:c instanceof t.Element?c.matrixify():typeof c=="string"?y(c.split(t.regex.delimiter).map(parseFloat)):arguments.length==6?y([].slice.call(arguments)):Array.isArray(c)?y(c):c&&A(c)==="object"?c:f;for(var w=D.length-1;w>=0;--w)this[D[w]]=c[D[w]]!=null?c[D[w]]:f[D[w]]},extend:{extract:function(){var c=m(this,0,1);m(this,1,0);var f=180/Math.PI*Math.atan2(c.y,c.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(f*Math.PI/180)+this.f*Math.sin(f*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(f*Math.PI/180)+this.e*Math.sin(-f*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:f,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(c){return this.destination=new t.Matrix(c),this},multiply:function(c){return new t.Matrix(this.native().multiply(function(f){return f instanceof t.Matrix||(f=new t.Matrix(f)),f}(c).native()))},inverse:function(){return new t.Matrix(this.native().inverse())},translate:function(c,f){return new t.Matrix(this.native().translate(c||0,f||0))},native:function(){for(var c=t.parser.native.createSVGMatrix(),f=D.length-1;f>=0;f--)c[D[f]]=this[D[f]];return c},toString:function(){return"matrix("+_(this.a)+","+_(this.b)+","+_(this.c)+","+_(this.d)+","+_(this.e)+","+_(this.f)+")"}},parent:t.Element,construct:{ctm:function(){return new t.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof t.Nested){var c=this.rect(1,1),f=c.node.getScreenCTM();return c.remove(),new t.Matrix(f)}return new t.Matrix(this.node.getScreenCTM())}}}),t.Point=t.invent({create:function(c,f){var w;w=Array.isArray(c)?{x:c[0],y:c[1]}:A(c)==="object"?{x:c.x,y:c.y}:c!=null?{x:c,y:f??c}:{x:0,y:0},this.x=w.x,this.y=w.y},extend:{clone:function(){return new t.Point(this)},morph:function(c,f){return this.destination=new t.Point(c,f),this}}}),t.extend(t.Element,{point:function(c,f){return new t.Point(c,f).transform(this.screenCTM().inverse())}}),t.extend(t.Element,{attr:function(c,f,w){if(c==null){for(c={},w=(f=this.node.attributes).length-1;w>=0;w--)c[f[w].nodeName]=t.regex.isNumber.test(f[w].nodeValue)?parseFloat(f[w].nodeValue):f[w].nodeValue;return c}if(A(c)==="object")for(var L in c)this.attr(L,c[L]);else if(f===null)this.node.removeAttribute(c);else{if(f==null)return(f=this.node.getAttribute(c))==null?t.defaults.attrs[c]:t.regex.isNumber.test(f)?parseFloat(f):f;c=="stroke-width"?this.attr("stroke",parseFloat(f)>0?this._stroke:null):c=="stroke"&&(this._stroke=f),c!="fill"&&c!="stroke"||(t.regex.isImage.test(f)&&(f=this.doc().defs().image(f,0,0)),f instanceof t.Image&&(f=this.doc().defs().pattern(0,0,function(){this.add(f)}))),typeof f=="number"?f=new t.Number(f):t.Color.isColor(f)?f=new t.Color(f):Array.isArray(f)&&(f=new t.Array(f)),c=="leading"?this.leading&&this.leading(f):typeof w=="string"?this.node.setAttributeNS(w,c,f.toString()):this.node.setAttribute(c,f.toString()),!this.rebuild||c!="font-size"&&c!="x"||this.rebuild(c,f)}return this}}),t.extend(t.Element,{transform:function(c,f){var w;return A(c)!=="object"?(w=new t.Matrix(this).extract(),typeof c=="string"?w[c]:w):(w=new t.Matrix(this),f=!!f||!!c.relative,c.a!=null&&(w=f?w.multiply(new t.Matrix(c)):new t.Matrix(c)),this.attr("transform",w))}}),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(c){var f=c.trim().split("(");return[f[0],f[1].split(t.regex.delimiter).map(function(w){return parseFloat(w)})]}).reduce(function(c,f){return f[0]=="matrix"?c.multiply(y(f[1])):c[f[0]].apply(c,f[1])},new t.Matrix)},toParent:function(c){if(this==c)return this;var f=this.screenCTM(),w=c.screenCTM().inverse();return this.addTo(c).untransform().transform(w.multiply(f)),this},toDoc:function(){return this.toParent(this.doc())}}),t.Transformation=t.invent({create:function(c,f){if(arguments.length>1&&typeof f!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(c))for(var w=0,L=this.arguments.length;w<L;++w)this[this.arguments[w]]=c[w];else if(c&&A(c)==="object")for(w=0,L=this.arguments.length;w<L;++w)this[this.arguments[w]]=c[this.arguments[w]];this.inversed=!1,f===!0&&(this.inversed=!0)}}),t.Translate=t.invent({parent:t.Matrix,inherit:t.Transformation,create:function(c,f){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),t.extend(t.Element,{style:function(c,f){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(A(c)==="object")for(var w in c)this.style(w,c[w]);else{if(!t.regex.isCss.test(c))return this.node.style[h(c)];for(c=c.split(/\s*;\s*/).filter(function(L){return!!L}).map(function(L){return L.split(/\s*:\s*/)});f=c.pop();)this.style(f[0],f[1])}else this.node.style[h(c)]=f===null||t.regex.isBlank.test(f)?"":f;return this}}),t.Parent=t.invent({create:function(c){this.constructor.call(this,c)},inherit:t.Element,extend:{children:function(){return t.utils.map(t.utils.filterSVGElements(this.node.childNodes),function(c){return t.adopt(c)})},add:function(c,f){return f==null?this.node.appendChild(c.node):c.node!=this.node.childNodes[f]&&this.node.insertBefore(c.node,this.node.childNodes[f]),this},put:function(c,f){return this.add(c,f),c},has:function(c){return this.index(c)>=0},index:function(c){return[].slice.call(this.node.childNodes).indexOf(c.node)},get:function(c){return t.adopt(this.node.childNodes[c])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(c,f){for(var w=this.children(),L=0,z=w.length;L<z;L++)w[L]instanceof t.Element&&c.apply(w[L],[L,w]),f&&w[L]instanceof t.Container&&w[L].each(c,f);return this},removeElement:function(c){return this.node.removeChild(c.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(c,f){return f===0||this instanceof t.Defs||this.node==t.parser.draw||(c=c||(this instanceof t.Doc?this:this.parent(t.Parent)),f=f||1/0,this.each(function(){return this instanceof t.Defs?this:this instanceof t.Parent?this.ungroup(c,f-1):this.toParent(c)}),this.node.firstChild||this.remove()),this},flatten:function(c,f){return this.ungroup(c,f)}}),t.Container=t.invent({create:function(c){this.constructor.call(this,c)},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(c){t.Element.prototype[c]=function(f){return t.on(this.node,c,f),this}}),t.listeners=[],t.handlerMap=[],t.listenerId=0,t.on=function(c,f,w,L,z){var M=w.bind(L||c.instance||c),F=(t.handlerMap.indexOf(c)+1||t.handlerMap.push(c))-1,V=f.split(".")[0],W=f.split(".")[1]||"*";t.listeners[F]=t.listeners[F]||{},t.listeners[F][V]=t.listeners[F][V]||{},t.listeners[F][V][W]=t.listeners[F][V][W]||{},w._svgjsListenerId||(w._svgjsListenerId=++t.listenerId),t.listeners[F][V][W][w._svgjsListenerId]=M,c.addEventListener(V,M,z||{passive:!0})},t.off=function(c,f,w){var L=t.handlerMap.indexOf(c),z=f&&f.split(".")[0],M=f&&f.split(".")[1],F="";if(L!=-1)if(w){if(typeof w=="function"&&(w=w._svgjsListenerId),!w)return;t.listeners[L][z]&&t.listeners[L][z][M||"*"]&&(c.removeEventListener(z,t.listeners[L][z][M||"*"][w],!1),delete t.listeners[L][z][M||"*"][w])}else if(M&&z){if(t.listeners[L][z]&&t.listeners[L][z][M]){for(var V in t.listeners[L][z][M])t.off(c,[z,M].join("."),V);delete t.listeners[L][z][M]}}else if(M)for(var W in t.listeners[L])for(var F in t.listeners[L][W])M===F&&t.off(c,[W,M].join("."));else if(z){if(t.listeners[L][z]){for(var F in t.listeners[L][z])t.off(c,[z,F].join("."));delete t.listeners[L][z]}}else{for(var W in t.listeners[L])t.off(c,W);delete t.listeners[L],delete t.handlerMap[L]}},t.extend(t.Element,{on:function(c,f,w,L){return t.on(this.node,c,f,w,L),this},off:function(c,f){return t.off(this.node,c,f),this},fire:function(c,f){return c instanceof E.Event?this.node.dispatchEvent(c):this.node.dispatchEvent(c=new t.CustomEvent(c,{detail:f,cancelable:!0})),this._event=c,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(c){return c==null?this.transform("x"):this.transform({x:c-this.x()},!0)}},construct:{group:function(){return this.put(new t.G)}}}),t.Doc=t.invent({create:function(c){c&&((c=typeof c=="string"?e.getElementById(c):c).nodeName=="svg"?this.constructor.call(this,c):(this.constructor.call(this,t.create("svg")),c.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 c;return this._defs||((c=this.node.getElementsByTagName("defs")[0])?this._defs=t.adopt(c):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(c){this.writeDataToDom();var f=this.node,w=k(f.cloneNode(!0));return c?(c.node||c).appendChild(w.node):f.parentNode.insertBefore(w.node,f.nextSibling),w}}}),t.extend(t.Element,{}),t.Gradient=t.invent({create:function(c){this.constructor.call(this,t.create(c+"Gradient")),this.type=c},inherit:t.Container,extend:{at:function(c,f,w){return this.put(new t.Stop).update(c,f,w)},update:function(c){return this.clear(),typeof c=="function"&&c.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(c,f,w){return c=="transform"&&(c="gradientTransform"),t.Container.prototype.attr.call(this,c,f,w)}},construct:{gradient:function(c,f){return this.defs().gradient(c,f)}}}),t.extend(t.Gradient,t.FX,{from:function(c,f){return(this._target||this).type=="radial"?this.attr({fx:new t.Number(c),fy:new t.Number(f)}):this.attr({x1:new t.Number(c),y1:new t.Number(f)})},to:function(c,f){return(this._target||this).type=="radial"?this.attr({cx:new t.Number(c),cy:new t.Number(f)}):this.attr({x2:new t.Number(c),y2:new t.Number(f)})}}),t.extend(t.Defs,{gradient:function(c,f){return this.put(new t.Gradient(c)).update(f)}}),t.Stop=t.invent({create:"stop",inherit:t.Element,extend:{update:function(c){return(typeof c=="number"||c instanceof t.Number)&&(c={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),c.opacity!=null&&this.attr("stop-opacity",c.opacity),c.color!=null&&this.attr("stop-color",c.color),c.offset!=null&&this.attr("offset",new t.Number(c.offset)),this}}}),t.Pattern=t.invent({create:"pattern",inherit:t.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(c){return this.clear(),typeof c=="function"&&c.call(this,this),this},toString:function(){return this.fill()},attr:function(c,f,w){return c=="transform"&&(c="patternTransform"),t.Container.prototype.attr.call(this,c,f,w)}},construct:{pattern:function(c,f,w){return this.defs().pattern(c,f,w)}}}),t.extend(t.Defs,{pattern:function(c,f,w){return this.put(new t.Pattern).update(w).attr({x:0,y:0,width:c,height:f,patternUnits:"userSpaceOnUse"})}}),t.Shape=t.invent({create:function(c){this.constructor.call(this,c)},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(c,f){return this.attr("href",(f||"")+"#"+c,t.xlink)}},construct:{use:function(c,f){return this.put(new t.Use).element(c,f)}}}),t.Rect=t.invent({create:"rect",inherit:t.Shape,construct:{rect:function(c,f){return this.put(new t.Rect).size(c,f)}}}),t.Circle=t.invent({create:"circle",inherit:t.Shape,construct:{circle:function(c){return this.put(new t.Circle).rx(new t.Number(c).divide(2)).move(0,0)}}}),t.extend(t.Circle,t.FX,{rx:function(c){return this.attr("r",c)},ry:function(c){return this.rx(c)}}),t.Ellipse=t.invent({create:"ellipse",inherit:t.Shape,construct:{ellipse:function(c,f){return this.put(new t.Ellipse).size(c,f).move(0,0)}}}),t.extend(t.Ellipse,t.Rect,t.FX,{rx:function(c){return this.attr("rx",c)},ry:function(c){return this.attr("ry",c)}}),t.extend(t.Circle,t.Ellipse,{x:function(c){return c==null?this.cx()-this.rx():this.cx(c+this.rx())},y:function(c){return c==null?this.cy()-this.ry():this.cy(c+this.ry())},cx:function(c){return c==null?this.attr("cx"):this.attr("cx",c)},cy:function(c){return c==null?this.attr("cy"):this.attr("cy",c)},width:function(c){return c==null?2*this.rx():this.rx(new t.Number(c).divide(2))},height:function(c){return c==null?2*this.ry():this.ry(new t.Number(c).divide(2))},size:function(c,f){var w=g(this,c,f);return this.rx(new t.Number(w.width).divide(2)).ry(new t.Number(w.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(c,f,w,L){return c==null?this.array():(c=f!==void 0?{x1:c,y1:f,x2:w,y2:L}:new t.PointArray(c).toLine(),this.attr(c))},move:function(c,f){return this.attr(this.array().move(c,f).toLine())},size:function(c,f){var w=g(this,c,f);return this.attr(this.array().size(w.width,w.height).toLine())}},construct:{line:function(c,f,w,L){return t.Line.prototype.plot.apply(this.put(new t.Line),c!=null?[c,f,w,L]:[0,0,0,0])}}}),t.Polyline=t.invent({create:"polyline",inherit:t.Shape,construct:{polyline:function(c){return this.put(new t.Polyline).plot(c||new t.PointArray)}}}),t.Polygon=t.invent({create:"polygon",inherit:t.Shape,construct:{polygon:function(c){return this.put(new t.Polygon).plot(c||new t.PointArray)}}}),t.extend(t.Polyline,t.Polygon,{array:function(){return this._array||(this._array=new t.PointArray(this.attr("points")))},plot:function(c){return c==null?this.array():this.clear().attr("points",typeof c=="string"?c:this._array=new t.PointArray(c))},clear:function(){return delete this._array,this},move:function(c,f){return this.attr("points",this.array().move(c,f))},size:function(c,f){var w=g(this,c,f);return this.attr("points",this.array().size(w.width,w.height))}}),t.extend(t.Line,t.Polyline,t.Polygon,{morphArray:t.PointArray,x:function(c){return c==null?this.bbox().x:this.move(c,this.bbox().y)},y:function(c){return c==null?this.bbox().y:this.move(this.bbox().x,c)},width:function(c){var f=this.bbox();return c==null?f.width:this.size(c,f.height)},height:function(c){var f=this.bbox();return c==null?f.height:this.size(f.width,c)}}),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(c){return c==null?this.array():this.clear().attr("d",typeof c=="string"?c:this._array=new t.PathArray(c))},clear:function(){return delete this._array,this}},construct:{path:function(c){return this.put(new t.Path).plot(c||new t.PathArray)}}}),t.Image=t.invent({create:"image",inherit:t.Shape,extend:{load:function(c){if(!c)return this;var f=this,w=new E.Image;return t.on(w,"load",function(){t.off(w);var L=f.parent(t.Pattern);L!==null&&(f.width()==0&&f.height()==0&&f.size(w.width,w.height),L&&L.width()==0&&L.height()==0&&L.size(f.width(),f.height()),typeof f._loaded=="function"&&f._loaded.call(f,{width:w.width,height:w.height,ratio:w.width/w.height,url:c}))}),t.on(w,"error",function(L){t.off(w),typeof f._error=="function"&&f._error.call(f,L)}),this.attr("href",w.src=this.src=c,t.xlink)},loaded:function(c){return this._loaded=c,this},error:function(c){return this._error=c,this}},construct:{image:function(c,f,w){return this.put(new t.Image).load(c).size(f||0,w||f||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(c){return c==null?this.attr("x"):this.attr("x",c)},text:function(c){if(c===void 0){c="";for(var f=this.node.childNodes,w=0,L=f.length;w<L;++w)w!=0&&f[w].nodeType!=3&&t.adopt(f[w]).dom.newLined==1&&(c+=`
|
|
130
|
+
`),c+=f[w].textContent;return c}if(this.clear().build(!0),typeof c=="function")c.call(this,this);else{w=0;for(var z=(c=c.split(`
|
|
131
|
+
`)).length;w<z;w++)this.tspan(c[w]).newLine()}return this.build(!1).rebuild()},size:function(c){return this.attr("font-size",c).rebuild()},leading:function(c){return c==null?this.dom.leading:(this.dom.leading=new t.Number(c),this.rebuild())},lines:function(){var c=(this.textPath&&this.textPath()||this).node,f=t.utils.map(t.utils.filterSVGElements(c.childNodes),function(w){return t.adopt(w)});return new t.Set(f)},rebuild:function(c){if(typeof c=="boolean"&&(this._rebuild=c),this._rebuild){var f=this,w=0,L=this.dom.leading*new t.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(f.textPath()||this.attr("x",f.attr("x")),this.text()==`
|
|
132
|
+
`?w+=L:(this.attr("dy",L+w),w=0))}),this.fire("rebuild")}return this},build:function(c){return this._build=!!c,this},setData:function(c){return this.dom=c,this.dom.leading=new t.Number(c.leading||1.3),this}},construct:{text:function(c){return this.put(new t.Text).text(c)},plain:function(c){return this.put(new t.Text).plain(c)}}}),t.Tspan=t.invent({create:"tspan",inherit:t.Shape,extend:{text:function(c){return c==null?this.node.textContent+(this.dom.newLined?`
|
|
133
|
+
`:""):(typeof c=="function"?c.call(this,this):this.plain(c),this)},dx:function(c){return this.attr("dx",c)},dy:function(c){return this.attr("dy",c)},newLine:function(){var c=this.parent(t.Text);return this.dom.newLined=!0,this.dy(c.dom.leading*c.attr("font-size")).attr("x",c.x())}}}),t.extend(t.Text,t.Tspan,{plain:function(c){return this._build===!1&&this.clear(),this.node.appendChild(e.createTextNode(c)),this},tspan:function(c){var f=(this.textPath&&this.textPath()||this).node,w=new t.Tspan;return this._build===!1&&this.clear(),f.appendChild(w.node),w.text(c)},clear:function(){for(var c=(this.textPath&&this.textPath()||this).node;c.hasChildNodes();)c.removeChild(c.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 c=this.track();return c?c.array():null},plot:function(c){var f=this.track(),w=null;return f&&(w=f.plot(c)),c==null?w:this},track:function(){var c=this.textPath();if(c)return c.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 o={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(c,f){return f=="color"?c:c+"-"+f}};function l(c,f,w,L){return w+L.replace(t.regex.dots," .")}function h(c){return c.toLowerCase().replace(/-(.)/g,function(f,w){return w.toUpperCase()})}function u(c){return c.charAt(0).toUpperCase()+c.slice(1)}function p(c){var f=c.toString(16);return f.length==1?"0"+f:f}function g(c,f,w){if(f==null||w==null){var L=c.bbox();f==null?f=L.width/L.height*w:w==null&&(w=L.height/L.width*f)}return{width:f,height:w}}function m(c,f,w){return{x:f*c.a+w*c.c+0,y:f*c.b+w*c.d+0}}function y(c){return{a:c[0],b:c[1],c:c[2],d:c[3],e:c[4],f:c[5]}}function k(c){for(var f=c.childNodes.length-1;f>=0;f--)c.childNodes[f]instanceof E.SVGElement&&k(c.childNodes[f]);return t.adopt(c).id(t.eid(c.nodeName))}function _(c){return Math.abs(c)>1e-37?c:0}["fill","stroke"].forEach(function(c){var f={};f[c]=function(w){if(w===void 0)return this;if(typeof w=="string"||t.Color.isRgb(w)||w&&typeof w.fill=="function")this.attr(c,w);else for(var L=o[c].length-1;L>=0;L--)w[o[c][L]]!=null&&this.attr(o.prefix(c,o[c][L]),w[o[c][L]]);return this},t.extend(t.Element,t.FX,f)}),t.extend(t.Element,t.FX,{translate:function(c,f){return this.transform({x:c,y:f})},matrix:function(c){return this.attr("transform",new t.Matrix(arguments.length==6?[].slice.call(arguments):c))},opacity:function(c){return this.attr("opacity",c)},dx:function(c){return this.x(new t.Number(c).plus(this instanceof t.FX?0:this.x()),!0)},dy:function(c){return this.y(new t.Number(c).plus(this instanceof t.FX?0:this.y()),!0)}}),t.extend(t.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(c){return this.node.getPointAtLength(c)}}),t.Set=t.invent({create:function(c){Array.isArray(c)?this.members=c:this.clear()},extend:{add:function(){for(var c=[].slice.call(arguments),f=0,w=c.length;f<w;f++)this.members.push(c[f]);return this},remove:function(c){var f=this.index(c);return f>-1&&this.members.splice(f,1),this},each:function(c){for(var f=0,w=this.members.length;f<w;f++)c.apply(this.members[f],[f,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(c){return this.index(c)>=0},index:function(c){return this.members.indexOf(c)},get:function(c){return this.members[c]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(c){return new t.Set(c)}}}),t.FX.Set=t.invent({create:function(c){this.set=c}}),t.Set.inherit=function(){var c=[];for(var f in t.Shape.prototype)typeof t.Shape.prototype[f]=="function"&&typeof t.Set.prototype[f]!="function"&&c.push(f);for(var f in c.forEach(function(L){t.Set.prototype[L]=function(){for(var z=0,M=this.members.length;z<M;z++)this.members[z]&&typeof this.members[z][L]=="function"&&this.members[z][L].apply(this.members[z],arguments);return L=="animate"?this.fx||(this.fx=new t.FX.Set(this)):this}}),c=[],t.FX.prototype)typeof t.FX.prototype[f]=="function"&&typeof t.FX.Set.prototype[f]!="function"&&c.push(f);c.forEach(function(w){t.FX.Set.prototype[w]=function(){for(var L=0,z=this.set.members.length;L<z;L++)this.set.members[L].fx[w].apply(this.set.members[L].fx,arguments);return this}})},t.extend(t.Element,{}),t.extend(t.Element,{remember:function(c,f){if(A(arguments[0])==="object")for(var w in c)this.remember(w,c[w]);else{if(arguments.length==1)return this.memory()[c];this.memory()[c]=f}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var c=arguments.length-1;c>=0;c--)delete this.memory()[arguments[c]];return this},memory:function(){return this._memory||(this._memory={})}}),t.get=function(c){var f=e.getElementById(function(w){var L=(w||"").toString().match(t.regex.reference);if(L)return L[1]}(c)||c);return t.adopt(f)},t.select=function(c,f){return new t.Set(t.utils.map((f||e).querySelectorAll(c),function(w){return t.adopt(w)}))},t.extend(t.Parent,{select:function(c){return t.select(c,this.node)}});var D="abcdef".split("");if(typeof E.CustomEvent!="function"){var I=function(c,f){f=f||{bubbles:!1,cancelable:!1,detail:void 0};var w=e.createEvent("CustomEvent");return w.initCustomEvent(c,f.bubbles,f.cancelable,f.detail),w};I.prototype=E.Event.prototype,t.CustomEvent=I}else t.CustomEvent=E.CustomEvent;return t},A(r)==="object"?b.exports=st.document?Rt(st,st.document):function(E){return Rt(E,E.document)}:st.SVG=Rt(st,st.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,o){return this.add(n,o),!n.attr("in")&&this.autoSetIn&&n.attr("in",this.source),n.attr("result")||n.attr("result",n),n},blend:function(n,o,l){return this.put(new SVG.BlendEffect(n,o,l))},colorMatrix:function(n,o){return this.put(new SVG.ColorMatrixEffect(n,o))},convolveMatrix:function(n){return this.put(new SVG.ConvolveMatrixEffect(n))},componentTransfer:function(n){return this.put(new SVG.ComponentTransferEffect(n))},composite:function(n,o,l){return this.put(new SVG.CompositeEffect(n,o,l))},flood:function(n,o){return this.put(new SVG.FloodEffect(n,o))},offset:function(n,o){return this.put(new SVG.OffsetEffect(n,o))},image:function(n){return this.put(new SVG.ImageEffect(n))},merge:function(){var n=[void 0];for(var o in arguments)n.push(arguments[o]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,n)))},gaussianBlur:function(n,o){return this.put(new SVG.GaussianBlurEffect(n,o))},morphology:function(n,o){return this.put(new SVG.MorphologyEffect(n,o))},diffuseLighting:function(n,o,l){return this.put(new SVG.DiffuseLightingEffect(n,o,l))},displacementMap:function(n,o,l,h,u){return this.put(new SVG.DisplacementMapEffect(n,o,l,h,u))},specularLighting:function(n,o,l,h){return this.put(new SVG.SpecularLightingEffect(n,o,l,h))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(n,o,l,h,u){return this.put(new SVG.TurbulenceEffect(n,o,l,h,u))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(n){var o=this.put(new SVG.Filter);return typeof n=="function"&&n.call(o,o),o}}),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,o){return this.parent()&&this.parent().blend(this,n,o)},colorMatrix:function(n,o){return this.parent()&&this.parent().colorMatrix(n,o).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,o){return this.parent()&&this.parent().composite(this,n,o)},flood:function(n,o){return this.parent()&&this.parent().flood(n,o)},offset:function(n,o){return this.parent()&&this.parent().offset(n,o).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,o){return this.parent()&&this.parent().gaussianBlur(n,o).in(this)},morphology:function(n,o){return this.parent()&&this.parent().morphology(n,o).in(this)},diffuseLighting:function(n,o,l){return this.parent()&&this.parent().diffuseLighting(n,o,l).in(this)},displacementMap:function(n,o,l,h){return this.parent()&&this.parent().displacementMap(this,n,o,l,h)},specularLighting:function(n,o,l,h){return this.parent()&&this.parent().specularLighting(n,o,l,h).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(n,o,l,h,u){return this.parent()&&this.parent().turbulence(n,o,l,h,u).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,o,l){this.attr({in:n,in2:o,mode:l||"normal"})},colorMatrix:function(n,o){n=="matrix"&&(o=i(o)),this.attr({type:n,values:o===void 0?null:o})},convolveMatrix:function(n){n=i(n),this.attr({order:Math.sqrt(n.split(" ").length),kernelMatrix:n})},composite:function(n,o,l){this.attr({in:n,in2:o,operator:l})},flood:function(n,o){this.attr("flood-color",n),o!=null&&this.attr("flood-opacity",o)},offset:function(n,o){this.attr({dx:n,dy:o})},image:function(n){this.attr("href",n,SVG.xlink)},displacementMap:function(n,o,l,h,u){this.attr({in:n,in2:o,scale:l,xChannelSelector:h,yChannelSelector:u})},gaussianBlur:function(n,o){n!=null||o!=null?this.attr("stdDeviation",function(l){if(!Array.isArray(l))return l;for(var h=0,u=l.length,p=[];h<u;h++)p.push(l[h]);return p.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(n,o){this.attr({operator:n,radius:o})},tile:function(){},turbulence:function(n,o,l,h,u){this.attr({numOctaves:o,seed:l,stitchTiles:h,baseFrequency:n,type:u})}},t={merge:function(){var n;if(arguments[0]instanceof SVG.Set){var o=this;arguments[0].each(function(h){this instanceof SVG.MergeNode?o.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&o.put(new SVG.MergeNode(this))})}else{n=Array.isArray(arguments[0])?arguments[0]:arguments;for(var l=0;l<n.length;l++)n[l]instanceof SVG.MergeNode?this.put(n[l]):this.put(new SVG.MergeNode(n[l]))}},componentTransfer:function(n){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(l){this[l]=new SVG["Func"+l.toUpperCase()]("identity"),this.rgb.add(this[l]),this.node.appendChild(this[l].node)}).bind(this)),n)for(var o in n.rgb&&(["r","g","b"].forEach((function(l){this[l].attr(n.rgb)}).bind(this)),delete n.rgb),n)this[o].attr(n[o])},diffuseLighting:function(n,o,l){this.attr({surfaceScale:n,diffuseConstant:o,kernelUnitLength:l})},specularLighting:function(n,o,l,h){this.attr({surfaceScale:n,diffuseConstant:o,specularExponent:l,kernelUnitLength:h})}},s={distantLight:function(n,o){this.attr({azimuth:n,elevation:o})},pointLight:function(n,o,l){this.attr({x:n,y:o,z:l})},spotLight:function(n,o,l,h,u,p){this.attr({x:n,y:o,z:l,pointsAtX:h,pointsAtY:u,pointsAtZ:p})},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 a(){var n=function(){};for(var o in typeof arguments[arguments.length-1]=="function"&&(n=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var l in arguments[o])n(arguments[o][l],l,arguments[o])}["r","g","b","a"].forEach(function(n){s["Func"+n.toUpperCase()]=function(o){switch(this.attr("type",o),o){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])}}}),a(e,function(n,o){var l=o.charAt(0).toUpperCase()+o.slice(1);SVG[l+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+l)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),a(t,function(n,o){var l=o.charAt(0).toUpperCase()+o.slice(1);SVG[l+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+l)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),a(s,function(n,o){var l=o.charAt(0).toUpperCase()+o.slice(1);SVG[l]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+l)),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(a,n,o,l,h,u,p){for(var g=a.slice(n,o||p),m=l.slice(h,u||p),y=0,k={pos:[0,0],start:[0,0]},_={pos:[0,0],start:[0,0]};g[y]=e.call(k,g[y]),m[y]=e.call(_,m[y]),g[y][0]!=m[y][0]||g[y][0]=="M"||g[y][0]=="A"&&(g[y][4]!=m[y][4]||g[y][5]!=m[y][5])?(Array.prototype.splice.apply(g,[y,1].concat(s.call(k,g[y]))),Array.prototype.splice.apply(m,[y,1].concat(s.call(_,m[y])))):(g[y]=t.call(k,g[y]),m[y]=t.call(_,m[y])),!(++y==g.length&&y==m.length);)y==g.length&&g.push(["C",k.pos[0],k.pos[1],k.pos[0],k.pos[1],k.pos[0],k.pos[1]]),y==m.length&&m.push(["C",_.pos[0],_.pos[1],_.pos[0],_.pos[1],_.pos[0],_.pos[1]]);return{start:g,dest:m}}function e(a){switch(a[0]){case"z":case"Z":a[0]="L",a[1]=this.start[0],a[2]=this.start[1];break;case"H":a[0]="L",a[2]=this.pos[1];break;case"V":a[0]="L",a[2]=a[1],a[1]=this.pos[0];break;case"T":a[0]="Q",a[3]=a[1],a[4]=a[2],a[1]=this.reflection[1],a[2]=this.reflection[0];break;case"S":a[0]="C",a[6]=a[4],a[5]=a[3],a[4]=a[2],a[3]=a[1],a[2]=this.reflection[1],a[1]=this.reflection[0]}return a}function t(a){var n=a.length;return this.pos=[a[n-2],a[n-1]],"SCQT".indexOf(a[0])!=-1&&(this.reflection=[2*this.pos[0]-a[n-4],2*this.pos[1]-a[n-3]]),a}function s(a){var n=[a];switch(a[0]){case"M":return this.pos=this.start=[a[1],a[2]],n;case"L":a[5]=a[3]=a[1],a[6]=a[4]=a[2],a[1]=this.pos[0],a[2]=this.pos[1];break;case"Q":a[6]=a[4],a[5]=a[3],a[4]=1*a[4]/3+2*a[2]/3,a[3]=1*a[3]/3+2*a[1]/3,a[2]=1*this.pos[1]/3+2*a[2]/3,a[1]=1*this.pos[0]/3+2*a[1]/3;break;case"A":n=function(o,l){var h,u,p,g,m,y,k,_,D,I,c,f,w,L,z,M,F,V,W,j,G,Z,se,ne,le,de,ve=Math.abs(l[1]),me=Math.abs(l[2]),ye=l[3]%360,Je=l[4],it=l[5],vs=l[6],ys=l[7],Ae=new SVG.Point(o),we=new SVG.Point(vs,ys),ea=[];if(ve===0||me===0||Ae.x===we.x&&Ae.y===we.y)return[["C",Ae.x,Ae.y,we.x,we.y,we.x,we.y]];for(h=new SVG.Point((Ae.x-we.x)/2,(Ae.y-we.y)/2).transform(new SVG.Matrix().rotate(ye)),(u=h.x*h.x/(ve*ve)+h.y*h.y/(me*me))>1&&(ve*=u=Math.sqrt(u),me*=u),p=new SVG.Matrix().rotate(ye).scale(1/ve,1/me).rotate(-ye),Ae=Ae.transform(p),we=we.transform(p),g=[we.x-Ae.x,we.y-Ae.y],y=g[0]*g[0]+g[1]*g[1],m=Math.sqrt(y),g[0]/=m,g[1]/=m,k=y<4?Math.sqrt(1-y/4):0,Je===it&&(k*=-1),_=new SVG.Point((we.x+Ae.x)/2+k*-g[1],(we.y+Ae.y)/2+k*g[0]),D=new SVG.Point(Ae.x-_.x,Ae.y-_.y),I=new SVG.Point(we.x-_.x,we.y-_.y),c=Math.acos(D.x/Math.sqrt(D.x*D.x+D.y*D.y)),D.y<0&&(c*=-1),f=Math.acos(I.x/Math.sqrt(I.x*I.x+I.y*I.y)),I.y<0&&(f*=-1),it&&c>f&&(f+=2*Math.PI),!it&&c<f&&(f-=2*Math.PI),L=Math.ceil(2*Math.abs(c-f)/Math.PI),M=[],F=c,w=(f-c)/L,z=4*Math.tan(w/4)/3,G=0;G<=L;G++)W=Math.cos(F),V=Math.sin(F),j=new SVG.Point(_.x+W,_.y+V),M[G]=[new SVG.Point(j.x+z*V,j.y-z*W),j,new SVG.Point(j.x-z*V,j.y+z*W)],F+=w;for(M[0][0]=M[0][1].clone(),M[M.length-1][2]=M[M.length-1][1].clone(),p=new SVG.Matrix().rotate(ye).scale(ve,me).rotate(-ye),G=0,Z=M.length;G<Z;G++)M[G][0]=M[G][0].transform(p),M[G][1]=M[G][1].transform(p),M[G][2]=M[G][2].transform(p);for(G=1,Z=M.length;G<Z;G++)se=(j=M[G-1][2]).x,ne=j.y,le=(j=M[G][0]).x,de=j.y,vs=(j=M[G][1]).x,ys=j.y,ea.push(["C",se,ne,le,de,vs,ys]);return ea}(this.pos,a),a=n[0]}return a[0]="C",this.pos=[a[5],a[6]],this.reflection=[2*a[5]-a[3],2*a[6]-a[4]],n}function i(a,n){if(n===!1)return!1;for(var o=n,l=a.length;o<l;++o)if(a[o][0]=="M")return o;return!1}SVG.extend(SVG.PathArray,{morph:function(a){for(var n=this.value,o=this.parse(a),l=0,h=0,u=!1,p=!1;l!==!1||h!==!1;){var g;u=i(n,l!==!1&&l+1),p=i(o,h!==!1&&h+1),l===!1&&(l=(g=new SVG.PathArray(m.start).bbox()).height==0||g.width==0?n.push(n[0])-1:n.push(["M",g.x+g.width/2,g.y+g.height/2])-1),h===!1&&(h=(g=new SVG.PathArray(m.dest).bbox()).height==0||g.width==0?o.push(o[0])-1:o.push(["M",g.x+g.width/2,g.y+g.height/2])-1);var m=E(n,l,u,o,h,p);n=n.slice(0,l).concat(m.start,u===!1?[]:n.slice(u)),o=o.slice(0,h).concat(m.dest,p===!1?[]:o.slice(p)),l=u!==!1&&l+m.start.length,h=p!==!1&&h+m.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=o,this}})}(),(function(){function E(e){e.remember("_draggable",this),this.el=e}E.prototype.init=function(e,t){var s=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",function(i){s.start(i)}),this.el.on("touchstart.drag",function(i){s.start(i)})},E.prototype.transformPoint=function(e,t){var s=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=s.clientX-(t||0),this.p.y=s.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 s,i=this.getBBox();if(this.el instanceof SVG.Text)switch(s=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":s/=2;break;case"start":s=0}this.startPoints={point:this.transformPoint(e,s),box:i,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(a){t.drag(a)}),SVG.on(window,"touchmove.drag",function(a){t.drag(a)}),SVG.on(window,"mouseup.drag",function(a){t.end(a)}),SVG.on(window,"touchend.drag",function(a){t.end(a)}),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},E.prototype.drag=function(e){var t=this.getBBox(),s=this.transformPoint(e),i=this.startPoints.box.x+s.x-this.startPoints.point.x,a=this.startPoints.box.y+s.y-this.startPoints.point.y,n=this.constraint,o=s.x-this.startPoints.point.x,l=s.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:s,m:this.m,handler:this}),this.el.event().defaultPrevented)return s;if(typeof n=="function"){var h=n.call(this.el,i,a,this.m);typeof h=="boolean"&&(h={x:h,y:h}),h.x===!0?this.el.x(i):h.x!==!1&&this.el.x(h.x),h.y===!0?this.el.y(a):h.y!==!1&&this.el.y(h.y)}else typeof n=="object"&&(n.minX!=null&&i<n.minX?o=(i=n.minX)-this.startPoints.box.x:n.maxX!=null&&i>n.maxX-t.width&&(o=(i=n.maxX-t.width)-this.startPoints.box.x),n.minY!=null&&a<n.minY?l=(a=n.minY)-this.startPoints.box.y:n.maxY!=null&&a>n.maxY-t.height&&(l=(a=n.maxY-t.height)-this.startPoints.box.y),n.snapToGrid!=null&&(i-=i%n.snapToGrid,a-=a%n.snapToGrid,o-=o%n.snapToGrid,l-=l%n.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:l},!0):this.el.move(i,a));return s},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 s=this.remember("_draggable")||new E(this);return(e=e===void 0||e)?s.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,s,i){var a=typeof t!="string"?t:s[t];return i?a/2:a},this.pointCoords=function(t,s){var i=this.pointsList[t];return{x:this.pointCoord(i[0],s,t==="t"||t==="b"),y:this.pointCoord(i[1],s,t==="r"||t==="l")}}}E.prototype.init=function(e,t){var s=this.el.bbox();this.options={};var i=this.el.selectize.defaults.points;for(var a in this.el.selectize.defaults)this.options[a]=this.el.selectize.defaults[a],t[a]!==void 0&&(this.options[a]=t[a]);var n=["points","pointsExclude"];for(var a in n){var o=this.options[n[a]];typeof o=="string"?o=o.length>0?o.split(/\s*,\s*/i):[]:typeof o=="boolean"&&n[a]==="points"&&(o=o?i:[]),this.options[n[a]]=o}this.options.points=[i,this.options.points].reduce(function(l,h){return l.filter(function(u){return h.indexOf(u)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(l,h){return l.filter(function(u){return h.indexOf(u)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(s.x,s.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(),s=0,i=t.length;s<i;++s){var a=function(o){return function(l){(l=l||window.event).preventDefault?l.preventDefault():l.returnValue=!1,l.stopPropagation();var h=l.pageX||l.touches[0].pageX,u=l.pageY||l.touches[0].pageY;e.el.fire("point",{x:h,y:u,i:o,event:l})}}(s),n=this.drawPoint(t[s][0],t[s][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",a).on("mousedown",a);this.pointSelection.set.add(n)}},E.prototype.drawPoint=function(e,t){var s=this.options.pointType;switch(s){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if(typeof s=="function")return s.call(this,e,t);throw new Error("Unknown "+s+" 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,a){var n=e.pointCoords(i,t);e.rectSelection.set.get(a+1).center(n.x,n.y)}),this.options.rotationPoint){var s=this.rectSelection.set.length();this.rectSelection.set.get(s-1).center(t.width/2,20)}},E.prototype.selectRect=function(e){var t=this,s=this.el.bbox();function i(o){return function(l){(l=l||window.event).preventDefault?l.preventDefault():l.returnValue=!1,l.stopPropagation();var h=l.pageX||l.touches[0].pageX,u=l.pageY||l.touches[0].pageY;t.el.fire(o,{x:h,y:u,event:l})}}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(s.width,s.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(o,l){var h=t.pointCoords(o,s),u=t.drawPoint(h.x,h.y).attr("class",t.options.classPoints+"_"+o).on("mousedown",i(o)).on("touchstart",i(o));t.rectSelection.set.add(u)}),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 a=function(o){(o=o||window.event).preventDefault?o.preventDefault():o.returnValue=!1,o.stopPropagation();var l=o.pageX||o.touches[0].pageX,h=o.pageY||o.touches[0].pageY;t.el.fire("rot",{x:l,y:h,event:o})},n=this.drawPoint(s.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",a).on("mousedown",a);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,s){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(s||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 s in this.options={},this.el.resize.defaults)this.options[s]=this.el.resize.defaults[s],e[s]!==void 0&&(this.options[s]=e[s]);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 s=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(s.x,s.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(a,n){var o=this.snapToGrid(a,n);if(this.parameters.box.width-o[0]>0&&this.parameters.box.height-o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-o[0]);o=this.checkAspectRatio(o),this.el.move(this.parameters.box.x+o[0],this.parameters.box.y+o[1]).size(this.parameters.box.width-o[0],this.parameters.box.height-o[1])}};break;case"rt":this.calc=function(a,n){var o=this.snapToGrid(a,n,2);if(this.parameters.box.width+o[0]>0&&this.parameters.box.height-o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+o[0]);o=this.checkAspectRatio(o,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+o[1]).size(this.parameters.box.width+o[0],this.parameters.box.height-o[1])}};break;case"rb":this.calc=function(a,n){var o=this.snapToGrid(a,n,0);if(this.parameters.box.width+o[0]>0&&this.parameters.box.height+o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+o[0]);o=this.checkAspectRatio(o),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+o[0],this.parameters.box.height+o[1])}};break;case"lb":this.calc=function(a,n){var o=this.snapToGrid(a,n,1);if(this.parameters.box.width-o[0]>0&&this.parameters.box.height+o[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+o[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-o[0]);o=this.checkAspectRatio(o,!0),this.el.move(this.parameters.box.x+o[0],this.parameters.box.y).size(this.parameters.box.width-o[0],this.parameters.box.height+o[1])}};break;case"t":this.calc=function(a,n){var o=this.snapToGrid(a,n,2);if(this.parameters.box.height-o[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+o[1]).height(this.parameters.box.height-o[1])}};break;case"r":this.calc=function(a,n){var o=this.snapToGrid(a,n,0);if(this.parameters.box.width+o[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+o[0])}};break;case"b":this.calc=function(a,n){var o=this.snapToGrid(a,n,0);if(this.parameters.box.height+o[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+o[1])}};break;case"l":this.calc=function(a,n){var o=this.snapToGrid(a,n,1);if(this.parameters.box.width-o[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+o[0],this.parameters.box.y).width(this.parameters.box.width-o[0])}};break;case"rot":this.calc=function(a,n){var o=a+this.parameters.p.x,l=n+this.parameters.p.y,h=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),u=Math.atan2(l-this.parameters.box.y-this.parameters.box.height/2,o-this.parameters.box.x-this.parameters.box.width/2),p=this.parameters.rotation+180*(u-h)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(p-p%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(a,n){var o=this.snapToGrid(a,n,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),l=this.el.array().valueOf();l[this.parameters.i][0]=this.parameters.pointCoords[0]+o[0],l[this.parameters.i][1]=this.parameters.pointCoords[1]+o[1],this.el.plot(l)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(a){t.update(a||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(a){t.update(a||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},E.prototype.update=function(e){if(e){var t=this._extractPosition(e),s=this.transformPoint(t.x,t.y),i=s.x-this.parameters.p.x,a=s.y-this.parameters.p.y;this.lastUpdateCall=[i,a],this.calc(i,a),this.el.fire("resizing",{dx:i,dy:a,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,s,i){var a;return i!==void 0?a=[(s+e)%this.options.snapToGrid,(i+t)%this.options.snapToGrid]:(s=s??3,a=[(this.parameters.box.x+e+(1&s?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&s?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(a[0]-=this.options.snapToGrid),t<0&&(a[1]-=this.options.snapToGrid),e-=Math.abs(a[0])<this.options.snapToGrid/2?a[0]:a[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(a[1])<this.options.snapToGrid/2?a[1]:a[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,s,i)},E.prototype.constraintToBox=function(e,t,s,i){var a,n,o=this.options.constraint||{};return i!==void 0?(a=s,n=i):(a=this.parameters.box.x+(1&s?0:this.parameters.box.width),n=this.parameters.box.y+(2&s?0:this.parameters.box.height)),o.minX!==void 0&&a+e<o.minX&&(e=o.minX-a),o.maxX!==void 0&&a+e>o.maxX&&(e=o.maxX-a),o.minY!==void 0&&n+t<o.minY&&(t=o.minY-n),o.maxY!==void 0&&n+t>o.maxY&&(t=o.maxY-n),[e,t]},E.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var s=e.slice(),i=this.parameters.box.width/this.parameters.box.height,a=this.parameters.box.width+e[0],n=this.parameters.box.height-e[1],o=a/n;return o<i?(s[1]=a/i-this.parameters.box.height,t&&(s[1]=-s[1])):o>i&&(s[0]=this.parameters.box.width-n*i,t&&(s[0]=-s[0])),s},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 qi=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(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 $(this.ctx),this.ctx.axes=new jd(this.ctx),this.ctx.core=new xu(this.ctx.el,this.ctx),this.ctx.config=new et({}),this.ctx.data=new Le(this.ctx),this.ctx.grid=new Ze(this.ctx),this.ctx.graphics=new Y(this.ctx),this.ctx.coreUtils=new K(this.ctx),this.ctx.crosshairs=new fs(this.ctx),this.ctx.events=new Wd(this.ctx),this.ctx.exports=new Oe(this.ctx),this.ctx.localization=new Gd(this.ctx),this.ctx.options=new ke,this.ctx.responsive=new Ud(this.ctx),this.ctx.series=new oe(this.ctx),this.ctx.theme=new Zd(this.ctx),this.ctx.formatters=new pe(this.ctx),this.ctx.titleSubtitle=new Jd(this.ctx),this.ctx.legend=new Yi(this.ctx),this.ctx.toolbar=new Wi(this.ctx),this.ctx.tooltip=new Ui(this.ctx),this.ctx.dimensions=new Bt(this.ctx),this.ctx.updateHelpers=new mu(this.ctx),this.ctx.zoomPanSelection=new tu(this.ctx),this.ctx.w.globals.tooltip=new Ui(this.ctx)}}]),E}(),$i=function(){function E(e){C(this,E),this.ctx=e,this.w=e.w}return S(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,s){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,s=e.isUpdating,i=this.w.globals.dom.Paper.node;i.parentNode&&i.parentNode.parentNode&&!s&&(i.parentNode.parentNode.style.minHeight="unset");var a=this.w.globals.dom.baseEl;a&&this.ctx.eventList.forEach(function(o){a.removeEventListener(o,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}(),bs=new WeakMap,bu=function(){function E(e,t){C(this,E),this.opts=t,this.ctx=this,this.w=new us(t).init(),this.el=e,this.w.globals.cuid=R.randomId(),this.w.globals.chartID=this.w.config.chart.id?R.escapeString(this.w.config.chart.id):this.w.globals.cuid,new qi(this).initModules(),this.create=R.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return S(E,[{key:"render",value:function(){var e=this;return new Promise(function(t,s){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(u,p){var g=!1;if(u.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var m=u.getBoundingClientRect();u.style.display!=="none"&&m.width!==0||(g=!0)}var y=new ResizeObserver(function(k){g&&p.call(u,k),g=!0});u.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(u.children).forEach(function(k){return y.observe(k)}):y.observe(u),bs.set(p,y)}(e.el.parentNode,e.parentResizeHandler),!e.css){var a=e.el.getRootNode&&e.el.getRootNode(),n=R.is("ShadowRoot",a),o=e.el.ownerDocument,l=o.getElementById("apexcharts-css");!n&&l||(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?a.prepend(e.css):o.head.appendChild(e.css))}var h=e.create(e.w.config.series,{});if(!h)return t(e);e.mount(h).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(h)}).catch(function(u){s(u)})}else s(new Error("Element not found"))})}},{key:"create",value:function(e,t){var s=this.w;new qi(this).initModules();var i=this.w.globals;if(i.noData=!1,i.animationEnded=!1,this.responsive.checkResponsiveConfig(t),s.config.xaxis.convertedCatToNumeric&&new Ve(s.config).convertCatToNumericXaxis(s.config,this.ctx),this.el===null||(this.core.setupElements(),s.config.chart.type==="treemap"&&(s.config.grid.show=!1,s.config.yaxis[0].show=!1),i.svgWidth===0))return i.animationEnded=!0,null;var a=K.checkComboSeries(e);i.comboCharts=a.comboCharts,i.comboBarCount=a.comboBarCount;var n=e.every(function(u){return u.data&&u.data.length===0});(e.length===0||n)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new tt(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),i.noData&&i.collapsedSeries.length!==i.series.length&&!s.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),i.axisCharts&&(this.core.coreCalculations(),s.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=s.globals.minX,this.ctx.toolbar.maxX=s.globals.maxX),this.formatters.heatmapLabelFormatters(),new K(this).getLargestMarkerSize(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var l=this.core.plotChartType(e,o),h=new ie(this);return h.bringForward(),s.config.dataLabels.background.enabled&&h.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:l,xyRatios:o,dimensions:{plot:{left:s.globals.translateX,top:s.globals.translateY,width:s.globals.gridWidth,height:s.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=this,i=s.w;return new Promise(function(a,n){if(s.el===null)return n(new Error("Not enough data to display or target element not found"));(t===null||i.globals.allSeriesCollapsed)&&s.series.handleNoData(),s.grid=new Ze(s);var o,l,h=s.grid.drawGrid();if(s.annotations=new Fe(s),s.annotations.drawImageAnnos(),s.annotations.drawTextAnnos(),i.config.grid.position==="back"&&(h&&i.globals.dom.elGraphical.add(h.el),h!=null&&(o=h.elGridBorders)!==null&&o!==void 0&&o.node&&i.globals.dom.elGraphical.add(h.elGridBorders)),Array.isArray(t.elGraph))for(var u=0;u<t.elGraph.length;u++)i.globals.dom.elGraphical.add(t.elGraph[u]);else i.globals.dom.elGraphical.add(t.elGraph);i.config.grid.position==="front"&&(h&&i.globals.dom.elGraphical.add(h.el),h!=null&&(l=h.elGridBorders)!==null&&l!==void 0&&l.node&&i.globals.dom.elGraphical.add(h.elGridBorders)),i.config.xaxis.crosshairs.position==="front"&&s.crosshairs.drawXCrosshairs(),i.config.yaxis[0].crosshairs.position==="front"&&s.crosshairs.drawYCrosshairs(),i.config.chart.type!=="treemap"&&s.axes.drawAxis(i.config.chart.type,h);var p=new Xe(e.ctx,h),g=new gs(e.ctx,h);if(h!==null&&(p.xAxisLabelCorrections(h.xAxisTickWidth),g.setYAxisTextAlignments(),i.config.yaxis.map(function(y,k){i.globals.ignoreYAxisIndexes.indexOf(k)===-1&&g.yAxisTitleRotate(k,y.opposite)})),s.annotations.drawAxesAnnotations(),!i.globals.noData){if(i.config.tooltip.enabled&&!i.globals.noData&&s.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)&&s.zoomPanSelection.init({xyRatios:t.xyRatios});else{var m=i.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(y){m[y]=!1})}i.config.chart.toolbar.show&&!i.globals.allSeriesCollapsed&&s.toolbar.createToolbar()}i.globals.memory.methodsToExec.length>0&&i.globals.memory.methodsToExec.forEach(function(y){y.method(y.params,!1,y.context)}),i.globals.axisCharts||i.globals.noData||s.core.resizeNonAxisCharts(),a(s)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=bs.get(e))&&(t.disconnect(),bs.delete(e));var s=this.w.config.chart.id;s&&Apex._chartInstances.forEach(function(i,a){i.id===R.escapeString(s)&&Apex._chartInstances.splice(a,1)}),new $i(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],o=this.w;return o.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(l,h){return t.updateHelpers._extendSeries(l,h)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,s,i,a,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],s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,s)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],s=!(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,s)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],s=this;s.w.globals.dataChanged=!0,s.series.getPreviousPaths();for(var i=s.w.config.series.slice(),a=0;a<i.length;a++)if(e[a]!==null&&e[a]!==void 0)for(var n=0;n<e[a].data.length;n++)i[a].data.push(e[a].data[n]);return s.w.config.series=i,t&&(s.w.globals.initialSeries=R.clone(s.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(s,i){new $i(t.ctx).clear({isUpdating:!0});var a=t.create(t.w.config.series,e);if(!a)return s(t);t.mount(a).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,s(t)}).catch(function(n){i(n)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(s){t.push(s)})),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],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,i=this;s&&(i=s),i.annotations.addXaxisAnnotationExternal(e,t,i)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,i=this;s&&(i=s),i.annotations.addYaxisAnnotationExternal(e,t,i)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,i=this;s&&(i=s),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,s=this;t&&(s=t),s.annotations.removeAnnotation(s,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 ps(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ps(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 Oe(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Oe(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=R.escapeString(e),s=Apex._chartInstances.filter(function(i){return i.id===t})[0];return s&&s.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 s=this.getChartByID(e);if(s){s.w.globals.isExecCalled=!0;var i=null;if(s.publicMethods.indexOf(t)!==-1){for(var a=arguments.length,n=new Array(a>2?a-2:0),o=2;o<a;o++)n[o-2]=arguments[o];i=s[t].apply(s,n)}return i}}},{key:"merge",value:function(e,t){return R.extend(e,t)}}]),E}();b.exports=bu}(zt,zt.exports)),zt.exports}(function(b){b.exports=function(r){var x={};function v(A){if(x[A])return x[A].exports;var C=x[A]={i:A,l:!1,exports:{}};return r[A].call(C.exports,C,C.exports,v),C.l=!0,C.exports}return v.m=r,v.c=x,v.d=function(A,C,T){v.o(A,C)||Object.defineProperty(A,C,{enumerable:!0,get:T})},v.r=function(A){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},v.t=function(A,C){if(C&1&&(A=v(A)),C&8||C&4&&typeof A=="object"&&A&&A.__esModule)return A;var T=Object.create(null);if(v.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:A}),C&2&&typeof A!="string")for(var S in A)v.d(T,S,(function(P){return A[P]}).bind(null,S));return T},v.n=function(A){var C=A&&A.__esModule?function(){return A.default}:function(){return A};return v.d(C,"a",C),C},v.o=function(A,C){return Object.prototype.hasOwnProperty.call(A,C)},v.p="",v(v.s="fb15")}({"8bbf":function(r,x){r.exports=d},"95e6":function(r,x){r.exports=Ml()},fb15:function(r,x,v){if(v.r(x),typeof window<"u"){var A=window.document.currentScript,C=A&&A.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);C&&(v.p=C[1])}var T=v("8bbf"),S=v("95e6"),P=v.n(S);const N=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"];var X=Object(T.defineComponent)({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:N,setup(U,{emit:q}){const te=Object(T.ref)(null),J=Object(T.ref)(null),R=ie=>ie&&typeof ie=="object"&&!Array.isArray(ie)&&ie!=null,$=(ie,oe)=>{typeof Object.assign!="function"&&function(){Object.assign=function(xe){if(xe==null)throw new TypeError("Cannot convert undefined or null to object");let Oe=Object(xe);for(let Xe=1;Xe<arguments.length;Xe++){let Ze=arguments[Xe];if(Ze!=null)for(let He in Ze)Ze.hasOwnProperty(He)&&(Oe[He]=Ze[He])}return Oe}}();let Le=Object.assign({},ie);return R(ie)&&R(oe)&&Object.keys(oe).forEach(xe=>{R(oe[xe])?xe in ie?Le[xe]=$(ie[xe],oe[xe]):Object.assign(Le,{[xe]:oe[xe]}):Object.assign(Le,{[xe]:oe[xe]})}),Le},ee=async()=>{if(await Object(T.nextTick)(),J.value)return;const ie={chart:{type:U.type||U.options.chart.type||"line",height:U.height,width:U.width,events:{}},series:U.series};N.forEach(Le=>{let xe=(...Oe)=>q(Le,...Oe);ie.chart.events[Le]=xe});const oe=$(U.options,ie);return J.value=new P.a(te.value,oe),J.value.render()},Y=()=>(K(),ee()),K=()=>{J.value.destroy()},ce=(ie,oe)=>J.value.updateSeries(ie,oe),be=(ie,oe,Le,xe)=>J.value.updateOptions(ie,oe,Le,xe),Re=ie=>J.value.toggleSeries(ie),he=ie=>{J.value.showSeries(ie)},ge=ie=>{J.value.hideSeries(ie)},ke=(ie,oe)=>J.value.appendSeries(ie,oe),Fe=()=>{J.value.resetSeries()},Q=(ie,oe)=>{J.value.toggleDataPointSelection(ie,oe)},pe=ie=>J.value.appendData(ie),re=(ie,oe)=>J.value.zoomX(ie,oe),Ce=ie=>J.value.dataURI(ie),Ve=ie=>J.value.setLocale(ie),et=(ie,oe)=>{J.value.addXaxisAnnotation(ie,oe)},Nt=(ie,oe)=>{J.value.addYaxisAnnotation(ie,oe)},us=(ie,oe)=>{J.value.addPointAnnotation(ie,oe)},_e=(ie,oe)=>{J.value.removeAnnotation(ie,oe)},tt=()=>{J.value.clearAnnotations()};Object(T.onBeforeMount)(()=>{window.ApexCharts=P.a}),Object(T.onMounted)(()=>{te.value=Object(T.getCurrentInstance)().proxy.$el,ee()}),Object(T.onBeforeUnmount)(()=>{J.value&&K()});const Ue=Object(T.toRefs)(U);return Object(T.watch)(Ue.options,()=>{!J.value&&U.options?ee():J.value.updateOptions(U.options)}),Object(T.watch)(Ue.series,()=>{!J.value&&U.series?ee():J.value.updateSeries(U.series)},{deep:!0}),Object(T.watch)(Ue.type,()=>{Y()}),Object(T.watch)(Ue.width,()=>{Y()}),Object(T.watch)(Ue.height,()=>{Y()}),{chart:J,init:ee,refresh:Y,destroy:K,updateOptions:be,updateSeries:ce,toggleSeries:Re,showSeries:he,hideSeries:ge,resetSeries:Fe,zoomX:re,toggleDataPointSelection:Q,appendData:pe,appendSeries:ke,addXaxisAnnotation:et,addYaxisAnnotation:Nt,addPointAnnotation:us,removeAnnotation:_e,clearAnnotations:tt,setLocale:Ve,dataURI:Ce}},render(){return Object(T.h)("div",{class:"vue-apexcharts"})}});const H=U=>{U.component(X.name,X)};X.install=H;var O=X;x.default=O}})})(zi);var Nl=zi.exports;const Bl=ws(Nl),Ni={base:"bg-neutral-100 text-black",primary:"bg-primary text-white",secondary:"bg-secondary text-white",accent:"bg-accent text-white",info:"bg-info text-white",warning:"bg-warning text-white",success:"bg-success text-white",error:"bg-error text-white"},Bi=d.defineComponent({__name:"EpScope",props:{title:{default:"Essentiel"}},setup(b){const r=b,{title:x}=d.toRefs(r);return(v,A)=>(d.openBlock(),d.createBlock(ht,{size:"small",type:"base"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(x)),1)]),_:1}))}}),Rl={class:"font-bold align-middle"},Fl={class:"px-5"},Vl={key:0,class:"py-2 grow"},Hl=d.createElementVNode("h4",{class:"font-semibold mb-2 text-sm uppercase tracking-wide text-gray-500"}," [Intentions] ",-1),Ol={class:"grow"},Be=d.defineComponent({__name:"EpEdu",props:{title:{default:null},subtitle:{},icon:{},mandateLevel:{},synchrone:{type:Boolean},type:{default:"base"},intentions:{},hideIcon:{type:Boolean,default:!1},flat:{type:Boolean,default:!1}},setup(b){const r=b,x=d.useSlots(),v=d.computed(()=>!!x.intentions),A=d.computed(()=>!!x.actions),C=d.computed(()=>r.icon?r.icon:Cr),T=d.computed(()=>`${Ni[r.type]} text-left px-5 py-2 ${r.flat?"":"rounded-t-md"} flex justify-between items-center `),S=d.computed(()=>`${Ni[r.type]} text-right pr-5`),P=d.computed(()=>A.value||v.value||r.title?`rounded-lg overflow-hidden ${r.flat?"":"shadow-md"} flex flex-col justify-between h-full`:"flex flex-col justify-between h-full"),{title:N,hideIcon:B}=d.toRefs(r);return(X,H)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(P.value)},[d.unref(N)||X.mandateLevel?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(`${T.value}`)},[d.createElementVNode("h3",null,[d.unref(B)?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(fe,{key:0,iconPath:C.value,size:"24"},null,8,["iconPath"])),d.createTextVNode(),d.createElementVNode("span",Rl,d.toDisplayString(d.unref(N)),1)]),X.mandateLevel?(d.openBlock(),d.createBlock(Bi,{key:0,title:X.mandateLevel},null,8,["title"])):d.createCommentVNode("",!0)],2)):d.createCommentVNode("",!0),d.createElementVNode("div",Fl,[v.value?(d.openBlock(),d.createElementBlock("div",Vl,[Hl,d.renderSlot(X.$slots,"intentions"),d.createVNode(ct)])):d.createCommentVNode("",!0),d.createElementVNode("div",Ol,[d.renderSlot(X.$slots,"content")])]),A.value?(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(S.value)},[d.renderSlot(X.$slots,"actions")],2)):d.createCommentVNode("",!0)],2))}}),Xl=["innerHTML"],Yl={key:1},Wl=[d.createElementVNode("p",null,"Data no disponible",-1)],Gl=d.defineComponent({__name:"EpBarChart",props:{series:{},options:{},id:{},center:{type:Boolean,default:!1},title:{},intentions:{},hideIcon:{type:Boolean},type:{},mandateLevel:{},source:{}},setup(b){const r=b,x=d.computed(()=>r.intentions?Ye(r.intentions)?r.intentions:Ge(r.intentions):null),v=d.computed(()=>({...r.options,dataLabels:{enabled:!1}})),{center:A,series:C,source:T}=d.toRefs(r);return(S,P)=>(d.openBlock(),d.createBlock(Be,{title:S.title,type:S.type,hideIcon:S.hideIcon,icon:d.unref(pr),mandateLevel:S.mandateLevel},d.createSlots({content:d.withCtx(()=>[v.value&&d.unref(C)?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(`p-4 ${d.unref(A)?"flex justify-center":""}`)},[d.createVNode(d.unref(Bl),{width:"500",type:"bar",options:v.value,series:d.unref(C)},null,8,["options","series"])],2)):(d.openBlock(),d.createElementBlock("div",Yl,Wl))]),_:2},[x.value?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:x.value},null,8,Xl)]),key:"0"}:void 0,d.unref(T)?{name:"actions",fn:d.withCtx(()=>[d.createElementVNode("p",null,d.toDisplayString(d.unref(T)),1)]),key:"1"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}});function jl(b){return d.getCurrentScope()?(d.onScopeDispose(b),!0):!1}function Ri(b){return typeof b=="function"?b():d.unref(b)}const Fi=typeof window<"u",ds=()=>{},Ul=Zl();function Zl(){var b;return Fi&&((b=window==null?void 0:window.navigator)==null?void 0:b.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function xt(b){var r;const x=Ri(b);return(r=x==null?void 0:x.$el)!=null?r:x}const Vi=Fi?window:void 0;function Mt(...b){let r,x,v,A;if(typeof b[0]=="string"||Array.isArray(b[0])?([x,v,A]=b,r=Vi):[r,x,v,A]=b,!r)return ds;Array.isArray(x)||(x=[x]),Array.isArray(v)||(v=[v]);const C=[],T=()=>{C.forEach(B=>B()),C.length=0},S=(B,X,H,O)=>(B.addEventListener(X,H,O),()=>B.removeEventListener(X,H,O)),P=d.watch(()=>[xt(r),Ri(A)],([B,X])=>{T(),B&&C.push(...x.flatMap(H=>v.map(O=>S(B,H,O,X))))},{immediate:!0,flush:"post"}),N=()=>{P(),T()};return jl(N),N}let Hi=!1;function Jl(b,r,x={}){const{window:v=Vi,ignore:A=[],capture:C=!0,detectIframe:T=!1}=x;if(!v)return;Ul&&!Hi&&(Hi=!0,Array.from(v.document.body.children).forEach(H=>H.addEventListener("click",ds)),v.document.documentElement.addEventListener("click",ds));let S=!0;const P=H=>A.some(O=>{if(typeof O=="string")return Array.from(v.document.querySelectorAll(O)).some(U=>U===H.target||H.composedPath().includes(U));{const U=xt(O);return U&&(H.target===U||H.composedPath().includes(U))}}),B=[Mt(v,"click",H=>{const O=xt(b);if(!(!O||O===H.target||H.composedPath().includes(O))){if(H.detail===0&&(S=!P(H)),!S){S=!0;return}r(H)}},{passive:!0,capture:C}),Mt(v,"pointerdown",H=>{const O=xt(b);O&&(S=!H.composedPath().includes(O)&&!P(H))},{passive:!0}),T&&Mt(v,"blur",H=>{setTimeout(()=>{var O;const U=xt(b);((O=v.document.activeElement)==null?void 0:O.tagName)==="IFRAME"&&!(U!=null&&U.contains(v.document.activeElement))&&r(H)},0)})].filter(Boolean);return()=>B.forEach(H=>H())}const Ql={class:"relative"},Kl=d.defineComponent({__name:"DisplayBox",setup(b){const r=d.ref(),x=d.ref();Jl(r,T=>{x.value=!1}),Mt("keydown",T=>{T.key==="Escape"&&x&&(x.value=!1)});function v(){return x.value=!0}function A(){return x.value=!1}const C=d.computed(()=>x.value?"absolute w-[32rem] -left-96 z-40":"hidden");return(T,S)=>(d.openBlock(),d.createElementBlock("div",Ql,[d.renderSlot(T.$slots,"default",{open:v}),d.createElementVNode("div",{ref_key:"menu",ref:r,class:d.normalizeClass(C.value)},[d.renderSlot(T.$slots,"menu",{isOpen:x.value,close:A})],2)]))}});function je(b){return Ye(b)?b:Ge(b)}const ql={key:0,class:"flex rounded-lg overflow-hidden bg-white md:flex-row"},$l={key:0,class:"bg-primary h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},ec=["src","alt"],tc={key:1,class:"h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},sc={class:"flex flex-col w-full"},ic=["innerHTML"],ac={class:"w-full"},nc={class:"flex"},oc={key:0,class:"flex-1 py-2"},rc={class:"font-medium"},lc={key:0,class:"text-sm italic pr-1"},cc={key:1,class:"font-bold"},hc={key:2},dc={key:3},uc={key:4},pc={key:0},gc=d.createElementVNode("span",{class:"text-sm italic pr-1"},"dans",-1),fc={class:""},xc={class:"pl-2 align-middle"},mc=["innerHTML"],bc={class:"flex flex-row justify-between"},vc={class:"p-5"},yc={class:"text-lg leading-6 font-semibold font-sans text-skin-inverted group-hover:text-skin-primary"},wc={class:"flex"},kc={class:"p-5"},Cc={class:"w-[32rem]"},Ac={class:"flex flex-col rounded-lg bg-white md:flex-row"},Sc=["src","alt"],_c={key:1,class:"h-96 border-l border-t border-b w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},Ec={class:"flex flex-col justify-between w-full"},Lc={class:"bg-neutral-100 text-left px-5 py-2"},Tc=d.createElementVNode("span",{class:"pl-2 align-middle"},"Lecture",-1),Dc={class:"w-full px-5"},Pc={class:"flex"},Ic={key:0,class:"flex-1 py-2"},zc={class:"font-medium"},Mc={key:0,class:"text-sm italic pr-1"},Nc={key:1,class:"font-bold"},Bc={key:2},Rc={key:3},Fc={key:4},Vc={key:0},Hc=d.createElementVNode("span",{class:"text-sm italic pr-1"},"dans",-1),Oc={class:""},Xc={class:"pl-2 align-middle"},Yc={class:"bg-neutral-100 text-right pr-5"},Wc={class:"border-l p-5"},Gc="https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg",jc=d.defineComponent({__name:"EpReading",props:{url:{},year:{},author:{},cover:{default:""},title:{default:null},container:{},editor:{},pages:{},mandateLevel:{},intentions:{default:""},compact:{type:Boolean,default:!1},more:{type:Boolean},version_link:{},hideCover:{type:Boolean,default:!1},labelcard:{default:"lecture"},labelBtb:{default:"lire"},labelIntentions:{default:"Intentions de lecture"},type:{default:"base"},hideIcon:{type:Boolean,default:!1}},setup(b){const r=b,x=d.computed(()=>!(r.cover===Gc||r.cover.trim().length===0)),v=d.computed(()=>!!(r.author||r.editor||r.container||r.year)),{title:A,intentions:C,cover:T,hideCover:S,labelcard:P,year:N,author:B,container:X,editor:H,pages:O,type:U,mandateLevel:q}=d.toRefs(r);return(te,J)=>te.compact?(d.openBlock(),d.createBlock(Be,{key:1,title:d.unref(P),icon:d.unref(hs),flat:"",type:d.unref(U),hideIcon:te.hideIcon},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("div",bc,[d.createElementVNode("div",vc,[d.createElementVNode("span",yc,d.toDisplayString(d.unref(A)),1)]),d.createElementVNode("div",wc,[d.createElementVNode("div",kc,[d.createVNode(Kl,null,{default:d.withCtx(({open:R})=>[d.createVNode(Pe,{text:"",onClick:d.withModifiers(R,["stop"])},{default:d.withCtx(()=>[d.createTextVNode(" détails ")]),_:2},1032,["onClick"])]),menu:d.withCtx(({close:R})=>[d.createElementVNode("div",Cc,[d.createElementVNode("div",Ac,[d.unref(S)?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[x.value?(d.openBlock(),d.createElementBlock("img",{key:0,class:"object-cover h-96 w-full rounded-t-lg object-cover md:h-auto md:w-56 md:rounded-none md:rounded-l-lg",src:d.unref(T),alt:`image de la lecture ${d.unref(A)}`},null,8,Sc)):(d.openBlock(),d.createElementBlock("div",_c,[d.createVNode(fe,{"icon-path":d.unref(_i),size:"95"},null,8,["icon-path"])]))],64)),d.createElementVNode("div",Ec,[d.createElementVNode("div",Lc,[d.createVNode(fe,{size:24,"icon-path":d.unref(hs)},null,8,["icon-path"]),Tc]),d.createElementVNode("div",Dc,[d.createElementVNode("h4",{class:d.normalizeClass(`text-xl font-semibold py-4 ${v.value||d.unref(O)?"border-b":""}`)},d.toDisplayString(d.unref(A)),3),d.createElementVNode("div",Pc,[v.value?(d.openBlock(),d.createElementBlock("div",Ic,[d.createElementVNode("p",zc,[d.unref(B)?(d.openBlock(),d.createElementBlock("span",Mc,"par")):d.createCommentVNode("",!0),d.unref(B)?(d.openBlock(),d.createElementBlock("span",Nc,d.toDisplayString(d.unref(B)),1)):d.createCommentVNode("",!0),d.unref(N)?(d.openBlock(),d.createElementBlock("span",Bc,"("+d.toDisplayString(d.unref(N))+")",1)):d.createCommentVNode("",!0),d.unref(N)&&d.unref(H)?(d.openBlock(),d.createElementBlock("span",Rc,", ")):d.createCommentVNode("",!0),d.unref(H)?(d.openBlock(),d.createElementBlock("span",Fc,d.toDisplayString(d.unref(H)),1)):d.createCommentVNode("",!0)]),d.unref(X)?(d.openBlock(),d.createElementBlock("p",Vc,[Hc,d.createElementVNode("span",Oc,d.toDisplayString(d.unref(X)),1)])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),d.unref(O)?(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(`flex-1 pt-2 pb-2 ${v.value?"border-l pl-2":""}`)},[d.createVNode(fe,{size:24,"icon-path":d.unref(Ei)},null,8,["icon-path"]),d.createElementVNode("span",Xc,d.toDisplayString(d.unref(O)),1)],2)):d.createCommentVNode("",!0)])]),d.createElementVNode("div",Yc,[d.createVNode(Pe,{text:"",onClick:d.withModifiers(R,["stop"])},{default:d.withCtx(()=>[d.createTextVNode(" Fermer ")]),_:2},1032,["onClick"])])])])])]),_:1})]),d.createElementVNode("div",Wc,[d.createVNode(Pe,{text:""},{default:d.withCtx(()=>[d.createVNode(fe,{size:20,"icon-path":d.unref(Di)},null,8,["icon-path"]),d.createTextVNode(" Lire ")]),_:1})])])])]),_:2},[d.unref(je)(d.unref(C))?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:d.unref(je)(d.unref(C))},null,8,mc)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon"])):(d.openBlock(),d.createElementBlock("div",ql,[d.unref(S)?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[x.value?(d.openBlock(),d.createElementBlock("div",$l,[d.createElementVNode("img",{src:d.unref(T),alt:`image de la lecture ${d.unref(A)}`},null,8,ec)])):(d.openBlock(),d.createElementBlock("div",tc,[d.createVNode(fe,{"icon-path":d.unref(_i),size:"95"},null,8,["icon-path"])]))],64)),d.createElementVNode("div",sc,[d.createVNode(Be,{title:d.unref(P),icon:d.unref(hs),flat:"",type:d.unref(U),hideIcon:te.hideIcon,mandateLevel:d.unref(q)},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("div",ac,[d.createElementVNode("h4",{class:d.normalizeClass(`text-xl font-semibold ${v.value||d.unref(O)?"border-b":""}`)},d.toDisplayString(d.unref(A)),3),d.createElementVNode("div",nc,[v.value?(d.openBlock(),d.createElementBlock("div",oc,[d.createElementVNode("p",rc,[d.unref(B)?(d.openBlock(),d.createElementBlock("span",lc,"par")):d.createCommentVNode("",!0),d.unref(B)?(d.openBlock(),d.createElementBlock("span",cc,d.toDisplayString(d.unref(B)),1)):d.createCommentVNode("",!0),d.unref(N)?(d.openBlock(),d.createElementBlock("span",hc,"("+d.toDisplayString(d.unref(N))+")",1)):d.createCommentVNode("",!0),d.unref(N)&&d.unref(H)?(d.openBlock(),d.createElementBlock("span",dc,", ")):d.createCommentVNode("",!0),d.unref(H)?(d.openBlock(),d.createElementBlock("span",uc,d.toDisplayString(d.unref(H)),1)):d.createCommentVNode("",!0)]),d.unref(X)?(d.openBlock(),d.createElementBlock("p",pc,[gc,d.createElementVNode("span",fc,d.toDisplayString(d.unref(X)),1)])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),d.unref(O)?(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(`flex-1 pt-2 pb-2 ${v.value?"border-l pl-2":""}`)},[d.createVNode(fe,{size:24,"icon-path":d.unref(Ei)},null,8,["icon-path"]),d.createElementVNode("span",xc,d.toDisplayString(d.unref(O)),1)],2)):d.createCommentVNode("",!0)])])]),actions:d.withCtx(()=>[d.createVNode(Pe,{color:d.unref(U)=="base"?"text-gray-700":"text-white",type:d.unref(U)},{default:d.withCtx(()=>[d.createTextVNode("LIRE")]),_:1},8,["color","type"])]),_:2},[d.unref(je)(d.unref(C))?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:d.unref(je)(d.unref(C))},null,8,ic)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"])])]))}}),Uc={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"}},Zc=b=>(d.pushScopeId("data-v-69793e45"),b=b(),d.popScopeId(),b),Jc={class:"text-lg"},Qc=[Zc(()=>d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"},null,-1))],Kc={class:"py-4"},qc=d.defineComponent({__name:"EpAccordeon",props:{title:{default:"En savoir plus"},type:{default:"base"},icon:{},open:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},setup(b){const r=b,x=d.ref(r.open),v=d.ref(),A=d.computed(()=>r.outlined?"outlined":"default"),C=d.computed(()=>{var B;return`flex justify-between items-center px-4 py-2 cursor-pointer ${(B=Uc[r.type])==null?void 0:B[A.value]}`}),T=d.computed(()=>`px-4 ${De("bg",r.type+"light")}`);d.onMounted(()=>{var B=v.value;r.open&&(B.style.maxHeight=B.scrollHeight+"px")});function S(){x.value=!x.value;var B=v.value;B.style.maxHeight?B.style.maxHeight=null:B.style.maxHeight=B.scrollHeight+"px",B.style.transition||(B.style.transition="max-height 0.2s ease-out")}const{title:P,icon:N}=d.toRefs(r);return(B,X)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:d.normalizeClass(C.value),onClick:S},[d.createElementVNode("h3",Jc,[d.unref(N)?(d.openBlock(),d.createBlock(fe,{key:0,"icon-path":d.unref(N)},null,8,["icon-path"])):d.createCommentVNode("",!0),d.createTextVNode(" "+d.toDisplayString(d.unref(P)),1)]),(d.openBlock(),d.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:d.normalizeClass(`mx-4 my-3 h-6 w-6 transition-all duration-200 ${x.value?"rotate-45":""}`)},Qc,2))],2),d.createElementVNode("div",{ref_key:"collapsible",ref:v,class:d.normalizeClass(`${T.value} content`)},[d.createElementVNode("div",Kc,[d.renderSlot(B.$slots,"default",{},void 0,!0)])],2)],64))}}),G8="",$e=(b,r)=>{const x=b.__vccOpts||b;for(const[v,A]of r)x[v]=A;return x},Oi=$e(qc,[["__scopeId","data-v-69793e45"]]),$c={},eh={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},th=[d.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function sh(b,r){return d.openBlock(),d.createElementBlock("div",eh,th)}const ih=$e($c,[["render",sh]]),ah={},nh={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},oh=[d.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function rh(b,r){return d.openBlock(),d.createElementBlock("div",nh,oh)}const lh=$e(ah,[["render",rh]]),ch={},hh={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},dh=[d.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function uh(b,r){return d.openBlock(),d.createElementBlock("div",hh,dh)}const ph=$e(ch,[["render",uh]]),gh={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 640 360",style:{"enable-background":"new 0 0 640 360"},"xml:space":"preserve"},fh=d.createStaticVNode(`<pattern y="-20" width="150" height="100" patternUnits="userSpaceOnUse" id="New_Pattern" viewBox="8 -107.8 150 100" style="overflow:visible;"><g><rect x="8" y="-107.8" style="fill:none;" width="150" height="100"></rect><g style="opacity:0.1;"><path d="M159.8-15.5c3.5,0.8,6.2,4,6.2,7.8s-2.7,7-6.2,7.8v-1.8c2.6-0.8,4.4-3.1,4.4-5.9s-1.9-5.2-4.4-5.9V-15.5 M162-7.8
|
|
31
730
|
c0,1.6-0.9,2.9-2.2,3.5v-7.1C161.1-10.7,162-9.3,162-7.8 M153.5-10.4l4.4-4.4v14.2l-4.4-4.4H150v-5.3H153.5z"></path></g><g style="opacity:0.1;"><path d="M9.8-15.5c3.5,0.8,6.2,4,6.2,7.8s-2.7,7-6.2,7.8v-1.8c2.6-0.8,4.4-3.1,4.4-5.9s-1.9-5.2-4.4-5.9V-15.5 M12-7.8
|
|
32
731
|
c0,1.6-0.9,2.9-2.2,3.5v-7.1C11.1-10.7,12-9.3,12-7.8 M3.5-10.4L8-14.8v14.2L3.5-5.1H0v-5.3H3.5z"></path></g><g style="opacity:0.1;"><path d="M159.8-115.5c3.5,0.8,6.2,4,6.2,7.8s-2.7,7-6.2,7.8v-1.8c2.6-0.8,4.4-3.1,4.4-5.9s-1.9-5.2-4.4-5.9V-115.5 M162-107.8
|
|
33
732
|
c0,1.6-0.9,2.9-2.2,3.5v-7.1C161.1-110.7,162-109.3,162-107.8 M153.5-110.4l4.4-4.4v14.2l-4.4-4.4H150v-5.3H153.5z"></path></g><g style="opacity:0.1;"><path d="M84.8-65.5c3.5,0.8,6.2,4,6.2,7.8s-2.7,7-6.2,7.8v-1.8c2.6-0.8,4.4-3.1,4.4-5.9c0-2.8-1.9-5.2-4.4-5.9V-65.5 M87-57.8
|
|
34
733
|
c0,1.6-0.9,2.9-2.2,3.5v-7.1C86.1-60.7,87-59.3,87-57.8 M78.5-60.4l4.4-4.4v14.2l-4.4-4.4H75v-5.3H78.5z"></path></g><g style="opacity:0.1;"><path d="M9.8-115.5c3.5,0.8,6.2,4,6.2,7.8s-2.7,7-6.2,7.8v-1.8c2.6-0.8,4.4-3.1,4.4-5.9s-1.9-5.2-4.4-5.9V-115.5 M12-107.8
|
|
35
|
-
c0,1.6-0.9,2.9-2.2,3.5v-7.1C11.1-110.7,12-109.3,12-107.8 M3.5-110.4l4.4-4.4v14.2l-4.4-4.4H0v-5.3H3.5z"></path></g></g></pattern>`,1),
|
|
734
|
+
c0,1.6-0.9,2.9-2.2,3.5v-7.1C11.1-110.7,12-109.3,12-107.8 M3.5-110.4l4.4-4.4v14.2l-4.4-4.4H0v-5.3H3.5z"></path></g></g></pattern>`,1),xh=d.createElementVNode("path",{style:{fill:"url(#New_Pattern)"},d:"M639,1v358H1V1H639 M640,0H0v360h640V0L640,0z"},null,-1),mh=d.createElementVNode("g",null,[d.createElementVNode("rect",{x:"0.5",y:"0.5",style:{fill:"url(#New_Pattern)"},width:"639",height:"359"})],-1),bh=d.createElementVNode("g",null,[d.createElementVNode("path",{style:{fill:"white"},d:`M310.7,114.7c-31,4.4-53.2,32.4-53.2,63.7v46.8c0,11.5,9.3,20.8,20.8,20.8h20.8v-55.6h-27.8v-12
|
|
36
735
|
c0-24.9,17.9-47.1,42.5-50.1c29.6-3.6,54.7,19.4,54.7,48.3v13.9h-27.8V246h20.8c11.5,0,20.8-9.3,20.8-20.8v-48.6
|
|
37
|
-
C382.5,138.7,349.4,109.1,310.7,114.7z`})],-1),Rl=t.defineComponent({__name:"BgAudio",props:{fill:{default:"fill-primary"}},setup(n){const e=n;return(r,o)=>(t.openBlock(),t.createElementBlock("svg",Nl,[Bl,t.createElementVNode("g",null,[t.createElementVNode("rect",{class:t.normalizeClass(e.fill),width:"640",height:"360"},null,2),Tl]),vl,$l]))}}),Fl={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"}},zl={base:{icon:Ps},warning:{icon:Bs},success:{icon:zs},error:{icon:Ts},info:{icon:Gs},question:{icon:Os},tip:{icon:Ws}},Il={key:0,class:"flex items-center justify-center w-1/12"},Ml={class:"container"},Hl={key:0,class:"text-left text-2xl font-bold"},Cr=t.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(n){const e=n,r=t.computed(()=>e.outlined?"outlined":"default"),o=t.computed(()=>{var u;return`${(u=Fl[e.type])==null?void 0:u[r.value]}`}),s=t.computed(()=>{let u=zl[e.type].icon;return e.noIcon?null:e.icon?e.icon:u}),{title:c,compact:l,type:i,outlined:a}=t.toRefs(e);return(u,d)=>t.unref(l)?(t.openBlock(),t.createBlock(wr,{key:1,type:t.unref(i),outlined:t.unref(a),icon:s.value,title:t.unref(c)},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},8,["type","outlined","icon","title"])):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(`flex p-4 rounded shadow-md m-2 ${o.value}`)},[s.value?(t.openBlock(),t.createElementBlock("div",Il,[t.createVNode(S,{size:40,"icon-path":s.value},null,8,["icon-path"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(`${s.value?"w-11/12":"w-full"} flex items-center`)},[t.createElementVNode("div",Ml,[t.unref(c)?(t.openBlock(),t.createElementBlock("h3",Hl,t.toDisplayString(t.unref(c)),1)):t.createCommentVNode("",!0),t.unref(c)?(t.openBlock(),t.createBlock(oe,{key:1,size:"border"})):t.createCommentVNode("",!0),t.renderSlot(u.$slots,"default")])],2)],2))}}),Pl=["innerHTML"],Ul={class:"max-w-screen-sm mx-auto"},Ol=["src"],jl=t.defineComponent({__name:"EpAudio",props:{src:{},title:{},intentions:{},credits:{},madateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},messageError:{default:"Mauvais url"},hideIcon:{type:Boolean,default:!1},mandateLevel:{}},setup(n){const e=n,r=t.computed(()=>!!(e.src.endsWith(".mp3")||e.src.endsWith(".ogg")||e.src.endsWith(".wav"))),o=t.computed(()=>F("fill",e.type)),s=t.computed(()=>e.intentions?Z(e.intentions)?e.intentions:Q(e.intentions):null),{src:c,title:l,hideIcon:i,mandateLevel:a}=t.toRefs(e);return(u,d)=>(t.openBlock(),t.createBlock(U,{title:t.unref(l),type:u.type,hideIcon:t.unref(i),icon:t.unref(Us),mandateLevel:t.unref(a)},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",Ul,[t.createVNode(Rl,{fill:o.value},null,8,["fill"]),r.value?(t.openBlock(),t.createElementBlock("audio",{key:0,ref:"video",controls:"",src:t.unref(c),controlsList:"nodownload"},null,8,Ol)):(t.openBlock(),t.createBlock(Cr,{key:1,type:"error",outlined:""},{default:t.withCtx(()=>[t.createElementVNode("p",null,t.toDisplayString(u.messageError),1)]),_:1}))])]),_:2},[s.value?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:s.value},null,8,Pl)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),Gl={class:"flex items-center justify-center mb-2"},Zl={class:"bg-white shadow-xl p-4 max-w-[800px] mx-auto border-solid"},Wl={class:"max-w-[800px] h-[550px] m-auto relative"},Jl={key:0,class:"mt-2 text-sm text-gray-800"},Yl={key:1,class:"flex justify-end"},Ql=["innerHTML"],Kl={class:"flex justify-end"},Xl=t.defineComponent({__name:"EpCarousel",props:{images:{},labelRef:{default:"Référence"},labelClose:{default:"Fermer"}},setup(n){const e=n,r=t.ref(0),o=t.ref(!1),s=()=>{const d=r.value===0?e.images.length-1:r.value-1;r.value=d},c=()=>{const d=r.value===e.images.length-1?0:r.value+1;r.value=d},{images:l,labelClose:i,labelRef:a}=t.toRefs(e);return(u,d)=>{var h,p;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Gl,[t.createElementVNode("button",{onClick:s},[t.createVNode(S,{"icon-path":t.unref(Ms)},null,8,["icon-path"])]),t.createTextVNode(" "+t.toDisplayString(r.value+1)+"/"+t.toDisplayString(t.unref(l).length)+" ",1),t.createElementVNode("button",{onClick:c},[t.createVNode(S,{"icon-path":t.unref(Hs)},null,8,["icon-path"])])]),t.createElementVNode("div",Zl,[t.createElementVNode("div",Wl,[t.createElementVNode("div",{class:"w-full h-full bg-center bg-cover duration-500",style:t.normalizeStyle(`background-image:url('${t.unref(l)[r.value].src}')`)},null,4)]),(h=t.unref(l)[r.value])!=null&&h.caption?(t.openBlock(),t.createElementBlock("div",Jl,t.toDisplayString(t.unref(l)[r.value].caption),1)):t.createCommentVNode("",!0),(p=t.unref(l)[r.value])!=null&&p.bib?(t.openBlock(),t.createElementBlock("div",Yl,[t.createVNode(z,{type:"primary",onClick:d[0]||(d[0]=f=>o.value=!0),dark:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)),1)]),_:1})])):t.createCommentVNode("",!0)]),t.createVNode(Le,{modelValue:o.value,"onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f),title:"Référence"},{default:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:t.unref(l)[r.value].bib},null,8,Ql),t.createElementVNode("div",Kl,[t.createVNode(z,{onClick:d[1]||(d[1]=f=>o.value=!1),type:"primary",dark:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}}),RI="",ea=K(Xl,[["__scopeId","data-v-ecd9b088"]]),ta=["innerHTML"],ra=["src","height"],na=t.defineComponent({__name:"EpIframe",props:{src:{},big:{type:Boolean,default:!1},title:{},intentions:{},hideIcon:{type:Boolean,default:!1},type:{default:"base"},mandateLevel:{}},setup(n){const e=n,r=t.computed(()=>e.intentions?Z(e.intentions)?e.intentions:Q(e.intentions):null),o=t.computed(()=>e.big?"1000":"520"),{src:s,title:c,intentions:l,hideIcon:i}=t.toRefs(e);return(a,u)=>(t.openBlock(),t.createBlock(U,{title:t.unref(c),type:a.type,hideIcon:t.unref(i),icon:t.unref(vs),mandateLevel:a.mandateLevel},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("iframe",{src:t.unref(s),class:"w-full",height:o.value},null,8,ra)]),_:2},[r.value?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:r.value},null,8,ta)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),oa=["innerHTML"],sa={class:"flex justify-center"},ca={class:"w-4/5"},ia={class:"font-medium tracking-wider"},la=t.defineComponent({__name:"EpLink",props:{href:{},label:{},intentions:{default:""},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"primary"},hideIcon:{type:Boolean,default:!1},labelCard:{},icon:{}},setup(n){const e=n,r=t.computed(()=>e.icon?e.icon:Js),o=t.computed(()=>`absolute ${F("bg",e.type+"light")} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`),{href:s,label:c,intentions:l,mandateLevel:i,hideIcon:a}=t.toRefs(e);return(u,d)=>(t.openBlock(),t.createBlock(U,{title:u.labelCard,icon:r.value,flat:"",type:u.type,hideIcon:t.unref(a),mandateLevel:t.unref(i)},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",sa,[t.createElementVNode("div",ca,[t.createVNode(z,{block:"",color:"text-white",rounded:"",type:u.type,prependIcon:r.value,href:t.unref(s),extraClass:"group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "},{default:t.withCtx(()=>[t.createElementVNode("span",ia,t.toDisplayString(t.unref(c)),1),t.createElementVNode("span",{class:t.normalizeClass(o.value)},null,2)]),_:1},8,["type","prependIcon","href"])])])]),_:2},[t.unref(j)(t.unref(l))?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:t.unref(j)(t.unref(l))},null,8,oa)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),aa=["innerHTML"],ua={class:"flex flex-col items-center border rounded-lg bg-neutral-100 md:flex-row mt-2"},da=["src","alt"],pa={key:1,class:"h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},fa={class:"w-full"},ha={class:"w-full px-5"},ma={class:"flex justify-between items-center rounded-t-md p-2"},ga="https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg",ba=t.defineComponent({__name:"EpSoftware",props:{url:{},cover:{default:""},title:{},mandateLevel:{},intentions:{default:""},version_link:{},hideCover:{type:Boolean,default:!1},version:{},type:{default:"base"},hideIcon:{type:Boolean,default:!1},labelCard:{}},setup(n){const e=n,r=t.computed(()=>!(e.cover===ga||e.cover.trim().length===0)),{title:o,intentions:s,cover:c,hideCover:l,version:i,labelCard:a,hideIcon:u,mandateLevel:d}=t.toRefs(e);return(h,p)=>(t.openBlock(),t.createBlock(U,{title:t.unref(a),icon:t.unref(pr),flat:"",type:h.type,hideIcon:t.unref(u),mandateLevel:t.unref(d)},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",ua,[t.unref(l)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.value?(t.openBlock(),t.createElementBlock("img",{key:0,class:"object-cover h-24 w-full rounded-t-lg object-cover md:h-auto md:w-24 md:rounded-none md:rounded-l-lg",src:t.unref(c),alt:`image de la lecture ${t.unref(o)}`},null,8,da)):(t.openBlock(),t.createElementBlock("div",pa,[t.createVNode(S,{"icon-path":t.unref(pr),size:"95"},null,8,["icon-path"])]))],64)),t.createElementVNode("div",fa,[t.createElementVNode("div",ha,[t.createElementVNode("div",ma,[t.createElementVNode("h4",null,[t.createTextVNode(t.toDisplayString(t.unref(o))+" ",1),t.unref(i)?(t.openBlock(),t.createBlock(se,{key:0,size:"small",type:"base"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)),1)]),_:1})):t.createCommentVNode("",!0)]),t.createVNode(z,{rounded:"",type:"base",prependIcon:t.unref(fr)},{default:t.withCtx(()=>[t.createTextVNode("[Accéder au logiciel]")]),_:1},8,["prependIcon"])])])])])]),actions:t.withCtx(()=>[]),_:2},[t.unref(j)(t.unref(s))?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:t.unref(j)(t.unref(s))},null,8,aa)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),_a={},ka={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},xa=[t.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function ya(n,e){return t.openBlock(),t.createElementBlock("div",ka,xa)}const wa=K(_a,[["render",ya]]),Ca={},Ea={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},qa=[t.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function Aa(n,e){return t.openBlock(),t.createElementBlock("div",Ea,qa)}const Da=K(Ca,[["render",Aa]]),Va=["innerHTML"],La={class:"max-w-screen-sm mx-auto"},Sa=["src"],Na=["src"],Ba=t.defineComponent({__name:"EpVideo",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},hideIcon:{type:Boolean,default:!1}},setup(n){const e=n,r=t.ref(),o=t.computed(()=>!!(e.src.endsWith(".mp4")||e.src.endsWith(".ogg")||e.src.endsWith(".webm"))),s=t.computed(()=>{const d=e.src;return!o.value&&d.includes("https://vimeo.com/")?d.replace("https://vimeo.com/","https://player.vimeo.com/video/"):d}),c=t.computed(()=>e.intentions?Z(e.intentions)?e.intentions:Q(e.intentions):null),{src:l,title:i,hideIcon:a,type:u}=t.toRefs(e);return(d,h)=>(t.openBlock(),t.createBlock(U,{title:t.unref(i),type:t.unref(u),hideIcon:t.unref(a),icon:t.unref(hr),mandateLevel:d.mandateLevel},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",La,[o.value?(t.openBlock(),t.createElementBlock("video",{key:0,ref_key:"video",ref:r,controls:"",src:t.unref(l),width:"640",controlsList:"nodownload"},null,8,Sa)):(t.openBlock(),t.createElementBlock("iframe",{key:1,src:s.value,width:"100%",height:"360",frameborder:"0",allowfullscreen:""},null,8,Na))])]),_:2},[c.value?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:c.value},null,8,Va)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),Ta=["innerHTML"],va={class:"max-w-screen-sm mx-auto"},$a=["src"],Ra=t.defineComponent({__name:"EpVideoPanopto",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},hideIcon:{type:Boolean,default:!1}},setup(n){const e=n,r=t.computed(()=>e.intentions?Z(e.intentions)?e.intentions:Q(e.intentions):null),{src:o,title:s,hideIcon:c,type:l}=t.toRefs(e);return(i,a)=>(t.openBlock(),t.createBlock(U,{title:t.unref(s),type:t.unref(l),hideIcon:t.unref(c),icon:t.unref(hr),mandateLevel:i.mandateLevel},t.createSlots({content:t.withCtx(()=>[t.createElementVNode("div",va,[t.createElementVNode("iframe",{src:t.unref(o),width:"100%",height:"360",frameborder:"0",allowfullscreen:""},null,8,$a)])]),_:2},[r.value?{name:"intentions",fn:t.withCtx(()=>[t.createElementVNode("div",{innerHTML:r.value},null,8,Ta)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),Fa={class:"items-center overflow-hidden bg-white"},za={class:"flex mt-2 place-self-end gap-2 lg:flex-row"},Ia={id:"title-content",class:"w-full grow flex items-end"},Ma={class:"container flex flex-col px-8 py-24 mx-auto max-w-7xl md:flex-row lg:px-16"},Ha={key:0,class:"p-4 md:items-center backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded-xl"},Pa={class:"text-center md:text-left"},Ua={class:"text-2xl font-medium tracking-tight text-white sm:text-4xl"},Oa={class:"max-w-xl mt-4 text-xl tracking-tight text-white contrast-50"},ja={key:0,id:"action",class:"place-self-center pb-12 animate-bounce"},Ga={class:"mx-auto w-12 bg-white rounded-full p-2"},Za={class:"items-center pb-12 max-w-7xl lg:pb-24"},Wa={class:"justify-center w-full mx-auto bg-stone-100"},Ja={class:"flex py-3 border-y","aria-label":"Breadcrumb"},Ya={role:"list",class:"flex items-center pl-2 space-x-2"},Qa={class:"flex items-center"},Ka={href:"#",class:"inline-flex items-center text-sm font-medium text-gray-500 duration-200 hover:text-gray-700 hover:scale-95"},Xa=t.createElementVNode("span",{class:"ml-2"}," Parent ",-1),eu=t.createStaticVNode('<li><div class="flex items-center"><span class="flex-shrink-0 w-5 h-5 text-gray-300"> / </span><a href="#" class="ml-4 text-sm font-medium text-gray-500 hover:scale-95 hover:text-gray-700"> Parent </a></div></li><li><div class="flex items-center"><span class="flex-shrink-0 w-5 h-5 text-gray-300"> / </span><a href="#" class="ml-4 text-sm font-medium text-gray-500 hover:scale-95 hover:text-gray-700"> Parent </a></div></li><li><div class="flex items-center"><span class="flex-shrink-0 w-5 h-5 text-gray-300"> / </span><a href="#" class="ml-4 text-sm font-medium text-blue-500 hover:scale-95 hover:text-gray-700" aria-current="page"> Current </a></div></li>',3),tu=t.defineComponent({__name:"EpHeader",props:{title:{default:null},subtitle:{},icon:{default:null},color:{default:null},taxonomyLevel:{},courseCode:{},courseTitle:{},height:{default:null},src:{default:null},synchrone:{type:Boolean,default:!1},duration:{default:null},assessment:{default:null}},setup(n){const e=n;t.computed(()=>e.color);const r=t.computed(()=>`
|
|
736
|
+
C382.5,138.7,349.4,109.1,310.7,114.7z`})],-1),vh=d.defineComponent({__name:"BgAudio",props:{fill:{default:"fill-primary"}},setup(b){const r=b;return(x,v)=>(d.openBlock(),d.createElementBlock("svg",gh,[fh,d.createElementVNode("g",null,[d.createElementVNode("rect",{class:d.normalizeClass(r.fill),width:"640",height:"360"},null,2),xh]),mh,bh]))}}),yh={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"}},wh={base:{icon:br},warning:{icon:rr},success:{icon:gr},error:{icon:lr},info:{icon:kr},question:{icon:yr},tip:{icon:Ar}},kh={key:0,class:"flex items-center justify-center w-1/12"},Ch={class:"container"},Ah={key:0,class:"text-left text-2xl font-bold"},Xi=d.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(b){const r=b,x=d.computed(()=>r.outlined?"outlined":"default"),v=d.computed(()=>{var N;return`${(N=yh[r.type])==null?void 0:N[x.value]}`}),A=d.computed(()=>{let N=wh[r.type].icon;return r.noIcon?null:r.icon?r.icon:N}),{title:C,compact:T,type:S,outlined:P}=d.toRefs(r);return(N,B)=>d.unref(T)?(d.openBlock(),d.createBlock(Oi,{key:1,type:d.unref(S),outlined:d.unref(P),icon:A.value,title:d.unref(C)},{default:d.withCtx(()=>[d.renderSlot(N.$slots,"default")]),_:3},8,["type","outlined","icon","title"])):(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(`flex p-4 rounded shadow-md m-2 ${v.value}`)},[A.value?(d.openBlock(),d.createElementBlock("div",kh,[d.createVNode(fe,{size:40,"icon-path":A.value},null,8,["icon-path"])])):d.createCommentVNode("",!0),d.createElementVNode("div",{class:d.normalizeClass(`${A.value?"w-11/12":"w-full"} flex items-center`)},[d.createElementVNode("div",Ch,[d.unref(C)?(d.openBlock(),d.createElementBlock("h3",Ah,d.toDisplayString(d.unref(C)),1)):d.createCommentVNode("",!0),d.unref(C)?(d.openBlock(),d.createBlock(ct,{key:1,size:"border"})):d.createCommentVNode("",!0),d.renderSlot(N.$slots,"default")])],2)],2))}}),Sh=["innerHTML"],_h={class:"max-w-screen-sm mx-auto"},Eh=["src"],Lh=d.defineComponent({__name:"EpAudio",props:{src:{},title:{},intentions:{},credits:{},madateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},messageError:{default:"Mauvais url"},hideIcon:{type:Boolean,default:!1},mandateLevel:{}},setup(b){const r=b,x=d.computed(()=>!!(r.src.endsWith(".mp3")||r.src.endsWith(".ogg")||r.src.endsWith(".wav"))),v=d.computed(()=>De("fill",r.type)),A=d.computed(()=>r.intentions?Ye(r.intentions)?r.intentions:Ge(r.intentions):null),{src:C,title:T,hideIcon:S,mandateLevel:P}=d.toRefs(r);return(N,B)=>(d.openBlock(),d.createBlock(Be,{title:d.unref(T),type:N.type,hideIcon:d.unref(S),icon:d.unref(vr),mandateLevel:d.unref(P)},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("div",_h,[d.createVNode(vh,{fill:v.value},null,8,["fill"]),x.value?(d.openBlock(),d.createElementBlock("audio",{key:0,ref:"video",controls:"",src:d.unref(C),controlsList:"nodownload"},null,8,Eh)):(d.openBlock(),d.createBlock(Xi,{key:1,type:"error",outlined:""},{default:d.withCtx(()=>[d.createElementVNode("p",null,d.toDisplayString(N.messageError),1)]),_:1}))])]),_:2},[A.value?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:A.value},null,8,Sh)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),Th={class:"flex items-center justify-center mb-2"},Dh={class:"bg-white shadow-xl p-4 max-w-[800px] mx-auto border-solid"},Ph={class:"max-w-[800px] h-[550px] m-auto relative"},Ih={key:0,class:"mt-2 text-sm text-gray-800"},zh={key:1,class:"flex justify-end"},Mh=["innerHTML"],Nh={class:"flex justify-end"},Bh=d.defineComponent({__name:"EpCarousel",props:{images:{},labelRef:{default:"Référence"},labelClose:{default:"Fermer"}},setup(b){const r=b,x=d.ref(0),v=d.ref(!1),A=()=>{const B=x.value===0?r.images.length-1:x.value-1;x.value=B},C=()=>{const B=x.value===r.images.length-1?0:x.value+1;x.value=B},{images:T,labelClose:S,labelRef:P}=d.toRefs(r);return(N,B)=>{var X,H;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",Th,[d.createElementVNode("button",{onClick:A},[d.createVNode(fe,{"icon-path":d.unref(xr)},null,8,["icon-path"])]),d.createTextVNode(" "+d.toDisplayString(x.value+1)+"/"+d.toDisplayString(d.unref(T).length)+" ",1),d.createElementVNode("button",{onClick:C},[d.createVNode(fe,{"icon-path":d.unref(mr)},null,8,["icon-path"])])]),d.createElementVNode("div",Dh,[d.createElementVNode("div",Ph,[d.createElementVNode("div",{class:"w-full h-full bg-center bg-cover duration-500",style:d.normalizeStyle(`background-image:url('${d.unref(T)[x.value].src}')`)},null,4)]),(X=d.unref(T)[x.value])!=null&&X.caption?(d.openBlock(),d.createElementBlock("div",Ih,d.toDisplayString(d.unref(T)[x.value].caption),1)):d.createCommentVNode("",!0),(H=d.unref(T)[x.value])!=null&&H.bib?(d.openBlock(),d.createElementBlock("div",zh,[d.createVNode(Pe,{type:"primary",onClick:B[0]||(B[0]=O=>v.value=!0),dark:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(P)),1)]),_:1})])):d.createCommentVNode("",!0)]),d.createVNode(It,{modelValue:v.value,"onUpdate:modelValue":B[2]||(B[2]=O=>v.value=O),title:"Référence"},{default:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:d.unref(T)[x.value].bib},null,8,Mh),d.createElementVNode("div",Nh,[d.createVNode(Pe,{onClick:B[1]||(B[1]=O=>v.value=!1),type:"primary",dark:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(S)),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}}),J8="",Rh=$e(Bh,[["__scopeId","data-v-ecd9b088"]]),Fh=["innerHTML"],Vh=["src","height"],Hh=d.defineComponent({__name:"EpIframe",props:{src:{},big:{type:Boolean,default:!1},title:{},intentions:{},hideIcon:{type:Boolean,default:!1},type:{default:"base"},mandateLevel:{}},setup(b){const r=b,x=d.computed(()=>r.intentions?Ye(r.intentions)?r.intentions:Ge(r.intentions):null),v=d.computed(()=>r.big?"1000":"520"),{src:A,title:C,intentions:T,hideIcon:S}=d.toRefs(r);return(P,N)=>(d.openBlock(),d.createBlock(Be,{title:d.unref(C),type:P.type,hideIcon:d.unref(S),icon:d.unref(cr),mandateLevel:P.mandateLevel},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("iframe",{src:d.unref(A),class:"w-full",height:v.value},null,8,Vh)]),_:2},[x.value?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:x.value},null,8,Fh)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),Oh=["innerHTML"],Xh={class:"flex justify-center"},Yh={class:"w-4/5"},Wh={class:"font-medium tracking-wider"},Gh=d.defineComponent({__name:"EpLink",props:{href:{},label:{},intentions:{default:""},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"primary"},hideIcon:{type:Boolean,default:!1},labelCard:{},icon:{}},setup(b){const r=b,x=d.computed(()=>r.icon?r.icon:Sr),v=d.computed(()=>`absolute ${De("bg",r.type+"light")} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`),{href:A,label:C,intentions:T,mandateLevel:S,hideIcon:P}=d.toRefs(r);return(N,B)=>(d.openBlock(),d.createBlock(Be,{title:N.labelCard,icon:x.value,flat:"",type:N.type,hideIcon:d.unref(P),mandateLevel:d.unref(S)},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("div",Xh,[d.createElementVNode("div",Yh,[d.createVNode(Pe,{block:"",color:"text-white",rounded:"",type:N.type,prependIcon:x.value,href:d.unref(A),extraClass:"group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "},{default:d.withCtx(()=>[d.createElementVNode("span",Wh,d.toDisplayString(d.unref(C)),1),d.createElementVNode("span",{class:d.normalizeClass(v.value)},null,2)]),_:1},8,["type","prependIcon","href"])])])]),_:2},[d.unref(je)(d.unref(T))?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:d.unref(je)(d.unref(T))},null,8,Oh)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),jh=["innerHTML"],Uh={class:"flex flex-col items-center border rounded-lg bg-neutral-100 md:flex-row mt-2"},Zh=["src","alt"],Jh={key:1,class:"h-96 w-full rounded-t-lg md:h-auto md:w-56 md:rounded-none md:rounded-l-lg flex justify-center items-center text-gray-300"},Qh={class:"w-full"},Kh={class:"w-full px-5"},qh={class:"flex justify-between items-center rounded-t-md p-2"},$h="https://live.staticflickr.com/4868/45940268562_c5f7fdd06b_q.jpg",ed=d.defineComponent({__name:"EpSoftware",props:{url:{},cover:{default:""},title:{},mandateLevel:{},intentions:{default:""},version_link:{},hideCover:{type:Boolean,default:!1},version:{},type:{default:"base"},hideIcon:{type:Boolean,default:!1},labelCard:{}},setup(b){const r=b,x=d.computed(()=>!(r.cover===$h||r.cover.trim().length===0)),{title:v,intentions:A,cover:C,hideCover:T,version:S,labelCard:P,hideIcon:N,mandateLevel:B}=d.toRefs(r);return(X,H)=>(d.openBlock(),d.createBlock(Be,{title:d.unref(P),icon:d.unref(Ti),flat:"",type:X.type,hideIcon:d.unref(N),mandateLevel:d.unref(B)},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("div",Uh,[d.unref(T)?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[x.value?(d.openBlock(),d.createElementBlock("img",{key:0,class:"object-cover h-24 w-full rounded-t-lg object-cover md:h-auto md:w-24 md:rounded-none md:rounded-l-lg",src:d.unref(C),alt:`image de la lecture ${d.unref(v)}`},null,8,Zh)):(d.openBlock(),d.createElementBlock("div",Jh,[d.createVNode(fe,{"icon-path":d.unref(Ti),size:"95"},null,8,["icon-path"])]))],64)),d.createElementVNode("div",Qh,[d.createElementVNode("div",Kh,[d.createElementVNode("div",qh,[d.createElementVNode("h4",null,[d.createTextVNode(d.toDisplayString(d.unref(v))+" ",1),d.unref(S)?(d.openBlock(),d.createBlock(ht,{key:0,size:"small",type:"base"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(S)),1)]),_:1})):d.createCommentVNode("",!0)]),d.createVNode(Pe,{rounded:"",type:"base",prependIcon:d.unref(Di)},{default:d.withCtx(()=>[d.createTextVNode("[Accéder au logiciel]")]),_:1},8,["prependIcon"])])])])])]),actions:d.withCtx(()=>[]),_:2},[d.unref(je)(d.unref(A))?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:d.unref(je)(d.unref(A))},null,8,jh)]),key:"0"}:void 0]),1032,["title","icon","type","hideIcon","mandateLevel"]))}}),td={},sd={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},id=[d.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function ad(b,r){return d.openBlock(),d.createElementBlock("div",sd,id)}const nd=$e(td,[["render",ad]]),od={},rd={class:"p-12 bg-warning-light w-[50%] mx-auto border-2 border-warning"},ld=[d.createElementVNode("p",{class:"text-center text-error font-bold uppercase"},"In progress",-1)];function cd(b,r){return d.openBlock(),d.createElementBlock("div",rd,ld)}const hd=$e(od,[["render",cd]]),dd=["innerHTML"],ud={class:"max-w-screen-sm mx-auto"},pd=["src"],gd=["src"],fd=d.defineComponent({__name:"EpVideo",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},hideIcon:{type:Boolean,default:!1}},setup(b){const r=b,x=d.ref(),v=d.computed(()=>!!(r.src.endsWith(".mp4")||r.src.endsWith(".ogg")||r.src.endsWith(".webm"))),A=d.computed(()=>{const B=r.src;return!v.value&&B.includes("https://vimeo.com/")?B.replace("https://vimeo.com/","https://player.vimeo.com/video/"):B}),C=d.computed(()=>r.intentions?Ye(r.intentions)?r.intentions:Ge(r.intentions):null),{src:T,title:S,hideIcon:P,type:N}=d.toRefs(r);return(B,X)=>(d.openBlock(),d.createBlock(Be,{title:d.unref(S),type:d.unref(N),hideIcon:d.unref(P),icon:d.unref(Pi),mandateLevel:B.mandateLevel},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("div",ud,[v.value?(d.openBlock(),d.createElementBlock("video",{key:0,ref_key:"video",ref:x,controls:"",src:d.unref(T),width:"640",controlsList:"nodownload"},null,8,pd)):(d.openBlock(),d.createElementBlock("iframe",{key:1,src:A.value,width:"100%",height:"360",frameborder:"0",allowfullscreen:""},null,8,gd))])]),_:2},[C.value?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:C.value},null,8,dd)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),xd=["innerHTML"],md={class:"max-w-screen-sm mx-auto"},bd=["src"],vd=d.defineComponent({__name:"EpVideoPanopto",props:{src:{},title:{},intentions:{},credits:{},mandateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},hideIcon:{type:Boolean,default:!1}},setup(b){const r=b,x=d.computed(()=>r.intentions?Ye(r.intentions)?r.intentions:Ge(r.intentions):null),{src:v,title:A,hideIcon:C,type:T}=d.toRefs(r);return(S,P)=>(d.openBlock(),d.createBlock(Be,{title:d.unref(A),type:d.unref(T),hideIcon:d.unref(C),icon:d.unref(Pi),mandateLevel:S.mandateLevel},d.createSlots({content:d.withCtx(()=>[d.createElementVNode("div",md,[d.createElementVNode("iframe",{src:d.unref(v),width:"100%",height:"360",frameborder:"0",allowfullscreen:""},null,8,bd)])]),_:2},[x.value?{name:"intentions",fn:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:x.value},null,8,xd)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),yd={class:"items-center overflow-hidden bg-white"},wd={class:"flex mt-2 place-self-end gap-2 lg:flex-row"},kd={id:"title-content",class:"w-full grow flex items-end"},Cd={class:"container flex flex-col px-8 py-24 mx-auto max-w-7xl md:flex-row lg:px-16"},Ad={key:0,class:"p-4 md:items-center backdrop-blur-md backdrop-brightness-50 backdrop-opacity-75 rounded-xl"},Sd={class:"text-center md:text-left"},_d={class:"text-2xl font-medium tracking-tight text-white sm:text-4xl"},Ed={class:"max-w-xl mt-4 text-xl tracking-tight text-white contrast-50"},Ld={key:0,id:"action",class:"place-self-center pb-12 animate-bounce"},Td={class:"mx-auto w-12 bg-white rounded-full p-2"},Dd={class:"items-center pb-12 max-w-7xl lg:pb-24"},Pd={class:"justify-center w-full mx-auto bg-stone-100"},Id={class:"flex py-3 border-y","aria-label":"Breadcrumb"},zd={role:"list",class:"flex items-center pl-2 space-x-2"},Md={class:"flex items-center"},Nd={href:"#",class:"inline-flex items-center text-sm font-medium text-gray-500 duration-200 hover:text-gray-700 hover:scale-95"},Bd=d.createElementVNode("span",{class:"ml-2"}," Parent ",-1),Rd=d.createStaticVNode('<li><div class="flex items-center"><span class="flex-shrink-0 w-5 h-5 text-gray-300"> / </span><a href="#" class="ml-4 text-sm font-medium text-gray-500 hover:scale-95 hover:text-gray-700"> Parent </a></div></li><li><div class="flex items-center"><span class="flex-shrink-0 w-5 h-5 text-gray-300"> / </span><a href="#" class="ml-4 text-sm font-medium text-gray-500 hover:scale-95 hover:text-gray-700"> Parent </a></div></li><li><div class="flex items-center"><span class="flex-shrink-0 w-5 h-5 text-gray-300"> / </span><a href="#" class="ml-4 text-sm font-medium text-blue-500 hover:scale-95 hover:text-gray-700" aria-current="page"> Current </a></div></li>',3),Fd=d.defineComponent({__name:"EpHeader",props:{title:{default:null},subtitle:{},icon:{default:null},color:{default:null},taxonomyLevel:{},courseCode:{},courseTitle:{},height:{default:null},src:{default:null},synchrone:{type:Boolean,default:!1},duration:{default:null},assessment:{default:null}},setup(b){const r=b;d.computed(()=>r.color);const x=d.computed(()=>`
|
|
38
737
|
flex
|
|
39
738
|
flex-col
|
|
40
739
|
items-start
|
|
41
740
|
overflow-hidden
|
|
42
741
|
w-full
|
|
43
|
-
${
|
|
742
|
+
${r.height!==null?"min-h-screen":"h-96"}
|
|
44
743
|
bg-cover
|
|
45
744
|
bg-blue-500
|
|
46
|
-
bg-blend-multiply `),
|
|
745
|
+
bg-blend-multiply `),v=d.computed(()=>r.src?r.src:"https://picsum.photos/800/480?random"),{title:A,icon:C,color:T,src:S,height:P}=d.toRefs(r);return(N,B)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("section",yd,[d.createElementVNode("div",{class:d.normalizeClass(x.value),style:d.normalizeStyle(`background-image:url('${v.value}')`)},[d.createElementVNode("div",wd,[N.synchrone?(d.openBlock(),d.createBlock(ht,{key:0,color:"secondary",prependIcon:d.unref(dr)},{default:d.withCtx(()=>[d.createTextVNode("Synchrone")]),_:1},8,["prependIcon"])):d.createCommentVNode("",!0),N.duration?(d.openBlock(),d.createBlock(ht,{key:1,color:"secondary",prependIcon:d.unref(_r)},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(N.duration),1)]),_:1},8,["prependIcon"])):d.createCommentVNode("",!0),N.assessment?(d.openBlock(),d.createBlock(ht,{key:2,color:"secondary",prependIcon:d.unref(ur)},{default:d.withCtx(()=>[d.createTextVNode("Formatif")]),_:1},8,["prependIcon"])):d.createCommentVNode("",!0)]),d.createElementVNode("div",kd,[d.createElementVNode("div",Cd,[d.unref(A)?(d.openBlock(),d.createElementBlock("div",Ad,[d.createElementVNode("div",Sd,[d.createElementVNode("div",null,[d.createElementVNode("p",_d,d.toDisplayString(d.unref(A)),1),d.createElementVNode("p",Ed,d.toDisplayString(N.subtitle),1)])])])):d.createCommentVNode("",!0)])]),r.height!==null?(d.openBlock(),d.createElementBlock("div",Ld,[d.createElementVNode("div",Td,[d.createVNode(fe,{iconPath:d.unref(fr),size:"32"},null,8,["iconPath"])])])):d.createCommentVNode("",!0)],6)]),d.createElementVNode("section",null,[d.createElementVNode("div",Dd,[d.createElementVNode("div",Pd,[d.createElementVNode("nav",Id,[d.createElementVNode("ol",zd,[d.createElementVNode("li",null,[d.createElementVNode("div",Md,[d.createElementVNode("a",Nd,[d.createVNode(fe,{iconPath:d.unref(wr),size:"22"},null,8,["iconPath"]),Bd])])]),Rd])])])])])],64))}}),Vd={class:"flex flex-wrap rounded-lg bg-white"},Hd=["src"],Od={class:"p-6 flex-1"},Xd={class:"text-xs italic text-neutral-500"},Yd=d.defineComponent({__name:"EpQuote",props:{name:{default:null},src:{default:null},quotes:{type:Boolean,default:!1}},setup(b){const r=b,{name:x,src:v,quotes:A}=d.toRefs(r);return(C,T)=>(d.openBlock(),d.createBlock(Pt,{density:"compact"},{default:d.withCtx(()=>[d.createElementVNode("div",Vd,[d.unref(v)?(d.openBlock(),d.createElementBlock("img",{key:0,class:"h-96 w-full rounded-t-lg object-cover lg:h-auto lg:w-48 lg:rounded-none lg:rounded-l-lg",src:d.unref(v),alt:"Image of quote"},null,8,Hd)):d.createCommentVNode("",!0),d.createElementVNode("div",Od,[d.renderSlot(C.$slots,"default"),d.unref(x)?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(ct,{size:"border"}),d.createElementVNode("p",Xd,d.toDisplayString(d.unref(x)),1)],64)):d.createCommentVNode("",!0)])])]),_:3}))}});ae.EpAccordeon=Oi,ae.EpAlert=Xi,ae.EpAudio=Lh,ae.EpBadge=ol,ae.EpBarChart=Gl,ae.EpBtn=Pe,ae.EpCard=Pt,ae.EpCarousel=Rh,ae.EpChip=ht,ae.EpContentSlider=ih,ae.EpDivider=ct,ae.EpEdu=Be,ae.EpFlex=Ll,ae.EpHeader=Fd,ae.EpIcon=fe,ae.EpIframe=Hh,ae.EpImg=il,ae.EpLink=Gh,ae.EpModal=It,ae.EpQuestion=lh,ae.EpQuote=Yd,ae.EpReading=jc,ae.EpScope=Bi,ae.EpSection=wl,ae.EpSoftware=ed,ae.EpSpinner=_l,ae.EpSvg=nd,ae.EpTable=zl,ae.EpTabs=ph,ae.EpTerm=Ii,ae.EpText=Yr,ae.EpTimeLine=hd,ae.EpVideo=fd,ae.EpVideoPanopto=vd,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
|