The Ultimate Video Player For WordPress – by Presto Player - Version 1.8.0

Version Description

  • January 11, 2022 =
  • New Feature: Audio player. Doc
  • New Feature: Timestamp links shortcode. Doc
Download this release

Release Info

Developer 2winfactor
Plugin Icon 128x128 The Ultimate Video Player For WordPress – by Presto Player
Version 1.8.0
Comparing to
See all releases

Code changes from version 1.7.2 to 1.8.0

dist/analytics/{admin-8458c3ef.js → admin-32e25baa.js} RENAMED
@@ -15,5 +15,5 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[0],{23:function(e,t){e.exports=window.wp.apiFetch},24:function(e,t){e.exports=window.wp.components},26:function(e,t,a){a(27),e.exports=a(38)},38:function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(12),c=a(13),l=a(14),o=a(15),i=a(17),s=a(10),p=a(4),u=a(21),d=a.n(u);function f(e){return{path:e.pathname,hash:e.hash,query:d.a.parse(e.search)}}var m=a(25),b=Object(m.a)(),h=wp.element.createContext({route:f(b.location)}),y=a(8),v=wp.element.useContext,w="";function g(e){var t=e.path,a=e.onRoute,r=e.children,n=v(h).route,c=Object(y.a)("".concat(t))("".concat(n.hash.substr(1)));return c?(a&&(w!==c.path&&a(),w=c.path),React.createElement("div",null,wp.element.cloneElement(r,{route:c}))):null}var E=a(18),R=a.n(E);wp.element.useContext;function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(s.a)(e);if(t){var n=Object(s.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(i.a)(this,a)}}var j=function(e){Object(o.a)(a,e);var t=O(a);function a(e){var r;Object(n.a)(this,a),r=t.call(this,e),Object(p.a)(Object(l.a)(r),"handleRouteChange",(function(e){var t=f(null==e?void 0:e.location);r.setState({route:t})})),r.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),r.unlisten=b.listen(r.handleRouteChange);var c=f(b.location);return r.state={route:c,defaultRoute:null!=e&&e.defaultRoute?"#".concat(null==e?void 0:e.defaultRoute):"#/"},r}return Object(c.a)(a,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,a=(e.NotFound,this.state),r=a.route,n=a.defaultRoute;if(!r.hash)return b.push(n),React.createElement("div",null);var c=!1;(this.routes||[]).forEach((function(e){var t=Object(y.a)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(c={name:e,data:t})}));var l={route:r,matched:c},o=!c;return React.createElement(h.Provider,{value:l},o?React.createElement("div",null,"Not found"):t)}}]),a}(wp.element.Component),x=function(e){var t=e.width,a=e.height;return React.createElement("svg",{id:"e8f68bdd-4984-4f2e-95b7-7fc8ec281257","data-name":"Layer 1",width:t,height:a,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 918.14 765.54"},React.createElement("defs",null,React.createElement("linearGradient",{id:"27aa7b70-b106-4a00-be67-693c8380e41d",x1:"397.74",y1:"717.25",x2:"397.74",y2:"86.11",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:"0","stop-color":"gray","stop-opacity":"0.25"}),React.createElement("stop",{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}),React.createElement("stop",{offset:"1","stop-color":"gray","stop-opacity":"0.1"})),React.createElement("linearGradient",{id:"46a816da-c484-41ec-8a6f-fbf14454d910",x1:"288.88",y1:"378.44",x2:"288.88",y2:"209.65",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"32b634d8-28f1-48d9-a868-f602a2cad942",x1:"288.88",y1:"328.29",x2:"288.88",y2:"223.1",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba","data-name":"<Rectangle>",x:"354.51",y:"291.55",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"38f1cb81-8fac-4205-a0ff-a33ac00d354c",x1:"288.88",y1:"594.94",x2:"288.88",y2:"426.14",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"6fc01aaf-135e-403e-a209-43b2a4fe59f1",x1:"288.88",y1:"544.79",x2:"288.88",y2:"439.6",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"79ce363a-d134-40e4-9f82-b96d04a36978",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"5b44e697-61fe-43bd-9a58-5f3e41301748","data-name":"<Rectangle>",x:"354.51",y:"508.05",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"54803c44-522d-4b9e-9a34-f1f7b43e8483",x1:"671.57",y1:"760.34",x2:"671.57",y2:"129.2",gradientTransform:"translate(1109.43 -194.1) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"089a6a47-adaa-499b-aefb-cd6464b62fb8",x1:"670.96",y1:"553.63",x2:"670.96",y2:"387.28",gradientTransform:"translate(1129.51 -168.41) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"fd8d88e0-7826-450d-9e0b-001d1be709c2",x1:"637.66",y1:"754.12",x2:"637.66",y2:"601.05",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"8d1793c5-b76e-44e2-a52e-569460402331",x1:"778.37",y1:"673.86",x2:"778.37",y2:"569.13",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"4745700d-8097-45ff-9f71-625443fc4ad8",x1:"778.37",y1:"774.41",x2:"778.37",y2:"713.66",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"})),React.createElement("title",null,"secure data"),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"162.9",y:"86.11",width:"469.69",height:"631.14",fill:"url(#27aa7b70-b106-4a00-be67-693c8380e41d)"})),React.createElement("rect",{x:"169.02",y:"94.67",width:"455.01",height:"609.12",fill:"#f2f2f2"}),React.createElement("rect",{x:"204.49",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"204.49",y:"142.37",width:"156.56",height:"4.89",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"384.29",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"259.8",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"273.25",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"286.7",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"476.29",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"489.75",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"503.2",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"209.65",width:"166.35",height:"168.79",fill:"url(#46a816da-c484-41ec-8a6f-fbf14454d910)"})),React.createElement("rect",{x:"206.76",y:"213.32",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"223.1",width:"152.7",height:"105.19",fill:"url(#32b634d8-28f1-48d9-a868-f602a2cad942)"})),React.createElement("rect",{id:"689f37f3-cc41-448d-b172-63ec123bc985","data-name":"<Rectangle>",x:"213.58",y:"224.32",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)"},React.createElement("polygon",{points:"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18",fill:"#6c63ff",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"239",r:"11.01",fill:"#6c63ff",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"426.14",width:"166.35",height:"168.79",fill:"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)"})),React.createElement("rect",{x:"206.76",y:"429.81",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"439.6",width:"152.7",height:"105.19",fill:"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)"})),React.createElement("rect",{id:"b429ac3a-f8a8-4171-bcce-5b6c002c0714","data-name":"<Rectangle>",x:"213.58",y:"440.82",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#79ce363a-d134-40e4-9f82-b96d04a36978)"},React.createElement("polygon",{points:"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67",fill:"#bdbdbd",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"455.5",r:"11.01",fill:"#bdbdbd",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"349.09",y:"242.63",width:"631.14",height:"469.69",transform:"translate(-74.16 969.06) rotate(-78.76)",fill:"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)"})),React.createElement("rect",{x:"359.37",y:"247.33",width:"609.12",height:"455.01",transform:"translate(-72.16 966.22) rotate(-78.76)",fill:"#fff"}),React.createElement("rect",{x:"523.5",y:"197.22",width:"322.91",height:"4.89",transform:"translate(-88.86 -196.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"433.36",y:"650.7",width:"322.91",height:"4.89",transform:"translate(-2.18 -170.66) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"428.58",y:"671.14",width:"249.52",height:"4.89",transform:"translate(1.01 -162.18) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"424.6",y:"683.47",width:"92.96",height:"4.89",transform:"translate(1.84 -145.91) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"519.57",y:"209.08",width:"161.45",height:"4.89",transform:"translate(-88.17 -180.2) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"512.84",y:"249.31",width:"291.11",height:"4.89",transform:"translate(-79.21 -190.76) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"509.47",y:"255.44",width:"70.94",height:"4.89",transform:"translate(-80.19 -168.52) rotate(11.24)",fill:"#3ad29f",opacity:"0.7"}),React.createElement("rect",{x:"501.56",y:"307.59",width:"322.91",height:"4.89",transform:"translate(-67.76 -190.54) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"575.87",y:"357.6",width:"166.35",height:"289.88",transform:"translate(-103.27 983.74) rotate(-78.76)",fill:"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)"})),React.createElement("rect",{x:"516.06",y:"420.61",width:"286.22",height:"162.68",transform:"translate(-30.42 -186.11) rotate(11.24)",fill:"#fff"}),React.createElement("rect",{x:"496.08",y:"335.18",width:"322.91",height:"4.89",transform:"translate(-62.49 -188.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"547.86",y:"424.02",width:"35.47",height:"118.64",transform:"translate(-35.84 -168.22) rotate(11.24)",fill:"#6c63ff"}),React.createElement("rect",{x:"606.43",y:"475.19",width:"35.47",height:"79.5",transform:"translate(-28.56 -179.03) rotate(11.24)",fill:"#3ad29f"}),React.createElement("rect",{x:"665.23",y:"523.93",width:"35.47",height:"42.81",transform:"translate(-21.5 -189.92) rotate(11.24)",fill:"#f55f44"}),React.createElement("rect",{x:"731.91",y:"492.72",width:"35.47",height:"86.84",transform:"translate(-22.02 -203.09) rotate(11.24)",fill:"#fdd835"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"128.65",y:"645.09",width:"3.67",height:"20.79",fill:"#47e6b1"}),React.createElement("rect",{x:"269.58",y:"712.31",width:"3.67",height:"20.79",transform:"translate(853.2 384.07) rotate(90)",fill:"#47e6b1"})),React.createElement("path",{d:"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z",transform:"translate(-140.93 -67.23)",fill:"#4d8af0",opacity:"0.5"}),React.createElement("path",{d:"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("path",{d:"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("circle",{cx:"337.81",cy:"28.62",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"7.34",cy:"317.46",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"863.76",cy:"120.36",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"822.17",cy:"339.3",r:"7.34",fill:"#4d8af0",opacity:"0.5"}),React.createElement("circle",{cx:"37.68",cy:"145.22",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"853.29",cy:"647.34",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"910.8",cy:"430.97",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("rect",{x:"544.42",y:"601.05",width:"186.48",height:"153.07",fill:"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)"}),React.createElement("path",{d:"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z",transform:"translate(-140.93 -67.23)",fill:"url(#8d1793c5-b76e-44e2-a52e-569460402331)"}),React.createElement("path",{d:"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z",transform:"translate(-140.93 -67.23)",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#6c63ff"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"631.77",width:"182.24",height:"90.07",fill:"#6c63ff"}),React.createElement("path",{d:"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z",transform:"translate(-140.93 -67.23)",fill:"url(#4745700d-8097-45ff-9f71-625443fc4ad8)"}),React.createElement("path",{d:"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z",transform:"translate(-140.93 -67.23)",opacity:"0.2"}))},_=wp.i18n.__,D=wp.components,P=D.Flex,k=D.FlexItem,N=D.FlexBlock,S=function(){return React.createElement(P,{style:{padding:"30px",background:"#fff"}},React.createElement(k,null,React.createElement(x,{width:"250px"})),React.createElement(N,{style:{marginLeft:"20px"}},React.createElement("h1",null,_("Get detailed video insights.","presto-player")),React.createElement("p",null,_("Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.","presto-player")),React.createElement("a",{href:"https://prestoplayer.com",target:"_blank",className:"button button-primary"},_("Learn More","presto-player"))))},C=a(11),F=a(5),T=a(3),M=a.n(T);function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?I(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):I(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}wp.i18n.__;var A=wp.apiFetch,V=wp.element.useState,H=wp.compose.createHigherOrderComponent,L=function(){return H((function(e){return function(t){var a=V(!1),n=Object(r.a)(a,2),c=n[0],l=n[1],o=V(1),i=Object(r.a)(o,2),s=i[0],p=i[1],u=V(0),d=Object(r.a)(u,2),f=d[0],m=d[1],b=V(0),h=Object(r.a)(b,2),y=h[0],v=h[1],w=V([]),g=Object(r.a)(w,2),E=g[0],R=g[1],O=V(""),j=Object(r.a)(O,2),x=j[0],_=j[1],D=function(){var e=Object(F.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,A({path:wp.url.addQueryArgs(a,B({page:s,per_page:5},n)),parse:!1}).then((function(e){var t=e.headers?parseInt(e.headers.get("X-WP-Total")):0,a=e.headers?parseInt(e.headers.get("X-WP-TotalPages")):0;return m(t),v(a),e.json()}));case 5:c=e.sent,R(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&_(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:D,page:s,setPage:p,total:f,setTotal:m,totalPages:y,setTotalPages:v,data:E,setData:R,error:x,setError:_},t))}}),"withDataList")},U=wp.i18n,G=U.__,W=U.sprintf,Z=function(e){var t=(new Date).getTimezoneOffset();return new Date(e.getTime()-60*t*1e3).toISOString().split("T")[0]+"T00:00:00.000Z"},z=wp.components,Y=z.Spinner,Q=z.Flex,X=z.FlexItem,q=function(e){var t=e.height,a=void 0===t?100:t;return React.createElement(Q,{style:{height:"".concat(a,"px")},align:"center",justify:"center"},React.createElement(X,null,React.createElement(Y,null)))},J=wp.i18n.__,$=wp.components,K=$.Card,ee=$.CardBody,te=$.Flex,ae=$.FlexBlock,re=$.Button,ne=$.ButtonGroup,ce=wp.element,le=ce.useState,oe=ce.useEffect,ie=function(e){var t=e.page,a=e.setPage,n=e.perPage,c=e.total,l=e.totalPages,o=le(!1),i=Object(r.a)(o,2),s=i[0],p=i[1],u=le(!1),d=Object(r.a)(u,2),f=d[0],m=d[1],b=le(0),h=Object(r.a)(b,2),y=h[0],v=h[1],w=le(0),g=Object(r.a)(w,2),E=g[0],R=g[1];oe((function(){v(Math.min(n*t,c)),R(n*(t-1)+1)}),[n,t,c]);return oe((function(){p(t-1>0),m(l>=t+1)}),[t,l]),React.createElement(K,{size:"large",className:"presto-card pagination"},React.createElement(ee,{className:"presto-flow"},React.createElement(te,null,React.createElement(ae,null,sprintf(J("Showing %1s to %2s of %3s","presto-player"),E,y,c)),React.createElement(ae,null,React.createElement(te,{justify:"flex-end"},React.createElement(ne,null,React.createElement(re,{isSecondary:!0,disabled:!s,onClick:function(){a(Math.max(t-1,0))}},J("Previous","presto-player")),React.createElement(re,{isSecondary:!0,disabled:!f,onClick:function(){a(Math.min(l,t+1))}},J("Next","presto-player"))))))))},se=wp.i18n.__,pe=wp.element,ue=(pe.useRef,pe.useEffect,pe.useState,wp.components),de=ue.Card,fe=ue.CardBody,me=(ue.Flex,ue.FlexBlock,ue.Button,ue.ButtonGroup,function(e){var t=e.columns,a=e.data,r=e.onRowClick,n=e.title;return a.length?React.createElement(de,{size:"large",className:"presto-card table-card"},React.createElement(fe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("table",{role:"table",className:R()("presto-table",{"is-clickable":r})},React.createElement("thead",{role:"rowgroup"},React.createElement("tr",{role:"row"},t&&t.map((function(e){return React.createElement("th",{key:e.key,role:"columnheader"},e.label)})))),React.createElement("tbody",{role:"rowgroup"},a.map((function(e,a){return React.createElement("tr",{role:"row",key:"row-".concat(a),onClick:function(){return r&&r(e)}},t.map((function(t,r){return React.createElement("td",{role:"cell","data-title":t.label,key:"row-".concat(a,"-").concat(r),"aria-label":t.label},t.render?t.render(e):React.createElement("div",null,t.value(e)))})))})))))):React.createElement(de,{size:"large",className:"presto-card table-card"},React.createElement(fe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("div",{style:{opacity:.65}},se("No data available.","presto-player"))))}),be=wp.i18n.__,he=wp.element,ye=(he.useEffect,he.useState,wp.components),ve=ye.Card,we=ye.CardBody,ge=function(e){var t=e.perPage,a=void 0===t?10:t,r=e.title,n=e.page,c=e.setPage,l=e.loading,o=e.total,i=e.totalPages,s=e.columns,p=e.data,u=e.onSelect;return l?React.createElement(ve,null,React.createElement(q,null)):null!=p&&p.length?React.createElement("div",{className:"datatable"},React.createElement(me,{data:p,columns:s,perPage:a,onRowClick:u,title:r}),!!o&&React.createElement(ie,{page:n,setPage:c,perPage:a,total:o,totalPages:i})):React.createElement(ve,{size:"large",className:"presto-card"},React.createElement(we,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},r),React.createElement("div",{style:{opacity:.65}},be("No data available.","presto-player"))))};function Ee(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ee(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe=wp.i18n.__,je=wp.element.useEffect,xe=(0,wp.compose.compose)([L()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate;je((function(){i({endpoint:"/presto-player/v1/analytics/top-users",params:Re(Re({per_page:5},s?{start:Z(s)}:{}),p?{end:Z(p)}:{})})}),[a,s,p]);var u=[{key:"name",label:Oe("Name","presto-player"),value:function(e){var t;return null==e||null===(t=e.user)||void 0===t?void 0:t.name}},{key:"total_view",label:Oe("Total View","presto-player"),value:function(e){var t,a;return null==e||null===(t=e.stats)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.data}},{key:"avg_view_time",label:Oe("Avg View Time","presto-player"),render:function(e){var t,a;return React.createElement("div",{className:"presto-badge"},null==e||null===(t=e.stats)||void 0===t||null===(a=t[1])||void 0===a?void 0:a.data)}}];return o?{error:o}:React.createElement(ge,{title:Oe("Top Users","presto-player"),page:a,perPage:5,setPage:r,loading:t,total:n,totalPages:c,columns:u,data:l,onSelect:function(e){var t,a;return a=null==e||null===(t=e.user)||void 0===t?void 0:t.id,void b.push("#/user/".concat(a))}})}));function _e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function De(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Pe=wp.i18n.__,ke=wp.element.useEffect,Ne=(0,wp.compose.compose)([L()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate,u=e.userId;ke((function(){i({endpoint:"/presto-player/v1/analytics/top-videos",params:De(De(De({per_page:10},s?{start:Z(s)}:{}),p?{end:Z(p)}:{}),u?{user_id:u}:{})})}),[a,s,p]);var d=[{key:"name",label:Pe("Name","presto-player"),render:function(e){return React.createElement("h3",{style:{marginBottom:0,wordBreak:"break-all"}},e.video.title?e.video.title:Pe("Untitled","presto-player"))}},{key:"total_view",label:Pe("Total View","presto-player"),value:function(e){return e.stats[0].data}},{key:"avg_view_time",label:Pe("Avg View Time","presto-player"),render:function(e){return React.createElement("div",{className:"presto-badge"},e.stats[1].data)}},{key:"view_more",label:"",render:function(e){return React.createElement("span",{style:{color:"var(--wp-admin-theme-color, #007cba)"}},Pe("View Details","presto-player")," →")}}];return o?{error:o}:React.createElement(ge,{title:Pe("Top Videos","presto-player"),perPage:10,page:a,setPage:r,loading:t,total:n,totalPages:c,columns:d,data:l,onSelect:function(e){var t,a;a=null==e||null===(t=e.video)||void 0===t?void 0:t.id,b.push("#/video/".concat(a))}})})),Se=wp.apiFetch;Se.use(Se.createNonceMiddleware(prestoPlayer.nonce)),Se.use(Se.createRootURLMiddleware(prestoPlayer.root+prestoPlayer.prestoVersionString));var Ce=Se,Fe=a(9),Te=a.n(Fe);function Me(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Me(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Be,Ae=wp.i18n,Ve=Ae.__,He=Ae.sprintf,Le=wp.components,Ue=(Le.Card,Le.CardBody),Ge=wp.element,We=Ge.useState,Ze=Ge.useEffect,ze=(Ge.useRef,function(e){var t=We(!0),a=Object(r.a)(t,2),n=a[0],c=a[1],l=We(0),o=Object(r.a)(l,2),i=o[0],s=o[1],p=e.startDate,u=e.endDate,d=We([{name:"Views",data:[]}]),f=Object(r.a)(d,2),m=f[0],b=f[1],h={options:{chart:{toolbar:{show:!1}},yaxis:{min:0,labels:{formatter:function(e){return e<1?0:Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e).toFixed(0)}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(u).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};Ze((function(){y()}),[e]);var y=function(){c(!0),Ce({path:"/presto-player/v1/analytics/views?"+jQuery.param(Ie(Ie({},p?{start:Z(p)}:{}),u?{end:Z(u)}:{})),parse:!1}).then(function(){var e=Object(F.a)(M.a.mark((function e(t){var a,r;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t.headers&&t.headers.get("X-WP-Total")),e.next=3,t.json();case 3:a=e.sent,r=[],a.length&&a.forEach((function(e){r.push({x:e.date_time,y:e.total})})),b([{name:"Views",data:r}]);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return n?React.createElement(Ue,null,React.createElement(q,null)):React.createElement(Ue,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},He(Ve("%d Unique Views","presto-player"),i)),React.createElement(Te.a,{options:h.options,series:m,type:"area",height:280}))}),Ye=wp.i18n,Qe=Ye.__,Xe=Ye.sprintf,qe=wp.components,Je=(qe.Card,qe.CardBody),$e=wp.element,Ke=$e.useState,et=$e.useEffect,tt=($e.useRef,function(e){var t=Ke(!0),a=Object(r.a)(t,2),n=a[0],c=a[1],l=Ke(0),o=Object(r.a)(l,2),i=o[0],s=o[1],p=e.startDate,u=e.endDate,d=Ke([{name:"Views",data:[]}]),f=Object(r.a)(d,2),m=f[0],b=f[1],h={options:{chart:{toolbar:{show:!1}},yaxis:{labels:{formatter:function(e){return Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k min":(Math.sign(e)*Math.abs(e)).toFixed(1)+"min"}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(u).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};et((function(){R()}),[e]);var y,v,w,g,E,R=function(){c(!0),Ce({path:"/presto-player/v1/analytics/watch-time?"+jQuery.param({start:Z(p),end:Z(u)}),parse:!1}).then(function(){var e=Object(F.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:a=e.sent,r=a.data,n=a.average,s(parseFloat(n)),c=[],r.length&&r.forEach((function(e){c.push({x:e.date_time,y:(e.total/60).toFixed(2)})})),b([{name:"Watch Time",data:c}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return n?React.createElement(Je,null,React.createElement(q,null)):React.createElement(Je,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Xe(Qe("%s average watch time","presto-player"),(y=i,v=Math.floor(y/60/60),w=Math.floor(y/60)-60*v,g=y%60,E="",v&&(E+=W(G("%d hours","presto-player"),v)+", "),w&&(E+=W(G("%d minutes","presto-player"),w)+" "),(v||w)&&g&&(E+=G("and","presto-player")+" "),E+=W(G("%d seconds","presto-player"),g)))),React.createElement(Te.a,{options:h.options,series:m,type:"area",height:280}))}),at=wp.i18n.__,rt=wp.components,nt=rt.Panel,ct=rt.TabPanel,lt=function(e){var t=e.startDate,a=e.endDate;return React.createElement(nt,null,React.createElement(ct,{className:"presto-module-tabs",onSelect:function(){},tabs:[{name:"views",title:at("Views","presto-player")},{name:"watch",title:at("Watch Time","presto-player")}]},(function(e){switch(e.name){case"views":return React.createElement(ze,{startDate:t,endDate:a});case"watch":return React.createElement(tt,{startDate:t,endDate:a});default:return React.createElement(React.Fragment,null,"Not Found")}})))},ot=a(22),it=a.n(ot),st=(a(35),wp.i18n.__),pt=wp.element,ut=pt.useRef,dt=pt.useEffect,ft=pt.useState,mt=function(e){var t=e.startDate,a=e.setStartDate,n=e.endDate,c=e.setEndDate,l=ut(),o=ft(25),i=Object(r.a)(o,2),s=i[0],p=i[1];return dt((function(){new it.a({element:null==l?void 0:l.current,singleMode:!1,format:"MMMM D YYYY",autoApply:!1,plugins:["ranges"],maxDate:new Date,numberOfMonths:2,buttonText:{apply:st("Apply","presto-player"),cancel:st("Cancel","presto-player")},dropdowns:{minYear:1990,maxYear:null,months:!0,years:!0},setup:function(e){e.setDateRange(t,n),e.on("button:apply",(function(e,t){a(e.dateInstance),c(t.dateInstance),p(l.current.value.length)}))}})}),[l]),React.createElement("div",{className:"component-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("input",{className:"components-text-control__input presto-settings__date-select",ref:l,size:s})))},bt=a(23),ht=a.n(bt),yt=a(24),vt=a(0),wt=wp.i18n.__,gt=wp.components,Et=gt.Flex,Rt=gt.FlexBlock,Ot=gt.FlexItem,jt=wp.element,xt=jt.useState,_t=jt.useEffect,Dt=function(e){var t=e.startDate,a=e.endDate,n=e.setStartDate,c=e.setEndDate,l=xt(!1),o=Object(r.a)(l,2),i=o[0],s=o[1];return _t((function(){ht()({path:"/wp/v2/settings"}).then((function(e){var t;!1===(null==e||null===(t=e.presto_player_analytics)||void 0===t?void 0:t.enable)&&s(!0)}))}),[]),Object(vt.b)(React.Fragment,null,i?Object(vt.b)(Pt,null):"",Object(vt.b)(Et,null,Object(vt.b)(Rt,null,Object(vt.b)("h1",null,wt("Analytics","presto-player"))),Object(vt.b)(Ot,null,Object(vt.b)(mt,{startDate:t,setStartDate:n,endDate:a,setEndDate:c}))),Object(vt.b)("div",{className:"presto-flow"},Object(vt.b)("div",{className:"presto-dashboard"},Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item is-large"},Object(vt.b)(lt,{startDate:t,endDate:a})),Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(xe,{startDate:t,endDate:a}))),Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item is-large"},Object(vt.b)(Ne,{startDate:t,endDate:a}))))))},Pt=function(){return Object(vt.b)(yt.Notice,{css:Object(vt.a)(Be||(Be=Object(C.a)(["\n margin: 0 0 1em 0 !important;\n "]))),status:"warning",isDismissible:!1},Object(vt.b)("p",null,wt("Analytics are currently disabled. To collect analytics, turn them on in your settings page.","presto-player")))},kt=wp.components,Nt=kt.Card,St=kt.CardBody,Ct=function(e){var t=e.loading,a=e.title,r=e.value,n=e.label;return t?React.createElement(Nt,null,React.createElement(St,null,React.createElement(q,null))):React.createElement(Nt,{className:"presto-player__stat-card"},React.createElement(St,null,React.createElement("div",{className:"presto-subtitle"},a),React.createElement("h1",null,r),React.createElement("div",null,n)))};function Ft(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Tt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ft(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Mt,It,Bt,At=wp.apiFetch,Vt=wp.element.useState,Ht=wp.compose.createHigherOrderComponent,Lt=function(){return Ht((function(e){return function(t){var a=Vt(!1),n=Object(r.a)(a,2),c=n[0],l=n[1],o=Vt([]),i=Object(r.a)(o,2),s=i[0],p=i[1],u=Vt(""),d=Object(r.a)(u,2),f=d[0],m=d[1],b=function(){var e=Object(F.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,At({path:wp.url.addQueryArgs(a,Tt({},n))});case 5:c=e.sent,p(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&m(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:b,stat:s,setStat:p,error:f,setError:m},t))}}),"withStat")},Ut=wp.i18n.__,Gt=wp.compose.compose,Wt=wp.element.useEffect,Zt=Gt([Lt()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Wt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseInt(null==n?void 0:n.view),title:Ut("Total Views","presto-player")})})),zt=wp.i18n.__,Yt=wp.compose.compose,Qt=wp.element.useEffect,Xt=Yt([Lt()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Qt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:zt("Average Watch Time","presto-player"),label:zt("seconds","presto-player")})})),qt=wp.i18n.__,Jt=wp.compose.compose,$t=wp.element.useEffect,Kt=Jt([Lt()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return $t((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:qt("Total Watch Time","presto-player"),label:qt("seconds","presto-player")})})),ea=wp.i18n.__,ta=wp.components,aa=ta.Flex,ra=ta.FlexBlock,na=ta.FlexItem,ca=ta.Spinner,la=ta.Button,oa=wp.element,ia=oa.useEffect,sa=oa.useState,pa=wp.apiFetch,ua=function(e){var t,a,n,c,l=e.route,o=e.startDate,i=e.endDate,s=e.setStartDate,p=e.setEndDate,u=sa(!0),d=Object(r.a)(u,2),f=d[0],m=d[1],h=sa({}),y=Object(r.a)(h,2),v=y[0],w=y[1],g=sa(""),E=Object(r.a)(g,2),R=E[0],O=E[1],j=function(){var e=Object(F.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,pa({url:"/wp-json/wp/v2/users/".concat(null==l||null===(t=l.params)||void 0===t?void 0:t.id,"?context=edit")});case 4:a=e.sent,w(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&O("User Not Found");case 11:return e.prev=11,m(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return ia((function(){j()}),[]),R?Object(vt.b)("div",{className:"presto-flow"},Object(vt.b)(aa,null,Object(vt.b)(ra,null,Object(vt.b)("h2",null,R)))):Object(vt.b)("div",{className:"presto-flow"},Object(vt.b)(aa,null,Object(vt.b)(ra,null,Object(vt.b)(la,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ea("Back to Dashboard","presto-player")))),Object(vt.b)(aa,{wrap:!0},Object(vt.b)(ra,null,f?Object(vt.b)(ca,null):Object(vt.b)("div",{css:Object(vt.a)(Mt||(Mt=Object(C.a)(["\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n "])))},Object(vt.b)("div",null,Object(vt.b)("h1",{className:"presto-dashboard__title"},null==v?void 0:v.name),Object(vt.b)("p",{css:Object(vt.a)(It||(It=Object(C.a)(["\n margin-top: -10px;\n opacity: 0.65;\n "])))},null==v?void 0:v.email)),!!v.id&&Object(vt.b)("div",{className:"presto__edit-user-button",css:Object(vt.a)(Bt||(Bt=Object(C.a)(["\n margin: 0 20px;\n "])))},Object(vt.b)(la,{href:"/wp-admin/user-edit.php?user_id=".concat(null==v?void 0:v.id),isSecondary:!0,isSmall:!0},ea("View Profile","presto-player")," →")))),Object(vt.b)(na,null,Object(vt.b)(mt,{startDate:o,setStartDate:s,endDate:i,setEndDate:p}))),Object(vt.b)("div",{className:"presto-dashboard presto-flow"},Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(Zt,{userId:null==l||null===(t=l.params)||void 0===t?void 0:t.id,startDate:o,endDate:i})),Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(Xt,{userId:null==l||null===(a=l.params)||void 0===a?void 0:a.id,startDate:o,endDate:i})),Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(Kt,{userId:null==l||null===(n=l.params)||void 0===n?void 0:n.id,startDate:o,endDate:i}))),Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item is-large"},Object(vt.b)(Ne,{startDate:o,endDate:i,userId:null==l||null===(c=l.params)||void 0===c?void 0:c.id})))))},da=wp.i18n.__,fa=wp.compose.compose,ma=wp.element.useEffect,ba=fa([Lt()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return ma((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseInt(n),title:da("Average Watch Time","presto-player"),label:da("seconds","presto-player")})})),ha=wp.i18n,ya=ha.__,va=(ha.sprintf,wp.components),wa=va.Card,ga=va.CardBody,Ea=wp.element,Ra=Ea.useState,Oa=Ea.useEffect,ja=(Ea.useRef,function(e){var t=e.video_id,a=e.startDate,n=e.endDate,c=Ra(!0),l=Object(r.a)(c,2),o=l[0],i=l[1],s=Ra([{name:"Views",data:[]}]),p=Object(r.a)(s,2),u=p[0],d=p[1];Oa((function(){i(!0),Ce({path:wp.url.addQueryArgs("/presto-player/v1/analytics/video/".concat(t,"/timeline"),{start:Z(a),end:Z(n)})}).then((function(e){var t=[];e.length&&e.forEach((function(e){t.push({x:e.watch_time,y:e.total})})),d([{name:"Viewers",data:t}])})).catch((function(e){console.error(e)})).finally((function(){i(!1)}))}),[a,n]);var f={options:{chart:{toolbar:{show:!1}},tickAmount:1,yaxis:{labels:{formatter:function(e){return parseInt(e)}}},xaxis:{labels:{formatter:function(e){return t=e,t=1e3*parseInt(t||0),new Date(t).toISOString().substr(11,8);var t}}},colors:["#7c3aed"],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};return o?React.createElement(wa,null,React.createElement(ga,null,React.createElement(q,null))):React.createElement(wa,null,React.createElement(ga,null,React.createElement("div",{className:"presto-card__title"},ya("Audience Retention","presto-player")),React.createElement(Te.a,{options:f.options,series:u,type:"area",height:280})))}),xa=wp.i18n.__,_a=wp.compose.compose,Da=wp.element.useEffect,Pa=_a([Lt()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Da((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseInt(n),title:xa("Unique Views","presto-player")})})),ka=a(2),Na=a.n(ka),Sa=function(e){return e.replace(/([A-Z])/g,(function(e){return"-".concat(e[0].toLowerCase())}))},Ca=a(6),Fa=function(e,t,a){var r=t.className||t.class,n=a.className||a.class,c=Ia(e),l=Ia(r?r.split(" "):[]),o=Ia(n?n.split(" "):[]),i=[];return c.forEach((function(e){l.has(e)?(i.push(e),l.delete(e)):o.has(e)||i.push(e)})),l.forEach((function(e){return i.push(e)})),i.join(" ")},Ta=function(e,t){var a="on"+e,r=a in t;if(!r){var n=t.createElement("div");n.setAttribute(a,"return;"),r="function"==typeof n[a]}return r},Ma=function(e,t,a){var r=e.__events||(e.__events={}),n=r[t];n&&e.removeEventListener(t,n),e.addEventListener(t,r[t]=function(e){a&&a.call(this,e)})},Ia=function(e){var t=new Map;return e.forEach((function(e){return t.set(e,e)})),t},Ba=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return t.forEach((function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)}))}};function Aa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(s.a)(e);if(t){var n=Object(s.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(i.a)(this,a)}}var Va=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a},Ha=function(e,t,a){var r=e.toLowerCase().split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(""),l=function(t){Object(o.a)(i,t);var l=Aa(i);function i(e){var t;return Object(n.a)(this,i),(t=l.call(this,e)).setComponentElRef=function(e){t.componentEl=e},t}return Object(c.a)(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(e){!function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Element){var r=Fa(e.classList,t,a);""!==r&&(e.className=r),Object.keys(t).forEach((function(a){if("children"!==a&&"style"!==a&&"ref"!==a&&"class"!==a&&"className"!==a&&"forwardedRef"!==a)if(0===a.indexOf("on")&&a[2]===a[2].toUpperCase()){var r=a.substring(2),n=r[0].toLowerCase()+r.substring(1);"undefined"==typeof document||Ta(n,document)||Ma(e,n,t[a])}else{e[a]=t[a],"string"===Object(Ca.a)(t[a])?e.setAttribute(Sa(a),t[a]):e[a]=t[a]}}))}}(this.componentEl,this.props,e)}},{key:"render",value:function(){var t=this.props,r=t.children,n=t.forwardedRef,c=t.style,l=(t.className,t.ref,Va(t,["children","forwardedRef","style","className","ref"])),o=Object.keys(l).reduce((function(e,t){if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){var a=t.substring(2).toLowerCase();"undefined"!=typeof document&&Ta(a,document)&&(e[t]=l[t])}else e[t]=l[t];return e}),{});a&&(o=a(this.props,o));var i=Object.assign(Object.assign({},o),{ref:Ba(n,this.setComponentElRef),style:c});return Na.a.createElement(e,i,r)}}],[{key:"displayName",get:function(){return r}}]),i}(Na.a.Component);return t&&(l.contextType=t),function(e,t){var a=function(t,a){return Na.a.createElement(e,Object.assign({},t,{forwardedRef:a}))};return a.displayName=t,Na.a.forwardRef(a)}(l,r)},La=Ha("presto-player"),Ua=wp.element;Ua.useRef,Ua.useEffect;function Ga(e){if(e){if(e.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/))return"youtube";if(e.match(/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([‌​0-9]{6,11})[?]?.*/))return"vimeo";if(e.indexOf("https://vz-")>-1&&e.indexOf("b-cdn.net")>-1)return"bunny"}return"self-hosted"}function Wa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Za(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Wa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var za=wp.data.useSelect,Ya=function(e){var t,a,r,n=e.src,c=e.preset,l=e.branding,o=e.attributes,i=e.adminPreview,s=e.currentTime,p=e.preload,u=void 0===p?"metadata":p,d=e.overlays,f=o.chapters,m=o.mutedOverlay,b=o.mutedPreview,h=za((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.youtube()})),y=za((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.playerCSS()}));return React.createElement("div",{className:"wp-block-video presto-block-video",style:Za(Za(Za({"--presto-player-border-radius":"".concat(null==c?void 0:c.border_radius,"px")},null!=c&&c.caption_background?{"--plyr-captions-background":c.caption_background}:{}),null!=l&&l.color?{"--plyr-color-main":l.color}:{}),{},{"--presto-player-email-border-radius":"".concat((null==c||null===(t=c.email_collection)||void 0===t?void 0:t.border_radius)||0,"px"),"--presto-player-logo-width":"".concat((null==l?void 0:l.logo_width)||75,"px")})},React.createElement(La,{src:n,css:y,currentTime:s,overlays:d,isAdmin:!0,preload:u,preset:c,bunny:{thumbnail:null==o?void 0:o.previewThumbnail,preview:null==o?void 0:o.preview},youtube:{channelId:null==h?void 0:h.channel_id},tracks:!(null==c||!c.captions)&&[{kind:"captions",label:"English",srclang:"en",src:"/path/to/captions.en.vtt",default:!0}],branding:l,chapters:f,blockAttributes:o,poster:o.poster,provider:Ga(n)},React.createElement("div",{slot:"player-end"},(null==b?void 0:b.enabled)&&(null==m?void 0:m.enabled)&&React.createElement("div",{className:"presto-player__overlay is-image",style:{position:"absolute",width:"".concat((null==m?void 0:m.width)||100,"%"),left:"".concat(100*((null==m||null===(a=m.focalPoint)||void 0===a?void 0:a.x)||.5),"%"),top:"".concat(100*((null==m||null===(r=m.focalPoint)||void 0===r?void 0:r.y)||.5),"%")}},React.createElement("img",{src:null==m?void 0:m.src,style:{transform:"translateX(-50%) translateY(-50%)"}})),i)))};function Qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Xa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Qa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var qa=wp.i18n.__,Ja=wp.components,$a=Ja.Flex,Ka=Ja.FlexBlock,er=Ja.FlexItem,tr=Ja.Spinner,ar=Ja.Button,rr=Ja.TextControl,nr=wp.element,cr=nr.useEffect,lr=nr.useState,or=wp.apiFetch,ir=function(e){var t,a,n,c=e.route,l=e.startDate,o=e.endDate,i=e.setStartDate,s=e.setEndDate,p=lr(!0),u=Object(r.a)(p,2),d=u[0],f=u[1],m=lr({}),h=Object(r.a)(m,2),y=h[0],v=h[1],w=lr(""),g=Object(r.a)(w,2),E=g[0],R=g[1],O=lr(null),j=Object(r.a)(O,2),x=j[0],_=j[1],D=lr(!1),P=Object(r.a)(D,2),k=P[0],N=P[1],S=function(){var e=Object(F.a)(M.a.mark((function e(){var t,a,r,n;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,or({url:"".concat(null===(t=prestoPlayer)||void 0===t?void 0:t.root).concat(null===(a=prestoPlayer)||void 0===a?void 0:a.prestoVersionString,"videos/").concat(null==c||null===(r=c.params)||void 0===r?void 0:r.id)});case 4:n=e.sent,v(n),_(null==n?void 0:n.title),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&R("Video Not Found");case 12:return e.prev=12,f(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=Object(F.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New Video title ".concat(x)),f(!0),e.prev=2,t=Xa(Xa({},y),{title:x}),e.next=6,wp.apiFetch({method:"POST",url:wp.url.addQueryArgs("".concat(prestoPlayer.root).concat(prestoPlayer.prestoVersionString,"videos/").concat(y.id),{_method:"PUT"}),data:t});case 6:if(a=e.sent){e.next=9;break}throw genericError;case 9:N(!1),v(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),R(null!==e.t0&&void 0!==e.t0&&e.t0.message?e.t0.message:genericError);case 16:return e.prev=16,f(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(){_(null==y?void 0:y.title),N(!1)};return cr((function(){S()}),[]),E?React.createElement("div",{className:"presto-flow"},React.createElement($a,null,React.createElement(Ka,null,React.createElement("h2",null,E)))):React.createElement("div",{className:"presto-flow"},React.createElement($a,null,React.createElement(Ka,null,React.createElement(ar,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",qa("Back to Dashboard","presto-player")))),React.createElement($a,{wrap:!0},React.createElement(Ka,null,d?React.createElement(tr,null):k?React.createElement("div",{className:"presto-inline-edit presto-inline-edit--editing"},React.createElement(rr,{className:"presto-inline-edit__input",type:"text",value:x,onChange:function(e){return _(e)}}),React.createElement(ar,{className:"presto-inline-edit__button",isPrimary:!0,onClick:C}," ","Save"," "),React.createElement(ar,{className:"presto-inline-edit__button",isSecondary:!0,onClick:T}," ","Cancel"," ")):React.createElement("div",{className:"presto-inline-edit"},React.createElement("h1",{className:"presto-dashboard__title presto-inline-edit__text"},null==y?void 0:y.title),React.createElement("button",{className:"presto-inline-edit__edit",onClick:function(){return N(!0)}},React.createElement("span",{className:"dashicon dashicons dashicons-edit"})))),React.createElement(er,null,React.createElement(mt,{startDate:l,setStartDate:i,endDate:o,setEndDate:s}))),React.createElement("div",{className:"presto-dashboard presto-flow"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(Pa,{video_id:null==c||null===(t=c.params)||void 0===t?void 0:t.id,startDate:l,endDate:o})),React.createElement("div",{className:"presto-dashboard__item"},!!Object.keys(y||{}).length&&React.createElement(Ya,{src:null==y?void 0:y.src,attributes:{},type:null==y?void 0:y.type,preset:{"play-large":!0,play:!0,progress:!0,"current-time":!0}})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(ba,{video_id:null==c||null===(a=c.params)||void 0===a?void 0:a.id,startDate:l,endDate:o}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ja,{video_id:null==c||null===(n=c.params)||void 0===n?void 0:n.id,startDate:l,endDate:o})))))},sr={dashboard:{path:"/"},video:{path:"/video/:id"},user:{path:"/user/:id"}},pr=wp.element.useState,ur=function(){var e,t=function(){window.scrollTo(0,0)},a=pr(new Date(Date.now()-6048e5)),n=Object(r.a)(a,2),c=n[0],l=n[1],o=pr(new Date),i=Object(r.a)(o,2),s=i[0],p=i[1];return null!==(e=prestoPlayer)&&void 0!==e&&e.isPremium?React.createElement("div",{className:"presto-dashboard__content"},React.createElement(j,{routes:sr},React.createElement(g,{path:sr.dashboard.path,onRoute:t},React.createElement(Dt,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:sr.video.path,onRoute:t},React.createElement(ir,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:sr.user.path,onRoute:t},React.createElement(ua,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})))):React.createElement("div",{className:"presto-dashboard__content"},React.createElement(S,null))};(0,wp.element.render)(React.createElement(ur,null),document.getElementById("presto-analytics-page"))}},[[26,1,2]]]);
19
- //# sourceMappingURL=admin-8458c3ef.js.map
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[0],{26:function(e,t){e.exports=window.wp.apiFetch},27:function(e,t){e.exports=window.wp.components},34:function(e,t,a){a(35),e.exports=a(48)},48:function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(20),c=a(21),l=a(12),o=a(22),i=a(23),s=a(16),p=a(4),u=a(24),d=a.n(u);function f(e){return{path:e.pathname,hash:e.hash,query:d.a.parse(e.search)}}var m=a(31),b=Object(m.a)(),h=wp.element.createContext({route:f(b.location)}),y=a(8),v=wp.element.useContext,w="";function g(e){var t=e.path,a=e.onRoute,r=e.children,n=v(h).route,c=Object(y.a)("".concat(t))("".concat(n.hash.substr(1)));return c?(a&&(w!==c.path&&a(),w=c.path),React.createElement("div",null,wp.element.cloneElement(r,{route:c}))):null}var E=a(14),R=a.n(E);wp.element.useContext;function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(s.a)(e);if(t){var n=Object(s.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(i.a)(this,a)}}var j=function(e){Object(o.a)(a,e);var t=O(a);function a(e){var r;Object(n.a)(this,a),r=t.call(this,e),Object(p.a)(Object(l.a)(r),"handleRouteChange",(function(e){var t=f(null==e?void 0:e.location);r.setState({route:t})})),r.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),r.unlisten=b.listen(r.handleRouteChange);var c=f(b.location);return r.state={route:c,defaultRoute:null!=e&&e.defaultRoute?"#".concat(null==e?void 0:e.defaultRoute):"#/"},r}return Object(c.a)(a,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,a=(e.NotFound,this.state),r=a.route,n=a.defaultRoute;if(!r.hash)return b.push(n),React.createElement("div",null);var c=!1;(this.routes||[]).forEach((function(e){var t=Object(y.a)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(c={name:e,data:t})}));var l={route:r,matched:c},o=!c;return React.createElement(h.Provider,{value:l},o?React.createElement("div",null,"Not found"):t)}}]),a}(wp.element.Component),x=function(e){var t=e.width,a=e.height;return React.createElement("svg",{id:"e8f68bdd-4984-4f2e-95b7-7fc8ec281257","data-name":"Layer 1",width:t,height:a,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 918.14 765.54"},React.createElement("defs",null,React.createElement("linearGradient",{id:"27aa7b70-b106-4a00-be67-693c8380e41d",x1:"397.74",y1:"717.25",x2:"397.74",y2:"86.11",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:"0","stop-color":"gray","stop-opacity":"0.25"}),React.createElement("stop",{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}),React.createElement("stop",{offset:"1","stop-color":"gray","stop-opacity":"0.1"})),React.createElement("linearGradient",{id:"46a816da-c484-41ec-8a6f-fbf14454d910",x1:"288.88",y1:"378.44",x2:"288.88",y2:"209.65",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"32b634d8-28f1-48d9-a868-f602a2cad942",x1:"288.88",y1:"328.29",x2:"288.88",y2:"223.1",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba","data-name":"<Rectangle>",x:"354.51",y:"291.55",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"38f1cb81-8fac-4205-a0ff-a33ac00d354c",x1:"288.88",y1:"594.94",x2:"288.88",y2:"426.14",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"6fc01aaf-135e-403e-a209-43b2a4fe59f1",x1:"288.88",y1:"544.79",x2:"288.88",y2:"439.6",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"79ce363a-d134-40e4-9f82-b96d04a36978",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"5b44e697-61fe-43bd-9a58-5f3e41301748","data-name":"<Rectangle>",x:"354.51",y:"508.05",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"54803c44-522d-4b9e-9a34-f1f7b43e8483",x1:"671.57",y1:"760.34",x2:"671.57",y2:"129.2",gradientTransform:"translate(1109.43 -194.1) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"089a6a47-adaa-499b-aefb-cd6464b62fb8",x1:"670.96",y1:"553.63",x2:"670.96",y2:"387.28",gradientTransform:"translate(1129.51 -168.41) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"fd8d88e0-7826-450d-9e0b-001d1be709c2",x1:"637.66",y1:"754.12",x2:"637.66",y2:"601.05",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"8d1793c5-b76e-44e2-a52e-569460402331",x1:"778.37",y1:"673.86",x2:"778.37",y2:"569.13",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"4745700d-8097-45ff-9f71-625443fc4ad8",x1:"778.37",y1:"774.41",x2:"778.37",y2:"713.66",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"})),React.createElement("title",null,"secure data"),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"162.9",y:"86.11",width:"469.69",height:"631.14",fill:"url(#27aa7b70-b106-4a00-be67-693c8380e41d)"})),React.createElement("rect",{x:"169.02",y:"94.67",width:"455.01",height:"609.12",fill:"#f2f2f2"}),React.createElement("rect",{x:"204.49",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"204.49",y:"142.37",width:"156.56",height:"4.89",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"384.29",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"259.8",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"273.25",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"286.7",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"476.29",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"489.75",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"503.2",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"209.65",width:"166.35",height:"168.79",fill:"url(#46a816da-c484-41ec-8a6f-fbf14454d910)"})),React.createElement("rect",{x:"206.76",y:"213.32",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"223.1",width:"152.7",height:"105.19",fill:"url(#32b634d8-28f1-48d9-a868-f602a2cad942)"})),React.createElement("rect",{id:"689f37f3-cc41-448d-b172-63ec123bc985","data-name":"<Rectangle>",x:"213.58",y:"224.32",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)"},React.createElement("polygon",{points:"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18",fill:"#6c63ff",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"239",r:"11.01",fill:"#6c63ff",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"426.14",width:"166.35",height:"168.79",fill:"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)"})),React.createElement("rect",{x:"206.76",y:"429.81",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"439.6",width:"152.7",height:"105.19",fill:"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)"})),React.createElement("rect",{id:"b429ac3a-f8a8-4171-bcce-5b6c002c0714","data-name":"<Rectangle>",x:"213.58",y:"440.82",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#79ce363a-d134-40e4-9f82-b96d04a36978)"},React.createElement("polygon",{points:"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67",fill:"#bdbdbd",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"455.5",r:"11.01",fill:"#bdbdbd",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"349.09",y:"242.63",width:"631.14",height:"469.69",transform:"translate(-74.16 969.06) rotate(-78.76)",fill:"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)"})),React.createElement("rect",{x:"359.37",y:"247.33",width:"609.12",height:"455.01",transform:"translate(-72.16 966.22) rotate(-78.76)",fill:"#fff"}),React.createElement("rect",{x:"523.5",y:"197.22",width:"322.91",height:"4.89",transform:"translate(-88.86 -196.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"433.36",y:"650.7",width:"322.91",height:"4.89",transform:"translate(-2.18 -170.66) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"428.58",y:"671.14",width:"249.52",height:"4.89",transform:"translate(1.01 -162.18) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"424.6",y:"683.47",width:"92.96",height:"4.89",transform:"translate(1.84 -145.91) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"519.57",y:"209.08",width:"161.45",height:"4.89",transform:"translate(-88.17 -180.2) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"512.84",y:"249.31",width:"291.11",height:"4.89",transform:"translate(-79.21 -190.76) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"509.47",y:"255.44",width:"70.94",height:"4.89",transform:"translate(-80.19 -168.52) rotate(11.24)",fill:"#3ad29f",opacity:"0.7"}),React.createElement("rect",{x:"501.56",y:"307.59",width:"322.91",height:"4.89",transform:"translate(-67.76 -190.54) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"575.87",y:"357.6",width:"166.35",height:"289.88",transform:"translate(-103.27 983.74) rotate(-78.76)",fill:"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)"})),React.createElement("rect",{x:"516.06",y:"420.61",width:"286.22",height:"162.68",transform:"translate(-30.42 -186.11) rotate(11.24)",fill:"#fff"}),React.createElement("rect",{x:"496.08",y:"335.18",width:"322.91",height:"4.89",transform:"translate(-62.49 -188.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"547.86",y:"424.02",width:"35.47",height:"118.64",transform:"translate(-35.84 -168.22) rotate(11.24)",fill:"#6c63ff"}),React.createElement("rect",{x:"606.43",y:"475.19",width:"35.47",height:"79.5",transform:"translate(-28.56 -179.03) rotate(11.24)",fill:"#3ad29f"}),React.createElement("rect",{x:"665.23",y:"523.93",width:"35.47",height:"42.81",transform:"translate(-21.5 -189.92) rotate(11.24)",fill:"#f55f44"}),React.createElement("rect",{x:"731.91",y:"492.72",width:"35.47",height:"86.84",transform:"translate(-22.02 -203.09) rotate(11.24)",fill:"#fdd835"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"128.65",y:"645.09",width:"3.67",height:"20.79",fill:"#47e6b1"}),React.createElement("rect",{x:"269.58",y:"712.31",width:"3.67",height:"20.79",transform:"translate(853.2 384.07) rotate(90)",fill:"#47e6b1"})),React.createElement("path",{d:"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z",transform:"translate(-140.93 -67.23)",fill:"#4d8af0",opacity:"0.5"}),React.createElement("path",{d:"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("path",{d:"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("circle",{cx:"337.81",cy:"28.62",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"7.34",cy:"317.46",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"863.76",cy:"120.36",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"822.17",cy:"339.3",r:"7.34",fill:"#4d8af0",opacity:"0.5"}),React.createElement("circle",{cx:"37.68",cy:"145.22",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"853.29",cy:"647.34",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"910.8",cy:"430.97",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("rect",{x:"544.42",y:"601.05",width:"186.48",height:"153.07",fill:"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)"}),React.createElement("path",{d:"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z",transform:"translate(-140.93 -67.23)",fill:"url(#8d1793c5-b76e-44e2-a52e-569460402331)"}),React.createElement("path",{d:"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z",transform:"translate(-140.93 -67.23)",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#6c63ff"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"631.77",width:"182.24",height:"90.07",fill:"#6c63ff"}),React.createElement("path",{d:"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z",transform:"translate(-140.93 -67.23)",fill:"url(#4745700d-8097-45ff-9f71-625443fc4ad8)"}),React.createElement("path",{d:"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z",transform:"translate(-140.93 -67.23)",opacity:"0.2"}))},_=wp.i18n.__,D=wp.components,P=D.Flex,k=D.FlexItem,N=D.FlexBlock,S=function(){return React.createElement(P,{style:{padding:"30px",background:"#fff"}},React.createElement(k,null,React.createElement(x,{width:"250px"})),React.createElement(N,{style:{marginLeft:"20px"}},React.createElement("h1",null,_("Get detailed video insights.","presto-player")),React.createElement("p",null,_("Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.","presto-player")),React.createElement("a",{href:"https://prestoplayer.com",target:"_blank",className:"button button-primary"},_("Learn More","presto-player"))))},C=a(10),F=a(5),T=a(3),I=a.n(T);function M(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?M(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):M(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}wp.i18n.__;var A=wp.apiFetch,V=wp.element.useState,H=wp.compose.createHigherOrderComponent,L=function(){return H((function(e){return function(t){var a=V(!1),n=Object(r.a)(a,2),c=n[0],l=n[1],o=V(1),i=Object(r.a)(o,2),s=i[0],p=i[1],u=V(0),d=Object(r.a)(u,2),f=d[0],m=d[1],b=V(0),h=Object(r.a)(b,2),y=h[0],v=h[1],w=V([]),g=Object(r.a)(w,2),E=g[0],R=g[1],O=V(""),j=Object(r.a)(O,2),x=j[0],_=j[1],D=function(){var e=Object(F.a)(I.a.mark((function e(t){var a,r,n,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,A({path:wp.url.addQueryArgs(a,B({page:s,per_page:5},n)),parse:!1}).then((function(e){var t=e.headers?parseInt(e.headers.get("X-WP-Total")):0,a=e.headers?parseInt(e.headers.get("X-WP-TotalPages")):0;return m(t),v(a),e.json()}));case 5:c=e.sent,R(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&_(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:D,page:s,setPage:p,total:f,setTotal:m,totalPages:y,setTotalPages:v,data:E,setData:R,error:x,setError:_},t))}}),"withDataList")},U=wp.i18n,G=U.__,W=U.sprintf,Z=function(e){var t=(new Date).getTimezoneOffset();return new Date(e.getTime()-60*t*1e3).toISOString().split("T")[0]+"T00:00:00.000Z"},z=wp.components,Y=z.Spinner,Q=z.Flex,X=z.FlexItem,q=function(e){var t=e.height,a=void 0===t?100:t;return React.createElement(Q,{style:{height:"".concat(a,"px")},align:"center",justify:"center"},React.createElement(X,null,React.createElement(Y,null)))},J=wp.i18n.__,$=wp.components,K=$.Card,ee=$.CardBody,te=$.Flex,ae=$.FlexBlock,re=$.Button,ne=$.ButtonGroup,ce=wp.element,le=ce.useState,oe=ce.useEffect,ie=function(e){var t=e.page,a=e.setPage,n=e.perPage,c=e.total,l=e.totalPages,o=le(!1),i=Object(r.a)(o,2),s=i[0],p=i[1],u=le(!1),d=Object(r.a)(u,2),f=d[0],m=d[1],b=le(0),h=Object(r.a)(b,2),y=h[0],v=h[1],w=le(0),g=Object(r.a)(w,2),E=g[0],R=g[1];oe((function(){v(Math.min(n*t,c)),R(n*(t-1)+1)}),[n,t,c]);return oe((function(){p(t-1>0),m(l>=t+1)}),[t,l]),React.createElement(K,{size:"large",className:"presto-card pagination"},React.createElement(ee,{className:"presto-flow"},React.createElement(te,null,React.createElement(ae,null,sprintf(J("Showing %1s to %2s of %3s","presto-player"),E,y,c)),React.createElement(ae,null,React.createElement(te,{justify:"flex-end"},React.createElement(ne,null,React.createElement(re,{isSecondary:!0,disabled:!s,onClick:function(){a(Math.max(t-1,0))}},J("Previous","presto-player")),React.createElement(re,{isSecondary:!0,disabled:!f,onClick:function(){a(Math.min(l,t+1))}},J("Next","presto-player"))))))))},se=wp.i18n.__,pe=wp.element,ue=(pe.useRef,pe.useEffect,pe.useState,wp.components),de=ue.Card,fe=ue.CardBody,me=(ue.Flex,ue.FlexBlock,ue.Button,ue.ButtonGroup,function(e){var t=e.columns,a=e.data,r=e.onRowClick,n=e.title;return a.length?React.createElement(de,{size:"large",className:"presto-card table-card"},React.createElement(fe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("table",{role:"table",className:R()("presto-table",{"is-clickable":r})},React.createElement("thead",{role:"rowgroup"},React.createElement("tr",{role:"row"},t&&t.map((function(e){return React.createElement("th",{key:e.key,role:"columnheader"},e.label)})))),React.createElement("tbody",{role:"rowgroup"},a.map((function(e,a){return React.createElement("tr",{role:"row",key:"row-".concat(a),onClick:function(){return r&&r(e)}},t.map((function(t,r){return React.createElement("td",{role:"cell","data-title":t.label,key:"row-".concat(a,"-").concat(r),"aria-label":t.label},t.render?t.render(e):React.createElement("div",null,t.value(e)))})))})))))):React.createElement(de,{size:"large",className:"presto-card table-card"},React.createElement(fe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("div",{style:{opacity:.65}},se("No data available.","presto-player"))))}),be=wp.i18n.__,he=wp.element,ye=(he.useEffect,he.useState,wp.components),ve=ye.Card,we=ye.CardBody,ge=function(e){var t=e.perPage,a=void 0===t?10:t,r=e.title,n=e.page,c=e.setPage,l=e.loading,o=e.total,i=e.totalPages,s=e.columns,p=e.data,u=e.onSelect;return l?React.createElement(ve,null,React.createElement(q,null)):null!=p&&p.length?React.createElement("div",{className:"datatable"},React.createElement(me,{data:p,columns:s,perPage:a,onRowClick:u,title:r}),!!o&&React.createElement(ie,{page:n,setPage:c,perPage:a,total:o,totalPages:i})):React.createElement(ve,{size:"large",className:"presto-card"},React.createElement(we,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},r),React.createElement("div",{style:{opacity:.65}},be("No data available.","presto-player"))))};function Ee(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ee(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe=wp.i18n.__,je=wp.element.useEffect,xe=(0,wp.compose.compose)([L()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate;je((function(){i({endpoint:"/presto-player/v1/analytics/top-users",params:Re(Re({per_page:5},s?{start:Z(s)}:{}),p?{end:Z(p)}:{})})}),[a,s,p]);var u=[{key:"name",label:Oe("Name","presto-player"),value:function(e){var t;return null==e||null===(t=e.user)||void 0===t?void 0:t.name}},{key:"total_view",label:Oe("Total View","presto-player"),value:function(e){var t,a;return null==e||null===(t=e.stats)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.data}},{key:"avg_view_time",label:Oe("Avg View Time","presto-player"),render:function(e){var t,a;return React.createElement("div",{className:"presto-badge"},null==e||null===(t=e.stats)||void 0===t||null===(a=t[1])||void 0===a?void 0:a.data)}}];return o?{error:o}:React.createElement(ge,{title:Oe("Top Users","presto-player"),page:a,perPage:5,setPage:r,loading:t,total:n,totalPages:c,columns:u,data:l,onSelect:function(e){var t,a;return a=null==e||null===(t=e.user)||void 0===t?void 0:t.id,void b.push("#/user/".concat(a))}})}));function _e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function De(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Pe=wp.i18n.__,ke=wp.element.useEffect,Ne=(0,wp.compose.compose)([L()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate,u=e.userId;ke((function(){i({endpoint:"/presto-player/v1/analytics/top-videos",params:De(De(De({per_page:10},s?{start:Z(s)}:{}),p?{end:Z(p)}:{}),u?{user_id:u}:{})})}),[a,s,p]);var d=[{key:"name",label:Pe("Name","presto-player"),render:function(e){return React.createElement("h3",{style:{marginBottom:0,wordBreak:"break-all"}},e.video.title?e.video.title:Pe("Untitled","presto-player"))}},{key:"total_view",label:Pe("Total View","presto-player"),value:function(e){return e.stats[0].data}},{key:"avg_view_time",label:Pe("Avg View Time","presto-player"),render:function(e){return React.createElement("div",{className:"presto-badge"},e.stats[1].data)}},{key:"view_more",label:"",render:function(e){return React.createElement("span",{style:{color:"var(--wp-admin-theme-color, #007cba)"}},Pe("View Details","presto-player")," →")}}];return o?{error:o}:React.createElement(ge,{title:Pe("Top Videos","presto-player"),perPage:10,page:a,setPage:r,loading:t,total:n,totalPages:c,columns:d,data:l,onSelect:function(e){var t,a;a=null==e||null===(t=e.video)||void 0===t?void 0:t.id,b.push("#/video/".concat(a))}})})),Se=wp.apiFetch;Se.use(Se.createNonceMiddleware(prestoPlayer.nonce)),Se.use(Se.createRootURLMiddleware(prestoPlayer.root+prestoPlayer.prestoVersionString));var Ce=Se,Fe=a(9),Te=a.n(Fe);function Ie(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Me(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ie(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Be,Ae=wp.i18n,Ve=Ae.__,He=Ae.sprintf,Le=wp.components,Ue=(Le.Card,Le.CardBody),Ge=wp.element,We=Ge.useState,Ze=Ge.useEffect,ze=(Ge.useRef,function(e){var t=We(!0),a=Object(r.a)(t,2),n=a[0],c=a[1],l=We(0),o=Object(r.a)(l,2),i=o[0],s=o[1],p=e.startDate,u=e.endDate,d=We([{name:"Views",data:[]}]),f=Object(r.a)(d,2),m=f[0],b=f[1],h={options:{chart:{toolbar:{show:!1}},yaxis:{min:0,labels:{formatter:function(e){return e<1?0:Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e).toFixed(0)}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(u).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};Ze((function(){y()}),[e]);var y=function(){c(!0),Ce({path:"/presto-player/v1/analytics/views?"+jQuery.param(Me(Me({},p?{start:Z(p)}:{}),u?{end:Z(u)}:{})),parse:!1}).then(function(){var e=Object(F.a)(I.a.mark((function e(t){var a,r;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t.headers&&t.headers.get("X-WP-Total")),e.next=3,t.json();case 3:a=e.sent,r=[],a.length&&a.forEach((function(e){r.push({x:e.date_time,y:e.total})})),b([{name:"Views",data:r}]);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return n?React.createElement(Ue,null,React.createElement(q,null)):React.createElement(Ue,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},He(Ve("%d Unique Views","presto-player"),i)),React.createElement(Te.a,{options:h.options,series:m,type:"area",height:280}))}),Ye=wp.i18n,Qe=Ye.__,Xe=Ye.sprintf,qe=wp.components,Je=(qe.Card,qe.CardBody),$e=wp.element,Ke=$e.useState,et=$e.useEffect,tt=($e.useRef,function(e){var t=Ke(!0),a=Object(r.a)(t,2),n=a[0],c=a[1],l=Ke(0),o=Object(r.a)(l,2),i=o[0],s=o[1],p=e.startDate,u=e.endDate,d=Ke([{name:"Views",data:[]}]),f=Object(r.a)(d,2),m=f[0],b=f[1],h={options:{chart:{toolbar:{show:!1}},yaxis:{labels:{formatter:function(e){return Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k min":(Math.sign(e)*Math.abs(e)).toFixed(1)+"min"}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(u).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};et((function(){R()}),[e]);var y,v,w,g,E,R=function(){c(!0),Ce({path:"/presto-player/v1/analytics/watch-time?"+jQuery.param({start:Z(p),end:Z(u)}),parse:!1}).then(function(){var e=Object(F.a)(I.a.mark((function e(t){var a,r,n,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:a=e.sent,r=a.data,n=a.average,s(parseFloat(n)),c=[],r.length&&r.forEach((function(e){c.push({x:e.date_time,y:(e.total/60).toFixed(2)})})),b([{name:"Watch Time",data:c}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return n?React.createElement(Je,null,React.createElement(q,null)):React.createElement(Je,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Xe(Qe("%s average watch time","presto-player"),(y=i,v=Math.floor(y/60/60),w=Math.floor(y/60)-60*v,g=y%60,E="",v&&(E+=W(G("%d hours","presto-player"),v)+", "),w&&(E+=W(G("%d minutes","presto-player"),w)+" "),(v||w)&&g&&(E+=G("and","presto-player")+" "),E+=W(G("%d seconds","presto-player"),g)))),React.createElement(Te.a,{options:h.options,series:m,type:"area",height:280}))}),at=wp.i18n.__,rt=wp.components,nt=rt.Panel,ct=rt.TabPanel,lt=function(e){var t=e.startDate,a=e.endDate;return React.createElement(nt,null,React.createElement(ct,{className:"presto-module-tabs",onSelect:function(){},tabs:[{name:"views",title:at("Views","presto-player")},{name:"watch",title:at("Watch Time","presto-player")}]},(function(e){switch(e.name){case"views":return React.createElement(ze,{startDate:t,endDate:a});case"watch":return React.createElement(tt,{startDate:t,endDate:a});default:return React.createElement(React.Fragment,null,"Not Found")}})))},ot=a(25),it=a.n(ot),st=(a(43),wp.i18n.__),pt=wp.element,ut=pt.useRef,dt=pt.useEffect,ft=pt.useState,mt=function(e){var t=e.startDate,a=e.setStartDate,n=e.endDate,c=e.setEndDate,l=ut(),o=ft(25),i=Object(r.a)(o,2),s=i[0],p=i[1];return dt((function(){new it.a({element:null==l?void 0:l.current,singleMode:!1,format:"MMMM D YYYY",autoApply:!1,plugins:["ranges"],maxDate:new Date,numberOfMonths:2,buttonText:{apply:st("Apply","presto-player"),cancel:st("Cancel","presto-player")},dropdowns:{minYear:1990,maxYear:null,months:!0,years:!0},setup:function(e){e.setDateRange(t,n),e.on("button:apply",(function(e,t){a(e.dateInstance),c(t.dateInstance),p(l.current.value.length)}))}})}),[l]),React.createElement("div",{className:"component-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("input",{className:"components-text-control__input presto-settings__date-select",ref:l,size:s})))},bt=a(26),ht=a.n(bt),yt=a(27),vt=a(0),wt=wp.i18n.__,gt=wp.components,Et=gt.Flex,Rt=gt.FlexBlock,Ot=gt.FlexItem,jt=wp.element,xt=jt.useState,_t=jt.useEffect,Dt=function(e){var t=e.startDate,a=e.endDate,n=e.setStartDate,c=e.setEndDate,l=xt(!1),o=Object(r.a)(l,2),i=o[0],s=o[1];return _t((function(){ht()({path:"/wp/v2/settings"}).then((function(e){var t;!1===(null==e||null===(t=e.presto_player_analytics)||void 0===t?void 0:t.enable)&&s(!0)}))}),[]),Object(vt.b)(React.Fragment,null,i?Object(vt.b)(Pt,null):"",Object(vt.b)(Et,null,Object(vt.b)(Rt,null,Object(vt.b)("h1",null,wt("Analytics","presto-player"))),Object(vt.b)(Ot,null,Object(vt.b)(mt,{startDate:t,setStartDate:n,endDate:a,setEndDate:c}))),Object(vt.b)("div",{className:"presto-flow"},Object(vt.b)("div",{className:"presto-dashboard"},Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item is-large"},Object(vt.b)(lt,{startDate:t,endDate:a})),Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(xe,{startDate:t,endDate:a}))),Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item is-large"},Object(vt.b)(Ne,{startDate:t,endDate:a}))))))},Pt=function(){return Object(vt.b)(yt.Notice,{css:Object(vt.a)(Be||(Be=Object(C.a)(["\n margin: 0 0 1em 0 !important;\n "]))),status:"warning",isDismissible:!1},Object(vt.b)("p",null,wt("Analytics are currently disabled. To collect analytics, turn them on in your settings page.","presto-player")))},kt=wp.components,Nt=kt.Card,St=kt.CardBody,Ct=function(e){var t=e.loading,a=e.title,r=e.value,n=e.label;return t?React.createElement(Nt,null,React.createElement(St,null,React.createElement(q,null))):React.createElement(Nt,{className:"presto-player__stat-card"},React.createElement(St,null,React.createElement("div",{className:"presto-subtitle"},a),React.createElement("h1",null,r),React.createElement("div",null,n)))};function Ft(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Tt(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ft(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var It,Mt,Bt,At=wp.apiFetch,Vt=wp.element.useState,Ht=wp.compose.createHigherOrderComponent,Lt=function(){return Ht((function(e){return function(t){var a=Vt(!1),n=Object(r.a)(a,2),c=n[0],l=n[1],o=Vt([]),i=Object(r.a)(o,2),s=i[0],p=i[1],u=Vt(""),d=Object(r.a)(u,2),f=d[0],m=d[1],b=function(){var e=Object(F.a)(I.a.mark((function e(t){var a,r,n,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,At({path:wp.url.addQueryArgs(a,Tt({},n))});case 5:c=e.sent,p(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&m(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:b,stat:s,setStat:p,error:f,setError:m},t))}}),"withStat")},Ut=wp.i18n.__,Gt=wp.compose.compose,Wt=wp.element.useEffect,Zt=Gt([Lt()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Wt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseInt(null==n?void 0:n.view),title:Ut("Total Views","presto-player")})})),zt=wp.i18n.__,Yt=wp.compose.compose,Qt=wp.element.useEffect,Xt=Yt([Lt()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Qt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:zt("Average Watch Time","presto-player"),label:zt("seconds","presto-player")})})),qt=wp.i18n.__,Jt=wp.compose.compose,$t=wp.element.useEffect,Kt=Jt([Lt()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return $t((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:qt("Total Watch Time","presto-player"),label:qt("seconds","presto-player")})})),ea=wp.i18n.__,ta=wp.components,aa=ta.Flex,ra=ta.FlexBlock,na=ta.FlexItem,ca=ta.Spinner,la=ta.Button,oa=wp.element,ia=oa.useEffect,sa=oa.useState,pa=wp.apiFetch,ua=function(e){var t,a,n,c,l=e.route,o=e.startDate,i=e.endDate,s=e.setStartDate,p=e.setEndDate,u=sa(!0),d=Object(r.a)(u,2),f=d[0],m=d[1],h=sa({}),y=Object(r.a)(h,2),v=y[0],w=y[1],g=sa(""),E=Object(r.a)(g,2),R=E[0],O=E[1],j=function(){var e=Object(F.a)(I.a.mark((function e(){var t,a;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,pa({url:"/wp-json/wp/v2/users/".concat(null==l||null===(t=l.params)||void 0===t?void 0:t.id,"?context=edit")});case 4:a=e.sent,w(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&O("User Not Found");case 11:return e.prev=11,m(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return ia((function(){j()}),[]),R?Object(vt.b)("div",{className:"presto-flow"},Object(vt.b)(aa,null,Object(vt.b)(ra,null,Object(vt.b)("h2",null,R)))):Object(vt.b)("div",{className:"presto-flow"},Object(vt.b)(aa,null,Object(vt.b)(ra,null,Object(vt.b)(la,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ea("Back to Dashboard","presto-player")))),Object(vt.b)(aa,{wrap:!0},Object(vt.b)(ra,null,f?Object(vt.b)(ca,null):Object(vt.b)("div",{css:Object(vt.a)(It||(It=Object(C.a)(["\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n "])))},Object(vt.b)("div",null,Object(vt.b)("h1",{className:"presto-dashboard__title"},null==v?void 0:v.name),Object(vt.b)("p",{css:Object(vt.a)(Mt||(Mt=Object(C.a)(["\n margin-top: -10px;\n opacity: 0.65;\n "])))},null==v?void 0:v.email)),!!v.id&&Object(vt.b)("div",{className:"presto__edit-user-button",css:Object(vt.a)(Bt||(Bt=Object(C.a)(["\n margin: 0 20px;\n "])))},Object(vt.b)(la,{href:"/wp-admin/user-edit.php?user_id=".concat(null==v?void 0:v.id),isSecondary:!0,isSmall:!0},ea("View Profile","presto-player")," →")))),Object(vt.b)(na,null,Object(vt.b)(mt,{startDate:o,setStartDate:s,endDate:i,setEndDate:p}))),Object(vt.b)("div",{className:"presto-dashboard presto-flow"},Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(Zt,{userId:null==l||null===(t=l.params)||void 0===t?void 0:t.id,startDate:o,endDate:i})),Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(Xt,{userId:null==l||null===(a=l.params)||void 0===a?void 0:a.id,startDate:o,endDate:i})),Object(vt.b)("div",{className:"presto-dashboard__item"},Object(vt.b)(Kt,{userId:null==l||null===(n=l.params)||void 0===n?void 0:n.id,startDate:o,endDate:i}))),Object(vt.b)("div",{className:"presto-dashboard__row"},Object(vt.b)("div",{className:"presto-dashboard__item is-large"},Object(vt.b)(Ne,{startDate:o,endDate:i,userId:null==l||null===(c=l.params)||void 0===c?void 0:c.id})))))},da=wp.i18n.__,fa=wp.compose.compose,ma=wp.element.useEffect,ba=fa([Lt()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return ma((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseInt(n),title:da("Average Watch Time","presto-player"),label:da("seconds","presto-player")})})),ha=wp.i18n,ya=ha.__,va=(ha.sprintf,wp.components),wa=va.Card,ga=va.CardBody,Ea=wp.element,Ra=Ea.useState,Oa=Ea.useEffect,ja=(Ea.useRef,function(e){var t=e.video_id,a=e.startDate,n=e.endDate,c=Ra(!0),l=Object(r.a)(c,2),o=l[0],i=l[1],s=Ra([{name:"Views",data:[]}]),p=Object(r.a)(s,2),u=p[0],d=p[1];Oa((function(){i(!0),Ce({path:wp.url.addQueryArgs("/presto-player/v1/analytics/video/".concat(t,"/timeline"),{start:Z(a),end:Z(n)})}).then((function(e){var t=[];e.length&&e.forEach((function(e){t.push({x:e.watch_time,y:e.total})})),d([{name:"Viewers",data:t}])})).catch((function(e){console.error(e)})).finally((function(){i(!1)}))}),[a,n]);var f={options:{chart:{toolbar:{show:!1}},tickAmount:1,yaxis:{labels:{formatter:function(e){return parseInt(e)}}},xaxis:{labels:{formatter:function(e){return t=e,t=1e3*parseInt(t||0),new Date(t).toISOString().substr(11,8);var t}}},colors:["#7c3aed"],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};return o?React.createElement(wa,null,React.createElement(ga,null,React.createElement(q,null))):React.createElement(wa,null,React.createElement(ga,null,React.createElement("div",{className:"presto-card__title"},ya("Audience Retention","presto-player")),React.createElement(Te.a,{options:f.options,series:u,type:"area",height:280})))}),xa=wp.i18n.__,_a=wp.compose.compose,Da=wp.element.useEffect,Pa=_a([Lt()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Da((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(Ct,{loading:l,value:parseInt(n),title:xa("Unique Views","presto-player")})})),ka=a(28),Na=a(29),Sa=a(32),Ca=a(33),Fa=a(17),Ta=a(11),Ia=a.n(Ta),Ma=function(e){return e.replace(/([A-Z])/g,(function(e){return"-".concat(e[0].toLowerCase())}))},Ba=a(30),Aa=function(e,t,a){var r=t.className||t.class,n=a.className||a.class,c=La(e),l=La(r?r.split(" "):[]),o=La(n?n.split(" "):[]),i=[];return c.forEach((function(e){l.has(e)?(i.push(e),l.delete(e)):o.has(e)||i.push(e)})),l.forEach((function(e){return i.push(e)})),i.join(" ")},Va=function(e){if("undefined"==typeof document)return!0;var t="on"+e,a=t in document;if(!a){var r=document.createElement("div");r.setAttribute(t,"return;"),a="function"==typeof r[t]}return a},Ha=function(e,t,a){var r=e.__events||(e.__events={}),n=r[t];n&&e.removeEventListener(t,n),e.addEventListener(t,r[t]=function(e){a&&a.call(this,e)})},La=function(e){var t=new Map;return e.forEach((function(e){return t.set(e,e)})),t},Ua=function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)},Ga=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){t.forEach((function(t){Ua(t,e)}))}};function Wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(Fa.a)(e);if(t){var n=Object(Fa.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(Ca.a)(this,a)}}var Za=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a},za=function(e,t,a,r){void 0!==r&&r();var n=e.toLowerCase().split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(""),c=function(t){Object(Sa.a)(c,t);var r=Wa(c);function c(e){var t;return Object(ka.a)(this,c),(t=r.call(this,e)).setComponentElRef=function(e){t.componentEl=e},t}return Object(Na.a)(c,[{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(e){!function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Element){var r=Aa(e.classList,t,a);""!==r&&(e.className=r),Object.keys(t).forEach((function(a){if("children"!==a&&"style"!==a&&"ref"!==a&&"class"!==a&&"className"!==a&&"forwardedRef"!==a)if(0===a.indexOf("on")&&a[2]===a[2].toUpperCase()){var r=a.substring(2),n=r[0].toLowerCase()+r.substring(1);Va(n)||Ha(e,n,t[a])}else{e[a]=t[a],"string"===Object(Ba.a)(t[a])&&e.setAttribute(Ma(a),t[a])}}))}}(this.componentEl,this.props,e)}},{key:"render",value:function(){var t=this.props,r=t.children,n=t.forwardedRef,c=t.style,l=(t.className,t.ref,Za(t,["children","forwardedRef","style","className","ref"])),o=Object.keys(l).reduce((function(e,t){if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){var a=t.substring(2).toLowerCase();"undefined"!=typeof document&&Va(a)&&(e[t]=l[t])}else e[t]=l[t];return e}),{});a&&(o=a(this.props,o));var i=Object.assign(Object.assign({},o),{ref:Ga(n,this.setComponentElRef),style:c});return Ia.a.createElement(e,i,r)}}],[{key:"displayName",get:function(){return n}}]),c}(Ia.a.Component);return t&&(c.contextType=t),function(e,t){var a=function(t,a){return Ia.a.createElement(e,Object.assign({},t,{forwardedRef:a}))};return a.displayName=t,Ia.a.forwardRef(a)}(c,n)},Ya=za("presto-player"),Qa=wp.element;Qa.useRef,Qa.useEffect;function Xa(e){if(e){if(e.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/))return"youtube";if(e.match(/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([‌​0-9]{6,11})[?]?.*/))return"vimeo";if(e.indexOf("https://vz-")>-1&&e.indexOf("b-cdn.net")>-1)return"bunny";if(e.indexOf(".mp3")>-1)return"audio"}return"self-hosted"}function qa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Ja(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):qa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var $a=wp.data.useSelect,Ka=function(e){var t,a,r,n=e.src,c=e.classes,l=e.preset,o=e.branding,i=e.attributes,s=e.adminPreview,p=e.currentTime,u=e.preload,d=void 0===u?"metadata":u,f=e.overlays,m=e.type,b=i.chapters,h=i.mutedOverlay,y=i.mutedPreview,v=$a((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.youtube()})),w=$a((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.playerCSS()}));return React.createElement("div",{className:"wp-block-video presto-block-video",style:"audio"===m?Ja(Ja(Ja({"--presto-player-border-radius":"".concat(null==l?void 0:l.border_radius,"px")},null!=l&&l.background_color?{"--plyr-audio-controls-background":l.background_color}:{"--plyr-audio-controls-background":null==o?void 0:o.color}),null!=l&&l.control_color?{"--plyr-audio-control-color":l.control_color,"--plyr-range-thumb-background":l.control_color,"--plyr-range-fill-background":l.control_color,"--plyr-audio-progress-buffered-background":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=e.replace("#","");3===a.length&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);var r=parseInt(a.substring(0,2),16),n=parseInt(a.substring(2,4),16),c=parseInt(a.substring(4,6),16);return t>1&&t<=100&&(t/=100),"rgba("+r+","+n+","+c+","+t+")"}(l.control_color||(null==o?void 0:o.color)||"#00b3ff",.5)}:{"--plyr-audio-control-color":"#ffffff","--plyr-range-thumb-background":"#ffffff","--plyr-range-fill-background":"#ffffff"}),{},{"--plyr-range-thumb-shadow":"0px"}):Ja(Ja(Ja({"--presto-player-border-radius":"".concat(null==l?void 0:l.border_radius,"px")},null!=l&&l.caption_background?{"--plyr-captions-background":l.caption_background}:{}),null!=o&&o.color?{"--plyr-color-main":o.color}:{}),{},{"--presto-player-email-border-radius":"".concat((null==l||null===(t=l.email_collection)||void 0===t?void 0:t.border_radius)||0,"px"),"--presto-player-logo-width":"".concat((null==o?void 0:o.logo_width)||75,"px")})},React.createElement(Ya,{src:n,css:w,classes:c,currentTime:p,overlays:f,isAdmin:!0,preload:d,preset:l,bunny:{thumbnail:null==i?void 0:i.previewThumbnail,preview:null==i?void 0:i.preview},youtube:{channelId:null==v?void 0:v.channel_id},tracks:!(null==l||!l.captions)&&[{kind:"captions",label:"English",srclang:"en",src:"/path/to/captions.en.vtt",default:!0}],branding:o,chapters:b,blockAttributes:i,poster:i.poster,provider:"audio"===m?"audio":Xa(n),mediaTitle:i.title},React.createElement("div",{slot:"player-end"},(null==y?void 0:y.enabled)&&(null==h?void 0:h.enabled)&&React.createElement("div",{className:"presto-player__overlay is-image",style:{position:"absolute",width:"".concat((null==h?void 0:h.width)||100,"%"),left:"".concat(100*((null==h||null===(a=h.focalPoint)||void 0===a?void 0:a.x)||.5),"%"),top:"".concat(100*((null==h||null===(r=h.focalPoint)||void 0===r?void 0:r.y)||.5),"%")}},React.createElement("img",{src:null==h?void 0:h.src,style:{transform:"translateX(-50%) translateY(-50%)"}})),s)))};function er(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function tr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?er(Object(a),!0).forEach((function(t){Object(p.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):er(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ar=wp.i18n.__,rr=wp.components,nr=rr.Flex,cr=rr.FlexBlock,lr=rr.FlexItem,or=rr.Spinner,ir=rr.Button,sr=rr.TextControl,pr=wp.element,ur=pr.useEffect,dr=pr.useState,fr=wp.apiFetch,mr=function(e){var t,a,n,c=e.route,l=e.startDate,o=e.endDate,i=e.setStartDate,s=e.setEndDate,p=dr(!0),u=Object(r.a)(p,2),d=u[0],f=u[1],m=dr({}),h=Object(r.a)(m,2),y=h[0],v=h[1],w=dr(""),g=Object(r.a)(w,2),E=g[0],R=g[1],O=dr(null),j=Object(r.a)(O,2),x=j[0],_=j[1],D=dr(!1),P=Object(r.a)(D,2),k=P[0],N=P[1],S=function(){var e=Object(F.a)(I.a.mark((function e(){var t,a,r,n;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,fr({url:"".concat(null===(t=prestoPlayer)||void 0===t?void 0:t.root).concat(null===(a=prestoPlayer)||void 0===a?void 0:a.prestoVersionString,"videos/").concat(null==c||null===(r=c.params)||void 0===r?void 0:r.id)});case 4:n=e.sent,v(n),_(null==n?void 0:n.title),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&R("Video Not Found");case 12:return e.prev=12,f(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=Object(F.a)(I.a.mark((function e(){var t,a;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New Video title ".concat(x)),f(!0),e.prev=2,t=tr(tr({},y),{title:x}),e.next=6,wp.apiFetch({method:"POST",url:wp.url.addQueryArgs("".concat(prestoPlayer.root).concat(prestoPlayer.prestoVersionString,"videos/").concat(y.id),{_method:"PUT"}),data:t});case 6:if(a=e.sent){e.next=9;break}throw genericError;case 9:N(!1),v(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),R(null!==e.t0&&void 0!==e.t0&&e.t0.message?e.t0.message:genericError);case 16:return e.prev=16,f(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(){_(null==y?void 0:y.title),N(!1)};return ur((function(){S()}),[]),E?React.createElement("div",{className:"presto-flow"},React.createElement(nr,null,React.createElement(cr,null,React.createElement("h2",null,E)))):React.createElement("div",{className:"presto-flow"},React.createElement(nr,null,React.createElement(cr,null,React.createElement(ir,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ar("Back to Dashboard","presto-player")))),React.createElement(nr,{wrap:!0},React.createElement(cr,null,d?React.createElement(or,null):k?React.createElement("div",{className:"presto-inline-edit presto-inline-edit--editing"},React.createElement(sr,{className:"presto-inline-edit__input",type:"text",value:x,onChange:function(e){return _(e)}}),React.createElement(ir,{className:"presto-inline-edit__button",isPrimary:!0,onClick:C}," ","Save"," "),React.createElement(ir,{className:"presto-inline-edit__button",isSecondary:!0,onClick:T}," ","Cancel"," ")):React.createElement("div",{className:"presto-inline-edit"},React.createElement("h1",{className:"presto-dashboard__title presto-inline-edit__text"},null==y?void 0:y.title),React.createElement("button",{className:"presto-inline-edit__edit",onClick:function(){return N(!0)}},React.createElement("span",{className:"dashicon dashicons dashicons-edit"})))),React.createElement(lr,null,React.createElement(mt,{startDate:l,setStartDate:i,endDate:o,setEndDate:s}))),React.createElement("div",{className:"presto-dashboard presto-flow"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(Pa,{video_id:null==c||null===(t=c.params)||void 0===t?void 0:t.id,startDate:l,endDate:o})),React.createElement("div",{className:"presto-dashboard__item"},!!Object.keys(y||{}).length&&React.createElement(Ka,{src:null==y?void 0:y.src,attributes:{},type:null==y?void 0:y.type,preset:{"play-large":!0,play:!0,progress:!0,"current-time":!0}})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(ba,{video_id:null==c||null===(a=c.params)||void 0===a?void 0:a.id,startDate:l,endDate:o}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ja,{video_id:null==c||null===(n=c.params)||void 0===n?void 0:n.id,startDate:l,endDate:o})))))},br={dashboard:{path:"/"},video:{path:"/video/:id"},user:{path:"/user/:id"}},hr=wp.element.useState,yr=function(){var e,t=function(){window.scrollTo(0,0)},a=hr(new Date(Date.now()-6048e5)),n=Object(r.a)(a,2),c=n[0],l=n[1],o=hr(new Date),i=Object(r.a)(o,2),s=i[0],p=i[1];return null!==(e=prestoPlayer)&&void 0!==e&&e.isPremium?React.createElement("div",{className:"presto-dashboard__content"},React.createElement(j,{routes:br},React.createElement(g,{path:br.dashboard.path,onRoute:t},React.createElement(Dt,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:br.video.path,onRoute:t},React.createElement(mr,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:br.user.path,onRoute:t},React.createElement(ua,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})))):React.createElement("div",{className:"presto-dashboard__content"},React.createElement(S,null))};(0,wp.element.render)(React.createElement(yr,null),document.getElementById("presto-analytics-page"))}},[[34,1,2]]]);
19
+ //# sourceMappingURL=admin-32e25baa.js.map
dist/analytics/admin-32e25baa.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["webpack:///external [\"wp\",\"apiFetch\"]","webpack:///external [\"wp\",\"components\"]","webpack:///./src/router/utils.js","webpack:///./src/router/context.js","webpack:///./src/router/route.js","webpack:///./src/router/link.js","webpack:///./src/router/index.js","webpack:///./src/admin/analytics/pages/illustration.js","webpack:///./src/admin/analytics/pages/AnalyticsUpgrade.js","webpack:///./src/admin/analytics/hocs/withDataList.js","webpack:///./src/admin/analytics/util.js","webpack:///./src/admin/settings/components/Loading.js","webpack:///./src/admin/ui/Pagination.js","webpack:///./src/admin/ui/Table.js","webpack:///./src/admin/analytics/components/DataTable.js","webpack:///./src/admin/analytics/components/TopUsers.js","webpack:///./src/admin/analytics/components/TopVideos.js","webpack:///./src/shared/services/fetch.js","webpack:///./src/admin/analytics/components/TotalViewsGraph.js","webpack:///./src/admin/analytics/components/TotalWatchGraph.js","webpack:///./src/admin/analytics/components/OverviewPanel.js","webpack:///./src/admin/analytics/components/DatePicker.js","webpack:///./src/admin/analytics/pages/Dashboard.js","webpack:///./src/admin/ui/StatCard.js","webpack:///./src/admin/analytics/hocs/withStat.js","webpack:///./src/admin/analytics/components/TotalVideoViewsByUser.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTimeByUser.js","webpack:///./src/admin/analytics/components/VideoTotalWatchTimeByUser.js","webpack:///./src/admin/analytics/pages/User.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTime.js","webpack:///./src/admin/analytics/components/VideoTimeline.js","webpack:///./src/admin/analytics/components/VideoViews.js","webpack:///../../../src/components/react-component-lib/utils/case.ts","webpack:///../../../src/components/react-component-lib/utils/attachProps.ts","webpack:///../../../src/components/react-component-lib/utils/index.tsx","webpack:///../../src/components/react-component-lib/createComponent.tsx","webpack:///../src/components/index.ts","webpack:///./src/admin/blocks/util.js","webpack:///./src/admin/blocks/shared/Player.js","webpack:///./src/admin/analytics/pages/Video.js","webpack:///./src/admin/analytics/routes.js","webpack:///./src/admin/analytics/App.js","webpack:///./src/admin/analytics/index.js"],"names":["module","exports","window","locationToRoute","location","path","pathname","hash","query","qs","parse","search","history","createBrowserHistory","RouterContext","wp","element","createContext","route","useContext","prev","Route","onRoute","children","matched","match","checkMatch","substr","cloneElement","Router","props","setState","routes","Object","keys","map","key","unlisten","listen","handleRouteChange","state","defaultRoute","this","NotFound","push","forEach","name","isMatched","data","routerContextValue","is404","Provider","value","Component","width","height","id","data-name","xmlns","xmlnsXlink","viewBox","x1","y1","x2","y2","gradientUnits","offset","stop-color","stop-opacity","xlinkHref","transform","x","y","fill","gradientTransform","opacity","clip-path","points","cx","cy","r","d","__","i18n","components","Flex","FlexItem","FlexBlock","style","padding","background","marginLeft","href","target","className","apiFetch","useState","createHigherOrderComponent","compose","WrappedComponent","loading","setLoading","page","setPage","total","setTotal","totalPages","setTotalPages","setData","error","setError","fetchData","a","endpoint","params","url","addQueryArgs","per_page","then","res","headers","parseInt","get","json","responseData","console","message","sprintf","convertDateTimeToAbsoluteDate","dateTime","Date","getTimezoneOffset","getTime","toISOString","split","Spinner","align","justify","Card","CardBody","Button","ButtonGroup","useEffect","perPage","hasPrevious","setHasPrevious","hasNext","setHasNext","end","setEnd","start","setStart","Math","min","size","isSecondary","disabled","onClick","max","useRef","columns","onRowClick","title","length","role","classNames","column","label","row","rowIndex","columnIndex","data-title","aria-label","render","onSelect","Loading","Table","Pagination","withDataList","startDate","endDate","user","stats","DataTable","userId","user_id","marginBottom","wordBreak","video","color","use","createNonceMiddleware","prestoPlayer","nonce","createRootURLMiddleware","root","prestoVersionString","totalViews","setTotalViews","series","setSeries","chart","options","toolbar","show","yaxis","labels","formatter","num","abs","sign","toFixed","colors","xaxis","type","setHours","dataLabels","enabled","stroke","curve","gradient","shadeIntensity","opacityFrom","opacityTo","stops","fetchViews","jQuery","param","item","date_time","catch","e","finally","averageTime","setAverageTime","fetchMinutes","savedSeconds","hours","minutes","seconds","out","average","parseFloat","floor","Panel","TabPanel","tabs","tab","TotalViewsGraph","TotalWatchGraph","setStartDate","setEndDate","dateRef","inputSize","setInputSize","Litepicker","current","singleMode","format","autoApply","plugins","maxDate","numberOfMonths","buttonText","apply","cancel","dropdowns","minYear","maxYear","months","years","setup","picker","setDateRange","on","dateInstance","ref","noticeStatus","setNoticeStatus","post","presto_player_analytics","enable","DatePicker","OverviewPanel","TopUsers","TopVideos","MyNotice","css","status","isDismissible","stat","setStat","withStat","StatCard","view","User","setUser","getUser","code","wrap","email","isSmall","TotalVideoViewsByUser","VideoAverageWatchTimeByUser","VideoTotalWatchTimeByUser","video_id","watch_time","tickAmount","eventNameSuffix","getProvider","src","indexOf","useSelect","classes","preset","branding","attributes","adminPreview","currentTime","preload","overlays","chapters","mutedOverlay","mutedPreview","youtube","select","playerCSS","border_radius","background_color","control_color","hexCode","hex","replace","substring","g","b","convertHex","caption_background","email_collection","logo_width","PrestoPlayer","isAdmin","bunny","thumbnail","previewThumbnail","preview","channelId","channel_id","tracks","captions","kind","srclang","default","blockAttributes","poster","provider","mediaTitle","slot","position","left","focalPoint","top","TextControl","Video","setVideo","thisName","setThisName","editing","setEditing","getVideo","putVideo","log","method","_method","saved","genericError","cancelEditing","onChange","isPrimary","VideoViews","Player","play","progress","VideoAverageWatchTime","VideoTimeline","dashboard","scrollToTop","scrollTo","now","isPremium","Dashboard","AnalyticsUpgrade","App","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;oHAAcA,EAAOC,QAAUC,OAAW,GAAY,U,iBCAxCF,EAAOC,QAAUC,OAAW,GAAc,Y,oKCCjD,SAASC,EAAgBC,GAE9B,MAAO,CACLC,KAAMD,EAASE,SACfC,KAAMH,EAASG,KACfC,M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M2B,GAAOiW,UAAU5X,KAAMiB,QAAS4W,GAC3C,oBAACI,GAAD,CACEnN,UAAWA,EACXC,QAASA,EACTsE,aAAcA,EACdC,WAAYA,KAGhB,oBAACtO,EAAD,CAAOhB,KAAM2B,GAAO4J,MAAMvL,KAAMiB,QAAS4W,GACvC,oBAAC,GAAD,CACE/M,UAAWA,EACXC,QAASA,EACTsE,aAAcA,EACdC,WAAYA,KAGhB,oBAACtO,EAAD,CAAOhB,KAAM2B,GAAOqJ,KAAKhL,KAAMiB,QAAS4W,GACtC,oBAAC,GAAD,CACE/M,UAAWA,EACXC,QAASA,EACTsE,aAAcA,EACdC,WAAYA,OA9BlB,2BAAK7J,UAAU,6BACb,oBAACyS,EAAD,SCTR1N,EAfmB9J,GAAGC,QAAd6J,QAeD,oBAAC2N,GAAD,MAASC,SAASC,eAAe,4B","file":"analytics/admin-32e25baa.js","sourcesContent":["(function() { module.exports = window[\"wp\"][\"apiFetch\"]; }());","(function() { module.exports = window[\"wp\"][\"components\"]; }());","import qs from \"querystringify\";\nexport function locationToRoute(location) {\n // location comes from the history package\n return {\n path: location.pathname,\n hash: location.hash,\n query: qs.parse(location.search),\n };\n}\n","import { createBrowserHistory } from \"history\";\nimport { locationToRoute } from \"./utils\";\n\nexport const history = createBrowserHistory();\nexport const RouterContext = wp.element.createContext({\n route: locationToRoute(history.location),\n});\n","import { RouterContext } from \"./context\";\nconst { useContext } = wp.element;\nimport { match } from \"path-to-regexp\";\nlet prev = \"\";\n\nexport function Route({ path, onRoute, children }) {\n // Extract route from RouterContext\n const { route } = useContext(RouterContext);\n\n const checkMatch = match(`${path}`);\n const matched = checkMatch(`${route.hash.substr(1)}`);\n\n if (!matched) {\n return null;\n }\n\n if (onRoute) {\n if (prev !== matched.path) {\n onRoute();\n }\n prev = matched.path;\n }\n\n return <div>{wp.element.cloneElement(children, { route: matched })}</div>;\n}\n","const { useContext } = wp.element;\nimport { RouterContext, history } from \"./context\";\nimport classNames from \"classnames\";\nimport { match } from \"path-to-regexp\";\n\nexport function Link(props) {\n const { to, onClick, children, activeClassName } = props;\n const { route } = useContext(RouterContext);\n\n let state = { ...props };\n delete state.activeClassName;\n\n const isActive = () => {\n const checkMatch = match(`${to}`);\n return checkMatch(`${route.hash.substr(1)}`);\n };\n\n const handleClick = (e) => {\n e.preventDefault();\n // Dont' navigate if current path\n if (route.path === to) {\n return;\n }\n // Trigger onClick prop manually\n if (onClick) {\n onClick(e);\n }\n // Use history API to navigate page\n history.push(`#${to}`);\n };\n\n return (\n <a\n {...state}\n className={classNames({ [activeClassName]: isActive() }, props.className)}\n onClick={handleClick}\n >\n {children}\n </a>\n );\n}\n","const { Component } = wp.element;\nimport { locationToRoute } from \"./utils\";\nimport { history, RouterContext } from \"./context\";\nimport { Route } from \"./route\";\nimport { Link } from \"./link\";\nimport { match } from \"path-to-regexp\";\n\nclass Router extends Component {\n constructor(props) {\n super(props);\n\n // Convert our routes into an array for easy 404 checking\n this.routes = Object.keys(props.routes).map(\n (key) => props.routes[key].path\n );\n\n // Listen for path changes from the history API\n this.unlisten = history.listen(this.handleRouteChange);\n\n const route = locationToRoute(history.location);\n\n // Define the initial RouterContext value\n this.state = {\n route,\n defaultRoute: props?.defaultRoute ? `#${props?.defaultRoute}` : \"#/\",\n };\n }\n\n componentWillUnmount() {\n // Stop listening for changes if the Router component unmounts\n this.unlisten();\n }\n\n handleRouteChange = (location) => {\n const route = locationToRoute(location?.location);\n this.setState({ route: route });\n };\n\n render() {\n // Define our variables\n const { children, NotFound } = this.props;\n const { route, defaultRoute } = this.state;\n\n if (!route.hash) {\n history.push(defaultRoute);\n return <div></div>;\n }\n\n let matched = false;\n // match route\n (this.routes || []).forEach((name) => {\n const checkMatch = match(route.hash.substr(1));\n const isMatched = checkMatch(`${route.hash.substr(1)}`);\n if (!isMatched) {\n return;\n }\n matched = {\n name,\n data: isMatched,\n };\n });\n\n const routerContextValue = { route, matched };\n\n // Check if 404 if no route matched\n const is404 = !matched;\n\n return (\n <RouterContext.Provider value={routerContextValue}>\n {is404 ? <div>Not found</div> : children}\n </RouterContext.Provider>\n );\n }\n}\nexport { history, RouterContext, Router, Route, Link };\n","export default ({ width, height }) => {\n return (\n <svg\n id=\"e8f68bdd-4984-4f2e-95b7-7fc8ec281257\"\n data-name=\"Layer 1\"\n width={width}\n height={height}\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 918.14 765.54\"\n >\n <defs>\n <linearGradient\n id=\"27aa7b70-b106-4a00-be67-693c8380e41d\"\n x1=\"397.74\"\n y1=\"717.25\"\n x2=\"397.74\"\n y2=\"86.11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stop-color=\"gray\" stop-opacity=\"0.25\" />\n <stop offset=\"0.54\" stop-color=\"gray\" stop-opacity=\"0.12\" />\n <stop offset=\"1\" stop-color=\"gray\" stop-opacity=\"0.1\" />\n </linearGradient>\n <linearGradient\n id=\"46a816da-c484-41ec-8a6f-fbf14454d910\"\n x1=\"288.88\"\n y1=\"378.44\"\n x2=\"288.88\"\n y2=\"209.65\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"32b634d8-28f1-48d9-a868-f602a2cad942\"\n x1=\"288.88\"\n y1=\"328.29\"\n x2=\"288.88\"\n y2=\"223.1\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"291.55\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"38f1cb81-8fac-4205-a0ff-a33ac00d354c\"\n x1=\"288.88\"\n y1=\"594.94\"\n x2=\"288.88\"\n y2=\"426.14\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"6fc01aaf-135e-403e-a209-43b2a4fe59f1\"\n x1=\"288.88\"\n y1=\"544.79\"\n x2=\"288.88\"\n y2=\"439.6\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"79ce363a-d134-40e4-9f82-b96d04a36978\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"5b44e697-61fe-43bd-9a58-5f3e41301748\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"508.05\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"54803c44-522d-4b9e-9a34-f1f7b43e8483\"\n x1=\"671.57\"\n y1=\"760.34\"\n x2=\"671.57\"\n y2=\"129.2\"\n gradientTransform=\"translate(1109.43 -194.1) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"089a6a47-adaa-499b-aefb-cd6464b62fb8\"\n x1=\"670.96\"\n y1=\"553.63\"\n x2=\"670.96\"\n y2=\"387.28\"\n gradientTransform=\"translate(1129.51 -168.41) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"fd8d88e0-7826-450d-9e0b-001d1be709c2\"\n x1=\"637.66\"\n y1=\"754.12\"\n x2=\"637.66\"\n y2=\"601.05\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"8d1793c5-b76e-44e2-a52e-569460402331\"\n x1=\"778.37\"\n y1=\"673.86\"\n x2=\"778.37\"\n y2=\"569.13\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"4745700d-8097-45ff-9f71-625443fc4ad8\"\n x1=\"778.37\"\n y1=\"774.41\"\n x2=\"778.37\"\n y2=\"713.66\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n </defs>\n <title>secure data</title>\n <g opacity=\"0.5\">\n <rect\n x=\"162.9\"\n y=\"86.11\"\n width=\"469.69\"\n height=\"631.14\"\n fill=\"url(#27aa7b70-b106-4a00-be67-693c8380e41d)\"\n />\n </g>\n <rect\n x=\"169.02\"\n y=\"94.67\"\n width=\"455.01\"\n height=\"609.12\"\n fill=\"#f2f2f2\"\n />\n <rect x=\"204.49\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect\n x=\"204.49\"\n y=\"142.37\"\n width=\"156.56\"\n height=\"4.89\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect x=\"384.29\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"259.8\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"273.25\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"286.7\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"476.29\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"489.75\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"503.2\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"209.65\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#46a816da-c484-41ec-8a6f-fbf14454d910)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"213.32\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"223.1\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#32b634d8-28f1-48d9-a868-f602a2cad942)\"\n />\n </g>\n <rect\n id=\"689f37f3-cc41-448d-b172-63ec123bc985\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"224.32\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)\">\n <polygon\n points=\"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18\"\n fill=\"#6c63ff\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"239\" r=\"11.01\" fill=\"#6c63ff\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"426.14\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"429.81\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"439.6\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)\"\n />\n </g>\n <rect\n id=\"b429ac3a-f8a8-4171-bcce-5b6c002c0714\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"440.82\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#79ce363a-d134-40e4-9f82-b96d04a36978)\">\n <polygon\n points=\"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67\"\n fill=\"#bdbdbd\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"455.5\" r=\"11.01\" fill=\"#bdbdbd\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"349.09\"\n y=\"242.63\"\n width=\"631.14\"\n height=\"469.69\"\n transform=\"translate(-74.16 969.06) rotate(-78.76)\"\n fill=\"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)\"\n />\n </g>\n <rect\n x=\"359.37\"\n y=\"247.33\"\n width=\"609.12\"\n height=\"455.01\"\n transform=\"translate(-72.16 966.22) rotate(-78.76)\"\n fill=\"#fff\"\n />\n <rect\n x=\"523.5\"\n y=\"197.22\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-88.86 -196.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"433.36\"\n y=\"650.7\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-2.18 -170.66) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"428.58\"\n y=\"671.14\"\n width=\"249.52\"\n height=\"4.89\"\n transform=\"translate(1.01 -162.18) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"424.6\"\n y=\"683.47\"\n width=\"92.96\"\n height=\"4.89\"\n transform=\"translate(1.84 -145.91) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"519.57\"\n y=\"209.08\"\n width=\"161.45\"\n height=\"4.89\"\n transform=\"translate(-88.17 -180.2) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"512.84\"\n y=\"249.31\"\n width=\"291.11\"\n height=\"4.89\"\n transform=\"translate(-79.21 -190.76) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"509.47\"\n y=\"255.44\"\n width=\"70.94\"\n height=\"4.89\"\n transform=\"translate(-80.19 -168.52) rotate(11.24)\"\n fill=\"#3ad29f\"\n opacity=\"0.7\"\n />\n <rect\n x=\"501.56\"\n y=\"307.59\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-67.76 -190.54) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"575.87\"\n y=\"357.6\"\n width=\"166.35\"\n height=\"289.88\"\n transform=\"translate(-103.27 983.74) rotate(-78.76)\"\n fill=\"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)\"\n />\n </g>\n <rect\n x=\"516.06\"\n y=\"420.61\"\n width=\"286.22\"\n height=\"162.68\"\n transform=\"translate(-30.42 -186.11) rotate(11.24)\"\n fill=\"#fff\"\n />\n <rect\n x=\"496.08\"\n y=\"335.18\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-62.49 -188.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"547.86\"\n y=\"424.02\"\n width=\"35.47\"\n height=\"118.64\"\n transform=\"translate(-35.84 -168.22) rotate(11.24)\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"606.43\"\n y=\"475.19\"\n width=\"35.47\"\n height=\"79.5\"\n transform=\"translate(-28.56 -179.03) rotate(11.24)\"\n fill=\"#3ad29f\"\n />\n <rect\n x=\"665.23\"\n y=\"523.93\"\n width=\"35.47\"\n height=\"42.81\"\n transform=\"translate(-21.5 -189.92) rotate(11.24)\"\n fill=\"#f55f44\"\n />\n <rect\n x=\"731.91\"\n y=\"492.72\"\n width=\"35.47\"\n height=\"86.84\"\n transform=\"translate(-22.02 -203.09) rotate(11.24)\"\n fill=\"#fdd835\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"128.65\"\n y=\"645.09\"\n width=\"3.67\"\n height=\"20.79\"\n fill=\"#47e6b1\"\n />\n <rect\n x=\"269.58\"\n y=\"712.31\"\n width=\"3.67\"\n height=\"20.79\"\n transform=\"translate(853.2 384.07) rotate(90)\"\n fill=\"#47e6b1\"\n />\n </g>\n <path\n d=\"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#4d8af0\"\n opacity=\"0.5\"\n />\n <path\n d=\"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <path\n d=\"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <circle cx=\"337.81\" cy=\"28.62\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"7.34\" cy=\"317.46\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"863.76\" cy=\"120.36\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"822.17\" cy=\"339.3\" r=\"7.34\" fill=\"#4d8af0\" opacity=\"0.5\" />\n <circle cx=\"37.68\" cy=\"145.22\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"853.29\" cy=\"647.34\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"910.8\" cy=\"430.97\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <rect\n x=\"544.42\"\n y=\"601.05\"\n width=\"186.48\"\n height=\"153.07\"\n fill=\"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)\"\n />\n <path\n d=\"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#8d1793c5-b76e-44e2-a52e-569460402331)\"\n />\n <path\n d=\"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"631.77\"\n width=\"182.24\"\n height=\"90.07\"\n fill=\"#6c63ff\"\n />\n <path\n d=\"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#4745700d-8097-45ff-9f71-625443fc4ad8)\"\n />\n <path\n d=\"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z\"\n transform=\"translate(-140.93 -67.23)\"\n opacity=\"0.2\"\n />\n </svg>\n );\n};\n","const { __ } = wp.i18n;\n\nimport Illustration from \"./illustration\";\nconst { Flex, FlexItem, FlexBlock } = wp.components;\n\nexport default () => {\n return (\n <Flex style={{ padding: \"30px\", background: \"#fff\" }}>\n <FlexItem>\n <Illustration width=\"250px\" />\n </FlexItem>\n <FlexBlock style={{ marginLeft: \"20px\" }}>\n <h1>{__(\"Get detailed video insights.\", \"presto-player\")}</h1>\n <p>\n {__(\n \"Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.\",\n \"presto-player\"\n )}\n </p>\n <a\n href=\"https://prestoplayer.com\"\n target=\"_blank\"\n className=\"button button-primary\"\n >\n {__(\"Learn More\", \"presto-player\")}\n </a>\n </FlexBlock>\n </Flex>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { __ } = wp.i18n;\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [data, setData] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n page,\n per_page: 5,\n ...params,\n }),\n parse: false,\n }).then((res) => {\n const total = res.headers\n ? parseInt(res.headers.get(\"X-WP-Total\"))\n : 0;\n const totalPages = res.headers\n ? parseInt(res.headers.get(\"X-WP-TotalPages\"))\n : 0;\n setTotal(total);\n setTotalPages(totalPages);\n return res.json();\n });\n\n setData(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n page={page}\n setPage={setPage}\n total={total}\n setTotal={setTotal}\n totalPages={totalPages}\n setTotalPages={setTotalPages}\n data={data}\n setData={setData}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withDataList\"\n );\n","const { __, sprintf } = wp.i18n;\n\nexport const humanSeconds = (savedSeconds) => {\n const hours = Math.floor(savedSeconds / 60 / 60);\n const minutes = Math.floor(savedSeconds / 60) - hours * 60;\n const seconds = savedSeconds % 60;\n\n let out = \"\";\n if (hours) {\n out += sprintf(__(\"%d hours\", \"presto-player\"), hours) + \", \";\n }\n if (minutes) {\n out += sprintf(__(\"%d minutes\", \"presto-player\"), minutes) + \" \";\n }\n if ((hours || minutes) && seconds) {\n out += __(\"and\", \"presto-player\") + \" \";\n }\n\n out += sprintf(__(\"%d seconds\", \"presto-player\"), seconds);\n\n return out;\n};\n\nexport const timestamp = (seconds) => {\n seconds = parseInt(seconds || 0) * 1000;\n return new Date(seconds).toISOString().substr(11, 8);\n};\n\n/*\n * This function remove the user timezone from new Date()\n * https://stackoverflow.com/a/29774197/1972413\n */\nexport const convertDateTimeToAbsoluteDate = (dateTime) => {\n const offset = new Date().getTimezoneOffset();\n var date = new Date(dateTime.getTime() - offset * 60 * 1000);\n return date.toISOString().split(\"T\")[0] + \"T00:00:00.000Z\";\n};\n","const { Spinner, Flex, FlexItem } = wp.components;\nexport default ({ height = 100 }) => {\n return (\n <Flex style={{ height: `${height}px` }} align=\"center\" justify=\"center\">\n <FlexItem>\n <Spinner />\n </FlexItem>\n </Flex>\n );\n};\n","const { __ } = wp.i18n;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nexport default ({ page, setPage, perPage, total, totalPages }) => {\n // do we have prev/next\n const [hasPrevious, setHasPrevious] = useState(false);\n const [hasNext, setHasNext] = useState(false);\n\n // end and start cursors\n const [end, setEnd] = useState(0);\n const [start, setStart] = useState(0);\n\n // set end and start\n useEffect(() => {\n setEnd(Math.min(perPage * page, total));\n setStart(perPage * (page - 1) + 1);\n }, [perPage, page, total]);\n\n // update page when pagination is clicked\n const nextPage = () => {\n setPage(Math.min(totalPages, page + 1));\n };\n const prevPage = () => {\n setPage(Math.max(page - 1, 0));\n };\n\n // set prev/next\n useEffect(() => {\n setHasPrevious(page - 1 > 0);\n setHasNext(totalPages >= page + 1);\n }, [page, totalPages]);\n\n return (\n <Card size=\"large\" className=\"presto-card pagination\">\n <CardBody className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n {sprintf(\n __(\"Showing %1s to %2s of %3s\", \"presto-player\"),\n start,\n end,\n total\n )}\n </FlexBlock>\n <FlexBlock>\n <Flex justify=\"flex-end\">\n {\n <ButtonGroup>\n <Button\n isSecondary\n disabled={!hasPrevious}\n onClick={prevPage}\n >\n {__(\"Previous\", \"presto-player\")}\n </Button>\n <Button isSecondary disabled={!hasNext} onClick={nextPage}>\n {__(\"Next\", \"presto-player\")}\n </Button>\n </ButtonGroup>\n }\n </Flex>\n </FlexBlock>\n </Flex>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\n\nimport classNames from \"classnames\";\n\nexport default ({ columns, data, onRowClick, title }) => {\n if (!data.length) {\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <table\n role=\"table\"\n className={classNames(\"presto-table\", { \"is-clickable\": onRowClick })}\n >\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n {columns &&\n columns.map((column) => {\n return (\n <th key={column.key} role=\"columnheader\">\n {column.label}\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n {data.map((row, rowIndex) => {\n return (\n <tr\n role=\"row\"\n key={`row-${rowIndex}`}\n onClick={() => onRowClick && onRowClick(row)}\n >\n {columns.map((column, columnIndex) => {\n return (\n <td\n role=\"cell\"\n data-title={column.label}\n key={`row-${rowIndex}-${columnIndex}`}\n aria-label={column.label}\n >\n {column.render ? (\n column.render(row)\n ) : (\n <div>{column.value(row)}</div>\n )}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect, useState } = wp.element;\nconst { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\nimport Pagination from \"@/admin/ui/Pagination\";\nimport Table from \"@/admin/ui/Table\";\n\nexport default ({\n perPage = 10,\n title,\n page,\n setPage,\n loading,\n total,\n totalPages,\n columns,\n data,\n onSelect,\n}) => {\n if (loading) {\n return (\n <Card>\n <Loading />\n </Card>\n );\n }\n\n if (!data?.length) {\n return (\n <Card size=\"large\" className=\"presto-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <div className=\"datatable\">\n <Table\n data={data}\n columns={columns}\n perPage={perPage}\n onRowClick={onSelect}\n title={title}\n />\n\n {!!total && (\n <Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n total={total}\n totalPages={totalPages}\n />\n )}\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n }) => {\n // 10 per page\n const per_page = 5;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-users\",\n params: {\n per_page,\n ...(startDate\n ? { start: convertDateTimeToAbsoluteDate(startDate) }\n : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n // navigate to user screen here\n const navigate = (id) => {\n history.push(`#/user/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n value: (row) => row?.user?.name,\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value: (row) => row?.stats?.[0]?.data,\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render: (row) => (\n <div className=\"presto-badge\">{row?.stats?.[1]?.data}</div>\n ),\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Users\", \"presto-player\")}\n page={page}\n perPage={per_page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => navigate(row?.user?.id)}\n />\n );\n }\n);\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n userId,\n }) => {\n // 10 per page\n const per_page = 10;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-videos\",\n params: {\n per_page,\n ...(startDate\n ? { start: convertDateTimeToAbsoluteDate(startDate) }\n : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n ...(userId ? { user_id: userId } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n const navigate = (id) => {\n history.push(`#/video/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n render(row) {\n return (\n <h3 style={{ marginBottom: 0, wordBreak: \"break-all\" }}>\n {row.video.title\n ? row.video.title\n : __(\"Untitled\", \"presto-player\")}\n </h3>\n );\n },\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value(row) {\n return row.stats[0].data;\n },\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render(row) {\n return <div className=\"presto-badge\">{row.stats[1].data}</div>;\n },\n },\n {\n key: \"view_more\",\n label: \"\",\n render(row) {\n return (\n <span\n style={{\n color: \"var(--wp-admin-theme-color, #007cba)\",\n }}\n >\n {__(\"View Details\", \"presto-player\")} &rarr;\n </span>\n );\n },\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Videos\", \"presto-player\")}\n perPage={per_page}\n page={page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => {\n navigate(row?.video?.id);\n }}\n />\n );\n }\n);\n","// import apiFetch from \"@wordpress/api-fetch\";\nconst { apiFetch } = wp;\n\n// nonce and root\napiFetch.use(apiFetch.createNonceMiddleware(prestoPlayer.nonce));\napiFetch.use(\n apiFetch.createRootURLMiddleware(\n prestoPlayer.root + prestoPlayer.prestoVersionString\n )\n);\n\nexport default apiFetch;\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [totalViews, setTotalViews] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n min: 0,\n labels: {\n formatter: function (num) {\n if (num < 1) {\n return 0;\n }\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k\"\n : Math.sign(num) * Math.abs(num).toFixed(0);\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchViews();\n }, [props]);\n\n const fetchViews = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/views?\" +\n jQuery.param({\n ...(startDate\n ? { start: convertDateTimeToAbsoluteDate(startDate) }\n : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n }),\n parse: false,\n })\n .then(async (res) => {\n setTotalViews(res.headers && res.headers.get(\"X-WP-Total\"));\n const data = await res.json();\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Views\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(__(\"%d Unique Views\", \"presto-player\"), totalViews)}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, humanSeconds } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [averageTime, setAverageTime] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n labels: {\n formatter: function (num) {\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k min\"\n : (Math.sign(num) * Math.abs(num)).toFixed(1) + \"min\";\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchMinutes();\n }, [props]);\n\n const fetchMinutes = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/watch-time?\" +\n jQuery.param({\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }),\n parse: false,\n })\n .then(async (res) => {\n const { data, average } = await res.json();\n\n setAverageTime(parseFloat(average));\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: (item.total / 60).toFixed(2),\n });\n });\n }\n setSeries([\n {\n name: \"Watch Time\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(\n __(\"%s average watch time\", \"presto-player\"),\n humanSeconds(averageTime)\n )}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __ } = wp.i18n;\nconst { Panel, TabPanel } = wp.components;\n\nimport TotalViewsGraph from \"./TotalViewsGraph\";\nimport TotalWatchGraph from \"./TotalWatchGraph\";\n\nexport default ({ startDate, endDate }) => {\n return (\n <Panel>\n <TabPanel\n className=\"presto-module-tabs\"\n onSelect={() => {}}\n tabs={[\n {\n name: \"views\",\n title: __(\"Views\", \"presto-player\"),\n },\n {\n name: \"watch\",\n title: __(\"Watch Time\", \"presto-player\"),\n },\n ]}\n >\n {(tab) => {\n switch (tab.name) {\n case \"views\":\n return (\n <TotalViewsGraph startDate={startDate} endDate={endDate} />\n );\n case \"watch\":\n return (\n <TotalWatchGraph startDate={startDate} endDate={endDate} />\n );\n default:\n return <>Not Found</>;\n }\n }}\n </TabPanel>\n </Panel>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\n\nimport Litepicker from \"litepicker\";\nimport \"litepicker/dist/plugins/ranges\";\n\nexport default ({ startDate, setStartDate, endDate, setEndDate }) => {\n const dateRef = useRef();\n const [inputSize, setInputSize] = useState(25);\n\n let datepicker;\n useEffect(() => {\n datepicker = new Litepicker({\n element: dateRef?.current,\n singleMode: false,\n format: \"MMMM D YYYY\",\n autoApply: false,\n plugins: [\"ranges\"],\n maxDate: new Date(),\n numberOfMonths: 2,\n buttonText: {\n apply: __(\"Apply\", \"presto-player\"),\n cancel: __(\"Cancel\", \"presto-player\"),\n },\n dropdowns: {\n minYear: 1990,\n maxYear: null,\n months: true,\n years: true,\n },\n setup: (picker) => {\n picker.setDateRange(startDate, endDate);\n picker.on(\"button:apply\", (start, end) => {\n setStartDate(start.dateInstance);\n setEndDate(end.dateInstance);\n setInputSize(dateRef.current.value.length);\n });\n },\n });\n }, [dateRef]);\n\n return (\n <div className=\"component-base-control\">\n <div className=\"components-base-control__field\">\n <input\n className=\"components-text-control__input presto-settings__date-select\"\n ref={dateRef}\n size={inputSize}\n />\n </div>\n </div>\n );\n};\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\nconst { Flex, FlexBlock, FlexItem } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nimport TopUsers from \"../components/TopUsers\";\nimport TopVideos from \"../components/TopVideos\";\nimport OverviewPanel from \"../components/OverviewPanel\";\nimport DatePicker from \"../components/DatePicker\";\nimport apiFetch from \"@wordpress/api-fetch\";\nimport { Notice } from \"@wordpress/components\";\nimport { css, jsx } from \"@emotion/core\";\n\nexport default function ({ startDate, endDate, setStartDate, setEndDate }) {\n const [noticeStatus, setNoticeStatus] = useState(false);\n\n // run this only on mount.\n useEffect(() => {\n apiFetch({ path: \"/wp/v2/settings\" }).then((post) => {\n if (post?.presto_player_analytics?.enable === false) {\n setNoticeStatus(true);\n }\n });\n }, []);\n\n return (\n <>\n {/* Component decleared below this code */}\n {noticeStatus ? <MyNotice /> : \"\"}\n <Flex>\n <FlexBlock>\n <h1>{__(\"Analytics\", \"presto-player\")}</h1>\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-flow\">\n <div className=\"presto-dashboard\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <OverviewPanel startDate={startDate} endDate={endDate} />\n </div>\n <div className=\"presto-dashboard__item\">\n <TopUsers startDate={startDate} endDate={endDate} />\n </div>\n </div>\n\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos startDate={startDate} endDate={endDate} />\n </div>\n </div>\n </div>\n </div>\n </>\n );\n}\n\nconst MyNotice = () => (\n <Notice\n css={css`\n margin: 0 0 1em 0 !important;\n `}\n status=\"warning\"\n isDismissible={false}\n >\n <p>\n {__(\n \"Analytics are currently disabled. To collect analytics, turn them on in your settings page.\",\n \"presto-player\"\n )}\n </p>\n </Notice>\n);\n","const { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\n\nexport default ({ loading, title, value, label }) => {\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card className=\"presto-player__stat-card\">\n <CardBody>\n <div className=\"presto-subtitle\">{title}</div>\n <h1>{value}</h1>\n <div>{label}</div>\n </CardBody>\n </Card>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [stat, setStat] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n ...params,\n }),\n });\n setStat(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n stat={stat}\n setStat={setStat}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withStat\"\n );\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat?.view)}\n title={__(\"Total Views\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Total Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button } = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport TopVideos from \"../components/TopVideos\";\nimport TotalVideoViewsByUser from \"../components/TotalVideoViewsByUser\";\nimport VideoAverageWatchTimeByUser from \"../components/VideoAverageWatchTimeByUser\";\nimport VideoTotalWatchTimeByUser from \"../components/VideoTotalWatchTimeByUser\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nimport { css, jsx } from \"@emotion/core\";\n\nconst User = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [user, setUser] = useState({});\n const [error, setError] = useState(\"\");\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getUser = async () => {\n setLoading(true);\n try {\n let user = await apiFetch({\n url: `/wp-json/wp/v2/users/${route?.params?.id}?context=edit`,\n });\n setUser(user);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"User Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getUser();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>\n {loading ? (\n <Spinner />\n ) : (\n <div\n css={css`\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n `}\n >\n <div>\n <h1 className=\"presto-dashboard__title\">{user?.name}</h1>\n <p\n css={css`\n margin-top: -10px;\n opacity: 0.65;\n `}\n >\n {user?.email}\n </p>\n </div>\n {!!user.id && (\n <div\n className=\"presto__edit-user-button\"\n css={css`\n margin: 0 20px;\n `}\n >\n <Button\n href={`/wp-admin/user-edit.php?user_id=${user?.id}`}\n isSecondary\n isSmall\n >\n {__(\"View Profile\", \"presto-player\")} &rarr;\n </Button>\n </div>\n )}\n </div>\n )}\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item\">\n <TotalVideoViewsByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoTotalWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos\n startDate={startDate}\n endDate={endDate}\n userId={route?.params?.id}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default User;\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, timestamp } from \"../util\";\n\nexport default (props) => {\n const { video_id, startDate, endDate } = props;\n const [loading, setLoading] = useState(true);\n\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const fetchTimeline = () => {\n setLoading(true);\n apiFetch({\n path: wp.url.addQueryArgs(\n `/presto-player/v1/analytics/video/${video_id}/timeline`,\n {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }\n ),\n })\n .then((data) => {\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n // add another to them\n series.push({\n x: item.watch_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Viewers\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n useEffect(() => {\n fetchTimeline();\n }, [startDate, endDate]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n tickAmount: 1,\n yaxis: {\n labels: {\n formatter: function (num) {\n return parseInt(num);\n },\n },\n },\n xaxis: {\n labels: {\n formatter: function (num) {\n return timestamp(num);\n },\n },\n },\n colors: [\"#7c3aed\"],\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card>\n <CardBody>\n <div className=\"presto-card__title\">\n {__(\"Audience Retention\", \"presto-player\")}\n </div>\n <Chart\n options={chart.options}\n series={series}\n type=\"area\"\n height={280}\n />\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Unique Views\", \"presto-player\")}\n />\n );\n});\n","export const dashToPascalCase = (str) => str\n .toLowerCase()\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join('');\nexport const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);\n//# sourceMappingURL=case.js.map","import { camelToDashCase } from './case';\nexport const attachProps = (node, newProps, oldProps = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n // add any classes in className to the class list\n const className = getClassName(node.classList, newProps, oldProps);\n if (className !== '') {\n node.className = className;\n }\n Object.keys(newProps).forEach((name) => {\n if (name === 'children' ||\n name === 'style' ||\n name === 'ref' ||\n name === 'class' ||\n name === 'className' ||\n name === 'forwardedRef') {\n return;\n }\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2);\n const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name]);\n }\n }\n else {\n node[name] = newProps[name];\n const propType = typeof newProps[name];\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name]);\n }\n }\n });\n }\n};\nexport const getClassName = (classList, newProps, oldProps) => {\n const newClassProp = newProps.className || newProps.class;\n const oldClassProp = oldProps.className || oldProps.class;\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList);\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);\n const finalClassNames = [];\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass);\n incomingPropClasses.delete(currentClass);\n }\n else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass);\n }\n });\n incomingPropClasses.forEach((s) => finalClassNames.push(s));\n return finalClassNames.join(' ');\n};\n/**\n * Checks if an event is supported in the current execution environment.\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nexport const isCoveredByReact = (eventNameSuffix) => {\n if (typeof document === 'undefined') {\n return true;\n }\n else {\n const eventName = 'on' + eventNameSuffix;\n let isSupported = eventName in document;\n if (!isSupported) {\n const element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof element[eventName] === 'function';\n }\n return isSupported;\n }\n};\nexport const syncEvent = (node, eventName, newEventHandler) => {\n const eventStore = node.__events || (node.__events = {});\n const oldEventHandler = eventStore[eventName];\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler);\n }\n // Bind new listener.\n node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {\n if (newEventHandler) {\n newEventHandler.call(this, e);\n }\n }));\n};\nconst arrayToMap = (arr) => {\n const map = new Map();\n arr.forEach((s) => map.set(s, s));\n return map;\n};\n//# sourceMappingURL=attachProps.js.map","import React from 'react';\nexport const setRef = (ref, value) => {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref != null) {\n // Cast as a MutableRef so we can assign current\n ref.current = value;\n }\n};\nexport const mergeRefs = (...refs) => {\n return (value) => {\n refs.forEach(ref => {\n setRef(ref, value);\n });\n };\n};\nexport const createForwardRef = (ReactComponent, displayName) => {\n const forwardRef = (props, ref) => {\n return React.createElement(ReactComponent, Object.assign({}, props, { forwardedRef: ref }));\n };\n forwardRef.displayName = displayName;\n return React.forwardRef(forwardRef);\n};\nexport const defineCustomElement = (tagName, customElement) => {\n if (customElement !== undefined &&\n typeof customElements !== 'undefined' &&\n !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\nexport * from './attachProps';\nexport * from './case';\n//# sourceMappingURL=index.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React from 'react';\nimport { attachProps, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs, } from './utils';\nexport const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {\n if (defineCustomElement !== undefined) {\n defineCustomElement();\n }\n const displayName = dashToPascalCase(tagName);\n const ReactComponent = class extends React.Component {\n constructor(props) {\n super(props);\n this.setComponentElRef = (element) => {\n this.componentEl = element;\n };\n }\n componentDidMount() {\n this.componentDidUpdate(this.props);\n }\n componentDidUpdate(prevProps) {\n attachProps(this.componentEl, this.props, prevProps);\n }\n render() {\n const _a = this.props, { children, forwardedRef, style, className, ref } = _a, cProps = __rest(_a, [\"children\", \"forwardedRef\", \"style\", \"className\", \"ref\"]);\n let propsToPass = Object.keys(cProps).reduce((acc, name) => {\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2).toLowerCase();\n if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {\n acc[name] = cProps[name];\n }\n }\n else {\n acc[name] = cProps[name];\n }\n return acc;\n }, {});\n if (manipulatePropsFunction) {\n propsToPass = manipulatePropsFunction(this.props, propsToPass);\n }\n const newProps = Object.assign(Object.assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style });\n return React.createElement(tagName, newProps, children);\n }\n static get displayName() {\n return displayName;\n }\n };\n // If context was passed to createReactComponent then conditionally add it to the Component Class\n if (ReactComponentContext) {\n ReactComponent.contextType = ReactComponentContext;\n }\n return createForwardRef(ReactComponent, displayName);\n};\n//# sourceMappingURL=createComponent.js.map","/* eslint-disable */\n/* tslint:disable */\n/* auto-generated react proxies */\nimport { createReactComponent } from './react-component-lib';\nexport const PrestoActionBar = /*@__PURE__*/ createReactComponent('presto-action-bar');\nexport const PrestoActionBarController = /*@__PURE__*/ createReactComponent('presto-action-bar-controller');\nexport const PrestoActionBarUi = /*@__PURE__*/ createReactComponent('presto-action-bar-ui');\nexport const PrestoAudio = /*@__PURE__*/ createReactComponent('presto-audio');\nexport const PrestoBunny = /*@__PURE__*/ createReactComponent('presto-bunny');\nexport const PrestoCtaOverlay = /*@__PURE__*/ createReactComponent('presto-cta-overlay');\nexport const PrestoCtaOverlayController = /*@__PURE__*/ createReactComponent('presto-cta-overlay-controller');\nexport const PrestoCtaOverlayUi = /*@__PURE__*/ createReactComponent('presto-cta-overlay-ui');\nexport const PrestoDynamicOverlayUi = /*@__PURE__*/ createReactComponent('presto-dynamic-overlay-ui');\nexport const PrestoDynamicOverlays = /*@__PURE__*/ createReactComponent('presto-dynamic-overlays');\nexport const PrestoEmailOverlay = /*@__PURE__*/ createReactComponent('presto-email-overlay');\nexport const PrestoEmailOverlayController = /*@__PURE__*/ createReactComponent('presto-email-overlay-controller');\nexport const PrestoEmailOverlayUi = /*@__PURE__*/ createReactComponent('presto-email-overlay-ui');\nexport const PrestoMutedOverlay = /*@__PURE__*/ createReactComponent('presto-muted-overlay');\nexport const PrestoPlayer = /*@__PURE__*/ createReactComponent('presto-player');\nexport const PrestoPlayerButton = /*@__PURE__*/ createReactComponent('presto-player-button');\nexport const PrestoPlayerSkeleton = /*@__PURE__*/ createReactComponent('presto-player-skeleton');\nexport const PrestoPlayerSpinner = /*@__PURE__*/ createReactComponent('presto-player-spinner');\nexport const PrestoTimestamp = /*@__PURE__*/ createReactComponent('presto-timestamp');\nexport const PrestoVideo = /*@__PURE__*/ createReactComponent('presto-video');\nexport const PrestoVideoCurtainUi = /*@__PURE__*/ createReactComponent('presto-video-curtain-ui');\nexport const PrestoVimeo = /*@__PURE__*/ createReactComponent('presto-vimeo');\nexport const PrestoYoutube = /*@__PURE__*/ createReactComponent('presto-youtube');\nexport const PrestoYoutubeSubscribeButton = /*@__PURE__*/ createReactComponent('presto-youtube-subscribe-button');\n//# sourceMappingURL=index.js.map","const { useRef, useEffect } = wp.element;\n\nexport function usePrevious(value) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n\nexport function snackbarNotice({ status = \"success\", message }) {\n wp.data.dispatch(\"core/notices\").createNotice(\n status, // Can be one of: success, info, warning, error.\n message, // Text string to display.\n { type: \"snackbar\" }\n );\n}\n\nexport const bytesToSize = (bytes) => {\n var sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\"];\n if (bytes == 0) return \"0 Byte\";\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));\n return Math.round(bytes / Math.pow(1024, i), 2) + \" \" + sizes[i];\n};\n\nexport const toDate = (d) => {\n d = new Date(d);\n var hours = d.getHours();\n var minutes = d.getMinutes();\n var ampm = hours >= 12 ? \"pm\" : \"am\";\n hours = hours % 12;\n hours = hours ? hours : 12;\n minutes = minutes < 10 ? \"0\" + minutes : minutes;\n\n return (\n d.getDate() +\n \"-\" +\n (d.getMonth() + 1) +\n \"-\" +\n d.getFullYear() +\n \" at \" +\n hours +\n \":\" +\n minutes +\n ampm\n );\n};\n\nexport function timeToSeconds(time) {\n let pieces = time.split(\":\");\n let seconds;\n if (pieces.length > 1) {\n seconds = parseInt(pieces[0]) * 60;\n }\n return parseInt(pieces[1]) + parseInt(seconds);\n}\n\nexport function secondsToTime(number) {\n let seconds = parseInt(number, 10);\n let minutes = Math.floor(seconds / 60);\n if (seconds < 10) {\n seconds = \"0\" + seconds;\n }\n return minutes + \":\" + seconds;\n}\n\nexport function sanitizeTime(time) {\n let draft = time;\n // remove any letters\n draft = draft.replace(/[^\\d\\d:\\d\\d.-]/g, \"\");\n // make sure we have :\n if (!draft.includes(\":\")) {\n return `${draft}:00`;\n }\n\n // must have something before :00\n if (draft.substr(0, draft.indexOf(\":\")).length === 0) {\n draft = `0${draft}`;\n }\n\n // only allow 2 characters after :\n let index = draft.indexOf(\":\");\n draft = draft.substring(0, index + 3);\n return draft;\n}\n\nexport function getProvider(src) {\n const provider = \"self-hosted\";\n\n if (src) {\n const yt_rx = /^(?:https?:\\/\\/)?(?:www\\.)?(?:youtu\\.be\\/|youtube\\.com\\/(?:embed\\/|v\\/|watch\\?v=|watch\\?.+&v=))((\\w|-){11})(?:\\S+)?$/;\n const has_match_youtube = src.match(yt_rx);\n\n if (has_match_youtube) {\n return \"youtube\";\n }\n\n const vm_rx = /(https?:\\/\\/)?(www\\.)?(player\\.)?vimeo\\.com\\/([a-z]*\\/)*([‌​0-9]{6,11})[?]?.*/;\n const has_match_vimeo = src.match(vm_rx);\n\n if (has_match_vimeo) {\n return \"vimeo\";\n }\n\n if (src.indexOf(\"https://vz-\") > -1 && src.indexOf(\"b-cdn.net\") > -1) {\n return \"bunny\";\n }\n\n if (src.indexOf(\".mp3\") > -1) {\n return \"audio\";\n }\n }\n return provider;\n}\n","import { PrestoPlayer } from \"@presto-player/react\";\nimport { getProvider } from \"../util\";\nconst { useSelect } = wp.data;\n\nexport default ({\n src,\n classes,\n preset,\n branding,\n attributes,\n adminPreview,\n currentTime,\n preload = \"metadata\",\n overlays,\n type,\n}) => {\n const { chapters, mutedOverlay, mutedPreview } = attributes;\n\n const youtube = useSelect((select) => {\n return select(\"presto-player/player\")?.youtube();\n });\n\n const css = useSelect((select) => {\n return select(\"presto-player/player\")?.playerCSS();\n });\n\n const convertHex = (hexCode, opacity = 1) => {\n var hex = hexCode.replace(\"#\", \"\");\n\n if (hex.length === 3) {\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n }\n\n var r = parseInt(hex.substring(0, 2), 16),\n g = parseInt(hex.substring(2, 4), 16),\n b = parseInt(hex.substring(4, 6), 16);\n\n /* Backward compatibility for whole number based opacity values. */\n if (opacity > 1 && opacity <= 100) {\n opacity = opacity / 100;\n }\n\n return \"rgba(\" + r + \",\" + g + \",\" + b + \",\" + opacity + \")\";\n };\n\n const mutedOverlayContent = () => {\n return (\n <div\n className=\"presto-player__overlay is-image\"\n style={{\n position: \"absolute\",\n width: `${mutedOverlay?.width || 100}%`,\n left: `${(mutedOverlay?.focalPoint?.x || 0.5) * 100}%`,\n top: `${(mutedOverlay?.focalPoint?.y || 0.5) * 100}%`,\n }}\n >\n <img\n src={mutedOverlay?.src}\n style={{\n transform: \"translateX(-50%) translateY(-50%)\",\n }}\n />\n </div>\n );\n };\n\n return (\n <div\n className={\"wp-block-video presto-block-video\"}\n style={\n type === \"audio\"\n ? {\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.background_color\n ? {\n \"--plyr-audio-controls-background\": preset.background_color,\n }\n : { \"--plyr-audio-controls-background\": branding?.color }),\n ...(preset?.control_color\n ? {\n \"--plyr-audio-control-color\": preset.control_color,\n \"--plyr-range-thumb-background\": preset.control_color,\n \"--plyr-range-fill-background\": preset.control_color,\n \"--plyr-audio-progress-buffered-background\": convertHex(\n preset.control_color || branding?.color || \"#00b3ff\",\n 0.5\n ),\n }\n : {\n \"--plyr-audio-control-color\": \"#ffffff\",\n \"--plyr-range-thumb-background\": \"#ffffff\",\n \"--plyr-range-fill-background\": \"#ffffff\",\n }),\n \"--plyr-range-thumb-shadow\": `0px`,\n }\n : {\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.caption_background\n ? { \"--plyr-captions-background\": preset.caption_background }\n : {}),\n ...(branding?.color\n ? { \"--plyr-color-main\": branding.color }\n : {}),\n \"--presto-player-email-border-radius\": `${\n preset?.email_collection?.border_radius || 0\n }px`,\n \"--presto-player-logo-width\": `${branding?.logo_width || 75}px`,\n }\n }\n >\n <PrestoPlayer\n src={src}\n css={css}\n classes={classes}\n currentTime={currentTime}\n overlays={overlays}\n isAdmin={true}\n preload={preload}\n preset={preset}\n bunny={{\n thumbnail: attributes?.previewThumbnail,\n preview: attributes?.preview,\n }}\n youtube={{\n channelId: youtube?.channel_id,\n }}\n tracks={\n !!preset?.captions && [\n {\n kind: \"captions\",\n label: \"English\",\n srclang: \"en\",\n src: \"/path/to/captions.en.vtt\",\n default: true,\n },\n ]\n }\n branding={branding}\n chapters={chapters}\n blockAttributes={attributes}\n poster={attributes.poster}\n provider={type === \"audio\" ? \"audio\" : getProvider(src)}\n mediaTitle={attributes.title}\n >\n <div slot=\"player-end\">\n {mutedPreview?.enabled &&\n mutedOverlay?.enabled &&\n mutedOverlayContent()}\n {adminPreview}\n </div>\n </PrestoPlayer>\n </div>\n );\n};\n","const { __ } = wp.i18n;\n\nconst {\n Flex,\n FlexBlock,\n FlexItem,\n Spinner,\n Button,\n TextControl,\n} = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport VideoAverageWatchTime from \"../components/VideoAverageWatchTime\";\nimport VideoTimeline from \"../components/VideoTimeline\";\nimport VideoViews from \"../components/VideoViews\";\nimport Player from \"../../blocks/shared/Player\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nconst Video = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [video, setVideo] = useState({});\n const [error, setError] = useState(\"\");\n const [thisName, setThisName] = useState(null);\n const [editing, setEditing] = useState(false);\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getVideo = async () => {\n setLoading(true);\n try {\n let video = await apiFetch({\n url: `${prestoPlayer?.root}${prestoPlayer?.prestoVersionString}videos/${route?.params?.id}`,\n });\n setVideo(video);\n setThisName(video?.title);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"Video Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const putVideo = async () => {\n console.log(`New Video title ${thisName}`);\n setLoading(true);\n try {\n const data = {\n ...video,\n ...{ title: thisName },\n };\n let saved = await wp.apiFetch({\n method: \"POST\",\n url: wp.url.addQueryArgs(\n `${prestoPlayer.root}${prestoPlayer.prestoVersionString}videos/${video.id}`,\n { _method: \"PUT\" }\n ),\n data,\n });\n\n if (!saved) {\n throw genericError;\n }\n setEditing(false);\n setVideo(saved);\n } catch (e) {\n setError(e?.message ? e.message : genericError);\n } finally {\n setLoading(false);\n }\n };\n\n const cancelEditing = () => {\n setThisName(video?.title);\n setEditing(false);\n };\n\n const renderVideoEditableTitle = () => {\n if (loading) {\n return <Spinner />;\n } else if (editing) {\n return (\n <div className=\"presto-inline-edit presto-inline-edit--editing\">\n <TextControl\n className=\"presto-inline-edit__input\"\n type=\"text\"\n value={thisName}\n onChange={(title) => setThisName(title)}\n />\n <Button\n className=\"presto-inline-edit__button\"\n isPrimary\n onClick={putVideo}\n >\n {\" \"}\n Save{\" \"}\n </Button>\n <Button\n className=\"presto-inline-edit__button\"\n isSecondary\n onClick={cancelEditing}\n >\n {\" \"}\n Cancel{\" \"}\n </Button>\n </div>\n );\n } else {\n return (\n <div className=\"presto-inline-edit\">\n <h1 className=\"presto-dashboard__title presto-inline-edit__text\">\n {video?.title}\n </h1>\n\n <button\n className=\"presto-inline-edit__edit\"\n onClick={() => setEditing(true)}\n >\n <span className=\"dashicon dashicons dashicons-edit\"></span>\n </button>\n </div>\n );\n }\n };\n\n useEffect(() => {\n getVideo();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>{renderVideoEditableTitle()}</FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoViews\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n {!!Object.keys(video || {}).length && (\n <Player\n src={video?.src}\n attributes={{}}\n type={video?.type}\n preset={{\n \"play-large\": true,\n play: true,\n progress: true,\n \"current-time\": true,\n }}\n />\n )}\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTime\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoTimeline\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default Video;\n","export const routes = {\n dashboard: {\n path: \"/\",\n },\n video: {\n path: \"/video/:id\",\n },\n user: {\n path: \"/user/:id\",\n },\n};\n","const { useState } = wp.element;\n\nimport { Route, Router } from \"@/router\";\n\nimport AnalyticsUpgrade from \"./pages/AnalyticsUpgrade\";\nimport Dashboard from \"./pages/Dashboard\";\n\nimport User from \"./pages/User\";\nimport Video from \"./pages/Video\";\nimport { routes } from \"./routes\";\n\nexport default () => {\n const scrollToTop = () => {\n window.scrollTo(0, 0);\n };\n\n const [startDate, setStartDate] = useState(\n new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)\n );\n const [endDate, setEndDate] = useState(new Date());\n\n if (!prestoPlayer?.isPremium) {\n return (\n <div className=\"presto-dashboard__content\">\n <AnalyticsUpgrade />\n </div>\n );\n }\n\n return (\n <div className=\"presto-dashboard__content\">\n <Router routes={routes}>\n <Route path={routes.dashboard.path} onRoute={scrollToTop}>\n <Dashboard\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.video.path} onRoute={scrollToTop}>\n <Video\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.user.path} onRoute={scrollToTop}>\n <User\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n </Router>\n </div>\n );\n};\n","const { render } = wp.element;\n\n/**\n * App\n */\nimport App from \"./App\";\n\n/**\n * styles\n */\nimport \"./analytics.scss\";\n\n/**\n * Render\n */\nrender(<App />, document.getElementById(\"presto-analytics-page\"));\n"],"sourceRoot":""}
dist/analytics/{admin-866190a9.css → admin-7f8d2917.css} RENAMED
@@ -15,6 +15,6 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- *{box-sizing:inherit}.presto-inline-edit__text{display:inline;margin:0 8px 0 0}.presto-inline-edit__input{flex-grow:1;max-width:640px}.presto-inline-edit__input input{height:36px}.presto-inline-edit .presto-inline-edit__button{margin-right:4px}.presto-inline-edit__edit{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;width:28px;height:28px;border-radius:50%;border:none;opacity:.5;color:#fff;background-color:var(--wp-admin-theme-color)}.presto-inline-edit__edit:hover{opacity:1;background-color:var(--wp-admin-theme-color-darker-10)}.presto-inline-edit--editing{align-items:stretch}.datatable{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e4e7}.datatable .table-card{border-bottom-left-radius:0;border-bottom-right-radius:0;border:none}.datatable .pagination{border-top-left-radius:0;border-top-right-radius:0;margin-top:auto;border:none}.presto-flow>*+*{margin-top:var(--presto-flow-space,2em)}.presto-loading{display:flex;align-items:center;justify-content:center;min-height:100px}table.presto-table{width:100%;border-collapse:collapse}table.presto-table td h2,table.presto-table td h3{margin:0 0 8px}table.presto-table.is-clickable td{cursor:pointer;transition:background-color .25s ease}table.presto-table.is-clickable tr:hover td{background-color:#f3f3f3}table.presto-table td,table.presto-table th{text-align:left;padding:.65rem;border-top:1px solid #e2e4e7}table.presto-table tr:first-child td{border-top:none}table.presto-table th{color:#757575;background-color:#f7f7f7;border:none;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px}@media (min-device-width:768px)and (max-device-width:1024px),only screen and (max-width:760px){table.presto-table,table.presto-table tbody,table.presto-table td,table.presto-table th,table.presto-table thead,table.presto-table tr{display:block}table.presto-table thead tr{position:absolute;top:-9999px;left:-9999px}table.presto-table tr{margin:0 0 1rem}table.presto-table tr:nth-child(odd){background:#f3f3f3}table.presto-table td{border:none;border-bottom:1px solid #fff;position:relative;padding:10px 10px 10px 50%}table.presto-table td:before{position:absolute;top:10px;left:10px;width:45%;padding-right:10px;white-space:nowrap;content:attr(data-title);font-weight:700}}.presto-dashboard__row{--spacing:1rem;--column-count:2;display:flex;flex-wrap:wrap;margin:0 calc(var(--spacing)*-0.5);align-items:stretch;justify-content:space-between}.presto-dashboard__item{flex:0 1 33.33%;padding:calc(var(--spacing)/3);width:33.33%}.presto-dashboard__item>*{height:100%}.presto-dashboard__item.is-large{flex:1}.presto-dashboard__header{background:#fff;padding:20px;display:flex;align-items:center;justify-content:space-between}.presto-dashboard__logo{max-width:175px}.presto-dashboard__content{margin:25px 0;width:calc(100% - 20px)}.presto-dashboard__body{max-width:800px;margin-left:auto;margin-right:auto}@media(max-width:767px){.presto-dashboard__row{display:block}.presto-dashboard__item{width:100%}}.presto-dashboard__title{line-height:1em}.presto-settings-page-notices.components-snackbar-list{position:fixed!important;left:auto;right:40px;bottom:40px;width:auto}.presto-card__title{opacity:.75;font-size:1rem;clear:both;margin:.75rem 0}.presto-player-dashboard__version{line-height:1;padding:6px 12px;background:#f1f1f1;color:#666;font-weight:500;border-radius:999px}.presto-player-dashboard__header{background:#fff;margin-left:-20px;margin-right:-20px;padding:20px;display:flex;align-items:center;justify-content:space-between;max-width:calc(100% + 20px)}.presto-player-dashboard__logo{max-height:30px;max-width:200px}.presto-module-tabs [role=tablist]{border-bottom:1px solid #e2e4e7}.presto-badge{border-radius:9999px;border:1px solid var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color,#007cba);padding:5px 10px;line-height:1;white-space:nowrap;display:inline-block}.apexcharts-xaxis text,.apexcharts-yaxis text{opacity:.35}:root{--wp-admin-theme-color:#7c3aed!important;--wp-admin-theme-color-darker-10:#6127c7!important;--wp-admin-theme-color-darker-20:#501ea5!important;--litepickerDayIsInRange:#f3f3f3;--litepicker-container-months-color-bg:#fff;--litepicker-container-months-box-shadow-color:#ddd;--litepicker-footer-color-bg:#fafafa;--litepicker-footer-box-shadow-color:#ddd;--litepicker-tooltip-color-bg:#fff;--litepicker-month-header-color:#333;--litepicker-button-prev-month-color:#9e9e9e;--litepicker-button-next-month-color:#9e9e9e;--litepicker-button-prev-month-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-next-month-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-month-width:calc(var(--litepicker-day-width)*7);--litepicker-month-weekday-color:#9e9e9e;--litepicker-month-week-number-color:#9e9e9e;--litepicker-day-width:38px;--litepicker-day-color:#333;--litepicker-day-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-is-today-color:#f44336;--litepicker-is-in-range-color:rgba(124,58,237,0.12156862745098039);--litepicker-is-locked-color:#9e9e9e;--litepicker-is-start-color:#fff;--litepicker-is-start-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-is-end-color:#fff;--litepicker-is-end-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-cancel-color:#fff;--litepicker-button-cancel-color-bg:#9e9e9e;--litepicker-button-apply-color:#fff;--litepicker-button-apply-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-reset-color:#909090;--litepicker-button-reset-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-highlighted-day-color:#333;--litepicker-highlighted-day-color-bg:#ffeb3b}.presto-player__stat-card{display:flex;align-items:center;justify-content:center;text-align:center}.presto-player__stat-card h1{font-size:3rem;margin-bottom:.4em}.presto-options__pro-badge{margin:0 4px;line-height:1;background:var(--wp-admin-theme-color);color:#fff;padding:3px 6px;border-radius:9999px;font-size:10px;display:inline-block}.presto-options__disabled-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-self:center;z-index:99}.presto-options__card{position:relative}.litepicker{font-size:1em}.litepicker .container__days>a,.litepicker .container__days>div{margin-bottom:5px}.litepicker .container__footer,.litepicker .container__main .container__predefined-ranges,.litepicker .container__months{border:1px solid #e0e0e0;box-shadow:none;border-radius:0;margin:0}.litepicker .container__main .container__predefined-ranges{margin-right:-1px;padding:16px;max-width:125px;width:125px;border-radius:0}.litepicker .container__main .container__predefined-ranges>div{color:var(--wp-admin-theme-color,#007cba)}.litepicker .container__months .month-item-header div>.month-item-year{padding:0 24px 0 8px}.litepicker .container__footer{margin-top:-1px;padding:8px}.litepicker .container__footer .button-apply,.litepicker .container__footer .button-cancel{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e;white-space:nowrap}.litepicker .container__footer .button-apply{background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.presto-settings__page{margin:25px 25px 25px auto}.presto-settings__loading{min-height:200px;width:100%;display:flex;align-items:center;justify-content:center}.presto-settings__body .components-card,.presto-settings__setting{max-width:800px}.presto-settings__navigation{margin-left:-20px;margin-right:-20px;padding-right:20px;position:sticky;top:32px;z-index:99}@media screen and (max-width:782px){.presto-settings__navigation{top:46px}}.presto-settings .components-snackbar.is-snackbar-error{background:#cc1818}.presto-settings__date-select,.presto-settings__date-select:disabled{padding-right:30px;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle;opacity:1;box-shadow:none;color:#444;border-color:#757575;-webkit-user-select:none;-ms-user-select:none;user-select:none}.is-color-control{max-width:250px}
19
 
20
- /*# sourceMappingURL=admin-866190a9.css.map*/
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ *{box-sizing:inherit}.presto-inline-edit__text{display:inline;margin:0 8px 0 0}.presto-inline-edit__input{flex-grow:1;max-width:640px}.presto-inline-edit__input input{height:36px}.presto-inline-edit .presto-inline-edit__button{margin-right:4px}.presto-inline-edit__edit{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;width:28px;height:28px;border-radius:50%;border:none;opacity:.5;color:#fff;background-color:var(--wp-admin-theme-color)}.presto-inline-edit__edit:hover{opacity:1;background-color:var(--wp-admin-theme-color-darker-10)}.presto-inline-edit--editing{align-items:stretch}.datatable{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e4e7}.datatable .table-card{border-bottom-left-radius:0;border-bottom-right-radius:0;border:none}.datatable .pagination{border-top-left-radius:0;border-top-right-radius:0;margin-top:auto;border:none}.presto-flow>*+*{margin-top:var(--presto-flow-space,2em)}.presto-loading{display:flex;align-items:center;justify-content:center;min-height:100px}table.presto-table{width:100%;border-collapse:collapse}table.presto-table td h2,table.presto-table td h3{margin:0 0 8px}table.presto-table.is-clickable td{cursor:pointer;transition:background-color .25s ease}table.presto-table.is-clickable tr:hover td{background-color:#f3f3f3}table.presto-table td,table.presto-table th{text-align:left;padding:.65rem;border-top:1px solid #e2e4e7}table.presto-table tr:first-child td{border-top:none}table.presto-table th{color:#757575;background-color:#f7f7f7;border:none;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px}@media (min-device-width:768px)and (max-device-width:1024px),only screen and (max-width:760px){table.presto-table,table.presto-table tbody,table.presto-table td,table.presto-table th,table.presto-table thead,table.presto-table tr{display:block}table.presto-table thead tr{position:absolute;top:-9999px;left:-9999px}table.presto-table tr{margin:0 0 1rem}table.presto-table tr:nth-child(odd){background:#f3f3f3}table.presto-table td{border:none;border-bottom:1px solid #fff;position:relative;padding:10px 10px 10px 50%}table.presto-table td:before{position:absolute;top:10px;left:10px;width:45%;padding-right:10px;white-space:nowrap;content:attr(data-title);font-weight:700}}.presto-dashboard__row{--spacing:1rem;--column-count:2;display:flex;flex-wrap:wrap;margin:0 calc(var(--spacing)*-0.5);align-items:stretch;justify-content:space-between}.presto-dashboard__item{flex:0 1 33.33%;padding:calc(var(--spacing)/3);width:33.33%}.presto-dashboard__item>*{height:100%}.presto-dashboard__item.is-large{flex:1}.presto-dashboard__header{background:#fff;padding:20px;display:flex;align-items:center;justify-content:space-between}.presto-dashboard__logo{max-width:175px}.presto-dashboard__content{margin:25px 0;width:calc(100% - 20px)}.presto-dashboard__body{max-width:800px;margin-left:auto;margin-right:auto}@media(max-width:767px){.presto-dashboard__row{display:block}.presto-dashboard__item{width:100%}}.presto-dashboard__title{line-height:1em}.presto-settings-page-notices.components-snackbar-list{position:fixed!important;left:auto;right:40px;bottom:40px;width:auto}.presto-card__title{opacity:.75;font-size:1rem;clear:both;margin:.75rem 0}.presto-player-dashboard__version{line-height:1;padding:6px 12px;background:#f1f1f1;color:#666;font-weight:500;border-radius:999px}.presto-player-dashboard__header{background:#fff;margin-left:-20px;margin-right:-20px;padding:20px;display:flex;align-items:center;justify-content:space-between;max-width:calc(100% + 20px)}.presto-player-dashboard__logo{max-height:30px;max-width:200px}.presto-module-tabs [role=tablist]{border-bottom:1px solid #e2e4e7}.presto-badge{border-radius:9999px;border:1px solid var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color,#007cba);padding:5px 10px;line-height:1;white-space:nowrap;display:inline-block}.apexcharts-xaxis text,.apexcharts-yaxis text{opacity:.35}:root{--wp-admin-theme-color:#7c3aed!important;--wp-admin-theme-color-darker-10:#6127c7!important;--wp-admin-theme-color-darker-20:#501ea5!important;--litepickerDayIsInRange:#f3f3f3;--litepicker-container-months-color-bg:#fff;--litepicker-container-months-box-shadow-color:#ddd;--litepicker-footer-color-bg:#fafafa;--litepicker-footer-box-shadow-color:#ddd;--litepicker-tooltip-color-bg:#fff;--litepicker-month-header-color:#333;--litepicker-button-prev-month-color:#9e9e9e;--litepicker-button-next-month-color:#9e9e9e;--litepicker-button-prev-month-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-next-month-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-month-width:calc(var(--litepicker-day-width)*7);--litepicker-month-weekday-color:#9e9e9e;--litepicker-month-week-number-color:#9e9e9e;--litepicker-day-width:38px;--litepicker-day-color:#333;--litepicker-day-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-is-today-color:#f44336;--litepicker-is-in-range-color:rgba(124,58,237,0.12156862745098039);--litepicker-is-locked-color:#9e9e9e;--litepicker-is-start-color:#fff;--litepicker-is-start-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-is-end-color:#fff;--litepicker-is-end-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-cancel-color:#fff;--litepicker-button-cancel-color-bg:#9e9e9e;--litepicker-button-apply-color:#fff;--litepicker-button-apply-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-reset-color:#909090;--litepicker-button-reset-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-highlighted-day-color:#333;--litepicker-highlighted-day-color-bg:#ffeb3b}.presto-player__stat-card{display:flex;align-items:center;justify-content:center;text-align:center}.presto-player__stat-card h1{font-size:3rem;margin-bottom:.4em}.presto-options__pro-badge{margin:0 4px;line-height:1;background:var(--wp-admin-theme-color);color:#fff;padding:3px 6px;border-radius:9999px;font-size:10px;display:inline-block}.presto-options__disabled-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-self:center;z-index:99}.presto-options__card{position:relative}.litepicker{font-size:1em}.litepicker .container__days>a,.litepicker .container__days>div{margin-bottom:5px}.litepicker .container__footer,.litepicker .container__main .container__predefined-ranges,.litepicker .container__months{border:1px solid #e0e0e0;box-shadow:none;border-radius:0;margin:0}.litepicker .container__main .container__predefined-ranges{margin-right:-1px;padding:16px;max-width:125px;width:125px;border-radius:0}.litepicker .container__main .container__predefined-ranges>div{color:var(--wp-admin-theme-color,#007cba)}.litepicker .container__months .month-item-header div>.month-item-year{padding:0 24px 0 8px}.litepicker .container__footer{margin-top:-1px;padding:8px}.litepicker .container__footer .button-apply,.litepicker .container__footer .button-cancel{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e;white-space:nowrap}.litepicker .container__footer .button-apply{background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.presto-settings__page{margin:25px 25px 25px auto}.presto-settings__loading{min-height:200px;width:100%;display:flex;align-items:center;justify-content:center}.presto-settings__body .components-card,.presto-settings__setting{max-width:800px}.presto-settings__navigation{margin-left:-20px;margin-right:-20px;padding-right:20px;position:-webkit-sticky;position:sticky;top:32px;z-index:99}@media screen and (max-width:782px){.presto-settings__navigation{top:46px}}.presto-settings .components-snackbar.is-snackbar-error{background:#cc1818}.presto-settings__date-select,.presto-settings__date-select:disabled{padding-right:30px;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle;opacity:1;box-shadow:none;color:#444;border-color:#757575;-webkit-user-select:none;-ms-user-select:none;user-select:none}.is-color-control{max-width:250px}
19
 
20
+ /*# sourceMappingURL=admin-7f8d2917.css.map*/
dist/analytics/{admin-866190a9.css.map → admin-7f8d2917.css.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/admin/analytics/analytics.scss","webpack:///./src/admin/scss/admin.scss","webpack:///./src/admin/scss/datatable.scss","webpack:///./src/admin/analytics/scss/utility.scss","webpack:///./src/admin/analytics/scss/layout.scss","webpack:///./src/admin/analytics/scss/typography.scss","webpack:///./src/admin/analytics/scss/notices.scss","webpack:///./src/admin/analytics/scss/components.scss"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,EACE,6CCCE,eAEA,iBAEF,2BACE,YACA,gBACA,iCACE,YAGJ,gDACE,iBAEF,0BACE,eACA,oBACA,uBACA,mBAEA,WACA,YACA,kBACA,YACA,WACA,WACA,6CAEA,gCACE,UACA,uDAGJ,6BACE,oBCpCJ,WACI,aACA,sBACA,gBACA,yBACF,uBACE,4BACA,6BAEA,YAEF,uBACE,yBACA,0BAEA,gBACA,YChBJ,iBACE,wCAEF,gBACE,aACA,mBACA,uBACA,iBAGF,mBACE,WACA,yBAGE,kDAEE,eAKF,mCACE,eACA,sCAGF,4CACE,yBAIJ,4CAEE,gBACA,eACA,6BAGF,qCACE,gBAGF,sBACE,cACA,yBACA,YACA,eACA,gBACA,yBACA,mBAOJ,+FAMI,uIAKE,cAIF,4BACE,kBACA,YACA,aAGF,sBACE,gBAGF,qCACE,mBAGF,sBAGE,yCACA,kBAEA,2BAGF,6BAEE,kBAEA,SACA,UACA,UACA,mBACA,mBAIA,yBACA,eALA,CAKA,CC3GJ,uBACE,eACA,iBAEA,aACA,eACA,mCACA,oBACA,8BAGF,wBACE,gBACA,+BACA,aAEA,0BACE,YAGF,iCACE,OAIJ,0BACE,gBACA,aACA,aACA,mBACA,8BAEF,wBACE,gBAEF,2BACE,cACA,wBAEF,wBACE,gBACA,iBACA,kBAGJ,wBAEI,uBACE,cAEF,wBACE,YCnDJ,yBACE,gBCFJ,uDACE,yBACA,UACA,WACA,YACA,WCJA,oBACE,YACA,eACA,WACA,gBAKF,kCACE,cACA,iBACA,mBACA,WACA,gBACA,oBAGF,iCACE,gBACA,kBACA,mBACA,aACA,aACA,mBACA,8BACA,4BAGF,+BACE,gBACA,gBAIJ,mCACE,gCAGF,cACE,qBACA,qDACA,0CACA,iBACA,cACA,mBACA,qBAGF,8CAEE,YPxCF,MACE,yCACA,mDACA,mDAGA,iCAGA,4CACA,oDACA,qCACA,0CACA,mCACA,qCACA,6CACA,6CACA,+EAIA,+EAIA,6DACA,yCACA,6CACA,4BACA,4BACA,iEACA,oCACA,oEACA,qCACA,iCACA,mEACA,+BACA,iEACA,sCACA,4CACA,qCACA,uEACA,wCACA,0EACA,wCACA,8CAGF,0BACE,aACA,mBACA,uBACA,kBAEA,6BACE,eACA,mBAIJ,2BACE,aACA,cACA,uCACA,WACA,gBACA,qBACA,eACA,qBAGF,kCACE,kBACA,MACA,OACA,QACA,SACA,aACA,mBACA,oBACA,WAGF,sBACE,kBAGF,YACE,cAEA,gEAEE,kBAGF,yHAGE,yBACA,gBACA,gBACA,SAIA,2DACE,kBACA,aACA,gBACA,YACA,gBAEA,+DACE,0CAMJ,uEACE,qBAIJ,+BACE,gBACA,YAEA,2FAEE,oBACA,qBACA,eACA,SACA,SACA,eACA,wBACA,gBACA,iCACA,YACA,mBACA,sBACA,iBACA,kBACA,cACA,mBAGF,6CACE,mBACA,uCACA,WACA,qBACA,iBAMJ,uBACE,2BAEF,0BACE,iBACA,WACA,aACA,mBACA,uBAEF,kEAEE,gBAGF,6BACE,kBACA,mBACA,mBACA,gBACA,SACA,WAEA,oCARF,6BASI,UAIJ,wDACE,mBAGF,qEAEE,mBACA,kSAGA,0BACA,eACA,sBACA,UACA,gBACA,WACA,qBACA,+DAIJ,kBACE,gB","file":"analytics/admin-866190a9.css","sourcesContent":["* {\n box-sizing: inherit;\n}\n\n@import \"../scss/admin.scss\";\n@import \"../scss/datatable.scss\";\n@import \"./scss/utility.scss\";\n@import \"./scss/layout.scss\";\n@import \"./scss/typography.scss\";\n@import \"./scss/notices.scss\";\n@import \"./scss/components.scss\";\n\n:root {\n --wp-admin-theme-color: #7c3aed !important;\n --wp-admin-theme-color-darker-10: #6127c7 !important;\n --wp-admin-theme-color-darker-20: #501ea5 !important;\n // --litepickerDayIsEndBg: var(--wp-admin-theme-color, #7c3aed);\n // --litepickerDayIsStartBg: var(--wp-admin-theme-color, #7c3aed);\n --litepickerDayIsInRange: #f3f3f3;\n // --litepickerDayIsTodayColor: var(--wp-admin-theme-color, #7c3aed);\n\n --litepicker-container-months-color-bg: #fff;\n --litepicker-container-months-box-shadow-color: #ddd;\n --litepicker-footer-color-bg: #fafafa;\n --litepicker-footer-box-shadow-color: #ddd;\n --litepicker-tooltip-color-bg: #fff;\n --litepicker-month-header-color: #333;\n --litepicker-button-prev-month-color: #9e9e9e;\n --litepicker-button-next-month-color: #9e9e9e;\n --litepicker-button-prev-month-color-hover: var(\n --wp-admin-theme-color,\n #7c3aed\n );\n --litepicker-button-next-month-color-hover: var(\n --wp-admin-theme-color,\n #7c3aed\n );\n --litepicker-month-width: calc(var(--litepicker-day-width) * 7);\n --litepicker-month-weekday-color: #9e9e9e;\n --litepicker-month-week-number-color: #9e9e9e;\n --litepicker-day-width: 38px;\n --litepicker-day-color: #333;\n --litepicker-day-color-hover: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-is-today-color: #f44336;\n --litepicker-is-in-range-color: #7c3aed1f;\n --litepicker-is-locked-color: #9e9e9e;\n --litepicker-is-start-color: #fff;\n --litepicker-is-start-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-is-end-color: #fff;\n --litepicker-is-end-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-button-cancel-color: #fff;\n --litepicker-button-cancel-color-bg: #9e9e9e;\n --litepicker-button-apply-color: #fff;\n --litepicker-button-apply-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-button-reset-color: #909090;\n --litepicker-button-reset-color-hover: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-highlighted-day-color: #333;\n --litepicker-highlighted-day-color-bg: #ffeb3b;\n}\n\n.presto-player__stat-card {\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n h1 {\n font-size: 3rem;\n margin-bottom: 0.4em;\n }\n}\n\n.presto-options__pro-badge {\n margin: 0 4px;\n line-height: 1;\n background: var(--wp-admin-theme-color);\n color: white;\n padding: 3px 6px;\n border-radius: 9999px;\n font-size: 10px;\n display: inline-block;\n}\n\n.presto-options__disabled-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-self: center;\n z-index: 99;\n}\n\n.presto-options__card {\n position: relative;\n}\n\n.litepicker {\n font-size: 1em;\n\n .container__days > div,\n .container__days > a {\n margin-bottom: 5px;\n }\n\n .container__months,\n .container__footer,\n .container__main .container__predefined-ranges {\n border: 1px solid #e0e0e0;\n box-shadow: none;\n border-radius: 0;\n margin: 0;\n }\n\n .container__main {\n .container__predefined-ranges {\n margin-right: -1px;\n padding: 16px;\n max-width: 125px;\n width: 125px;\n border-radius: 0;\n\n > div {\n color: var(--wp-admin-theme-color, #007cba);\n }\n }\n }\n\n .container__months {\n .month-item-header div > .month-item-year {\n padding: 0 24px 0 8px;\n }\n }\n\n .container__footer {\n margin-top: -1px;\n padding: 8px;\n\n .button-cancel,\n .button-apply {\n display: inline-flex;\n text-decoration: none;\n font-size: 13px;\n margin: 0;\n border: 0;\n cursor: pointer;\n -webkit-appearance: none;\n background: none;\n transition: box-shadow 0.1s linear;\n height: 36px;\n align-items: center;\n box-sizing: border-box;\n padding: 6px 12px;\n border-radius: 2px;\n color: #1e1e1e;\n white-space: nowrap;\n }\n\n .button-apply {\n background: #007cba;\n background: var(--wp-admin-theme-color);\n color: #fff;\n text-decoration: none;\n text-shadow: none;\n }\n }\n}\n\n.presto-settings {\n &__page {\n margin: 25px 25px 25px auto;\n }\n &__loading {\n min-height: 200px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n &__setting,\n &__body .components-card {\n max-width: 800px;\n }\n\n &__navigation {\n margin-left: -20px;\n margin-right: -20px;\n padding-right: 20px;\n position: sticky;\n top: 32px;\n z-index: 99;\n\n @media screen and (max-width: 782px) {\n top: 46px;\n }\n }\n\n .components-snackbar.is-snackbar-error {\n background: #cc1818;\n }\n\n &__date-select,\n &__date-select:disabled {\n padding-right: 30px;\n background: #fff\n url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E)\n no-repeat right 5px top 55%;\n background-size: 16px 16px;\n cursor: pointer;\n vertical-align: middle;\n opacity: 1;\n box-shadow: none;\n color: #444;\n border-color: #757575;\n user-select: none;\n }\n}\n\n.is-color-control {\n max-width: 250px;\n}\n",".presto-inline-edit {\n &__text {\n display: inline;\n margin: 0;\n margin-right: 8px;\n }\n &__input {\n flex-grow: 1;\n max-width: 640px;\n input {\n height: 36px;\n }\n }\n .presto-inline-edit__button {\n margin-right: 4px;\n }\n &__edit {\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n\n width: 28px;\n height: 28px;\n border-radius: 50%;\n border: none;\n opacity: 0.5;\n color: #fff;\n background-color: var(--wp-admin-theme-color);\n\n &:hover {\n opacity: 1;\n background-color: var(--wp-admin-theme-color-darker-10);\n }\n }\n &--editing {\n align-items: stretch;\n }\n}\n",".datatable{\n display: flex;\n flex-direction: column;\n background: #fff;\n border: 1px solid rgb(226, 228, 231);\n .table-card{\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom:none ;\n border:none;\n }\n .pagination{\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: none;\n margin-top:auto;\n border:none;\n }\n}",".presto-flow > * + * {\n margin-top: var(--presto-flow-space, 2em);\n}\n.presto-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100px;\n}\n\ntable.presto-table {\n width: 100%;\n border-collapse: collapse;\n\n td {\n h2,\n h3 {\n margin: 0 0 8px 0;\n }\n }\n\n &.is-clickable {\n td {\n cursor: pointer;\n transition: background-color 0.25s ease;\n }\n\n tr:hover td {\n background-color: #f3f3f3;\n }\n }\n\n th,\n td {\n text-align: left;\n padding: 0.65rem;\n border-top: 1px solid rgb(226, 228, 231);\n }\n\n tr:first-child td {\n border-top: none;\n }\n\n th {\n color: #757575;\n background-color: #f7f7f7;\n border: none;\n font-size: 10px;\n font-weight: bold;\n text-transform: uppercase;\n letter-spacing: 1px;\n }\n}\n\n/*\n\tMax width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.\n\t*/\n@media only screen and (max-width: 760px),\n (min-device-width: 768px) and (max-device-width: 1024px) {\n table.presto-table {\n display: block;\n\n /* Force table to not be like tables anymore */\n thead,\n tbody,\n th,\n td,\n tr {\n display: block;\n }\n\n /* Hide table headers (but not display: none;, for accessibility) */\n thead tr {\n position: absolute;\n top: -9999px;\n left: -9999px;\n }\n\n tr {\n margin: 0 0 1rem 0;\n }\n\n tr:nth-child(odd) {\n background: #f3f3f3;\n }\n\n td {\n /* Behave like a \"row\" */\n border: none;\n border-bottom: 1px solid #fff;\n position: relative;\n padding: 10px;\n padding-left: 50%;\n }\n\n td:before {\n /* Now like a table header */\n position: absolute;\n /* Top/left values mimic padding */\n top: 10px;\n left: 10px;\n width: 45%;\n padding-right: 10px;\n white-space: nowrap;\n }\n\n td:before {\n content: attr(data-title);\n font-weight: bold;\n }\n }\n}\n",".presto-dashboard {\n &__row {\n --spacing: 1rem;\n --column-count: 2;\n\n display: flex;\n flex-wrap: wrap;\n margin: 0 calc(var(--spacing) * -0.5);\n align-items: stretch;\n justify-content: space-between;\n }\n\n &__item {\n flex: 0 1 33.33%;\n padding: calc(var(--spacing) / 3);\n width: 33.33%;\n\n > * {\n height: 100%;\n }\n\n &.is-large {\n flex: 1;\n }\n }\n\n &__header {\n background: #fff;\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n &__logo {\n max-width: 175px;\n }\n &__content {\n margin: 25px 0;\n width: calc(100% - 20px);\n }\n &__body {\n max-width: 800px;\n margin-left: auto;\n margin-right: auto;\n }\n}\n@media (max-width:767px){\n .presto-dashboard{\n &__row{\n display: block;\n }\n &__item{\n width:100%;\n }\n }\n}",".presto-dashboard {\n &__title {\n line-height: 1em;\n }\n}\n",".presto-settings-page-notices.components-snackbar-list {\n position: fixed !important;\n left: auto;\n right: 40px;\n bottom: 40px;\n width: auto;\n}\n",".presto-card {\n &__title {\n opacity: 0.75;\n font-size: 1rem;\n clear: both;\n margin: 0.75rem 0;\n }\n}\n\n.presto-player-dashboard {\n &__version {\n line-height: 1;\n padding: 6px 12px;\n background: #f1f1f1;\n color: #666;\n font-weight: 500;\n border-radius: 999px;\n }\n\n &__header {\n background: #fff;\n margin-left: -20px;\n margin-right: -20px;\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n max-width: calc(100% + 20px);\n }\n\n &__logo {\n max-height: 30px;\n max-width: 200px;\n }\n}\n\n.presto-module-tabs [role=\"tablist\"] {\n border-bottom: 1px solid rgb(226, 228, 231);\n}\n\n.presto-badge {\n border-radius: 9999px;\n border: 1px solid var(--wp-admin-theme-color, #007cba);\n color: var(--wp-admin-theme-color, #007cba);\n padding: 5px 10px;\n line-height: 1;\n white-space: nowrap;\n display: inline-block;\n}\n\n.apexcharts-xaxis text,\n.apexcharts-yaxis text {\n opacity: 0.35;\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/admin/analytics/analytics.scss","webpack:///./src/admin/scss/admin.scss","webpack:///./src/admin/scss/datatable.scss","webpack:///./src/admin/analytics/scss/utility.scss","webpack:///./src/admin/analytics/scss/layout.scss","webpack:///./src/admin/analytics/scss/typography.scss","webpack:///./src/admin/analytics/scss/notices.scss","webpack:///./src/admin/analytics/scss/components.scss"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,EACE,6CCCE,eAEA,iBAEF,2BACE,YACA,gBACA,iCACE,YAGJ,gDACE,iBAEF,0BACE,eACA,oBACA,uBACA,mBAEA,WACA,YACA,kBACA,YACA,WACA,WACA,6CAEA,gCACE,UACA,uDAGJ,6BACE,oBCpCJ,WACE,aACA,sBACA,gBACA,yBACA,uBACE,4BACA,6BAEA,YAEF,uBACE,yBACA,0BAEA,gBACA,YChBJ,iBACE,wCAEF,gBACE,aACA,mBACA,uBACA,iBAGF,mBACE,WACA,yBAGE,kDAEE,eAKF,mCACE,eACA,sCAGF,4CACE,yBAIJ,4CAEE,gBACA,eACA,6BAGF,qCACE,gBAGF,sBACE,cACA,yBACA,YACA,eACA,gBACA,yBACA,mBAOJ,+FAMI,uIAKE,cAIF,4BACE,kBACA,YACA,aAGF,sBACE,gBAGF,qCACE,mBAGF,sBAGE,yCACA,kBAEA,2BAGF,6BAEE,kBAEA,SACA,UACA,UACA,mBACA,mBAIA,yBACA,eALA,CAKA,CC3GJ,uBACE,eACA,iBAEA,aACA,eACA,mCACA,oBACA,8BAGF,wBACE,gBACA,+BACA,aAEA,0BACE,YAGF,iCACE,OAIJ,0BACE,gBACA,aACA,aACA,mBACA,8BAEF,wBACE,gBAEF,2BACE,cACA,wBAEF,wBACE,gBACA,iBACA,kBAGJ,wBAEI,uBACE,cAEF,wBACE,YCnDJ,yBACE,gBCFJ,uDACE,yBACA,UACA,WACA,YACA,WCJA,oBACE,YACA,eACA,WACA,gBAKF,kCACE,cACA,iBACA,mBACA,WACA,gBACA,oBAGF,iCACE,gBACA,kBACA,mBACA,aACA,aACA,mBACA,8BACA,4BAGF,+BACE,gBACA,gBAIJ,mCACE,gCAGF,cACE,qBACA,qDACA,0CACA,iBACA,cACA,mBACA,qBAGF,8CAEE,YPxCF,MACE,yCACA,mDACA,mDAGA,iCAGA,4CACA,oDACA,qCACA,0CACA,mCACA,qCACA,6CACA,6CACA,+EAIA,+EAIA,6DACA,yCACA,6CACA,4BACA,4BACA,iEACA,oCACA,oEACA,qCACA,iCACA,mEACA,+BACA,iEACA,sCACA,4CACA,qCACA,uEACA,wCACA,0EACA,wCACA,8CAGF,0BACE,aACA,mBACA,uBACA,kBAEA,6BACE,eACA,mBAIJ,2BACE,aACA,cACA,uCACA,WACA,gBACA,qBACA,eACA,qBAGF,kCACE,kBACA,MACA,OACA,QACA,SACA,aACA,mBACA,oBACA,WAGF,sBACE,kBAGF,YACE,cAEA,gEAEE,kBAGF,yHAGE,yBACA,gBACA,gBACA,SAIA,2DACE,kBACA,aACA,gBACA,YACA,gBAEA,+DACE,0CAMJ,uEACE,qBAIJ,+BACE,gBACA,YAEA,2FAEE,oBACA,qBACA,eACA,SACA,SACA,eACA,wBACA,gBACA,iCACA,YACA,mBACA,sBACA,iBACA,kBACA,cACA,mBAGF,6CACE,mBACA,uCACA,WACA,qBACA,iBAMJ,uBACE,2BAEF,0BACE,iBACA,WACA,aACA,mBACA,uBAEF,kEAEE,gBAGF,6BACE,kBACA,mBACA,mBACA,wCACA,SACA,WAEA,oCARF,6BASI,UAIJ,wDACE,mBAGF,qEAEE,mBACA,kSAGA,0BACA,eACA,sBACA,UACA,gBACA,WACA,qBACA,+DAIJ,kBACE,gB","file":"analytics/admin-7f8d2917.css","sourcesContent":["* {\n box-sizing: inherit;\n}\n\n@import \"../scss/admin.scss\";\n@import \"../scss/datatable.scss\";\n@import \"./scss/utility.scss\";\n@import \"./scss/layout.scss\";\n@import \"./scss/typography.scss\";\n@import \"./scss/notices.scss\";\n@import \"./scss/components.scss\";\n\n:root {\n --wp-admin-theme-color: #7c3aed !important;\n --wp-admin-theme-color-darker-10: #6127c7 !important;\n --wp-admin-theme-color-darker-20: #501ea5 !important;\n // --litepickerDayIsEndBg: var(--wp-admin-theme-color, #7c3aed);\n // --litepickerDayIsStartBg: var(--wp-admin-theme-color, #7c3aed);\n --litepickerDayIsInRange: #f3f3f3;\n // --litepickerDayIsTodayColor: var(--wp-admin-theme-color, #7c3aed);\n\n --litepicker-container-months-color-bg: #fff;\n --litepicker-container-months-box-shadow-color: #ddd;\n --litepicker-footer-color-bg: #fafafa;\n --litepicker-footer-box-shadow-color: #ddd;\n --litepicker-tooltip-color-bg: #fff;\n --litepicker-month-header-color: #333;\n --litepicker-button-prev-month-color: #9e9e9e;\n --litepicker-button-next-month-color: #9e9e9e;\n --litepicker-button-prev-month-color-hover: var(\n --wp-admin-theme-color,\n #7c3aed\n );\n --litepicker-button-next-month-color-hover: var(\n --wp-admin-theme-color,\n #7c3aed\n );\n --litepicker-month-width: calc(var(--litepicker-day-width) * 7);\n --litepicker-month-weekday-color: #9e9e9e;\n --litepicker-month-week-number-color: #9e9e9e;\n --litepicker-day-width: 38px;\n --litepicker-day-color: #333;\n --litepicker-day-color-hover: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-is-today-color: #f44336;\n --litepicker-is-in-range-color: #7c3aed1f;\n --litepicker-is-locked-color: #9e9e9e;\n --litepicker-is-start-color: #fff;\n --litepicker-is-start-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-is-end-color: #fff;\n --litepicker-is-end-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-button-cancel-color: #fff;\n --litepicker-button-cancel-color-bg: #9e9e9e;\n --litepicker-button-apply-color: #fff;\n --litepicker-button-apply-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-button-reset-color: #909090;\n --litepicker-button-reset-color-hover: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-highlighted-day-color: #333;\n --litepicker-highlighted-day-color-bg: #ffeb3b;\n}\n\n.presto-player__stat-card {\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n h1 {\n font-size: 3rem;\n margin-bottom: 0.4em;\n }\n}\n\n.presto-options__pro-badge {\n margin: 0 4px;\n line-height: 1;\n background: var(--wp-admin-theme-color);\n color: white;\n padding: 3px 6px;\n border-radius: 9999px;\n font-size: 10px;\n display: inline-block;\n}\n\n.presto-options__disabled-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-self: center;\n z-index: 99;\n}\n\n.presto-options__card {\n position: relative;\n}\n\n.litepicker {\n font-size: 1em;\n\n .container__days > div,\n .container__days > a {\n margin-bottom: 5px;\n }\n\n .container__months,\n .container__footer,\n .container__main .container__predefined-ranges {\n border: 1px solid #e0e0e0;\n box-shadow: none;\n border-radius: 0;\n margin: 0;\n }\n\n .container__main {\n .container__predefined-ranges {\n margin-right: -1px;\n padding: 16px;\n max-width: 125px;\n width: 125px;\n border-radius: 0;\n\n > div {\n color: var(--wp-admin-theme-color, #007cba);\n }\n }\n }\n\n .container__months {\n .month-item-header div > .month-item-year {\n padding: 0 24px 0 8px;\n }\n }\n\n .container__footer {\n margin-top: -1px;\n padding: 8px;\n\n .button-cancel,\n .button-apply {\n display: inline-flex;\n text-decoration: none;\n font-size: 13px;\n margin: 0;\n border: 0;\n cursor: pointer;\n -webkit-appearance: none;\n background: none;\n transition: box-shadow 0.1s linear;\n height: 36px;\n align-items: center;\n box-sizing: border-box;\n padding: 6px 12px;\n border-radius: 2px;\n color: #1e1e1e;\n white-space: nowrap;\n }\n\n .button-apply {\n background: #007cba;\n background: var(--wp-admin-theme-color);\n color: #fff;\n text-decoration: none;\n text-shadow: none;\n }\n }\n}\n\n.presto-settings {\n &__page {\n margin: 25px 25px 25px auto;\n }\n &__loading {\n min-height: 200px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n &__setting,\n &__body .components-card {\n max-width: 800px;\n }\n\n &__navigation {\n margin-left: -20px;\n margin-right: -20px;\n padding-right: 20px;\n position: sticky;\n top: 32px;\n z-index: 99;\n\n @media screen and (max-width: 782px) {\n top: 46px;\n }\n }\n\n .components-snackbar.is-snackbar-error {\n background: #cc1818;\n }\n\n &__date-select,\n &__date-select:disabled {\n padding-right: 30px;\n background: #fff\n url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E)\n no-repeat right 5px top 55%;\n background-size: 16px 16px;\n cursor: pointer;\n vertical-align: middle;\n opacity: 1;\n box-shadow: none;\n color: #444;\n border-color: #757575;\n user-select: none;\n }\n}\n\n.is-color-control {\n max-width: 250px;\n}\n",".presto-inline-edit {\n &__text {\n display: inline;\n margin: 0;\n margin-right: 8px;\n }\n &__input {\n flex-grow: 1;\n max-width: 640px;\n input {\n height: 36px;\n }\n }\n .presto-inline-edit__button {\n margin-right: 4px;\n }\n &__edit {\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n\n width: 28px;\n height: 28px;\n border-radius: 50%;\n border: none;\n opacity: 0.5;\n color: #fff;\n background-color: var(--wp-admin-theme-color);\n\n &:hover {\n opacity: 1;\n background-color: var(--wp-admin-theme-color-darker-10);\n }\n }\n &--editing {\n align-items: stretch;\n }\n}\n",".datatable {\n display: flex;\n flex-direction: column;\n background: #fff;\n border: 1px solid rgb(226, 228, 231);\n .table-card {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom: none;\n border: none;\n }\n .pagination {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: none;\n margin-top: auto;\n border: none;\n }\n}\n",".presto-flow > * + * {\n margin-top: var(--presto-flow-space, 2em);\n}\n.presto-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100px;\n}\n\ntable.presto-table {\n width: 100%;\n border-collapse: collapse;\n\n td {\n h2,\n h3 {\n margin: 0 0 8px 0;\n }\n }\n\n &.is-clickable {\n td {\n cursor: pointer;\n transition: background-color 0.25s ease;\n }\n\n tr:hover td {\n background-color: #f3f3f3;\n }\n }\n\n th,\n td {\n text-align: left;\n padding: 0.65rem;\n border-top: 1px solid rgb(226, 228, 231);\n }\n\n tr:first-child td {\n border-top: none;\n }\n\n th {\n color: #757575;\n background-color: #f7f7f7;\n border: none;\n font-size: 10px;\n font-weight: bold;\n text-transform: uppercase;\n letter-spacing: 1px;\n }\n}\n\n/*\n\tMax width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.\n\t*/\n@media only screen and (max-width: 760px),\n (min-device-width: 768px) and (max-device-width: 1024px) {\n table.presto-table {\n display: block;\n\n /* Force table to not be like tables anymore */\n thead,\n tbody,\n th,\n td,\n tr {\n display: block;\n }\n\n /* Hide table headers (but not display: none;, for accessibility) */\n thead tr {\n position: absolute;\n top: -9999px;\n left: -9999px;\n }\n\n tr {\n margin: 0 0 1rem 0;\n }\n\n tr:nth-child(odd) {\n background: #f3f3f3;\n }\n\n td {\n /* Behave like a \"row\" */\n border: none;\n border-bottom: 1px solid #fff;\n position: relative;\n padding: 10px;\n padding-left: 50%;\n }\n\n td:before {\n /* Now like a table header */\n position: absolute;\n /* Top/left values mimic padding */\n top: 10px;\n left: 10px;\n width: 45%;\n padding-right: 10px;\n white-space: nowrap;\n }\n\n td:before {\n content: attr(data-title);\n font-weight: bold;\n }\n }\n}\n",".presto-dashboard {\n &__row {\n --spacing: 1rem;\n --column-count: 2;\n\n display: flex;\n flex-wrap: wrap;\n margin: 0 calc(var(--spacing) * -0.5);\n align-items: stretch;\n justify-content: space-between;\n }\n\n &__item {\n flex: 0 1 33.33%;\n padding: calc(var(--spacing) / 3);\n width: 33.33%;\n\n > * {\n height: 100%;\n }\n\n &.is-large {\n flex: 1;\n }\n }\n\n &__header {\n background: #fff;\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n &__logo {\n max-width: 175px;\n }\n &__content {\n margin: 25px 0;\n width: calc(100% - 20px);\n }\n &__body {\n max-width: 800px;\n margin-left: auto;\n margin-right: auto;\n }\n}\n@media (max-width: 767px) {\n .presto-dashboard {\n &__row {\n display: block;\n }\n &__item {\n width: 100%;\n }\n }\n}\n",".presto-dashboard {\n &__title {\n line-height: 1em;\n }\n}\n",".presto-settings-page-notices.components-snackbar-list {\n position: fixed !important;\n left: auto;\n right: 40px;\n bottom: 40px;\n width: auto;\n}\n",".presto-card {\n &__title {\n opacity: 0.75;\n font-size: 1rem;\n clear: both;\n margin: 0.75rem 0;\n }\n}\n\n.presto-player-dashboard {\n &__version {\n line-height: 1;\n padding: 6px 12px;\n background: #f1f1f1;\n color: #666;\n font-weight: 500;\n border-radius: 999px;\n }\n\n &__header {\n background: #fff;\n margin-left: -20px;\n margin-right: -20px;\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n max-width: calc(100% + 20px);\n }\n\n &__logo {\n max-height: 30px;\n max-width: 200px;\n }\n}\n\n.presto-module-tabs [role=\"tablist\"] {\n border-bottom: 1px solid rgb(226, 228, 231);\n}\n\n.presto-badge {\n border-radius: 9999px;\n border: 1px solid var(--wp-admin-theme-color, #007cba);\n color: var(--wp-admin-theme-color, #007cba);\n padding: 5px 10px;\n line-height: 1;\n white-space: nowrap;\n display: inline-block;\n}\n\n.apexcharts-xaxis text,\n.apexcharts-yaxis text {\n opacity: 0.35;\n}\n"],"sourceRoot":""}
dist/analytics/admin-8458c3ef.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///external [\"wp\",\"apiFetch\"]","webpack:///external [\"wp\",\"components\"]","webpack:///./src/router/utils.js","webpack:///./src/router/context.js","webpack:///./src/router/route.js","webpack:///./src/router/link.js","webpack:///./src/router/index.js","webpack:///./src/admin/analytics/pages/illustration.js","webpack:///./src/admin/analytics/pages/AnalyticsUpgrade.js","webpack:///./src/admin/analytics/hocs/withDataList.js","webpack:///./src/admin/analytics/util.js","webpack:///./src/admin/settings/components/Loading.js","webpack:///./src/admin/ui/Pagination.js","webpack:///./src/admin/ui/Table.js","webpack:///./src/admin/analytics/components/DataTable.js","webpack:///./src/admin/analytics/components/TopUsers.js","webpack:///./src/admin/analytics/components/TopVideos.js","webpack:///./src/shared/services/fetch.js","webpack:///./src/admin/analytics/components/TotalViewsGraph.js","webpack:///./src/admin/analytics/components/TotalWatchGraph.js","webpack:///./src/admin/analytics/components/OverviewPanel.js","webpack:///./src/admin/analytics/components/DatePicker.js","webpack:///./src/admin/analytics/pages/Dashboard.js","webpack:///./src/admin/ui/StatCard.js","webpack:///./src/admin/analytics/hocs/withStat.js","webpack:///./src/admin/analytics/components/TotalVideoViewsByUser.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTimeByUser.js","webpack:///./src/admin/analytics/components/VideoTotalWatchTimeByUser.js","webpack:///./src/admin/analytics/pages/User.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTime.js","webpack:///./src/admin/analytics/components/VideoTimeline.js","webpack:///./src/admin/analytics/components/VideoViews.js","webpack:///../../../src/components/react-component-lib/utils/case.ts","webpack:///../../../src/components/react-component-lib/utils/attachProps.ts","webpack:///../../../src/components/react-component-lib/utils/index.tsx","webpack:///../../src/components/react-component-lib/createComponent.tsx","webpack:///../src/components/index.ts","webpack:///./src/admin/blocks/util.js","webpack:///./src/admin/blocks/shared/Player.js","webpack:///./src/admin/analytics/pages/Video.js","webpack:///./src/admin/analytics/routes.js","webpack:///./src/admin/analytics/App.js","webpack:///./src/admin/analytics/index.js"],"names":["module","exports","window","locationToRoute","location","path","pathname","hash","query","qs","parse","search","history","createBrowserHistory","RouterContext","wp","element","createContext","route","useContext","prev","Route","onRoute","children","matched","match","checkMatch","substr","cloneElement","Router","props","setState","routes","Object","keys","map","key","unlisten","listen","handleRouteChange","state","defaultRoute","this","NotFound","push","forEach","name","isMatched","data","routerContextValue","is404","Provider","value","Component","width","height","id","data-name","xmlns","xmlnsXlink","viewBox","x1","y1","x2","y2","gradientUnits","offset","stop-color","stop-opacity","xlinkHref","transform","x","y","fill","gradientTransform","opacity","clip-path","points","cx","cy","r","d","__","i18n","components","Flex","FlexItem","FlexBlock","style","padding","background","marginLeft","href","target","className","apiFetch","useState","createHigherOrderComponent","compose","WrappedComponent","loading","setLoading","page","setPage","total","setTotal","totalPages","setTotalPages","setData","error","setError","fetchData","a","endpoint","params","url","addQueryArgs","per_page","then","res","headers","parseInt","get","json","responseData","console","message","sprintf","convertDateTimeToAbsoluteDate","dateTime","Date","getTimezoneOffset","getTime","toISOString","split","Spinner","align","justify","Card","CardBody","Button","ButtonGroup","useEffect","perPage","hasPrevious","setHasPrevious","hasNext","setHasNext","end","setEnd","start","setStart","Math","min","size","isSecondary","disabled","onClick","max","useRef","columns","onRowClick","title","length","role","classNames","column","label","row","rowIndex","columnIndex","data-title","aria-label","render","onSelect","Loading","Table","Pagination","withDataList","startDate","endDate","user","stats","DataTable","userId","user_id","marginBottom","wordBreak","video","color","use","createNonceMiddleware","prestoPlayer","nonce","createRootURLMiddleware","root","prestoVersionString","totalViews","setTotalViews","series","setSeries","chart","options","toolbar","show","yaxis","labels","formatter","num","abs","sign","toFixed","colors","xaxis","type","setHours","dataLabels","enabled","stroke","curve","gradient","shadeIntensity","opacityFrom","opacityTo","stops","fetchViews","jQuery","param","item","date_time","catch","e","finally","averageTime","setAverageTime","fetchMinutes","savedSeconds","hours","minutes","seconds","out","average","parseFloat","floor","Panel","TabPanel","tabs","tab","TotalViewsGraph","TotalWatchGraph","setStartDate","setEndDate","dateRef","inputSize","setInputSize","Litepicker","current","singleMode","format","autoApply","plugins","maxDate","numberOfMonths","buttonText","apply","cancel","dropdowns","minYear","maxYear","months","years","setup","picker","setDateRange","on","dateInstance","ref","noticeStatus","setNoticeStatus","post","presto_player_analytics","enable","DatePicker","OverviewPanel","TopUsers","TopVideos","MyNotice","css","status","isDismissible","stat","setStat","withStat","StatCard","view","User","setUser","getUser","code","wrap","email","isSmall","TotalVideoViewsByUser","VideoAverageWatchTimeByUser","VideoTotalWatchTimeByUser","video_id","watch_time","tickAmount","currentClass","getProvider","src","indexOf","useSelect","preset","branding","attributes","adminPreview","currentTime","preload","overlays","chapters","mutedOverlay","mutedPreview","youtube","select","playerCSS","border_radius","caption_background","email_collection","logo_width","PrestoPlayer","isAdmin","bunny","thumbnail","previewThumbnail","preview","channelId","channel_id","tracks","captions","kind","srclang","default","blockAttributes","poster","provider","slot","position","left","focalPoint","top","TextControl","Video","setVideo","thisName","setThisName","editing","setEditing","getVideo","putVideo","log","method","_method","saved","genericError","cancelEditing","onChange","isPrimary","VideoViews","Player","play","progress","VideoAverageWatchTime","VideoTimeline","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X,KAAM,KAERuL,MAAO,CACLvL,KAAM,cAERgL,KAAM,CACJhL,KAAM,cCRF2F,GAAajF,GAAGC,QAAhBgF,SAWO,cAAO,IAAD,EACbuR,EAAc,WAClBrX,OAAOsX,SAAS,EAAG,IAGrB,EAAkCxR,GAChC,IAAIkC,KAAKA,KAAKuP,MAAQ,SADxB,mBAAOtM,EAAP,KAAkBuE,EAAlB,KAGA,EAA8B1J,GAAS,IAAIkC,MAA3C,mBAAOkD,EAAP,KAAgBuE,EAAhB,KAEA,OAAI,UAAC3D,oBAAD,OAAC,EAAc0L,UASjB,2BAAK5R,UAAU,6BACb,oBAAC,EAAD,CAAQ9D,OAAQA,IACd,oBAACX,EAAD,CAAOhB,KAAM2B,GAAOsV,UAAUjX,KAAMiB,QAASiW,GAC3C,oBAACI,GAAD,CACExM,UAAWA,EACXC,QAASA,EACTsE,aAAcA,EACdC,WAAYA,KAGhB,oBAACtO,EAAD,CAAOhB,KAAM2B,GAAO4J,MAAMvL,KAAMiB,QAASiW,GACvC,oBAAC,GAAD,CACEpM,UAAWA,EACXC,QAASA,EACTsE,aAAcA,EACdC,WAAYA,KAGhB,oBAACtO,EAAD,CAAOhB,KAAM2B,GAAOqJ,KAAKhL,KAAMiB,QAASiW,GACtC,oBAAC,GAAD,CACEpM,UAAWA,EACXC,QAASA,EACTsE,aAAcA,EACdC,WAAYA,OA9BlB,2BAAK7J,UAAU,6BACb,oBAAC8R,EAAD,SCTR/M,EAfmB9J,GAAGC,QAAd6J,QAeD,oBAACgN,GAAD,MAASC,SAASC,eAAe,4B","file":"analytics/admin-8458c3ef.js","sourcesContent":["(function() { module.exports = window[\"wp\"][\"apiFetch\"]; }());","(function() { module.exports = window[\"wp\"][\"components\"]; }());","import qs from \"querystringify\";\nexport function locationToRoute(location) {\n // location comes from the history package\n return {\n path: location.pathname,\n hash: location.hash,\n query: qs.parse(location.search),\n };\n}\n","import { createBrowserHistory } from \"history\";\nimport { locationToRoute } from \"./utils\";\n\nexport const history = createBrowserHistory();\nexport const RouterContext = wp.element.createContext({\n route: locationToRoute(history.location),\n});\n","import { RouterContext } from \"./context\";\nconst { useContext } = wp.element;\nimport { match } from \"path-to-regexp\";\nlet prev = \"\";\n\nexport function Route({ path, onRoute, children }) {\n // Extract route from RouterContext\n const { route } = useContext(RouterContext);\n\n const checkMatch = match(`${path}`);\n const matched = checkMatch(`${route.hash.substr(1)}`);\n\n if (!matched) {\n return null;\n }\n\n if (onRoute) {\n if (prev !== matched.path) {\n onRoute();\n }\n prev = matched.path;\n }\n\n return <div>{wp.element.cloneElement(children, { route: matched })}</div>;\n}\n","const { useContext } = wp.element;\nimport { RouterContext, history } from \"./context\";\nimport classNames from \"classnames\";\nimport { match } from \"path-to-regexp\";\n\nexport function Link(props) {\n const { to, onClick, children, activeClassName } = props;\n const { route } = useContext(RouterContext);\n\n let state = { ...props };\n delete state.activeClassName;\n\n const isActive = () => {\n const checkMatch = match(`${to}`);\n return checkMatch(`${route.hash.substr(1)}`);\n };\n\n const handleClick = (e) => {\n e.preventDefault();\n // Dont' navigate if current path\n if (route.path === to) {\n return;\n }\n // Trigger onClick prop manually\n if (onClick) {\n onClick(e);\n }\n // Use history API to navigate page\n history.push(`#${to}`);\n };\n\n return (\n <a\n {...state}\n className={classNames({ [activeClassName]: isActive() }, props.className)}\n onClick={handleClick}\n >\n {children}\n </a>\n );\n}\n","const { Component } = wp.element;\nimport { locationToRoute } from \"./utils\";\nimport { history, RouterContext } from \"./context\";\nimport { Route } from \"./route\";\nimport { Link } from \"./link\";\nimport { match } from \"path-to-regexp\";\n\nclass Router extends Component {\n constructor(props) {\n super(props);\n\n // Convert our routes into an array for easy 404 checking\n this.routes = Object.keys(props.routes).map(\n (key) => props.routes[key].path\n );\n\n // Listen for path changes from the history API\n this.unlisten = history.listen(this.handleRouteChange);\n\n const route = locationToRoute(history.location);\n\n // Define the initial RouterContext value\n this.state = {\n route,\n defaultRoute: props?.defaultRoute ? `#${props?.defaultRoute}` : \"#/\",\n };\n }\n\n componentWillUnmount() {\n // Stop listening for changes if the Router component unmounts\n this.unlisten();\n }\n\n handleRouteChange = (location) => {\n const route = locationToRoute(location?.location);\n this.setState({ route: route });\n };\n\n render() {\n // Define our variables\n const { children, NotFound } = this.props;\n const { route, defaultRoute } = this.state;\n\n if (!route.hash) {\n history.push(defaultRoute);\n return <div></div>;\n }\n\n let matched = false;\n // match route\n (this.routes || []).forEach((name) => {\n const checkMatch = match(route.hash.substr(1));\n const isMatched = checkMatch(`${route.hash.substr(1)}`);\n if (!isMatched) {\n return;\n }\n matched = {\n name,\n data: isMatched,\n };\n });\n\n const routerContextValue = { route, matched };\n\n // Check if 404 if no route matched\n const is404 = !matched;\n\n return (\n <RouterContext.Provider value={routerContextValue}>\n {is404 ? <div>Not found</div> : children}\n </RouterContext.Provider>\n );\n }\n}\nexport { history, RouterContext, Router, Route, Link };\n","export default ({ width, height }) => {\n return (\n <svg\n id=\"e8f68bdd-4984-4f2e-95b7-7fc8ec281257\"\n data-name=\"Layer 1\"\n width={width}\n height={height}\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 918.14 765.54\"\n >\n <defs>\n <linearGradient\n id=\"27aa7b70-b106-4a00-be67-693c8380e41d\"\n x1=\"397.74\"\n y1=\"717.25\"\n x2=\"397.74\"\n y2=\"86.11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stop-color=\"gray\" stop-opacity=\"0.25\" />\n <stop offset=\"0.54\" stop-color=\"gray\" stop-opacity=\"0.12\" />\n <stop offset=\"1\" stop-color=\"gray\" stop-opacity=\"0.1\" />\n </linearGradient>\n <linearGradient\n id=\"46a816da-c484-41ec-8a6f-fbf14454d910\"\n x1=\"288.88\"\n y1=\"378.44\"\n x2=\"288.88\"\n y2=\"209.65\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"32b634d8-28f1-48d9-a868-f602a2cad942\"\n x1=\"288.88\"\n y1=\"328.29\"\n x2=\"288.88\"\n y2=\"223.1\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"291.55\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"38f1cb81-8fac-4205-a0ff-a33ac00d354c\"\n x1=\"288.88\"\n y1=\"594.94\"\n x2=\"288.88\"\n y2=\"426.14\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"6fc01aaf-135e-403e-a209-43b2a4fe59f1\"\n x1=\"288.88\"\n y1=\"544.79\"\n x2=\"288.88\"\n y2=\"439.6\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"79ce363a-d134-40e4-9f82-b96d04a36978\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"5b44e697-61fe-43bd-9a58-5f3e41301748\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"508.05\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"54803c44-522d-4b9e-9a34-f1f7b43e8483\"\n x1=\"671.57\"\n y1=\"760.34\"\n x2=\"671.57\"\n y2=\"129.2\"\n gradientTransform=\"translate(1109.43 -194.1) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"089a6a47-adaa-499b-aefb-cd6464b62fb8\"\n x1=\"670.96\"\n y1=\"553.63\"\n x2=\"670.96\"\n y2=\"387.28\"\n gradientTransform=\"translate(1129.51 -168.41) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"fd8d88e0-7826-450d-9e0b-001d1be709c2\"\n x1=\"637.66\"\n y1=\"754.12\"\n x2=\"637.66\"\n y2=\"601.05\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"8d1793c5-b76e-44e2-a52e-569460402331\"\n x1=\"778.37\"\n y1=\"673.86\"\n x2=\"778.37\"\n y2=\"569.13\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"4745700d-8097-45ff-9f71-625443fc4ad8\"\n x1=\"778.37\"\n y1=\"774.41\"\n x2=\"778.37\"\n y2=\"713.66\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n </defs>\n <title>secure data</title>\n <g opacity=\"0.5\">\n <rect\n x=\"162.9\"\n y=\"86.11\"\n width=\"469.69\"\n height=\"631.14\"\n fill=\"url(#27aa7b70-b106-4a00-be67-693c8380e41d)\"\n />\n </g>\n <rect\n x=\"169.02\"\n y=\"94.67\"\n width=\"455.01\"\n height=\"609.12\"\n fill=\"#f2f2f2\"\n />\n <rect x=\"204.49\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect\n x=\"204.49\"\n y=\"142.37\"\n width=\"156.56\"\n height=\"4.89\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect x=\"384.29\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"259.8\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"273.25\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"286.7\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"476.29\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"489.75\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"503.2\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"209.65\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#46a816da-c484-41ec-8a6f-fbf14454d910)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"213.32\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"223.1\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#32b634d8-28f1-48d9-a868-f602a2cad942)\"\n />\n </g>\n <rect\n id=\"689f37f3-cc41-448d-b172-63ec123bc985\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"224.32\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)\">\n <polygon\n points=\"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18\"\n fill=\"#6c63ff\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"239\" r=\"11.01\" fill=\"#6c63ff\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"426.14\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"429.81\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"439.6\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)\"\n />\n </g>\n <rect\n id=\"b429ac3a-f8a8-4171-bcce-5b6c002c0714\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"440.82\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#79ce363a-d134-40e4-9f82-b96d04a36978)\">\n <polygon\n points=\"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67\"\n fill=\"#bdbdbd\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"455.5\" r=\"11.01\" fill=\"#bdbdbd\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"349.09\"\n y=\"242.63\"\n width=\"631.14\"\n height=\"469.69\"\n transform=\"translate(-74.16 969.06) rotate(-78.76)\"\n fill=\"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)\"\n />\n </g>\n <rect\n x=\"359.37\"\n y=\"247.33\"\n width=\"609.12\"\n height=\"455.01\"\n transform=\"translate(-72.16 966.22) rotate(-78.76)\"\n fill=\"#fff\"\n />\n <rect\n x=\"523.5\"\n y=\"197.22\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-88.86 -196.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"433.36\"\n y=\"650.7\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-2.18 -170.66) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"428.58\"\n y=\"671.14\"\n width=\"249.52\"\n height=\"4.89\"\n transform=\"translate(1.01 -162.18) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"424.6\"\n y=\"683.47\"\n width=\"92.96\"\n height=\"4.89\"\n transform=\"translate(1.84 -145.91) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"519.57\"\n y=\"209.08\"\n width=\"161.45\"\n height=\"4.89\"\n transform=\"translate(-88.17 -180.2) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"512.84\"\n y=\"249.31\"\n width=\"291.11\"\n height=\"4.89\"\n transform=\"translate(-79.21 -190.76) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"509.47\"\n y=\"255.44\"\n width=\"70.94\"\n height=\"4.89\"\n transform=\"translate(-80.19 -168.52) rotate(11.24)\"\n fill=\"#3ad29f\"\n opacity=\"0.7\"\n />\n <rect\n x=\"501.56\"\n y=\"307.59\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-67.76 -190.54) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"575.87\"\n y=\"357.6\"\n width=\"166.35\"\n height=\"289.88\"\n transform=\"translate(-103.27 983.74) rotate(-78.76)\"\n fill=\"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)\"\n />\n </g>\n <rect\n x=\"516.06\"\n y=\"420.61\"\n width=\"286.22\"\n height=\"162.68\"\n transform=\"translate(-30.42 -186.11) rotate(11.24)\"\n fill=\"#fff\"\n />\n <rect\n x=\"496.08\"\n y=\"335.18\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-62.49 -188.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"547.86\"\n y=\"424.02\"\n width=\"35.47\"\n height=\"118.64\"\n transform=\"translate(-35.84 -168.22) rotate(11.24)\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"606.43\"\n y=\"475.19\"\n width=\"35.47\"\n height=\"79.5\"\n transform=\"translate(-28.56 -179.03) rotate(11.24)\"\n fill=\"#3ad29f\"\n />\n <rect\n x=\"665.23\"\n y=\"523.93\"\n width=\"35.47\"\n height=\"42.81\"\n transform=\"translate(-21.5 -189.92) rotate(11.24)\"\n fill=\"#f55f44\"\n />\n <rect\n x=\"731.91\"\n y=\"492.72\"\n width=\"35.47\"\n height=\"86.84\"\n transform=\"translate(-22.02 -203.09) rotate(11.24)\"\n fill=\"#fdd835\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"128.65\"\n y=\"645.09\"\n width=\"3.67\"\n height=\"20.79\"\n fill=\"#47e6b1\"\n />\n <rect\n x=\"269.58\"\n y=\"712.31\"\n width=\"3.67\"\n height=\"20.79\"\n transform=\"translate(853.2 384.07) rotate(90)\"\n fill=\"#47e6b1\"\n />\n </g>\n <path\n d=\"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#4d8af0\"\n opacity=\"0.5\"\n />\n <path\n d=\"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <path\n d=\"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <circle cx=\"337.81\" cy=\"28.62\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"7.34\" cy=\"317.46\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"863.76\" cy=\"120.36\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"822.17\" cy=\"339.3\" r=\"7.34\" fill=\"#4d8af0\" opacity=\"0.5\" />\n <circle cx=\"37.68\" cy=\"145.22\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"853.29\" cy=\"647.34\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"910.8\" cy=\"430.97\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <rect\n x=\"544.42\"\n y=\"601.05\"\n width=\"186.48\"\n height=\"153.07\"\n fill=\"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)\"\n />\n <path\n d=\"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#8d1793c5-b76e-44e2-a52e-569460402331)\"\n />\n <path\n d=\"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"631.77\"\n width=\"182.24\"\n height=\"90.07\"\n fill=\"#6c63ff\"\n />\n <path\n d=\"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#4745700d-8097-45ff-9f71-625443fc4ad8)\"\n />\n <path\n d=\"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z\"\n transform=\"translate(-140.93 -67.23)\"\n opacity=\"0.2\"\n />\n </svg>\n );\n};\n","const { __ } = wp.i18n;\n\nimport Illustration from \"./illustration\";\nconst { Flex, FlexItem, FlexBlock } = wp.components;\n\nexport default () => {\n return (\n <Flex style={{ padding: \"30px\", background: \"#fff\" }}>\n <FlexItem>\n <Illustration width=\"250px\" />\n </FlexItem>\n <FlexBlock style={{ marginLeft: \"20px\" }}>\n <h1>{__(\"Get detailed video insights.\", \"presto-player\")}</h1>\n <p>\n {__(\n \"Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.\",\n \"presto-player\"\n )}\n </p>\n <a\n href=\"https://prestoplayer.com\"\n target=\"_blank\"\n className=\"button button-primary\"\n >\n {__(\"Learn More\", \"presto-player\")}\n </a>\n </FlexBlock>\n </Flex>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { __ } = wp.i18n;\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [data, setData] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n page,\n per_page: 5,\n ...params,\n }),\n parse: false,\n }).then((res) => {\n const total = res.headers\n ? parseInt(res.headers.get(\"X-WP-Total\"))\n : 0;\n const totalPages = res.headers\n ? parseInt(res.headers.get(\"X-WP-TotalPages\"))\n : 0;\n setTotal(total);\n setTotalPages(totalPages);\n return res.json();\n });\n\n setData(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n page={page}\n setPage={setPage}\n total={total}\n setTotal={setTotal}\n totalPages={totalPages}\n setTotalPages={setTotalPages}\n data={data}\n setData={setData}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withDataList\"\n );\n","const { __, sprintf } = wp.i18n;\n\nexport const humanSeconds = (savedSeconds) => {\n const hours = Math.floor(savedSeconds / 60 / 60);\n const minutes = Math.floor(savedSeconds / 60) - hours * 60;\n const seconds = savedSeconds % 60;\n\n let out = \"\";\n if (hours) {\n out += sprintf(__(\"%d hours\", \"presto-player\"), hours) + \", \";\n }\n if (minutes) {\n out += sprintf(__(\"%d minutes\", \"presto-player\"), minutes) + \" \";\n }\n if ((hours || minutes) && seconds) {\n out += __(\"and\", \"presto-player\") + \" \";\n }\n\n out += sprintf(__(\"%d seconds\", \"presto-player\"), seconds);\n\n return out;\n};\n\nexport const timestamp = (seconds) => {\n seconds = parseInt(seconds || 0) * 1000;\n return new Date(seconds).toISOString().substr(11, 8);\n};\n\n/*\n * This function remove the user timezone from new Date()\n * https://stackoverflow.com/a/29774197/1972413\n*/\nexport const convertDateTimeToAbsoluteDate = (dateTime) => {\n const offset = new Date().getTimezoneOffset()\n var date = new Date(dateTime.getTime() - (offset*60*1000))\n return date.toISOString().split('T')[0]+'T00:00:00.000Z';\n}\n","const { Spinner, Flex, FlexItem } = wp.components;\nexport default ({ height = 100 }) => {\n return (\n <Flex style={{ height: `${height}px` }} align=\"center\" justify=\"center\">\n <FlexItem>\n <Spinner />\n </FlexItem>\n </Flex>\n );\n};\n","const { __ } = wp.i18n;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nexport default ({ page, setPage, perPage, total, totalPages }) => {\n // do we have prev/next\n const [hasPrevious, setHasPrevious] = useState(false);\n const [hasNext, setHasNext] = useState(false);\n\n // end and start cursors\n const [end, setEnd] = useState(0);\n const [start, setStart] = useState(0);\n\n // set end and start\n useEffect(() => {\n setEnd(Math.min(perPage * page, total));\n setStart(perPage * (page - 1) + 1);\n }, [perPage, page, total]);\n\n // update page when pagination is clicked\n const nextPage = () => {\n setPage(Math.min(totalPages, page + 1));\n };\n const prevPage = () => {\n setPage(Math.max(page - 1, 0));\n };\n\n // set prev/next\n useEffect(() => {\n setHasPrevious(page - 1 > 0);\n setHasNext(totalPages >= page + 1);\n }, [page, totalPages]);\n\n return (\n <Card size=\"large\" className=\"presto-card pagination\">\n <CardBody className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n {sprintf(\n __(\"Showing %1s to %2s of %3s\", \"presto-player\"),\n start,\n end,\n total\n )}\n </FlexBlock>\n <FlexBlock>\n <Flex justify=\"flex-end\">\n {\n <ButtonGroup>\n <Button\n isSecondary\n disabled={!hasPrevious}\n onClick={prevPage}\n >\n {__(\"Previous\", \"presto-player\")}\n </Button>\n <Button isSecondary disabled={!hasNext} onClick={nextPage}>\n {__(\"Next\", \"presto-player\")}\n </Button>\n </ButtonGroup>\n }\n </Flex>\n </FlexBlock>\n </Flex>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\nconst { Card, CardBody ,Flex, FlexBlock, Button, ButtonGroup } = wp.components;\n\nimport classNames from 'classnames';\n\nexport default ({ columns , data , onRowClick , title }) => {\n\n if (!data.length) {\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <table role=\"table\" className={classNames('presto-table', { 'is-clickable': onRowClick })}>\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n {columns && columns.map((column) => {\n return (\n <th key={column.key} role=\"columnheader\">\n {column.label}\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n {data.map((row , rowIndex) => {\n return (\n <tr role=\"row\" key={`row-${rowIndex}`}\n onClick={() => onRowClick && onRowClick(row)}\n >\n {columns.map((column , columnIndex ) => {\n return (\n <td role=\"cell\" data-title={column.label} key={`row-${rowIndex}-${columnIndex}`} aria-label={column.label}>\n {column.render ? column.render(row) : (<div>{column.value(row)}</div>)}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect, useState } = wp.element;\nconst { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\nimport Pagination from \"@/admin/ui/Pagination\";\nimport Table from \"@/admin/ui/Table\";\n\nexport default ({\n perPage = 10,\n title,\n page,\n setPage,\n loading,\n total,\n totalPages,\n columns,\n data,\n onSelect,\n}) => {\n if (loading) {\n return (\n <Card>\n <Loading />\n </Card>\n );\n }\n\n if (!data?.length) {\n return (\n <Card size=\"large\" className=\"presto-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <div className=\"datatable\">\n <Table\n data={data}\n columns={columns}\n perPage={perPage}\n onRowClick={onSelect}\n title={title}\n />\n\n {!!total && (\n <Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n total={total}\n totalPages={totalPages}\n />\n )}\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n }) => {\n // 10 per page\n const per_page = 5;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-users\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n // navigate to user screen here\n const navigate = (id) => {\n history.push(`#/user/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n value: (row) => row?.user?.name,\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value: (row) => row?.stats?.[0]?.data,\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render: (row) => (\n <div className=\"presto-badge\">{row?.stats?.[1]?.data}</div>\n ),\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Users\", \"presto-player\")}\n page={page}\n perPage={per_page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => navigate(row?.user?.id)}\n />\n );\n }\n);\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n userId\n }) => {\n // 10 per page\n const per_page = 10;\n\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-videos\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n ...(userId ? { user_id: userId }: {})\n },\n });\n }, [page, startDate, endDate]);\n\n const navigate = (id) => {\n history.push(`#/video/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n render(row) {\n return (\n <h3 style={{ marginBottom: 0, wordBreak:'break-all' }}>\n {row.video.title\n ? row.video.title\n : __(\"Untitled\", \"presto-player\")}\n </h3>\n );\n },\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value(row) {\n return row.stats[0].data;\n },\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render(row) {\n return <div className=\"presto-badge\">{row.stats[1].data}</div>;\n },\n },\n {\n key: \"view_more\",\n label: \"\",\n render(row) {\n return (\n <span\n style={{\n color: \"var(--wp-admin-theme-color, #007cba)\",\n }}\n >\n {__(\"View Details\", \"presto-player\")} &rarr;\n </span>\n );\n },\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Videos\", \"presto-player\")}\n perPage={per_page}\n page={page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => {\n navigate(row?.video?.id);\n }}\n />\n );\n }\n);\n","// import apiFetch from \"@wordpress/api-fetch\";\nconst { apiFetch } = wp;\n\n// nonce and root\napiFetch.use(apiFetch.createNonceMiddleware(prestoPlayer.nonce));\napiFetch.use(\n apiFetch.createRootURLMiddleware(\n prestoPlayer.root + prestoPlayer.prestoVersionString\n )\n);\n\nexport default apiFetch;\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [totalViews, setTotalViews] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n min: 0,\n labels: {\n formatter: function (num) {\n if (num < 1) {\n return 0;\n }\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k\"\n : Math.sign(num) * Math.abs(num).toFixed(0);\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchViews();\n }, [props]);\n\n const fetchViews = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/views?\" +\n jQuery.param({\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n }),\n parse: false,\n })\n .then(async (res) => {\n setTotalViews(res.headers && res.headers.get(\"X-WP-Total\"));\n const data = await res.json();\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Views\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(__(\"%d Unique Views\", \"presto-player\"), totalViews)}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, humanSeconds } from \"../util\";\n\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [averageTime, setAverageTime] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n labels: {\n formatter: function (num) {\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k min\"\n : (Math.sign(num) * Math.abs(num)).toFixed(1) + \"min\";\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchMinutes();\n }, [props]);\n\n const fetchMinutes = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/watch-time?\" +\n jQuery.param({\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }),\n parse: false,\n })\n .then(async (res) => {\n const { data, average } = await res.json();\n\n setAverageTime(parseFloat(average));\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: (item.total / 60).toFixed(2),\n });\n });\n }\n setSeries([\n {\n name: \"Watch Time\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(\n __(\"%s average watch time\", \"presto-player\"),\n humanSeconds(averageTime)\n )}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __ } = wp.i18n;\nconst { Panel, TabPanel } = wp.components;\n\nimport TotalViewsGraph from \"./TotalViewsGraph\";\nimport TotalWatchGraph from \"./TotalWatchGraph\";\n\nexport default ({ startDate, endDate }) => {\n return (\n <Panel>\n <TabPanel\n className=\"presto-module-tabs\"\n onSelect={() => {}}\n tabs={[\n {\n name: \"views\",\n title: __(\"Views\", \"presto-player\"),\n },\n {\n name: \"watch\",\n title: __(\"Watch Time\", \"presto-player\"),\n },\n ]}\n >\n {(tab) => {\n switch (tab.name) {\n case \"views\":\n return (\n <TotalViewsGraph startDate={startDate} endDate={endDate} />\n );\n case \"watch\":\n return (\n <TotalWatchGraph startDate={startDate} endDate={endDate} />\n );\n default:\n return <>Not Found</>;\n }\n }}\n </TabPanel>\n </Panel>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\n\nimport Litepicker from \"litepicker\";\nimport \"litepicker/dist/plugins/ranges\";\n\nexport default ({ startDate, setStartDate, endDate, setEndDate }) => {\n const dateRef = useRef();\n const [inputSize, setInputSize] = useState(25);\n\n let datepicker;\n useEffect(() => {\n datepicker = new Litepicker({\n element: dateRef?.current,\n singleMode: false,\n format: \"MMMM D YYYY\",\n autoApply: false,\n plugins: [\"ranges\"],\n maxDate: new Date(),\n numberOfMonths: 2,\n buttonText: {\n apply: __(\"Apply\", \"presto-player\"),\n cancel: __(\"Cancel\", \"presto-player\"),\n },\n dropdowns: {\n minYear: 1990,\n maxYear: null,\n months: true,\n years: true,\n },\n setup: (picker) => {\n picker.setDateRange(startDate, endDate);\n picker.on(\"button:apply\", (start, end) => {\n setStartDate(start.dateInstance);\n setEndDate(end.dateInstance);\n setInputSize(dateRef.current.value.length);\n });\n },\n });\n }, [dateRef]);\n\n return (\n <div className=\"component-base-control\">\n <div className=\"components-base-control__field\">\n <input\n className=\"components-text-control__input presto-settings__date-select\"\n ref={dateRef}\n size={inputSize}\n />\n </div>\n </div>\n );\n};\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\nconst { Flex, FlexBlock, FlexItem } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nimport TopUsers from \"../components/TopUsers\";\nimport TopVideos from \"../components/TopVideos\";\nimport OverviewPanel from \"../components/OverviewPanel\";\nimport DatePicker from \"../components/DatePicker\";\nimport apiFetch from \"@wordpress/api-fetch\";\nimport { Notice } from \"@wordpress/components\";\nimport { css, jsx } from \"@emotion/core\";\n\nexport default function ({ startDate, endDate, setStartDate, setEndDate }) {\n const [noticeStatus, setNoticeStatus] = useState(false);\n\n // run this only on mount.\n useEffect(() => {\n apiFetch({ path: \"/wp/v2/settings\" }).then((post) => {\n if (post?.presto_player_analytics?.enable === false) {\n setNoticeStatus(true);\n }\n });\n }, []);\n\n return (\n <>\n {/* Component decleared below this code */}\n {noticeStatus ? <MyNotice /> : \"\"}\n <Flex>\n <FlexBlock>\n <h1>{__(\"Analytics\", \"presto-player\")}</h1>\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-flow\">\n <div className=\"presto-dashboard\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <OverviewPanel startDate={startDate} endDate={endDate} />\n </div>\n <div className=\"presto-dashboard__item\">\n <TopUsers startDate={startDate} endDate={endDate} />\n </div>\n </div>\n\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos startDate={startDate} endDate={endDate} />\n </div>\n </div>\n </div>\n </div>\n </>\n );\n}\n\nconst MyNotice = () => (\n <Notice\n css={css`\n margin: 0 0 1em 0 !important;\n `}\n status=\"warning\"\n isDismissible={false}\n >\n <p>\n {__(\n \"Analytics are currently disabled. To collect analytics, turn them on in your settings page.\",\n \"presto-player\"\n )}\n </p>\n </Notice>\n);\n","const { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\n\nexport default ({ loading, title , value, label }) => {\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card className=\"presto-player__stat-card\">\n <CardBody>\n <div className=\"presto-subtitle\">{title}</div>\n <h1>{value}</h1>\n <div>{label}</div>\n </CardBody>\n </Card>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [stat, setStat] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n ...params,\n }),\n });\n setStat(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n stat={stat}\n setStat={setStat}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withStat\"\n );\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat?.view)}\n title={__(\"Total Views\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Total Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button } = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport TopVideos from \"../components/TopVideos\";\nimport TotalVideoViewsByUser from \"../components/TotalVideoViewsByUser\";\nimport VideoAverageWatchTimeByUser from \"../components/VideoAverageWatchTimeByUser\";\nimport VideoTotalWatchTimeByUser from \"../components/VideoTotalWatchTimeByUser\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nimport { css, jsx } from \"@emotion/core\";\n\nconst User = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [user, setUser] = useState({});\n const [error, setError] = useState(\"\");\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getUser = async () => {\n setLoading(true);\n try {\n let user = await apiFetch({\n url: `/wp-json/wp/v2/users/${route?.params?.id}?context=edit`,\n });\n setUser(user);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"User Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getUser();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>\n {loading ? (\n <Spinner />\n ) : (\n <div\n css={css`\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n `}\n >\n <div>\n <h1 className=\"presto-dashboard__title\">{user?.name}</h1>\n <p\n css={css`\n margin-top: -10px;\n opacity: 0.65;\n `}\n >\n {user?.email}\n </p>\n </div>\n {!!user.id && (\n <div\n className=\"presto__edit-user-button\"\n css={css`\n margin: 0 20px;\n `}\n >\n <Button\n href={`/wp-admin/user-edit.php?user_id=${user?.id}`}\n isSecondary\n isSmall\n >\n {__(\"View Profile\", \"presto-player\")} &rarr;\n </Button>\n </div>\n )}\n </div>\n )}\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item\">\n <TotalVideoViewsByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoTotalWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos\n startDate={startDate}\n endDate={endDate}\n userId={route?.params?.id}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default User;\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, timestamp } from \"../util\";\n\n\nexport default (props) => {\n const { video_id, startDate, endDate } = props;\n const [loading, setLoading] = useState(true);\n\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const fetchTimeline = () => {\n setLoading(true);\n apiFetch({\n path: wp.url.addQueryArgs(\n `/presto-player/v1/analytics/video/${video_id}/timeline`,\n {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }\n ),\n })\n .then((data) => {\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n // add another to them\n series.push({\n x: item.watch_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Viewers\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n useEffect(() => {\n fetchTimeline();\n }, [startDate, endDate]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n tickAmount: 1,\n yaxis: {\n labels: {\n formatter: function (num) {\n return parseInt(num);\n },\n },\n },\n xaxis: {\n labels: {\n formatter: function (num) {\n return timestamp(num);\n },\n },\n },\n colors: [\"#7c3aed\"],\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card>\n <CardBody>\n <div className=\"presto-card__title\">\n {__(\"Audience Retention\", \"presto-player\")}\n </div>\n <Chart\n options={chart.options}\n series={series}\n type=\"area\"\n height={280}\n />\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Unique Views\", \"presto-player\")}\n />\n );\n});\n","export const dashToPascalCase = (str) => str\n .toLowerCase()\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join('');\nexport const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);\n//# sourceMappingURL=case.js.map","import { camelToDashCase } from './case';\nexport const attachProps = (node, newProps, oldProps = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n // add any classes in className to the class list\n const className = getClassName(node.classList, newProps, oldProps);\n if (className !== '') {\n node.className = className;\n }\n Object.keys(newProps).forEach((name) => {\n if (name === 'children' ||\n name === 'style' ||\n name === 'ref' ||\n name === 'class' ||\n name === 'className' ||\n name === 'forwardedRef') {\n return;\n }\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2);\n const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);\n if (typeof document !== 'undefined' && !isCoveredByReact(eventNameLc, document)) {\n syncEvent(node, eventNameLc, newProps[name]);\n }\n }\n else {\n node[name] = newProps[name];\n const propType = typeof newProps[name];\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name]);\n }\n else {\n node[name] = newProps[name];\n }\n }\n });\n }\n};\nexport const getClassName = (classList, newProps, oldProps) => {\n const newClassProp = newProps.className || newProps.class;\n const oldClassProp = oldProps.className || oldProps.class;\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList);\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);\n const finalClassNames = [];\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass);\n incomingPropClasses.delete(currentClass);\n }\n else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass);\n }\n });\n incomingPropClasses.forEach((s) => finalClassNames.push(s));\n return finalClassNames.join(' ');\n};\n/**\n * Checks if an event is supported in the current execution environment.\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nexport const isCoveredByReact = (eventNameSuffix, doc) => {\n const eventName = 'on' + eventNameSuffix;\n let isSupported = eventName in doc;\n if (!isSupported) {\n const element = doc.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof element[eventName] === 'function';\n }\n return isSupported;\n};\nexport const syncEvent = (node, eventName, newEventHandler) => {\n const eventStore = node.__events || (node.__events = {});\n const oldEventHandler = eventStore[eventName];\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler);\n }\n // Bind new listener.\n node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {\n if (newEventHandler) {\n newEventHandler.call(this, e);\n }\n }));\n};\nconst arrayToMap = (arr) => {\n const map = new Map();\n arr.forEach((s) => map.set(s, s));\n return map;\n};\n//# sourceMappingURL=attachProps.js.map","import React from 'react';\n// The comma in the type is to trick typescript because it things a single generic in a tsx file is jsx\nexport const mergeRefs = (...refs) => (value) => refs.forEach((ref) => {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref != null) {\n // This is typed as readonly so we need to allow for override\n ref.current = value;\n }\n});\nexport const createForwardRef = (ReactComponent, displayName) => {\n const forwardRef = (props, ref) => {\n return React.createElement(ReactComponent, Object.assign({}, props, { forwardedRef: ref }));\n };\n forwardRef.displayName = displayName;\n return React.forwardRef(forwardRef);\n};\nexport * from './attachProps';\nexport * from './case';\n//# sourceMappingURL=index.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React from 'react';\nimport { attachProps, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs, } from './utils';\nexport const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction) => {\n const displayName = dashToPascalCase(tagName);\n const ReactComponent = class extends React.Component {\n constructor(props) {\n super(props);\n this.setComponentElRef = (element) => {\n this.componentEl = element;\n };\n }\n componentDidMount() {\n this.componentDidUpdate(this.props);\n }\n componentDidUpdate(prevProps) {\n attachProps(this.componentEl, this.props, prevProps);\n }\n render() {\n const _a = this.props, { children, forwardedRef, style, className, ref } = _a, cProps = __rest(_a, [\"children\", \"forwardedRef\", \"style\", \"className\", \"ref\"]);\n let propsToPass = Object.keys(cProps).reduce((acc, name) => {\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2).toLowerCase();\n if (typeof document !== 'undefined' && isCoveredByReact(eventName, document)) {\n acc[name] = cProps[name];\n }\n }\n else {\n acc[name] = cProps[name];\n }\n return acc;\n }, {});\n if (manipulatePropsFunction) {\n propsToPass = manipulatePropsFunction(this.props, propsToPass);\n }\n let newProps = Object.assign(Object.assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style });\n return React.createElement(tagName, newProps, children);\n }\n static get displayName() {\n return displayName;\n }\n };\n // If context was passed to createReactComponent then conditionally add it to the Component Class\n if (ReactComponentContext) {\n ReactComponent.contextType = ReactComponentContext;\n }\n return createForwardRef(ReactComponent, displayName);\n};\n//# sourceMappingURL=createComponent.js.map","/* eslint-disable */\n/* tslint:disable */\n/* auto-generated react proxies */\nimport { createReactComponent } from './react-component-lib';\nexport const PrestoActionBar = /*@__PURE__*/ createReactComponent('presto-action-bar');\nexport const PrestoActionBarController = /*@__PURE__*/ createReactComponent('presto-action-bar-controller');\nexport const PrestoActionBarUi = /*@__PURE__*/ createReactComponent('presto-action-bar-ui');\nexport const PrestoBunny = /*@__PURE__*/ createReactComponent('presto-bunny');\nexport const PrestoCtaOverlay = /*@__PURE__*/ createReactComponent('presto-cta-overlay');\nexport const PrestoCtaOverlayController = /*@__PURE__*/ createReactComponent('presto-cta-overlay-controller');\nexport const PrestoCtaOverlayUi = /*@__PURE__*/ createReactComponent('presto-cta-overlay-ui');\nexport const PrestoDynamicOverlayUi = /*@__PURE__*/ createReactComponent('presto-dynamic-overlay-ui');\nexport const PrestoDynamicOverlays = /*@__PURE__*/ createReactComponent('presto-dynamic-overlays');\nexport const PrestoEmailOverlay = /*@__PURE__*/ createReactComponent('presto-email-overlay');\nexport const PrestoEmailOverlayController = /*@__PURE__*/ createReactComponent('presto-email-overlay-controller');\nexport const PrestoEmailOverlayUi = /*@__PURE__*/ createReactComponent('presto-email-overlay-ui');\nexport const PrestoMutedOverlay = /*@__PURE__*/ createReactComponent('presto-muted-overlay');\nexport const PrestoPlayer = /*@__PURE__*/ createReactComponent('presto-player');\nexport const PrestoPlayerButton = /*@__PURE__*/ createReactComponent('presto-player-button');\nexport const PrestoPlayerSkeleton = /*@__PURE__*/ createReactComponent('presto-player-skeleton');\nexport const PrestoPlayerSpinner = /*@__PURE__*/ createReactComponent('presto-player-spinner');\nexport const PrestoVideo = /*@__PURE__*/ createReactComponent('presto-video');\nexport const PrestoVideoCurtainUi = /*@__PURE__*/ createReactComponent('presto-video-curtain-ui');\nexport const PrestoVimeo = /*@__PURE__*/ createReactComponent('presto-vimeo');\nexport const PrestoYoutube = /*@__PURE__*/ createReactComponent('presto-youtube');\nexport const PrestoYoutubeSubscribeButton = /*@__PURE__*/ createReactComponent('presto-youtube-subscribe-button');\n//# sourceMappingURL=index.js.map","const { useRef, useEffect } = wp.element;\n\nexport function usePrevious(value) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n\nexport function snackbarNotice({ status = \"success\", message }) {\n wp.data.dispatch(\"core/notices\").createNotice(\n status, // Can be one of: success, info, warning, error.\n message, // Text string to display.\n { type: \"snackbar\" }\n );\n}\n\nexport const bytesToSize = (bytes) => {\n var sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\"];\n if (bytes == 0) return \"0 Byte\";\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));\n return Math.round(bytes / Math.pow(1024, i), 2) + \" \" + sizes[i];\n};\n\nexport const toDate = (d) => {\n d = new Date(d);\n var hours = d.getHours();\n var minutes = d.getMinutes();\n var ampm = hours >= 12 ? \"pm\" : \"am\";\n hours = hours % 12;\n hours = hours ? hours : 12;\n minutes = minutes < 10 ? \"0\" + minutes : minutes;\n\n return (\n d.getDate() +\n \"-\" +\n (d.getMonth() + 1) +\n \"-\" +\n d.getFullYear() +\n \" at \" +\n hours +\n \":\" +\n minutes +\n ampm\n );\n};\n\nexport function timeToSeconds(time) {\n let pieces = time.split(\":\");\n let seconds;\n if (pieces.length > 1) {\n seconds = parseInt(pieces[0]) * 60;\n }\n return parseInt(pieces[1]) + parseInt(seconds);\n}\n\nexport function secondsToTime(number) {\n let seconds = parseInt(number, 10);\n let minutes = Math.floor(seconds / 60);\n if (seconds < 10) {\n seconds = \"0\" + seconds;\n }\n return minutes + \":\" + seconds;\n}\n\nexport function sanitizeTime(time) {\n let draft = time;\n // remove any letters\n draft = draft.replace(/[^\\d\\d:\\d\\d.-]/g, \"\");\n // make sure we have :\n if (!draft.includes(\":\")) {\n return `${draft}:00`;\n }\n\n // must have something before :00\n if (draft.substr(0, draft.indexOf(\":\")).length === 0) {\n draft = `0${draft}`;\n }\n\n // only allow 2 characters after :\n let index = draft.indexOf(\":\");\n draft = draft.substring(0, index + 3);\n return draft;\n}\n\nexport function getProvider(src) {\n const provider = \"self-hosted\";\n\n if (src) {\n const yt_rx =\n /^(?:https?:\\/\\/)?(?:www\\.)?(?:youtu\\.be\\/|youtube\\.com\\/(?:embed\\/|v\\/|watch\\?v=|watch\\?.+&v=))((\\w|-){11})(?:\\S+)?$/;\n const has_match_youtube = src.match(yt_rx);\n\n if (has_match_youtube) {\n return \"youtube\";\n }\n\n const vm_rx =\n /(https?:\\/\\/)?(www\\.)?(player\\.)?vimeo\\.com\\/([a-z]*\\/)*([‌​0-9]{6,11})[?]?.*/;\n const has_match_vimeo = src.match(vm_rx);\n\n if (has_match_vimeo) {\n return \"vimeo\";\n }\n\n if (src.indexOf(\"https://vz-\") > -1 && src.indexOf(\"b-cdn.net\") > -1) {\n return \"bunny\";\n }\n }\n return provider;\n}\n","import { PrestoPlayer } from \"@presto-player/react\";\nimport { getProvider } from \"../util\";\nconst { useSelect } = wp.data;\n\nexport default ({\n src,\n preset,\n branding,\n attributes,\n adminPreview,\n currentTime,\n preload = \"metadata\",\n overlays,\n}) => {\n const { chapters, mutedOverlay, mutedPreview } = attributes;\n\n const youtube = useSelect((select) => {\n return select(\"presto-player/player\")?.youtube();\n });\n\n const css = useSelect((select) => {\n return select(\"presto-player/player\")?.playerCSS();\n });\n\n const mutedOverlayContent = () => {\n return (\n <div\n className=\"presto-player__overlay is-image\"\n style={{\n position: \"absolute\",\n width: `${mutedOverlay?.width || 100}%`,\n left: `${(mutedOverlay?.focalPoint?.x || 0.5) * 100}%`,\n top: `${(mutedOverlay?.focalPoint?.y || 0.5) * 100}%`,\n }}\n >\n <img\n src={mutedOverlay?.src}\n style={{\n transform: \"translateX(-50%) translateY(-50%)\",\n }}\n />\n </div>\n );\n };\n\n return (\n <div\n className=\"wp-block-video presto-block-video\"\n style={{\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.caption_background\n ? { \"--plyr-captions-background\": preset.caption_background }\n : {}),\n ...(branding?.color ? { \"--plyr-color-main\": branding.color } : {}),\n \"--presto-player-email-border-radius\": `${\n preset?.email_collection?.border_radius || 0\n }px`,\n \"--presto-player-logo-width\": `${branding?.logo_width || 75}px`,\n }}\n >\n <PrestoPlayer\n src={src}\n css={css}\n currentTime={currentTime}\n overlays={overlays}\n isAdmin={true}\n preload={preload}\n preset={preset}\n bunny={{\n thumbnail: attributes?.previewThumbnail,\n preview: attributes?.preview,\n }}\n youtube={{\n channelId: youtube?.channel_id,\n }}\n tracks={\n !!preset?.captions && [\n {\n kind: \"captions\",\n label: \"English\",\n srclang: \"en\",\n src: \"/path/to/captions.en.vtt\",\n default: true,\n },\n ]\n }\n branding={branding}\n chapters={chapters}\n blockAttributes={attributes}\n poster={attributes.poster}\n provider={getProvider(src)}\n >\n <div slot=\"player-end\">\n {mutedPreview?.enabled &&\n mutedOverlay?.enabled &&\n mutedOverlayContent()}\n {adminPreview}\n </div>\n </PrestoPlayer>\n </div>\n );\n};\n","const { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button, TextControl } =\n wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport VideoAverageWatchTime from \"../components/VideoAverageWatchTime\";\nimport VideoTimeline from \"../components/VideoTimeline\";\nimport VideoViews from \"../components/VideoViews\";\nimport Player from \"../../blocks/shared/Player\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nconst Video = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [video, setVideo] = useState({});\n const [error, setError] = useState(\"\");\n const [thisName, setThisName] = useState(null);\n const [editing, setEditing] = useState(false);\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getVideo = async () => {\n setLoading(true);\n try {\n let video = await apiFetch({\n url: `${prestoPlayer?.root}${prestoPlayer?.prestoVersionString}videos/${route?.params?.id}`,\n });\n setVideo(video);\n setThisName(video?.title);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"Video Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const putVideo = async () => {\n console.log(`New Video title ${thisName}`);\n setLoading(true);\n try {\n const data = {\n ...video,\n ...{ title: thisName },\n };\n let saved = await wp.apiFetch({\n method: \"POST\",\n url: wp.url.addQueryArgs(\n `${prestoPlayer.root}${prestoPlayer.prestoVersionString}videos/${video.id}`,\n { _method: \"PUT\" }\n ),\n data,\n });\n\n if (!saved) {\n throw genericError;\n }\n setEditing(false);\n setVideo(saved);\n } catch (e) {\n setError(e?.message ? e.message : genericError);\n } finally {\n setLoading(false);\n }\n };\n\n const cancelEditing = () => {\n setThisName(video?.title);\n setEditing(false);\n };\n\n const renderVideoEditableTitle = () => {\n if (loading) {\n return <Spinner />;\n } else if (editing) {\n return (\n <div className=\"presto-inline-edit presto-inline-edit--editing\">\n <TextControl\n className=\"presto-inline-edit__input\"\n type=\"text\"\n value={thisName}\n onChange={(title) => setThisName(title)}\n />\n <Button\n className=\"presto-inline-edit__button\"\n isPrimary\n onClick={putVideo}\n >\n {\" \"}\n Save{\" \"}\n </Button>\n <Button\n className=\"presto-inline-edit__button\"\n isSecondary\n onClick={cancelEditing}\n >\n {\" \"}\n Cancel{\" \"}\n </Button>\n </div>\n );\n } else {\n return (\n <div className=\"presto-inline-edit\">\n <h1 className=\"presto-dashboard__title presto-inline-edit__text\">\n {video?.title}\n </h1>\n\n <button\n className=\"presto-inline-edit__edit\"\n onClick={() => setEditing(true)}\n >\n <span className=\"dashicon dashicons dashicons-edit\"></span>\n </button>\n </div>\n );\n }\n };\n\n useEffect(() => {\n getVideo();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>{renderVideoEditableTitle()}</FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoViews\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n {!!Object.keys(video || {}).length && (\n <Player\n src={video?.src}\n attributes={{}}\n type={video?.type}\n preset={{\n \"play-large\": true,\n play: true,\n progress: true,\n \"current-time\": true,\n }}\n />\n )}\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTime\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoTimeline\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default Video;\n","export const routes = {\n dashboard: {\n path: \"/\",\n },\n video: {\n path: \"/video/:id\",\n },\n user: {\n path: \"/user/:id\",\n },\n};\n","const { useState } = wp.element;\n\nimport { Route, Router } from \"@/router\";\n\nimport AnalyticsUpgrade from \"./pages/AnalyticsUpgrade\";\nimport Dashboard from \"./pages/Dashboard\";\n\nimport User from \"./pages/User\";\nimport Video from \"./pages/Video\";\nimport { routes } from \"./routes\";\n\nexport default () => {\n const scrollToTop = () => {\n window.scrollTo(0, 0);\n };\n\n const [startDate, setStartDate] = useState(\n new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)\n );\n const [endDate, setEndDate] = useState(new Date());\n\n if (!prestoPlayer?.isPremium) {\n return (\n <div className=\"presto-dashboard__content\">\n <AnalyticsUpgrade />\n </div>\n );\n }\n\n return (\n <div className=\"presto-dashboard__content\">\n <Router routes={routes}>\n <Route path={routes.dashboard.path} onRoute={scrollToTop}>\n <Dashboard\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.video.path} onRoute={scrollToTop}>\n <Video\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.user.path} onRoute={scrollToTop}>\n <User\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n </Router>\n </div>\n );\n};\n","const { render } = wp.element;\n\n/**\n * App\n */\nimport App from \"./App\";\n\n/**\n * styles\n */\nimport \"./analytics.scss\";\n\n/**\n * Render\n */\nrender(<App />, document.getElementById(\"presto-analytics-page\"));\n"],"sourceRoot":""}
 
dist/analytics/manifest.json CHANGED
@@ -1,30 +1,30 @@
1
  {
2
- "admin.css": "analytics/admin-866190a9.css",
3
- "admin.css.map": "analytics/admin-866190a9.css.map",
4
- "admin.js": "analytics/admin-8458c3ef.js",
5
- "admin.js.map": "analytics/admin-8458c3ef.js.map",
6
  "runtime.js": "analytics/runtime-42c36a43.js",
7
  "runtime.js.map": "analytics/runtime-42c36a43.js.map",
8
- "vendors--presto-player--admin.js": "analytics/vendors--presto-player--admin-603822bb.js",
9
- "vendors--presto-player--admin.js.map": "analytics/vendors--presto-player--admin-603822bb.js.map",
10
  "wpackioEp": {
11
  "admin": {
12
  "assets": {
13
  "js": [
14
  "analytics/runtime-42c36a43.js",
15
- "analytics/vendors--presto-player--admin-603822bb.js",
16
- "analytics/admin-8458c3ef.js"
17
  ],
18
  "js.map": [
19
  "analytics/runtime-42c36a43.js.map",
20
- "analytics/vendors--presto-player--admin-603822bb.js.map",
21
- "analytics/admin-8458c3ef.js.map"
22
  ],
23
  "css": [
24
- "analytics/admin-866190a9.css"
25
  ],
26
  "css.map": [
27
- "analytics/admin-866190a9.css.map"
28
  ]
29
  }
30
  }
1
  {
2
+ "admin.css": "analytics/admin-7f8d2917.css",
3
+ "admin.css.map": "analytics/admin-7f8d2917.css.map",
4
+ "admin.js": "analytics/admin-32e25baa.js",
5
+ "admin.js.map": "analytics/admin-32e25baa.js.map",
6
  "runtime.js": "analytics/runtime-42c36a43.js",
7
  "runtime.js.map": "analytics/runtime-42c36a43.js.map",
8
+ "vendors--presto-player--admin.js": "analytics/vendors--presto-player--admin-7f0ca5d2.js",
9
+ "vendors--presto-player--admin.js.map": "analytics/vendors--presto-player--admin-7f0ca5d2.js.map",
10
  "wpackioEp": {
11
  "admin": {
12
  "assets": {
13
  "js": [
14
  "analytics/runtime-42c36a43.js",
15
+ "analytics/vendors--presto-player--admin-7f0ca5d2.js",
16
+ "analytics/admin-32e25baa.js"
17
  ],
18
  "js.map": [
19
  "analytics/runtime-42c36a43.js.map",
20
+ "analytics/vendors--presto-player--admin-7f0ca5d2.js.map",
21
+ "analytics/admin-32e25baa.js.map"
22
  ],
23
  "css": [
24
+ "analytics/admin-7f8d2917.css"
25
  ],
26
  "css.map": [
27
+ "analytics/admin-7f8d2917.css.map"
28
  ]
29
  }
30
  }
dist/analytics/vendors--presto-player--admin-603822bb.js DELETED
@@ -1,61 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2022 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[2],[function(t,e,i){"use strict";i.d(e,"a",(function(){return O})),i.d(e,"b",(function(){return Y}));var a=i(6),s=i(16);var n=i(2);var r=function(){function t(t){this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,i=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(i,e),this.tags.push(i)}var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(a);try{var n=105===t.charCodeAt(1)&&64===t.charCodeAt(0);s.insertRule(t,n?0:s.cssRules.length)}catch(t){0}}else a.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}();var o=function(t){function e(t,e,a){var s=e.trim().split(f);e=s;var n=s.length,r=t.length;switch(r){case 0:case 1:var o=0;for(t=0===r?"":t[0]+" ";o<n;++o)e[o]=i(t,e[o],a).trim();break;default:var l=o=0;for(e=[];o<n;++o)for(var c=0;c<r;++c)e[l++]=i(t[c]+" ",s[o],a).trim()}return e}function i(t,e,i){var a=e.charCodeAt(0);switch(33>a&&(a=(e=e.trim()).charCodeAt(0)),a){case 38:return e.replace(x,"$1"+t.trim());case 58:return t.trim()+e.replace(x,"$1"+t.trim());default:if(0<1*i&&0<e.indexOf("\f"))return e.replace(x,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function s(t,e,i,a){var r=t+";",o=2*e+3*i+4*a;if(944===o){t=r.indexOf(":",9)+1;var l=r.substring(t,r.length-1).trim();return l=r.substring(0,t).trim()+l+";",1===D||2===D&&n(l,1)?"-webkit-"+l+l:l}if(0===D||2===D&&!n(r,1))return r;switch(o){case 1015:return 97===r.charCodeAt(10)?"-webkit-"+r+r:r;case 951:return 116===r.charCodeAt(3)?"-webkit-"+r+r:r;case 963:return 110===r.charCodeAt(5)?"-webkit-"+r+r:r;case 1009:if(100!==r.charCodeAt(4))break;case 969:case 942:return"-webkit-"+r+r;case 978:return"-webkit-"+r+"-moz-"+r+r;case 1019:case 983:return"-webkit-"+r+"-moz-"+r+"-ms-"+r+r;case 883:if(45===r.charCodeAt(8))return"-webkit-"+r+r;if(0<r.indexOf("image-set(",11))return r.replace(L,"$1-webkit-$2")+r;break;case 932:if(45===r.charCodeAt(4))switch(r.charCodeAt(5)){case 103:return"-webkit-box-"+r.replace("-grow","")+"-webkit-"+r+"-ms-"+r.replace("grow","positive")+r;case 115:return"-webkit-"+r+"-ms-"+r.replace("shrink","negative")+r;case 98:return"-webkit-"+r+"-ms-"+r.replace("basis","preferred-size")+r}return"-webkit-"+r+"-ms-"+r+r;case 964:return"-webkit-"+r+"-ms-flex-"+r+r;case 1023:if(99!==r.charCodeAt(8))break;return"-webkit-box-pack"+(l=r.substring(r.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+r+"-ms-flex-pack"+l+r;case 1005:return p.test(r)?r.replace(u,":-webkit-")+r.replace(u,":-moz-")+r:r;case 1e3:switch(e=(l=r.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){case 226:l=r.replace(y,"tb");break;case 232:l=r.replace(y,"tb-rl");break;case 220:l=r.replace(y,"lr");break;default:return r}return"-webkit-"+r+"-ms-"+l+r;case 1017:if(-1===r.indexOf("sticky",9))break;case 975:switch(e=(r=t).length-10,o=(l=(33===r.charCodeAt(e)?r.substring(0,e):r).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:r=r.replace(l,"-webkit-"+l)+";"+r;break;case 207:case 102:r=r.replace(l,"-webkit-"+(102<o?"inline-":"")+"box")+";"+r.replace(l,"-webkit-"+l)+";"+r.replace(l,"-ms-"+l+"box")+";"+r}return r+";";case 938:if(45===r.charCodeAt(5))switch(r.charCodeAt(6)){case 105:return l=r.replace("-items",""),"-webkit-"+r+"-webkit-box-"+l+"-ms-flex-"+l+r;case 115:return"-webkit-"+r+"-ms-flex-item-"+r.replace(A,"")+r;default:return"-webkit-"+r+"-ms-flex-line-pack"+r.replace("align-content","").replace(A,"")+r}break;case 973:case 989:if(45!==r.charCodeAt(3)||122===r.charCodeAt(4))break;case 931:case 953:if(!0===C.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?s(t.replace("stretch","fill-available"),e,i,a).replace(":fill-available",":stretch"):r.replace(l,"-webkit-"+l)+r.replace(l,"-moz-"+l.replace("fill-",""))+r;break;case 962:if(r="-webkit-"+r+(102===r.charCodeAt(5)?"-ms-"+r:"")+r,211===i+a&&105===r.charCodeAt(13)&&0<r.indexOf("transform",10))return r.substring(0,r.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+r}return r}function n(t,e){var i=t.indexOf(1===e?":":"{"),a=t.substring(0,3!==e?i:10);return i=t.substring(i+1,t.length-1),O(2!==e?a:a.replace(S,"$1"),i,e)}function r(t,e){var i=s(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return i!==e+";"?i.replace(k," or ($1)").substring(4):"("+e+")"}function o(t,e,i,a,s,n,r,o,l,h){for(var d,u=0,p=e;u<z;++u)switch(d=I[u].call(c,t,p,i,a,s,n,r,o,l,h)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==e)return p}function l(t){return void 0!==(t=t.prefix)&&(O=null,t?"function"!=typeof t?D=1:(D=2,O=t):D=0),l}function c(t,i){var a=t;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<z){var l=o(-1,i,a,a,T,P,0,0,0,0);void 0!==l&&"string"==typeof l&&(i=l)}var c=function t(i,a,l,c,u){for(var p,g,f,x,y,k=0,A=0,S=0,C=0,L=0,I=0,O=f=p=0,F=0,X=0,R=0,N=0,_=l.length,H=_-1,W="",B="",j="",V="";F<_;){if(g=l.charCodeAt(F),F===H&&0!==A+C+S+k&&(0!==A&&(g=47===A?10:47),C=S=k=0,_++,H++),0===A+C+S+k){if(F===H&&(0<X&&(W=W.replace(d,"")),0<W.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:W+=l.charAt(F)}g=59}switch(g){case 123:for(p=(W=W.trim()).charCodeAt(0),f=1,N=++F;F<_;){switch(g=l.charCodeAt(F)){case 123:f++;break;case 125:f--;break;case 47:switch(g=l.charCodeAt(F+1)){case 42:case 47:t:{for(O=F+1;O<H;++O)switch(l.charCodeAt(O)){case 47:if(42===g&&42===l.charCodeAt(O-1)&&F+2!==O){F=O+1;break t}break;case 10:if(47===g){F=O+1;break t}}F=O}}break;case 91:g++;case 40:g++;case 34:case 39:for(;F++<H&&l.charCodeAt(F)!==g;);}if(0===f)break;F++}switch(f=l.substring(N,F),0===p&&(p=(W=W.replace(h,"").trim()).charCodeAt(0)),p){case 64:switch(0<X&&(W=W.replace(d,"")),g=W.charCodeAt(1)){case 100:case 109:case 115:case 45:X=a;break;default:X=E}if(N=(f=t(a,X,f,g,u+1)).length,0<z&&(y=o(3,f,X=e(E,W,R),a,T,P,N,g,u,c),W=X.join(""),void 0!==y&&0===(N=(f=y.trim()).length)&&(g=0,f="")),0<N)switch(g){case 115:W=W.replace(w,r);case 100:case 109:case 45:f=W+"{"+f+"}";break;case 107:f=(W=W.replace(m,"$1 $2"))+"{"+f+"}",f=1===D||2===D&&n("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=W+f,112===c&&(B+=f,f="")}else f="";break;default:f=t(a,e(a,W,R),f,c,u+1)}j+=f,f=R=X=O=p=0,W="",g=l.charCodeAt(++F);break;case 125:case 59:if(1<(N=(W=(0<X?W.replace(d,""):W).trim()).length))switch(0===O&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(N=(W=W.replace(" ",":")).length),0<z&&void 0!==(y=o(1,W,a,i,T,P,B.length,c,u,c))&&0===(N=(W=y.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),g=W.charCodeAt(1),p){case 0:break;case 64:if(105===g||99===g){V+=W+l.charAt(F);break}default:58!==W.charCodeAt(N-1)&&(B+=s(W,p,g,W.charCodeAt(2)))}R=X=O=p=0,W="",g=l.charCodeAt(++F)}}switch(g){case 13:case 10:47===A?A=0:0===1+p&&107!==c&&0<W.length&&(X=1,W+="\0"),0<z*Y&&o(0,W,a,i,T,P,B.length,c,u,c),P=1,T++;break;case 59:case 125:if(0===A+C+S+k){P++;break}default:switch(P++,x=l.charAt(F),g){case 9:case 32:if(0===C+k+A)switch(L){case 44:case 58:case 9:case 32:x="";break;default:32!==g&&(x=" ")}break;case 0:x="\\0";break;case 12:x="\\f";break;case 11:x="\\v";break;case 38:0===C+A+k&&(X=R=1,x="\f"+x);break;case 108:if(0===C+A+k+M&&0<O)switch(F-O){case 2:112===L&&58===l.charCodeAt(F-3)&&(M=L);case 8:111===I&&(M=I)}break;case 58:0===C+A+k&&(O=F);break;case 44:0===A+S+C+k&&(X=1,x+="\r");break;case 34:case 39:0===A&&(C=C===g?0:0===C?g:C);break;case 91:0===C+A+S&&k++;break;case 93:0===C+A+S&&k--;break;case 41:0===C+A+k&&S--;break;case 40:if(0===C+A+k){if(0===p)switch(2*L+3*I){case 533:break;default:p=1}S++}break;case 64:0===A+S+C+k+O+f&&(f=1);break;case 42:case 47:if(!(0<C+k+S))switch(A){case 0:switch(2*g+3*l.charCodeAt(F+1)){case 235:A=47;break;case 220:N=F,A=42}break;case 42:47===g&&42===L&&N+2!==F&&(33===l.charCodeAt(N+2)&&(B+=l.substring(N,F+1)),x="",A=0)}}0===A&&(W+=x)}I=L,L=g,F++}if(0<(N=B.length)){if(X=a,0<z&&(void 0!==(y=o(2,B,X,i,T,P,N,c,u,c))&&0===(B=y).length))return V+B+j;if(B=X.join(",")+"{"+B+"}",0!=D*M){switch(2!==D||n(B,2)||(M=0),M){case 111:B=B.replace(v,":-moz-$1")+B;break;case 112:B=B.replace(b,"::-webkit-input-$1")+B.replace(b,"::-moz-$1")+B.replace(b,":-ms-input-$1")+B}M=0}}return V+B+j}(E,a,i,0,0);return 0<z&&(void 0!==(l=o(-2,c,a,a,T,P,c.length,0,0,0))&&(c=l)),"",M=0,P=T=1,c}var h=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,g=/([,: ])(transform)/g,f=/,\r+?/g,x=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,A=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,L=/([^-])(image-set\()/,P=1,T=1,M=0,D=1,E=[],I=[],z=0,O=null,Y=0;return c.use=function t(e){switch(e){case void 0:case null:z=I.length=0;break;default:if("function"==typeof e)I[z++]=e;else if("object"===Object(a.a)(e))for(var i=0,s=e.length;i<s;++i)t(e[i]);else Y=0|!!e}return t},c.set=l,void 0!==t&&l(t),c};function l(t){t&&c.current.insert(t+"}")}var c={current:null},h=function(t,e,i,a,s,n,r,o,h,d){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return c.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===o)return e+"/*|*/";break;case 3:switch(o){case 102:case 112:return c.current.insert(i[0]+e),"";default:return e+(0===d?"/*|*/":"")}case-2:e.split("/*|*/}").forEach(l)}},d=function(t){void 0===t&&(t={});var e,i=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var a=new o(e);var s,n={};s=t.container||document.head;var l,d=document.querySelectorAll("style[data-emotion-"+i+"]");Array.prototype.forEach.call(d,(function(t){t.getAttribute("data-emotion-"+i).split(" ").forEach((function(t){n[t]=!0})),t.parentNode!==s&&s.appendChild(t)})),a.use(t.stylisPlugins)(h),l=function(t,e,i,s){var n=e.name;c.current=i,a(t,e.styles),s&&(u.inserted[n]=!0)};var u={key:i,sheet:new r({key:i,container:s,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:n,registered:{},insert:l};return u};i(36);function u(t,e,i){var a="";return i.split(" ").forEach((function(i){void 0!==t[i]?e.push(t[i]):a+=i+" "})),a}var p=function(t,e,i){var a=t.key+"-"+e.name;if(!1===i&&void 0===t.registered[a]&&(t.registered[a]=e.styles),void 0===t.inserted[e.name]){var s=e;do{t.insert("."+a,s,t.sheet,!0);s=s.next}while(void 0!==s)}};var g=function(t){for(var e,i=0,a=0,s=t.length;s>=4;++a,s-=4)e=1540483477*(65535&(e=255&t.charCodeAt(a)|(255&t.charCodeAt(++a))<<8|(255&t.charCodeAt(++a))<<16|(255&t.charCodeAt(++a))<<24))+(59797*(e>>>16)<<16),i=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(s){case 3:i^=(255&t.charCodeAt(a+2))<<16;case 2:i^=(255&t.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(a)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)},f={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var x=/[A-Z]|^ms/g,m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b=function(t){return 45===t.charCodeAt(1)},v=function(t){return null!=t&&"boolean"!=typeof t},y=function(t){var e={};return function(i){return void 0===e[i]&&(e[i]=t(i)),e[i]}}((function(t){return b(t)?t:t.replace(x,"-$&").toLowerCase()})),w=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(m,(function(t,e,i){return A={name:e,styles:i,next:A},e}))}return 1===f[t]||b(t)||"number"!=typeof e||0===e?e:e+"px"};function k(t,e,i,s){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(Object(a.a)(i)){case"boolean":return"";case"object":if(1===i.anim)return A={name:i.name,styles:i.styles,next:A},i.name;if(void 0!==i.styles){var n=i.next;if(void 0!==n)for(;void 0!==n;)A={name:n.name,styles:n.styles,next:A},n=n.next;return i.styles+";"}return function(t,e,i){var s="";if(Array.isArray(i))for(var n=0;n<i.length;n++)s+=k(t,e,i[n],!1);else for(var r in i){var o=i[r];if("object"!==Object(a.a)(o))null!=e&&void 0!==e[o]?s+=r+"{"+e[o]+"}":v(o)&&(s+=y(r)+":"+w(r,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=e&&void 0!==e[o[0]]){var l=k(t,e,o,!1);switch(r){case"animation":case"animationName":s+=y(r)+":"+l+";";break;default:s+=r+"{"+l+"}"}}else for(var c=0;c<o.length;c++)v(o[c])&&(s+=y(r)+":"+w(r,o[c])+";")}return s}(t,e,i);case"function":if(void 0!==t){var r=A,o=i(t);return A=r,k(t,e,o,s)}break;case"string":}if(null==e)return i;var l=e[i];return void 0===l||s?i:l}var A,S=/label:\s*([^\s;\n{]+)\s*;/g;var C=function(t,e,i){if(1===t.length&&"object"===Object(a.a)(t[0])&&null!==t[0]&&void 0!==t[0].styles)return t[0];var s=!0,n="";A=void 0;var r=t[0];null==r||void 0===r.raw?(s=!1,n+=k(i,e,r,!1)):n+=r[0];for(var o=1;o<t.length;o++)n+=k(i,e,t[o],46===n.charCodeAt(n.length-1)),s&&(n+=r[o]);S.lastIndex=0;for(var l,c="";null!==(l=S.exec(n));)c+="-"+l[1];return{name:g(n)+c,styles:n,next:A}},L=Object.prototype.hasOwnProperty,P=Object(n.createContext)("undefined"!=typeof HTMLElement?d():null),T=Object(n.createContext)({}),M=(P.Provider,function(t){var e=function(e,i){return Object(n.createElement)(P.Consumer,null,(function(a){return t(e,a,i)}))};return Object(n.forwardRef)(e)}),D="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",E=function(t,e){var i={};for(var a in e)L.call(e,a)&&(i[a]=e[a]);return i[D]=t,i},I=function(t,e,i,a){var s=null===i?e.css:e.css(i);"string"==typeof s&&void 0!==t.registered[s]&&(s=t.registered[s]);var r=e[D],o=[s],l="";"string"==typeof e.className?l=u(t.registered,o,e.className):null!=e.className&&(l=e.className+" ");var c=C(o);p(t,c,"string"==typeof r);l+=t.key+"-"+c.name;var h={};for(var d in e)L.call(e,d)&&"css"!==d&&d!==D&&(h[d]=e[d]);return h.ref=a,h.className=l,Object(n.createElement)(r,h)},z=M((function(t,e,i){return"function"==typeof t.css?Object(n.createElement)(T.Consumer,null,(function(a){return I(e,t,a,i)})):I(e,t,null,i)}));var O=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return C(e)},Y=function(t,e){var i=arguments;if(null==e||!L.call(e,"css"))return n.createElement.apply(void 0,i);var a=i.length,s=new Array(a);s[0]=z,s[1]=E(t,e);for(var r=2;r<a;r++)s[r]=i[r];return n.createElement.apply(null,s)},F=(n.Component,function t(e){for(var i=e.length,s=0,n="";s<i;s++){var r=e[s];if(null!=r){var o=void 0;switch(Object(a.a)(r)){case"boolean":break;case"object":if(Array.isArray(r))o=t(r);else for(var l in o="",r)r[l]&&l&&(o&&(o+=" "),o+=l);break;default:o=r}o&&(n&&(n+=" "),n+=o)}}return n});function X(t,e,i){var a=[],s=u(t,a,i);return a.length<2?i:s+e(a)}M((function(t,e){return Object(n.createElement)(T.Consumer,null,(function(i){var a=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var s=C(i,e.registered);return p(e,s,!1),e.key+"-"+s.name},s={css:a,cx:function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return X(e.registered,a,F(i))},theme:i},n=t.children(s);return!0,n}))}))},function(t,e,i){"use strict";function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var a,s,n=[],r=!0,o=!1;try{for(i=i.call(t);!(r=(a=i.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,s=t}finally{try{r||null==i.return||i.return()}finally{if(o)throw s}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i.d(e,"a",(function(){return s}))},function(t,e,i){"use strict";t.exports=i(30)},function(t,e,i){t.exports=i(28)},function(t,e,i){"use strict";function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,"a",(function(){return a}))},function(t,e,i){"use strict";function a(t,e,i,a,s,n,r){try{var o=t[n](r),l=o.value}catch(t){return void i(t)}o.done?e(l):Promise.resolve(l).then(a,s)}function s(t){return function(){var e=this,i=arguments;return new Promise((function(s,n){var r=t.apply(e,i);function o(t){a(r,s,n,o,l,"next",t)}function l(t){a(r,s,n,o,l,"throw",t)}o(void 0)}))}}i.d(e,"a",(function(){return s}))},function(t,e,i){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i.d(e,"a",(function(){return a}))},function(t,e){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=i=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),i(e)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));i(6);function a(t,e){void 0===e&&(e={});for(var i=function(t){for(var e=[],i=0;i<t.length;){var a=t[i];if("*"!==a&&"+"!==a&&"?"!==a)if("\\"!==a)if("{"!==a)if("}"!==a)if(":"!==a)if("("!==a)e.push({type:"CHAR",index:i,value:t[i++]});else{var s=1,n="";if("?"===t[o=i+1])throw new TypeError('Pattern cannot start with "?" at '+o);for(;o<t.length;)if("\\"!==t[o]){if(")"===t[o]){if(0===--s){o++;break}}else if("("===t[o]&&(s++,"?"!==t[o+1]))throw new TypeError("Capturing groups are not allowed at "+o);n+=t[o++]}else n+=t[o++]+t[o++];if(s)throw new TypeError("Unbalanced pattern at "+i);if(!n)throw new TypeError("Missing pattern at "+i);e.push({type:"PATTERN",index:i,value:n}),i=o}else{for(var r="",o=i+1;o<t.length;){var l=t.charCodeAt(o);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;r+=t[o++]}if(!r)throw new TypeError("Missing parameter name at "+i);e.push({type:"NAME",index:i,value:r}),i=o}else e.push({type:"CLOSE",index:i,value:t[i++]});else e.push({type:"OPEN",index:i,value:t[i++]});else e.push({type:"ESCAPED_CHAR",index:i++,value:t[i++]});else e.push({type:"MODIFIER",index:i,value:t[i++]})}return e.push({type:"END",index:i,value:""}),e}(t),a=e.prefixes,s=void 0===a?"./":a,r="[^"+n(e.delimiter||"/#?")+"]+?",o=[],l=0,c=0,h="",d=function(t){if(c<i.length&&i[c].type===t)return i[c++].value},u=function(t){var e=d(t);if(void 0!==e)return e;var a=i[c],s=a.type,n=a.index;throw new TypeError("Unexpected "+s+" at "+n+", expected "+t)},p=function(){for(var t,e="";t=d("CHAR")||d("ESCAPED_CHAR");)e+=t;return e};c<i.length;){var g=d("CHAR"),f=d("NAME"),x=d("PATTERN");if(f||x){var m=g||"";-1===s.indexOf(m)&&(h+=m,m=""),h&&(o.push(h),h=""),o.push({name:f||l++,prefix:m,suffix:"",pattern:x||r,modifier:d("MODIFIER")||""})}else{var b=g||d("ESCAPED_CHAR");if(b)h+=b;else if(h&&(o.push(h),h=""),d("OPEN")){m=p();var v=d("NAME")||"",y=d("PATTERN")||"",w=p();u("CLOSE"),o.push({name:v||(y?l++:""),pattern:v&&!y?r:y,prefix:m,suffix:w,modifier:d("MODIFIER")||""})}else u("END")}}return o}function s(t,e){var i=[];return function(t,e,i){void 0===i&&(i={});var a=i.decode,s=void 0===a?function(t){return t}:a;return function(i){var a=t.exec(i);if(!a)return!1;for(var n=a[0],r=a.index,o=Object.create(null),l=function(t){if(void 0===a[t])return"continue";var i=e[t-1];"*"===i.modifier||"+"===i.modifier?o[i.name]=a[t].split(i.prefix+i.suffix).map((function(t){return s(t,i)})):o[i.name]=s(a[t],i)},c=1;c<a.length;c++)l(c);return{path:n,index:r,params:o}}}(l(t,i,e),i,e)}function n(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function r(t){return t&&t.sensitive?"":"i"}function o(t,e,i){return function(t,e,i){void 0===i&&(i={});for(var a=i.strict,s=void 0!==a&&a,o=i.start,l=void 0===o||o,c=i.end,h=void 0===c||c,d=i.encode,u=void 0===d?function(t){return t}:d,p="["+n(i.endsWith||"")+"]|$",g="["+n(i.delimiter||"/#?")+"]",f=l?"^":"",x=0,m=t;x<m.length;x++){var b=m[x];if("string"==typeof b)f+=n(u(b));else{var v=n(u(b.prefix)),y=n(u(b.suffix));if(b.pattern)if(e&&e.push(b),v||y)if("+"===b.modifier||"*"===b.modifier){var w="*"===b.modifier?"?":"";f+="(?:"+v+"((?:"+b.pattern+")(?:"+y+v+"(?:"+b.pattern+"))*)"+y+")"+w}else f+="(?:"+v+"("+b.pattern+")"+y+")"+b.modifier;else f+="("+b.pattern+")"+b.modifier;else f+="(?:"+v+y+")"+b.modifier}}if(h)s||(f+=g+"?"),f+=i.endsWith?"(?="+p+")":"$";else{var k=t[t.length-1],A="string"==typeof k?g.indexOf(k[k.length-1])>-1:void 0===k;s||(f+="(?:"+g+"(?="+p+"))?"),A||(f+="(?="+g+"|"+p+")")}return new RegExp(f,r(i))}(a(t,i),e,i)}function l(t,e,i){return t instanceof RegExp?function(t,e){if(!e)return t;for(var i=/\((?:\?<(.*?)>)?(?!\?)/g,a=0,s=i.exec(t.source);s;)e.push({name:s[1]||a++,prefix:"",suffix:"",modifier:"",pattern:""}),s=i.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,i){var a=t.map((function(t){return l(t,e,i).source}));return new RegExp("(?:"+a.join("|")+")",r(i))}(t,e,i):o(t,e,i)}},function(t,e,i){"use strict";var a=i(7);Object.defineProperty(e,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==a(Symbol.iterator)?function(t){return a(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":a(t)},n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),o=d(i(29)),l=i(2),c=d(l),h=d(i(32));function d(t){return t&&t.__esModule?t:{default:t}}window.ApexCharts=o.default;var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=a(e)&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return c.default.createRef?i.chartRef=c.default.createRef():i.setRef=function(t){return i.chartRef=t},i.chart=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+a(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,l.Component),r(t,[{key:"render",value:function(){var t=function(t,e){var i={};for(var a in t)0<=e.indexOf(a)||Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=t[a]);return i}(this.props,[]);return c.default.createElement("div",n({ref:c.default.createRef?this.chartRef:this.setRef},t))}},{key:"componentDidMount",value:function(){var t=c.default.createRef?this.chartRef.current:this.chartRef;this.chart=new o.default(t,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var t=this.props,e=t.type,i=t.height,a=t.width,s=t.series,n=t.options,r={chart:{type:e,height:i,width:a},series:s};return this.extend(n,r)}},{key:"isObject",value:function(t){return t&&"object"===(void 0===t?"undefined":s(t))&&!Array.isArray(t)&&null!=t}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e});var a=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach((function(s){i.isObject(e[s])&&s in t?a[s]=i.extend(t[s],e[s]):Object.assign(a,function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},s,e[s]))})),a}},{key:"componentDidUpdate",value:function(t){if(!this.chart)return null;var e=this.props,i=e.options,a=e.series,s=e.height,n=e.width,r=JSON.stringify(t.options),o=JSON.stringify(t.series),l=JSON.stringify(i),c=JSON.stringify(a);r===l&&o===c&&s===t.height&&n===t.width||(o===c?this.chart.updateOptions(this.getConfig()):r===l&&s===t.height&&n===t.width?this.chart.updateSeries(a):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&"function"==typeof this.chart.destroy&&this.chart.destroy()}}]),t}();(e.default=u).propTypes={type:h.default.string.isRequired,width:h.default.any,height:h.default.any,series:h.default.array.isRequired,options:h.default.object.isRequired},u.defaultProps={type:"line",width:"100%",height:"auto"}},function(t,e,i){"use strict";function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}i.d(e,"a",(function(){return a}))},function(t,e,i){"use strict";function a(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}i.d(e,"a",(function(){return a}))},function(t,e,i){"use strict";function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}i.d(e,"a",(function(){return a}))},function(t,e,i){"use strict";function a(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function s(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}i.d(e,"a",(function(){return s}))},function(t,e,i){"use strict";function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}i.d(e,"a",(function(){return a}))},function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=i(16);function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Object(a.a)(t,e)}},function(t,e,i){"use strict";function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}i.d(e,"a",(function(){return a}))},function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var a=i(7),s=i.n(a),n=i(14);function r(t,e){if(e&&("object"===s()(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Object(n.a)(t)}},function(t,e,i){var a,s=i(7);
19
- /*!
20
- Copyright (c) 2018 Jed Watson.
21
- Licensed under the MIT License (MIT), see
22
- http://jedwatson.github.io/classnames
23
- */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var i=arguments[e];if(i){var a=s(i);if("string"===a||"number"===a)t.push(i);else if(Array.isArray(i)){if(i.length){var o=r.apply(null,i);o&&t.push(o)}}else if("object"===a)if(i.toString===Object.prototype.toString)for(var l in i)n.call(i,l)&&i[l]&&t.push(l);else t.push(i.toString())}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):"object"===s(i(19))&&i(19)?void 0===(a=function(){return r}.apply(e,[]))||(t.exports=a):window.classNames=r}()},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){"use strict";var a=Object.prototype.hasOwnProperty;function s(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function n(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var i,s,r=[];for(s in"string"!=typeof e&&(e="?"),t)if(a.call(t,s)){if((i=t[s])||null!=i&&!isNaN(i)||(i=""),s=n(s),i=n(i),null===s||null===i)continue;r.push(s+"="+i)}return r.length?e+r.join("&"):""},e.parse=function(t){for(var e,i=/([^=?#&]+)=?([^&]*)/g,a={};e=i.exec(t);){var n=s(e[1]),r=s(e[2]);null===n||null===r||n in a||(a[n]=r)}return a}},function(t,e,i){(function(t){var a,s,n,r,o=i(7);window,r=function(){return function(t){var e={};function i(a){if(e[a])return e[a].exports;var s=e[a]={i:a,l:!1,exports:{}};return t[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==o(t)&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(a,s,function(e){return t[e]}.bind(null,s));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(e,i,a){void 0===e&&(e=null),void 0===i&&(i=null),void 0===a&&(a="en-US"),this.dateInstance="object"==o(i)&&null!==i?i.parse(e instanceof t?e.clone().toJSDate():e):"string"==typeof i?t.parseDateTime(e,i,a):e?t.parseDateTime(e):t.parseDateTime(new Date),this.lang=a}return t.parseDateTime=function(e,i,a){if(void 0===i&&(i="YYYY-MM-DD"),void 0===a&&(a="en-US"),!e)return new Date(NaN);if(e instanceof Date)return new Date(e);if(e instanceof t)return e.clone().toJSDate();if(/^-?\d{10,}$/.test(e))return t.getDateZeroTime(new Date(Number(e)));if("string"==typeof e){for(var s=[],n=null;null!=(n=t.regex.exec(i));)"\\"!==n[1]&&s.push(n);if(s.length){var r={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};s[0].index>0&&(r.value+=".*?");for(var o=0,l=Object.entries(s);o<l.length;o++){var c=l[o],h=c[0],d=c[1],u=Number(h),p=t.formatPatterns(d[0],a),g=p.group,f=p.pattern;r[g]=u+1,r.value+=f,r.value+=".*?"}var x=new RegExp("^"+r.value+"$");if(x.test(e)){var m=x.exec(e),b=Number(m[r.year]),v=null;r.month?v=Number(m[r.month])-1:r.shortMonth?v=t.shortMonths(a).indexOf(m[r.shortMonth]):r.longMonth&&(v=t.longMonths(a).indexOf(m[r.longMonth]));var y=Number(m[r.day])||1;return new Date(b,v,y,0,0,0,0)}}}return t.getDateZeroTime(new Date(e))},t.convertArray=function(e,i){return e.map((function(e){return e instanceof Array?e.map((function(e){return new t(e,i)})):new t(e,i)}))},t.getDateZeroTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},t.shortMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"short"})}))},t.longMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"long"})}))},t.formatPatterns=function(e,i){switch(e){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+e.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+t.shortMonths(i).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+t.longMonths(i).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},t.prototype.toJSDate=function(){return this.dateInstance},t.prototype.toLocaleString=function(t,e){return this.dateInstance.toLocaleString(t,e)},t.prototype.toDateString=function(){return this.dateInstance.toDateString()},t.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},t.prototype.getDay=function(){return this.dateInstance.getDay()},t.prototype.getTime=function(){return this.dateInstance.getTime()},t.prototype.getDate=function(){return this.dateInstance.getDate()},t.prototype.getMonth=function(){return this.dateInstance.getMonth()},t.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},t.prototype.setMonth=function(t){return this.dateInstance.setMonth(t)},t.prototype.setHours=function(t,e,i,a){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===a&&(a=0),this.dateInstance.setHours(t,e,i,a)},t.prototype.setSeconds=function(t){return this.dateInstance.setSeconds(t)},t.prototype.setDate=function(t){return this.dateInstance.setDate(t)},t.prototype.setFullYear=function(t){return this.dateInstance.setFullYear(t)},t.prototype.getWeek=function(t){var e=new Date(this.timestamp()),i=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-i);var a=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((a-e.getTime())/6048e5)},t.prototype.clone=function(){return new t(this.toJSDate())},t.prototype.isBetween=function(t,e,i){switch(void 0===i&&(i="()"),i){default:case"()":return this.timestamp()>t.getTime()&&this.timestamp()<e.getTime();case"[)":return this.timestamp()>=t.getTime()&&this.timestamp()<e.getTime();case"(]":return this.timestamp()>t.getTime()&&this.timestamp()<=e.getTime();case"[]":return this.timestamp()>=t.getTime()&&this.timestamp()<=e.getTime()}},t.prototype.isBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},t.prototype.isSameOrBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>=this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},t.prototype.isAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw new Error("isAfter: Invalid unit!")},t.prototype.isSameOrAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>=t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},t.prototype.isSame=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()===t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},t.prototype.add=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()+t);break;case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this},t.prototype.subtract=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()-t);break;case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this},t.prototype.diff=function(t,e){switch(void 0===e&&(e="seconds"),e){default:case"second":case"seconds":return this.getTime()-t.getTime();case"day":case"days":return Math.round((this.timestamp()-t.getTime())/864e5);case"month":case"months":}},t.prototype.format=function(e,i){if(void 0===i&&(i="en-US"),"object"==o(e))return e.output(this.clone().toJSDate());for(var a="",s=[],n=null;null!=(n=t.regex.exec(e));)"\\"!==n[1]&&s.push(n);if(s.length){s[0].index>0&&(a+=e.substring(0,s[0].index));for(var r=0,l=Object.entries(s);r<l.length;r++){var c=l[r],h=c[0],d=c[1],u=Number(h);a+=this.formatTokens(d[0],i),s[u+1]&&(a+=e.substring(d.index+d[0].length,s[u+1].index)),u===s.length-1&&(a+=e.substring(d.index+d[0].length))}}return a.replace(/\\/g,"")},t.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},t.prototype.formatTokens=function(e,i){switch(e){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return t.shortMonths(i)[this.getMonth()];case"MMMM":return t.longMonths(i)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},t.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,t.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],t}();e.DateTime=a},function(t,e,i){"use strict";var a,s=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var a=Array(t),s=0;for(e=0;e<i;e++)for(var n=arguments[e],r=0,o=n.length;r<o;r++,s++)a[s]=n[r];return a};Object.defineProperty(e,"__esModule",{value:!0});var r=i(5),o=i(0),l=i(3),c=i(2),h=function(t){function e(e){var i=t.call(this,e)||this;return i.preventClick=!1,i.bindEvents(),i}return s(e,t),e.prototype.scrollToDate=function(t){if(this.options.scrollToDate){var e=this.options.startDate instanceof o.DateTime?this.options.startDate.clone():null,i=this.options.endDate instanceof o.DateTime?this.options.endDate.clone():null;!this.options.startDate||t&&t!==this.options.element?t&&this.options.endDate&&t===this.options.elementEnd&&(i.setDate(1),this.options.numberOfMonths>1&&i.isAfter(e)&&i.setMonth(i.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=i.clone()):(e.setDate(1),this.calendars[0]=e.clone())}},e.prototype.bindEvents=function(){document.addEventListener("click",this.onClick.bind(this),!0),this.ui=document.createElement("div"),this.ui.className=l.litepicker,this.ui.style.display="none",this.ui.addEventListener("mouseenter",this.onMouseEnter.bind(this),!0),this.ui.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",this.onInput.bind(this),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",this.onInput.bind(this),!0)),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.ui):document.querySelector(this.options.parentEl).appendChild(this.ui):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.ui):this.options.element.appendChild(this.ui):document.body.appendChild(this.ui),this.updateInput(),this.init(),"function"==typeof this.options.setup&&this.options.setup.call(this,this),this.render(),this.options.inlineMode&&this.show()},e.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){var t=this.options.startDate,e=this.options.endDate;if(this.options.singleMode&&t)this.options.element.value=t.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&t&&e){var i=t.format(this.options.format,this.options.lang),a=e.format(this.options.format,this.options.lang);this.options.elementEnd instanceof HTMLInputElement?(this.options.element.value=i,this.options.elementEnd.value=a):this.options.element.value=""+i+this.options.delimiter+a}t||e||(this.options.element.value="",this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.value=""))}},e.prototype.isSamePicker=function(t){return t.closest("."+l.litepicker)===this.ui},e.prototype.shouldShown=function(t){return!t.disabled&&(t===this.options.element||this.options.elementEnd&&t===this.options.elementEnd)},e.prototype.shouldResetDatePicked=function(){return this.options.singleMode||2===this.datePicked.length},e.prototype.shouldSwapDatePicked=function(){return 2===this.datePicked.length&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},e.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&2===this.datePicked.length},e.prototype.onClick=function(t){var e=t.target;if(e&&this.ui)if(this.shouldShown(e))this.show(e);else if(e.closest("."+l.litepicker)||!this.isShowning()){if(this.isSamePicker(e))if(this.emit("before:click",e),this.preventClick)this.preventClick=!1;else{if(e.classList.contains(l.dayItem)){if(t.preventDefault(),e.classList.contains(l.isLocked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new o.DateTime(e.dataset.time),this.shouldSwapDatePicked()){var i=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=i.clone()}return this.shouldCheckLockDays()&&c.rangeIsLocked(this.datePicked,this.options)&&(this.emit("error:range",this.datePicked),this.datePicked.length=0),this.render(),this.emit.apply(this,n(["preselect"],n(this.datePicked).map((function(t){return t.clone()})))),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||2!==this.datePicked.length||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(e.classList.contains(l.buttonPreviousMonth)){t.preventDefault();var a=0,s=this.options.switchingMonths||this.options.numberOfMonths;if(this.options.splitView){var r=e.closest("."+l.monthItem);a=c.findNestedMonthItem(r),s=1}return this.calendars[a].setMonth(this.calendars[a].getMonth()-s),this.gotoDate(this.calendars[a],a),void this.emit("change:month",this.calendars[a],a)}if(e.classList.contains(l.buttonNextMonth))return t.preventDefault(),a=0,s=this.options.switchingMonths||this.options.numberOfMonths,this.options.splitView&&(r=e.closest("."+l.monthItem),a=c.findNestedMonthItem(r),s=1),this.calendars[a].setMonth(this.calendars[a].getMonth()+s),this.gotoDate(this.calendars[a],a),void this.emit("change:month",this.calendars[a],a);e.classList.contains(l.buttonCancel)&&(t.preventDefault(),this.hide(),this.emit("button:cancel")),e.classList.contains(l.buttonApply)&&(t.preventDefault(),this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||2!==this.datePicked.length||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide(),this.emit("button:apply",this.options.startDate,this.options.endDate))}}else this.hide()},e.prototype.showTooltip=function(t,e){var i=this.ui.querySelector("."+l.containerTooltip);i.style.visibility="visible",i.innerHTML=e;var a=this.ui.getBoundingClientRect(),s=i.getBoundingClientRect(),n=t.getBoundingClientRect(),r=n.top,o=n.left;if(this.options.inlineMode&&this.options.parentEl){var c=this.ui.parentNode.getBoundingClientRect();r-=c.top,o-=c.left}else r-=a.top,o-=a.left;r-=s.height,o-=s.width/2,o+=n.width/2,i.style.top=r+"px",i.style.left=o+"px",this.emit("tooltip",i,t)},e.prototype.hideTooltip=function(){this.ui.querySelector("."+l.containerTooltip).style.visibility="hidden"},e.prototype.shouldAllowMouseEnter=function(t){return!this.options.singleMode&&!t.classList.contains(l.isLocked)},e.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},e.prototype.isDayItem=function(t){return t.classList.contains(l.dayItem)},e.prototype.onMouseEnter=function(t){var e=this,i=t.target;if(this.isDayItem(i)&&this.shouldAllowMouseEnter(i)){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),1!==this.datePicked.length)return;var a=this.ui.querySelector("."+l.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),s=this.datePicked[0].clone(),n=new o.DateTime(i.dataset.time),r=!1;if(s.getTime()>n.getTime()){var c=s.clone();s=n.clone(),n=c.clone(),r=!0}if(Array.prototype.slice.call(this.ui.querySelectorAll("."+l.dayItem)).forEach((function(t){var i=new o.DateTime(t.dataset.time),a=e.renderDay(i);i.isBetween(s,n)&&a.classList.add(l.isInRange),t.className=a.className})),i.classList.add(l.isEndDate),r?(a&&a.classList.add(l.isFlipped),i.classList.add(l.isFlipped)):(a&&a.classList.remove(l.isFlipped),i.classList.remove(l.isFlipped)),this.options.showTooltip){var h=n.diff(s,"day")+1;if("function"==typeof this.options.tooltipNumber&&(h=this.options.tooltipNumber.call(this,h)),h>0){var d=this.pluralSelector(h),u=h+" "+(this.options.tooltipText[d]?this.options.tooltipText[d]:"["+d+"]");this.showTooltip(i,u);var p=window.navigator.userAgent,g=/(iphone|ipad)/i.test(p),f=/OS 1([0-2])/i.test(p);g&&f&&i.dispatchEvent(new Event("click"))}else this.hideTooltip()}}},e.prototype.onMouseLeave=function(t){t.target,this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},e.prototype.onInput=function(t){var e=this.parseInput(),i=e[0],a=e[1],s=this.options.format;if(this.options.elementEnd?i instanceof o.DateTime&&a instanceof o.DateTime&&i.format(s)===this.options.element.value&&a.format(s)===this.options.elementEnd.value:this.options.singleMode?i instanceof o.DateTime&&i.format(s)===this.options.element.value:i instanceof o.DateTime&&a instanceof o.DateTime&&""+i.format(s)+this.options.delimiter+a.format(s)===this.options.element.value){if(a&&i.getTime()>a.getTime()){var n=i.clone();i=a.clone(),a=n.clone()}this.options.startDate=new o.DateTime(i,this.options.format,this.options.lang),a&&(this.options.endDate=new o.DateTime(a,this.options.format,this.options.lang)),this.updateInput(),this.render();var r=i.clone(),l=0;(this.options.elementEnd?i.format(s)===t.target.value:t.target.value.startsWith(i.format(s)))||(r=a.clone(),l=this.options.numberOfMonths-1),this.emit("selected",this.getStartDate(),this.getEndDate()),this.gotoDate(r,l)}},e}(r.Calendar);e.Litepicker=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findNestedMonthItem=function(t){for(var e=t.parentNode.childNodes,i=0;i<e.length;i+=1)if(e.item(i)===t)return i;return 0},e.dateIsLocked=function(t,e,i){var a=!1;return e.lockDays.length&&(a=e.lockDays.filter((function(i){return i instanceof Array?t.isBetween(i[0],i[1],e.lockDaysInclusivity):i.isSame(t,"day")})).length),a||"function"!=typeof e.lockDaysFilter||(a=e.lockDaysFilter.call(this,t.clone(),null,i)),a},e.rangeIsLocked=function(t,e){var i=!1;return e.lockDays.length&&(i=e.lockDays.filter((function(i){if(i instanceof Array){var a=t[0].toDateString()===i[0].toDateString()&&t[1].toDateString()===i[1].toDateString();return i[0].isBetween(t[0],t[1],e.lockDaysInclusivity)||i[1].isBetween(t[0],t[1],e.lockDaysInclusivity)||a}return i.isBetween(t[0],t[1],e.lockDaysInclusivity)})).length),i||"function"!=typeof e.lockDaysFilter||(i=e.lockDaysFilter.call(this,t[0].clone(),t[1].clone(),t)),i}},function(t,e,i){var a=i(8);"string"==typeof a&&(a=[[t.i,a,""]]);var s={insert:function(t){var e=document.querySelector("head"),i=window._lastElementInsertedByStyleLoader;window.disableLitepickerStyles||(i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild),window._lastElementInsertedByStyleLoader=t)},singleton:!1};i(10)(a,s),a.locals&&(t.exports=a.locals)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(1);e.Litepicker=a.Litepicker,i(11),window.Litepicker=a.Litepicker,e.default=a.Litepicker},function(t,e,i){"use strict";var a,s=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),r=i(0),o=i(3),l=i(2),c=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.render=function(){var t=this;this.emit("before:render",this.ui);var e=document.createElement("div");e.className=o.containerMain;var i=document.createElement("div");i.className=o.containerMonths,o["columns"+this.options.numberOfColumns]&&(i.classList.remove(o.columns2,o.columns3,o.columns4),i.classList.add(o["columns"+this.options.numberOfColumns])),this.options.splitView&&i.classList.add(o.splitView),this.options.showWeekNumbers&&i.classList.add(o.showWeekNumbers);for(var a=this.calendars[0].clone(),s=a.getMonth(),n=a.getMonth()+this.options.numberOfMonths,r=0,l=s;l<n;l+=1){var c=a.clone();c.setDate(1),c.setHours(0,0,0,0),this.options.splitView?c=this.calendars[r].clone():c.setMonth(l),i.appendChild(this.renderMonth(c,r)),r+=1}if(this.ui.innerHTML="",e.appendChild(i),this.options.resetButton){var h=void 0;"function"==typeof this.options.resetButton?h=this.options.resetButton.call(this):((h=document.createElement("button")).type="button",h.className=o.resetButton,h.innerHTML=this.options.buttonText.reset),h.addEventListener("click",(function(e){e.preventDefault(),t.clearSelection()})),e.querySelector("."+o.monthItem+":last-child").querySelector("."+o.monthItemHeader).appendChild(h)}this.ui.appendChild(e),this.options.autoApply&&!this.options.footerHTML||this.ui.appendChild(this.renderFooter()),this.options.showTooltip&&this.ui.appendChild(this.renderTooltip()),this.ui.dataset.plugins=(this.options.plugins||[]).join("|"),this.emit("render",this.ui)},e.prototype.renderMonth=function(t,e){var i=this,a=t.clone(),s=32-new Date(a.getFullYear(),a.getMonth(),32).getDate(),n=document.createElement("div");n.className=o.monthItem;var c=document.createElement("div");c.className=o.monthItemHeader;var h=document.createElement("div");if(this.options.dropdowns.months){var d=document.createElement("select");d.className=o.monthItemName;for(var u=0;u<12;u+=1){var p=document.createElement("option"),g=new r.DateTime(new Date(t.getFullYear(),u,2,0,0,0)),f=new r.DateTime(new Date(t.getFullYear(),u,1,0,0,0));p.value=String(u),p.text=g.toLocaleString(this.options.lang,{month:"long"}),p.disabled=this.options.minDate&&f.isBefore(new r.DateTime(this.options.minDate),"month")||this.options.maxDate&&f.isAfter(new r.DateTime(this.options.maxDate),"month"),p.selected=f.getMonth()===t.getMonth(),d.appendChild(p)}d.addEventListener("change",(function(t){var e=t.target,a=0;if(i.options.splitView){var s=e.closest("."+o.monthItem);a=l.findNestedMonthItem(s)}i.calendars[a].setMonth(Number(e.value)),i.render(),i.emit("change:month",i.calendars[a],a,t)})),h.appendChild(d)}else(g=document.createElement("strong")).className=o.monthItemName,g.innerHTML=t.toLocaleString(this.options.lang,{month:"long"}),h.appendChild(g);if(this.options.dropdowns.years){var x=document.createElement("select");x.className=o.monthItemYear;var m=this.options.dropdowns.minYear,b=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:(new Date).getFullYear();for(t.getFullYear()>b&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,x.appendChild(p)),u=b;u>=m;u-=1){p=document.createElement("option");var v=new r.DateTime(new Date(u,0,1,0,0,0));p.value=String(u),p.text=String(u),p.disabled=this.options.minDate&&v.isBefore(new r.DateTime(this.options.minDate),"year")||this.options.maxDate&&v.isAfter(new r.DateTime(this.options.maxDate),"year"),p.selected=t.getFullYear()===u,x.appendChild(p)}if(t.getFullYear()<m&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,x.appendChild(p)),"asc"===this.options.dropdowns.years){var y=Array.prototype.slice.call(x.childNodes).reverse();x.innerHTML="",y.forEach((function(t){t.innerHTML=t.value,x.appendChild(t)}))}x.addEventListener("change",(function(t){var e=t.target,a=0;if(i.options.splitView){var s=e.closest("."+o.monthItem);a=l.findNestedMonthItem(s)}i.calendars[a].setFullYear(Number(e.value)),i.render(),i.emit("change:year",i.calendars[a],a,t)})),h.appendChild(x)}else{var w=document.createElement("span");w.className=o.monthItemYear,w.innerHTML=String(t.getFullYear()),h.appendChild(w)}var k=document.createElement("button");k.type="button",k.className=o.buttonPreviousMonth,k.innerHTML=this.options.buttonText.previousMonth;var A=document.createElement("button");A.type="button",A.className=o.buttonNextMonth,A.innerHTML=this.options.buttonText.nextMonth,c.appendChild(k),c.appendChild(h),c.appendChild(A),this.options.minDate&&a.isSameOrBefore(new r.DateTime(this.options.minDate),"month")&&n.classList.add(o.noPreviousMonth),this.options.maxDate&&a.isSameOrAfter(new r.DateTime(this.options.maxDate),"month")&&n.classList.add(o.noNextMonth);var S=document.createElement("div");S.className=o.monthItemWeekdaysRow,this.options.showWeekNumbers&&(S.innerHTML="<div>W</div>");for(var C=1;C<=7;C+=1){var L=3+this.options.firstDay+C,P=document.createElement("div");P.innerHTML=this.weekdayName(L),P.title=this.weekdayName(L,"long"),S.appendChild(P)}var T=document.createElement("div");T.className=o.containerDays;var M=this.calcSkipDays(a);this.options.showWeekNumbers&&M&&T.appendChild(this.renderWeekNumber(a));for(var D=0;D<M;D+=1){var E=document.createElement("div");T.appendChild(E)}for(D=1;D<=s;D+=1)a.setDate(D),this.options.showWeekNumbers&&a.getDay()===this.options.firstDay&&T.appendChild(this.renderWeekNumber(a)),T.appendChild(this.renderDay(a));return n.appendChild(c),n.appendChild(S),n.appendChild(T),this.emit("render:month",n,t),n},e.prototype.renderDay=function(t){t.setHours();var e=document.createElement("div");if(e.className=o.dayItem,e.innerHTML=String(t.getDate()),e.dataset.time=String(t.getTime()),t.toDateString()===(new Date).toDateString()&&e.classList.add(o.isToday),this.datePicked.length)this.datePicked[0].toDateString()===t.toDateString()&&(e.classList.add(o.isStartDate),this.options.singleMode&&e.classList.add(o.isEndDate)),2===this.datePicked.length&&this.datePicked[1].toDateString()===t.toDateString()&&e.classList.add(o.isEndDate),2===this.datePicked.length&&t.isBetween(this.datePicked[0],this.datePicked[1])&&e.classList.add(o.isInRange);else if(this.options.startDate){var i=this.options.startDate,a=this.options.endDate;i.toDateString()===t.toDateString()&&(e.classList.add(o.isStartDate),this.options.singleMode&&e.classList.add(o.isEndDate)),a&&a.toDateString()===t.toDateString()&&e.classList.add(o.isEndDate),i&&a&&t.isBetween(i,a)&&e.classList.add(o.isInRange)}if(this.options.minDate&&t.isBefore(new r.DateTime(this.options.minDate))&&e.classList.add(o.isLocked),this.options.maxDate&&t.isAfter(new r.DateTime(this.options.maxDate))&&e.classList.add(o.isLocked),this.options.minDays>1&&1===this.datePicked.length){var s=this.options.minDays-1,n=this.datePicked[0].clone().subtract(s,"day"),c=this.datePicked[0].clone().add(s,"day");t.isBetween(n,this.datePicked[0],"(]")&&e.classList.add(o.isLocked),t.isBetween(this.datePicked[0],c,"[)")&&e.classList.add(o.isLocked)}if(this.options.maxDays&&1===this.datePicked.length){var h=this.options.maxDays;n=this.datePicked[0].clone().subtract(h,"day"),c=this.datePicked[0].clone().add(h,"day"),t.isSameOrBefore(n)&&e.classList.add(o.isLocked),t.isSameOrAfter(c)&&e.classList.add(o.isLocked)}return this.options.selectForward&&1===this.datePicked.length&&t.isBefore(this.datePicked[0])&&e.classList.add(o.isLocked),this.options.selectBackward&&1===this.datePicked.length&&t.isAfter(this.datePicked[0])&&e.classList.add(o.isLocked),l.dateIsLocked(t,this.options,this.datePicked)&&e.classList.add(o.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter((function(e){return e instanceof Array?t.isBetween(e[0],e[1],"[]"):e.isSame(t,"day")})).length&&e.classList.add(o.isHighlighted),e.tabIndex=e.classList.contains("is-locked")?-1:0,this.emit("render:day",e,t),e},e.prototype.renderFooter=function(){var t=document.createElement("div");if(t.className=o.containerFooter,this.options.footerHTML?t.innerHTML=this.options.footerHTML:t.innerHTML='\n <span class="'+o.previewDateRange+'"></span>\n <button type="button" class="'+o.buttonCancel+'">'+this.options.buttonText.cancel+'</button>\n <button type="button" class="'+o.buttonApply+'">'+this.options.buttonText.apply+"</button>\n ",this.options.singleMode){if(1===this.datePicked.length){var e=this.datePicked[0].format(this.options.format,this.options.lang);t.querySelector("."+o.previewDateRange).innerHTML=e}}else if(1===this.datePicked.length&&t.querySelector("."+o.buttonApply).setAttribute("disabled",""),2===this.datePicked.length){e=this.datePicked[0].format(this.options.format,this.options.lang);var i=this.datePicked[1].format(this.options.format,this.options.lang);t.querySelector("."+o.previewDateRange).innerHTML=""+e+this.options.delimiter+i}return this.emit("render:footer",t),t},e.prototype.renderWeekNumber=function(t){var e=document.createElement("div"),i=t.getWeek(this.options.firstDay);return e.className=o.weekNumber,e.innerHTML=53===i&&0===t.getMonth()?"53 / 1":i,e},e.prototype.renderTooltip=function(){var t=document.createElement("div");return t.className=o.containerTooltip,t},e.prototype.weekdayName=function(t,e){return void 0===e&&(e="short"),new Date(1970,0,t,12,0,0,0).toLocaleString(this.options.lang,{weekday:e})},e.prototype.calcSkipDays=function(t){var e=t.getDay()-this.options.firstDay;return e<0&&(e+=7),e},e}(n.LPCore);e.Calendar=c},function(t,e,i){"use strict";var a,s=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(7),o=i(0),l=i(1),c=function(t){function e(e){var i=t.call(this)||this;i.datePicked=[],i.calendars=[],i.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,position:"auto",selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,scrollToDate:!0,mobileFriendly:!0,resetButton:!1,autoRefresh:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n </svg>'},tooltipText:{one:"day",other:"days"}},i.options=n(n({},i.options),e.element.dataset),Object.keys(i.options).forEach((function(t){"true"!==i.options[t]&&"false"!==i.options[t]||(i.options[t]="true"===i.options[t])}));var a=n(n({},i.options.dropdowns),e.dropdowns),s=n(n({},i.options.buttonText),e.buttonText),r=n(n({},i.options.tooltipText),e.tooltipText);i.options=n(n({},i.options),e),i.options.dropdowns=n({},a),i.options.buttonText=n({},s),i.options.tooltipText=n({},r),i.options.elementEnd||(i.options.allowRepick=!1),i.options.lockDays.length&&(i.options.lockDays=o.DateTime.convertArray(i.options.lockDays,i.options.lockDaysFormat)),i.options.highlightedDays.length&&(i.options.highlightedDays=o.DateTime.convertArray(i.options.highlightedDays,i.options.highlightedDaysFormat));var l=i.parseInput(),c=l[0],h=l[1];i.options.startDate&&(i.options.singleMode||i.options.endDate)&&(c=new o.DateTime(i.options.startDate,i.options.format,i.options.lang)),c&&i.options.endDate&&(h=new o.DateTime(i.options.endDate,i.options.format,i.options.lang)),c instanceof o.DateTime&&!isNaN(c.getTime())&&(i.options.startDate=c),i.options.startDate&&h instanceof o.DateTime&&!isNaN(h.getTime())&&(i.options.endDate=h),!i.options.singleMode||i.options.startDate instanceof o.DateTime||(i.options.startDate=null),i.options.singleMode||i.options.startDate instanceof o.DateTime&&i.options.endDate instanceof o.DateTime||(i.options.startDate=null,i.options.endDate=null);for(var d=0;d<i.options.numberOfMonths;d+=1){var u=i.options.startDate instanceof o.DateTime?i.options.startDate.clone():new o.DateTime;if(!i.options.startDate&&(0===d||i.options.splitView)){var p=i.options.maxDate?new o.DateTime(i.options.maxDate):null,g=i.options.minDate?new o.DateTime(i.options.minDate):null,f=i.options.numberOfMonths-1;g&&p&&u.isAfter(p)?(u=g.clone()).setDate(1):!g&&p&&u.isAfter(p)&&((u=p.clone()).setDate(1),u.setMonth(u.getMonth()-f))}u.setDate(1),u.setMonth(u.getMonth()+d),i.calendars[d]=u}if(i.options.showTooltip)if(i.options.tooltipPluralSelector)i.pluralSelector=i.options.tooltipPluralSelector;else try{var x=new Intl.PluralRules(i.options.lang);i.pluralSelector=x.select.bind(x)}catch(t){i.pluralSelector=function(t){return 0===Math.abs(t)?"one":"other"}}return i}return s(e,t),e.add=function(t,e){l.Litepicker.prototype[t]=e},e.prototype.DateTime=function(t,e){return t?new o.DateTime(t,e):new o.DateTime},e.prototype.init=function(){var t=this;this.options.plugins&&this.options.plugins.length&&this.options.plugins.forEach((function(e){l.Litepicker.prototype.hasOwnProperty(e)?l.Litepicker.prototype[e].init.call(t,t):console.warn("Litepicker: plugin «"+e+"» not found.")}))},e.prototype.parseInput=function(){var t=this.options.delimiter,e=new RegExp(""+t),i=this.options.element instanceof HTMLInputElement?this.options.element.value.split(t):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new o.DateTime(this.options.element.value,this.options.format),new o.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new o.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&e.test(this.options.element.value)&&i.length&&i.length%2==0){var a=i.slice(0,i.length/2).join(t),s=i.slice(i.length/2).join(t);return[new o.DateTime(a,this.options.format),new o.DateTime(s,this.options.format)]}return[]},e.prototype.isShowning=function(){return this.ui&&"none"!==this.ui.style.display},e.prototype.findPosition=function(t){var e=t.getBoundingClientRect(),i=this.ui.getBoundingClientRect(),a=this.options.position.split(" "),s=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset,r=0,o=0;if("auto"!==a[0]&&/top|bottom/.test(a[0]))r=e[a[0]]+n,"top"===a[0]&&(r-=i.height);else{r=e.bottom+n;var l=e.bottom+i.height>window.innerHeight,c=e.top+n-i.height>=i.height;l&&c&&(r=e.top+n-i.height)}if(/left|right/.test(a[0])||a[1]&&"auto"!==a[1]&&/left|right/.test(a[1]))o=/left|right/.test(a[0])?e[a[0]]+s:e[a[1]]+s,"right"!==a[0]&&"right"!==a[1]||(o-=i.width);else{o=e.left+s,l=e.left+i.width>window.innerWidth;var h=e.right+s-i.width>=0;l&&h&&(o=e.right+s-i.width)}return{left:o,top:r}},e}(r.EventEmitter);e.LPCore=c},function(t,e,i){"use strict";var a,s="object"==("undefined"==typeof Reflect?"undefined":o(Reflect))?Reflect:null,n=s&&"function"==typeof s.apply?s.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};a=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function l(){l.init.call(this)}t.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function h(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function d(t,e,i,a){var s,n,r,l;if("function"!=typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+o(i));if(void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),n=t._events),r=n[e]),void 0===r)r=n[e]=i,++t._eventsCount;else if("function"==typeof r?r=n[e]=a?[i,r]:[r,i]:a?r.unshift(i):r.push(i),(s=h(t))>0&&r.length>s&&!r.warned){r.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=r.length,l=c,console&&console.warn&&console.warn(l)}return t}function u(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,n(this.listener,this.target,t))}function p(t,e,i){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},s=u.bind(a);return s.listener=i,a.wrapFn=s,s}function g(t,e,i){var a=t._events;if(void 0===a)return[];var s=a[e];return void 0===s?[]:"function"==typeof s?i?[s.listener||s]:[s]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(s):x(s,s.length)}function f(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function x(t,e){for(var i=new Array(e),a=0;a<e;++a)i[a]=t[a];return i}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return h(this)},l.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var a="error"===t,s=this._events;if(void 0!==s)a=a&&void 0===s.error;else if(!a)return!1;if(a){var r;if(e.length>0&&(r=e[0]),r instanceof Error)throw r;var o=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw o.context=r,o}var l=s[t];if(void 0===l)return!1;if("function"==typeof l)n(l,this,e);else{var c=l.length,h=x(l,c);for(i=0;i<c;++i)n(h[i],this,e)}return!0},l.prototype.addListener=function(t,e){return d(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return d(this,t,e,!0)},l.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+o(e));return this.on(t,p(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+o(e));return this.prependListener(t,p(this,t,e)),this},l.prototype.removeListener=function(t,e){var i,a,s,n,r;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+o(e));if(void 0===(a=this._events))return this;if(void 0===(i=a[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(s=-1,n=i.length-1;n>=0;n--)if(i[n]===e||i[n].listener===e){r=i[n].listener,s=n;break}if(s<0)return this;0===s?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,s),1===i.length&&(a[t]=i[0]),void 0!==a.removeListener&&this.emit("removeListener",t,r||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,i,a;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var s,n=Object.keys(i);for(a=0;a<n.length;++a)"removeListener"!==(s=n[a])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(a=e.length-1;a>=0;a--)this.removeListener(t,e[a]);return this},l.prototype.listeners=function(t){return g(this,t,!0)},l.prototype.rawListeners=function(t){return g(this,t,!1)},l.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},l.prototype.listenerCount=f,l.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},function(t,e,i){(e=i(9)(!1)).push([t.i,':root{--litepicker-container-months-color-bg: #fff;--litepicker-container-months-box-shadow-color: #ddd;--litepicker-footer-color-bg: #fafafa;--litepicker-footer-box-shadow-color: #ddd;--litepicker-tooltip-color-bg: #fff;--litepicker-month-header-color: #333;--litepicker-button-prev-month-color: #9e9e9e;--litepicker-button-next-month-color: #9e9e9e;--litepicker-button-prev-month-color-hover: #2196f3;--litepicker-button-next-month-color-hover: #2196f3;--litepicker-month-width: calc(var(--litepicker-day-width) * 7);--litepicker-month-weekday-color: #9e9e9e;--litepicker-month-week-number-color: #9e9e9e;--litepicker-day-width: 38px;--litepicker-day-color: #333;--litepicker-day-color-hover: #2196f3;--litepicker-is-today-color: #f44336;--litepicker-is-in-range-color: #bbdefb;--litepicker-is-locked-color: #9e9e9e;--litepicker-is-start-color: #fff;--litepicker-is-start-color-bg: #2196f3;--litepicker-is-end-color: #fff;--litepicker-is-end-color-bg: #2196f3;--litepicker-button-cancel-color: #fff;--litepicker-button-cancel-color-bg: #9e9e9e;--litepicker-button-apply-color: #fff;--litepicker-button-apply-color-bg: #2196f3;--litepicker-button-reset-color: #909090;--litepicker-button-reset-color-hover: #2196f3;--litepicker-highlighted-day-color: #333;--litepicker-highlighted-day-color-bg: #ffeb3b}.show-week-numbers{--litepicker-month-width: calc(var(--litepicker-day-width) * 8)}.litepicker{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:0.8em;display:none}.litepicker button{border:none;background:none}.litepicker .container__main{display:-webkit-box;display:-ms-flexbox;display:flex}.litepicker .container__months{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:var(--litepicker-container-months-color-bg);border-radius:5px;-webkit-box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);width:calc(var(--litepicker-month-width) + 10px);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months.columns-2{width:calc((var(--litepicker-month-width) * 2) + 20px)}.litepicker .container__months.columns-3{width:calc((var(--litepicker-month-width) * 3) + 30px)}.litepicker .container__months.columns-4{width:calc((var(--litepicker-month-width) * 4) + 40px)}.litepicker .container__months.split-view .month-item-header .button-previous-month,.litepicker .container__months.split-view .month-item-header .button-next-month{visibility:visible}.litepicker .container__months .month-item{padding:5px;width:var(--litepicker-month-width);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months .month-item-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:500;padding:10px 5px;text-align:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--litepicker-month-header-color)}.litepicker .container__months .month-item-header div{-webkit-box-flex:1;-ms-flex:1;flex:1}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header div>.month-item-year{padding:0}.litepicker .container__months .month-item-header .reset-button{color:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button>svg{fill:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button *{pointer-events:none}.litepicker .container__months .month-item-header .reset-button:hover{color:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .reset-button:hover>svg{fill:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;padding:3px 5px;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__months .month-item-header .button-previous-month *,.litepicker .container__months .month-item-header .button-next-month *{pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month{color:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img{fill:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month:hover{color:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-previous-month:hover>svg{fill:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month{color:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{fill:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month:hover{color:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month:hover>svg{fill:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-weekdays-row{display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;color:var(--litepicker-month-weekday-color)}.litepicker .container__months .month-item-weekdays-row>div{padding:5px 0;font-size:85%;-webkit-box-flex:1;-ms-flex:1;flex:1;width:var(--litepicker-day-width);text-align:center}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visibility:hidden}.litepicker .container__months .month-item.no-next-month .button-next-month{visibility:hidden}.litepicker .container__days{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:center;-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__days>div,.litepicker .container__days>a{padding:5px 0;width:var(--litepicker-day-width)}.litepicker .container__days .day-item{color:var(--litepicker-day-color);text-align:center;text-decoration:none;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__days .day-item:hover{color:var(--litepicker-day-color-hover);-webkit-box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover);box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover)}.litepicker .container__days .day-item.is-today{color:var(--litepicker-is-today-color)}.litepicker .container__days .day-item.is-locked{color:var(--litepicker-is-locked-color)}.litepicker .container__days .day-item.is-locked:hover{color:var(--litepicker-is-locked-color);-webkit-box-shadow:none;box-shadow:none;cursor:default}.litepicker .container__days .day-item.is-in-range{background-color:var(--litepicker-is-in-range-color);border-radius:0}.litepicker .container__days .day-item.is-start-date{color:var(--litepicker-is-start-color);background-color:var(--litepicker-is-start-color-bg);border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-flipped{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date{color:var(--litepicker-is-end-color);background-color:var(--litepicker-is-end-color-bg);border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date.is-flipped{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-end-date{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-highlighted{color:var(--litepicker-highlighted-day-color);background-color:var(--litepicker-highlighted-day-color-bg)}.litepicker .container__days .week-number{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:var(--litepicker-month-week-number-color);font-size:85%}.litepicker .container__footer{text-align:right;padding:10px 5px;margin:0 5px;background-color:var(--litepicker-footer-color-bg);-webkit-box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.litepicker .container__footer .preview-date-range{margin-right:10px;font-size:90%}.litepicker .container__footer .button-cancel{background-color:var(--litepicker-button-cancel-color-bg);color:var(--litepicker-button-cancel-color);border:0;padding:3px 7px 4px;border-radius:3px}.litepicker .container__footer .button-cancel *{pointer-events:none}.litepicker .container__footer .button-apply{background-color:var(--litepicker-button-apply-color-bg);color:var(--litepicker-button-apply-color);border:0;padding:3px 7px 4px;border-radius:3px;margin-left:10px;margin-right:10px}.litepicker .container__footer .button-apply:disabled{opacity:0.7}.litepicker .container__footer .button-apply *{pointer-events:none}.litepicker .container__tooltip{position:absolute;margin-top:-4px;padding:4px 8px;border-radius:4px;background-color:var(--litepicker-tooltip-color-bg);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25);white-space:nowrap;font-size:11px;pointer-events:none;visibility:hidden}.litepicker .container__tooltip:before{position:absolute;bottom:-5px;left:calc(50% - 5px);border-top:5px solid rgba(0,0,0,0.12);border-right:5px solid transparent;border-left:5px solid transparent;content:""}.litepicker .container__tooltip:after{position:absolute;bottom:-4px;left:calc(50% - 4px);border-top:4px solid var(--litepicker-tooltip-color-bg);border-right:4px solid transparent;border-left:4px solid transparent;content:""}\n',""]),e.locals={showWeekNumbers:"show-week-numbers",litepicker:"litepicker",containerMain:"container__main",containerMonths:"container__months",columns2:"columns-2",columns3:"columns-3",columns4:"columns-4",splitView:"split-view",monthItemHeader:"month-item-header",buttonPreviousMonth:"button-previous-month",buttonNextMonth:"button-next-month",monthItem:"month-item",monthItemName:"month-item-name",monthItemYear:"month-item-year",resetButton:"reset-button",monthItemWeekdaysRow:"month-item-weekdays-row",noPreviousMonth:"no-previous-month",noNextMonth:"no-next-month",containerDays:"container__days",dayItem:"day-item",isToday:"is-today",isLocked:"is-locked",isInRange:"is-in-range",isStartDate:"is-start-date",isFlipped:"is-flipped",isEndDate:"is-end-date",isHighlighted:"is-highlighted",weekNumber:"week-number",containerFooter:"container__footer",previewDateRange:"preview-date-range",buttonCancel:"button-cancel",buttonApply:"button-apply",containerTooltip:"container__tooltip"},t.exports=e},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,a,s,n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(i=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(s," */")),l=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(l).concat([o]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,a){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(a)for(var n=0;n<this.length;n++){var r=this[n][0];null!=r&&(s[r]=!0)}for(var o=0;o<t.length;o++){var l=[].concat(t[o]);a&&s[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},function(t,e,i){"use strict";var a,s={},n=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}();function r(t,e){for(var i=[],a={},s=0;s<t.length;s++){var n=t[s],r=e.base?n[0]+e.base:n[0],o={css:n[1],media:n[2],sourceMap:n[3]};a[r]?a[r].parts.push(o):i.push(a[r]={id:r,parts:[o]})}return i}function l(t,e){for(var i=0;i<t.length;i++){var a=t[i],n=s[a.id],r=0;if(n){for(n.refs++;r<n.parts.length;r++)n.parts[r](a.parts[r]);for(;r<a.parts.length;r++)n.parts.push(x(a.parts[r],e))}else{for(var o=[];r<a.parts.length;r++)o.push(x(a.parts[r],e));s[a.id]={id:a.id,refs:1,parts:o}}}}function c(t){var e=document.createElement("style");if(void 0===t.attributes.nonce){var a=i.nc;a&&(t.attributes.nonce=a)}if(Object.keys(t.attributes).forEach((function(i){e.setAttribute(i,t.attributes[i])})),"function"==typeof t.insert)t.insert(e);else{var s=n(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var h,d=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function u(t,e,i,a){var s=i?"":a.css;if(t.styleSheet)t.styleSheet.cssText=d(e,s);else{var n=document.createTextNode(s),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(n,r[e]):t.appendChild(n)}}function p(t,e,i){var a=i.css,s=i.media,n=i.sourceMap;if(s&&t.setAttribute("media",s),n&&btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var g=null,f=0;function x(t,e){var i,a,s;if(e.singleton){var n=f++;i=g||(g=c(e)),a=u.bind(null,i,n,!1),s=u.bind(null,i,n,!0)}else i=c(e),a=p.bind(null,i,e),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else s()}}t.exports=function(t,e){(e=e||{}).attributes="object"==o(e.attributes)?e.attributes:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a));var i=r(t,e);return l(i,e),function(t){for(var a=[],n=0;n<i.length;n++){var o=i[n],c=s[o.id];c&&(c.refs--,a.push(c))}t&&l(r(t,e),e);for(var h=0;h<a.length;h++){var d=a[h];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete s[d.id]}}}}},function(t,e,i){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),n=i(1),r=i(2);n.Litepicker.prototype.show=function(t){void 0===t&&(t=null),this.emit("before:show",t);var e=t||this.options.element;if(this.triggerElement=e,!this.isShowning()){if(this.options.inlineMode)return this.ui.style.position="relative",this.ui.style.display="inline-block",this.ui.style.top=null,this.ui.style.left=null,this.ui.style.bottom=null,void(this.ui.style.right=null);this.scrollToDate(t),this.render(),this.ui.style.position="absolute",this.ui.style.display="block",this.ui.style.zIndex=this.options.zIndex;var i=this.findPosition(e);this.ui.style.top=i.top+"px",this.ui.style.left=i.left+"px",this.ui.style.right=null,this.ui.style.bottom=null,this.emit("show",t)}},n.Litepicker.prototype.hide=function(){this.isShowning()&&(this.datePicked.length=0,this.updateInput(),this.options.inlineMode?this.render():(this.ui.style.display="none",this.emit("hide")))},n.Litepicker.prototype.getDate=function(){return this.getStartDate()},n.Litepicker.prototype.getStartDate=function(){return this.options.startDate?this.options.startDate.clone():null},n.Litepicker.prototype.getEndDate=function(){return this.options.endDate?this.options.endDate.clone():null},n.Litepicker.prototype.setDate=function(t,e){void 0===e&&(e=!1);var i=new s.DateTime(t,this.options.format,this.options.lang);r.dateIsLocked(i,this.options,[i])&&!e?this.emit("error:date",i):(this.setStartDate(t),this.options.inlineMode&&this.render(),this.emit("selected",this.getDate()))},n.Litepicker.prototype.setStartDate=function(t){t&&(this.options.startDate=new s.DateTime(t,this.options.format,this.options.lang),this.updateInput())},n.Litepicker.prototype.setEndDate=function(t){t&&(this.options.endDate=new s.DateTime(t,this.options.format,this.options.lang),this.options.startDate.getTime()>this.options.endDate.getTime()&&(this.options.endDate=this.options.startDate.clone(),this.options.startDate=new s.DateTime(t,this.options.format,this.options.lang)),this.updateInput())},n.Litepicker.prototype.setDateRange=function(t,e,i){void 0===i&&(i=!1),this.triggerElement=void 0;var a=new s.DateTime(t,this.options.format,this.options.lang),n=new s.DateTime(e,this.options.format,this.options.lang);(this.options.disallowLockDaysInRange?r.rangeIsLocked([a,n],this.options):r.dateIsLocked(a,this.options,[a,n])||r.dateIsLocked(n,this.options,[a,n]))&&!i?this.emit("error:range",[a,n]):(this.setStartDate(a),this.setEndDate(n),this.options.inlineMode&&this.render(),this.updateInput(),this.emit("selected",this.getStartDate(),this.getEndDate()))},n.Litepicker.prototype.gotoDate=function(t,e){void 0===e&&(e=0);var i=new s.DateTime(t);i.setDate(1),this.calendars[e]=i.clone(),this.render()},n.Litepicker.prototype.setLockDays=function(t){this.options.lockDays=s.DateTime.convertArray(t,this.options.lockDaysFormat),this.render()},n.Litepicker.prototype.setHighlightedDays=function(t){this.options.highlightedDays=s.DateTime.convertArray(t,this.options.highlightedDaysFormat),this.render()},n.Litepicker.prototype.setOptions=function(t){delete t.element,delete t.elementEnd,delete t.parentEl,t.startDate&&(t.startDate=new s.DateTime(t.startDate,this.options.format,this.options.lang)),t.endDate&&(t.endDate=new s.DateTime(t.endDate,this.options.format,this.options.lang));var e=a(a({},this.options.dropdowns),t.dropdowns),i=a(a({},this.options.buttonText),t.buttonText),n=a(a({},this.options.tooltipText),t.tooltipText);this.options=a(a({},this.options),t),this.options.dropdowns=a({},e),this.options.buttonText=a({},i),this.options.tooltipText=a({},n),!this.options.singleMode||this.options.startDate instanceof s.DateTime||(this.options.startDate=null,this.options.endDate=null),this.options.singleMode||this.options.startDate instanceof s.DateTime&&this.options.endDate instanceof s.DateTime||(this.options.startDate=null,this.options.endDate=null);for(var r=0;r<this.options.numberOfMonths;r+=1){var o=this.options.startDate?this.options.startDate.clone():new s.DateTime;o.setDate(1),o.setMonth(o.getMonth()+r),this.calendars[r]=o}this.options.lockDays.length&&(this.options.lockDays=s.DateTime.convertArray(this.options.lockDays,this.options.lockDaysFormat)),this.options.highlightedDays.length&&(this.options.highlightedDays=s.DateTime.convertArray(this.options.highlightedDays,this.options.highlightedDaysFormat)),this.render(),this.options.inlineMode&&this.show(),this.updateInput()},n.Litepicker.prototype.clearSelection=function(){this.options.startDate=null,this.options.endDate=null,this.datePicked.length=0,this.updateInput(),this.isShowning()&&this.render(),this.emit("clear:selection")},n.Litepicker.prototype.destroy=function(){this.ui&&this.ui.parentNode&&(this.ui.parentNode.removeChild(this.ui),this.ui=null),this.emit("destroy")}}])},"object"==o(e)&&"object"==o(t)?t.exports=r():(s=[],void 0===(n="function"==typeof(a=r)?a.apply(e,s):a)||(t.exports=n))}).call(this,i(20)(t))},,,function(t,e,i){"use strict";function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t}).apply(this,arguments)}i.d(e,"a",(function(){return u}));var s,n=s||(s={});n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE";var r=function(t){return t};function o(t){t.preventDefault(),t.returnValue=""}function l(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function c(){return Math.random().toString(36).substr(2,8)}function h(t){var e=t.pathname,i=t.search;return(void 0===e?"/":e)+(void 0===i?"":i)+(void 0===(t=t.hash)?"":t)}function d(t){var e={};if(t){var i=t.indexOf("#");0<=i&&(e.hash=t.substr(i),t=t.substr(0,i)),0<=(i=t.indexOf("?"))&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function u(t){function e(){var t=g.location,e=f.state||{};return[e.idx,r({pathname:t.pathname,search:t.search,hash:t.hash,state:e.usr||null,key:e.key||"default"})]}function i(t){return"string"==typeof t?t:h(t)}function n(t,e){return void 0===e&&(e=null),r(a({},v,"string"==typeof t?d(t):t,{state:e,key:c()}))}function u(t){m=t,t=e(),b=t[0],v=t[1],y.call({action:m,location:v})}function p(t){f.go(t)}void 0===t&&(t={});var g=void 0===(t=t.window)?document.defaultView:t,f=g.history,x=null;g.addEventListener("popstate",(function(){if(x)w.call(x),x=null;else{var t=s.Pop,i=e(),a=i[0];if(i=i[1],w.length){if(null!=a){var n=b-a;n&&(x={action:t,location:i,retry:function(){p(-1*n)}},p(n))}}else u(t)}}));var m=s.Pop,b=(t=e())[0],v=t[1],y=l(),w=l();return null==b&&(b=0,f.replaceState(a({},f.state,{idx:b}),"")),{get action(){return m},get location(){return v},createHref:i,push:function t(e,a){var r=s.Push,o=n(e,a);if(!w.length||(w.call({action:r,location:o,retry:function(){t(e,a)}}),0)){var l=[{usr:o.state,key:o.key,idx:b+1},i(o)];o=l[0],l=l[1];try{f.pushState(o,"",l)}catch(t){g.location.assign(l)}u(r)}},replace:function t(e,a){var r=s.Replace,o=n(e,a);w.length&&(w.call({action:r,location:o,retry:function(){t(e,a)}}),1)||(o=[{usr:o.state,key:o.key,idx:b},i(o)],f.replaceState(o[0],"",o[1]),u(r))},go:p,back:function(){p(-1)},forward:function(){p(1)},listen:function(t){return y.push(t)},block:function(t){var e=w.push(t);return 1===w.length&&g.addEventListener("beforeunload",o),function(){e(),w.length||g.removeEventListener("beforeunload",o)}}}}},,function(t,e,i){var a="prestoPlayerdist".replace(/[^a-zA-Z0-9_-]/g,"");i.p=window["__wpackIo".concat(a)]},function(t,e,i){(function(t){var e=i(7),a=function(t){"use strict";var i=Object.prototype,a=i.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},n=s.iterator||"@@iterator",r=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,a){var s=e&&e.prototype instanceof u?e:u,n=Object.create(s.prototype),r=new S(a||[]);return n._invoke=function(t,e,i){var a="suspendedStart";return function(s,n){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===s)throw n;return L()}for(i.method=s,i.arg=n;;){var r=i.delegate;if(r){var o=w(r,i);if(o){if(o===d)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===a)throw a="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a="executing";var l=h(t,e,i);if("normal"===l.type){if(a=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(a="completed",i.method="throw",i.arg=l.arg)}}}(t,i,r),n}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function u(){}function p(){}function g(){}var f={};l(f,n,(function(){return this}));var x=Object.getPrototypeOf,m=x&&x(x(C([])));m&&m!==i&&a.call(m,n)&&(f=m);var b=g.prototype=u.prototype=Object.create(f);function v(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,i){var s;this._invoke=function(n,r){function o(){return new i((function(s,o){!function s(n,r,o,l){var c=h(t[n],t,r);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"===e(u)&&a.call(u,"__await")?i.resolve(u.__await).then((function(t){s("next",t,o,l)}),(function(t){s("throw",t,o,l)})):i.resolve(u).then((function(t){d.value=t,o(d)}),(function(t){return s("throw",t,o,l)}))}l(c.arg)}(n,r,s,o)}))}return s=s?s.then(o,o):o()}}function w(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var a=h(i,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,d;var s=a.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function C(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function e(){for(;++i<t.length;)if(a.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return s.next=s}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=g,l(b,"constructor",g),l(g,"constructor",p),p.displayName=l(g,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,o,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},v(y.prototype),l(y.prototype,r,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,a,s,n){void 0===n&&(n=Promise);var r=new y(c(e,i,a,s),n);return t.isGeneratorFunction(i)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},v(b),l(b,o,"Generator"),l(b,n,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var a=e.pop();if(a in t)return i.value=a,i.done=!1,i}return i.done=!0,i}},t.values=C,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,a){return r.type="throw",r.arg=t,e.next=i,a&&(e.method="next",e.arg=void 0),!!a}for(var s=this.tryEntries.length-1;s>=0;--s){var n=this.tryEntries[s],r=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var o=a.call(n,"catchLoc"),l=a.call(n,"finallyLoc");if(o&&l){if(this.prev<n.catchLoc)return i(n.catchLoc,!0);if(this.prev<n.finallyLoc)return i(n.finallyLoc)}else if(o){if(this.prev<n.catchLoc)return i(n.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return i(n.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.tryLoc<=this.prev&&a.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var n=s;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var r=n?n.completion:{};return r.type=t,r.arg=e,n?(this.method="next",this.next=n.finallyLoc,d):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),A(i),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var a=i.completion;if("throw"===a.type){var s=a.arg;A(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:C(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=a}catch(t){"object"===("undefined"==typeof globalThis?"undefined":e(globalThis))?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}}).call(this,i(20)(t))},function(t,e,i){"use strict";var a,s=i(7);
24
- /*!
25
- * ApexCharts v3.28.3
26
- * (c) 2018-2021 ApexCharts
27
- * Released under the MIT License.
28
- */function n(t){return(n="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function l(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function h(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function d(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?h(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&function(t,e){(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){return!e||"object"!=s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,a=p(t);if(e){var s=p(this).constructor;i=Reflect.construct(a,arguments,s)}else i=a.apply(this,arguments);return g(this,i)}}function x(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?m(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}var b=function(){function t(){r(this,t)}return l(t,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),a=t<0?0:255,s=t<0?-1*t:t,n=parseInt(i[0].slice(4),10),r=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((a-n)*s)+n)+","+(Math.round((a-r)*s)+r)+","+(Math.round((a-o)*s)+o)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),a=t<0?0:255,s=t<0?-1*t:t,n=i>>16,r=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((a-n)*s)+n)+256*(Math.round((a-r)*s)+r)+(Math.round((a-o)*s)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&null!=t}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e});var a=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach((function(s){i.isObject(e[s])&&s in t?a[s]=i.extend(t[s],e[s]):Object.assign(a,c({},s,e[s]))})),a}},{key:"extendArray",value:function(e,i){var a=[];return e.map((function(e){a.push(t.extend(i,e))})),a}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],i=0;i<t.length;i++)e[i]=this.clone(t[i]);return e}if("[object Null]"===Object.prototype.toString.call(t))return null;if("[object Date]"===Object.prototype.toString.call(t))return t;if("object"===n(t)){var a={};for(var s in t)t.hasOwnProperty(s)&&(a[s]=this.clone(t[s]));return a}return t}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",a=t<0?"-":"",s=e[0].replace(".",""),n=Number(e[1])+1;if(n<0){for(i=a+"0.";n++;)i+="0";return i+s.replace(/^-/,"")}for(n-=s.length;n--;)i+="0";return s+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce((function(t,e){return Array.isArray(e)&&(e=e.reduce((function(t,e){return t.length>e.length?t:e}))),t.length>e.length?t:e}),0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a<i.length;a++)i[a]=parseInt(1===i[a].length?i[a]+i[a]:i[a],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],a=2*Math.PI/e,s=0;s<e;s++){var n={};n.x=t*Math.sin(s*a),n.y=-t*Math.cos(s*a),i.push(n)}return i}},{key:"polarToCartesian",value:function(t,e,i,a){var s=(a-90)*Math.PI/180;return{x:t+i*Math.cos(s),y:e+i*Math.sin(s)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%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(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}}]),t}(),v=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return l(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=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":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:t="<>"}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,s,n){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll((function(){n()}))}},{key:"animateCircle",value:function(t,e,i,a,s){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,s){t.attr(e).animate(a).attr(i).afterAll((function(){return s()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,s=t.fill,n=t.pathFrom,r=t.pathTo,o=t.speed,l=t.delay,c=this.w,h=0;c.config.chart.animations.animateGradually.enabled&&(h=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(h=0),this.morphSVG(e,i,a,"line"!==c.config.chart.type||c.globals.comboCharts?s:"stroke",n,r,o,l*h)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){t.el.classList.remove("apexcharts-element-hidden")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,a,s,n,r,o){var l=this,c=this.w;s||(s=t.attr("pathFrom")),n||(n=t.attr("pathTo"));var h=function(t){return"radar"===c.config.chart.type&&(r=1),"M 0 ".concat(c.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=h()),(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=h()),c.globals.shouldAnimate||(r=1),t.plot(s).animate(1,c.globals.easing,o).plot(s).animate(r,c.globals.easing,o).plot(n).afterAll((function(){b.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(t):"none"!==a&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()}))}}]),t}(),y=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var a=this,s=this.w,n=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:n}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var a=this,s=this.w,n=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:n}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a=i.blur,s=i.top,n=i.left,r=i.color,o=i.opacity,l=t.flood(Array.isArray(r)?r[e]:r,o).composite(t.sourceAlpha,"in").offset(n,s).gaussianBlur(a).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=e.top,s=e.left,n=e.blur,r=e.color,o=e.opacity,l=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),b.isIE()&&"radialBar"===c.config.chart.type||(r=Array.isArray(r)?r[i]:r,t.filter((function(t){var e;e=b.isSafari()||b.isFirefox()||b.isIE()?t.flood(r,o).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(n):t.flood(r,o).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(n).merge(t.source),t.blend(t.source,e)})),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var a=this.w;if(void 0!==a.globals.selectedDataPoints[e]&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var s=a.config.states.active.filter;"none"!==s&&this.applyFilter(t,e,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),w=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"drawLine",value:function(t,e,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt",l=this.w,c=l.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,"stroke-dasharray":n,"stroke-width":r,"stroke-linecap":o});return c}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w,d=h.globals.dom.Paper.rect();return d.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:r,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",n),d}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",s=this.w,n=s.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,"stroke-width":i});return n}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;t<0&&(t=0);var a=i.globals.dom.Paper.circle(2*t);return null!==e&&a.attr(e),a}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,a=t.stroke,s=void 0===a?"#a8a8a8":a,n=t.strokeWidth,r=void 0===n?1:n,o=t.fill,l=t.fillOpacity,c=void 0===l?1:l,h=t.strokeOpacity,d=void 0===h?1:h,u=t.classes,p=t.strokeLinecap,g=void 0===p?null:p,f=t.strokeDashArray,x=void 0===f?0:f,m=this.w;return null===g&&(g=m.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(m.globals.gridHeight)),m.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:s,"stroke-opacity":d,"stroke-linecap":g,"stroke-width":r,"stroke-dasharray":x,class:u})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=e.globals.dom.Paper.group();return null!==t&&i.attr(t),i}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=null;return null===i?a=["L",t,e].join(" "):"H"===i?a=["H",t].join(" "):"V"===i&&(a=["V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,s,n){return["C",t,e,i,a,s,n].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,s,n,r){var o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";o&&(l="a");var c=[l,t,e,i,a,s,n,r].join(" ");return c}},{key:"renderPaths",value:function(t){var e,i=t.j,a=t.realIndex,s=t.pathFrom,n=t.pathTo,r=t.stroke,o=t.strokeWidth,l=t.strokeLinecap,c=t.fill,h=t.animationDelay,u=t.initialSpeed,p=t.dataChangeSpeed,g=t.className,f=t.shouldClipToGrid,x=void 0===f||f,m=t.bindEventsOnPaths,b=void 0===m||m,w=t.drawShadow,k=void 0===w||w,A=this.w,S=new y(this.ctx),C=new v(this.ctx),L=this.w.config.chart.animations.enabled,P=L&&this.w.config.chart.animations.dynamicAnimation.enabled,T=!!(L&&!A.globals.resized||P&&A.globals.dataChanged&&A.globals.shouldAnimate);T?e=s:(e=n,A.globals.animationEnded=!0);var M,D=A.config.stroke.dashArray;M=Array.isArray(D)?D[a]:A.config.stroke.dashArray;var E=this.drawPath({d:e,stroke:r,strokeWidth:o,fill:c,fillOpacity:1,classes:g,strokeLinecap:l,strokeDashArray:M});if(E.attr("index",a),x&&E.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)S.getDefaultFilter(E,a);else if(A.config.chart.dropShadow.enabled&&k&&(!A.config.chart.dropShadow.enabledOnSeries||A.config.chart.dropShadow.enabledOnSeries&&-1!==A.config.chart.dropShadow.enabledOnSeries.indexOf(a))){var I=A.config.chart.dropShadow;S.dropShadow(E,I,a)}b&&(E.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,E)),E.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,E)),E.node.addEventListener("mousedown",this.pathMouseDown.bind(this,E))),E.attr({pathTo:n,pathFrom:s});var z={el:E,j:i,realIndex:a,pathFrom:s,pathTo:n,fill:c,strokeWidth:o,delay:h};return!L||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||C.showDelayedElements():C.animatePathsGradually(d(d({},z),{},{speed:u})),A.globals.dataChanged&&P&&T&&C.animatePathsGradually(d(d({},z),{},{speed:p})),E}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=this.w,r=n.globals.dom.Paper.pattern(e,i,(function(n){"horizontalLines"===t?n.line(0,0,i,0).stroke({color:a,width:s+1}):"verticalLines"===t?n.line(0,0,0,e).stroke({color:a,width:s+1}):"slantedLines"===t?n.line(0,0,e,i).stroke({color:a,width:s}):"squares"===t?n.rect(e,i).fill("none").stroke({color:a,width:s}):"circles"===t&&n.circle(e).fill("none").stroke({color:a,width:s})}));return r}},{key:"drawGradient",value:function(t,e,i,a,s){var n,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;e.length<9&&0===e.indexOf("#")&&(e=b.hexToRgba(e,a)),i.length<9&&0===i.indexOf("#")&&(i=b.hexToRgba(i,s));var d=0,u=1,p=1,g=null;null!==o&&(d=void 0!==o[0]?o[0]/100:0,u=void 0!==o[1]?o[1]/100:1,p=void 0!==o[2]?o[2]/100:1,g=void 0!==o[3]?o[3]/100:null);var f=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(n=null===l||0===l.length?h.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){t.at(d,e,a),t.at(u,i,s),t.at(p,i,s),null!==g&&t.at(g,e,a)})):h.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){(Array.isArray(l[c])?l[c]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),f){var x=h.globals.gridWidth/2,m=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?n.attr({gradientUnits:"userSpaceOnUse",cx:x,cy:m,r:r}):n.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?n.from(0,0).to(0,1):"diagonal"===t?n.from(0,0).to(1,1):"horizontal"===t?n.from(0,1).to(1,1):"diagonal2"===t&&n.from(1,0).to(0,1);return n}},{key:"drawText",value:function(t){var e,i=t.x,a=t.y,s=t.text,n=t.textAnchor,r=t.fontSize,o=t.fontFamily,l=t.fontWeight,c=t.foreColor,h=t.opacity,d=t.cssClass,u=void 0===d?"":d,p=t.isPlainText,g=void 0===p||p,f=this.w;return void 0===s&&(s=""),n||(n="start"),c&&c.length||(c=f.config.chart.foreColor),o=o||f.config.chart.fontFamily,l=l||"regular",(e=Array.isArray(s)?f.globals.dom.Paper.text((function(t){for(var e=0;e<s.length;e++)0===e?t.tspan(s[e]):t.tspan(s[e]).newLine()})):g?f.globals.dom.Paper.plain(s):f.globals.dom.Paper.text((function(t){return t.tspan(s)}))).attr({x:i,y:a,"text-anchor":n,"dominant-baseline":"auto","font-size":r,"font-family":o,"font-weight":l,fill:c,class:"apexcharts-text "+u}),e.node.style.fontFamily=o,e.node.style.opacity=h,e}},{key:"drawMarker",value:function(t,e,i){t=t||0;var a=i.pSize||0,s=null;if("square"===i.shape||"rect"===i.shape){var n=void 0===i.pRadius?a/2:i.pRadius;null!==e&&a||(a=0,n=0);var r=1.2*a+n,o=this.drawRect(r,r,r,r,n);o.attr({x:t-r/2,y:e-r/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),s=o}else"circle"!==i.shape&&i.shape||(b.isNumber(e)||(a=0,e=0),s=this.drawCircle(a,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return s}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,a=new y(this.ctx),s=parseInt(t.node.getAttribute("index"),10),n=parseInt(t.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:s,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:s,dataPointIndex:n,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&"none"!==i.config.states.active.filter.type&&!i.globals.isTouchDevice){var r=i.config.states.hover.filter;a.applyFilter(t,s,r.type,r.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,a=new y(this.ctx),s=parseInt(t.node.getAttribute("index"),10),n=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:s,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:s,dataPointIndex:n,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&a.getDefaultFilter(t,s)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,a=new y(this.ctx),s=parseInt(t.node.getAttribute("index"),10),n=parseInt(t.node.getAttribute("j"),10),r="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[s].indexOf(n)>-1){var o=i.globals.selectedDataPoints[s].indexOf(n);i.globals.selectedDataPoints[s].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,h=function(t){Array.prototype.forEach.call(t,(function(t){t.node.setAttribute("selected","false"),a.getDefaultFilter(t,s)}))};h(l),h(c)}t.node.setAttribute("selected","true"),r="true",void 0===i.globals.selectedDataPoints[s]&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(n)}if("true"===r){var d=i.config.states.active.filter;"none"!==d&&a.applyFilter(t,s,d.type,d.value)}else"none"!==i.config.states.active.filter.type&&a.getDefaultFilter(t,s);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e=t.getBBox();return{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=this.w,r=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});a&&r.attr("transform",a),n.globals.dom.Paper.add(r);var o=r.bbox();return s||(o=r.node.getBoundingClientRect()),r.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),k=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e}return l(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var a=null!==e?e:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(null!==s){var n=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-n.height+4),"top"===t.label.position?s.setAttribute("y",parseFloat(s.getAttribute("y"))+n.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-n.width);var r=this.annoCtx.graphics.rotateAroundCenter(s),o=r.x,l=r.y;s.setAttribute("transform","rotate(-90 ".concat(o," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||!e.label.text||e.label.text&&!e.label.text.trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=t.getBoundingClientRect(),n=e.label.style.padding.left,r=e.label.style.padding.right,o=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(o=e.label.style.padding.left,l=e.label.style.padding.right,n=e.label.style.padding.top,r=e.label.style.padding.bottom);var c=s.left-a.left-n,h=s.top-a.top-o,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,h,s.width+n+r,s.height+o+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,a,s){var n=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(a,"']"));if(n){var r=n.parentNode,o=t.addBackgroundToAnno(n,i);o&&r.insertBefore(o.node,n)}};e.config.annotations.xaxis.map((function(t,e){i(t,e,"xaxis")})),e.config.annotations.yaxis.map((function(t,e){i(t,e,"yaxis")})),e.config.annotations.points.map((function(t,e){i(t,e,"point")}))}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var a=e.globals.labels.indexOf(t),s=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),t}(),A=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis}return l(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var a=this.w,s=this.invertAxis?a.globals.minY:a.globals.minX,n=this.invertAxis?a.globals.maxY:a.globals.maxX,r=this.invertAxis?a.globals.yRange[0]:a.globals.xRange,o=(t.x-s)/(r/a.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(n-t.x)/(r/a.globals.gridWidth));var l=t.label.text;"category"!==a.config.xaxis.type&&!a.config.xaxis.convertedCatToNumeric||this.invertAxis||a.globals.dataFormatXNumeric||(o=this.annoCtx.helpers.getStringX(t.x));var c=t.strokeDashArray;if(b.isNumber(o)){if(null===t.x2||void 0===t.x2){var h=this.annoCtx.graphics.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,a.globals.gridHeight+t.offsetY,t.borderColor,c,t.borderWidth);e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}else{var d=(t.x2-s)/(r/a.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(d=(n-t.x2)/(r/a.globals.gridWidth)),"category"!==a.config.xaxis.type&&!a.config.xaxis.convertedCatToNumeric||this.invertAxis||a.globals.dataFormatXNumeric||(d=this.annoCtx.helpers.getStringX(t.x2)),d<o){var u=o;o=d,d=u}var p=this.annoCtx.graphics.drawRect(o+t.offsetX,0+t.offsetY,d-o,a.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,c);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),e.appendChild(p.node),t.id&&p.node.classList.add(t.id)}var g="top"===t.label.position?4:a.globals.gridHeight,f=this.annoCtx.graphics.getTextRects(l,parseFloat(t.label.style.fontSize)),x=this.annoCtx.graphics.drawText({x:o+t.label.offsetX,y:g+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?f.width/2-12:-f.width/2:0),text:l,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});x.attr({rel:i}),e.appendChild(x.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((function(e,a){t.addXaxisAnnotation(e,i.node,a)})),i}}]),t}(),S=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"getStackedSeriesTotals",value:function(){var t=this.w,e=[];if(0===t.globals.series.length)return e;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var a=0,s=0;s<t.globals.series.length;s++)void 0!==t.globals.series[s][i]&&(a+=t.globals.series[s][i]);e.push(a)}return t.globals.stackedSeriesTotals=e,e}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce((function(t,e){return t+e}),0):this.w.globals.series[t].reduce((function(t,e){return t+e}),0)}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter((function(t){return null!==t})):this.w.config.series[t].data.filter((function(t){return null!==t}))).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every((function(t,e,i){return t===i[0]}))}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map((function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map((function(t){return t.length})).indexOf(Math.max.apply(Math,t.globals.series.map((function(t){return t.length}))))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach((function(t){e=Math.max(e,t)})),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map((function(t,e){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(t,e){var i=this.w;return i.globals.series.map((function(a,s){for(var n=0,r=0;r<a.length;r++)i.globals.seriesX[s][r]>t&&i.globals.seriesX[s][r]<e&&(n+=a[r]);return n}))}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map((function(e,i){var a=[];if(Array.isArray(e))for(var s=0;s<e.length;s++){var n=t.globals.stackedSeriesTotals[s],r=0;n&&(r=100*e[s]/n),a.push(r)}else{var o=100*e/t.globals.seriesTotals.reduce((function(t,e){return t+e}),0);a.push(o)}return a}))}},{key:"getCalculatedRatios",value:function(){var t,e,i,a,s=this.w.globals,n=[],r=0,o=[],l=.1,c=0;if(s.yRange=[],s.isMultipleYAxis)for(var h=0;h<s.minYArr.length;h++)s.yRange.push(Math.abs(s.minYArr[h]-s.maxYArr[h])),o.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var d=0;d<s.yRange.length;d++)n.push(s.yRange[d]/s.gridHeight);if(e=s.xRange/s.gridWidth,i=Math.abs(s.initialMaxX-s.initialMinX)/s.gridWidth,t=s.yRange/s.gridWidth,a=s.xRange/s.gridHeight,(r=s.zRange/s.gridHeight*16)||(r=1),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(s.hasNegs=!0),s.isMultipleYAxis){o=[];for(var u=0;u<n.length;u++)o.push(-s.minYArr[u]/n[u])}else o.push(-s.minY/n[0]),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(l=-s.minY/t,c=s.minX/e);return{yRatio:n,invertedYRatio:t,zRatio:r,xRatio:e,initialXRatio:i,invertedXRatio:a,baseLineInvertedY:l,baseLineY:o,baseLineX:c}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map((function(t,a){return i.config.yaxis[a]&&i.config.yaxis[a].logarithmic?t.map((function(t){return null===t?null:e.getLogVal(t,a)})):t})),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getLogVal",value:function(t,e){var i=this.w;return(Math.log(t)-Math.log(i.globals.minYArr[e]))/(Math.log(i.globals.maxYArr[e])-Math.log(i.globals.minYArr[e]))}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,a=this.w.globals;return a.yLogRatio=t.slice(),a.logYRange=a.yRange.map((function(t,s){if(i.config.yaxis[s]&&e.w.config.yaxis[s].logarithmic){var n,r=-Number.MAX_VALUE,o=Number.MIN_VALUE;return a.seriesLog.forEach((function(t,e){t.forEach((function(t){i.config.yaxis[e]&&i.config.yaxis[e].logarithmic&&(r=Math.max(t,r),o=Math.min(t,o))}))})),n=Math.pow(a.yRange[s],Math.abs(o-r)/a.yRange[s]),a.yLogRatio[s]=n/a.gridHeight,n}})),a.invalidLogScale?t.slice():a.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0,a=0;return t.length&&void 0!==t[0].type&&t.forEach((function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type&&"boxPlot"!==t.type||i++,void 0!==t.type&&a++})),a>1&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),C=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e}return l(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var a,s=this.w,n=t.strokeDashArray,r=this._getY1Y2("y1",t),o=t.label.text;if(null===t.y2||void 0===t.y2){var l=this.annoCtx.graphics.drawLine(0+t.offsetX,r+t.offsetY,this._getYAxisAnnotationWidth(t),r+t.offsetY,t.borderColor,n,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((a=this._getY1Y2("y2",t))>r){var c=r;r=a,a=c}var h=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),r-a,0,t.fillColor,t.opacity,1,t.borderColor,n);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d="right"===t.label.position?s.globals.gridWidth:0,u=this.annoCtx.graphics.drawText({x:d+t.label.offsetX,y:(a||r)+t.label.offsetY-3,text:o,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});u.attr({rel:i}),e.appendChild(u.node)}},{key:"_getY1Y2",value:function(t,e){var i,a="y1"===t?e.y:e.y2,s=this.w;if(this.annoCtx.invertAxis){var n=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(n=s.globals.categoryLabels.indexOf(a));var r=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(n+1)+")");r&&(i=parseFloat(r.getAttribute("y")))}else{var o;o=s.config.yaxis[e.yAxisIndex].logarithmic?(a=new S(this.annoCtx.ctx).getLogVal(a,e.yAxisIndex))/s.globals.yLogRatio[e.yAxisIndex]:(a-s.globals.minYArr[e.yAxisIndex])/(s.globals.yRange[e.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-o,s.config.yaxis[e.yAxisIndex]&&s.config.yaxis[e.yAxisIndex].reversed&&(i=o)}return i}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map((function(e,a){t.addYaxisAnnotation(e,i.node,a)})),i}}]),t}(),L=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e}return l(t,[{key:"addPointAnnotation",value:function(t,e,i){var a=this.w,s=0,n=0,r=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var o=parseFloat(t.y);if("string"==typeof t.x){var l=a.globals.labels.indexOf(t.x);a.config.xaxis.convertedCatToNumeric&&(l=a.globals.categoryLabels.indexOf(t.x)),s=this.annoCtx.helpers.getStringX(t.x),null===t.y&&(o=a.globals.series[t.seriesIndex][l])}else s=(t.x-a.globals.minX)/(a.globals.xRange/a.globals.gridWidth);for(var c,h=[],d=0,u=0;u<=t.seriesIndex;u++){var p=a.config.yaxis[u].seriesName;if(p)for(var g=u+1;g<=t.seriesIndex;g++)a.config.yaxis[g].seriesName===p&&-1===h.indexOf(p)&&(d++,h.push(p))}if(a.config.yaxis[t.yAxisIndex].logarithmic)c=(o=new S(this.annoCtx.ctx).getLogVal(o,t.yAxisIndex))/a.globals.yLogRatio[t.yAxisIndex];else{var f=t.yAxisIndex+d;c=(o-a.globals.minYArr[f])/(a.globals.yRange[f]/a.globals.gridHeight)}if(n=a.globals.gridHeight-c-parseFloat(t.label.style.fontSize)-t.marker.size,r=a.globals.gridHeight-c,a.config.yaxis[t.yAxisIndex]&&a.config.yaxis[t.yAxisIndex].reversed&&(n=c+parseFloat(t.label.style.fontSize)+t.marker.size,r=c),b.isNumber(s)){var x={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},m=this.annoCtx.graphics.drawMarker(s+t.marker.offsetX,r+t.marker.offsetY,x);e.appendChild(m.node);var v=t.label.text?t.label.text:"",y=this.annoCtx.graphics.drawText({x:s+t.label.offsetX,y:n+t.label.offsetY,text:v,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(y.attr({rel:i}),e.appendChild(y.node),t.customSVG.SVG){var w=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});w.attr({transform:"translate(".concat(s+t.customSVG.offsetX,", ").concat(n+t.customSVG.offsetY,")")}),w.node.innerHTML=t.customSVG.SVG,e.appendChild(w.node)}if(t.image.path){var k=t.image.width?t.image.width:20,A=t.image.height?t.image.height:20;this.annoCtx.addImage({x:s+t.image.offsetX-k/2,y:n+t.image.offsetY-A/2,width:k,height:A,path:t.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,a){t.addPointAnnotation(e,i.node,a)})),i}}]),t}(),P={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"}}},T=function(){function t(){r(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,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={x:0,y:null,yAxisIndex:0,seriesIndex: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,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={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,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={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,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 l(t,[{key:"init",value:function(){return{annotations:{position:"front",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:[P],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,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},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(t){return new Date(t).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,rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{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,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(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.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(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),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(t){return null!==t?t:""},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},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",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(t){return t?t+": ":""}}},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"}},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}}}}}]),t}(),M=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.graphics=new w(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new k(this),this.xAxisAnnotations=new A(this),this.yAxisAnnotations=new C(this),this.pointsAnnotations=new L(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 l(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=t.config.chart.animations.enabled,n=[e,i,a],r=[i.node,e.node,a.node],o=0;o<3;o++)t.globals.dom.elGraphical.add(n[o]),!s||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&r[o].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:r[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map((function(e,i){t.addImage(e,i)}))}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map((function(e,i){t.addText(e,i)}))}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,a=t.y,s=t.text,n=t.textAnchor,r=t.foreColor,o=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.cssClass,d=t.backgroundColor,u=t.borderWidth,p=t.strokeDashArray,g=t.borderRadius,f=t.borderColor,x=t.appendTo,m=void 0===x?".apexcharts-annotations":x,b=t.paddingLeft,v=void 0===b?4:b,y=t.paddingRight,w=void 0===y?4:y,k=t.paddingBottom,A=void 0===k?2:k,S=t.paddingTop,C=void 0===S?2:S,L=this.w,P=this.graphics.drawText({x:i,y:a,text:s,textAnchor:n||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||L.config.chart.fontFamily,foreColor:r||L.config.chart.foreColor,cssClass:h}),T=L.globals.dom.baseEl.querySelector(m);T&&T.appendChild(P.node);var M=P.bbox();if(s){var D=this.graphics.drawRect(M.x-v,M.y-C,M.width+v+w,M.height+A+C,g,d||"transparent",1,u,f,p);T.insertBefore(D.node,P.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,s=t.x,n=void 0===s?0:s,r=t.y,o=void 0===r?0:r,l=t.width,c=void 0===l?20:l,h=t.height,d=void 0===h?20:h,u=t.appendTo,p=void 0===u?".apexcharts-annotations":u,g=i.globals.dom.Paper.image(a);g.size(c,d).move(n,o);var f=i.globals.dom.baseEl.querySelector(p);f&&f.appendChild(g.node)}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,a=t.context,s=t.type,n=t.contextMethod,r=a,o=r.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),c=l.childNodes.length+1,h=new T,d=Object.assign({},"xaxis"===s?h.xAxisAnnotation:"yaxis"===s?h.yAxisAnnotation:h.pointAnnotation),u=b.extend(d,e);switch(s){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var p=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(c,"']")),g=this.helpers.addBackgroundToAnno(p,u);return g&&l.insertBefore(g.node,p),i&&o.globals.memory.methodsToExec.push({context:r,id:u.id?u.id:b.randomId(),method:n,label:"addAnnotation",params:e}),a}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map((function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)})),i=b.listToArray(i),Array.prototype.forEach.call(i,(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}))}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map((function(t,a){t.id===e&&i.globals.memory.methodsToExec.splice(a,1)})),Array.prototype.forEach.call(a,(function(t){t.parentElement.removeChild(t)})))}}]),t}(),D=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return l(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),s=parseInt(e.globals.gridHeight,10),n=a>s?a:s,r=t.image,o=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=n+1,l=n):(o=t.width,l=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");w.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var h=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",r),w.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),h.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w;return("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||"heatmap"===e.config.chart.type||"treemap"===e.config.chart.type?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,a,s,n=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var r=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(r=e.globals.seriesColors[this.seriesIndex]),"function"==typeof r&&(r=r({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var o=this.getFillType(this.seriesIndex),l=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity;t.color&&(r=t.color);var c=r;if(-1===r.indexOf("rgb")?r.length<9&&(c=b.hexToRgba(r,l)):r.indexOf("rgba")>-1&&(l=b.getOpacityFromRGBA(r)),t.opacity&&(l=t.opacity),"pattern"===o&&(a=this.handlePatternFill(a,r,l,c)),"gradient"===o&&(s=this.handleGradientFill(r,l,this.seriesIndex)),"image"===o){var h=n.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(h)?t.seriesNumber<h.length?h[t.seriesNumber]:h[0]:h,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d,")")}else i="gradient"===o?s:"pattern"===o?a:c;return t.solid&&(i=c),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,a=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors),void 0!==i.fillColors&&(a=[],Array.isArray(i.fillColors)?a=i.fillColors.slice():a.push(i.fillColors)),a}},{key:"handlePatternFill",value:function(t,e,i,a){var s=this.w.config,n=this.opts,r=new w(this.ctx),o=void 0===s.fill.pattern.strokeWidth?Array.isArray(s.stroke.width)?s.stroke.width[this.seriesIndex]:s.stroke.width:Array.isArray(s.fill.pattern.strokeWidth)?s.fill.pattern.strokeWidth[this.seriesIndex]:s.fill.pattern.strokeWidth,l=e;return Array.isArray(s.fill.pattern.style)?void 0!==s.fill.pattern.style[n.seriesNumber]?r.drawPattern(s.fill.pattern.style[n.seriesNumber],s.fill.pattern.width,s.fill.pattern.height,l,o,i):a:r.drawPattern(s.fill.pattern.style,s.fill.pattern.width,s.fill.pattern.height,l,o,i)}},{key:"handleGradientFill",value:function(t,e,i){var a,s=this.w.config,n=this.opts,r=new w(this.ctx),o=new b,l=s.fill.gradient.type,c=t,h=void 0===s.fill.gradient.opacityFrom?e:Array.isArray(s.fill.gradient.opacityFrom)?s.fill.gradient.opacityFrom[i]:s.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(h=b.getOpacityFromRGBA(c));var d=void 0===s.fill.gradient.opacityTo?e:Array.isArray(s.fill.gradient.opacityTo)?s.fill.gradient.opacityTo[i]:s.fill.gradient.opacityTo;if(void 0===s.fill.gradient.gradientToColors||0===s.fill.gradient.gradientToColors.length)a="dark"===s.fill.gradient.shade?o.shadeColor(-1*parseFloat(s.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?b.rgb2hex(t):t):o.shadeColor(parseFloat(s.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?b.rgb2hex(t):t);else if(s.fill.gradient.gradientToColors[n.seriesNumber]){var u=s.fill.gradient.gradientToColors[n.seriesNumber];a=u,u.indexOf("rgba")>-1&&(d=b.getOpacityFromRGBA(u))}else a=t;if(s.fill.gradient.inverseColors){var p=c;c=a,a=p}return c.indexOf("rgb")>-1&&(c=b.rgb2hex(c)),a.indexOf("rgb")>-1&&(a=b.rgb2hex(a)),r.drawGradient(l,c,a,h,d,n.size,s.fill.gradient.stops,s.fill.gradient.colorStops,i)}}]),t}(),E=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)void 0===t.globals.markers.size[e]&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map((function(e){return t.config.markers.size}))}},{key:"plotChartMarkers",value:function(t,e,i,a){var s,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=this.w,o=e,l=t,c=null,h=new w(this.ctx);if((r.globals.markers.size[e]>0||n)&&(c=h.group({class:n?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(l.x))for(var d=0;d<l.x.length;d++){var u=i;1===i&&0===d&&(u=0),1===i&&1===d&&(u=1);var p="apexcharts-marker";"line"!==r.config.chart.type&&"area"!==r.config.chart.type||r.globals.comboCharts||r.config.tooltip.intersect||(p+=" no-pointer-events");var g=Array.isArray(r.config.markers.size)?r.globals.markers.size[e]>0:r.config.markers.size>0;if(g||n){b.isNumber(l.y[d])?p+=" w".concat(b.randomId()):p="apexcharts-nullpoint";var f=this.getMarkerConfig(p,e,u);r.config.series[o].data[u]&&(r.config.series[o].data[u].fillColor&&(f.pointFillColor=r.config.series[o].data[u].fillColor),r.config.series[o].data[u].strokeColor&&(f.pointStrokeColor=r.config.series[o].data[u].strokeColor)),a&&(f.pSize=a),(s=h.drawMarker(l.x[d],l.y[d],f)).attr("rel",u),s.attr("j",u),s.attr("index",e),s.node.setAttribute("default-marker-size",f.pSize);var x=new y(this.ctx);x.setSelectionFilter(s,e,u),this.addEvents(s),c&&c.add(s)}else void 0===r.globals.pointsArray[e]&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e].push([l.x[d],l.y[d]])}return c}},{key:"getMarkerConfig",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.getMarkerStyle(e),n=a.globals.markers.size[e],r=a.config.markers;return null!==i&&r.discrete.length&&r.discrete.map((function(t){t.seriesIndex===e&&t.dataPointIndex===i&&(s.pointStrokeColor=t.strokeColor,s.pointFillColor=t.fillColor,n=t.size,s.pointShape=t.shape)})),{pSize:n,pRadius:r.radius,width:Array.isArray(r.width)?r.width[e]:r.width,height:Array.isArray(r.height)?r.height[e]:r.height,pointStrokeWidth:Array.isArray(r.strokeWidth)?r.strokeWidth[e]:r.strokeWidth,pointStrokeColor:s.pointStrokeColor,pointFillColor:s.pointFillColor,shape:s.pointShape||(Array.isArray(r.shape)?r.shape[e]:r.shape),class:t,pointStrokeOpacity:Array.isArray(r.strokeOpacity)?r.strokeOpacity[e]:r.strokeOpacity,pointStrokeDashArray:Array.isArray(r.strokeDashArray)?r.strokeDashArray[e]:r.strokeDashArray,pointFillOpacity:Array.isArray(r.fillOpacity)?r.fillOpacity[e]:r.fillOpacity,seriesIndex:e}}},{key:"addEvents",value:function(t){var e=this.w,i=new w(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),I=function(){function t(e){r(this,t),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 l(t,[{key:"draw",value:function(t,e,i){var a=this.w,s=new w(this.ctx),n=i.realIndex,r=i.pointsPos,o=i.zRatio,l=i.elParent,c=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(r.x))for(var h=0;h<r.x.length;h++){var d=e+1,u=!0;0===e&&0===h&&(d=0),0===e&&1===h&&(d=1);var p=0,g=a.globals.markers.size[n];if(o!==1/0){g=a.globals.seriesZ[n][d]/o;var f=a.config.plotOptions.bubble;f.minBubbleRadius&&g<f.minBubbleRadius&&(g=f.minBubbleRadius),f.maxBubbleRadius&&g>f.maxBubbleRadius&&(g=f.maxBubbleRadius)}a.config.chart.animations.enabled||(p=g);var x=r.x[h],m=r.y[h];if(p=p||0,null!==m&&void 0!==a.globals.series[n][d]||(u=!1),u){var b=this.drawPoint(x,m,p,g,n,d,e);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,a,s,n,r){var o,l=this.w,c=s,h=new v(this.ctx),d=new y(this.ctx),u=new D(this.ctx),p=new E(this.ctx),g=new w(this.ctx),f=p.getMarkerConfig("apexcharts-marker",c),x=u.fillPath({seriesNumber:s,dataPointIndex:n,patternUnits:"objectBoundingBox",value:l.globals.series[s][r]});if("circle"===f.shape?o=g.drawCircle(i):"square"!==f.shape&&"rect"!==f.shape||(o=g.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),l.config.series[c].data[n]&&l.config.series[c].data[n].fillColor&&(x=l.config.series[c].data[n].fillColor),o.attr({x:t-f.width/2-f.pointStrokeWidth/2,y:e-f.height/2-f.pointStrokeWidth/2,cx:t,cy:e,fill:x,"fill-opacity":f.pointFillOpacity,stroke:f.pointStrokeColor,r:a,"stroke-width":f.pointStrokeWidth,"stroke-dasharray":f.pointStrokeDashArray,"stroke-opacity":f.pointStrokeOpacity}),l.config.chart.dropShadow.enabled){var m=l.config.chart.dropShadow;d.dropShadow(o,m,s)}if(!this.initialAnim||l.globals.dataChanged||l.globals.resized)l.globals.animationEnded=!0;else{var b=l.config.chart.animations.speed;h.animateMarker(o,0,"circle"===f.shape?a:{width:f.width,height:f.height},b,l.globals.easing,(function(){window.setTimeout((function(){h.animationCompleted(o)}),100)}))}if(l.globals.dataChanged&&"circle"===f.shape)if(this.dynamicAnim){var k,A,S,C,L=l.config.chart.animations.dynamicAnimation.speed;null!=(C=l.globals.previousPaths[s]&&l.globals.previousPaths[s][r])&&(k=C.x,A=C.y,S=void 0!==C.r?C.r:a);for(var P=0;P<l.globals.collapsedSeries.length;P++)l.globals.collapsedSeries[P].index===s&&(L=1,a=0);0===t&&0===e&&(a=0),h.animateCircle(o,{cx:k,cy:A,r:S},{cx:t,cy:e,r:a},L,l.globals.easing)}else o.attr({r:a});return o.attr({rel:n,j:n,index:s,"default-marker-size":a}),d.setSelectionFilter(o,s,n),p.addEvents(o),o.node.classList.add("apexcharts-marker"),o}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),t}(),z=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"dataLabelsCorrection",value:function(t,e,i,a,s,n,r){var o=this.w,l=!1,c=new w(this.ctx).getTextRects(i,r),h=c.width,d=c.height;e<0&&(e=0),e>o.globals.gridHeight+d&&(e=o.globals.gridHeight+d/2),void 0===o.globals.dataLabelsRects[a]&&(o.globals.dataLabelsRects[a]=[]),o.globals.dataLabelsRects[a].push({x:t,y:e,width:h,height:d});var u=o.globals.dataLabelsRects[a].length-2,p=void 0!==o.globals.lastDrawnDataLabelsIndexes[a]?o.globals.lastDrawnDataLabelsIndexes[a][o.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(void 0!==o.globals.dataLabelsRects[a][u]){var g=o.globals.dataLabelsRects[a][p];(t>g.x+g.width+2||e>g.y+g.height+2||t+h<g.x)&&(l=!0)}return(0===s||n)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t,e,i){var a=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,n=this.w,r=new w(this.ctx),o=n.config.dataLabels,l=0,c=0,h=i,d=null;if(!o.enabled||!Array.isArray(t.x))return d;d=r.group({class:"apexcharts-data-labels"});for(var u=0;u<t.x.length;u++)if(l=t.x[u]+o.offsetX,c=t.y[u]+o.offsetY+s,!isNaN(l)){1===i&&0===u&&(h=0),1===i&&1===u&&(h=1);var p=n.globals.series[e][h],g="",f=function(t){return n.config.dataLabels.formatter(t,{ctx:a.ctx,seriesIndex:e,dataPointIndex:h,w:n})};if("bubble"===n.config.chart.type){g=f(p=n.globals.seriesZ[e][h]),c=t.y[u];var x=new I(this.ctx),m=x.centerTextInBubble(c,e,h);c=m.y}else void 0!==p&&(g=f(p));this.plotDataLabelsText({x:l,y:c,text:g,i:e,j:h,parent:d,offsetCorrection:!0,dataLabelsConfig:n.config.dataLabels})}return d}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new w(this.ctx),a=t.x,s=t.y,n=t.i,r=t.j,o=t.text,l=t.textAnchor,c=t.fontSize,h=t.parent,d=t.dataLabelsConfig,u=t.color,p=t.alwaysDrawDataLabel,g=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(n)<0)){var f={x:a,y:s,drawnextLabel:!0};g&&(f=this.dataLabelsCorrection(a,s,o,n,r,p,parseInt(d.style.fontSize,10))),e.globals.zoomed||(a=f.x,s=f.y),f.textRects&&(a<-10-f.textRects.width||a>e.globals.gridWidth+f.textRects.width+10)&&(o="");var x=e.globals.dataLabels.style.colors[n];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(x=e.globals.dataLabels.style.colors[r]),"function"==typeof x&&(x=x({series:e.globals.series,seriesIndex:n,dataPointIndex:r,w:e})),u&&(x=u);var m=d.offsetX,b=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(m=0,b=0),f.drawnextLabel){var v=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:a+m,y:s+b,foreColor:x,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(v.attr({class:"apexcharts-datalabel",cx:a,cy:s}),d.dropShadow.enabled){var k=d.dropShadow;new y(this.ctx).dropShadow(v,k)}h.add(v),void 0===e.globals.lastDrawnDataLabelsIndexes[n]&&(e.globals.lastDrawnDataLabelsIndexes[n]=[]),e.globals.lastDrawnDataLabelsIndexes[n].push(r)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,n=a.padding/2,r=e.width,o=e.height,l=new w(this.ctx).drawRect(e.x-s,e.y-n/2,r+2*s,o+n,a.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new y(this.ctx).dropShadow(l,a.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var a=e[i],s=a.getBBox(),n=null;if(s.width&&s.height&&(n=this.addBackgroundToDataLabel(a,s)),n){a.parentNode.insertBefore(n.node,a);var r=a.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?n.attr({fill:r}):n.animate().attr({fill:r}),a.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),a=0;a<e.length;a++)i&&i.insertBefore(e[a],i.nextSibling)}}]),t}(),O=function(){function t(e){r(this,t),this.w=e.w,this.barCtx=e}return l(t,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,a=t.y1,s=t.y2,n=t.i,r=t.j,o=t.realIndex,l=t.series,c=t.barHeight,h=t.barWidth,d=t.barYPosition,u=t.visibleSeries,p=t.renderedPath,g=this.w,f=new w(this.barCtx.ctx),x=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth,m=e+parseFloat(h*u),b=i+parseFloat(c*u);g.globals.isXNumeric&&!g.globals.isBarHorizontal&&(m=e+parseFloat(h*(u+1)),b=i+parseFloat(c*(u+1))-x);var v,y=e,k=i,A=g.config.dataLabels,S=this.barCtx.barOptions.dataLabels;void 0!==d&&this.barCtx.isTimelineBar&&(b=d,k=d);var C=A.offsetX,L=A.offsetY,P={width:0,height:0};if(g.config.dataLabels.enabled){var T=this.barCtx.series[n][r];P=f.getTextRects(g.globals.yLabelFormatters[0](T),parseFloat(A.style.fontSize))}var M={x:e,y:i,i:n,j:r,renderedPath:p,bcx:m,bcy:b,barHeight:c,barWidth:h,textRects:P,strokeWidth:x,dataLabelsX:y,dataLabelsY:k,barDataLabelsConfig:S,offX:C,offY:L};return v=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(M):this.calculateColumnsDataLabelsPosition(M),p.attr({cy:v.bcy,cx:v.bcx,j:r,val:l[n][r],barHeight:c,barWidth:h}),this.drawCalculatedDataLabels({x:v.dataLabelsX,y:v.dataLabelsY,val:this.barCtx.isTimelineBar?[a,s]:l[n][r],i:o,j:r,barWidth:h,barHeight:c,textRects:P,dataLabelsConfig:A})}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i=this.w,a=t.i,s=t.j,n=t.y,r=t.bcx,o=t.barWidth,l=t.barHeight,c=t.textRects,h=t.dataLabelsY,d=t.barDataLabelsConfig,u=t.strokeWidth,p=t.offX,g=t.offY;l=Math.abs(l);var f="vertical"===i.config.plotOptions.bar.dataLabels.orientation;r-=u/2;var x=i.globals.gridWidth/i.globals.dataPoints;e=i.globals.isXNumeric?r-o/2+p:r-x+o/2+p,f&&(e=e+c.height/2-u/2-2);var m=this.barCtx.series[a][s]<0,b=n;switch(this.barCtx.isReversed&&(b=n-l+(m?2*l:0),n-=l),d.position){case"center":h=f?m?b+l/2+g:b+l/2-g:m?b-l/2+c.height/2+g:b+l/2+c.height/2-g;break;case"bottom":h=f?m?b+l+g:b+l-g:m?b-l+c.height+u+g:b+l-c.height/2+u-g;break;case"top":h=f?m?b+g:b-g:m?b-c.height/2-g:b+c.height+g}return i.config.chart.stacked||(h<0?h=0+u:h+c.height/3>i.globals.gridHeight&&(h=i.globals.gridHeight-u)),{bcx:r,bcy:n,dataLabelsX:e,dataLabelsY:h}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,n=t.bcy,r=t.barHeight,o=t.barWidth,l=t.textRects,c=t.dataLabelsX,h=t.strokeWidth,d=t.barDataLabelsConfig,u=t.offX,p=t.offY,g=e.globals.gridHeight/e.globals.dataPoints;o=Math.abs(o);var f=n-(this.barCtx.isTimelineBar?0:g)+r/2+l.height/2+p-3,x=this.barCtx.series[a][s]<0,m=i;switch(this.barCtx.isReversed&&(m=i+o-(x?2*o:0),i=e.globals.gridWidth-o),d.position){case"center":c=x?m+o/2-u:Math.max(l.width/2,m-o/2)+u;break;case"bottom":c=x?m+o-h-Math.round(l.width/2)-u:m-o+h+Math.round(l.width/2)+u;break;case"top":c=x?m-h+Math.round(l.width/2)-u:m-h-Math.round(l.width/2)+u}return e.config.chart.stacked||(c<0?c=c+l.width+h:c+l.width/2>e.globals.gridWidth&&(c=e.globals.gridWidth-l.width-h)),{bcx:i,bcy:n,dataLabelsX:c,dataLabelsY:f}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,n=t.j,r=t.textRects,o=t.barHeight,l=t.barWidth,c=t.dataLabelsConfig,h=this.w,u="rotate(0)";"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&(u="rotate(-90, ".concat(e,", ").concat(i,")"));var p=new z(this.barCtx.ctx),g=new w(this.barCtx.ctx),f=c.formatter,x=null,m=h.globals.collapsedSeriesIndices.indexOf(s)>-1;if(c.enabled&&!m){x=g.group({class:"apexcharts-data-labels",transform:u});var b="";void 0!==a&&(b=f(a,{seriesIndex:s,dataPointIndex:n,w:h}));var v=h.globals.series[s][n]<0,y=h.config.plotOptions.bar.dataLabels.position;"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(c.textAnchor=v?"end":"start"),"center"===y&&(c.textAnchor="middle"),"bottom"===y&&(c.textAnchor=v?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<g.getTextRects(b,parseFloat(c.style.fontSize)).width&&(b=""),h.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?(l>0&&r.width/1.6>l||l<0&&r.width/1.6<l)&&(b=""):r.height/1.6>o&&(b=""));var k=d({},c);this.barCtx.isHorizontal&&a<0&&("start"===c.textAnchor?k.textAnchor="end":"end"===c.textAnchor&&(k.textAnchor="start")),p.plotDataLabelsText({x:e,y:i,text:b,i:s,j:n,parent:x,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return x}}]),t}(),Y=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return l(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(b.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function a(i){for(var a=0;a<i.length;a++)i[a].index===e&&t.node.classList.add("apexcharts-series-collapsed")}a(i.globals.collapsedSeries),a(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w,s=b.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w,a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var s=parseInt(e.getAttribute("rel"),10)-1,n=null,r=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(n=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var o=0;o<a.length;o++)a[o].classList.add(this.legendInactiveClass);null!==n&&(i.globals.axisCharts||n.parentNode.classList.remove(this.legendInactiveClass),n.classList.remove(this.legendInactiveClass),null!==r&&r.classList.remove(this.legendInactiveClass))}else if("mouseout"===t.type)for(var l=0;l<a.length;l++)a[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,a=this.w,s=a.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),n=function(t){for(var e=0;e<s.length;e++)s[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var r=parseInt(e.getAttribute("rel"),10)-1;n("add"),function(t){for(var e=0;e<s.length;e++){var a=parseInt(s[e].getAttribute("val"),10);a>=t.from&&a<=t.to&&s[e].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[r])}else"mouseout"===t.type&&n("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",i=this.w,a=0;if(i.config.series.length>1)for(var s=i.config.series.map((function(e,a){var s=!1;return t&&(s="bar"===i.config.series[a].type||"column"===i.config.series[a].type),e.data&&e.data.length>0&&!s?a:-1})),n="asc"===e?0:s.length-1;"asc"===e?n<s.length:n>=0;"asc"===e?n++:n--)if(-1!==s[n]){a=s[n];break}return a}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,a){for(var s=e[i].childNodes,n={type:a,paths:[],realIndex:e[i].getAttribute("data:realIndex")},r=0;r<s.length;r++)if(s[r].hasAttribute("pathTo")){var o=s[r].getAttribute("pathTo");n.paths.push({d:o})}t.globals.previousPaths.push(n)}t.globals.previousPaths=[],["line","area","bar","rangebar","candlestick","radar"].forEach((function(i){for(var a,s=(a=i,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(a,"-series .apexcharts-series"))),n=0;n<s.length;n++)e(s,n,i)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var a=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),a=[],s=function(t){var e=function(e){return i[t].getAttribute(e)},s={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};a.push({rect:s,color:i[t].getAttribute("color")})},n=0;n<i.length;n++)s(n);t.globals.previousPaths.push(a)},s=0;s<i.length;s++)a(s);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var a=0;a<i.length;a++){for(var s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(a,"'] circle")),n=[],r=0;r<s.length;r++)n.push({x:s[r].getAttribute("cx"),y:s[r].getAttribute("cy"),r:s[r].getAttribute("r")});e.globals.previousPaths.push(n)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new w(this.ctx),a=t.globals.svgWidth/2,s=t.globals.svgHeight/2,n="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(a=10,n="start"):"right"===e.align&&(a=t.globals.svgWidth-10,n="end"),"top"===e.verticalAlign?s=50:"bottom"===e.verticalAlign&&(s=t.globals.svgHeight-50),a+=e.offsetX,s=s+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text){var r=i.drawText({x:a,y:s,text:e.text,textAnchor:n,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(r)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var a=0;a<t[e.globals.maxValsInArrayIndex].length;a++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),a=0;a<i.length-1;a++)if(i[a][0]!==i[a+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(t){return t.length>0?t:[]}))}}]),t}(),F=function(){function t(e){r(this,t),this.w=e.w,this.barCtx=e}return l(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;a<t[i].length;a++)e.globals.seriesX[i][a]>e.globals.minX&&e.globals.seriesX[i][a]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],this.barCtx.radiusOnSeriesNumber=t.length-1,e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,a,s,n,r,o,l=this.w,c=l.globals.dataPoints;this.barCtx.isTimelineBar&&(c=l.globals.labels.length);var h=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)s=(i=l.globals.gridHeight/c)/h,l.globals.isXNumeric&&(s=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),s=s*parseInt(this.barCtx.barOptions.barHeight,10)/100,o=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),e=(i-s*this.barCtx.seriesLen)/2;else{if(a=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(a=l.globals.gridWidth/l.globals.dataPoints),n=a/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(d=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(a=l.globals.minXDiff/d),(n=a/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}r=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(a-n*this.barCtx.seriesLen)/2}return{x:t,y:e,yDivision:i,xDivision:a,barHeight:s,barWidth:n,zeroH:r,zeroW:o}}},{key:"getPathFillColor",value:function(t,e,i,a){var s=this.w,n=new D(this.barCtx.ctx),r=null,o=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(a){t[e][i]>=a.from&&t[e][i]<=a.to&&(r=a.color)})),s.config.series[e].data[i]&&s.config.series[e].data[i].fillColor&&(r=s.config.series[e].data[i].fillColor),n.fillPath({seriesNumber:this.barCtx.barOptions.distributed?o:a,dataPointIndex:i,color:r,value:t[e][i]})}},{key:"getStrokeWidth",value:function(t,e,i){var a=0,s=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,a=t.x1,s=t.x2,n=t.y1,r=t.y2,o=t.elSeries,l=this.w,c=new w(this.barCtx.ctx),h=new Y(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e-=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],u=c.drawRect(void 0!==a?a:0,void 0!==n?n:0,void 0!==s?s:l.globals.gridWidth,void 0!==r?r:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e=t.barWidth,i=t.barXPosition,a=t.yRatio,s=t.y1,n=t.y2,r=t.strokeWidth,o=t.series,l=t.realIndex,c=t.i,h=t.j,d=t.w,u=new w(this.barCtx.ctx);(r=Array.isArray(r)?r[l]:r)||(r=0);var p={barWidth:e,strokeWidth:r,yRatio:a,barXPosition:i,y1:s,y2:n},g=this.getRoundedBars(d,p,o,c,h),f=i,x=i+e,m=u.move(f,s),b=u.move(f,s),v=u.line(x-r,s);return d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1)),m=m+u.line(f,g.y2)+g.pathWithRadius+u.line(x-r,g.y2)+v+v+"z",b=b+u.line(f,s)+v+v+v+v+v+u.line(f,s),d.config.chart.stacked&&(this.barCtx.yArrj.push(g.y2),this.barCtx.yArrjF.push(Math.abs(s-g.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[c][h])),{pathTo:m,pathFrom:b}}},{key:"getBarpaths",value:function(t){var e=t.barYPosition,i=t.barHeight,a=t.x1,s=t.x2,n=t.strokeWidth,r=t.series,o=t.realIndex,l=t.i,c=t.j,h=t.w,d=new w(this.barCtx.ctx);(n=Array.isArray(n)?n[o]:n)||(n=0);var u={barHeight:i,strokeWidth:n,barYPosition:e,x2:s,x1:a},p=this.getRoundedBars(h,u,r,l,c),g=d.move(a,e),f=d.move(a,e);h.globals.previousPaths.length>0&&(f=this.barCtx.getPreviousPath(o,c,!1));var x=e,m=e+i,b=d.line(a,m-n);return g=g+d.line(p.x2,x)+p.pathWithRadius+d.line(p.x2,m-n)+b+b+"z",f=f+d.line(a,x)+b+b+b+b+b+d.line(a,x),h.config.chart.stacked&&(this.barCtx.xArrj.push(p.x2),this.barCtx.xArrjF.push(Math.abs(a-p.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),{pathTo:g,pathFrom:f}}},{key:"getRoundedBars",value:function(t,e,i,a,s){var n=new w(this.barCtx.ctx),r=0,o=t.config.plotOptions.bar.borderRadius,l=Array.isArray(o);if(r=l?o[a>o.length-1?o.length-1:a]:o,t.config.chart.stacked&&i.length>1&&a!==this.barCtx.radiusOnSeriesNumber&&!l&&(r=0),this.barCtx.isHorizontal){var c="",h=e.x2;if(Math.abs(e.x1-e.x2)<r&&(r=Math.abs(e.x1-e.x2)),void 0!==i[a][s]||null!==i[a][s]){var d=this.barCtx.isReversed?i[a][s]>0:i[a][s]<0;d&&(r*=-1),h-=r,c=n.quadraticCurve(h+r,e.barYPosition,h+r,e.barYPosition+(d?-1*r:r))+n.line(h+r,e.barYPosition+e.barHeight-e.strokeWidth-(d?-1*r:r))+n.quadraticCurve(h+r,e.barYPosition+e.barHeight-e.strokeWidth,h,e.barYPosition+e.barHeight-e.strokeWidth)}return{pathWithRadius:c,x2:h}}var u="",p=e.y2;if(Math.abs(e.y1-e.y2)<r&&(r=Math.abs(e.y1-e.y2)),void 0!==i[a][s]||null!==i[a][s]){var g=i[a][s]<0;g&&(r*=-1),p+=r,u=n.quadraticCurve(e.barXPosition,p-r,e.barXPosition+(g?-1*r:r),p-r)+n.line(e.barXPosition+e.barWidth-e.strokeWidth-(g?-1*r:r),p-r)+n.quadraticCurve(e.barXPosition+e.barWidth-e.strokeWidth,p-r,e.barXPosition+e.barWidth-e.strokeWidth,p)}return{pathWithRadius:u,y2:p}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a<e.length;a++){for(var s=0,n=0;n<e[i.globals.maxValsInArrayIndex].length;n++)s+=e[a][n];0===s&&this.barCtx.zeroSerieses.push(a)}for(var r=e.length-1;r>=0;r--)this.barCtx.zeroSerieses.indexOf(r)>-1&&r===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var o=e.length-1;o>=0;o--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=i?e:null;return null!=t&&(a=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),a}},{key:"getYForValue",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=i?e:null;return null!=t&&(a=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),a}},{key:"getGoalValues",value:function(t,e,i,a,s){var n=this,r=this.w,o=[];return r.globals.seriesGoals[a]&&r.globals.seriesGoals[a][s]&&Array.isArray(r.globals.seriesGoals[a][s])&&r.globals.seriesGoals[a][s].forEach((function(a){var s;o.push((c(s={},t,"x"===t?n.getXForValue(a.value,e,!1):n.getYForValue(a.value,i,!1)),c(s,"attrs",a),s))})),o}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,s=t.goalY,n=t.barWidth,r=t.barHeight,o=new w(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach((function(t){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:r/2,a=i+e+r/2;c=o.drawLine(t.x,a-2*e,t.x,a,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(c)})):Array.isArray(s)&&s.forEach((function(t){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:n/2,a=e+i+n/2;c=o.drawLine(a-2*i,t.y,a,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(c)})),l}}]),t}(),X=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.isTimelineBar="datetime"===a.config.xaxis.type&&a.globals.seriesRangeBarTimeline.length,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.initialXRatio=i.initialXRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new F(this)}return l(t,[{key:"draw",value:function(t,e){var i=this.w,a=new w(this.ctx),s=new S(this.ctx,i);t=s.getLogSeries(t),this.series=t,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var n=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.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 r=0,o=0;r<t.length;r++,o++){var l,c,h,u,p=void 0,g=void 0,f=[],x=[],m=i.globals.comboCharts?e[r]:r,v=a.group({class:"apexcharts-series",rel:r+1,seriesName:b.escapeString(i.globals.seriesNames[m]),"data:realIndex":m});this.ctx.series.addCollapsedClassToSeries(v,m),t[r].length>0&&(this.visibleI=this.visibleI+1);var y=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=m),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var A=this.barHelpers.initialPositions();g=A.y,y=A.barHeight,c=A.yDivision,u=A.zeroW,p=A.x,k=A.barWidth,l=A.xDivision,h=A.zeroH,this.horizontal||x.push(p+k/2);for(var C=a.group({class:"apexcharts-datalabels","data:realIndex":m}),L=a.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),P=0;P<i.globals.dataPoints;P++){var T=this.barHelpers.getStrokeWidth(r,P,m),M=null,D={indexes:{i:r,j:P,realIndex:m,bc:o},x:p,y:g,strokeWidth:T,elSeries:v};this.isHorizontal?(M=this.drawBarPaths(d(d({},D),{},{barHeight:y,zeroW:u,yDivision:c})),k=this.series[r][P]/this.invertedYRatio):(M=this.drawColumnPaths(d(d({},D),{},{xDivision:l,barWidth:k,zeroH:h})),y=this.series[r][P]/this.yRatio[this.yaxisIndex]);var E=this.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:M.barYPosition,goalX:M.goalX,goalY:M.goalY,barHeight:y,barWidth:k});E&&L.add(E),g=M.y,p=M.x,P>0&&x.push(p+k/2),f.push(g);var I=this.barHelpers.getPathFillColor(t,r,P,m);this.renderSeries({realIndex:m,pathFill:I,j:P,i:r,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:T,elSeries:v,x:p,y:g,series:t,barHeight:y,barWidth:k,elDataLabelsWrap:C,elGoalsMarkers:L,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[m]=x,i.globals.seriesYvalues[m]=f,n.add(v)}return n}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,s=t.j,n=t.i,r=t.pathFrom,o=t.pathTo,l=t.strokeWidth,c=t.elSeries,h=t.x,d=t.y,u=t.y1,p=t.y2,g=t.series,f=t.barHeight,x=t.barWidth,m=t.barYPosition,b=t.elDataLabelsWrap,v=t.elGoalsMarkers,k=t.visibleSeries,A=t.type,S=this.w,C=new w(this.ctx);a||(a=this.barOptions.distributed?S.globals.stroke.colors[s]:S.globals.stroke.colors[e]),S.config.series[n].data[s]&&S.config.series[n].data[s].strokeColor&&(a=S.config.series[n].data[s].strokeColor),this.isNullValue&&(i="none");var L=s/S.config.chart.animations.animateGradually.delay*(S.config.chart.animations.speed/S.globals.dataPoints)/2.4,P=C.renderPaths({i:n,j:s,realIndex:e,pathFrom:r,pathTo:o,stroke:a,strokeWidth:l,strokeLineCap:S.config.stroke.lineCap,fill:i,animationDelay:L,initialSpeed:S.config.chart.animations.speed,dataChangeSpeed:S.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(A,"-area")});P.attr("clip-path","url(#gridRectMask".concat(S.globals.cuid,")"));var T=S.config.forecastDataPoints;T.count>0&&s>=S.globals.dataPoints-T.count&&(P.node.setAttribute("stroke-dasharray",T.dashArray),P.node.setAttribute("stroke-width",T.strokeWidth),P.node.setAttribute("fill-opacity",T.fillOpacity)),void 0!==u&&void 0!==p&&(P.attr("data-range-y1",u),P.attr("data-range-y2",p)),new y(this.ctx).setSelectionFilter(P,e,s),c.add(P);var M=new O(this).handleBarDataLabels({x:h,y:d,y1:u,y2:p,i:n,j:s,series:g,realIndex:e,barHeight:f,barWidth:x,barYPosition:m,renderedPath:P,visibleSeries:k});return null!==M&&b.add(M),c.add(b),v&&c.add(v),c}},{key:"drawBarPaths",value:function(t){var e=t.indexes,i=t.barHeight,a=t.strokeWidth,s=t.zeroW,n=t.x,r=t.y,o=t.yDivision,l=t.elSeries,c=this.w,h=e.i,d=e.j;c.globals.isXNumeric&&(r=(c.globals.seriesX[h][d]-c.globals.minX)/this.invertedXRatio-i);var u=r+i*this.visibleI;n=this.barHelpers.getXForValue(this.series[h][d],s);var p=this.barHelpers.getBarpaths({barYPosition:u,barHeight:i,x1:s,x2:n,strokeWidth:a,series:this.series,realIndex:e.realIndex,i:h,j:d,w:c});return c.globals.isXNumeric||(r+=o),this.barHelpers.barBackground({j:d,i:h,y1:u-i*this.visibleI,y2:i*this.seriesLen,elSeries:l}),{pathTo:p.pathTo,pathFrom:p.pathFrom,x:n,y:r,goalX:this.barHelpers.getGoalValues("x",s,null,h,d),barYPosition:u}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,n=t.barWidth,r=t.zeroH,o=t.strokeWidth,l=t.elSeries,c=this.w,h=e.realIndex,d=e.i,u=e.j,p=e.bc;if(c.globals.isXNumeric){var g=h;c.globals.seriesX[h].length||(g=c.globals.maxValsInArrayIndex),i=(c.globals.seriesX[g][u]-c.globals.minX)/this.xRatio-n*this.seriesLen/2}var f=i+n*this.visibleI;a=this.barHelpers.getYForValue(this.series[d][u],r);var x=this.barHelpers.getColumnPaths({barXPosition:f,barWidth:n,y1:r,y2:a,strokeWidth:o,series:this.series,realIndex:e.realIndex,i:d,j:u,w:c});return c.globals.isXNumeric||(i+=s),this.barHelpers.barBackground({bc:p,j:u,i:d,x1:f-o/2-n*this.visibleI,x2:n*this.seriesLen+o/2,elSeries:l}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:i,y:a,goalY:this.barHelpers.getGoalValues("y",null,r,d,u),barXPosition:f}}},{key:"getPreviousPath",value:function(t,e){for(var i,a=this.w,s=0;s<a.globals.previousPaths.length;s++){var n=a.globals.previousPaths[s];n.paths&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(t,10)&&void 0!==a.globals.previousPaths[s].paths[e]&&(i=a.globals.previousPaths[s].paths[e].d)}return i}}]),t}(),R=function(){function t(e){r(this,t),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 l(t,[{key:"isValidDate",value:function(t){return!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(x(i.months)),n=[""].concat(x(i.shortMonths)),r=[""].concat(x(i.days)),o=[""].concat(x(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var c=a?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var h=(a?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+s[0])).replace(/(^|[^\\])MMM/g,"$1"+n[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=a?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+r[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var u=a?t.getUTCHours():t.getHours(),p=u>12?u-12:0===u?12:u;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var g=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(g))).replace(/(^|[^\\])m/g,"$1"+g);var f=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(f))).replace(/(^|[^\\])s/g,"$1"+f);var m=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var b=u<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var v=b.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+v)).replace(/(^|[^\\])t/g,"$1"+v.charAt(0));var y=-t.getTimezoneOffset(),w=a||!y?"Z":y>0?"+":"-";if(!a){var k=(y=Math.abs(y))%60;w+=l(Math.floor(y/60))+":"+l(k)}e=e.replace(/(^|[^\\])K/g,"$1"+w);var A=(a?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(r[0],"g"),r[A])).replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(s[0],"g"),s[h])).replace(new RegExp(n[0],"g"),n[h])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;void 0!==a.config.xaxis.min&&(t=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(e=a.config.xaxis.max);var s=this.getDate(t),n=this.getDate(e),r=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(r[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(r[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(r[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(r[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(r[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(r[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(r[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=b.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),N=function(t){u(i,X);var e=f(i);function i(){return r(this,i),e.apply(this,arguments)}return l(i,[{key:"draw",value:function(t,e){var i=this.w,a=new w(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var s=a.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),n=0;n<t.length;n++){var r,o,l,c=void 0,h=void 0,u=void 0,p=i.globals.comboCharts?e[n]:n,g=a.group({class:"apexcharts-series",seriesName:b.escapeString(i.globals.seriesNames[p]),rel:n+1,"data:realIndex":p});t[n].length>0&&(this.visibleI=this.visibleI+1);var f=0,x=0;this.yRatio.length>1&&(this.yaxisIndex=p);var m=this.barHelpers.initialPositions();h=m.y,l=m.zeroW,c=m.x,x=m.barWidth,r=m.xDivision,o=m.zeroH;for(var v=a.group({class:"apexcharts-datalabels","data:realIndex":p}),y=a.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),k=0;k<i.globals.dataPoints;k++){var A=this.barHelpers.getStrokeWidth(n,k,p),S=this.seriesRangeStart[n][k],C=this.seriesRangeEnd[n][k],L=null,P=null,T={x:c,y:h,strokeWidth:A,elSeries:g};if(u=m.yDivision,f=m.barHeight,this.isHorizontal){P=h+f*this.visibleI;var M=this.seriesLen;i.config.plotOptions.bar.rangeBarGroupRows&&(M=1);var D=(u-f*M)/2;if(void 0===i.config.series[n].data[k])break;if(this.isTimelineBar&&i.config.series[n].data[k].x){var E=this.detectOverlappingBars({i:n,j:k,barYPosition:P,srty:D,barHeight:f,yDivision:u,initPositions:m});f=E.barHeight,P=E.barYPosition}x=(L=this.drawRangeBarPaths(d({indexes:{i:n,j:k,realIndex:p},barHeight:f,barYPosition:P,zeroW:l,yDivision:u,y1:S,y2:C},T))).barWidth}else f=(L=this.drawRangeColumnPaths(d({indexes:{i:n,j:k,realIndex:p},zeroH:o,barWidth:x,xDivision:r},T))).barHeight;var I=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:P,goalX:L.goalX,goalY:L.goalY,barHeight:f,barWidth:x});I&&y.add(I),h=L.y,c=L.x;var z=this.barHelpers.getPathFillColor(t,n,k,p),O=i.globals.stroke.colors[p];this.renderSeries({realIndex:p,pathFill:z,lineFill:O,j:k,i:n,x:c,y:h,y1:S,y2:C,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:A,elSeries:g,series:t,barHeight:f,barYPosition:P,barWidth:x,elDataLabelsWrap:v,elGoalsMarkers:y,visibleSeries:this.visibleI,type:"rangebar"})}s.add(g)}return s}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,a=t.barYPosition,s=t.srty,n=t.barHeight,r=t.yDivision,o=t.initPositions,l=this.w,c=[],h=l.config.series[e].data[i].rangeName,d=l.config.series[e].data[i].x,u=l.globals.labels.indexOf(d),p=l.globals.seriesRangeBarTimeline[e].findIndex((function(t){return t.x===d&&t.overlaps.length>0}));return a=l.config.plotOptions.bar.rangeBarGroupRows?s+r*u:s+n*this.visibleI+r*u,p>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(c=l.globals.seriesRangeBarTimeline[e][p].overlaps).indexOf(h)>-1&&(a=(n=o.barHeight/c.length)*this.visibleI+r*(100-parseInt(this.barOptions.barHeight,10))/100/2+n*(this.visibleI+c.indexOf(h))+r*u),{barYPosition:a,barHeight:n}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x;t.strokeWidth;var a=t.xDivision,s=t.barWidth,n=t.zeroH,r=this.w,o=e.i,l=e.j,c=this.yRatio[this.yaxisIndex],h=e.realIndex,d=this.getRangeValue(h,l),u=Math.min(d.start,d.end),p=Math.max(d.start,d.end);r.globals.isXNumeric&&(i=(r.globals.seriesX[o][l]-r.globals.minX)/this.xRatio-s/2);var g=i+s*this.visibleI;void 0===this.series[o][l]||null===this.series[o][l]?u=n:(u=n-u/c,p=n-p/c);var f=Math.abs(p-u),x=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:s,y1:u,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:h,j:l,w:r});return r.globals.isXNumeric||(i+=a),{pathTo:x.pathTo,pathFrom:x.pathFrom,barHeight:f,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,n,o,l),barXPosition:g}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,a=t.y1,s=t.y2,n=t.yDivision,r=t.barHeight,o=t.barYPosition,l=t.zeroW,c=this.w,h=l+a/this.invertedYRatio,d=l+s/this.invertedYRatio,u=Math.abs(d-h),p=this.barHelpers.getBarpaths({barYPosition:o,barHeight:r,x1:h,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:c});return c.globals.isXNumeric||(i+=n),{pathTo:p.pathTo,pathFrom:p.pathFrom,barWidth:u,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}},{key:"getTooltipValues",value:function(t){var e=t.ctx,i=t.seriesIndex,a=t.dataPointIndex,s=t.y1,n=t.y2,r=t.w,o=r.globals.seriesRangeStart[i][a],l=r.globals.seriesRangeEnd[i][a],c=r.globals.labels[a],h=r.config.series[i].name?r.config.series[i].name:"",d=r.config.tooltip.y.formatter,u=r.config.tooltip.y.title.formatter,p={w:r,seriesIndex:i,dataPointIndex:a,start:o,end:l};"function"==typeof u&&(h=u(h,p)),Number.isFinite(s)&&Number.isFinite(n)&&(o=s,l=n,r.config.series[i].data[a].x&&(c=r.config.series[i].data[a].x+":"),"function"==typeof d&&(c=d(c,p)));var g="",f="",x=r.globals.colors[i];if(void 0===r.config.tooltip.x.formatter)if("datetime"===r.config.xaxis.type){var m=new R(e);g=m.formatDate(m.getDate(o),r.config.tooltip.x.format),f=m.formatDate(m.getDate(l),r.config.tooltip.x.format)}else g=o,f=l;else g=r.config.tooltip.x.formatter(o),f=r.config.tooltip.x.formatter(l);return{start:o,end:l,startVal:g,endVal:f,ylabel:c,color:x,seriesName:h}}},{key:"buildCustomTooltipHTML",value:function(t){return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t.color+'">'+(t.seriesName||"")+'</span></div><div> <span class="category">'+t.ylabel+' </span> <span class="value start-value">'+t.start+'</span> <span class="separator">-</span> <span class="value end-value">'+t.end+"</span></div></div>"}}]),i}(),_=function(){function t(e){r(this,t),this.opts=e}return l(t,[{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(t){return 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,b.extend(t,{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:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,s=e.w,n=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-n},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=new N(t.ctx,null),i=e.getTooltipValues(t),a=i.color,s=i.seriesName,n=i.ylabel,r=i.startVal,o=i.endVal;return e.buildCustomTooltipHTML({color:a,seriesName:s,ylabel:n,start:r,end:o})}(t):function(t){var e=new N(t.ctx,null),i=e.getTooltipValues(t),a=i.color,s=i.seriesName,n=i.ylabel,r=i.start,o=i.end;return e.buildCustomTooltipHTML({color:a,seriesName:s,ylabel:n,start:r,end:o})}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},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:"brush",value:function(t){return b.extend(t,{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(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return b.isNumber(t)?Math.floor(t):t};var a=t.xaxis.labels.formatter,s=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(s=i.map((function(t){return Array.isArray(t)?t:String(t)}))),s&&s.length&&(t.xaxis.labels.formatter=function(t){return b.isNumber(t)?a(s[Math.floor(t)-1]):a(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{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(t){return t.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(t){return t.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(t){return t.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(t){return t},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(t,e,i,a,s){var n=t.globals.seriesCandleO[e][i],r=t.globals.seriesCandleH[e][i],o=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==s?'<div class="apexcharts-custom-tooltip">\n '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(a[0],': <span class="value">')+n+"</span></div>"+"<div>".concat(a[1],': <span class="value">')+r+"</span></div>"+(o?"<div>".concat(a[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(a[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(a[4],': <span class="value">')+c+"</span></div></div>"}}]),t}(),H=function(){function t(e){r(this,t),this.opts=e}return l(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new T,s=new _(i);this.chartType=i.chart.type,"histogram"===this.chartType&&(i.chart.type="bar",i=b.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},i)),i=this.extendYAxis(i),i=this.extendAnnotations(i);var r=a.init(),o={};if(i&&"object"===n(i)){var l={};l=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?s[i.chart.type]():s.line(),i.chart.brush&&i.chart.brush.enabled&&(l=s.brush(l)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=s.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,l,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(l=s.sparkline(l)),o=b.extend(r,l)}var c=b.extend(o,window.Apex);return r=b.extend(c,i),this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a=new _(i),s="bar"===t&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,n="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,r="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,o=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return s||n||!r||"between"===o||(i=a.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new T;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=b.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[b.extend(i.yAxis,t.yaxis)]:t.yaxis=b.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach((function(t){t.logarithmic&&(a=!0)}));var s=t.series;return e&&!s&&(s=e.config.series),a&&s.length!==t.yaxis.length&&s.length&&(t.yaxis=s.map((function(e,a){if(e.name||(s[a].name="series-".concat(a+1)),t.yaxis[a])return t.yaxis[a].seriesName=s[a].name,t.yaxis[a];var n=b.extend(i.yAxis,t.yaxis[0]);return n.show=!1,n}))),a&&s.length>1&&s.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new T;return t.annotations.yaxis=b.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new T;return t.annotations.xaxis=b.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new T;return t.annotations.points=b.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.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("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e.chart.group&&0===e.yaxis[0].labels.minWidth&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(e.stroke.width)&&"line"!==e.chart.type&&"area"!==e.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),e.stroke.width=e.stroke.width[0]),e}}]),t}(),W=function(){function t(){r(this,t)}return l(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRangeBarTimeline=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.xaxisLabelsCount=0,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){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:t.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:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.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,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=b.extend({},t),e.initialSeries=b.clone(t.series),e.lastXAxis=b.clone(e.initialConfig.xaxis),e.lastYAxis=b.clone(e.initialConfig.yaxis),e}}]),t}(),B=function(){function t(e){r(this,t),this.opts=e}return l(t,[{key:"init",value:function(){var t=new H(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new W).init(t)}}}]),t}(),j=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new S(this.ctx)}return l(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new Y(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new Y(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,a=this.w.globals,s="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,n=0;n<t[e].data.length;n++)if(void 0!==t[e].data[n][1]&&(Array.isArray(t[e].data[n][1])&&4===t[e].data[n][1].length&&!s?this.twoDSeries.push(b.parseNumber(t[e].data[n][1][3])):t[e].data[n].length>=5?this.twoDSeries.push(b.parseNumber(t[e].data[n][4])):this.twoDSeries.push(b.parseNumber(t[e].data[n][1])),a.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var r=new Date(t[e].data[n][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}else this.twoDSeriesX.push(t[e].data[n][0]);for(var o=0;o<t[e].data.length;o++)void 0!==t[e].data[o][2]&&(this.threeDSeries.push(t[e].data[o][2]),a.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,a=this.w.globals,s=new R(this.ctx),n=e;a.collapsedSeriesIndices.indexOf(e)>-1&&(n=this.activeSeriesIndex);for(var r=0;r<t[e].data.length;r++)void 0!==t[e].data[r].y&&(Array.isArray(t[e].data[r].y)?this.twoDSeries.push(b.parseNumber(t[e].data[r].y[t[e].data[r].y.length-1])):this.twoDSeries.push(b.parseNumber(t[e].data[r].y))),void 0!==t[e].data[r].goals&&Array.isArray(t[e].data[r].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[r].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var o=0;o<t[n].data.length;o++){var l="string"==typeof t[n].data[o].x,c=Array.isArray(t[n].data[o].x),h=!c&&!!s.isValidDate(t[n].data[o].x.toString());if(l||h)if(l||i.xaxis.convertedCatToNumeric){var d=a.isBarHorizontal&&a.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[n].data[o].x)):this.twoDSeriesX.push(s.parseDate(t[n].data[o].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(s.parseDate(t[n].data[o].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[n].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[n].data[o].x)):(a.isXNumeric=!0,a.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[n].data[o].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var u=0;u<t[e].data.length;u++)this.threeDSeries.push(t[e].data[u].z);a.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.config,a=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleRangeDataFormat("xy",t,e)),a.seriesRangeStart.push(s.start),a.seriesRangeEnd.push(s.end),"datetime"===i.xaxis.type&&a.seriesRangeBarTimeline.push(s.rangeUniques),a.seriesRangeBarTimeline.forEach((function(t,e){t&&t.forEach((function(t,e){t.y.forEach((function(e,i){for(var a=0;a<t.y.length;a++)if(i!==a){var s=e.y1,n=e.y2,r=t.y[a].y1;s<=t.y[a].y2&&r<=n&&(t.overlaps.indexOf(e.rangeName)<0&&t.overlaps.push(e.rangeName),t.overlaps.indexOf(t.y[a].rangeName)<0&&t.overlaps.push(t.y[a].rangeName))}}))}))})),s}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=a.o,i.seriesCandleH[e]=a.h,i.seriesCandleM[e]=a.m,i.seriesCandleL[e]=a.l,i.seriesCandleC[e]=a.c,a}},{key:"handleRangeDataFormat",value:function(t,e,i){var a=[],s=[],n=e[i].data.filter((function(t,e,i){return e===i.findIndex((function(e){return e.x===t.x}))})).map((function(t,e){return{x:t.x,overlaps:[],y:[]}})),r="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",o=new Y(this.ctx).getActiveConfigSeriesIndex();if("array"===t){if(2!==e[o].data[0][1].length)throw new Error(r);for(var l=0;l<e[i].data.length;l++)a.push(e[i].data[l][1][0]),s.push(e[i].data[l][1][1])}else if("xy"===t){if(2!==e[o].data[0].y.length)throw new Error(r);for(var c=function(t){var r=b.randomId(),o=e[i].data[t].x,l={y1:e[i].data[t].y[0],y2:e[i].data[t].y[1],rangeName:r};e[i].data[t].rangeName=r;var c=n.findIndex((function(t){return t.x===o}));n[c].y.push(l),a.push(l.y1),s.push(l.y2)},h=0;h<e[i].data.length;h++)c(h)}return{start:a,end:s,rangeUniques:n}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var a=this.w,s="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[i].type,n=[],r=[],o=[],l=[],c=[];if("array"===t)if(s&&6===e[i].data[0].length||!s&&5===e[i].data[0].length)for(var h=0;h<e[i].data.length;h++)n.push(e[i].data[h][1]),r.push(e[i].data[h][2]),s?(o.push(e[i].data[h][3]),l.push(e[i].data[h][4]),c.push(e[i].data[h][5])):(l.push(e[i].data[h][3]),c.push(e[i].data[h][4]));else for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d][1])&&(n.push(e[i].data[d][1][0]),r.push(e[i].data[d][1][1]),s?(o.push(e[i].data[d][1][2]),l.push(e[i].data[d][1][3]),c.push(e[i].data[d][1][4])):(l.push(e[i].data[d][1][2]),c.push(e[i].data[d][1][3])));else if("xy"===t)for(var u=0;u<e[i].data.length;u++)Array.isArray(e[i].data[u].y)&&(n.push(e[i].data[u].y[0]),r.push(e[i].data[u].y[1]),s?(o.push(e[i].data[u].y[2]),l.push(e[i].data[u].y[3]),c.push(e[i].data[u].y[4])):(l.push(e[i].data[u].y[2]),c.push(e[i].data[u].y[3])));return{o:n,h:r,m:o,l:l,c:c}}},{key:"parseDataAxisCharts",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,a=this.w.config,s=this.w.globals,n=new R(i),r=a.labels.length>0?a.labels.slice():a.xaxis.categories.slice();s.isTimelineBar="rangeBar"===a.chart.type&&"datetime"===a.xaxis.type;for(var o=function(){for(var t=0;t<r.length;t++)if("string"==typeof r[t]){if(!n.isValidDate(r[t]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");e.twoDSeriesX.push(n.parseDate(r[t]))}else e.twoDSeriesX.push(r[t])},l=0;l<t.length;l++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[l].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==a.chart.type&&"rangeArea"!==a.chart.type&&"rangeBar"!==t[l].type&&"rangeArea"!==t[l].type||(s.isRangeData=!0,this.handleRangeData(t,l)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,l):this.isFormatXY()&&this.handleFormatXY(t,l),"candlestick"!==a.chart.type&&"candlestick"!==t[l].type&&"boxPlot"!==a.chart.type&&"boxPlot"!==t[l].type||this.handleCandleStickBoxData(t,l),s.series.push(this.twoDSeries),s.labels.push(this.twoDSeriesX),s.seriesX.push(this.twoDSeriesX),s.seriesGoals=this.seriesGoals,l!==this.activeSeriesIndex||this.fallbackToCategory||(s.isXNumeric=!0);else{"datetime"===a.xaxis.type?(s.isXNumeric=!0,o(),s.seriesX.push(this.twoDSeriesX)):"numeric"===a.xaxis.type&&(s.isXNumeric=!0,r.length>0&&(this.twoDSeriesX=r,s.seriesX.push(this.twoDSeriesX))),s.labels.push(this.twoDSeriesX);var c=t[l].data.map((function(t){return b.parseNumber(t)}));s.series.push(c)}s.seriesZ.push(this.threeDSeries),void 0!==t[l].name?s.seriesNames.push(t[l].name):s.seriesNames.push("series-"+parseInt(l+1,10)),void 0!==t[l].color?s.seriesColors.push(t[l].color):s.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a<e.series.length;a++)void 0===e.seriesNames[a]&&e.seriesNames.push("series-"+(a+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRangeBarTimeline.length&&(i.seriesRangeBarTimeline.map((function(t){t.forEach((function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)}))})),i.labels=i.labels.filter((function(t,e,i){return i.indexOf(t)===e}))),e.xaxis.convertedCatToNumeric&&(new _(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,a=[];if(e.axisCharts){if(e.series.length>0)for(var s=0;s<e.series[e.maxValsInArrayIndex].length;s++)a.push(s+1);e.seriesX=[];for(var n=0;n<t.length;n++)e.seriesX.push(a);e.isXNumeric=!0}if(0===a.length){a=e.axisCharts?[]:e.series.map((function(t,e){return e+1}));for(var r=0;r<t.length;r++)e.seriesX.push(a)}e.labels=a,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=a.map((function(t){return i.xaxis.labels.formatter(t)}))),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,a=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),a.axisCharts?this.parseDataAxisCharts(t):this.parseDataNonAxisCharts(t),this.coreUtils.getLargestSeries(),"bar"===i.chart.type&&i.chart.stacked){var s=new Y(this.ctx);a.series=s.setNullSeriesToZeroValues(a.series)}this.coreUtils.getSeriesTotals(),a.axisCharts&&this.coreUtils.getStackedSeriesTotals(),this.coreUtils.getPercentSeries(),a.dataFormatXNumeric||a.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t);for(var n=this.coreUtils.getCategoryLabels(a.labels),r=0;r<n.length;r++)if(Array.isArray(n[r])){a.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map((function(i,a){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index}))}}]),t}(),V=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return l(t,[{key:"xLabelFormat",value:function(t,e,i,a){var s=this.w;if("datetime"===s.config.xaxis.type&&void 0===s.config.xaxis.labels.formatter&&void 0===s.config.tooltip.x.formatter){var n=new R(this.ctx);return n.formatDate(n.getDate(e),s.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map((function(t){return t})):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;return b.isNumber(t)&&(t=0!==a.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(b.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(b.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach((function(i,a){void 0!==i.labels.formatter?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(s){return e.globals.xyCharts?Array.isArray(s)?s.map((function(e){return t.defaultYFormatter(e,i,a)})):t.defaultYFormatter(s,i,a):s}})),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce((function(t,e){return t.length>e.length?t:e}),0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),G=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"getLabel",value:function(t,e,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",r=this.w,o=void 0===t[a]?"":t[a],l=o,c=r.globals.xLabelFormatter,h=r.config.xaxis.labels.formatter,d=!1,u=new V(this.ctx),p=o;l=u.xLabelFormat(c,o,p,{i:a,dateFormatter:new R(this.ctx).formatDate,w:r}),void 0!==h&&(l=h(o,t[a],{i:a,dateFormatter:new R(this.ctx).formatDate,w:r}));var g=function(t){var i=null;return e.forEach((function(t){"month"===t.unit?i="year":"day"===t.unit?i="month":"hour"===t.unit?i="day":"minute"===t.unit&&(i="hour")})),i===t};e.length>0?(d=g(e[a].unit),i=e[a].position,l=e[a].value):"datetime"===r.config.xaxis.type&&void 0===h&&(l=""),void 0===l&&(l=""),l=Array.isArray(l)?l:l.toString();var f=new w(this.ctx),x={};x=r.globals.rotateXLabels?f.getTextRects(l,parseInt(n,10),null,"rotate(".concat(r.config.xaxis.labels.rotate," 0 0)"),!1):f.getTextRects(l,parseInt(n,10));var m=!r.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(l)&&(0===l.indexOf("NaN")||0===l.toLowerCase().indexOf("invalid")||l.toLowerCase().indexOf("infinity")>=0||s.indexOf(l)>=0&&m)&&(l=""),{x:i,text:l,textRect:x,isBold:d}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,s=a.config.xaxis.tickAmount;return"dataPoints"===s&&(s=Math.round(a.globals.gridWidth/120)),s>i||t%Math.round(i/(s+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,s){var n=this.w;if(0===t&&n.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&n.globals.skipLastTimelinelabel&&(e.text=""),n.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var r=s[s.length-1];e.x<r.textRect.width/(n.globals.rotateXLabels?Math.abs(n.config.xaxis.labels.rotate)/12:1.01)+r.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new S(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&-1===e.globals.collapsedSeriesIndices.indexOf(t)}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,a,s,n,r){var o=this.w,l=new w(this.ctx),c=o.globals.translateY;if(a.show&&e>0){!0===o.config.yaxis[s].opposite&&(t+=a.width);for(var h=e;h>=0;h--){var d=c+e/10+o.config.yaxis[s].labels.offsetY-1;o.globals.isBarHorizontal&&(d=n*h),"heatmap"===o.config.chart.type&&(d+=n/2);var u=l.drawLine(t+i.offsetX-a.width+a.offsetX,d+a.offsetY,t+i.offsetX+a.offsetX,d+a.offsetY,a.color);r.add(u),c+=n}}}}]),t}(),U=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!b.isIE11())return t;var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(t){return 2==++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,(function(t){t.setAttribute("width",0)})),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise((function(i){var a=e.w,s=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var n=document.createElement("canvas");n.width=a.globals.svgWidth*s,n.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var r="transparent"===a.config.chart.background?"#fff":a.config.chart.background,o=n.getContext("2d");o.fillStyle=r,o.fillRect(0,0,n.width*s,n.height*s);var l=e.getSvgString(s);if(window.canvg&&b.isIE11()){var c=window.canvg.Canvg.fromString(o,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var h=n.msToBlob();c.stop(),i({blob:h})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),u=new Image;u.crossOrigin="anonymous",u.onload=function(){if(o.drawImage(u,0,0),n.msToBlob){var t=n.msToBlob();i({blob:t})}else{var e=n.toDataURL("image/png");i({imgURI:e})}},u.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){var i=e.imgURI,a=e.blob;a?navigator.msSaveOrOpenBlob(a,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,a=t.columnDelimiter,s=t.lineDelimiter,n=void 0===s?"\n":s,r=this.w,o=[],l=[],c="data:text/csv;charset=utf-8,\ufeff",h=new j(this.ctx),d=new G(this.ctx),u=function(t){var i="";if(r.globals.axisCharts){if("category"===r.config.xaxis.type||r.config.xaxis.convertedCatToNumeric)if(r.globals.isBarHorizontal){var s=r.globals.yLabelFormatters[0],n=new Y(e.ctx).getActiveConfigSeriesIndex();i=s(r.globals.labels[t],{seriesIndex:n,dataPointIndex:t,w:r})}else i=d.getLabel(r.globals.labels,r.globals.timescaleLabels,0,t).text;"datetime"===r.config.xaxis.type&&(r.config.xaxis.categories.length?i=r.config.xaxis.categories[t]:r.config.labels.length&&(i=r.config.labels[t]))}else i=r.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),b.isNumber(i)?i:i.split(a).join("")};o.push(r.config.chart.toolbar.export.csv.headerCategory),i.map((function(t,e){var i=t.name?t.name:"series-".concat(e);r.globals.axisCharts&&o.push(i.split(a).join("")?i.split(a).join(""):"series-".concat(e))})),r.globals.axisCharts||(o.push(r.config.chart.toolbar.export.csv.headerValue),l.push(o.join(a))),i.map((function(t,e){r.globals.axisCharts?function(t,e){if(o.length&&0===e&&l.push(o.join(a)),t.data&&t.data.length)for(var s=0;s<t.data.length;s++){o=[];var n=u(s);if(n||(h.isFormatXY()?n=i[e].data[s].x:h.isFormat2DArray()&&(n=i[e].data[s]?i[e].data[s][0]:"")),0===e){o.push((d=n,"datetime"===r.config.xaxis.type&&String(d).length>=10?r.config.chart.toolbar.export.csv.dateFormatter(n):b.isNumber(n)?n:n.split(a).join("")));for(var c=0;c<r.globals.series.length;c++)o.push(r.globals.series[c][s])}("candlestick"===r.config.chart.type||t.type&&"candlestick"===t.type)&&(o.pop(),o.push(r.globals.seriesCandleO[e][s]),o.push(r.globals.seriesCandleH[e][s]),o.push(r.globals.seriesCandleL[e][s]),o.push(r.globals.seriesCandleC[e][s])),("boxPlot"===r.config.chart.type||t.type&&"boxPlot"===t.type)&&(o.pop(),o.push(r.globals.seriesCandleO[e][s]),o.push(r.globals.seriesCandleH[e][s]),o.push(r.globals.seriesCandleM[e][s]),o.push(r.globals.seriesCandleL[e][s]),o.push(r.globals.seriesCandleC[e][s])),"rangeBar"===r.config.chart.type&&(o.pop(),o.push(r.globals.seriesRangeStart[e][s]),o.push(r.globals.seriesRangeEnd[e][s])),o.length&&l.push(o.join(a))}var d}(t,e):((o=[]).push(r.globals.labels[e].split(a).join("")),o.push(r.globals.series[e]),l.push(o.join(a)))})),c+=l.join(n),this.triggerDownload(encodeURI(c),r.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var a=document.createElement("a");a.href=t,a.download=(e||this.w.globals.chartID)+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}]),t}(),q=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.axesUtils=new G(e),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===i.config.xaxis.position?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return l(t,[{key:"drawXaxis",value:function(){var t,e=this,i=this.w,a=new w(this.ctx),s=a.group({class:"apexcharts-xaxis",transform:"translate(".concat(i.config.xaxis.offsetX,", ").concat(i.config.xaxis.offsetY,")")}),n=a.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(i.globals.translateXAxisX,", ").concat(i.globals.translateXAxisY,")")});s.add(n);for(var r=i.globals.padHorizontal,o=[],l=0;l<this.xaxisLabels.length;l++)o.push(this.xaxisLabels[l]);var c=o.length;if(i.globals.isXNumeric){var h=c>1?c-1:c;t=i.globals.gridWidth/h,r=r+t/2+i.config.xaxis.labels.offsetX}else t=i.globals.gridWidth/o.length,r=r+t+i.config.xaxis.labels.offsetX;for(var d=function(s){var l=r-t/2+i.config.xaxis.labels.offsetX;0===s&&1===c&&t/2===r&&1===i.globals.dataPoints&&(l=i.globals.gridWidth/2);var h=e.axesUtils.getLabel(o,i.globals.timescaleLabels,l,s,e.drawnLabels,e.xaxisFontSize),d=28;if(i.globals.rotateXLabels&&(d=22),(h=void 0!==i.config.xaxis.tickAmount&&"dataPoints"!==i.config.xaxis.tickAmount&&"datetime"!==i.config.xaxis.type?e.axesUtils.checkLabelBasedOnTickamount(s,h,c):e.axesUtils.checkForOverflowingLabels(s,h,c,e.drawnLabels,e.drawnLabelsRects)).text&&i.globals.xaxisLabelsCount++,i.config.xaxis.labels.show){var u=a.drawText({x:h.x,y:e.offY+i.config.xaxis.labels.offsetY+d-("top"===i.config.xaxis.position?i.globals.xAxisHeight+i.config.xaxis.axisTicks.height-2:0),text:h.text,textAnchor:"middle",fontWeight:h.isBold?600:i.config.xaxis.labels.style.fontWeight,fontSize:e.xaxisFontSize,fontFamily:e.xaxisFontFamily,foreColor:Array.isArray(e.xaxisForeColors)?i.config.xaxis.convertedCatToNumeric?e.xaxisForeColors[i.globals.minX+s-1]:e.xaxisForeColors[s]:e.xaxisForeColors,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+i.config.xaxis.labels.style.cssClass});n.add(u);var p=document.createElementNS(i.globals.SVGNS,"title");p.textContent=Array.isArray(h.text)?h.text.join(" "):h.text,u.node.appendChild(p),""!==h.text&&(e.drawnLabels.push(h.text),e.drawnLabelsRects.push(h))}r+=t},u=0;u<=c-1;u++)d(u);if(void 0!==i.config.xaxis.title.text){var p=a.group({class:"apexcharts-xaxis-title"}),g=a.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+i.globals.xAxisLabelsHeight+i.config.xaxis.title.offsetY,text:i.config.xaxis.title.text,textAnchor:"middle",fontSize:i.config.xaxis.title.style.fontSize,fontFamily:i.config.xaxis.title.style.fontFamily,fontWeight:i.config.xaxis.title.style.fontWeight,foreColor:i.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+i.config.xaxis.title.style.cssClass});p.add(g),s.add(p)}if(i.config.xaxis.axisBorder.show){var f=i.globals.barPadForNumericAxis,x=a.drawLine(i.globals.padHorizontal+i.config.xaxis.axisBorder.offsetX-f,this.offY,this.xaxisBorderWidth+f,this.offY,i.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);s.add(x)}return s}},{key:"drawXaxisInversed",value:function(t){var e,i,a=this,s=this.w,n=new w(this.ctx),r=s.config.yaxis[0].opposite?s.globals.translateYAxisX[t]:0,o=n.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),l=n.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+r+", 0)"});o.add(l);var c=[];if(s.config.yaxis[t].show)for(var h=0;h<this.xaxisLabels.length;h++)c.push(this.xaxisLabels[h]);e=s.globals.gridHeight/c.length,i=-e/2.2;var d=s.globals.yLabelFormatters[0],u=s.config.yaxis[0].labels;if(u.show)for(var p=function(r){var o=void 0===c[r]?"":c[r];o=d(o,{seriesIndex:t,dataPointIndex:r,w:s});var h=a.axesUtils.getYAxisForeColor(u.style.colors,t),p=0;Array.isArray(o)&&(p=o.length/2*parseInt(u.style.fontSize,10));var g=n.drawText({x:u.offsetX-15,y:i+e+u.offsetY-p,text:o,textAnchor:a.yaxis.opposite?"start":"end",foreColor:Array.isArray(h)?h[r]:h,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass});l.add(g);var f=document.createElementNS(s.globals.SVGNS,"title");if(f.textContent=Array.isArray(o)?o.join(" "):o,g.node.appendChild(f),0!==s.config.yaxis[t].labels.rotate){var x=n.rotateAroundCenter(g.node);g.node.setAttribute("transform","rotate(".concat(s.config.yaxis[t].labels.rotate," 0 ").concat(x.y,")"))}i+=e},g=0;g<=c.length-1;g++)p(g);if(void 0!==s.config.yaxis[0].title.text){var f=n.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+r+", 0)"}),x=n.drawText({x:0,y:s.globals.gridHeight/2,text:s.config.yaxis[0].title.text,textAnchor:"middle",foreColor:s.config.yaxis[0].title.style.color,fontSize:s.config.yaxis[0].title.style.fontSize,fontWeight:s.config.yaxis[0].title.style.fontWeight,fontFamily:s.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+s.config.yaxis[0].title.style.cssClass});f.add(x),o.add(f)}var m=0;this.isCategoryBarHorizontal&&s.config.yaxis[0].opposite&&(m=s.globals.gridWidth);var b=s.config.xaxis.axisBorder;if(b.show){var v=n.drawLine(s.globals.padHorizontal+b.offsetX+m,1+b.offsetY,s.globals.padHorizontal+b.offsetX+m,s.globals.gridHeight+b.offsetY,b.color,0);o.add(v)}return s.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(m,c.length,s.config.yaxis[0].axisBorder,s.config.yaxis[0].axisTicks,0,e,o),o}},{key:"drawXaxisTicks",value:function(t,e){var i=this.w,a=t;if(!(t<0||t-2>i.globals.gridWidth)){var s=this.offY+i.config.xaxis.axisTicks.offsetY,n=s+i.config.xaxis.axisTicks.height;if("top"===i.config.xaxis.position&&(n=s-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var r=new w(this.ctx).drawLine(t+i.config.xaxis.axisTicks.offsetX,s+i.config.xaxis.offsetY,a+i.config.xaxis.axisTicks.offsetX,n+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);e.add(r),r.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var s=0;s<i;s++)a=this.xaxisLabels[s].position,e.push(a);else for(var n=i,r=0;r<n;r++){var o=n;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&(o-=1),a+=t.globals.gridWidth/o,e.push(a)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new w(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var r=0;r<a.length;r++){var o=e.rotateAroundCenter(a[r]);o.y=o.y-1,o.x=o.x+1,a[r].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),a[r].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=a[r].childNodes;t.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(i){e.placeTextWithEllipsis(i,i.textContent,t.globals.xAxisLabelsHeight-("bottom"===t.config.legend.position?20:10))}))}else!function(){for(var i=t.globals.gridWidth/(t.globals.labels.length+1),s=0;s<a.length;s++){var n=a[s].childNodes;t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&Array.prototype.forEach.call(n,(function(t){e.placeTextWithEllipsis(t,t.textContent,i)}))}}();if(s.length>0){var c=s[s.length-1].getBBox(),h=s[0].getBBox();c.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),h.x+h.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var d=0;d<n.length;d++)e.placeTextWithEllipsis(n[d],n[d].textContent,t.config.yaxis[0].labels.maxWidth-2*parseFloat(t.config.yaxis[0].title.style.fontSize)-20)}}}]),t}(),Z=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new G(e),this.isTimelineBar="datetime"===i.config.xaxis.type&&i.globals.seriesRangeBarTimeline.length,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return l(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new w(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),s=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(s),t.add(a),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new w(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var s=0;t.config.stroke.width.forEach((function(t){s=Math.max(s,t)})),a=s}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var n=t.config.chart.type,r=0,o=0;("bar"===n||"rangeBar"===n||"candlestick"===n||"boxPlot"===n||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(r=t.config.grid.padding.left,o=t.config.grid.padding.right,e.barPadForNumericAxis>r&&(r=e.barPadForNumericAxis,o=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a/2-r-2,-a/2,e.gridWidth+a+o+r+4,e.gridHeight+a,0,"#fff"),new S(this).getLargestMarkerSize();var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var c=e.dom.baseEl.querySelector("defs");c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elForecastMask),c.appendChild(e.dom.elNonForecastMask),c.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,n=t.y2,r=t.xCount,o=t.parent,l=this.w;0===e&&l.globals.skipFirstTimelinelabel||e===r-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type||(l.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:a,x2:s,y2:n,parent:o}),new q(this.ctx).drawXaxisTicks(i,this.elg))}},{key:"_drawGridLine",value:function(t){var e=t.x1,i=t.y1,a=t.x2,s=t.y2,n=t.parent,r=this.w,o=n.node.classList.contains("apexcharts-gridlines-horizontal"),l=r.config.grid.strokeDashArray,c=r.globals.barPadForNumericAxis,h=new w(this).drawLine(e-(o?c:0),i,a+(o?c:0),s,r.config.grid.borderColor,l);h.node.classList.add("apexcharts-gridline"),n.add(h)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,a=t.y1,s=t.x2,n=t.y2,r=t.type,o=this.w,l=new w(this.ctx),c=o.globals.barPadForNumericAxis;if("column"!==r||"datetime"!==o.config.xaxis.type){var h=o.config.grid[r].colors[e],d=l.drawRect(i-("row"===r?c:0),a,s+("row"===r?2*c:0),n,0,h,o.config.grid[r].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(r))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,a=t.tickAmount,s=this.w;if(s.config.grid.xaxis.lines.show||s.config.xaxis.axisTicks.show){var n,r=s.globals.padHorizontal,o=s.globals.gridHeight;s.globals.timescaleLabels.length?function(t){for(var a=t.xC,s=t.x1,n=t.y1,r=t.x2,o=t.y2,l=0;l<a;l++)s=e.xaxisLabels[l].position,r=e.xaxisLabels[l].position,e._drawGridLines({i:l,x1:s,y1:n,x2:r,y2:o,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:r,y1:0,x2:n,y2:o}):(s.globals.isXNumeric&&(i=s.globals.xAxisScale.result.length),s.config.xaxis.convertedCatToNumeric&&(i=s.globals.xaxisLabelsCount),function(t){var a=t.xC,n=t.x1,r=t.y1,o=t.x2,l=t.y2;if(void 0!==s.config.xaxis.tickAmount&&"dataPoints"!==s.config.xaxis.tickAmount)s.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach((function(t,a){var s=t.getBBox();e._drawGridLines({i:a,x1:s.x+s.width/2,y1:r,x2:s.x+s.width/2,y2:l,xCount:i,parent:e.elgridLinesV})}));else for(var c=0;c<a+(s.globals.isXNumeric?0:1);c++)0===c&&1===a&&1===s.globals.dataPoints&&(o=n=s.globals.gridWidth/2),e._drawGridLines({i:c,x1:n,y1:r,x2:o,y2:l,xCount:i,parent:e.elgridLinesV}),o=n+=s.globals.gridWidth/(s.globals.isXNumeric?a-1:a)}({xC:i,x1:r,y1:0,x2:n,y2:o}))}if(s.config.grid.yaxis.lines.show){var l=0,c=0,h=s.globals.gridWidth,d=a+1;this.isTimelineBar&&(d=s.globals.labels.length);for(var u=0;u<d+(this.isTimelineBar?1:0);u++)this._drawGridLine({x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=s.globals.gridHeight/(this.isTimelineBar?d:a)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var a,s=i.globals.padHorizontal,n=i.globals.gridHeight,r=0;r<e+1;r++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:s,y1:0,x2:a,y2:n,parent:this.elgridLinesV}),new q(this.ctx).drawXaxisTicks(s,this.elg),a=s=s+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var o=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)this._drawGridLine({x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=new w(this.ctx);this.elg=e.group({class:"apexcharts-grid"}),this.elgridLinesH=e.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=e.group({class:"apexcharts-gridlines-vertical"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide());for(var i,a=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,s=0;s<t.globals.series.length&&(void 0!==t.globals.yAxisScale[s]&&(a=t.globals.yAxisScale[s].result.length-1),!(a>2));s++);return!t.globals.isBarHorizontal||this.isTimelineBar?(i=this.xaxisLabels.length,this.isTimelineBar&&(a=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:a})):(i=a,a=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a})),this.drawGridBands(i,a),{el:this.elg,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/e,n=i.globals.gridWidth,r=0,o=0;r<e;r++,o++)o>=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:a,x2:n,y2:s,type:"row"}),a+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,c=i.globals.padHorizontal,h=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,u=0,p=0;u<t;u++,p++)p>=i.config.grid.column.colors.length&&(p=0),this._drawGridBandRect({c:p,x1:c,y1:0,x2:h,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),t}(),$=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,n=this.w,r=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,a,r))&&(i=n.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!b.isNumber(t)&&!b.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE){t=0,e=i;var o=this.linearScale(t,e,i);return o}t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var l=[];r<1&&s&&("candlestick"===n.config.chart.type||"candlestick"===n.config.series[a].type||"boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[a].type||n.globals.isRangeData)&&(e*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var h=r/c,d=Math.floor(b.log10(h)),u=Math.pow(10,d),p=Math.round(h/u);p<1&&(p=1);var g=p*u,f=g*Math.floor(t/g),x=g*Math.ceil(e/g),m=f;if(s&&r>2){for(;l.push(m),!((m+=g)>x););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var v=t;(l=[]).push(v);for(var y=Math.abs(e-t)/i,w=0;w<=i;w++)v+=y,l.push(v);return l[l.length-2]>=e&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=arguments.length>3?arguments[3]:void 0,s=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,a,s))&&(i=this.w.globals.dataPoints-1);var n=s/i;i===Number.MAX_VALUE&&(i=10,n=1);for(var r=[],o=t;i>=0;)r.push(o),o+=n,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(t){for(var e=[],i=Math.ceil(Math.log10(t))+1,a=0;a<i;a++)e.push(Math.pow(10,a));return{result:e,niceMin:e[0],niceMax:e[e.length-1]}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var a=t;if(void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){var s=this.w.config.yaxis[e].labels.formatter(1);b.isNumber(Number(s))&&!b.isFloat(s)&&(a=Math.ceil(i))}return a<t?a:t}},{key:"setYScaleForIndex",value:function(t,e,i){var a=this.w.globals,s=this.w.config,n=a.isBarHorizontal?s.xaxis:s.yaxis[t];void 0===a.yAxisScale[t]&&(a.yAxisScale[t]=[]);var r=Math.abs(i-e);if(n.logarithmic&&r<=5&&(a.invalidLogScale=!0),n.logarithmic&&r>5)a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(i);else if(i!==-Number.MAX_VALUE&&b.isNumber(i))if(a.allSeriesCollapsed=!1,void 0===n.min&&void 0===n.max||n.forceNiceScale){var o=void 0===s.yaxis[t].max&&void 0===s.yaxis[t].min||s.yaxis[t].forceNiceScale;a.yAxisScale[t]=this.niceScale(e,i,n.tickAmount?n.tickAmount:r<5&&r>1?r+1:5,t,o)}else a.yAxisScale[t]=this.linearScale(e,i,n.tickAmount,t);else a.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,s=i.config.xaxis,n=Math.abs(e-t);return e!==-Number.MAX_VALUE&&b.isNumber(e)?a.xAxisScale=this.linearScale(t,e,s.tickAmount?s.tickAmount:n<5&&n>1?n+1:5,0):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,a=e.minYArr.concat([]),s=e.maxYArr.concat([]),n=[];i.yaxis.forEach((function(e,r){var o=r;i.series.forEach((function(t,i){t.name===e.seriesName&&(o=i,r!==i?n.push({index:i,similarIndex:r,alreadyExists:!0}):n.push({index:i}))}));var l=a[o],c=s[o];t.setYScaleForIndex(r,l,c)})),this.sameScaleInMultipleAxes(a,s,n)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var a=this,s=this.w.config,n=this.w.globals,r=[];i.forEach((function(t){t.alreadyExists&&(void 0===r[t.index]&&(r[t.index]=[]),r[t.index].push(t.index),r[t.index].push(t.similarIndex))})),n.yAxisSameScaleIndices=r,r.forEach((function(t,e){r.forEach((function(i,a){var s,n;e!==a&&(s=t,n=i,s.filter((function(t){return-1!==n.indexOf(t)}))).length>0&&(r[e]=r[e].concat(r[a]))}))}));var o=r.map((function(t){return t.filter((function(e,i){return t.indexOf(e)===i}))})).map((function(t){return t.sort()}));r=r.filter((function(t){return!!t}));var l=o.slice(),c=l.map((function(t){return JSON.stringify(t)}));l=l.filter((function(t,e){return c.indexOf(JSON.stringify(t))===e}));var h=[],d=[];t.forEach((function(t,i){l.forEach((function(a,s){a.indexOf(i)>-1&&(void 0===h[s]&&(h[s]=[],d[s]=[]),h[s].push({key:i,value:t}),d[s].push({key:i,value:e[i]}))}))}));var u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);h.forEach((function(t,e){t.forEach((function(t,i){u[e]=Math.min(t.value,u[e])}))})),d.forEach((function(t,e){t.forEach((function(t,i){p[e]=Math.max(t.value,p[e])}))})),t.forEach((function(t,e){d.forEach((function(t,i){var r=u[i],o=p[i];s.chart.stacked&&(o=0,t.forEach((function(t,e){t.value!==-Number.MAX_VALUE&&(o+=t.value),r!==Number.MIN_VALUE&&(r+=h[i][e].value)}))),t.forEach((function(i,l){t[l].key===e&&(void 0!==s.yaxis[e].min&&(r="function"==typeof s.yaxis[e].min?s.yaxis[e].min(n.minY):s.yaxis[e].min),void 0!==s.yaxis[e].max&&(o="function"==typeof s.yaxis[e].max?s.yaxis[e].max(n.maxY):s.yaxis[e].max),a.setYScaleForIndex(e,r,o))}))}))}))}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var a=t.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),e;var s=a.globals.seriesX[0],n=a.config.chart.stacked;return e.forEach((function(t,r){for(var o=0,l=0;l<s.length;l++)if(s[l]>=i.xaxis.min){o=l;break}var c,h,d=a.globals.minYArr[r],u=a.globals.maxYArr[r],p=a.globals.stackedSeriesTotals;a.globals.series.forEach((function(r,l){var g=r[o];n?(g=p[o],c=h=g,p.forEach((function(t,e){s[e]<=i.xaxis.max&&s[e]>=i.xaxis.min&&(t>h&&null!==t&&(h=t),r[e]<c&&null!==r[e]&&(c=r[e]))}))):(c=h=g,r.forEach((function(t,e){if(s[e]<=i.xaxis.max&&s[e]>=i.xaxis.min){var n=t,r=t;a.globals.series.forEach((function(i,a){null!==t&&(n=Math.min(i[e],n),r=Math.max(i[e],r))})),r>h&&null!==r&&(h=r),n<c&&null!==n&&(c=n)}}))),void 0===c&&void 0===h&&(c=d,h=u),(h*=h<0?.9:1.1)<0&&h<u&&(h=u),(c*=c<0?1.1:.9)<0&&c>d&&(c=d),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?h:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?h:t.max)}))})),e}}]),t}(),J=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.scales=new $(e)}return l(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w.config,n=this.w.globals,r=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===a&&(a=t+1);var l=n.series,c=l,h=l;"candlestick"===s.chart.type?(c=n.seriesCandleL,h=n.seriesCandleH):"boxPlot"===s.chart.type?(c=n.seriesCandleO,h=n.seriesCandleC):n.isRangeData&&(c=n.seriesRangeStart,h=n.seriesRangeEnd);for(var d=t;d<a;d++){n.dataPoints=Math.max(n.dataPoints,l[d].length);for(var u=0;u<n.series[d].length;u++){var p=l[d][u];null!==p&&b.isNumber(p)?(void 0!==h[d][u]&&(r=Math.max(r,h[d][u])),void 0!==c[d][u]&&(e=Math.min(e,c[d][u]),i=Math.max(i,c[d][u])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||(void 0!==n.seriesCandleC[d][u]&&(r=Math.max(r,n.seriesCandleO[d][u]),r=Math.max(r,n.seriesCandleH[d][u]),r=Math.max(r,n.seriesCandleL[d][u]),r=Math.max(r,n.seriesCandleC[d][u]),"boxPlot"===this.w.config.chart.type&&(r=Math.max(r,n.seriesCandleM[d][u]))),!s.series[d].type||"candlestick"===s.series[d].type&&"boxPlot"===s.series[d].type||(r=Math.max(r,n.series[d][u]),e=Math.min(e,n.series[d][u])),i=r),n.seriesGoals[d]&&n.seriesGoals[d][u]&&Array.isArray(n.seriesGoals[d][u])&&n.seriesGoals[d][u].forEach((function(t){o!==Number.MIN_VALUE&&(o=Math.min(o,t.value),e=o),r=Math.max(r,t.value),i=r})),b.isFloat(p)&&(p=b.noExponents(p),n.yValueDecimal=Math.max(n.yValueDecimal,p.toString().split(".")[1].length)),o>c[d][u]&&c[d][u]<0&&(o=c[d][u])):n.hasNullValues=!0}}return"rangeBar"===s.chart.type&&n.seriesRangeStart.length&&n.isBarHorizontal&&"datetime"===s.xaxis.type&&(o=e),"bar"===s.chart.type&&(o<0&&r<0&&(r=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:r,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var a=0;a<t.series.length;a++){var s=this.getMinYMaxY(a,i,null,a+1);t.minYArr.push(s.minY),t.maxYArr.push(s.maxY),i=s.lowestY}var n=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=n.minY,t.maxY=n.maxY,i=n.lowestY,e.chart.stacked&&this._setStackedMinMax(),("line"===e.chart.type||"area"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var r=t.maxY-i;(i>=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(r=0),t.minY=i-5*r/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*r/100}return e.yaxis.forEach((function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])})),t.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])})),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach((function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax}))):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;e<t.series.length;e++)if(t.labels[e])for(var i=0;i<t.labels[e].length;i++)null!==t.labels[e][i]&&b.isNumber(t.labels[e][i])&&(t.maxX=Math.max(t.maxX,t.labels[e][i]),t.initialMaxX=Math.max(t.maxX,t.labels[e][i]),t.minX=Math.min(t.minX,t.labels[e][i]),t.initialMinX=Math.min(t.minX,t.labels[e][i]))}(),t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var a;if(void 0===e.xaxis.tickAmount?(a=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(a=t.dataPoints-1),a>t.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var s=[],n=t.minX-1;n<t.maxX;n++)s.push(n+1);t.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(1,a,a),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&b.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new R(this.ctx);if("datetime"===e.xaxis.type){var a=i.getDate(t.minX);a.setUTCDate(a.getDate()-2),t.minX=new Date(a).getTime();var s=i.getDate(t.maxX);s.setUTCDate(s.getDate()+2),t.maxX=new Date(s).getTime()}else("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach((function(e,i){1===e.length&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var a=e.slice();a.sort((function(t,e){return t-e})),a.forEach((function(e,i){if(i>0){var s=e-a[i-1];s>0&&(t.minXDiff=Math.min(s,t.minXDiff))}})),1===t.dataPoints&&t.minXDiff===Number.MAX_VALUE&&(t.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var t=this.w.globals,e=[],i=[];if(t.series.length)for(var a=0;a<t.series[t.maxValsInArrayIndex].length;a++)for(var s=0,n=0,r=0;r<t.series.length;r++)null!==t.series[r][a]&&b.isNumber(t.series[r][a])&&(t.series[r][a]>0?s=s+parseFloat(t.series[r][a])+1e-4:n+=parseFloat(t.series[r][a])),r===t.series.length-1&&(e.push(s),i.push(n));for(var o=0;o<e.length;o++)t.maxY=Math.max(t.maxY,e[o]),t.minY=Math.min(t.minY,i[o])}}]),t}(),Q=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===i.config.xaxis.position&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new G(e)}return l(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new w(this.ctx),s=i.config.yaxis[t].labels.style,n=s.fontSize,r=s.fontFamily,o=s.fontWeight,l=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var c=a.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var h=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/h,u=i.globals.translateY,p=i.globals.yLabelFormatters[t],g=i.globals.yAxisScale[t].result.slice();g=this.axesUtils.checkForReversedLabels(t,g);var f="";if(i.config.yaxis[t].labels.show)for(var x=function(l){var x=g[l];x=p(x,l,i);var m=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(m*=-1);var b=e.axesUtils.getYAxisForeColor(s.colors,t),v=a.drawText({x:m,y:u+h/10+i.config.yaxis[t].labels.offsetY+1,text:x,textAnchor:i.config.yaxis[t].opposite?"start":"end",fontSize:n,fontFamily:r,fontWeight:o,foreColor:Array.isArray(b)?b[l]:b,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});l===h&&(f=v),c.add(v);var y=document.createElementNS(i.globals.SVGNS,"title");if(y.textContent=Array.isArray(x)?x.join(" "):x,v.node.appendChild(y),0!==i.config.yaxis[t].labels.rotate){var w=a.rotateAroundCenter(f.node),k=a.rotateAroundCenter(v.node);v.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(w.x," ").concat(k.y,")"))}u+=d},m=h;m>=0;m--)x(m);if(void 0!==i.config.yaxis[t].title.text){var b=a.group({class:"apexcharts-yaxis-title"}),v=0;i.config.yaxis[t].opposite&&(v=i.globals.translateYAxisX[t]);var y=a.drawText({x:v,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});b.add(y),l.add(b)}var k=i.config.yaxis[t].axisBorder,A=31+k.offsetX;if(i.config.yaxis[t].opposite&&(A=-31-k.offsetX),k.show){var S=a.drawLine(A,i.globals.translateY+k.offsetY-2,A,i.globals.gridHeight+i.globals.translateY+k.offsetY+2,k.color,0,k.width);l.add(S)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(A,h,k,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new w(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(s);var n=e.globals.yAxisScale[t].result.length-1,r=e.globals.gridWidth/n+.1,o=r+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),h=e.globals.timescaleLabels;h.length>0&&(this.xaxisLabels=h.slice(),n=(c=h.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var d=h.length;if(e.config.xaxis.labels.show)for(var u=d?0:n;d?u<d:u>=0;d?u++:u--){var p=c[u];p=l(p,u,e);var g=e.globals.gridWidth+e.globals.padHorizontal-(o-r+e.config.xaxis.labels.offsetX);if(h.length){var f=this.axesUtils.getLabel(c,h,g,u,this.drawnLabels,this.xaxisFontSize);g=f.x,p=f.text,this.drawnLabels.push(f.text),0===u&&e.globals.skipFirstTimelinelabel&&(p=""),u===c.length-1&&e.globals.skipLastTimelinelabel&&(p="")}var x=i.drawText({x:g,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:p,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});s.add(x),x.tspan(p);var m=document.createElementNS(e.globals.SVGNS,"title");m.textContent=p,x.node.appendChild(m),o+=r}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new w(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var s=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(s-=15);var n=i.drawLine(e.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);t.add(n)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new w(this.ctx);if(void 0!==e.config.xaxis.title.text){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,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});a.add(s),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new w(this.ctx),s={width:0,height:0},n={width:0,height:0},r=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==r&&(s=r.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==o&&(n=o.getBoundingClientRect()),null!==o){var l=this.xPaddingForYAxisTitle(t,s,n,e);o.setAttribute("x",l.xPos-(e?10:0))}if(null!==o){var c=a.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var s=this.w,n=0,r=0,o=10;return void 0===s.config.yaxis[t].title.text||t<0?{xPos:r,padd:0}:(a?(r=e.width+s.config.yaxis[t].title.offsetX+i.width/2+o/2,0===(n+=1)&&(r-=o/2)):(r=-1*e.width+s.config.yaxis[t].title.offsetX+o/2+i.width/2,s.globals.isBarHorizontal&&(o=25,r=-1*e.width-s.config.yaxis[t].title.offsetX-o)),{xPos:r,padd:o})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,s=0,n=18,r=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(o,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!o.show||o.floating||0===t[l].width,h=t[l].width+e[l].width;o.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=s-o.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+r,c||(r=r+h+20),i.globals.translateYAxisX[l]=s-o.labels.offsetX+20):(a=i.globals.translateX-n,c||(n=n+h+20),i.globals.translateYAxisX[l]=a+o.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=b.listToArray(e)).forEach((function(e,i){var a=t.config.yaxis[i];if(a&&void 0!==a.labels.align){var s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));n=b.listToArray(n);var r=s.getBoundingClientRect();"left"===a.labels.align?(n.forEach((function(t,e){t.setAttribute("text-anchor","start")})),a.opposite||s.setAttribute("transform","translate(-".concat(r.width,", 0)"))):"center"===a.labels.align?(n.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),s.setAttribute("transform","translate(".concat(r.width/2*(a.opposite?1:-1),", 0)"))):"right"===a.labels.align&&(n.forEach((function(t,e){t.setAttribute("text-anchor","end")})),a.opposite&&s.setAttribute("transform","translate(".concat(r.width,", 0)")))}}))}}]),t}(),K=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.documentEvent=b.bind(this.documentEvent,this)}return l(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var a=i.globals.events[t].indexOf(e);-1!==a&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],s=a.length,n=0;n<s;n++)a[n].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,a=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach((function(t){a.addEventListener(t,(function(t){var a=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(t,i,a):"mouseleave"===t.type||"touchleave"===t.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(t,i,a):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(t,i,a),i.ctx.events.fireEvent("click",[t,i,a]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(i){e.globals.dom.baseEl.addEventListener(i,t.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if("click"===t.type){var a=e.globals.dom.baseEl.querySelector(".apexcharts-menu");a&&a.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&a.classList.remove("apexcharts-menu-open")}e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}]),t}(),tt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter((function(e){return e.name===t}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=b.extend(P,i);this.w.globals.locale=a.options}}]),t}(),et=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"drawAxis",value:function(t,e){var i,a,s=this.w.globals,n=this.w.config,r=new q(this.ctx),o=new Q(this.ctx);s.axisCharts&&"radar"!==t&&(s.isBarHorizontal?(a=o.drawYaxisInversed(0),i=r.drawXaxisInversed(0),s.dom.elGraphical.add(i),s.dom.elGraphical.add(a)):(i=r.drawXaxis(),s.dom.elGraphical.add(i),n.yaxis.map((function(t,e){-1===s.ignoreYAxisIndexes.indexOf(e)&&(a=o.drawYaxis(e),s.dom.Paper.add(a))}))))}}]),t}(),it=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new w(this.ctx),i=new y(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,n=t.config.xaxis.crosshairs.fill.type,r=a.colorFrom,o=a.colorTo,l=a.opacityFrom,c=a.opacityTo,h=a.stops,d=s.enabled,u=s.left,p=s.top,g=s.blur,f=s.color,x=s.opacity,m=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===n&&(m=e.drawGradient("vertical",r,o,l,c,null,h,null));var v=e.drawRect();1===t.config.xaxis.crosshairs.width&&(v=e.drawLine());var k=t.globals.gridHeight;(!b.isNumber(k)||k<0)&&(k=0);var A=t.config.xaxis.crosshairs.width;(!b.isNumber(A)||A<0)&&(A=0),v.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:k,width:A,height:k,fill:m,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(v=i.dropShadow(v,{left:u,top:p,blur:g,color:f,opacity:x})),t.globals.dom.elGraphical.add(v)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new w(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var s=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(s)}var n=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(n)}}]),t}(),at=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(0!==a.responsive.length){var s=a.responsive.slice();s.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var n=new H({}),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s[0].breakpoint,r=window.innerWidth>0?window.innerWidth:screen.width;if(r>a){var o=S.extendArrayProps(n,i.globals.initialConfig,i);t=b.extend(o,t),t=b.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<s.length;l++)r<s[l].breakpoint&&(t=S.extendArrayProps(n,s[l].options,i),t=b.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var o=S.extendArrayProps(n,t,i);o=b.extend(i.config,o),r(o=b.extend(o,t))}else r({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new H(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),st=function(){function t(e){r(this,t),this.ctx=e,this.colors=[],this.w=e.w;var i=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===i.config.chart.type&&i.config.plotOptions.treemap.distributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.distributed,this.isBarDistributed=i.config.plotOptions.bar.distributed&&("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)}return l(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this,e=this.w,i=new b;if(e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode)),void 0===e.config.colors?e.globals.colors=this.predefined():(e.globals.colors=e.config.colors,Array.isArray(e.config.colors)&&e.config.colors.length>0&&"function"==typeof e.config.colors[0]&&(e.globals.colors=e.config.series.map((function(i,a){var s=e.config.colors[a];return s||(s=e.config.colors[0]),"function"==typeof s?(t.isColorFn=!0,s({value:e.globals.axisCharts?e.globals.series[a][0]?e.globals.series[a][0]:0:e.globals.series[a],seriesIndex:a,dataPointIndex:a,w:e})):s})))),e.globals.seriesColors.map((function(t,i){t&&(e.globals.colors[i]=t)})),e.config.theme.monochrome.enabled){var a=[],s=e.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(s=e.globals.series[0].length*e.globals.series.length);for(var n=e.config.theme.monochrome.color,r=1/(s/e.config.theme.monochrome.shadeIntensity),o=e.config.theme.monochrome.shadeTo,l=0,c=0;c<s;c++){var h=void 0;"dark"===o?(h=i.shadeColor(-1*l,n),l+=r):(h=i.shadeColor(l,n),l+=r),a.push(h)}e.globals.colors=a.slice()}var d=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),["fill","stroke"].forEach((function(i){void 0===e.config[i].colors?e.globals[i].colors=t.isColorFn?e.config.colors:d:e.globals[i].colors=e.config[i].colors.slice(),t.pushExtraColors(e.globals[i].colors)})),void 0===e.config.dataLabels.style.colors?e.globals.dataLabels.style.colors=d:e.globals.dataLabels.style.colors=e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50),void 0===e.config.plotOptions.radar.polygons.fill.colors?e.globals.radarPolygons.fill.colors=["dark"===e.config.theme.mode?"#424242":"none"]:e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20),void 0===e.config.markers.colors?e.globals.markers.colors=d:e.globals.markers.colors=e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=e||a.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===a.config.chart.type&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.length<s)for(var n=s-t.length,r=0;r<n;r++)t.push(t[r])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:"dark"===e?"palette4":"palette1",a=t.chart.foreColor?t.chart.foreColor:"dark"===e?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=a,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":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"];break;default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]}return this.colors}}]),t}(),nt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,a=e.globals.svgWidth/2,s=i.offsetY,n="middle";if("left"===i.align?(a=10,n="start"):"right"===i.align&&(a=e.globals.svgWidth-10,n="end"),a+=i.offsetX,s=s+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var r=new w(this.ctx).drawText({x:a,y:s,text:i.text,textAnchor:n,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});r.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(r)}}}]),t}(),rt=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return l(t,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,a=0,s="title"===t?e.config.title.floating:e.config.subtitle.floating,n=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==n&&!s){var r=n.getBoundingClientRect();i=r.width,a=e.globals.axisCharts?r.height+5:r.height}return{width:i,height:a}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend");t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},b.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var a=e.map((function(t,e){return Array.isArray(t)?t.length:1})),s=Math.max.apply(Math,x(a));i=e[a.indexOf(s)]}return i}}]),t}(),ot=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return l(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var s=e.globals.xLabelFormatter,n=b.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i);e.globals.isBarHorizontal&&(r=n=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var o=new V(this.dCtx.ctx),l=n;n=o.xLabelFormat(s,n,l,{i:void 0,dateFormatter:new R(this.dCtx.ctx).formatDate,w:e}),r=o.xLabelFormat(s,r,l,{i:void 0,dateFormatter:new R(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===n||""===String(n).trim())&&(r=n="1");var c=new w(this.dCtx.ctx),h=c.getTextRects(n,e.config.xaxis.labels.style.fontSize),d=h;if(n!==r&&(d=c.getTextRects(r,e.config.xaxis.labels.style.fontSize)),(t={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var u=function(t){return c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};h=u(n),n!==r&&(d=u(r)),t.height=(h.height>d.height?h.height:d.height)/1.5,t.width=h.width>d.width?h.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var a=new w(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(t){return t.value})),a=i.reduce((function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e}),0);return 1.05*(t=new w(this.dCtx.ctx).getTextRects(a,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,a=i.globals,s=i.config,n=s.xaxis.type,r=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,o){(function(t){return-1!==a.collapsedSeriesIndices.indexOf(t)})(o)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var o=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+r/1.75-e.dCtx.yAxisWidthRight,c=o.position-r/1.75+e.dCtx.yAxisWidthLeft,h="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>a.svgWidth-a.translateX-h&&(a.skipLastTimelinelabel=!0),c<-(t.show&&!t.floating||"bar"!==s.chart.type&&"candlestick"!==s.chart.type&&"rangeBar"!==s.chart.type&&"boxPlot"!==s.chart.type?10:r/1.75)&&(a.skipFirstTimelinelabel=!0)}else"datetime"===n?e.dCtx.gridPad.right<r&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):"datetime"!==n&&e.dCtx.gridPad.right<r/2-e.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!i.config.xaxis.labels.trim&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=r/2+1)}(t)};s.yaxis.forEach((function(t,i){o?(e.dCtx.gridPad.left<r&&(e.dCtx.xPadLeft=r/2+1),e.dCtx.xPadRight=r/2+1):l(t,i)}))}}]),t}(),lt=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return l(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],a=10,s=new G(this.dCtx.ctx);return e.config.yaxis.map((function(n,r){var o=e.globals.yAxisScale[r],l=0;if(!s.isYAxisHidden(r)&&n.labels.show&&void 0!==n.labels.minWidth&&(l=n.labels.minWidth),!s.isYAxisHidden(r)&&n.labels.show&&o.result.length){var c=e.globals.yLabelFormatters[r],h=o.niceMin===Number.MIN_VALUE?0:o.niceMin,d=String(h).length>String(o.niceMax).length?h:o.niceMax,u=c(d,{seriesIndex:r,dataPointIndex:-1,w:e}),p=u;if(void 0!==u&&0!==u.length||(u=d),e.globals.isBarHorizontal){a=0;var g=e.globals.labels.slice();u=c(u=b.getLargestStringFromArr(g),{seriesIndex:r,dataPointIndex:-1,w:e}),p=t.dCtx.dimHelpers.getLargestStringFromMultiArr(u,g)}var f=new w(t.dCtx.ctx),x="rotate(".concat(n.labels.rotate," 0 0)"),m=f.getTextRects(u,n.labels.style.fontSize,n.labels.style.fontFamily,x,!1),v=m;u!==p&&(v=f.getTextRects(p,n.labels.style.fontSize,n.labels.style.fontFamily,x,!1)),i.push({width:(l>v.width||l>m.width?l:v.width>m.width?v.width:m.width)+a,height:v.height>m.height?v.height:m.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map((function(e,a){if(e.show&&void 0!==e.title.text){var s=new w(t.dCtx.ctx),n="rotate(".concat(e.title.rotate," 0 0)"),r=s.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,n,!1);i.push({width:r.width,height:r.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,a=0,s=t.globals.yAxisScale.length>1?10:0,n=new G(this.dCtx.ctx),r=function(r,o){var l=t.config.yaxis[o].floating,c=0;r.width>0&&!l?(c=r.width+s,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(o)&&(c=c-r.width-s)):c=l||n.isYAxisHidden(o)?0:5,t.config.yaxis[o].opposite?a+=c:i+=c,e+=c};return t.globals.yLabelsCoords.map((function(t,e){r(t,e)})),t.globals.yTitleCoords.map((function(t,e){r(t,e)})),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,e}}]),t}(),ct=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return l(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},a=e.config.chart.type,s=0,n=i(a)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(n=e.globals.comboBarCount),e.globals.collapsedSeries.forEach((function(t){i(t.type)&&(n-=1)})),e.config.chart.stacked&&(n=1),(i(a)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&n>0){var r,o,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),r=l/t,e.globals.minXDiff&&e.globals.minXDiff/r>0&&(o=e.globals.minXDiff/r),o>t/2&&(o/=2),(s=o/n*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(n>1?1:1.5)+5,e.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==e.config[i].text?a+=e.config[i].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5})),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-n.height-a,i.translateY=i.translateY+s.height+n.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new G(this.dCtx.ctx);i.config.yaxis.map((function(s,n){-1!==i.globals.ignoreYAxisIndexes.indexOf(n)||s.floating||a.isYAxisHidden(n)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(e[n].width+t[n].width)-parseInt(i.config.yaxis[n].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),t}(),ht=function(){function t(e){r(this,t),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 rt(this),this.dimYAxis=new lt(this),this.dimXAxis=new ot(this),this.dimGrid=new ct(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return l(t,[{key:"plotCoords",value:function(){var t=this.w.globals;this.lgRect=this.dimHelpers.getLegendsRect(),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),t.gridHeight=t.gridHeight-this.gridPad.top-this.gridPad.bottom,t.gridWidth=t.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var e=this.dimGrid.gridPadForColumnsInNumericAxis(t.gridWidth);t.gridWidth=t.gridWidth-2*e,t.translateX=t.translateX+this.gridPad.left+this.xPadLeft+(e>0?e+4:0),t.translateY=t.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map((function(t,i){e.globals.yLabelsCoords.push({width:a[i].width,index:i}),e.globals.yTitleCoords.push({width:s[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),r=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,r),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var o=this.yAxisWidth,l=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===e.config.chart.type||this.isSparkline)&&(o=0,l=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(o=0,l=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);var h=function(){i.translateX=o,i.gridHeight=i.svgHeight-t.lgRect.height-l-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-o};switch("top"===e.config.xaxis.position&&(c=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=c,h();break;case"top":i.translateY=this.lgRect.height+c,h();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-o;break;case"right":i.translateY=c,i.translateX=o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-o-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new Q(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var s="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",n=i.plotOptions[s].offsetY,r=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=n,void(e.translateX=r+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=n-10,e.translateX=r+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+n+10,e.translateX=r+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-a,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=n,e.translateX=r+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=n,e.translateX=r+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e){var i=this.w;this.xAxisHeight=(t.height+e.height)*(i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO)+(i.globals.rotateXLabels?22:10),this.xAxisWidth=t.width,this.xAxisHeight-e.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 a=0,s=0;i.config.yaxis.forEach((function(t){a+=t.labels.minWidth,s+=t.labels.maxWidth})),this.yAxisWidth<a&&(this.yAxisWidth=a),this.yAxisWidth>s&&(this.yAxisWidth=s)}}]),t}(),dt=function(){function t(e){r(this,t),this.w=e.w,this.lgCtx=e}return l(t,[{key:"getLegendStyles",value:function(){var t=document.createElement("style");t.setAttribute("type","text/css");var e=document.createTextNode("\t\n \t\n .apexcharts-legend {\t\n display: flex;\t\n overflow: auto;\t\n padding: 0 10px;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\t\n flex-wrap: wrap\t\n }\t\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n flex-direction: column;\t\n bottom: 0;\t\n }\t\n .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 {\t\n justify-content: flex-start;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\t\n justify-content: center; \t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\t\n justify-content: flex-end;\t\n }\t\n .apexcharts-legend-series {\t\n cursor: pointer;\t\n line-height: normal;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\t\n display: flex;\t\n align-items: center;\t\n }\t\n .apexcharts-legend-text {\t\n position: relative;\t\n font-size: 14px;\t\n }\t\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n pointer-events: none;\t\n }\t\n .apexcharts-legend-marker {\t\n position: relative;\t\n display: inline-block;\t\n cursor: pointer;\t\n margin-right: 3px;\t\n border-style: solid;\n }\t\n \t\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n display: inline-block;\t\n }\t\n .apexcharts-legend-series.apexcharts-no-click {\t\n cursor: auto;\t\n }\t\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n display: none !important;\t\n }\t\n .apexcharts-inactive-legend {\t\n opacity: 0.45;\t\n }");return t.appendChild(e),t}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){var t=this.w.globals;t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject");var e=t.dom.elLegendForeign;e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",t.svgWidth),e.setAttribute("height",t.svgHeight),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.appendChild(t.dom.elLegendWrap),e.appendChild(this.getLegendStyles()),t.dom.Paper.node.insertBefore(e,t.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(t,e){var i=this,a=this.w;if(a.globals.axisCharts||"radialBar"===a.config.chart.type){a.globals.resized=!0;var s=null,n=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),n=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),n=parseInt(s.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,n)})):this.hideSeries({seriesEl:s,realIndex:n})}else{var r=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),o=a.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=a.config.plotOptions.pie.donut.labels;new w(this.lgCtx.ctx).pathMouseDown(r.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(r.members[0].node,l)}r.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,a=this.w,s=b.clone(a.config.series);if(a.globals.axisCharts){var n=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(n=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!n){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var r=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(r,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var o=e.childNodes,l=0;l<o.length;l++)o[l].classList.contains("apexcharts-series-markers-wrap")&&(o[l].classList.contains("apexcharts-hide")?o[l].classList.remove("apexcharts-hide"):o[l].classList.add("apexcharts-hide"));a.globals.allSeriesCollapsed=a.globals.collapsedSeries.length===a.config.series.length,s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var a=this.w,s=b.clone(a.config.series);if(t.length>0){for(var n=0;n<t.length;n++)t[n].index===i&&(a.globals.axisCharts?(s[i].data=t[n].data.slice(),t.splice(n,1),e.splice(n,1),a.globals.risingSeries.push(i)):(s[i]=t[n].data,t.splice(n,1),e.splice(n,1),a.globals.risingSeries.push(i)));s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach((function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a].data=[])})):t.forEach((function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a]=0)})),t}}]),t}(),ut=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new dt(this)}return l(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),b.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,s=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var n=e.config.plotOptions.heatmap.colorScale.ranges;a=n.map((function(t){return t.name?t.name:t.from+" - "+t.to})),s=n.map((function(t){return t.color}))}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var r=e.globals.legendFormatter,o=e.config.legend.inverseOrder,l=o?a.length-1:0;o?l>=0:l<=a.length-1;o?l--:l++){var c=r(a[l],{seriesIndex:l,w:e}),h=!1,d=!1;if(e.globals.collapsedSeries.length>0)for(var u=0;u<e.globals.collapsedSeries.length;u++)e.globals.collapsedSeries[u].index===l&&(h=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<e.globals.ancillaryCollapsedSeriesIndices.length;p++)e.globals.ancillaryCollapsedSeriesIndices[p]===l&&(d=!0);var g=document.createElement("span");g.classList.add("apexcharts-legend-marker");var f=e.config.legend.markers.offsetX,x=e.config.legend.markers.offsetY,m=e.config.legend.markers.height,v=e.config.legend.markers.width,y=e.config.legend.markers.strokeWidth,k=e.config.legend.markers.strokeColor,A=e.config.legend.markers.radius,C=g.style;C.background=s[l],C.color=s[l],C.setProperty("background",s[l],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[l]&&(C.background=e.config.legend.markers.fillColors[l]),void 0!==e.globals.seriesColors[l]&&(C.background=e.globals.seriesColors[l],C.color=e.globals.seriesColors[l]),C.height=Array.isArray(m)?parseFloat(m[l])+"px":parseFloat(m)+"px",C.width=Array.isArray(v)?parseFloat(v[l])+"px":parseFloat(v)+"px",C.left=(Array.isArray(f)?parseFloat(f[l]):parseFloat(f))+"px",C.top=(Array.isArray(x)?parseFloat(x[l]):parseFloat(x))+"px",C.borderWidth=Array.isArray(y)?y[l]:y,C.borderColor=Array.isArray(k)?k[l]:k,C.borderRadius=Array.isArray(A)?parseFloat(A[l])+"px":parseFloat(A)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[l]&&(g.innerHTML=e.config.legend.markers.customHTML[l]()):g.innerHTML=e.config.legend.markers.customHTML()),w.setAttrs(g,{rel:l+1,"data:collapsed":h||d}),(h||d)&&g.classList.add("apexcharts-inactive-legend");var L=document.createElement("div"),P=document.createElement("span");P.classList.add("apexcharts-legend-text"),P.innerHTML=Array.isArray(c)?c.join(" "):c;var T=e.config.legend.labels.useSeriesColors?e.globals.colors[l]:e.config.legend.labels.colors;T||(T=e.config.chart.foreColor),P.style.color=T,P.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",P.style.fontWeight=e.config.legend.fontWeight,P.style.fontFamily=i||e.config.chart.fontFamily,w.setAttrs(P,{rel:l+1,i:l,"data:default-text":encodeURIComponent(c),"data:collapsed":h||d}),L.appendChild(g),L.appendChild(P);var M=new S(this.ctx);e.config.legend.showForZeroSeries||0===M.getSeriesTotalByIndex(l)&&M.seriesHaveSameValues(l)&&!M.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&L.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||M.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&L.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(L),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),L.classList.add("apexcharts-legend-series"),L.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",w.setAttrs(L,{rel:l+1,seriesName:b.escapeString(a[l]),"data:collapsed":h||d}),(h||d)&&L.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||L.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,a=i.globals.dom.baseEl.querySelector(".apexcharts-legend"),s=a.getBoundingClientRect(),n=0,r=0;if("bottom"===i.config.legend.position)r+=i.globals.svgHeight-s.height/2;else if("top"===i.config.legend.position){var o=new ht(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;r=r+(l>0?l-10:0)+(c>0?c-10:0)}a.style.position="absolute",n=n+t+i.config.legend.offsetX,r=r+e+i.config.legend.offsetY,a.style.left=n+"px",a.style.top=r+"px","bottom"===i.config.legend.position?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(t){a.style[t]&&(a.style[t]=parseInt(i.config.legend[t],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new ht(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;"bottom"===t.config.legend.position?n=-e.clwh/1.8:"top"===t.config.legend.position&&(n=a.height+s.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new Y(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new Y(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,a="true"===t.target.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var n=this.w.config.legend.markers.onClick;"function"==typeof n&&t.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),t}(),pt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return l(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s<this.t.customIcons.length;s++)this.elCustomIcons.push(i());var n=[],r=function(i,a,s){var r=i.toLowerCase();t.t[r]&&e.config.chart.zoom.enabled&&n.push({el:a,icon:"string"==typeof t.t[r]?t.t[r]:s,title:t.localeValues[i],class:"apexcharts-".concat(r,"-icon")})};r("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <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"/>\n</svg>\n'),r("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <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"/>\n</svg>\n');var o=function(i){t.t[i]&&e.config.chart[i].enabled&&n.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <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"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <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"/>\n</svg>',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};o("zoom"),o("selection"),this.t.pan&&e.config.chart.zoom.enabled&&n.push({el:this.elPan,icon:"string"==typeof this.t.pan?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">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <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"/>\n</svg>',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),r("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&n.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?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 l=0;l<this.elCustomIcons.length;l++)n.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});n.forEach((function(t,e){t.index&&b.moveIndexInArray(n,e,t.index)}));for(var c=0;c<n.length;c++)w.setAttrs(n[c].el,{class:n[c].class,title:n[c].title}),n[c].el.innerHTML=n[c].icon,a.appendChild(n[c].el);this._createHamburgerMenu(a),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),w.setAttrs(this.elMenu,{class:"apexcharts-menu"});var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||e.splice(2,1);for(var i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,w.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=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(e){e.classList.contains("exportSVG")?e.addEventListener("click",t.handleDownload.bind(t,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",t.handleDownload.bind(t,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",t.handleDownload.bind(t,"csv"))}));for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls();var i="selection"===t?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,a="selection"===t?"selectionEnabled":"zoomEnabled";e.w.globals[a]=!e.w.globals[a],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,i="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(e){e&&e.classList.remove(t.selectedClass)}))}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,a=(this.maxX+e)/2,s=this._getNewMinXMaxX(i,a);t.globals.disableZoomIn||this.zoomUpdateOptions(s.minX,s.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!("datetime"===t.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),a=this.maxX-(e-this.maxX),s=this._getNewMinXMaxX(i,a);t.globals.disableZoomOut||this.zoomUpdateOptions(s.minX,s.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(void 0!==t||void 0!==e){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var a={min:t,max:e},s=this.getBeforeZoomRange(a);s&&(a=s.xaxis);var n={xaxis:a},r=b.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(r=new $(this.ctx).autoScaleY(this.ctx,r,{xaxis:a})),i.config.chart.group||(n.yaxis=r),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(n,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,r)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout((function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new U(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach((function(t){var e=t.w;if(e.globals.lastXAxis.min=void 0,e.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom){var i=e.config.chart.events.beforeResetZoom(t,e);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1;var a=t.ctx.series.emptyCollapsedSeries(b.clone(e.globals.initialSeries));t.updateHelpers._updateSeries(a,e.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}}]),t}(),gt=function(t){u(i,pt);var e=f(i);function i(t){var a;return r(this,i),(a=e.call(this,t)).ctx=t,a.w=t.w,a.dragged=!1,a.graphics=new w(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],a.clientX=0,a.clientY=0,a.startX=0,a.endX=0,a.dragX=0,a.startY=0,a.endY=0,a.dragY=0,a.moveDirection="none",a}return l(i,[{key:"init",value:function(t){var e=this,i=t.xyRatios,a=this.w,s=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=a.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),a.globals.dom.elGraphical.add(this.zoomRect),a.globals.dom.elGraphical.add(this.selectionRect),"x"===a.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:a.globals.gridWidth,maxY:a.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===a.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:a.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=a.globals.dom.baseEl.querySelector("".concat(a.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(t){e.hoverArea.addEventListener(t,s.svgMouseEvents.bind(s,i),{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(t,e){var i=this.w,a=this,s=this.ctx.toolbar,n=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,r=i.config.chart.toolbar.autoSelected;e.shiftKey?(this.shiftWasPressed=!0,s.enableZoomPanFromToolbar("pan"===r?"zoom":"pan")):this.shiftWasPressed&&(s.enableZoomPanFromToolbar(r),this.shiftWasPressed=!1);var o=e.target.classList;if(!(o.contains("apexcharts-selection-rect")||o.contains("apexcharts-legend-marker")||o.contains("apexcharts-legend-text")||e.target.parentNode.classList.contains("apexcharts-toolbar"))){if(a.clientX="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientX:"touchend"===e.type?e.changedTouches[0].clientX:e.clientX,a.clientY="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientY:"touchend"===e.type?e.changedTouches[0].clientY:e.clientY,"mousedown"===e.type&&1===e.which){var l=a.gridRect.getBoundingClientRect();a.startX=a.clientX-l.left,a.startY=a.clientY-l.top,a.dragged=!1,a.w.globals.mousedown=!0}if(("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(a.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,a.w.globals.mousedown&&a.panDragging({context:a,zoomtype:n,xyRatios:t})):(a.w.globals.mousedown&&i.globals.zoomEnabled||a.w.globals.mousedown&&i.globals.selectionEnabled)&&(a.selection=a.selectionDrawing({context:a,zoomtype:n}))),"mouseup"===e.type||"touchend"===e.type||"mouseleave"===e.type){var c=a.gridRect.getBoundingClientRect();a.w.globals.mousedown&&(a.endX=a.clientX-c.left,a.endY=a.clientY-c.top,a.dragX=Math.abs(a.endX-a.startX),a.dragY=Math.abs(a.endY-a.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&a.selectionDrawn({context:a,zoomtype:n}),i.globals.panEnabled&&i.config.xaxis.convertedCatToNumeric&&a.delayedPanScrolled()),i.globals.zoomEnabled&&a.hideSelectionRect(this.selectionRect),a.dragged=!1,a.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w;if(this.selectionRect){var e=this.selectionRect.node.getBoundingClientRect();e.width>0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,a={x:i,y:0,width:t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(a),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,a=t.width,s=t.height,n=t.translateX,r=void 0===n?0:n,o=t.translateY,l=void 0===o?0:o,c=this.w,h=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var u={transform:"translate("+r+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(a<0&&(a=1),h.attr({x:e,y:i,width:a,height:s,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),w.setAttrs(h.node,u)),c.globals.selectionEnabled&&(d.attr({x:e,y:i,width:a>0?a:0,height:s>0?s:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),w.setAttrs(d.node,u))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e,i=t.context,a=t.zoomtype,s=this.w,n=i,r=this.gridRect.getBoundingClientRect(),o=n.startX-1,l=n.startY,c=!1,h=!1,d=n.clientX-r.left-o,u=n.clientY-r.top-l;return Math.abs(d+o)>s.globals.gridWidth?d=s.globals.gridWidth-o:n.clientX-r.left<0&&(d=o),o>n.clientX-r.left&&(c=!0,d=Math.abs(d)),l>n.clientY-r.top&&(h=!0,u=Math.abs(u)),e="x"===a?{x:c?o-d:o,y:0,width:d,height:s.globals.gridHeight}:"y"===a?{x:0,y:h?l-u:l,width:s.globals.gridWidth,height:u}:{x:c?o-d:o,y:h?l-u:l,width:d,height:u},n.drawSelectionRect(e),n.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,a=this.w,s=this.xyRatios,n=this.selectionRect,r=0;"resizing"===t&&(r=30);var o=function(t){return parseFloat(n.node.getAttribute(t))},l={x:o("x"),y:o("y"),width:o("width"),height:o("height")};a.globals.selection=l,"function"==typeof a.config.chart.events.selection&&a.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var t=i.gridRect.getBoundingClientRect(),e=n.node.getBoundingClientRect(),r={xaxis:{min:a.globals.xAxisScale.niceMin+(e.left-t.left)*s.xRatio,max:a.globals.xAxisScale.niceMin+(e.right-t.left)*s.xRatio},yaxis:{min:a.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*s.yRatio[0],max:a.globals.yAxisScale[0].niceMax-(e.top-t.top)*s.yRatio[0]}};a.config.chart.events.selection(i.ctx,r),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(i.ctx,r)}),r))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,n=this.xyRatios,r=this.ctx.toolbar;if(s.startX>s.endX){var o=s.startX;s.startX=s.endX,s.endX=o}if(s.startY>s.endY){var l=s.startY;s.startY=s.endY,s.endY=l}var c=void 0,h=void 0;a.globals.isTimelineBar?(c=a.globals.yAxisScale[0].niceMin+s.startX*n.invertedYRatio,h=a.globals.yAxisScale[0].niceMin+s.endX*n.invertedYRatio):(c=a.globals.xAxisScale.niceMin+s.startX*n.xRatio,h=a.globals.xAxisScale.niceMin+s.endX*n.xRatio);var d=[],u=[];if(a.config.yaxis.forEach((function(t,e){d.push(a.globals.yAxisScale[e].niceMax-n.yRatio[e]*s.startY),u.push(a.globals.yAxisScale[e].niceMax-n.yRatio[e]*s.endY)})),s.dragged&&(s.dragX>10||s.dragY>10)&&c!==h)if(a.globals.zoomEnabled){var p=b.clone(a.globals.initialConfig.yaxis),g=b.clone(a.globals.initialConfig.xaxis);if(a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),h=Math.floor(h),c<1&&(c=1,h=a.globals.dataPoints),h-c<2&&(h=c+1)),"xy"!==i&&"x"!==i||(g={min:c,max:h}),"xy"!==i&&"y"!==i||p.forEach((function(t,e){p[e].min=u[e],p[e].max=d[e]})),a.config.chart.zoom.autoScaleYaxis){var f=new $(s.ctx);p=f.autoScaleY(s.ctx,p,{xaxis:g})}if(r){var x=r.getBeforeZoomRange(g,p);x&&(g=x.xaxis?x.xaxis:g,p=x.yaxis?x.yaxis:p)}var m={xaxis:g};a.config.chart.group||(m.yaxis=p),s.ctx.updateHelpers._updateOptions(m,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&r.zoomCallback(g,p)}else if(a.globals.selectionEnabled){var v,y=null;v={min:c,max:h},"xy"!==i&&"y"!==i||(y=b.clone(a.config.yaxis)).forEach((function(t,e){y[e].min=u[e],y[e].max=d[e]})),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(s.ctx,{xaxis:v,yaxis:y})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,a=e;if(void 0!==i.globals.lastClientPosition.x){var s=i.globals.lastClientPosition.x-a.clientX,n=i.globals.lastClientPosition.y-a.clientY;Math.abs(s)>Math.abs(n)&&s>0?this.moveDirection="left":Math.abs(s)>Math.abs(n)&&s<0?this.moveDirection="right":Math.abs(n)>Math.abs(s)&&n>0?this.moveDirection="up":Math.abs(n)>Math.abs(s)&&n<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:a.clientX,y:a.clientY};var r=i.globals.isTimelineBar?i.globals.minY:i.globals.minX,o=i.globals.isTimelineBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||a.panScrolled(r,o)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,a=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+a,i=t.globals.maxX+a):"right"===this.moveDirection&&(e=t.globals.minX-a,i=t.globals.maxX-a),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,a=this.xyRatios,s=b.clone(i.globals.initialConfig.yaxis),n=a.xRatio,r=i.globals.minX,o=i.globals.maxX;i.globals.isTimelineBar&&(n=a.invertedYRatio,r=i.globals.minY,o=i.globals.maxY),"left"===this.moveDirection?(t=r+i.globals.gridWidth/15*n,e=o+i.globals.gridWidth/15*n):"right"===this.moveDirection&&(t=r-i.globals.gridWidth/15*n,e=o-i.globals.gridWidth/15*n),i.globals.isTimelineBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=r,e=o);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(s=new $(this.ctx).autoScaleY(this.ctx,s,{xaxis:l}));var c={xaxis:{min:t,max:e}};i.config.chart.group||(c.yaxis=s),this.updateScrolledChart(c,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var a=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(),ft=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return l(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,s=t.clientY,n=this.w,r=n.globals.gridWidth,o=n.globals.gridHeight,l=r/(n.globals.dataPoints-1),c=o/n.globals.dataPoints,h=i.getBoundingClientRect(),d=this.hasBars();!n.globals.comboCharts&&!d||n.config.xaxis.convertedCatToNumeric||(l=r/n.globals.dataPoints);var u=a-h.left-n.globals.barPadForNumericAxis,p=s-h.top;u<0||p<0||u>n.globals.gridWidth||p>n.globals.gridHeight?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):n.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):n.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var g=Math.round(u/l),f=Math.floor(p/c);d&&!n.config.xaxis.convertedCatToNumeric&&(g=Math.ceil(u/l),g-=1);for(var x,m=null,v=null,y=[],w=0;w<n.globals.seriesXvalues.length;w++)y.push([n.globals.seriesXvalues[w][0]-1e-6].concat(n.globals.seriesXvalues[w]));return y=y.map((function(t){return t.filter((function(t){return t}))})),x=n.globals.seriesYvalues.map((function(t){return t.filter((function(t){return b.isNumber(t)}))})),n.globals.isXNumeric&&(m=(v=this.closestInMultiArray(u,p,y,x)).index,g=v.j,null!==m&&(y=n.globals.seriesXvalues[m],g=(v=this.closestInArray(u,y)).index)),n.globals.capturedSeriesIndex=null===m?-1:m,(!g||g<1)&&(g=0),n.globals.isBarHorizontal?n.globals.capturedDataPointIndex=f:n.globals.capturedDataPointIndex=g,{capturedSeries:m,j:n.globals.isBarHorizontal?f:g,hoverX:u,hoverY:p}}},{key:"closestInMultiArray",value:function(t,e,i,a){var s=this.w,n=0,r=null,o=-1;s.globals.series.length>1?n=this.getFirstActiveXArray(i):r=0;var l=a[n][0],c=i[n][0],h=Math.abs(t-c),d=Math.abs(e-l),u=d+h;return a.map((function(s,n){s.map((function(s,l){var c=Math.abs(e-a[n][l]),p=Math.abs(t-i[n][l]),g=p+c;g<u&&(u=g,h=p,d=c,r=n,o=l)}))})),{index:r,j:o}}},{key:"getFirstActiveXArray",value:function(t){for(var e=0,i=t.map((function(t,e){return t.length>0?e:-1})),a=0;a<i.length;a++)if(-1!==i[a]){e=i[a];break}return e}},{key:"closestInArray",value:function(t,e){for(var i=e[0],a=null,s=Math.abs(t-i),n=0;n<e.length;n++){var r=Math.abs(t-e[n]);r<s&&(s=r,a=n)}return{index:a}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter((function(t){return void 0!==t[0]}));if(i.length>0)for(var a=0;a<i.length-1;a++)void 0!==i[a][t]&&void 0!==i[a+1][t]&&i[a][t]!==i[a+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return x(t).reduce((function(t,e){return t+e.getBBox().height}),0)}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=x(t)).sort((function(t,e){return Number(e.getAttribute("data:realIndex"))<Number(t.getAttribute("data:realIndex"))?0:-1}));var e=[];return t.forEach((function(t){e.push(t.querySelector(".apexcharts-marker"))})),e}},{key:"hasMarkers",value:function(){return this.getElMarkers().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(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s<a.length;s++)"enable"===t?(a[s].classList.add("apexcharts-active"),a[s].style.display=e.config.tooltip.items.display):(a[s].classList.remove("apexcharts-active"),a[s].style.display="none")}}]),t}(),xt=function(){function t(e){r(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new ft(e)}return l(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,a=t.ttItems,s=t.i,n=void 0===s?0:s,r=t.j,o=void 0===r?null:r,l=t.y1,c=t.y2,h=t.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:n,j:o,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i);var u=this.getValuesToPrint({i:n,j:o});this.printLabels({i:n,j:o,values:u,ttItems:a,shared:i,e:h});var p=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=p.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=p.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,a=t.i,s=t.j,n=t.values,r=t.ttItems,o=t.shared,l=t.e,c=this.w,h=[],u=function(t){return c.globals.seriesGoals[t]&&c.globals.seriesGoals[t][s]&&Array.isArray(c.globals.seriesGoals[t][s])},p=n.xVal,g=n.zVal,f=n.xAxisTTVal,x="",m=c.globals.colors[a];null!==s&&c.config.plotOptions.bar.distributed&&(m=c.globals.colors[s]);for(var b=function(t,n){var b=i.getFormatters(a);x=i.getSeriesName({fn:b.yLbTitleFormatter,index:a,seriesIndex:a,j:s}),"treemap"===c.config.chart.type&&(x=b.yLbTitleFormatter(String(c.config.series[a].data[s].x),{series:c.globals.series,seriesIndex:a,dataPointIndex:s,w:c}));var v=c.config.tooltip.inverseOrder?n:t;if(c.globals.axisCharts){var y=function(t){return b.yLbFormatter(c.globals.series[t][s],{series:c.globals.series,seriesIndex:t,dataPointIndex:s,w:c})};o?(b=i.getFormatters(v),x=i.getSeriesName({fn:b.yLbTitleFormatter,index:v,seriesIndex:a,j:s}),m=c.globals.colors[v],e=y(v),u(v)&&(h=c.globals.seriesGoals[v][s].map((function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:v,dataPointIndex:s,w:c})}})))):(l&&l.target&&l.target.getAttribute("fill")&&(m=l.target.getAttribute("fill")),e=y(a),u(a)&&Array.isArray(c.globals.seriesGoals[a][s])&&(h=c.globals.seriesGoals[a][s].map((function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:a,dataPointIndex:s,w:c})}}))))}null===s&&(e=b.yLbFormatter(c.globals.series[a],d(d({},c),{},{seriesIndex:a,dataPointIndex:a}))),i.DOMHandling({i:a,t:v,j:s,ttItems:r,values:{val:e,goalVals:h,xVal:p,xAxisTTVal:f,zVal:g},seriesName:x,shared:o,pColor:m})},v=0,y=c.globals.series.length-1;v<c.globals.series.length;v++,y--)b(v,y)}},{key:"getFormatters",value:function(t){var e,i=this.w,a=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(a=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(a=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,"function"!=typeof a&&(a=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(t){return t}),"function"!=typeof e&&(e=function(t){return t}),{yLbFormatter:a,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,a=t.seriesIndex,s=t.j,n=this.w;return e(String(n.globals.seriesNames[i]),{series:n.globals.series,seriesIndex:a,dataPointIndex:s,w:n})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,a=t.ttItems,s=t.values,n=t.seriesName,r=t.shared,o=t.pColor,l=this.w,c=this.ttCtx,h=s.val,d=s.goalVals,u=s.xVal,p=s.xAxisTTVal,g=s.zVal,f=null;f=a[e].children,l.config.tooltip.fillSeriesColor&&(a[e].style.backgroundColor=o,f[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.blxaxisTooltip&&(c.xaxisTooltipText.innerHTML=""!==p?p:u);var x=a[e].querySelector(".apexcharts-tooltip-text-y-label");x&&(x.innerHTML=n||"");var m=a[e].querySelector(".apexcharts-tooltip-text-y-value");m&&(m.innerHTML=void 0!==h?h:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[e]),f[0].style.backgroundColor=o),l.config.tooltip.marker.show||(f[0].style.display="none");var b=a[e].querySelector(".apexcharts-tooltip-text-goals-label"),v=a[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[e]){var y=function(){var t="<div >",e="<div>";d.forEach((function(i,a){t+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),e+="<div>".concat(i.val,"</div>")})),b.innerHTML=t+"</div>",v.innerHTML=e+"</div>"};r?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?y():(b.innerHTML="",v.innerHTML=""):y()}else b.innerHTML="",v.innerHTML="";null!==g&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==g?g:""),r&&f[0]&&(null==h||l.globals.collapsedSeriesIndices.indexOf(e)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,a=this.w,s=this.ctx.series.filteredSeriesX(),n="",r="",o=null,l=null,c={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},h=a.globals.ttZFormatter;null===i?l=a.globals.series[e]:a.globals.isXNumeric&&"treemap"!==a.config.chart.type?(n=s[e][i],0===s[e].length&&(n=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):n=void 0!==a.globals.labels[i]?a.globals.labels[i]:"";var d=n;return n=a.globals.isXNumeric&&"datetime"===a.config.xaxis.type?new V(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new R(this.ctx).formatDate,w:this.w}):a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](d,c):a.globals.xLabelFormatter(d,c),void 0!==a.config.tooltip.x.formatter&&(n=a.globals.ttKeyFormatter(d,c)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(o=h(a.globals.seriesZ[e][i],a)),r="function"==typeof a.config.xaxis.tooltip.formatter?a.globals.xaxisTooltipFormatter(d,c):n,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(r)?r.join(" "):r,zVal:o}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,a=t.y1,s=t.y2,n=t.w,r=this.ttCtx.getElTooltip(),o=n.config.tooltip.custom;Array.isArray(o)&&o[e]&&(o=o[e]),r.innerHTML=o({ctx:this.ctx,series:n.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:s,w:n})}}]),t}(),mt=function(){function t(e){r(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return l(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),n=t-i.xcrosshairsWidth/2,r=a.globals.labels.slice().length;if(null!==e&&(n=a.globals.gridWidth/r*e),null!==s&&(s.setAttribute("x",n),s.setAttribute("x1",n),s.setAttribute("x2",n),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),n<0&&(n=0),n>a.globals.gridWidth&&(n=a.globals.gridWidth),i.blxaxisTooltip){var o=n;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(o=n+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&w.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&w.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip){i.xaxisTooltip.classList.add("apexcharts-active");var a,s=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t))t+=e.globals.translateX,a=new w(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=s+"px"}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=e.globals.translateY+a,n=i.yaxisTTEls[t].getBoundingClientRect().height,r=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(r-=26),s-=n/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=s+"px",i.yaxisTTEls[t].style.left=r+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,n=s.getElTooltip(),r=s.tooltipRect,o=null!==i?parseFloat(i):1,l=parseFloat(t)+o+5,c=parseFloat(e)+o/2;if(l>a.globals.gridWidth/2&&(l=l-r.ttWidth-o-15),l>a.globals.gridWidth-r.ttWidth-10&&(l=a.globals.gridWidth-r.ttWidth),l<-20&&(l=-20),a.config.tooltip.followCursor){var h=s.getElGrid(),d=h.getBoundingClientRect();c=s.e.clientY+a.globals.translateY-d.top-r.ttHeight/2}else a.globals.isBarHorizontal?c-=r.ttHeight:(r.ttHeight/2+c>a.globals.gridHeight&&(c=a.globals.gridHeight-r.ttHeight+a.globals.translateY),c<0&&(c=0));isNaN(l)||(l+=a.globals.translateX,n.style.left=l+"px",n.style.top=c+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),n=0;n<s.length;n++)parseInt(s[n].getAttribute("rel"),10)===e&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(e,s[n]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,a,s=this.w,n=this.ttCtx,r=s.globals.pointsArray,o=n.tooltipUtil.getHoverMarkerSize(e),l=s.config.series[e].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=r[e][t][0],a=r[e][t][1]?r[e][t][1]:0;var c=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));c&&a<s.globals.gridHeight&&a>0&&(c.setAttribute("r",o),c.setAttribute("cx",i),c.setAttribute("cy",a)),this.moveXCrosshairs(i),n.fixedTooltip||this.moveTooltip(i,a,o)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,s=0,n=0,r=a.globals.pointsArray;e=new Y(this.ctx).getActiveConfigSeriesIndex(!0);var o=i.tooltipUtil.getHoverMarkerSize(e);r[e]&&(s=r[e][t][0],n=r[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<a.globals.series.length;c++){var h=r[c];if(a.globals.comboCharts&&void 0===h&&l.splice(c,0,null),h&&h.length){var d=r[c][t][1];l[c].setAttribute("cx",s),null!==d&&!isNaN(d)&&d<a.globals.gridHeight&&d>0?(l[c]&&l[c].setAttribute("r",o),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}if(this.moveXCrosshairs(s),!i.fixedTooltip){var u=n||a.globals.gridHeight;this.moveTooltip(s,u,o)}}},{key:"moveStickyTooltipOverBars",value:function(t){var e=this.w,i=this.ttCtx,a=e.globals.columnSeries?e.globals.columnSeries.length:e.globals.series.length,s=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;e.globals.isBarHorizontal&&(s=new Y(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var n=e.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(s,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(t,"']")),r=n?parseFloat(n.getAttribute("cx")):0,o=n?parseFloat(n.getAttribute("cy")):0,l=n?parseFloat(n.getAttribute("barWidth")):0,c=n?parseFloat(n.getAttribute("barHeight")):0,h=i.getElGrid().getBoundingClientRect();if(e.globals.isXNumeric?(r-=a%2!=0?l/2:0,n&&(n.classList.contains("apexcharts-candlestick-area")||n.classList.contains("apexcharts-boxPlot-area"))&&e.globals.comboCharts&&(r-=l/2)):e.globals.isBarHorizontal||(r=i.xAxisTicksPositions[t-1]+i.dataPointsDividedWidth/2,isNaN(r)&&(r=i.xAxisTicksPositions[t]-i.dataPointsDividedWidth/2)),e.globals.isBarHorizontal?o+=c/3:o=i.e.clientY-h.top-i.tooltipRect.ttHeight/2,e.globals.isBarHorizontal||this.moveXCrosshairs(r),!i.fixedTooltip){var d=o||e.globals.gridHeight;this.moveTooltip(r,d)}}}]),t}(),bt=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new mt(e)}return l(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new w(this.ctx),i=new E(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=x(a),t.config.chart.stacked&&a.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var s=0;s<a.length;s++){var n=a[s].querySelector(".apexcharts-series-markers-wrap");if(null!==n){var r=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(o+=" no-pointer-events");var l=i.getMarkerConfig(o,s);(r=e.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(t.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(r.node),n.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w;"bubble"!==s.config.chart.type&&this.newPointSize(t,e);var n=e.getAttribute("cx"),r=e.getAttribute("cy");if(null!==i&&null!==a&&(n=i,r=a),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if("radar"===s.config.chart.type){var o=this.ttCtx.getElGrid(),l=o.getBoundingClientRect();n=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(n,r,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,s=t,n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=e.config.markers.hover.size,o=0;o<n.length;o++){var l=n[o].getAttribute("rel"),c=n[o].getAttribute("index");if(void 0===r&&(r=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),s===parseInt(l,10)){i.newPointSize(s,n[o]);var h=n[o].getAttribute("cx"),d=n[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),a.fixedTooltip||i.tooltipPosition.moveTooltip(h,d,r)}else i.oldPointSize(n[o])}}},{key:"newPointSize",value:function(t,e){var i=this.w,a=i.config.markers.hover.size,s=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==s.getAttribute("default-marker-size")){var n=parseInt(s.getAttribute("index"),10);void 0===a&&(a=i.globals.markers.size[n]+i.config.markers.hover.sizeOffset),a<0&&(a=0),s.setAttribute("r",a)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));b.isNumber(i)&&i>=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),vt=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e}return l(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,n=t.type,r=this.ttCtx,o=this.w;if(e.target.classList.contains("apexcharts-".concat(n,"-rect"))){var l=this.getAttr(e,"i"),c=this.getAttr(e,"j"),h=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),u=this.getAttr(e,"width"),p=this.getAttr(e,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:e}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,a=h+r.tooltipRect.ttWidth/2+u,s=d+r.tooltipRect.ttHeight/2-p/2,r.tooltipPosition.moveXCrosshairs(h+u/2),a>o.globals.gridWidth/2&&(a=h-r.tooltipRect.ttWidth/2+u),r.w.config.tooltip.followCursor){var g=o.globals.dom.elWrap.getBoundingClientRect();a=o.globals.clientX-g.left-r.tooltipRect.ttWidth/2,s=o.globals.clientY-g.top-r.tooltipRect.ttHeight-5}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,s=t.opt,n=t.x,r=t.y,o=this.w,l=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var c=parseInt(s.paths.getAttribute("cx"),10),h=parseInt(s.paths.getAttribute("cy"),10),d=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),e=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=b.findAncestor(s.paths,"apexcharts-series");u&&(e=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:e,j:i,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:a}),"mouseup"===a.type&&l.markerClick(a,e,i),o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=i,n=c,r=h+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var p=l.getElGrid().getBoundingClientRect();r=l.e.clientY+o.globals.translateY-p.top}d<0&&(r=h),l.marker.enlargeCurrentPoint(i,s.paths,n,r)}return{x:n,y:r}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,s=t.opt,n=this.w,r=this.ttCtx,o=r.getElTooltip(),l=0,c=0,h=0,d=this.getBarTooltipXY({e:a,opt:s});e=d.i;var u=d.barHeight,p=d.j;n.globals.capturedSeriesIndex=e,n.globals.capturedDataPointIndex=p,n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!n.config.tooltip.shared?(c=d.x,h=d.y,i=Array.isArray(n.config.stroke.width)?n.config.stroke.width[e]:n.config.stroke.width,l=c):n.globals.comboCharts||n.config.tooltip.shared||(l/=2),isNaN(h)?h=n.globals.svgHeight-r.tooltipRect.ttHeight:h<0&&(h=0);var g=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),f=n.globals.isMultipleYAxis?n.config.yaxis[g]&&n.config.yaxis[g].reversed:n.config.yaxis[0].reversed;if(c+r.tooltipRect.ttWidth>n.globals.gridWidth&&!f?c-=r.tooltipRect.ttWidth:c<0&&(c=0),r.w.config.tooltip.followCursor){var x=r.getElGrid().getBoundingClientRect();h=r.e.clientY-x.top}null===r.tooltip&&(r.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(l+i/2):r.tooltipPosition.moveXCrosshairs(l)),!r.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(f&&(c-=r.tooltipRect.ttWidth)<0&&(c=0),o.style.left=c+n.globals.translateX+"px",!f||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||(h=h+u-2*(n.globals.series[e][p]<0?u:0)),r.tooltipRect.ttHeight+h>n.globals.gridHeight?(h=n.globals.gridHeight-r.tooltipRect.ttHeight+n.globals.translateY,o.style.top=h+"px"):o.style.top=h+n.globals.translateY-r.tooltipRect.ttHeight/2+"px")}},{key:"getBarTooltipXY",value:function(t){var e=t.e,i=t.opt,a=this.w,s=null,n=this.ttCtx,r=0,o=0,l=0,c=0,h=0,d=e.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-boxPlot-area")||d.contains("apexcharts-rangebar-area")){var u=e.target,p=u.getBoundingClientRect(),g=i.elGrid.getBoundingClientRect(),f=p.height;h=p.height;var x=p.width,m=parseInt(u.getAttribute("cx"),10),b=parseInt(u.getAttribute("cy"),10);c=parseFloat(u.getAttribute("barWidth"));var v="touchmove"===e.type?e.touches[0].clientX:e.clientX;s=parseInt(u.getAttribute("j"),10),r=parseInt(u.parentNode.getAttribute("rel"),10)-1;var y=u.getAttribute("data-range-y1"),w=u.getAttribute("data-range-y2");a.globals.comboCharts&&(r=parseInt(u.parentNode.getAttribute("data:realIndex"),10)),n.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:r,j:s,y1:y?parseInt(y,10):null,y2:w?parseInt(w,10):null,shared:!n.showOnIntersect&&a.config.tooltip.shared,e:e}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(o=v-g.left+15,l=b-n.dataPointsDividedHeight+f/2-n.tooltipRect.ttHeight/2):(o=a.globals.isXNumeric?m-x/2:m-n.dataPointsDividedWidth+x/2,l=e.clientY-g.top-n.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((o=m)<n.xyRatios.baseLineInvertedY&&(o=m-n.tooltipRect.ttWidth),l=b-n.dataPointsDividedHeight+f/2-n.tooltipRect.ttHeight/2):(o=a.globals.isXNumeric?m-x/2:m-n.dataPointsDividedWidth+x/2,l=b)}return{x:o,y:l,barHeight:h,barWidth:c,i:r,j:s}}}]),t}(),yt=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e}return l(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",s=t.globals.dom.elWrap;e.blxaxisTooltip&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+t.config.tooltip.theme),s.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(i){var a=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=a?t.globals.gridWidth+1:1;var s="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,a?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map((function(e,a){e.map((function(e,a){a===i&&(s+=t.config.yaxis[a].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var n=t.globals.dom.elWrap;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+t.config.tooltip.theme),n.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=document.createElement("div"),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))},a=0;a<t.config.yaxis.length;a++)i(a)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var a=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==a&&"barWidth"===t.config.xaxis.crosshairs.width){var s=parseFloat(a.getAttribute("barWidth"));e.xcrosshairsWidth=s}else if("tickWidth"===t.config.xaxis.crosshairs.width){var n=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/n}}else if("tickWidth"===t.config.xaxis.crosshairs.width){var r=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/r}else if("barWidth"===t.config.xaxis.crosshairs.width){var o=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));e.xcrosshairsWidth=l}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),null!==i&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var a=this.ttCtx,s=this.w,n=s.globals.yLabelFormatters[t];if(a.yaxisTooltips[t]){var r=a.getElGrid().getBoundingClientRect(),o=(e-r.top)*i.yRatio[t],l=s.globals.maxYArr[t]-s.globals.minYArr[t],c=s.globals.minYArr[t]+(l-o);a.tooltipPosition.moveYCrosshairs(e-r.top),a.yaxisTooltipText[t].innerHTML=n(c),a.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),wt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new ft(this),this.tooltipLabels=new xt(this),this.tooltipPosition=new mt(this),this.marker=new bt(this),this.intersect=new vt(this),this.axesTooltip=new yt(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=!i.globals.isBarHorizontal&&this.tConfig.shared}return l(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{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(t){var e=this.w;this.xyRatios=t,this.blxaxisTooltip=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map((function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)})),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new q(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],s=this.getElTooltip(),n=function(n){var r=document.createElement("div");r.classList.add("apexcharts-tooltip-series-group"),r.style.order=i.config.tooltip.inverseOrder?t-n:n+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(n)<0&&r.classList.add("apexcharts-tooltip-series-group-hidden");var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),o.style.backgroundColor=i.globals.colors[n],r.appendChild(o);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach((function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var a=document.createElement("span");a.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(a),l.appendChild(e)})),r.appendChild(l),s.appendChild(r),a.push(r)},r=0;r<t;r++)n(r);return a}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),a=!("bar"!==e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeBar"!==e),s="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,n=t.globals.dom.Paper.node,r=this.getElGrid();r&&(this.seriesBound=r.getBoundingClientRect());var o,l=[],c=[],h={hoverArea:n,elGrid:r,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(s?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==e&&"treemap"!==e||(o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var d=0;d<o.length;d++)l.push(o[d].getAttribute("cy")),c.push(o[d].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([n],h);else if(a&&!t.globals.comboCharts||s&&this.showOnIntersect)this.addDatapointEventsListeners(h);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,h)}if(this.showOnIntersect){var p=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,s=i.height+10,n=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(n=n+t.globals.svgWidth-a+10),o.indexOf("bottom")>-1&&(r=r+t.globals.svgHeight-s-10),e.style.left=n+"px",e.style.top=r+"px",{x:n,y:r,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(t){var e=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(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=function(a){var s={paths:t[a],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[a].addEventListener(e,i.seriesHover.bind(i,s),{capture:!1,passive:!0})}))},s=0;s<t.length;s++)a(s)}},{key:"seriesHover",value:function(t,e){var i=this,a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||0===s.globals.dataPoints)||(a.length?a.forEach((function(a){var s=i.getElTooltip(a),n={paths:t.paths,tooltipEl:s,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===i.w.globals.minX&&a.w.globals.maxX===i.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:n,e:e})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e:e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,s=t.e,n=e.w,r=this.getElTooltip();i.tooltipRect={x:0,y:0,ttWidth:r.getBoundingClientRect().width,ttHeight:r.getBoundingClientRect().height},i.e=s,!i.tooltipUtil.hasBars()||n.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new Y(e).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),n.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect})}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,s=t.opt,n=this.w,r=s.elGrid.getBoundingClientRect(),o="touchmove"===a.type?a.touches[0].clientX:a.clientX,l="touchmove"===a.type?a.touches[0].clientY:a.clientY;if(this.clientY=l,this.clientX=o,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,l<r.top||l>r.top+r.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var c=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(s)}var h=this.getElTooltip(),d=this.getElXCrosshairs(),u=n.globals.xyCharts||"bar"===n.config.chart.type&&!n.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||n.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===a.type||"touchmove"===a.type||"mouseup"===a.type){null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),u&&!this.showOnIntersect)this.handleStickyTooltip(a,o,l,s);else if("heatmap"===n.config.chart.type||"treemap"===n.config.chart.type){var g=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:e,y:i,type:n.config.chart.type});e=g.x,i=g.y,h.style.left=e+"px",h.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:e,y:i});if(this.yaxisTooltips.length)for(var f=0;f<n.config.yaxis.length;f++)this.axesTooltip.drawYaxisTooltipText(f,l,this.xyRatios);s.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==a.type&&"touchend"!==a.type||this.handleMouseOut(s)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,a=t.tooltipRect,s=this.w,n=i.paths.getAttribute("rel"),r=this.getElTooltip(),o=s.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){r.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(n,10)-1,shared:!1});var l=s.globals.clientX-o.left-a.ttWidth/2,c=s.globals.clientY-o.top-a.ttHeight-10;if(r.style.left=l+"px",r.style.top=c+"px",s.config.legend.tooltipHoverFormatter){var h=n-1,d=(0,s.config.legend.tooltipHoverFormatter)(this.legendLabels[h].getAttribute("data:default-text"),{seriesIndex:h,dataPointIndex:h,w:s});this.legendLabels[h].innerHTML=d}}else"mouseout"!==e.type&&"touchend"!==e.type||(r.classList.remove("apexcharts-active"),s.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})))}},{key:"handleStickyTooltip",value:function(t,e,i,a){var s=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:e,clientY:i}),r=n.j,o=n.capturedSeries;n.hoverX<0||n.hoverX>s.globals.gridWidth?this.handleMouseOut(a):null!==o?this.handleStickyCapturedSeries(t,o,a,r):(this.tooltipUtil.isXoverlap(r)||s.globals.isBarHorizontal)&&this.create(t,this,0,r,a.ttItems)}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var s=this.w;null===s.globals.series[e][a]?this.handleMouseOut(i):void 0!==s.globals.series[e][a]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1):this.tooltipUtil.isXoverlap(a)&&this.create(t,this,0,a,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new w(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a<i.length;a++)e.pathMouseLeave(i[a])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var a=0;a<this.yaxisTTEls.length;a++)this.yaxisTTEls[a].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"markerClick",value:function(t,e,i){var a=this.w;"function"==typeof a.config.chart.events.markerClick&&a.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}])}},{key:"create",value:function(t,e,i,a,s){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=this.w,o=e;"mouseup"===t.type&&this.markerClick(t,i,a),null===n&&(n=this.tConfig.shared);var l=this.tooltipUtil.hasMarkers(),c=this.tooltipUtil.getElBars();if(r.config.legend.tooltipHoverFormatter){var h=r.config.legend.tooltipHoverFormatter,d=Array.from(this.legendLabels);d.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var u=0;u<d.length;u++){var p=d[u],g=parseInt(p.getAttribute("i"),10),f=decodeURIComponent(p.getAttribute("data:default-text")),x=h(f,{seriesIndex:n?g:i,dataPointIndex:a,w:r});if(n)p.innerHTML=r.globals.collapsedSeriesIndices.indexOf(g)<0?x:f;else if(p.innerHTML=g===i?x:f,i===g)break}}if(n){if(o.tooltipLabels.drawSeriesTexts({ttItems:s,i:i,j:a,shared:!this.showOnIntersect&&this.tConfig.shared}),l&&(r.globals.markers.largestSize>0?o.marker.enlargePoints(a):o.tooltipPosition.moveDynamicPointsOnHover(a)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(c),this.barSeriesHeight>0)){var m=new w(this.ctx),b=r.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a);for(var v=0;v<b.length;v++)m.pathMouseEnter(b[v])}}else o.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:s,i:i,j:a}),this.tooltipUtil.hasBars()&&o.tooltipPosition.moveStickyTooltipOverBars(a),l&&o.tooltipPosition.moveMarkers(i,a)}}]),t}(),kt=function(t){u(i,X);var e=f(i);function i(){return r(this,i),e.apply(this,arguments)}return l(i,[{key:"draw",value:function(t,e){var i=this,a=this.w;this.graphics=new w(this.ctx),this.bar=new X(this.ctx,this.xyRatios);var s=new S(this.ctx,a);t=s.getLogSeries(t),this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===a.config.chart.stackType&&(t=a.globals.seriesPercent.slice()),this.series=t,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var n=0;n<t.length;n++)t[n].length>0&&(this.totalItems+=t[n].length);for(var r=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),o=0,l=0,c=function(s,n){var c=void 0,h=void 0,u=void 0,p=void 0,g=[],f=[],x=a.globals.comboCharts?e[s]:s;i.yRatio.length>1&&(i.yaxisIndex=x),i.isReversed=a.config.yaxis[i.yaxisIndex]&&a.config.yaxis[i.yaxisIndex].reversed;var m=i.graphics.group({class:"apexcharts-series",seriesName:b.escapeString(a.globals.seriesNames[x]),rel:s+1,"data:realIndex":x});i.ctx.series.addCollapsedClassToSeries(m,x);var v=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":x}),y=0,w=0,k=i.initialPositions(o,l,c,h,u,p);l=k.y,y=k.barHeight,h=k.yDivision,p=k.zeroW,o=k.x,w=k.barWidth,c=k.xDivision,u=k.zeroH,i.yArrj=[],i.yArrjF=[],i.yArrjVal=[],i.xArrj=[],i.xArrjF=[],i.xArrjVal=[],1===i.prevY.length&&i.prevY[0].every((function(t){return isNaN(t)}))&&(i.prevY[0]=i.prevY[0].map((function(t){return u})),i.prevYF[0]=i.prevYF[0].map((function(t){return 0})));for(var A=0;A<a.globals.dataPoints;A++){var S=i.barHelpers.getStrokeWidth(s,A,x),C={indexes:{i:s,j:A,realIndex:x,bc:n},strokeWidth:S,x:o,y:l,elSeries:m},L=null;i.isHorizontal?(L=i.drawStackedBarPaths(d(d({},C),{},{zeroW:p,barHeight:y,yDivision:h})),w=i.series[s][A]/i.invertedYRatio):(L=i.drawStackedColumnPaths(d(d({},C),{},{xDivision:c,barWidth:w,zeroH:u})),y=i.series[s][A]/i.yRatio[i.yaxisIndex]),l=L.y,o=L.x,g.push(o),f.push(l);var P=i.barHelpers.getPathFillColor(t,s,A,x);m=i.renderSeries({realIndex:x,pathFill:P,j:A,i:s,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:S,elSeries:m,x:o,y:l,series:t,barHeight:y,barWidth:w,elDataLabelsWrap:v,type:"bar",visibleSeries:0})}a.globals.seriesXvalues[x]=g,a.globals.seriesYvalues[x]=f,i.prevY.push(i.yArrj),i.prevYF.push(i.yArrjF),i.prevYVal.push(i.yArrjVal),i.prevX.push(i.xArrj),i.prevXF.push(i.xArrjF),i.prevXVal.push(i.xArrjVal),r.add(m)},h=0,u=0;h<t.length;h++,u++)c(h,u);return r}},{key:"initialPositions",value:function(t,e,i,a,s,n){var r,o,l=this.w;return this.isHorizontal?(r=(r=a=l.globals.gridHeight/l.globals.dataPoints)*parseInt(l.config.plotOptions.bar.barHeight,10)/100,n=this.baseLineInvertedY+l.globals.padHorizontal+(this.isReversed?l.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(a-r)/2):(o=i=l.globals.gridWidth/l.globals.dataPoints,o=l.globals.isXNumeric&&l.globals.dataPoints>1?(i=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:o*parseInt(l.config.plotOptions.bar.columnWidth,10)/100,s=this.baseLineY[this.yaxisIndex]+(this.isReversed?l.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=l.globals.padHorizontal+(i-o)/2),{x:t,y:e,yDivision:a,xDivision:i,barHeight:r,barWidth:o,zeroH:s,zeroW:n}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,n=t.zeroW,r=t.x,o=t.y,l=t.yDivision,c=t.elSeries,h=this.w,d=o,u=i.i,p=i.j,g=0,f=0;f<this.prevXF.length;f++)g+=this.prevXF[f][p];if(u>0){var x=n;this.prevXVal[u-1][p]<0?x=this.series[u][p]>=0?this.prevX[u-1][p]+g-2*(this.isReversed?g:0):this.prevX[u-1][p]:this.prevXVal[u-1][p]>=0&&(x=this.series[u][p]>=0?this.prevX[u-1][p]:this.prevX[u-1][p]-g+2*(this.isReversed?g:0)),e=x}else e=n;r=null===this.series[u][p]?e:e+this.series[u][p]/this.invertedYRatio-2*(this.isReversed?this.series[u][p]/this.invertedYRatio:0);var m=this.barHelpers.getBarpaths({barYPosition:d,barHeight:a,x1:e,x2:r,strokeWidth:s,series:this.series,realIndex:i.realIndex,i:u,j:p,w:h});return this.barHelpers.barBackground({j:p,i:u,y1:d,y2:a,elSeries:c}),o+=l,{pathTo:m.pathTo,pathFrom:m.pathFrom,x:r,y:o}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,n=t.barWidth,r=t.zeroH;t.strokeWidth;var o=t.elSeries,l=this.w,c=e.i,h=e.j,d=e.bc;if(l.globals.isXNumeric){var u=l.globals.seriesX[c][h];u||(u=0),i=(u-l.globals.minX)/this.xRatio-n/2}for(var p,g=i,f=0,x=0;x<this.prevYF.length;x++)f+=isNaN(this.prevYF[x][h])?0:this.prevYF[x][h];if(c>0&&!l.globals.isXNumeric||c>0&&l.globals.isXNumeric&&l.globals.seriesX[c-1][h]===l.globals.seriesX[c][h]){var m,b,v=Math.min(this.yRatio.length+1,c+1);if(void 0!==this.prevY[c-1])for(var y=1;y<v;y++)if(!isNaN(this.prevY[c-y][h])){b=this.prevY[c-y][h];break}for(var w=1;w<v;w++){if(this.prevYVal[c-w][h]<0){m=this.series[c][h]>=0?b-f+2*(this.isReversed?f:0):b;break}if(this.prevYVal[c-w][h]>=0){m=this.series[c][h]>=0?b:b+f-2*(this.isReversed?f:0);break}}void 0===m&&(m=l.globals.gridHeight),p=this.prevYF[0].every((function(t){return 0===t}))&&this.prevYF.slice(1,c).every((function(t){return t.every((function(t){return isNaN(t)}))}))?l.globals.gridHeight-r:m}else p=l.globals.gridHeight-r;a=p-this.series[c][h]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[c][h]/this.yRatio[this.yaxisIndex]:0);var k=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:n,y1:p,y2:a,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:e.realIndex,i:c,j:h,w:l});return this.barHelpers.barBackground({bc:d,j:h,i:c,x1:g,x2:n,elSeries:o}),i+=s,{pathTo:k.pathTo,pathFrom:k.pathFrom,x:l.globals.isXNumeric?i-s:i,y:a}}}]),i}(),At=function(t){u(i,X);var e=f(i);function i(){return r(this,i),e.apply(this,arguments)}return l(i,[{key:"draw",value:function(t,e){var i=this,a=this.w,s=new w(this.ctx),n=new D(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot;var r=new S(this.ctx,a);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var o=s.group({class:"apexcharts-".concat(a.config.chart.type,"-series apexcharts-plot-series")}),l=function(r){i.isBoxPlot="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[r].type;var l,c,h,d,u=void 0,p=void 0,g=[],f=[],x=a.globals.comboCharts?e[r]:r,m=s.group({class:"apexcharts-series",seriesName:b.escapeString(a.globals.seriesNames[x]),rel:r+1,"data:realIndex":x});t[r].length>0&&(i.visibleI=i.visibleI+1),i.yRatio.length>1&&(i.yaxisIndex=x);var v=i.barHelpers.initialPositions();p=v.y,h=v.barHeight,u=v.x,d=v.barWidth,l=v.xDivision,c=v.zeroH,f.push(u+d/2);for(var y=s.group({class:"apexcharts-datalabels","data:realIndex":x}),w=function(e){var s=i.barHelpers.getStrokeWidth(r,e,x),o=i.drawBoxPaths({indexes:{i:r,j:e,realIndex:x},x:u,y:p,xDivision:l,barWidth:d,zeroH:c,strokeWidth:s,elSeries:m});p=o.y,u=o.x,e>0&&f.push(u+d/2),g.push(p),o.pathTo.forEach((function(l,c){var g=!i.isBoxPlot&&i.candlestickOptions.wick.useFillColor?o.color[c]:a.globals.stroke.colors[r],f=n.fillPath({seriesNumber:x,dataPointIndex:e,color:o.color[c],value:t[r][e]});i.renderSeries({realIndex:x,pathFill:f,lineFill:g,j:e,i:r,pathFrom:o.pathFrom,pathTo:l,strokeWidth:s,elSeries:m,x:u,y:p,series:t,barHeight:h,barWidth:d,elDataLabelsWrap:y,visibleSeries:i.visibleI,type:a.config.chart.type})}))},k=0;k<a.globals.dataPoints;k++)w(k);a.globals.seriesXvalues[x]=f,a.globals.seriesYvalues[x]=g,o.add(m)},c=0;c<t.length;c++)l(c);return o}},{key:"drawBoxPaths",value:function(t){var e=t.indexes,i=t.x;t.y;var a=t.xDivision,s=t.barWidth,n=t.zeroH,r=t.strokeWidth,o=this.w,l=new w(this.ctx),c=e.i,h=e.j,d=!0,u=o.config.plotOptions.candlestick.colors.upward,p=o.config.plotOptions.candlestick.colors.downward,g="";this.isBoxPlot&&(g=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.yRatio[this.yaxisIndex],x=e.realIndex,m=this.getOHLCValue(x,h),b=n,v=n;m.o>m.c&&(d=!1);var y=Math.min(m.o,m.c),k=Math.max(m.o,m.c),A=m.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[x][h]-o.globals.minX)/this.xRatio-s/2);var S=i+s*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(y=n,k=n):(y=n-y/f,k=n-k/f,b=n-m.h/f,v=n-m.l/f,A=n-m.m/f);var C=l.move(S,n),L=l.move(S+s/2,y);return o.globals.previousPaths.length>0&&(L=this.getPreviousPath(x,h,!0)),C=this.isBoxPlot?[l.move(S,y)+l.line(S+s/2,y)+l.line(S+s/2,b)+l.line(S+s/4,b)+l.line(S+s-s/4,b)+l.line(S+s/2,b)+l.line(S+s/2,y)+l.line(S+s,y)+l.line(S+s,A)+l.line(S,A)+l.line(S,y+r/2),l.move(S,A)+l.line(S+s,A)+l.line(S+s,k)+l.line(S+s/2,k)+l.line(S+s/2,v)+l.line(S+s-s/4,v)+l.line(S+s/4,v)+l.line(S+s/2,v)+l.line(S+s/2,k)+l.line(S,k)+l.line(S,A)+"z"]:[l.move(S,k)+l.line(S+s/2,k)+l.line(S+s/2,b)+l.line(S+s/2,k)+l.line(S+s,k)+l.line(S+s,y)+l.line(S+s/2,y)+l.line(S+s/2,v)+l.line(S+s/2,y)+l.line(S,y)+l.line(S,k-r/2)],L+=l.move(S,y),o.globals.isXNumeric||(i+=a),{pathTo:C,pathFrom:L,x:i,y:k,barXPosition:S,color:this.isBoxPlot?g:d?[u]:[p]}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),i}(),St=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(t,i){t.from<=0&&(e=!0)})),e}},{key:"getShadeColor",value:function(t,e,i,a){var s=this.w,n=1,r=s.config.plotOptions[t].shadeIntensity,o=this.determineColor(t,e,i);s.globals.hasNegs||a?n=s.config.plotOptions[t].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*r):(1-o.percent/100)*(1.25*r):o.percent<=0?1-(1+o.percent/100)*r:(1-o.percent/100)*r:(n=1-o.percent/100,"treemap"===t&&(n=(1-o.percent/100)*(1.25*r)));var l=o.color,c=new b;return s.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?b.hexToRgba(c.shadeColor(-1*n,o.color),s.config.fill.opacity):b.hexToRgba(c.shadeColor(n,o.color),s.config.fill.opacity)),{color:l,colorProps:o}}},{key:"determineColor",value:function(t,e,i){var a=this.w,s=a.globals.series[e][i],n=a.config.plotOptions[t],r=n.colorScale.inverse?i:e;a.config.plotOptions[t].distributed&&(r=i);var o=a.globals.colors[r],l=null,c=Math.min.apply(Math,x(a.globals.series[e])),h=Math.max.apply(Math,x(a.globals.series[e]));n.distributed||"heatmap"!==t||(c=a.globals.minY,h=a.globals.maxY),void 0!==n.colorScale.min&&(c=n.colorScale.min<a.globals.minY?n.colorScale.min:a.globals.minY,h=n.colorScale.max>a.globals.maxY?n.colorScale.max:a.globals.maxY);var d=Math.abs(h)+Math.abs(c),u=100*s/(0===d?d-1e-6:d);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map((function(t,e){if(s>=t.from&&s<=t.to){o=t.color,l=t.foreColor?t.foreColor:null,c=t.from,h=t.to;var i=Math.abs(h)+Math.abs(c);u=100*s/(0===i?i-1e-6:i)}})),{color:o,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,s=t.i,n=t.j,r=t.colorProps,o=t.fontSize,l=this.w.config.dataLabels,c=new w(this.ctx),h=new z(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var u=l.offsetX,p=l.offsetY,g=i+u,f=a+parseFloat(l.style.fontSize)/3+p;h.plotDataLabelsText({x:g,y:f,text:e,i:s,j:n,color:r.foreColor,parent:d,fontSize:o,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new w(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),Ct=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new St(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return l(t,[{key:"draw",value:function(t){var e=this.w,i=new w(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var s=e.globals.gridWidth/e.globals.dataPoints,n=e.globals.gridHeight/e.globals.series.length,r=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:b.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(h,c),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new y(this.ctx).dropShadow(h,d,c)}for(var u=0,p=e.config.plotOptions.heatmap.shadeIntensity,g=0;g<l[c].length;g++){var f=this.helpers.getShadeColor(e.config.chart.type,c,g,this.negRange),x=f.color,m=f.colorProps;"image"===e.config.fill.type&&(x=new D(this.ctx).fillPath({seriesNumber:c,dataPointIndex:g,opacity:e.globals.hasNegs?m.percent<0?1-(1+m.percent/100):p+m.percent/100:m.percent/100,patternID:b.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:s,height:e.config.fill.image.height?e.config.fill.image.height:n}));var v=this.rectRadius,k=i.drawRect(u,r,s,n,v);if(k.attr({cx:u,cy:r}),k.node.classList.add("apexcharts-heatmap-rect"),h.add(k),k.attr({fill:x,i:c,index:c,j:g,val:l[c][g],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?x:e.globals.stroke.colors[0],color:x}),this.helpers.addListeners(k),e.config.chart.animations.enabled&&!e.globals.dataChanged){var A=1;e.globals.resized||(A=e.config.chart.animations.speed),this.animateHeatMap(k,u,r,s,n,A)}if(e.globals.dataChanged){var S=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){S=this.dynamicAnim.speed;var C=e.globals.previousPaths[c]&&e.globals.previousPaths[c][g]&&e.globals.previousPaths[c][g].color;C||(C="rgba(255, 255, 255, 0)"),this.animateHeatColor(k,b.isColorHex(C)?C:b.rgb2hex(C),b.isColorHex(x)?x:b.rgb2hex(x),S)}}var L=(0,e.config.dataLabels.formatter)(e.globals.series[c][g],{value:e.globals.series[c][g],seriesIndex:c,dataPointIndex:g,w:e}),P=this.helpers.calculateDataLabels({text:L,x:u+s/2,y:r+n/2,i:c,j:g,colorProps:m,series:l});null!==P&&h.add(P),u+=s}r+=n,a.add(h)}var T=e.globals.yAxisScale[0].result.slice();e.config.yaxis[0].reversed?T.unshift(""):T.push(""),e.globals.yAxisScale[0].result=T;var M=e.globals.gridHeight/e.globals.series.length;return e.config.yaxis[0].labels.offsetY=-M/2,a}},{key:"animateHeatMap",value:function(t,e,i,a,s,n){var r=new v(this.ctx);r.animateRect(t,{x:e+a/2,y:i+s/2,width:0,height:0},{x:e,y:i,width:a,height:s},n,(function(){r.animationCompleted(t)}))}},{key:"animateHeatColor",value:function(t,e,i,a){t.attr({fill:e}).animate(a).attr({fill:i})}}]),t}(),Lt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"drawYAxisTexts",value:function(t,e,i,a){var s=this.w,n=s.config.yaxis[0],r=s.globals.yLabelFormatters[0];return new w(this.ctx).drawText({x:t+n.labels.offsetX,y:e+n.labels.offsetY,text:r(a,i),textAnchor:"middle",fontSize:n.labels.style.fontSize,fontFamily:n.labels.style.fontFamily,foreColor:Array.isArray(n.labels.style.colors)?n.labels.style.colors[i]:n.labels.style.colors})}}]),t}(),Pt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=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=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return l(t,[{key:"draw",value:function(t){var e=this,i=this.w,a=new w(this.ctx);if(this.ret=a.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var s=0,n=0;n<t.length;n++)s+=b.negToZero(t[n]);var r=[],o=a.group();0===s&&(s=1e-5),t.forEach((function(t){e.maxY=Math.max(e.maxY,t)})),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<t.length;l++){var c=this.fullAngle*b.negToZero(t[l])/s;r.push(c),"polarArea"===this.chartType?(r[l]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var h,d=0,u=0;u<i.globals.previousPaths.length;u++)d+=b.negToZero(i.globals.previousPaths[u]);for(var p=0;p<i.globals.previousPaths.length;p++)h=this.fullAngle*b.negToZero(i.globals.previousPaths[p])/d,this.prevSectorAngleArr.push(h)}this.donutSize<0&&(this.donutSize=0);var g=i.config.plotOptions.pie.customScale,f=i.globals.gridWidth/2,x=i.globals.gridHeight/2,m=f-i.globals.gridWidth/2*g,v=x-i.globals.gridHeight/2*g;if("donut"===this.chartType){var y=a.drawCircle(this.donutSize);y.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),o.add(y)}var k=this.drawArcs(r,t);if(this.sliceLabels.forEach((function(t){k.add(t)})),o.attr({transform:"translate(".concat(m,", ").concat(v,") scale(").concat(g,")")}),o.add(k),this.ret.add(o),this.donutDataLabels.show){var A=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:m,translateY:v});this.ret.add(A)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,a=new y(this.ctx),s=new w(this.ctx),n=new D(this.ctx),r=s.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,h=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<t.length;d++){var u=s.group({class:"apexcharts-series apexcharts-pie-series",seriesName:b.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});r.add(u),l=h,c=(o=c)+t[d],h=l+this.prevSectorAngleArr[d];var p=c<o?this.fullAngle+c-o:c-o,g=n.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:e[d]}),f=this.getChangedPath(l,h),x=s.drawPath({d:f,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:g,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(x.attr({index:0,j:d}),a.setSelectionFilter(x,0,d),i.config.chart.dropShadow.enabled){var m=i.config.chart.dropShadow;a.dropShadow(x,m,d)}this.addListeners(x,this.donutDataLabels),w.setAttrs(x.node,{"data:angle":p,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":e[d]});var v={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?v=b.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle):"donut"===this.chartType&&(v=b.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle)),u.add(x);var k=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(k=p/this.fullAngle*i.config.chart.animations.speed)&&(k=1),this.animDur=k+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(x,{size:this.sliceSizes[d],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(x,{size:this.sliceSizes[d],endAngle:c,startAngle:o,i:d,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:k}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&x.click(this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var A=v.x,S=v.y,C=100*p/this.fullAngle+"%";if(0!==p&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[d]){var L=i.config.dataLabels.formatter;void 0!==L&&(C=L(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var P=i.globals.dataLabels.style.colors[d],T=s.group({class:"apexcharts-datalabels"}),M=s.drawText({x:A,y:S,text:C,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:P});if(T.add(M),i.config.dataLabels.dropShadow.enabled){var E=i.config.dataLabels.dropShadow;a.dropShadow(M,E)}M.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(M.node.classList.add("apexcharts-pie-label-delay"),M.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(T)}}}return r}},{key:"addListeners",value:function(t,e){var i=new w(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,a=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,s=a,n=e.startAngle,r=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(n=e.prevEndAngle,s=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(a+r>this.fullAngle?e.endAngle=e.endAngle-(a+r):a+r<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(a+r)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(t,n,r,a,s,e)}},{key:"animateArc",value:function(t,e,i,a,s,n){var r,o=this,l=this.w,c=new v(this.ctx),h=n.size;(isNaN(e)||isNaN(s))&&(e=i,s=a,n.dur=0);var d=a,u=i,p=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(r=o.getPiePath({me:o,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:h}),t.attr({d:r})),0!==n.dur?t.animate(n.dur,l.globals.easing,n.animBeginArr[n.i]).afterAll((function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),n.i===l.config.series.length-1&&c.animationCompleted(t)})).during((function(l){d=p+(a-p)*l,n.animateStartingPos&&(d=s+(a-s)*l,u=e-s+(i-(e-s))*l),r=o.getPiePath({me:o,startAngle:u,angle:d,size:h}),t.node.setAttribute("data:pathOrig",r),t.attr({d:r})})):(r=o.getPiePath({me:o,startAngle:u,angle:a,size:h}),n.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",r),t.attr({d:r,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,a=this,s=a.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),n=i.globals.dom.Paper.select(".apexcharts-".concat(a.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if("true"!==n.attr("data:pieClicked")){var r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(r,(function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");t.setAttribute("d",e)})),n.attr("data:pieClicked","true");var o=parseInt(n.attr("data:startAngle"),10),l=parseInt(n.attr("data:angle"),10);e=a.getPiePath({me:a,startAngle:o,angle:l,size:s}),360!==l&&n.plot(e)}else{n.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(n.node,this.donutDataLabels);var c=n.attr("data:pathOrig");n.attr({d:c})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e=t.me,i=t.startAngle,a=t.angle,s=t.size,n=i,r=Math.PI*(n-90)/180,o=a+i;Math.ceil(o)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(o)>this.fullAngle&&(o-=this.fullAngle);var l=Math.PI*(o-90)/180,c=e.centerX+s*Math.cos(r),h=e.centerY+s*Math.sin(r),d=e.centerX+s*Math.cos(l),u=e.centerY+s*Math.sin(l),p=b.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),g=b.polarToCartesian(e.centerX,e.centerY,e.donutSize,n),f=a>180?1:0,x=["M",c,h,"A",s,s,0,f,1,d,u];return"donut"===e.chartType?[].concat(x,["L",p.x,p.y,"A",e.donutSize,e.donutSize,0,f,0,g.x,g.y,"L",c,h,"z"]).join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[].concat(x,["L",e.centerX,e.centerY,"L",c,h]).join(" "):[].concat(x).join(" ")}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new $(this.ctx),a=new w(this.ctx),s=new Lt(this.ctx),n=a.group(),r=a.group(),o=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var h=e.globals.radialSize,d=h/(c-1),u=0;u<c-1;u++){var p=a.drawCircle(h);if(p.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var g=s.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);r.add(g)}n.add(p),h-=d}this.drawSpokes(t),t.add(n),t.add(r)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,a=new w(this.ctx),s=a.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),n=t.total.show;s.node.style.opacity=e.opacity;var r,o,l=e.centerX,c=e.centerY;r=void 0===t.name.color?i.globals.colors[0]:t.name.color;var h=t.name.fontSize,d=t.name.fontFamily,u=t.value.fontWeight;o=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var p=t.value.formatter,g="",f="";if(n?(r=t.total.color,h=t.total.fontSize,d=t.total.fontFamily,u=t.total.fontWeight,f=t.total.label,g=t.total.formatter(i)):1===i.globals.series.length&&(g=p(i.globals.series[0],i),f=i.globals.seriesNames[0]),f&&(f=t.name.formatter(f,t.total.show,i)),t.name.show){var x=a.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:f,textAnchor:"middle",foreColor:r,fontSize:h,fontWeight:u,fontFamily:d});x.node.classList.add("apexcharts-datalabel-label"),s.add(x)}if(t.value.show){var m=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=a.drawText({x:l,y:c+m,text:g,textAnchor:"middle",foreColor:o,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),s.add(b)}return s}},{key:"printInnerLabels",value:function(t,e,i,a){var s,n=this.w;a?s=void 0===t.name.color?n.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:t.name.color:n.globals.series.length>1&&t.total.show&&(s=t.total.color);var r=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,n),a||"function"!=typeof t.total.formatter||(i=t.total.formatter(n));var l=e===t.total.label;e=t.name.formatter(e,l,n),null!==r&&(r.textContent=e),null!==o&&(o.textContent=i),null!==r&&(r.style.fill=s)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,s,a,t);var n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==n&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,a=new w(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(0!==s.strokeWidth){for(var n=[],r=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)n.push(b.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+r*o));n.forEach((function(i,n){var r=a.drawLine(i.x,i.y,e.centerX,e.centerY,Array.isArray(s.connectorColors)?s.connectorColors[n]:s.connectorColors);t.add(r)}))}}},{key:"revertDataLabelsInner",value:function(t,e,i){var a=this,s=this.w,n=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),r=!1,o=s.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(t){var i=t.makeSliceOut,s=t.printLabel;Array.prototype.forEach.call(o,(function(t){"true"===t.getAttribute("data:pieClicked")&&(i&&(r=!0),s&&a.printDataLabelsInner(t,e))}))};if(l({makeSliceOut:!0,printLabel:!1}),e.total.show&&s.globals.series.length>1)r&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(s));else if(l({makeSliceOut:!1,printLabel:!0}),!r)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var c=s.globals.selectedDataPoints[0],h=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(h,e)}else n&&s.globals.selectedDataPoints.length&&0===s.globals.selectedDataPoints[0].length&&(n.style.opacity=0);else n&&s.globals.series.length>1&&(n.style.opacity=0)}}]),t}(),Tt=function(){function t(e){r(this,t),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 i=this.w;this.graphics=new w(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight+1.5*i.globals.goldenPadding:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.coreUtils=new S(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return l(t,[{key:"draw",value:function(t){var e=this,i=this.w,a=new D(this.ctx),s=[],n=new z(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var r=i.globals.gridWidth/2,o=i.globals.gridHeight/2,l=r+i.config.plotOptions.radar.offsetX,c=o+i.config.plotOptions.radar.offsetY,h=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(c||0,")")}),u=[],p=null,g=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach((function(t,r){var o=t.length===i.globals.dataPoints,l=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":o,seriesName:b.escapeString(i.globals.seriesNames[r]),rel:r+1,"data:realIndex":r});e.dataRadiusOfPercent[r]=[],e.dataRadius[r]=[],e.angleArr[r]=[],t.forEach((function(t,i){var a=Math.abs(e.maxValue-e.minValue);t+=Math.abs(e.minValue),e.isLog&&(t=e.coreUtils.getLogVal(t,0)),e.dataRadiusOfPercent[r][i]=t/a,e.dataRadius[r][i]=e.dataRadiusOfPercent[r][i]*e.size,e.angleArr[r][i]=i*e.disAngle})),u=e.getDataPointsPos(e.dataRadius[r],e.angleArr[r]);var c=e.createPaths(u,{x:0,y:0});p=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),g=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":r}),i.globals.delayedElements.push({el:p.node,index:r});var h={i:r,realIndex:r,animationDelay:r,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[r],strokeLineCap:i.config.stroke.lineCap},f=null;i.globals.previousPaths.length>0&&(f=e.getPreviousPath(r));for(var x=0;x<c.linePathsTo.length;x++){var m=e.graphics.renderPaths(d(d({},h),{},{pathFrom:null===f?c.linePathsFrom[x]:f,pathTo:c.linePathsTo[x],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[r]:e.strokeWidth,fill:"none",drawShadow:!1}));l.add(m);var v=a.fillPath({seriesNumber:r}),w=e.graphics.renderPaths(d(d({},h),{},{pathFrom:null===f?c.areaPathsFrom[x]:f,pathTo:c.areaPathsTo[x],strokeWidth:0,fill:v,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var k=new y(e.ctx),A=i.config.chart.dropShadow;k.dropShadow(w,Object.assign({},A,{noUserSpaceOnUse:!0}),r)}l.add(w)}t.forEach((function(t,a){var s=new E(e.ctx).getMarkerConfig("apexcharts-marker",r,a),o=e.graphics.drawMarker(u[a].x,u[a].y,s);o.attr("rel",a),o.attr("j",a),o.attr("index",r),o.node.setAttribute("default-marker-size",s.pSize);var c=e.graphics.group({class:"apexcharts-series-markers"});c&&c.add(o),p.add(c),l.add(p);var h=i.config.dataLabels;if(h.enabled){var f=h.formatter(i.globals.series[r][a],{seriesIndex:r,dataPointIndex:a,w:i});n.plotDataLabelsText({x:u[a].x,y:u[a].y,text:f,textAnchor:"middle",i:r,j:r,parent:g,offsetCorrection:!1,dataLabelsConfig:d({},h)})}l.add(g)})),s.push(l)})),this.drawPolygons({parent:h}),i.config.xaxis.labels.show){var f=this.drawXAxisTexts();h.add(f)}return s.forEach((function(t){h.add(t)})),h.add(this.yaxisLabels),h}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,a=t.parent,s=new Lt(this.ctx),n=i.globals.yAxisScale[0].result.reverse(),r=n.length,o=[],l=this.size/(r-1),c=0;c<r;c++)o[c]=l*c;o.reverse();var h=[],d=[];o.forEach((function(t,i){var a=b.getPolygonPos(t,e.dataPointsLen),s="";a.forEach((function(t,a){if(0===i){var n=e.graphics.drawLine(t.x,t.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[a]:e.polygons.connectorColors);d.push(n)}0===a&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),s+=t.x+","+t.y+" "})),h.push(s)})),h.forEach((function(t,s){var n=e.polygons.strokeColors,r=e.polygons.strokeWidth,o=e.graphics.drawPolygon(t,Array.isArray(n)?n[s]:n,Array.isArray(r)?r[s]:r,i.globals.radarPolygons.fill.colors[s]);a.add(o)})),d.forEach((function(t){a.add(t)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(t,i){var a=s.drawYAxisTexts(t.x,t.y,i,n[i]);e.yaxisLabels.add(a)}))}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,a=this.graphics.group({class:"apexcharts-xaxis"}),s=b.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach((function(n,r){var o=e.config.xaxis.labels.formatter,l=new z(t.ctx);if(s[r]){var c=t.getTextPos(s[r],t.size),h=o(n,{seriesIndex:-1,dataPointIndex:r,w:e});l.plotDataLabelsText({x:c.newX,y:c.newY,text:h,textAnchor:c.textAnchor,i:r,j:r,parent:a,color:Array.isArray(i.style.colors)&&i.style.colors[r]?i.style.colors[r]:"#a8a8a8",dataLabelsConfig:d({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}})),a}},{key:"createPaths",value:function(t,e){var i=this,a=[],s=[],n=[],r=[];if(t.length){s=[this.graphics.move(e.x,e.y)],r=[this.graphics.move(e.x,e.y)];var o=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach((function(e,a){o+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),a===t.length-1&&(o+="Z",l+="Z")})),a.push(o),n.push(l)}return{linePathsFrom:s,linePathsTo:a,areaPathsFrom:r,areaPathsTo:n}}},{key:"getTextPos",value:function(t,e){var i="middle",a=t.x,s=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?s-=10:t.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a<e.globals.previousPaths.length;a++){var s=e.globals.previousPaths[a];s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[a].paths[0]&&(i=e.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var a=[],s=0;s<i;s++){var n={};n.x=t[s]*Math.sin(e[s]),n.y=-t[s]*Math.cos(e[s]),a.push(n)}return a}}]),t}(),Mt=function(t){u(i,Pt);var e=f(i);function i(t){var a;r(this,i),(a=e.call(this,t)).ctx=t,a.w=t.w,a.animBeginArr=[0],a.animDur=0;var s=a.w;return a.startAngle=s.config.plotOptions.radialBar.startAngle,a.endAngle=s.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(s.config.plotOptions.radialBar.endAngle-s.config.plotOptions.radialBar.startAngle),a.trackStartAngle=s.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=s.config.plotOptions.radialBar.track.endAngle,a.radialDataLabels=s.config.plotOptions.radialBar.dataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),360===a.endAngle&&(a.endAngle=359.99),a.margin=parseInt(s.config.plotOptions.radialBar.track.margin,10),a}return l(i,[{key:"draw",value:function(t){var e=this.w,i=new w(this.ctx),a=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return a;var s=i.group(),n=this.defaultSize/2,r=e.globals.gridWidth/2,o=this.defaultSize/2.05;e.config.chart.sparkline.enabled||(o=o-e.config.stroke.width-e.config.chart.dropShadow.blur);var l=e.globals.fill.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:r,centerY:n,colorArr:l,series:t});s.add(c)}var h=this.drawArcs({size:o,centerX:r,centerY:n,colorArr:l,series:t}),d=360;e.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var u=(360-d)/360;if(e.globals.radialSize=o-o*u,this.radialDataLabels.value.show){var p=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=p*u}return s.add(h.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),a.add(s),a}},{key:"drawTracks",value:function(t){var e=this.w,i=new w(this.ctx),a=i.group({class:"apexcharts-tracks"}),s=new y(this.ctx),n=new D(this.ctx),r=this.getStrokeWidth(t);t.size=t.size-r/2;for(var o=0;o<t.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});a.add(l),l.attr({rel:o+1}),t.size=t.size-r-this.margin;var c=e.config.plotOptions.radialBar.track,h=n.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),d=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(d)>=360&&(u=360-Math.abs(this.startAngle)-.1);var p=i.drawPath({d:"",stroke:h,strokeWidth:r*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var g=c.dropShadow;s.dropShadow(p,g)}l.add(p),p.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(p,{centerX:t.centerX,centerY:t.centerY,endAngle:u,startAngle:d,size:t.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return a}},{key:"drawArcs",value:function(t){var e=this.w,i=new w(this.ctx),a=new D(this.ctx),s=new y(this.ctx),n=i.group(),r=this.getStrokeWidth(t);t.size=t.size-r/2;var o=e.config.plotOptions.radialBar.hollow.background,l=t.size-r*t.series.length-this.margin*t.series.length-r*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(t,n,l,o));var h=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:o||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(h,d)}var u=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(u=0);var p=null;this.radialDataLabels.show&&(p=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:u})),"back"===e.config.plotOptions.radialBar.hollow.position&&(n.add(h),p&&n.add(p));var g=!1;e.config.plotOptions.radialBar.inverseOrder&&(g=!0);for(var f=g?t.series.length-1:0;g?f>=0:f<t.series.length;g?f--:f++){var x=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:b.escapeString(e.globals.seriesNames[f])});n.add(x),x.attr({rel:f+1,"data:realIndex":f}),this.ctx.series.addCollapsedClassToSeries(x,f),t.size=t.size-r-this.margin;var m=a.fillPath({seriesNumber:f,size:t.size,value:t.series[f]}),v=this.startAngle,k=void 0,A=b.negToZero(t.series[f]>100?100:t.series[f])/100,S=Math.round(this.totalAngle*A)+this.startAngle,C=void 0;e.globals.dataChanged&&(k=this.startAngle,C=Math.round(this.totalAngle*b.negToZero(e.globals.previousPaths[f])/100)+k),Math.abs(S)+Math.abs(v)>=360&&(S-=.01),Math.abs(C)+Math.abs(k)>=360&&(C-=.01);var L=S-v,P=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[f]:e.config.stroke.dashArray,T=i.drawPath({d:"",stroke:m,strokeWidth:r,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:P});if(w.setAttrs(T.node,{"data:angle":L,"data:value":t.series[f]}),e.config.chart.dropShadow.enabled){var M=e.config.chart.dropShadow;s.dropShadow(T,M,f)}s.setSelectionFilter(T,0,f),this.addListeners(T,this.radialDataLabels),x.add(T),T.attr({index:0,j:f});var E=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(E=(S-v)/360*e.config.chart.animations.speed,this.animDur=E/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),e.globals.dataChanged&&(E=(S-v)/360*e.config.chart.animations.dynamicAnimation.speed,this.animDur=E/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(T,{centerX:t.centerX,centerY:t.centerY,endAngle:S,startAngle:v,prevEndAngle:C,prevStartAngle:k,size:t.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:E,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:n,elHollow:h,dataLabels:p}}},{key:"drawHollow",value:function(t){var e=new w(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,a){var s=this.w,n=new D(this.ctx),r=b.randomId(),o=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)n.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(s.globals.cuid).concat(r)}),a="url(#pattern".concat(s.globals.cuid).concat(r,")");else{var l=s.config.plotOptions.radialBar.hollow.imageWidth,c=s.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=s.globals.dom.Paper.image(o).loaded((function(e){this.move(t.centerX-e.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(h)}else{var d=s.globals.dom.Paper.image(o).loaded((function(e){this.move(t.centerX-l/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));e.add(d)}}return a}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}}]),i}(),Dt=function(){function t(e){r(this,t),this.w=e.w,this.lineCtx=e}return l(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if("line"===i.config.chart.type&&("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new S(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,s=t.y,n=t.i,r=t.j,o=t.prevY,l=this.w,c=[],h=[];if(0===r){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),h.push(b.isNumber(e[n][0])?o+l.config.markers.offsetY:null),c.push(a+l.config.markers.offsetX),h.push(b.isNumber(e[n][r+1])?s+l.config.markers.offsetY:null)}else c.push(a+l.config.markers.offsetX),h.push(b.isNumber(e[n][r+1])?s+l.config.markers.offsetY:null);return{x:c,y:h}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,n=0;n<s.globals.previousPaths.length;n++){var r=s.globals.previousPaths[n];("line"===r.type||"area"===r.type)&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(a,10)&&("line"===r.type?(this.lineCtx.appendPathFrom=!1,e=s.globals.previousPaths[n].paths[0].d):"area"===r.type&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[n].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[n].paths[1]&&(e=s.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e=t.i,i=t.series,a=t.prevY,s=t.lineYPosition,n=this.w;if(void 0!==i[e][0])a=(s=n.config.chart.stacked&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(n.config.chart.stacked&&e>0&&void 0===i[e][0])for(var r=e-1;r>=0;r--)if(null!==i[r][0]&&void 0!==i[r][0]){a=s=this.lineCtx.prevSeriesY[r][0];break}return{prevY:a,lineYPosition:s}}}]),t}(),Et=function(){function t(e,i,a){r(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new I(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Dt(this),this.markers=new E(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return l(t,[{key:"draw",value:function(t,e,i){var a=this.w,s=new w(this.ctx),n=a.globals.comboCharts?e:a.config.chart.type,r=s.group({class:"apexcharts-".concat(n,"-series apexcharts-plot-series")}),o=new S(this.ctx,a);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=o.getLogSeries(t),this.yRatio=o.getLogYRatios(this.yRatio);for(var l=[],c=0;c<t.length;c++){t=this.lineHelpers.sameValueSeriesFix(c,t);var h=a.globals.comboCharts?i[c]:c;this._initSerieVariables(t,c,h);var d=[],u=[],p=a.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),a.globals.isXNumeric&&a.globals.seriesX.length>0&&(p=(a.globals.seriesX[h][0]-a.globals.minX)/this.xRatio),u.push(p);var g,f=p,x=f,m=this.zeroY;m=this.lineHelpers.determineFirstPrevY({i:c,series:t,prevY:m,lineYPosition:0}).prevY,d.push(m),g=m;var b=this._calculatePathsFrom({series:t,i:c,realIndex:h,prevX:x,prevY:m}),v=this._iterateOverDataPoints({series:t,realIndex:h,i:c,x:p,y:1,pX:f,pY:g,pathsFrom:b,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:u,yArrj:d});this._handlePaths({type:n,realIndex:h,i:c,paths:v}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(a.config.chart.stacked)for(var y=l.length;y>0;y--)r.add(l[y-1]);else for(var k=0;k<l.length;k++)r.add(l[k]);return r}},{key:"_initSerieVariables",value:function(t,e,i){var a=this.w,s=new w(this.ctx);this.xDivision=a.globals.gridWidth/(a.globals.dataPoints-("on"===a.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[i]:a.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||"end"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",seriesName:b.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var n=t[e].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":n,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,a,s,n=t.series,r=t.i,o=t.realIndex,l=t.prevX,c=t.prevY,h=this.w,d=new w(this.ctx);if(null===n[r][0]){for(var u=0;u<n[r].length;u++)if(null!==n[r][u]){l=this.xDivision*u,c=this.zeroY-n[r][u]/this.yRatio[this.yaxisIndex],e=d.move(l,c),i=d.move(l,this.areaBottomY);break}}else e=d.move(l,c),i=d.move(l,this.areaBottomY)+d.line(l,c);if(a=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),s=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),h.globals.previousPaths.length>0){var p=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:o});a=p.pathFromLine,s=p.pathFromArea}return{prevX:l,prevY:c,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,a=t.i,s=t.paths,n=this.w,r=new w(this.ctx),o=new D(this.ctx);this.prevSeriesY.push(s.yArrj),n.globals.seriesXvalues[i]=s.xArrj,n.globals.seriesYvalues[i]=s.yArrj;var l=n.config.forecastDataPoints;if(l.count>0){var c=n.globals.seriesXvalues[i][n.globals.seriesXvalues[i].length-l.count-1],h=r.drawRect(c,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(h.node);var u=r.drawRect(0,0,c,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(u.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var p={i:a,realIndex:i,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var g=o.fillPath({seriesNumber:i}),f=0;f<s.areaPaths.length;f++){var x=r.renderPaths(d(d({},p),{},{pathFrom:s.pathFromArea,pathTo:s.areaPaths[f],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:g}));this.elSeries.add(x)}if(n.config.stroke.show&&!this.pointsChart){var m;m="line"===e?o.fillPath({seriesNumber:i,i:a}):n.globals.stroke.colors[i];for(var b=0;b<s.linePaths.length;b++){var v=d(d({},p),{},{pathFrom:s.pathFromLine,pathTo:s.linePaths[b],stroke:m,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:"none"}),y=r.renderPaths(v);if(this.elSeries.add(y),l.count>0){var k=r.renderPaths(v);k.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&k.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(k),k.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),y.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){for(var e=t.series,i=t.realIndex,a=t.i,s=t.x,n=t.y,r=t.pX,o=t.pY,l=t.pathsFrom,c=t.linePaths,h=t.areaPaths,d=t.seriesIndex,u=t.lineYPosition,p=t.xArrj,g=t.yArrj,f=this.w,x=new w(this.ctx),m=this.yRatio,v=l.prevY,y=l.linePath,k=l.areaPath,A=l.pathFromLine,S=l.pathFromArea,C=b.isNumber(f.globals.minYArr[i])?f.globals.minYArr[i]:f.globals.minY,L=f.globals.dataPoints>1?f.globals.dataPoints-1:f.globals.dataPoints,P=0;P<L;P++){var T=void 0===e[a][P+1]||null===e[a][P+1];if(f.globals.isXNumeric){var M=f.globals.seriesX[i][P+1];void 0===f.globals.seriesX[i][P+1]&&(M=f.globals.seriesX[i][L-1]),s=(M-f.globals.minX)/this.xRatio}else s+=this.xDivision;u=f.config.chart.stacked&&a>0&&f.globals.collapsedSeries.length<f.config.series.length-1?this.prevSeriesY[function(t){for(var e=t,i=0;i<f.globals.series.length;i++)if(f.globals.collapsedSeriesIndices.indexOf(t)>-1){e--;break}return e>=0?e:0}(a-1)][P+1]:this.zeroY,n=T?u-C/m[this.yaxisIndex]+2*(this.isReversed?C/m[this.yaxisIndex]:0):u-e[a][P+1]/m[this.yaxisIndex]+2*(this.isReversed?e[a][P+1]/m[this.yaxisIndex]:0),p.push(s),g.push(n);var D=this.lineHelpers.calculatePoints({series:e,x:s,y:n,realIndex:i,i:a,j:P,prevY:v}),E=this._createPaths({series:e,i:a,realIndex:i,j:P,x:s,y:n,pX:r,pY:o,linePath:y,areaPath:k,linePaths:c,areaPaths:h,seriesIndex:d});h=E.areaPaths,c=E.linePaths,r=E.pX,o=E.pY,k=E.areaPath,y=E.linePath,this.appendPathFrom&&(A+=x.line(s,this.zeroY),S+=x.line(s,this.zeroY)),this.handleNullDataPoints(e,D,a,P,i),this._handleMarkersAndLabels({pointsPos:D,series:e,x:s,y:n,prevY:v,i:a,j:P,realIndex:i})}return{yArrj:g,xArrj:p,pathFromArea:S,areaPaths:h,pathFromLine:A,linePaths:c}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.pointsPos;t.series,t.x,t.y,t.prevY;var i=t.i,a=t.j,s=t.realIndex,n=this.w,r=new z(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:s,pointsPos:e,zRatio:this.zRatio,elParent:this.elPointsMain});else{n.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var o=this.markers.plotChartMarkers(e,s,a+1);null!==o&&this.elPointsMain.add(o)}var l=r.drawDataLabel(e,s,a+1,null);null!==l&&this.elDataLabelsWrap.add(l)}},{key:"_createPaths",value:function(t){var e=t.series,i=t.i,a=t.realIndex,s=t.j,n=t.x,r=t.y,o=t.pX,l=t.pY,c=t.linePath,h=t.areaPath,d=t.linePaths,u=t.areaPaths,p=t.seriesIndex,g=this.w,f=new w(this.ctx),x=g.config.stroke.curve,m=this.areaBottomY;if(Array.isArray(g.config.stroke.curve)&&(x=Array.isArray(p)?g.config.stroke.curve[p[i]]:g.config.stroke.curve[i]),"smooth"===x){var b=.35*(n-o);g.globals.hasNullValues?(null!==e[i][s]&&(null!==e[i][s+1]?(c=f.move(o,l)+f.curve(o+b,l,n-b,r,n+1,r),h=f.move(o+1,l)+f.curve(o+b,l,n-b,r,n+1,r)+f.line(n,m)+f.line(o,m)+"z"):(c=f.move(o,l),h=f.move(o,l)+"z")),d.push(c),u.push(h)):(c+=f.curve(o+b,l,n-b,r,n,r),h+=f.curve(o+b,l,n-b,r,n,r)),o=n,l=r,s===e[i].length-2&&(h=h+f.curve(o,l,n,r,n,m)+f.move(n,r)+"z",g.globals.hasNullValues||(d.push(c),u.push(h)))}else{if(null===e[i][s+1]){c+=f.move(n,r);var v=g.globals.isXNumeric?(g.globals.seriesX[a][s]-g.globals.minX)/this.xRatio:n-this.xDivision;h=h+f.line(v,m)+f.move(n,r)+"z"}null===e[i][s]&&(c+=f.move(n,r),h+=f.move(n,m)),"stepline"===x?(c=c+f.line(n,null,"H")+f.line(null,r,"V"),h=h+f.line(n,null,"H")+f.line(null,r,"V")):"straight"===x&&(c+=f.line(n,r),h+=f.line(n,r)),s===e[i].length-2&&(h=h+f.line(n,m)+f.move(n,r)+"z",d.push(c),u.push(h))}return{linePaths:d,areaPaths:u,pX:o,pY:l,linePath:c,areaPath:h}}},{key:"handleNullDataPoints",value:function(t,e,i,a,s){var n=this.w;if(null===t[i][a]&&n.config.markers.showNullDataPoints||1===t[i].length){var r=this.markers.plotChartMarkers(e,s,a+1,this.strokeWidth-n.config.markers.strokeWidth/2,!0);null!==r&&this.elPointsMain.add(r)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,a,s){this.xoffset=e,this.yoffset=i,this.height=s,this.width=a,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],a=this.xoffset,s=this.yoffset,r=n(t)/this.height,o=n(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([a,s,a+r,s+t[e]/r]),s+=t[e]/r;else for(e=0;e<t.length;e++)i.push([a,s,a+t[e]/o,s+o]),a+=t[e]/o;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var a=e/this.height,s=this.width-a;i=new t(this.xoffset+a,this.yoffset,s,this.height)}else{var n=e/this.width,r=this.height-n;i=new t(this.xoffset,this.yoffset+n,this.width,r)}return i}}function e(e,a,s,r,o){return r=void 0===r?0:r,o=void 0===o?0:o,function(t){var e,i,a=[];for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)a.push(t[e][i]);return a}(i(function(t,e){var i,a=[],s=e/n(t);for(i=0;i<t.length;i++)a[i]=t[i]*s;return a}(e,a*s),[],new t(r,o,a,s),[]))}function i(t,e,s,r){var o,l,c;if(0!==t.length)return o=s.shortestEdge(),function(t,e,i){var s;return 0===t.length||((s=t.slice()).push(e),a(t,i)>=a(s,i))}(e,l=t[0],o)?(e.push(l),i(t.slice(1),e,s,r)):(c=s.cutArea(n(e),r),r.push(s.getCoordinates(e)),i(t,[],c,r)),r;r.push(s.getCoordinates(e))}function a(t,e){var i=Math.min.apply(Math,t),a=Math.max.apply(Math,t),s=n(t);return Math.max(Math.pow(e,2)*a/Math.pow(s,2),Math.pow(s,2)/(Math.pow(e,2)*i))}function s(t){return t&&t.constructor===Array}function n(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e];return i}function r(t){var e,i=0;if(s(t[0]))for(e=0;e<t.length;e++)i+=r(t[e]);else i=n(t);return i}return function t(i,a,n,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,h,d=[],u=[];if(s(i[0])){for(h=0;h<i.length;h++)d[h]=r(i[h]);for(c=e(d,a,n,o,l),h=0;h<i.length;h++)u.push(t(i[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else u=e(i,a,n,o,l);return u}}();var It,zt,Ot=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new St(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return l(t,[{key:"draw",value:function(t){var e=this,i=this.w,a=new w(this.ctx),s=new D(this.ctx),n=a.group({class:"apexcharts-treemap"});if(i.globals.noData)return n;var r=[];return t.forEach((function(t){var e=t.map((function(t){return Math.abs(t)}));r.push(e)})),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach((function(t,i){t.data.forEach((function(t){Array.isArray(e.labels[i])||(e.labels[i]=[]),e.labels[i].push(t.x)}))})),window.TreemapSquared.generate(r,i.globals.gridWidth,i.globals.gridHeight).forEach((function(r,o){var l=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:b.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new y(e.ctx).dropShadow(n,c,o)}var h=a.group({class:"apexcharts-data-labels"});r.forEach((function(n,r){var c=n[0],h=n[1],d=n[2],u=n[3],p=a.drawRect(c,h,d-c,u-h,0,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?f:i.globals.stroke.colors[o]);p.attr({cx:c,cy:h,index:o,i:o,j:r,width:d-c,height:u-h});var g=e.helpers.getShadeColor(i.config.chart.type,o,r,e.negRange),f=g.color;void 0!==i.config.series[o].data[r]&&i.config.series[o].data[r].fillColor&&(f=i.config.series[o].data[r].fillColor);var x=s.fillPath({color:f,seriesNumber:o,dataPointIndex:r});p.node.classList.add("apexcharts-treemap-rect"),p.attr({fill:x}),e.helpers.addListeners(p);var m={x:c+(d-c)/2,y:h+(u-h)/2,width:0,height:0},b={x:c,y:h,width:d-c,height:u-h};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var v=1;i.globals.resized||(v=i.config.chart.animations.speed),e.animateTreemap(p,m,b,v)}if(i.globals.dataChanged){var y=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(y=e.dynamicAnim.speed,i.globals.previousPaths[o]&&i.globals.previousPaths[o][r]&&i.globals.previousPaths[o][r].rect&&(m=i.globals.previousPaths[o][r].rect),e.animateTreemap(p,m,b,y))}var w=e.getFontSize(n),k=i.config.dataLabels.formatter(e.labels[o][r],{value:i.globals.series[o][r],seriesIndex:o,dataPointIndex:r,w:i}),A=e.helpers.calculateDataLabels({text:k,x:(c+d)/2,y:(h+u)/2+e.strokeWidth/2+w/3,i:o,j:r,colorProps:g,fontSize:w,series:t});i.config.dataLabels.enabled&&A&&e.rotateToFitLabel(A,k,c,h,d,u),l.add(p),null!==A&&l.add(A)})),l.add(h),n.add(l)})),n}},{key:"getFontSize",value:function(t){var e,i,a=this.w,s=function t(e){var i,a=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)a+=t(e[i]);else for(i=0;i<e.length;i++)a+=e[i].length;return a}(this.labels)/function t(e){var i,a=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)a+=t(e[i]);else for(i=0;i<e.length;i++)a+=1;return a}(this.labels);return e=(t[2]-t[0])*(t[3]-t[1]),i=Math.pow(e,.5),Math.min(i/s,parseInt(a.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,a,s,n){var r=new w(this.ctx),o=r.getTextRects(e);if(o.width+5>s-i&&o.width<=n-a){var l=r.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(l.x," ").concat(l.y,")"))}}},{key:"animateTreemap",value:function(t,e,i,a){var s=new v(this.ctx);s.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,(function(){s.animationCompleted(t)}))}}]),t}(),Yt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return l(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new R(this.ctx),n=(e-t)/864e5;this.determineInterval(n),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,n<.00011574074074074075?a.globals.disableZoomIn=!0:n>5e4&&(a.globals.disableZoomOut=!0);var r=s.getTimeUnitsfromTimestamp(t,e,this.utc),o=a.globals.gridWidth/n,l=o/24,c=l/60,h=c/60,u=Math.floor(24*n),p=Math.floor(1440*n),g=Math.floor(86400*n),f=Math.floor(n),x=Math.floor(n/30),m=Math.floor(n/365),b={minMillisecond:r.minMillisecond,minSecond:r.minSecond,minMinute:r.minMinute,minHour:r.minHour,minDate:r.minDate,minMonth:r.minMonth,minYear:r.minYear},v={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:h,numberOfSeconds:g,numberOfMinutes:p,numberOfHours:u,numberOfDays:f,numberOfMonths:x,numberOfYears:m};switch(this.tickInterval){case"years":this.generateYearScale(v);break;case"months":case"half_year":this.generateMonthScale(v);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(v);break;case"hours":this.generateHourScale(v);break;case"minutes_fives":case"minutes":this.generateMinuteScale(v);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(v)}var y=this.timeScaleArray.map((function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?d(d({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?d(d({},e),{},{value:t.value}):"minute"===t.unit?d(d({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?d(d({},e),{},{value:t.value,minute:t.minute,second:t.second}):t}));return y.filter((function(t){var e=1,s=Math.ceil(a.globals.gridWidth/120),n=t.value;void 0!==a.config.xaxis.tickAmount&&(s=a.config.xaxis.tickAmount),y.length>s&&(e=Math.floor(y.length/s));var r=!1,o=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(r=!0);break;case"half_year":e=7,"year"===t.unit&&(r=!0);break;case"months":e=1,"year"===t.unit&&(r=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(r=!0),30===n&&(o=!0);break;case"months_days":e=10,"month"===t.unit&&(r=!0),30===n&&(o=!0);break;case"week_days":e=8,"month"===t.unit&&(r=!0);break;case"days":e=1,"month"===t.unit&&(r=!0);break;case"hours":"day"===t.unit&&(r=!0);break;case"minutes_fives":n%5!=0&&(o=!0);break;case"seconds_tens":n%10!=0&&(o=!0);break;case"seconds_fives":n%5!=0&&(o=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!o)return!0}else if((n%e==0||r)&&!o)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new ht(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.daysWidthOnXAxis,n=t.numberOfYears,r=e.minYear,o=0,l=new R(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var h=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);o=(l.determineDaysOfYear(e.minYear)-h+1)*s,r=e.minYear+1,this.timeScaleArray.push({position:o,value:r,unit:c,year:r,month:b.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:o,value:r,unit:c,year:a,month:b.monthMod(i+1)});for(var d=r,u=o,p=0;p<n;p++)d++,u=l.determineDaysOfYear(d-1)*s+u,this.timeScaleArray.push({position:u,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,a=t.currentMonth,s=t.currentYear,n=t.daysWidthOnXAxis,r=t.numberOfMonths,o=a,l=0,c=new R(this.ctx),h="month",d=0;if(e.minDate>1){l=(c.determineDaysOfMonths(a+1,e.minYear)-i+1)*n,o=b.monthMod(a+1);var u=s+d,p=b.monthMod(o),g=o;0===o&&(h="year",g=u,p=1,u+=d+=1),this.timeScaleArray.push({position:l,value:g,unit:h,year:u,month:p})}else this.timeScaleArray.push({position:l,value:o,unit:h,year:s,month:b.monthMod(a)});for(var f=o+1,x=l,m=0,v=1;m<r;m++,v++){0===(f=b.monthMod(f))?(h="year",d+=1):h="month";var y=this._getYear(s,f,d);x=c.determineDaysOfMonths(f,y)*n+x;var w=0===f?y:f;this.timeScaleArray.push({position:x,value:w,unit:h,year:y,month:0===f?1:f}),f++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.hoursWidthOnXAxis,n=t.numberOfDays,r=new R(this.ctx),o="day",l=e.minDate+1,c=l,h=function(t,e,i){return t>r.determineDaysOfMonths(e+1,i)?(c=1,o="month",u=e+=1,e):e},d=(24-e.minHour)*s,u=l,p=h(c,i,a);0===e.minHour&&1===e.minDate?(d=0,u=b.monthMod(e.minMonth),o="month",c=e.minDate,n++):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,u=l,p=h(c=l,i,a)),this.timeScaleArray.push({position:d,value:u,unit:o,year:this._getYear(a,p,0),month:b.monthMod(p),day:c});for(var g=d,f=0;f<n;f++){o="day",p=h(c+=1,p,this._getYear(a,p,0));var x=this._getYear(a,p,0);g=24*s+g;var m=1===c?b.monthMod(p):c;this.timeScaleArray.push({position:g,value:m,unit:o,year:x,month:b.monthMod(p),day:m})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,a=t.currentMonth,s=t.currentYear,n=t.minutesWidthOnXAxis,r=t.numberOfHours,o=new R(this.ctx),l="hour",c=function(t,e){return t>o.determineDaysOfMonths(e+1,s)&&(f=1,e+=1),{month:e,date:f}},h=function(t,e){return t>o.determineDaysOfMonths(e+1,s)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),u=d*n,p=e.minHour+1,g=p+1;60===d&&(u=0,g=(p=e.minHour)+1);var f=i,x=h(f,a);this.timeScaleArray.push({position:u,value:p,unit:l,day:f,hour:g,year:s,month:b.monthMod(x)});for(var m=u,v=0;v<r;v++){l="hour",g>=24&&(g=0,l="day",x=c(f+=1,x).month,x=h(f,x));var y=this._getYear(s,x,0);m=0===g&&0===v?d*n:60*n+m;var w=0===g?f:g;this.timeScaleArray.push({position:m,value:w,unit:l,hour:g,day:f,year:y,month:b.monthMod(x)}),g++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,n=t.currentDate,r=t.currentMonth,o=t.currentYear,l=t.minutesWidthOnXAxis,c=t.secondsWidthOnXAxis,h=t.numberOfMinutes,d=a+1,u=n,p=r,g=o,f=s,x=(60-i-e/1e3)*c,m=0;m<h;m++)d>=60&&(d=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:x,value:d,unit:"minute",hour:f,minute:d,day:u,year:this._getYear(g,p,0),month:b.monthMod(p)}),x+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,n=t.currentDate,r=t.currentMonth,o=t.currentYear,l=t.secondsWidthOnXAxis,c=t.numberOfSeconds,h=i+1,d=a,u=n,p=r,g=o,f=s,x=(1e3-e)/1e3*l,m=0;m<c;m++)h>=60&&(h=0,++d>=60&&(d=0,24==++f&&(f=0))),this.timeScaleArray.push({position:x,value:h,unit:"second",hour:f,minute:d,second:h,day:u,year:this._getYear(g,p,0),month:b.monthMod(p)}),x+=l,h++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var a=t.value.toString(),s=new R(e.ctx),n=e.createRawDateString(t,a),r=s.getDate(s.parseDate(n));if(e.utc||(r=s.getDate(s.parseDateWithTimezone(n))),void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(o=l.year),"month"===t.unit&&(o=l.month),"day"===t.unit&&(o=l.day),"hour"===t.unit&&(o=l.hour),"minute"===t.unit&&(o=l.minute),"second"===t.unit&&(o=l.second),a=s.formatDate(r,o)}else a=s.formatDate(r,i.config.xaxis.labels.format);return{dateString:n,position:t.position,value:a,unit:t.unit,year:t.year,month:t.month}}))}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new w(this.ctx),s=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(s=!0,e=a.getTextRects(t[0].value).width);var n=0,r=t.map((function(r,o){if(o>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=s?e:a.getTextRects(t[n].value).width,c=t[n].position;return r.position>c+l+10?(n=o,r):null}return r}));return r.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),Ft=function(){function t(e,i){r(this,t),this.ctx=i,this.w=i.w,this.el=e}return l(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),w.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.chart.background,this.setSVGDimensions(),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elAnnotations=t.dom.Paper.group().attr({class:"apexcharts-annotations"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,s=i.globals,n={series:[],i:[]},r={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]};s.series.map((function(e,u){var p=0;void 0!==t[u].type?("column"===t[u].type||"bar"===t[u].type?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(e),c.i.push(u),p++,i.globals.columnSeries=c.series):"area"===t[u].type?(r.series.push(e),r.i.push(u),p++):"line"===t[u].type?(n.series.push(e),n.i.push(u),p++):"scatter"===t[u].type?(o.series.push(e),o.i.push(u)):"bubble"===t[u].type?(l.series.push(e),l.i.push(u),p++):"candlestick"===t[u].type?(h.series.push(e),h.i.push(u),p++):"boxPlot"===t[u].type?(d.series.push(e),d.i.push(u),p++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),p>1&&(s.comboCharts=!0)):(n.series.push(e),n.i.push(u))}));var u=new Et(this.ctx,e),p=new At(this.ctx,e);this.ctx.pie=new Pt(this.ctx);var g=new Mt(this.ctx);this.ctx.rangeBar=new N(this.ctx,e);var f=new Tt(this.ctx),x=[];if(s.comboCharts){if(r.series.length>0&&x.push(u.draw(r.series,"area",r.i)),c.series.length>0)if(i.config.chart.stacked){var m=new kt(this.ctx,e);x.push(m.draw(c.series,c.i))}else this.ctx.bar=new X(this.ctx,e),x.push(this.ctx.bar.draw(c.series,c.i));if(n.series.length>0&&x.push(u.draw(n.series,"line",n.i)),h.series.length>0&&x.push(p.draw(h.series,h.i)),d.series.length>0&&x.push(p.draw(d.series,d.i)),o.series.length>0){var b=new Et(this.ctx,e,!0);x.push(b.draw(o.series,"scatter",o.i))}if(l.series.length>0){var v=new Et(this.ctx,e,!0);x.push(v.draw(l.series,"bubble",l.i))}}else switch(a.chart.type){case"line":x=u.draw(s.series,"line");break;case"area":x=u.draw(s.series,"area");break;case"bar":a.chart.stacked?x=new kt(this.ctx,e).draw(s.series):(this.ctx.bar=new X(this.ctx,e),x=this.ctx.bar.draw(s.series));break;case"candlestick":case"boxPlot":x=new At(this.ctx,e).draw(s.series);break;case"rangeBar":x=this.ctx.rangeBar.draw(s.series);break;case"heatmap":x=new Ct(this.ctx,e).draw(s.series);break;case"treemap":x=new Ot(this.ctx,e).draw(s.series);break;case"pie":case"donut":case"polarArea":x=this.ctx.pie.draw(s.series);break;case"radialBar":x=g.draw(s.series);break;case"radar":x=f.draw(s.series);break;default:x=u.draw(s.series)}return x}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=b.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===a?b.isNumber(i[0])&&(0===i[0].width&&(i=b.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==a&&""!==a||(t.svgWidth=parseInt(e.chart.width,10));var s=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===s){var n=b.getDimensions(this.el.parentNode);t.svgHeight=n[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),w.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==s){var r=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+r+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};w.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new ut(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*t.globals.radialSize;if(s&&!t.config.chart.sparkline.enabled){var r=b.getBoundingClientRect(s);n=r.bottom;var o=r.bottom-r.top;n=Math.max(2.05*t.globals.radialSize,o)}var l=n+e.translateY+i+a;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),e.dom.elWrap.style.height=l+"px",w.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px"}},{key:"coreCalculations",value:function(){new J(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new W,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e()}},{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 t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new it(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new it(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Yt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new S(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=e.config.chart.brush.targets||[e.config.chart.brush.target];i.forEach((function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})})),e.config.chart.events.selection=function(t,a){i.forEach((function(t){var i=ApexCharts.getChartByID(t),s=b.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var n=new $(i);s=n.autoScaleY(i,s,a)}var r=i.w.config.yaxis.reduce((function(t,e,a){return[].concat(x(t),[d(d({},i.w.config.yaxis[a]),{},{min:s[0].min,max:s[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max},yaxis:r},!1,!1,!1,!1)}))}}}}]),t}(),Xt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=[this.ctx];s&&(o=this.ctx.getSyncedCharts()),this.ctx.w.globals.isExecCalled&&(o=[this.ctx],this.ctx.w.globals.isExecCalled=!1),o.forEach((function(s){var o=s.w;return o.globals.shouldAnimate=a,i||(o.globals.resized=!0,o.globals.dataChanged=!0,a&&s.series.getPreviousPaths()),t&&"object"===n(t)&&(s.config=new H(t),t=S.extendArrayProps(s.config,t,o),s.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,o.config=b.extend(o.config,t),r&&(o.globals.lastXAxis=t.xaxis?b.clone(t.xaxis):[],o.globals.lastYAxis=t.yaxis?b.clone(t.yaxis):[],o.globals.initialConfig=b.extend({},o.config),o.globals.initialSeries=b.clone(o.config.series))),s.update(t)}))}},{key:"_updateSeries",value:function(t,e){var i,a=this,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.w;return n.globals.shouldAnimate=e,n.globals.dataChanged=!0,e&&this.ctx.series.getPreviousPaths(),n.globals.axisCharts?(0===(i=t.map((function(t,e){return a._extendSeries(t,e)}))).length&&(i=[{data:[]}]),n.config.series=i):n.config.series=t.slice(),s&&(n.globals.initialSeries=b.clone(n.config.series)),this.ctx.update()}},{key:"_extendSeries",value:function(t,e){var i=this.w,a=i.config.series[e];return d(d({},i.config.series[e]),{},{name:t.name?t.name:a&&a.name,color:t.color?t.color:a&&a.color,type:t.type?t.type:a&&a.type,data:t.data?t.data:a&&a.data})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"'], ").concat(s," circle[j='").concat(e,"'], ").concat(s," rect[j='").concat(e,"']")).members[0]:void 0===e&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),a?(new w(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])})),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new _(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){var e=this.w;return e.config.chart.stacked&&"100%"===e.config.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(s=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;i.config.yaxis.map((function(t,a){i.globals.zoomed||void 0!==s[a]?function(t){void 0!==s[t]&&(i.config.yaxis[t].min=s[t].min,i.config.yaxis[t].max=s[t].max)}(a):void 0!==e.ctx.opts.yaxis[a]&&(t.min=e.ctx.opts.yaxis[a].min,t.max=e.ctx.opts.yaxis[a].max)}))}}]),t}();It="undefined"!=typeof window?window:void 0,zt=function(t,e){var i=(void 0!==this?this:t).SVG=function(t){if(i.supported)return t=new i.Doc(t),i.parser.draw||i.prepare(),t};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.dev",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(t){return"Svgjs"+d(t)+i.did++},i.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},i.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var a=t.length-1;a>=0;a--)if(t[a])for(var s in e)t[a].prototype[s]=e[s];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,i.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&i.extend(e,t.extend),t.construct&&i.extend(t.parent||i.Container,t.construct),e},i.adopt=function(e){return e?e.instance?e.instance:((a="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new i.Nested:new i.Doc:"linearGradient"==e.nodeName?new i.Gradient("linear"):"radialGradient"==e.nodeName?new i.Gradient("radial"):i[d(e.nodeName)]?new(i[d(e.nodeName)]):new i.Element(e)).type=e.nodeName,a.node=e,e.instance=a,a instanceof i.Doc&&a.namespace().defs(),a.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),a):null;var a},i.prepare=function(){var t=e.getElementsByTagName("body")[0],a=(t?new i.Doc(t):i.adopt(e.documentElement).nested()).size(2,0);i.parser={body:t||e.documentElement,draw:a.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:a.polyline().node,path:a.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},e.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.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},i.utils={map:function(t,e){for(var i=t.length,a=[],s=0;s<i;s++)a.push(e(t[s]));return a},filter:function(t,e){for(var i=t.length,a=[],s=0;s<i;s++)e(t[s])&&a.push(t[s]);return a},filterSVGElements:function(e){return this.filter(e,(function(e){return e instanceof t.SVGElement}))}},i.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"}},i.Color=function(t){var e,a;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?i.regex.isRgb.test(t)?(e=i.regex.rgb.exec(t.replace(i.regex.whitespace,"")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):i.regex.isHex.test(t)&&(e=i.regex.hex.exec(4==(a=t).length?["#",a.substring(1,2),a.substring(1,2),a.substring(2,3),a.substring(2,3),a.substring(3,4),a.substring(3,4)].join(""):a),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):"object"===n(t)&&(this.r=t.r,this.g=t.g,this.b=t.b))},i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(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(t){return this.destination=new i.Color(t),this},at:function(t){return this.destination?(t=t<0?0:t>1?1:t,new i.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),i.Color.test=function(t){return t+="",i.regex.isHex.test(t)||i.regex.isRgb.test(t)},i.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},i.Color.isColor=function(t){return i.Color.isRgb(t)||i.Color.test(t)},i.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),i.PointArray=function(t,e){i.Array.call(this,t,e||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var a={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},s="mlhvqtcsaz".split(""),r=0,o=s.length;r<o;++r)a[s[r]]=function(t){return function(e,i,s){if("H"==t)e[0]=e[0]+i.x;else if("V"==t)e[0]=e[0]+i.y;else if("A"==t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(var n=0,r=e.length;n<r;++n)e[n]=e[n]+(n%2?i.y:i.x);return a[t](e,i,s)}}(s[r].toUpperCase());i.PathArray=function(t,e){i.Array.call(this,t,e||[["M",0,0]])},i.PathArray.prototype=new i.Array,i.PathArray.prototype.constructor=i.PathArray,i.extend(i.PathArray,{toString:function(){return function(t){for(var e=0,i=t.length,a="";e<i;e++)a+=t[e][0],null!=t[e][1]&&(a+=t[e][1],null!=t[e][2]&&(a+=" ",a+=t[e][2],null!=t[e][3]&&(a+=" ",a+=t[e][3],a+=" ",a+=t[e][4],null!=t[e][5]&&(a+=" ",a+=t[e][5],a+=" ",a+=t[e][6],null!=t[e][7]&&(a+=" ",a+=t[e][7])))));return a+" "}(this.value)},move:function(t,e){var i=this.bbox();return i.x,i.y,this},at:function(t){if(!this.destination)return this;for(var e=this.value,a=this.destination.value,s=[],n=new i.PathArray,r=0,o=e.length;r<o;r++){s[r]=[e[r][0]];for(var l=1,c=e[r].length;l<c;l++)s[r][l]=e[r][l]+(a[r][l]-e[r][l])*t;"A"===s[r][0]&&(s[r][4]=+(0!=s[r][4]),s[r][5]=+(0!=s[r][5]))}return n.value=s,n},parse:function(t){if(t instanceof i.PathArray)return t.valueOf();var e,s={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"==typeof t?t.replace(i.regex.numbersWithDots,c).replace(i.regex.pathLetters," $& ").replace(i.regex.hyphen,"$1 -").trim().split(i.regex.delimiter):t.reduce((function(t,e){return[].concat.call(t,e)}),[]);var n=[],r=new i.Point,o=new i.Point,l=0,h=t.length;do{i.regex.isPathLetter.test(t[l])?(e=t[l],++l):"M"==e?e="L":"m"==e&&(e="l"),n.push(a[e].call(null,t.slice(l,l+=s[e.toUpperCase()]).map(parseFloat),r,o))}while(h>l);return n},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(i.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof i.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new i.Number(t),new i.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new i.Number(t),new i.Number(this-t,this.unit||t.unit)},times:function(t){return t=new i.Number(t),new i.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new i.Number(t),new i.Number(this/t,this.unit||t.unit)},to:function(t){var e=new i.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new i.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new i.Number(this.destination).minus(this).times(t).plus(this):this}}}),i.Element=i.invent({create:function(t){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var a=p(this,t,e);return this.width(new i.Number(a.width)).height(new i.Number(a.height))},clone:function(t){this.writeDataToDom();var e=x(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(i.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return i.get(this.attr(t))},parent:function(e){var a=this;if(!a.node.parentNode)return null;if(a=i.adopt(a.node.parentNode),!e)return a;for(;a&&a.node instanceof t.SVGElement;){if("string"==typeof e?a.matches(e):a instanceof e)return a;if(!a.node.parentNode||"#document"==a.node.parentNode.nodeName)return null;a=i.adopt(a.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var a=e.createElement("svg");if(!(t&&this instanceof i.Parent))return a.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),a.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");a.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var s=0,n=a.firstChild.childNodes.length;s<n;s++)this.node.appendChild(a.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(t){return this.dom=t,this},is:function(t){return function(t,e){return t instanceof e}(this,t)}}}),i.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},i.morph=function(t){return function(e,a){return new i.MorphObj(e,a).at(t)}},i.Situation=i.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(t.duration).valueOf(),this.delay=new i.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(t){this._target=t,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(t,e,a){"object"===n(t)&&(e=t.ease,a=t.delay,t=t.duration);var s=new i.Situation({duration:t||1e3,delay:a||0,ease:i.easing[e||"-"]||e});return this.queue(s),this},target:function(t){return t&&t instanceof i.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.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(t){return("function"==typeof t||t instanceof i.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var a in e.animations){t=this.target()[a](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[a])||(e.animations[a]=[e.animations[a]]);for(var s=t.length;s--;)e.animations[a][s]instanceof i.Number&&(t[s]=new i.Number(t[s])),e.animations[a][s]=t[s].morph(e.animations[a][s])}for(var a in e.attrs)e.attrs[a]=new i.MorphObj(this.target().attr(a),e.attrs[a]);for(var a in e.styles)e.styles[a]=new i.MorphObj(this.target().style(a),e.styles[a]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",(function i(a){a.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))})),this._callStart()},during:function(t){var e=this.last(),a=function(a){a.detail.situation==e&&t.call(this,a.detail.pos,i.morph(a.detail.pos),a.detail.eased,e)};return this.target().off("during.fx",a).on("during.fx",a),this.after((function(){this.off("during.fx",a)})),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,a;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||i<this.situation.loops?(this.pos=e-i,a=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,a=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-a)%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 s=this.situation.ease(this.pos);for(var n in this.situation.once)n>this.lastPos&&n<=s&&(this.situation.once[n].call(this.target(),this.pos,s),delete this.situation.once[n]);return this.active&&this.target().fire("during",{pos:this.pos,eased:s,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(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=s,this):this},eachAt:function(){var t,e=this,a=this.target(),s=this.situation;for(var n in s.animations)t=[].concat(s.animations[n]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a[n].apply(a,t);for(var n in s.attrs)t=[n].concat(s.attrs[n]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.attr.apply(a,t);for(var n in s.styles)t=[n].concat(s.styles[n]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.style.apply(a,t);if(s.transforms.length){t=s.initialTransformation,n=0;for(var r=s.transforms.length;n<r;n++){var o=s.transforms[n];o instanceof i.Matrix?t=o.relative?t.multiply((new i.Matrix).morph(o).at(s.ease(this.pos))):t.morph(o).at(s.ease(this.pos)):(o.relative||o.undo(t.extract()),t=t.multiply(o.at(s.ease(this.pos))))}a.matrix(t)}return this},once:function(t,e,i){var a=this.last();return i||(t=a.ease(t)),a.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:i.Element,construct:{animate:function(t,e,a){return(this.fx||(this.fx=new i.FX(this))).animate(t,e,a)},delay:function(t){return(this.fx||(this.fx=new i.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),i.MorphObj=i.invent({create:function(t,e){return i.Color.isColor(e)?new i.Color(t).morph(e):i.regex.delimiter.test(t)?i.regex.pathLetters.test(t)?new i.PathArray(t).morph(e):new i.Array(t).morph(e):i.regex.numberAndUnit.test(e)?new i.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),i.extend(i.FX,{attr:function(t,e,i){if("object"===n(t))for(var a in t)this.attr(a,t[a]);else this.add(t,e,"attrs");return this},plot:function(t,e,i,a){return 4==arguments.length?this.plot([t,e,i,a]):this.add("plot",new(this.target().morphArray)(t))}}),i.Box=i.invent({create:function(t,e,a,s){if(!("object"!==n(t)||t instanceof i.Element))return i.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);4==arguments.length&&(this.x=t,this.y=e,this.width=a,this.height=s),m(this)}}),i.BBox=i.invent({create:function(t){if(i.Box.apply(this,[].slice.call(arguments)),t instanceof i.Element){var a;try{if(!e.documentElement.contains){for(var s=t.node;s.parentNode;)s=s.parentNode;if(s!=e)throw new Error("Element not in the dom")}a=t.node.getBBox()}catch(e){if(t instanceof i.Shape){i.parser.draw||i.prepare();var n=t.clone(i.parser.draw.instance).show();a=n.node.getBBox(),n.remove()}else a={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}i.Box.call(this,a)}},inherit:i.Box,parent:i.Element,construct:{bbox:function(){return new i.BBox(this)}}}),i.BBox.prototype.constructor=i.BBox,i.Matrix=i.invent({create:function(t){var e=f([1,0,0,1,0,0]);t=null===t?e:t instanceof i.Element?t.matrixify():"string"==typeof t?f(t.split(i.regex.delimiter).map(parseFloat)):6==arguments.length?f([].slice.call(arguments)):Array.isArray(t)?f(t):t&&"object"===n(t)?t:e;for(var a=v.length-1;a>=0;--a)this[v[a]]=null!=t[v[a]]?t[v[a]]:e[v[a]]},extend:{extract:function(){var t=g(this,0,1);g(this,1,0);var e=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(t){return this.destination=new i.Matrix(t),this},multiply:function(t){return new i.Matrix(this.native().multiply(function(t){return t instanceof i.Matrix||(t=new i.Matrix(t)),t}(t).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(t,e){return new i.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=i.parser.native.createSVGMatrix(),e=v.length-1;e>=0;e--)t[v[e]]=this[v[e]];return t},toString:function(){return"matrix("+b(this.a)+","+b(this.b)+","+b(this.c)+","+b(this.d)+","+b(this.e)+","+b(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new i.Matrix(e)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(t,e){var i;i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===n(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(t,e){return this.destination=new i.Point(t,e),this}}}),i.extend(i.Element,{point:function(t,e){return new i.Point(t,e).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(t,e,a){if(null==t){for(t={},a=(e=this.node.attributes).length-1;a>=0;a--)t[e[a].nodeName]=i.regex.isNumber.test(e[a].nodeValue)?parseFloat(e[a].nodeValue):e[a].nodeValue;return t}if("object"===n(t))for(var s in t)this.attr(s,t[s]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?i.defaults.attrs[t]:i.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(i.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof i.Image&&(e=this.doc().defs().pattern(0,0,(function(){this.add(e)})))),"number"==typeof e?e=new i.Number(e):i.Color.isColor(e)?e=new i.Color(e):Array.isArray(e)&&(e=new i.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof a?this.node.setAttributeNS(a,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),i.extend(i.Element,{transform:function(t,e){var a;return"object"!==n(t)?(a=new i.Matrix(this).extract(),"string"==typeof t?a[t]:a):(a=new i.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(a=e?a.multiply(new i.Matrix(t)):new i.Matrix(t)),this.attr("transform",a))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(i.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(f(e[1])):t[e[0]].apply(t,e[1])}),new i.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=t[i];else if(t&&"object"===n(t))for(i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=t[this.arguments[i]];this.inversed=!1,!0===e&&(this.inversed=!0)}}),i.Translate=i.invent({parent:i.Matrix,inherit:i.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),i.extend(i.Element,{style:function(t,e){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===n(t))for(var a in t)this.style(a,t[a]);else{if(!i.regex.isCss.test(t))return this.node.style[h(t)];for(t=t.split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/)}));e=t.pop();)this.style(e[0],e[1])}else this.node.style[h(t)]=null===e||i.regex.isBlank.test(e)?"":e;return this}}),i.Parent=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element,extend:{children:function(){return i.utils.map(i.utils.filterSVGElements(this.node.childNodes),(function(t){return i.adopt(t)}))},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)>=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return i.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var a=this.children(),s=0,n=a.length;s<n;s++)a[s]instanceof i.Element&&t.apply(a[s],[s,a]),e&&a[s]instanceof i.Container&&a[s].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.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()}}}),i.extend(i.Parent,{ungroup:function(t,e){return 0===e||this instanceof i.Defs||this.node==i.parser.draw||(t=t||(this instanceof i.Doc?this:this.parent(i.Parent)),e=e||1/0,this.each((function(){return this instanceof i.Defs?this:this instanceof i.Parent?this.ungroup(t,e-1):this.toParent(t)})),this.node.firstChild||this.remove()),this},flatten:function(t,e){return this.ungroup(t,e)}}),i.Container=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Parent}),i.ViewBox=i.invent({parent:i.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(t){i.Element.prototype[t]=function(e){return i.on(this.node,t,e),this}})),i.listeners=[],i.handlerMap=[],i.listenerId=0,i.on=function(t,e,a,s,n){var r=a.bind(s||t.instance||t),o=(i.handlerMap.indexOf(t)+1||i.handlerMap.push(t))-1,l=e.split(".")[0],c=e.split(".")[1]||"*";i.listeners[o]=i.listeners[o]||{},i.listeners[o][l]=i.listeners[o][l]||{},i.listeners[o][l][c]=i.listeners[o][l][c]||{},a._svgjsListenerId||(a._svgjsListenerId=++i.listenerId),i.listeners[o][l][c][a._svgjsListenerId]=r,t.addEventListener(l,r,n||{passive:!0})},i.off=function(t,e,a){var s=i.handlerMap.indexOf(t),n=e&&e.split(".")[0],r=e&&e.split(".")[1],o="";if(-1!=s)if(a){if("function"==typeof a&&(a=a._svgjsListenerId),!a)return;i.listeners[s][n]&&i.listeners[s][n][r||"*"]&&(t.removeEventListener(n,i.listeners[s][n][r||"*"][a],!1),delete i.listeners[s][n][r||"*"][a])}else if(r&&n){if(i.listeners[s][n]&&i.listeners[s][n][r]){for(var l in i.listeners[s][n][r])i.off(t,[n,r].join("."),l);delete i.listeners[s][n][r]}}else if(r)for(var c in i.listeners[s])for(var o in i.listeners[s][c])r===o&&i.off(t,[c,r].join("."));else if(n){if(i.listeners[s][n]){for(var o in i.listeners[s][n])i.off(t,[n,o].join("."));delete i.listeners[s][n]}}else{for(var c in i.listeners[s])i.off(t,c);delete i.listeners[s],delete i.handlerMap[s]}},i.extend(i.Element,{on:function(t,e,a,s){return i.on(this.node,t,e,a,s),this},off:function(t,e){return i.off(this.node,t,e),this},fire:function(e,a){return e instanceof t.Event?this.node.dispatchEvent(e):this.node.dispatchEvent(e=new i.CustomEvent(e,{detail:a,cancelable:!0})),this._event=e,this},event:function(){return this._event}}),i.Defs=i.invent({create:"defs",inherit:i.Container}),i.G=i.invent({create:"g",inherit:i.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)}},construct:{group:function(){return this.put(new i.G)}}}),i.Doc=i.invent({create:function(t){t&&("svg"==(t="string"==typeof t?e.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,i.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:i.Container,extend:{namespace:function(){return this.attr({xmlns:i.ns,version:"1.1"}).attr("xmlns:xlink",i.xlink,i.xmlns).attr("xmlns:svgjs",i.svgjs,i.xmlns)},defs:function(){var t;return this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=i.adopt(t):this._defs=new i.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?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,i.parser.draw&&!i.parser.draw.parentNode&&this.node.appendChild(i.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=x(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),i.extend(i.Element,{}),i.Gradient=i.invent({create:function(t){this.constructor.call(this,i.create(t+"Gradient")),this.type=t},inherit:i.Container,extend:{at:function(t,e,a){return this.put(new i.Stop).update(t,e,a)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,a){return"transform"==t&&(t="gradientTransform"),i.Container.prototype.attr.call(this,t,e,a)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),i.extend(i.Gradient,i.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new i.Number(t),fy:new i.Number(e)}):this.attr({x1:new i.Number(t),y1:new i.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new i.Number(t),cy:new i.Number(e)}):this.attr({x2:new i.Number(t),y2:new i.Number(e)})}}),i.extend(i.Defs,{gradient:function(t,e){return this.put(new i.Gradient(t)).update(e)}}),i.Stop=i.invent({create:"stop",inherit:i.Element,extend:{update:function(t){return("number"==typeof t||t instanceof i.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new i.Number(t.offset)),this}}}),i.Pattern=i.invent({create:"pattern",inherit:i.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,a){return"transform"==t&&(t="patternTransform"),i.Container.prototype.attr.call(this,t,e,a)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),i.extend(i.Defs,{pattern:function(t,e,a){return this.put(new i.Pattern).update(a).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),i.Shape=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element}),i.Symbol=i.invent({create:"symbol",inherit:i.Container,construct:{symbol:function(){return this.put(new i.Symbol)}}}),i.Use=i.invent({create:"use",inherit:i.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,i.xlink)}},construct:{use:function(t,e){return this.put(new i.Use).element(t,e)}}}),i.Rect=i.invent({create:"rect",inherit:i.Shape,construct:{rect:function(t,e){return this.put(new i.Rect).size(t,e)}}}),i.Circle=i.invent({create:"circle",inherit:i.Shape,construct:{circle:function(t){return this.put(new i.Circle).rx(new i.Number(t).divide(2)).move(0,0)}}}),i.extend(i.Circle,i.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),i.Ellipse=i.invent({create:"ellipse",inherit:i.Shape,construct:{ellipse:function(t,e){return this.put(new i.Ellipse).size(t,e).move(0,0)}}}),i.extend(i.Ellipse,i.Rect,i.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),i.extend(i.Circle,i.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new i.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new i.Number(t).divide(2))},size:function(t,e){var a=p(this,t,e);return this.rx(new i.Number(a.width).divide(2)).ry(new i.Number(a.height).divide(2))}}),i.Line=i.invent({create:"line",inherit:i.Shape,extend:{array:function(){return new i.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,a,s){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:a,y2:s}:new i.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=p(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,a,s){return i.Line.prototype.plot.apply(this.put(new i.Line),null!=t?[t,e,a,s]:[0,0,0,0])}}}),i.Polyline=i.invent({create:"polyline",inherit:i.Shape,construct:{polyline:function(t){return this.put(new i.Polyline).plot(t||new i.PointArray)}}}),i.Polygon=i.invent({create:"polygon",inherit:i.Shape,construct:{polygon:function(t){return this.put(new i.Polygon).plot(t||new i.PointArray)}}}),i.extend(i.Polyline,i.Polygon,{array:function(){return this._array||(this._array=new i.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new i.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=p(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),i.extend(i.Line,i.Polyline,i.Polygon,{morphArray:i.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),i.Path=i.invent({create:"path",inherit:i.Shape,extend:{morphArray:i.PathArray,array:function(){return this._array||(this._array=new i.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new i.PathArray(t))},clear:function(){return delete this._array,this}},construct:{path:function(t){return this.put(new i.Path).plot(t||new i.PathArray)}}}),i.Image=i.invent({create:"image",inherit:i.Shape,extend:{load:function(e){if(!e)return this;var a=this,s=new t.Image;return i.on(s,"load",(function(){i.off(s);var t=a.parent(i.Pattern);null!==t&&(0==a.width()&&0==a.height()&&a.size(s.width,s.height),t&&0==t.width()&&0==t.height()&&t.size(a.width(),a.height()),"function"==typeof a._loaded&&a._loaded.call(a,{width:s.width,height:s.height,ratio:s.width/s.height,url:e}))})),i.on(s,"error",(function(t){i.off(s),"function"==typeof a._error&&a._error.call(a,t)})),this.attr("href",s.src=this.src=e,i.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,a){return this.put(new i.Image).load(t).size(e||0,a||e||0)}}}),i.Text=i.invent({create:function(){this.constructor.call(this,i.create("text")),this.dom.leading=new i.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",i.defaults.attrs["font-family"])},inherit:i.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,a=0,s=e.length;a<s;++a)0!=a&&3!=e[a].nodeType&&1==i.adopt(e[a]).dom.newLined&&(t+="\n"),t+=e[a].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else{a=0;for(var n=(t=t.split("\n")).length;a<n;a++)this.tspan(t[a]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new i.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,e=i.utils.map(i.utils.filterSVGElements(t.childNodes),(function(t){return i.adopt(t)}));return new i.Set(e)},rebuild:function(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){var e=this,a=0,s=this.dom.leading*new i.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?a+=s:(this.attr("dy",s+a),a=0))})),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new i.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new i.Text).text(t)},plain:function(t){return this.put(new i.Text).plain(t)}}}),i.Tspan=i.invent({create:"tspan",inherit:i.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(i.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),i.extend(i.Text,i.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(e.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,a=new i.Tspan;return!1===this._build&&this.clear(),e.appendChild(a.node),a.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),i.TextPath=i.invent({create:"textPath",inherit:i.Parent,parent:i.Text,construct:{morphArray:i.PathArray,array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return i.adopt(this.node.firstChild)}}}),i.Nested=i.invent({create:function(){this.constructor.call(this,i.create("svg")),this.style("overflow","visible")},inherit:i.Container,construct:{nested:function(){return this.put(new i.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function c(t,e,a,s){return a+s.replace(i.regex.dots," .")}function h(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function u(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function p(t,e,i){if(null==e||null==i){var a=t.bbox();null==e?e=a.width/a.height*i:null==i&&(i=a.height/a.width*e)}return{width:e,height:i}}function g(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function f(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function x(e){for(var a=e.childNodes.length-1;a>=0;a--)e.childNodes[a]instanceof t.SVGElement&&x(e.childNodes[a]);return i.adopt(e).id(i.eid(e.nodeName))}function m(t){return null==t.x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function b(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||i.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var a=l[t].length-1;a>=0;a--)null!=e[l[t][a]]&&this.attr(l.prefix(t,l[t][a]),e[l[t][a]]);return this},i.extend(i.Element,i.FX,e)})),i.extend(i.Element,i.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new i.Number(t).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(t){return this.y(new i.Number(t).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),i.Set=i.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e<i;e++)this.members.push(t[e]);return this},remove:function(t){var e=this.index(t);return e>-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)>=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new i.Set(t)}}}),i.FX.Set=i.invent({create:function(t){this.set=t}}),i.Set.inherit=function(){var t=[];for(var e in i.Shape.prototype)"function"==typeof i.Shape.prototype[e]&&"function"!=typeof i.Set.prototype[e]&&t.push(e);for(var e in t.forEach((function(t){i.Set.prototype[t]=function(){for(var e=0,a=this.members.length;e<a;e++)this.members[e]&&"function"==typeof this.members[e][t]&&this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new i.FX.Set(this)):this}})),t=[],i.FX.prototype)"function"==typeof i.FX.prototype[e]&&"function"!=typeof i.FX.Set.prototype[e]&&t.push(e);t.forEach((function(t){i.FX.Set.prototype[t]=function(){for(var e=0,i=this.set.members.length;e<i;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}}))},i.extend(i.Element,{}),i.extend(i.Element,{remember:function(t,e){if("object"===n(arguments[0]))for(var i in t)this.remember(i,t[i]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(t){var a=e.getElementById(function(t){var e=(t||"").toString().match(i.regex.reference);if(e)return e[1]}(t)||t);return i.adopt(a)},i.select=function(t,a){return new i.Set(i.utils.map((a||e).querySelectorAll(t),(function(t){return i.adopt(t)})))},i.extend(i.Parent,{select:function(t){return i.select(t,this.node)}});var v="abcdef".split("");if("function"!=typeof t.CustomEvent){var y=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=e.createEvent("CustomEvent");return a.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),a};y.prototype=t.Event.prototype,i.CustomEvent=y}else i.CustomEvent=t.CustomEvent;return i},void 0!==(a=function(){return zt(It,It.document)}.call(e,i,e,t))&&(t.exports=a),
29
- /*! svg.filter.js - v2.0.2 - 2016-02-24
30
- * https://github.com/wout/svg.filter.js
31
- * Copyright (c) 2016 Wout Fierens; Licensed MIT */
32
- 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(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,a,s){return this.put(new SVG.DisplacementMapEffect(t,e,i,a,s))},specularLighting:function(t,e,i,a){return this.put(new SVG.SpecularLightingEffect(t,e,i,a))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,a,s){return this.put(new SVG.TurbulenceEffect(t,e,i,a,s))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&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(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,a){return this.parent()&&this.parent().displacementMap(this,t,e,i,a)},specularLighting:function(t,e,i,a){return this.parent()&&this.parent().specularLighting(t,e,i,a).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,a,s){return this.parent()&&this.parent().turbulence(t,e,i,a,s).in(this)}};SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var e={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=s(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=s(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,a,s){this.attr({in:t,in2:e,scale:i,xChannelSelector:a,yChannelSelector:s})},gaussianBlur:function(t,e){null!=t||null!=e?this.attr("stdDeviation",n(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,a,s){this.attr({numOctaves:e,seed:i,stitchTiles:a,baseFrequency:t,type:s})}},i={merge:function(){var t;if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each((function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))}))}else{t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))}},componentTransfer:function(t){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(t){this[t]=new(SVG["Func"+t.toUpperCase()])("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}.bind(this)),t)for(var e in t.rgb&&(["r","g","b"].forEach(function(e){this[e].attr(t.rgb)}.bind(this)),delete t.rgb),t)this[e].attr(t[e])},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,a){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:a})}},a={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,a,s,n){this.attr({x:t,y:e,z:i,pointsAtX:a,pointsAtY:s,pointsAtZ:n})},mergeNode:function(t){this.attr("in",t)}};function s(t){return Array.isArray(t)&&(t=new SVG.Array(t)),t.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function n(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,a=[];e<i;e++)a.push(t[e]);return a.join(" ")}function r(){var t=function(){};for(var e in"function"==typeof arguments[arguments.length-1]&&(t=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[e])t(arguments[e][i],i,arguments[e])}["r","g","b","a"].forEach((function(t){a["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){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])}}})),r(e,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),r(i,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),r(a,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),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 t(t,s,n,r,o,l,c){for(var h=t.slice(s,n||c),d=r.slice(o,l||c),u=0,p={pos:[0,0],start:[0,0]},g={pos:[0,0],start:[0,0]};h[u]=e.call(p,h[u]),d[u]=e.call(g,d[u]),h[u][0]!=d[u][0]||"M"==h[u][0]||"A"==h[u][0]&&(h[u][4]!=d[u][4]||h[u][5]!=d[u][5])?(Array.prototype.splice.apply(h,[u,1].concat(a.call(p,h[u]))),Array.prototype.splice.apply(d,[u,1].concat(a.call(g,d[u])))):(h[u]=i.call(p,h[u]),d[u]=i.call(g,d[u])),++u!=h.length||u!=d.length;)u==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]),u==d.length&&d.push(["C",g.pos[0],g.pos[1],g.pos[0],g.pos[1],g.pos[0],g.pos[1]]);return{start:h,dest:d}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function a(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":t=(e=function(t,e){var i,a,s,n,r,o,l,c,h,d,u,p,g,f,x,m,b,v,y,w,k,A,S,C,L,P,T=Math.abs(e[1]),M=Math.abs(e[2]),D=e[3]%360,E=e[4],I=e[5],z=e[6],O=e[7],Y=new SVG.Point(t),F=new SVG.Point(z,O),X=[];if(0===T||0===M||Y.x===F.x&&Y.y===F.y)return[["C",Y.x,Y.y,F.x,F.y,F.x,F.y]];for((a=(i=new SVG.Point((Y.x-F.x)/2,(Y.y-F.y)/2).transform((new SVG.Matrix).rotate(D))).x*i.x/(T*T)+i.y*i.y/(M*M))>1&&(T*=a=Math.sqrt(a),M*=a),s=(new SVG.Matrix).rotate(D).scale(1/T,1/M).rotate(-D),Y=Y.transform(s),o=(n=[(F=F.transform(s)).x-Y.x,F.y-Y.y])[0]*n[0]+n[1]*n[1],r=Math.sqrt(o),n[0]/=r,n[1]/=r,l=o<4?Math.sqrt(1-o/4):0,E===I&&(l*=-1),c=new SVG.Point((F.x+Y.x)/2+l*-n[1],(F.y+Y.y)/2+l*n[0]),h=new SVG.Point(Y.x-c.x,Y.y-c.y),d=new SVG.Point(F.x-c.x,F.y-c.y),u=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(u*=-1),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1),I&&u>p&&(p+=2*Math.PI),!I&&u<p&&(p-=2*Math.PI),m=[],b=u,g=(p-u)/(f=Math.ceil(2*Math.abs(u-p)/Math.PI)),x=4*Math.tan(g/4)/3,k=0;k<=f;k++)y=Math.cos(b),v=Math.sin(b),w=new SVG.Point(c.x+y,c.y+v),m[k]=[new SVG.Point(w.x+x*v,w.y-x*y),w,new SVG.Point(w.x-x*v,w.y+x*y)],b+=g;for(m[0][0]=m[0][1].clone(),m[m.length-1][2]=m[m.length-1][1].clone(),s=(new SVG.Matrix).rotate(D).scale(T,M).rotate(-D),k=0,A=m.length;k<A;k++)m[k][0]=m[k][0].transform(s),m[k][1]=m[k][1].transform(s),m[k][2]=m[k][2].transform(s);for(k=1,A=m.length;k<A;k++)S=(w=m[k-1][2]).x,C=w.y,L=(w=m[k][0]).x,P=w.y,z=(w=m[k][1]).x,O=w.y,X.push(["C",S,C,L,P,z,O]);return X}(this.pos,t))[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function s(t,e){if(!1===e)return!1;for(var i=e,a=t.length;i<a;++i)if("M"==t[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(e){for(var i=this.value,a=this.parse(e),n=0,r=0,o=!1,l=!1;!1!==n||!1!==r;){var c;o=s(i,!1!==n&&n+1),l=s(a,!1!==r&&r+1),!1===n&&(n=0==(c=new SVG.PathArray(h.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===r&&(r=0==(c=new SVG.PathArray(h.dest).bbox()).height||0==c.width?a.push(a[0])-1:a.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var h=t(i,n,o,a,r,l);i=i.slice(0,n).concat(h.start,!1===o?[]:i.slice(o)),a=a.slice(0,r).concat(h.dest,!1===l?[]:a.slice(l)),n=!1!==o&&n+h.start.length,r=!1!==l&&r+h.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=a,this}})}(),
33
- /*! svg.draggable.js - v2.2.2 - 2019-01-08
34
- * https://github.com/svgdotjs/svg.draggable.js
35
- * Copyright (c) 2019 Wout Fierens; Licensed MIT */
36
- function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",(function(t){i.start(t)})),this.el.on("touchstart.drag",(function(t){i.start(t)}))},t.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},t.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},t.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.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 i,a=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:a,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(t){e.drag(t)})),SVG.on(window,"touchmove.drag",(function(t){e.drag(t)})),SVG.on(window,"mouseup.drag",(function(t){e.end(t)})),SVG.on(window,"touchend.drag",(function(t){e.end(t)})),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},t.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),a=this.startPoints.box.x+i.x-this.startPoints.point.x,n=this.startPoints.box.y+i.y-this.startPoints.point.y,r=this.constraint,o=i.x-this.startPoints.point.x,l=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof r){var c=r.call(this.el,a,n,this.m);"boolean"==typeof c&&(c={x:c,y:c}),!0===c.x?this.el.x(a):!1!==c.x&&this.el.x(c.x),!0===c.y?this.el.y(n):!1!==c.y&&this.el.y(c.y)}else"object"==s(r)&&(null!=r.minX&&a<r.minX?o=(a=r.minX)-this.startPoints.box.x:null!=r.maxX&&a>r.maxX-e.width&&(o=(a=r.maxX-e.width)-this.startPoints.box.x),null!=r.minY&&n<r.minY?l=(n=r.minY)-this.startPoints.box.y:null!=r.maxY&&n>r.maxY-e.height&&(l=(n=r.maxY-e.height)-this.startPoints.box.y),null!=r.snapToGrid&&(a-=a%r.snapToGrid,n-=n%r.snapToGrid,o-=o%r.snapToGrid,l-=l%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:l},!0):this.el.move(a,n));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,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,i){"function"!=typeof e&&"object"!=s(e)||(i=e,e=!0);var a=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?a.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.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,e,i){var a="string"!=typeof t?t:e[t];return i?a/2:a},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],void 0!==e[s]&&(this.options[s]=e[s]);var n=["points","pointsExclude"];for(var s in n){var r=this.options[n[s]];"string"==typeof r?r=r.length>0?r.split(/\s*,\s*/i):[]:"boolean"==typeof r&&"points"===n[s]&&(r=r?a:[]),this.options[n[s]]=r}this.options.points=[a,this.options.points].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map((function(e){return[e[0]-t.x,e[1]-t.y]}))},t.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,a=e.length;i<a;++i){var s=function(e){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var a=i.pageX||i.touches[0].pageX,s=i.pageY||i.touches[0].pageY;t.el.fire("point",{x:a,y:s,i:e,event:i})}}(i),n=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",s).on("mousedown",s);this.pointSelection.set.add(n)}},t.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if("function"==typeof i)return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},t.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},t.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},t.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each((function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])}))},t.prototype.updateRectSelection=function(){var t=this,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map((function(i,a){var s=t.pointCoords(i,e);t.rectSelection.set.get(a+1).center(s.x,s.y)})),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.width/2,20)}},t.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function a(t){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var a=i.pageX||i.touches[0].pageX,s=i.pageY||i.touches[0].pageY;e.el.fire(t,{x:a,y:s,event:i})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(t,s){var n=e.pointCoords(t,i),r=e.drawPoint(n.x,n.y).attr("class",e.options.classPoints+"_"+t).on("mousedown",a(t)).on("touchstart",a(t));e.rectSelection.set.add(r)})),this.rectSelection.set.each((function(){this.addClass(e.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var s=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var i=t.pageX||t.touches[0].pageX,a=t.pageY||t.touches[0].pageY;e.el.fire("rot",{x:i,y:a,event:t})},n=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",s).on("mousedown",s);this.rectSelection.set.add(n)}},t.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},t.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){t.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(t){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){t.handler()}))},t.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,i){return"object"==s(e)&&(i=e,e=!0),(this.remember("_selectHandler")||new t(this)).init(void 0===e||e,i||{}),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 t(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}t.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},t.prototype._extractPosition=function(t){return{x:null!=t.clientX?t.clientX:t.touches[0].clientX,y:null!=t.clientY?t.clientY:t.touches[0].clientY}},t.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rb.resize",(function(t){e.resize(t||window.event)})),this.el.on("lb.resize",(function(t){e.resize(t||window.event)})),this.el.on("t.resize",(function(t){e.resize(t||window.event)})),this.el.on("r.resize",(function(t){e.resize(t||window.event)})),this.el.on("b.resize",(function(t){e.resize(t||window.event)})),this.el.on("l.resize",(function(t){e.resize(t||window.event)})),this.el.on("rot.resize",(function(t){e.resize(t||window.event)})),this.el.on("point.resize",(function(t){e.resize(t||window.event)})),this.update()}},t.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},t.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i){var a=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[a[t.detail.i][0],a[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(t,e){var i=this.snapToGrid(t,e);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,a=e+this.parameters.p.y,s=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),n=Math.atan2(a-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),r=this.parameters.rotation+180*(n-s)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(r-r%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),a=this.el.array().valueOf();a[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],a[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(a)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"touchend.resize",(function(){e.done()})),SVG.on(window,"mousemove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"mouseup.resize",(function(){e.done()}))},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),a=i.x-this.parameters.p.x,s=i.y-this.parameters.p.y;this.lastUpdateCall=[a,s],this.calc(a,s),this.el.fire("resizing",{dx:a,dy:s,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.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")},t.prototype.snapToGrid=function(t,e,i,a){var s;return void 0!==a?s=[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:(i=null==i?3:i,s=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(s[0]-=this.options.snapToGrid),e<0&&(s[1]-=this.options.snapToGrid),t-=Math.abs(s[0])<this.options.snapToGrid/2?s[0]:s[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(s[1])<this.options.snapToGrid/2?s[1]:s[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,a)},t.prototype.constraintToBox=function(t,e,i,a){var s,n,r=this.options.constraint||{};return void 0!==a?(s=i,n=a):(s=this.parameters.box.x+(1&i?0:this.parameters.box.width),n=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==r.minX&&s+t<r.minX&&(t=r.minX-s),void 0!==r.maxX&&s+t>r.maxX&&(t=r.maxX-s),void 0!==r.minY&&n+e<r.minY&&(e=r.minY-n),void 0!==r.maxY&&n+e>r.maxY&&(e=r.maxY-n),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+t[0],n=this.parameters.box.height-t[1],r=s/n;return r<a?(i[1]=s/a-this.parameters.box.height,e&&(i[1]=-i[1])):r>a&&(i[0]=this.parameters.box.width-n*a,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),function(t,e){void 0===e&&(e={});var i=e.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}}('.apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n}\n\n\n.apexcharts-inner {\n position: relative;\n}\n\n.apexcharts-text tspan {\n font-family: inherit;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, 0.8);\n}\n\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-goals-group, \n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n display: flex;\n}\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0 !important;\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-box, .apexcharts-custom-tooltip {\n padding: 4px 8px;\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse;\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0;\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: bold;\n display: block;\n margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-left: -6px;\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #ECEFF1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-top: -6px;\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1;\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none;\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_boundingRect, .svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden;\n}\n.apexcharts-selection-rect + g .svg_select_boundingRect,\n.apexcharts-selection-rect + g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n\n.apexcharts-selection-rect + g .svg_select_points_l,\n.apexcharts-selection-rect + g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon,\n.apexcharts-reset-icon,\n.apexcharts-pan-icon,\n.apexcharts-selection-icon,\n.apexcharts-menu-icon,\n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {\n fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {\n fill: #008FFB;\n}\n\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon,\n.apexcharts-menu-icon {\n position: relative;\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-reset-icon,\n.apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008FFB;\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee;\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n }\n}\n\n.apexcharts-datalabel.apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabels,\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-gridline,\n.apexcharts-annotation-rect,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-radar-series path,\n.apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n\n/* Resize generated styles */\n\n@keyframes resizeanim {\n from {\n opacity: 0;\n }\n to {\n opacity: 0;\n }\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n}\n\n.resize-triggers,\n.resize-triggers>div,\n.contract-trigger:before {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.resize-triggers>div {\n background: #eee;\n overflow: auto;\n}\n\n.contract-trigger:before {\n width: 200%;\n height: 200%;\n}'),function(){function t(t){var e=t.__resizeTriggers__,i=e.firstElementChild,a=e.lastElementChild,s=i?i.firstElementChild:null;a&&(a.scrollLeft=a.scrollWidth,a.scrollTop=a.scrollHeight),s&&(s.style.width=i.offsetWidth+1+"px",s.style.height=i.offsetHeight+1+"px"),i&&(i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight)}function e(e){var i=this;t(this),this.__resizeRAF__&&n(this.__resizeRAF__),this.__resizeRAF__=s((function(){(function(t){return t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height})(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach((function(t){t.call(e)})))}))}var i,a,s=(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)},function(t){return i(t)}),n=(a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(t){return a(t)}),r=!1,o="animationstart",l="Webkit Moz O ms".split(" "),c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(r=!0),!1===r)for(var d=0;d<l.length;d++)if(void 0!==h.style[l[d]+"AnimationName"]){o=c[d];break}window.addResizeListener=function(i,a){i.__resizeTriggers__||("static"==getComputedStyle(i).position&&(i.style.position="relative"),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=document.createElement("div")).className="resize-triggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),t(i),i.addEventListener("scroll",e,!0),o&&i.__resizeTriggers__.addEventListener(o,(function(e){"resizeanim"==e.animationName&&t(i)}))),i.__resizeListeners__.push(a)},window.removeResizeListener=function(t,i){t&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(i),1),t.__resizeListeners__.length||(t.removeEventListener("scroll",e),t.__resizeTriggers__.parentNode&&(t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__))))}}(),void 0===window.Apex&&(window.Apex={});var Rt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new v(this.ctx),this.ctx.axes=new et(this.ctx),this.ctx.core=new Ft(this.ctx.el,this.ctx),this.ctx.config=new H({}),this.ctx.data=new j(this.ctx),this.ctx.grid=new Z(this.ctx),this.ctx.graphics=new w(this.ctx),this.ctx.coreUtils=new S(this.ctx),this.ctx.crosshairs=new it(this.ctx),this.ctx.events=new K(this.ctx),this.ctx.exports=new U(this.ctx),this.ctx.localization=new tt(this.ctx),this.ctx.options=new T,this.ctx.responsive=new at(this.ctx),this.ctx.series=new Y(this.ctx),this.ctx.theme=new st(this.ctx),this.ctx.formatters=new V(this.ctx),this.ctx.titleSubtitle=new nt(this.ctx),this.ctx.legend=new ut(this.ctx),this.ctx.toolbar=new pt(this.ctx),this.ctx.dimensions=new ht(this.ctx),this.ctx.updateHelpers=new Xt(this.ctx),this.ctx.zoomPanSelection=new gt(this.ctx),this.ctx.w.globals.tooltip=new wt(this.ctx)}}]),t}(),Nt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return l(t,[{key:"clear",value:function(t){var e=t.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:e})}},{key:"killSVG",value:function(t){t.each((function(t,e){this.removeClass("*"),this.off(),this.stop()}),!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach((function(t){s.removeEventListener(t,e.ctx.events.documentEvent)}));var n=this.w.globals.dom;if(null!==this.ctx.el)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.elAnnotations=null,n.elLegendWrap=null,n.baseEl=null,n.elGridRect=null,n.elGridRectMask=null,n.elGridRectMarkerMask=null,n.elForecastMask=null,n.elNonForecastMask=null,n.elDefs=null}}]),t}(),_t=function(){function t(e,i){r(this,t),this.opts=i,this.ctx=this,this.w=new B(i).init(),this.el=e,this.w.globals.cuid=b.randomId(),this.w.globals.chartID=this.w.config.chart.id?b.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Rt(this).initModules(),this.create=b.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return l(t,[{key:"render",value:function(){var t=this;return new Promise((function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var a=t.w.config.chart.events.beforeMount;"function"==typeof a&&a(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),window.addResizeListener(t.el.parentNode,t.parentResizeHandler);var s=t.create(t.w.config.series,{});if(!s)return e(t);t.mount(s).then((function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(s)})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(t,e){var i=this.w;new Rt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new _(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return a.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===a.svgWidth)return a.animationEnded=!0,null;var s=S.checkComboSeries(t);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var n=t.every((function(t){return t.data&&0===t.data.length}));(0===t.length||n)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new E(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),this.dimensions.plotCoords();var r=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(t,r),l=new z(this);l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition();var c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:o,xyRatios:r,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,a=i.w;return new Promise((function(s,n){if(null===i.el)return n(new Error("Not enough data to display or target element not found"));(null===e||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),"treemap"!==a.config.chart.type&&i.axes.drawAxis(a.config.chart.type,e.xyRatios),i.grid=new Z(i);var r=i.grid.drawGrid();i.annotations=new M(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===a.config.grid.position&&r&&a.globals.dom.elGraphical.add(r.el);var o=new q(t.ctx),l=new Q(t.ctx);if(null!==r&&(o.xAxisLabelCorrections(r.xAxisTickWidth),l.setYAxisTextAlignments(),a.config.yaxis.map((function(t,e){-1===a.globals.ignoreYAxisIndexes.indexOf(e)&&l.yAxisTitleRotate(e,t.opposite)}))),"back"===a.config.annotations.position&&(a.globals.dom.Paper.add(a.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),Array.isArray(e.elGraph))for(var c=0;c<e.elGraph.length;c++)a.globals.dom.elGraphical.add(e.elGraph[c]);else a.globals.dom.elGraphical.add(e.elGraph);if("front"===a.config.grid.position&&r&&a.globals.dom.elGraphical.add(r.el),"front"===a.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===a.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"front"===a.config.annotations.position&&(a.globals.dom.Paper.add(a.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isTimelineBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var h=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(t){h[t]=!1}))}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach((function(t){t.method(t.params,!1,t.context)})),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)}))}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),window.removeResizeListener(this.el.parentNode,this.parentResizeHandler);var t=this.w.config.chart.id;t&&Apex._chartInstances.forEach((function(e,i){e.id===b.escapeString(t)&&Apex._chartInstances.splice(i,1)})),new Nt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w;return r.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((function(t,i){return e.updateHelpers._extendSeries(t,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),r.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,a,s,n)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w.config.series.slice();return a.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s<a.length;s++)if(null!==t[s]&&void 0!==t[s])for(var n=0;n<t[s].data.length;n++)a[s].data.push(t[s].data[n]);return i.w.config.series=a,e&&(i.w.globals.initialSeries=b.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise((function(i,a){new Nt(e.ctx).clear({isUpdating:!0});var s=e.create(e.w.config.series,t);if(!s)return i(e);e.mount(s).then((function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)})).catch((function(t){a(t)}))}))}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach((function(t){e.push(t)}))),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter((function(t){if(t.group)return!0})).map((function(e){return t.w.config.chart.group===e.group?e.chart:t}))}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(t,e,a)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(t,e,a)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(t,e,a)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new J(this.ctx);return e.getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new J(this.ctx);return e.getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new U(this.ctx).dataURI(t)}},{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 t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=b.escapeString(t),i=Apex._chartInstances.filter((function(t){return t.id===e}))[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i<e.length;i++)new t(e[i],JSON.parse(e[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var a=null;if(-1!==i.publicMethods.indexOf(e)){for(var s=arguments.length,n=new Array(s>2?s-2:0),r=2;r<s;r++)n[r-2]=arguments[r];a=i[e].apply(i,n)}return a}}},{key:"merge",value:function(t,e){return b.extend(t,e)}}]),t}();t.exports=_t},function(t,e,i){"use strict";
37
- /** @license React v16.14.0
38
- * react.production.min.js
39
- *
40
- * Copyright (c) Facebook, Inc. and its affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */var a=i(7),s=i(31),n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,c=n?Symbol.for("react.strict_mode"):60108,h=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.forward_ref"):60112,g=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.memo"):60115,x=n?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function b(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function w(t,e,i){this.props=t,this.context=e,this.refs=y,this.updater=i||v}function k(){}function A(t,e,i){this.props=t,this.context=e,this.refs=y,this.updater=i||v}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!==a(t)&&"function"!=typeof t&&null!=t)throw Error(b(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},k.prototype=w.prototype;var S=A.prototype=new k;S.constructor=A,s(S,w.prototype),S.isPureReactComponent=!0;var C={current:null},L=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,i){var a,s={},n=null,o=null;if(null!=e)for(a in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(n=""+e.key),e)L.call(e,a)&&!P.hasOwnProperty(a)&&(s[a]=e[a]);var l=arguments.length-2;if(1===l)s.children=i;else if(1<l){for(var c=Array(l),h=0;h<l;h++)c[h]=arguments[h+2];s.children=c}if(t&&t.defaultProps)for(a in l=t.defaultProps)void 0===s[a]&&(s[a]=l[a]);return{$$typeof:r,type:t,key:n,ref:o,props:s,_owner:C.current}}function M(t){return"object"===a(t)&&null!==t&&t.$$typeof===r}var D=/\/+/g,E=[];function I(t,e,i,a){if(E.length){var s=E.pop();return s.result=t,s.keyPrefix=e,s.func=i,s.context=a,s.count=0,s}return{result:t,keyPrefix:e,func:i,context:a,count:0}}function z(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>E.length&&E.push(t)}function O(t,e,i){return null==t?0:function t(e,i,s,n){var l=a(e);"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case o:c=!0}}if(c)return s(n,e,""===i?"."+Y(e,0):i),1;if(c=0,i=""===i?".":i+":",Array.isArray(e))for(var h=0;h<e.length;h++){var d=i+Y(l=e[h],h);c+=t(l,d,s,n)}else if(null===e||"object"!==a(e)?d=null:d="function"==typeof(d=m&&e[m]||e["@@iterator"])?d:null,"function"==typeof d)for(e=d.call(e),h=0;!(l=e.next()).done;)c+=t(l=l.value,d=i+Y(l,h++),s,n);else if("object"===l)throw s=""+e,Error(b(31,"[object Object]"===s?"object with keys {"+Object.keys(e).join(", ")+"}":s,""));return c}(t,"",e,i)}function Y(t,e){return"object"===a(t)&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function F(t,e){t.func.call(t.context,e,t.count++)}function X(t,e,i){var a=t.result,s=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?R(t,a,i,(function(t){return t})):null!=t&&(M(t)&&(t=function(t,e){return{$$typeof:r,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,s+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(D,"$&/")+"/")+i)),a.push(t))}function R(t,e,i,a,s){var n="";null!=i&&(n=(""+i).replace(D,"$&/")+"/"),O(t,X,e=I(e,n,a,s)),z(e)}var N={current:null};function _(){var t=N.current;if(null===t)throw Error(b(321));return t}var H={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:s};e.Children={map:function(t,e,i){if(null==t)return t;var a=[];return R(t,a,null,e,i),a},forEach:function(t,e,i){if(null==t)return t;O(t,F,e=I(null,null,e,i)),z(e)},count:function(t){return O(t,(function(){return null}),null)},toArray:function(t){var e=[];return R(t,e,null,(function(t){return t})),e},only:function(t){if(!M(t))throw Error(b(143));return t}},e.Component=w,e.Fragment=l,e.Profiler=h,e.PureComponent=A,e.StrictMode=c,e.Suspense=g,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,e.cloneElement=function(t,e,i){if(null==t)throw Error(b(267,t));var a=s({},t.props),n=t.key,o=t.ref,l=t._owner;if(null!=e){if(void 0!==e.ref&&(o=e.ref,l=C.current),void 0!==e.key&&(n=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(h in e)L.call(e,h)&&!P.hasOwnProperty(h)&&(a[h]=void 0===e[h]&&void 0!==c?c[h]:e[h])}var h=arguments.length-2;if(1===h)a.children=i;else if(1<h){c=Array(h);for(var d=0;d<h;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:r,type:t.type,key:n,ref:o,props:a,_owner:l}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:u,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:d,_context:t},t.Consumer=t},e.createElement=T,e.createFactory=function(t){var e=T.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:p,render:t}},e.isValidElement=M,e.lazy=function(t){return{$$typeof:x,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:f,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return _().useCallback(t,e)},e.useContext=function(t,e){return _().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return _().useEffect(t,e)},e.useImperativeHandle=function(t,e,i){return _().useImperativeHandle(t,e,i)},e.useLayoutEffect=function(t,e){return _().useLayoutEffect(t,e)},e.useMemo=function(t,e){return _().useMemo(t,e)},e.useReducer=function(t,e,i){return _().useReducer(t,e,i)},e.useRef=function(t){return _().useRef(t)},e.useState=function(t){return _().useState(t)},e.version="16.14.0"},function(t,e,i){"use strict";
45
- /*
46
- object-assign
47
- (c) Sindre Sorhus
48
- @license MIT
49
- */var a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(t){a[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,o,l=r(t),c=1;c<arguments.length;c++){for(var h in i=Object(arguments[c]))s.call(i,h)&&(l[h]=i[h]);if(a){o=a(i);for(var d=0;d<o.length;d++)n.call(i,o[d])&&(l[o[d]]=i[o[d]])}}return l}},function(t,e,i){t.exports=i(33)()},function(t,e,i){"use strict";var a=i(34);function s(){}function n(){}n.resetWarningCache=s,t.exports=function(){function t(t,e,i,s,n,r){if(r!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function e(){return t}t.isRequired=t;var i={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:n,resetWarningCache:s};return i.PropTypes=i,i}},function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,i){var a=i(7);
50
- /*!
51
- *
52
- * plugins/ranges.js
53
- * Litepicker v2.0.11 (https://github.com/wakirin/Litepicker)
54
- * Package: litepicker (https://www.npmjs.com/package/litepicker)
55
- * License: MIT (https://github.com/wakirin/Litepicker/blob/master/LICENCE.md)
56
- * Copyright 2019-2021 Rinat G.
57
- *
58
- * Hash: 277f45be8f40444f8bed
59
- *
60
- */!function(t){var e={};function i(a){if(e[a])return e[a].exports;var s=e[a]={i:a,l:!1,exports:{}};return t[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==a(t)&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(s,n,function(e){return t[e]}.bind(null,n));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=8)}([function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,a,s,n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(i=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(s," */")),l=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(l).concat([o]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,a){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(a)for(var n=0;n<this.length;n++){var r=this[n][0];null!=r&&(s[r]=!0)}for(var o=0;o<t.length;o++){var l=[].concat(t[o]);a&&s[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},function(t,e,i){"use strict";var s,n={},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}();function o(t,e){for(var i=[],a={},s=0;s<t.length;s++){var n=t[s],r=e.base?n[0]+e.base:n[0],o={css:n[1],media:n[2],sourceMap:n[3]};a[r]?a[r].parts.push(o):i.push(a[r]={id:r,parts:[o]})}return i}function l(t,e){for(var i=0;i<t.length;i++){var a=t[i],s=n[a.id],r=0;if(s){for(s.refs++;r<s.parts.length;r++)s.parts[r](a.parts[r]);for(;r<a.parts.length;r++)s.parts.push(x(a.parts[r],e))}else{for(var o=[];r<a.parts.length;r++)o.push(x(a.parts[r],e));n[a.id]={id:a.id,refs:1,parts:o}}}}function c(t){var e=document.createElement("style");if(void 0===t.attributes.nonce){var a=i.nc;a&&(t.attributes.nonce=a)}if(Object.keys(t.attributes).forEach((function(i){e.setAttribute(i,t.attributes[i])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var h,d=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function u(t,e,i,a){var s=i?"":a.css;if(t.styleSheet)t.styleSheet.cssText=d(e,s);else{var n=document.createTextNode(s),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(n,r[e]):t.appendChild(n)}}function p(t,e,i){var a=i.css,s=i.media,n=i.sourceMap;if(s&&t.setAttribute("media",s),n&&btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var g=null,f=0;function x(t,e){var i,a,s;if(e.singleton){var n=f++;i=g||(g=c(e)),a=u.bind(null,i,n,!1),s=u.bind(null,i,n,!0)}else i=c(e),a=p.bind(null,i,e),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else s()}}t.exports=function(t,e){(e=e||{}).attributes="object"==a(e.attributes)?e.attributes:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===s&&(s=Boolean(window&&document&&document.all&&!window.atob)),s));var i=o(t,e);return l(i,e),function(t){for(var a=[],s=0;s<i.length;s++){var r=i[s],c=n[r.id];c&&(c.refs--,a.push(c))}t&&l(o(t,e),e);for(var h=0;h<a.length;h++){var d=a[h];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete n[d.id]}}}}},,,,,,,function(t,e,i){"use strict";function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.r(e),i(9),Litepicker.add("ranges",{init:function(t){var e={position:"left",customRanges:{},force:!1,autoApply:t.options.autoApply};if(t.options.ranges=s(s({},e),t.options.ranges),t.options.singleMode=!1,!Object.keys(t.options.ranges.customRanges).length){var i=t.DateTime();t.options.ranges.customRanges={Today:[i.clone(),i.clone()],Yesterday:[i.clone().subtract(1,"day"),i.clone().subtract(1,"day")],"Last 7 Days":[i.clone().subtract(6,"day"),i],"Last 30 Days":[i.clone().subtract(29,"day"),i],"This Month":function(t){var e=t.clone();return e.setDate(1),[e,new Date(t.getFullYear(),t.getMonth()+1,0)]}(i),"Last Month":function(t){var e=t.clone();return e.setDate(1),e.setMonth(t.getMonth()-1),[e,new Date(t.getFullYear(),t.getMonth(),0)]}(i)}}var a=t.options.ranges;t.on("render",(function(e){var i=document.createElement("div");i.className="container__predefined-ranges",t.ui.dataset.rangesPosition=a.position,Object.keys(a.customRanges).forEach((function(s){var n=a.customRanges[s],r=document.createElement("button");r.innerText=s,r.tabIndex=e.dataset.plugins.indexOf("keyboardnav")>=0?1:-1,r.dataset.start=n[0].getTime(),r.dataset.end=n[1].getTime(),r.addEventListener("click",(function(e){var i=e.target;if(i){var s=t.DateTime(Number(i.dataset.start)),n=t.DateTime(Number(i.dataset.end));a.autoApply?(t.setDateRange(s,n,a.force),t.emit("ranges.selected",s,n),t.hide()):(t.datePicked=[s,n],t.emit("ranges.preselect",s,n)),!t.options.inlineMode&&a.autoApply||t.gotoDate(s)}})),i.appendChild(r)})),e.querySelector(".container__main").prepend(i)}))}})},function(t,e,i){var a=i(10);"string"==typeof a&&(a=[[t.i,a,""]]);var s={insert:function(t){var e=document.querySelector("head"),i=window._lastElementInsertedByStyleLoader;window.disableLitepickerStyles||(i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild),window._lastElementInsertedByStyleLoader=t)},singleton:!1};i(1)(a,s),a.locals&&(t.exports=a.locals)},function(t,e,i){(e=i(0)(!1)).push([t.i,'.litepicker[data-plugins*="ranges"] > .container__main > .container__predefined-ranges {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: var(--litepicker-container-months-color-bg);\n box-shadow: -2px 0px 5px var(--litepicker-footer-box-shadow-color);\n border-radius: 3px;\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="left"] > .container__main {\n /* */\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="right"] > .container__main{\n flex-direction: row-reverse;\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="right"] > .container__main > .container__predefined-ranges {\n box-shadow: 2px 0px 2px var(--litepicker-footer-box-shadow-color);\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="top"] > .container__main {\n flex-direction: column;\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="top"] > .container__main > .container__predefined-ranges {\n flex-direction: row;\n box-shadow: 2px 0px 2px var(--litepicker-footer-box-shadow-color);\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="bottom"] > .container__main {\n flex-direction: column-reverse;\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="bottom"] > .container__main > .container__predefined-ranges {\n flex-direction: row;\n box-shadow: 2px 0px 2px var(--litepicker-footer-box-shadow-color);\n}\n.litepicker[data-plugins*="ranges"] > .container__main > .container__predefined-ranges button {\n padding: 5px;\n margin: 2px 0;\n}\n.litepicker[data-plugins*="ranges"][data-ranges-position="left"] > .container__main > .container__predefined-ranges button,\n.litepicker[data-plugins*="ranges"][data-ranges-position="right"] > .container__main > .container__predefined-ranges button{\n width: 100%;\n text-align: left;\n}\n.litepicker[data-plugins*="ranges"] > .container__main > .container__predefined-ranges button:hover {\n cursor: default;\n opacity: .6;\n}',""]),t.exports=e}])},function(t,e,i){var a=i(37);t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function i(e,a){return t.exports=i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,i(e,a)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0}]]);
61
- //# sourceMappingURL=vendors--presto-player--admin-603822bb.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/vendors--presto-player--admin-603822bb.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@emotion/sheet/dist/sheet.browser.esm.js","webpack:///./node_modules/@emotion/stylis/dist/stylis.browser.esm.js","webpack:///./node_modules/@emotion/core/node_modules/@emotion/cache/dist/cache.browser.esm.js","webpack:///./node_modules/@emotion/utils/dist/utils.browser.esm.js","webpack:///./node_modules/@emotion/hash/dist/hash.browser.esm.js","webpack:///./node_modules/@emotion/unitless/dist/unitless.browser.esm.js","webpack:///./node_modules/@emotion/memoize/dist/memoize.browser.esm.js","webpack:///./node_modules/@emotion/serialize/dist/serialize.browser.esm.js","webpack:///./node_modules/@emotion/core/dist/emotion-element-57a3a7a3.browser.esm.js","webpack:///./node_modules/@emotion/css/dist/css.browser.esm.js","webpack:///./node_modules/@emotion/core/dist/core.browser.esm.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack:///./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack:///./node_modules/react/index.js","webpack:///./node_modules/@babel/runtime/regenerator/index.js","webpack:///./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///./node_modules/@babel/runtime/helpers/typeof.js","webpack:///./node_modules/path-to-regexp/dist.es2015/index.js","webpack:///./node_modules/react-apexcharts/dist/react-apexcharts.min.js","webpack:///./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js","webpack:///./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack:///./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack:///./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack:///./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack:///./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack:///./node_modules/classnames/index.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///(webpack)/buildin/module.js","webpack:///./node_modules/querystringify/index.js","webpack:///./node_modules/litepicker/dist/litepicker.umd.js","webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///./node_modules/history/index.js","webpack:///./node_modules/@wpackio/entrypoint/lib/index.js","webpack:///./node_modules/regenerator-runtime/runtime.js","webpack:///./node_modules/apexcharts/dist/apexcharts.common.js","webpack:///./node_modules/react/cjs/react.production.min.js","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/litepicker/dist/plugins/ranges.js","webpack:///./node_modules/@babel/runtime/helpers/inheritsLoose.js","webpack:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js"],"names":["StyleSheet","options","this","isSpeedy","undefined","speedy","tags","ctr","nonce","key","container","before","_proto","prototype","insert","rule","_tag","tag","document","createElement","setAttribute","appendChild","createTextNode","createStyleElement","length","nextSibling","insertBefore","push","sheet","i","styleSheets","ownerNode","sheetForTag","isImportRule","charCodeAt","insertRule","cssRules","e","flush","forEach","parentNode","removeChild","W","X","d","c","h","trim","split","ia","a","m","b","Z","v","n","replace","F","indexOf","P","substring","w","L","ja","ka","test","aa","G","ba","la","ma","R","na","ea","oa","H","q","g","x","A","S","call","B","U","prefix","D","z","M","k","y","C","K","u","l","r","I","t","J","f","p","N","charAt","ca","O","join","da","fa","Y","E","ha","Q","use","T","set","toSheet","block","Sheet","current","ruleSheet","context","content","selectors","parents","line","column","ns","depth","at","delimiter","stylisOptions","stylis","inserted","head","_insert","nodes","querySelectorAll","Array","node","getAttribute","id","stylisPlugins","selector","serialized","shouldCache","name","styles","cache","registered","getRegisteredStyles","registeredStyles","classNames","rawClassName","className","insertStyles","isStringTag","next","str","len","toString","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","msGridRow","msGridRowSpan","msGridColumn","msGridColumnSpan","fontWeight","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","WebkitLineClamp","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","hyphenateRegex","animationRegex","isCustomProperty","property","isProcessableValue","value","processStyleName","fn","arg","styleName","toLowerCase","match","p1","p2","cursor","handleInterpolation","mergedProps","interpolation","couldBeSelectorInterpolation","__emotion_styles","anim","obj","string","isArray","_key","interpolated","_i","createStringFromObject","previousCursor","result","cached","labelPattern","args","stringMode","strings","raw","lastIndex","identifierName","exec","Object","hasOwnProperty","EmotionCacheContext","HTMLElement","ThemeContext","Provider","func","render","props","ref","Consumer","typePropName","createEmotionProps","type","newProps","theme","cssProp","css","Emotion","_len","arguments","apply","argsLength","createElementArgArray","classnames","cls","toAdd","merge","cx","_len2","_key2","ele","children","_arrayLikeToArray","arr","arr2","_slicedToArray","Symbol","iterator","_s","_e","_arr","_n","_d","done","err","o","minLen","slice","constructor","from","TypeError","module","exports","_defineProperty","defineProperty","enumerable","configurable","writable","asyncGeneratorStep","gen","resolve","reject","_next","_throw","info","error","Promise","then","_asyncToGenerator","self","_typeof","__esModule","parse","tokens","char","index","count","pattern","j","code","lexer","_a","prefixes","defaultPattern","escapeString","path","tryConsume","mustConsume","nextType","consumeText","suffix","modifier","name_1","pattern_1","keys","re","decode","pathname","params","create","_loop_1","map","regexpToFunction","pathToRegexp","flags","sensitive","stringToRegexp","strict","_b","start","_c","end","encode","endsWith","route","tokens_1","token","mod","endToken","isEndDelimited","RegExp","tokensToRegexp","groupsRegex","execResult","source","regexpToRegexp","paths","parts","arrayToRegexp","_typeof2","_extends","assign","_createClass","_apexcharts2","_interopRequireDefault","_react","_react2","_propTypes2","default","window","ApexCharts","Charts","_classCallCheck","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","createRef","chartRef","setRef","chart","setPrototypeOf","_inherits","Component","_objectWithoutProperties","getConfig","height","width","series","extend","isObject","JSON","stringify","s","updateOptions","updateSeries","destroy","propTypes","isRequired","any","array","object","defaultProps","_getPrototypeOf","_taggedTemplateLiteral","freeze","defineProperties","instance","Constructor","_defineProperties","target","descriptor","protoProps","staticProps","_assertThisInitialized","subClass","superClass","_setPrototypeOf","hasOwn","classes","argType","inner","__webpack_amd_options__","webpackPolyfill","deprecate","get","has","input","decodeURIComponent","encodeURIComponent","pairs","isNaN","query","part","parser","toStringTag","bind","dateInstance","clone","toJSDate","parseDateTime","Date","lang","NaN","getDateZeroTime","Number","regex","year","month","shortMonth","longMonth","day","entries","formatPatterns","group","shortMonths","longMonths","convertArray","getFullYear","getMonth","getDate","MONTH_JS","toLocaleString","toDateString","getSeconds","getDay","getTime","setMonth","setHours","setSeconds","setDate","setFullYear","getWeek","timestamp","Math","ceil","isBetween","isBefore","Error","isSameOrBefore","isAfter","isSameOrAfter","isSame","add","subtract","diff","round","format","output","formatTokens","String","DateTime","__extends","__spreadArrays","preventClick","bindEvents","scrollToDate","startDate","endDate","element","elementEnd","numberOfMonths","calendars","addEventListener","onClick","ui","litepicker","style","display","onMouseEnter","onMouseLeave","autoRefresh","onInput","parentEl","querySelector","inlineMode","HTMLInputElement","body","updateInput","init","setup","show","singleMode","isSamePicker","closest","shouldShown","disabled","shouldResetDatePicked","datePicked","shouldSwapDatePicked","shouldCheckLockDays","disallowLockDaysInRange","isShowning","emit","classList","contains","dayItem","preventDefault","isLocked","dataset","time","rangeIsLocked","autoApply","hide","setDateRange","buttonPreviousMonth","switchingMonths","splitView","monthItem","findNestedMonthItem","gotoDate","buttonNextMonth","buttonCancel","buttonApply","showTooltip","containerTooltip","visibility","innerHTML","getBoundingClientRect","top","left","hideTooltip","shouldAllowMouseEnter","shouldAllowRepick","allowRepick","isDayItem","triggerElement","renderDay","isInRange","isEndDate","isFlipped","remove","tooltipNumber","pluralSelector","tooltipText","navigator","userAgent","dispatchEvent","Event","parseInput","startsWith","getStartDate","getEndDate","Calendar","Litepicker","childNodes","item","dateIsLocked","lockDays","filter","lockDaysInclusivity","lockDaysFilter","_lastElementInsertedByStyleLoader","disableLitepickerStyles","firstChild","singleton","locals","_n2","containerMain","containerMonths","numberOfColumns","columns2","columns3","columns4","showWeekNumbers","renderMonth","resetButton","buttonText","reset","clearSelection","monthItemHeader","footerHTML","renderFooter","renderTooltip","plugins","dropdowns","months","monthItemName","text","minDate","maxDate","selected","years","monthItemYear","minYear","maxYear","reverse","previousMonth","nextMonth","noPreviousMonth","noNextMonth","monthItemWeekdaysRow","_","firstDay","weekdayName","title","containerDays","calcSkipDays","renderWeekNumber","isToday","isStartDate","minDays","maxDays","selectForward","selectBackward","highlightedDays","isHighlighted","tabIndex","containerFooter","previewDateRange","cancel","weekNumber","weekday","LPCore","_n3","__assign","position","mobileFriendly","lockDaysFormat","highlightedDaysFormat","one","other","tooltipPluralSelector","Intl","PluralRules","select","abs","console","warn","findPosition","scrollX","pageXOffset","scrollY","pageYOffset","bottom","innerHeight","innerWidth","right","EventEmitter","Reflect","Function","ownKeys","getOwnPropertySymbols","getOwnPropertyNames","concat","_events","_eventsCount","_maxListeners","defaultMaxListeners","newListener","listener","unshift","warned","emitter","fired","removeListener","wrapFn","RangeError","setMaxListeners","getMaxListeners","message","addListener","on","prependListener","once","prependOnceListener","shift","pop","off","removeAllListeners","listeners","rawListeners","listenerCount","eventNames","btoa","unescape","sources","sourceRoot","HTMLIFrameElement","contentDocument","base","media","sourceMap","refs","attributes","nc","Boolean","styleSheet","cssText","all","atob","setStartDate","setEndDate","setLockDays","setHighlightedDays","setOptions","Pop","Push","Replace","returnValue","random","substr","search","hash","createBrowserHistory","location","state","idx","usr","action","go","defaultView","history","retry","replaceState","createHref","pushState","back","forward","listen","removeEventListener","runtime","Op","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","define","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","Context","_invoke","method","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","values","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","previousPromise","callInvokeWithMethodAndArg","invoke","__await","unwrapped","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","iterable","iteratorMethod","displayName","isGeneratorFunction","genFun","ctor","mark","awrap","async","iter","skipTempReset","prev","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","globalThis","getOwnPropertyDescriptor","getOwnPropertyDescriptors","construct","sham","Proxy","parseInt","isColorHex","shadeHexColor","shadeRGBColor","log","LN10","pow","floor","log10","parseFloat","getComputedStyle","clientHeight","clientWidth","paddingTop","paddingBottom","paddingLeft","paddingRight","reduce","PI","sin","cos","splice","parentElement","appVersion","ctx","setEasingFunctions","globals","easing","config","animations","_t","_t2","_t3","attr","animate","afterAll","cy","el","realIndex","fill","pathFrom","pathTo","speed","delay","animateGradually","enabled","dynamicAnimation","dataChanged","morphSVG","comboCharts","delayedElements","animationEnded","showDelayedElements","events","animationEnd","gridHeight","shouldAnimate","plot","isNumber","maxValsInArrayIndex","animationCompleted","unfilter","SVG","Filter","size","states","normal","applyFilter","dropShadow","intensity","addShadow","componentTransfer","rgb","slope","intercept","filterer","_scaleFilterSize","addNormalFilter","addLightenFilter","addDarkenFilter","blur","color","flood","composite","sourceAlpha","offset","gaussianBlur","blend","noUserSpaceOnUse","isIE","isSafari","isFirefox","selectedDataPoints","active","dom","Paper","x1","y1","x2","y2","stroke","rect","rx","ry","polygon","circle","strokeLinecap","strokeDashArray","lineCap","class","animationDelay","initialSpeed","dataChangeSpeed","shouldClipToGrid","bindEventsOnPaths","drawShadow","resized","dashArray","drawPath","cuid","getDefaultFilter","enabledOnSeries","pathMouseEnter","pathMouseLeave","pathMouseDown","animatePathsGradually","hexToRgba","gradient","gridWidth","gradientUnits","fx","fy","to","textAnchor","fontSize","fontFamily","foreColor","cssClass","isPlainText","tspan","newLine","plain","pSize","shape","pRadius","drawRect","pointFillColor","pointFillOpacity","pointStrokeColor","pointStrokeWidth","pointStrokeOpacity","drawCircle","dataPointMouseEnter","seriesIndex","dataPointIndex","fireEvent","hover","isTouchDevice","dataPointMouseLeave","allowMultipleDataPointsSelection","members","dataPointSelection","getBBox","drawText","bbox","getComputedTextLength","textContent","getSubStringLength","annoCtx","label","orientation","baseEl","graphics","rotateAroundCenter","padding","barPadForNumericAxis","borderRadius","background","borderWidth","borderColor","addBackgroundToAnno","annotations","xaxis","yaxis","points","convertedCatToNumeric","categoryLabels","labels","invertAxis","minY","minX","maxY","maxX","yRange","xRange","inversedReversedAxis","dataFormatXNumeric","helpers","getStringX","drawLine","offsetX","offsetY","fillColor","getTextRects","rel","setOrientations","addXaxisAnnotation","stackedSeriesTotals","data","every","formatter","max","markers","largestSize","seriesTotals","seriesX","seriesPercent","isMultipleYAxis","minYArr","maxYArr","zRange","maxZ","minZ","initialMaxX","initialMinX","MIN_VALUE","hasNegs","yRatio","invertedYRatio","zRatio","xRatio","initialXRatio","invertedXRatio","baseLineInvertedY","baseLineY","baseLineX","seriesLog","logarithmic","getLogVal","invalidLogScale","yLogRatio","logYRange","MAX_VALUE","min","comboBarCount","extendYAxis","extendYAxisAnnotations","extendXAxisAnnotations","extendPointAnnotations","_getY1Y2","_getYAxisAnnotationWidth","yAxisIndex","reversed","addYaxisAnnotation","seriesName","marker","strokeColor","radius","drawMarker","customSVG","transform","image","addImage","appendTo","addPointAnnotation","days","shortDays","toolbar","exportToSVG","exportToPNG","exportToCSV","menu","selection","selectionZoom","zoomIn","zoomOut","pan","yAxis","showAlways","showForNullSeries","opposite","tickAmount","forceNiceScale","floating","decimalsInFloat","minWidth","maxWidth","align","rotate","colors","axisBorder","axisTicks","tooltip","crosshairs","pointAnnotation","yAxisAnnotation","xAxisAnnotation","backgroundColor","texts","images","shapes","locales","defaultLocale","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled","parentHeightOffset","redrawOnParentResize","redrawOnWindowResize","sparkline","brush","autoScaleYaxis","stacked","stackType","tools","download","zoomin","zoomout","customIcons","export","csv","filename","columnDelimiter","headerCategory","headerValue","dateFormatter","png","svg","autoSelected","zoomedArea","plotOptions","area","fillTo","bar","horizontal","columnWidth","barHeight","distributed","rangeBarOverlap","rangeBarGroupRows","ranges","backgroundBarColors","backgroundBarOpacity","backgroundBarRadius","dataLabels","maxItems","hideOverflowingLabels","bubble","minBubbleRadius","maxBubbleRadius","candlestick","upward","downward","wick","useFillColor","boxPlot","upper","lower","heatmap","enableShades","shadeIntensity","reverseNegativeShade","useFillColorAsStroke","colorScale","inverse","treemap","radialBar","inverseOrder","startAngle","endAngle","hollow","margin","imageWidth","imageHeight","imageOffsetX","imageOffsetY","imageClipped","track","total","pie","customScale","expandOnClick","minAngleToShowLabel","donut","polarArea","rings","spokes","connectorColors","radar","polygons","strokeColors","shade","gradientToColors","inverseColors","opacityFrom","opacityTo","stops","colorStops","src","forecastDataPoints","grid","lines","row","legend","showForSingleSeries","showForZeroSeries","horizontalAlign","tooltipHoverFormatter","customLegendItems","useSeriesColors","fillColors","customHTML","itemMargin","vertical","onItemClick","toggleDataSeries","onItemHover","highlightDataSeries","discrete","onDblClick","showNullDataPoints","sizeOffset","noData","verticalAlign","responsive","subtitle","curve","shared","followCursor","intersect","custom","fillSeriesColor","onDatasetHover","items","fixed","categories","overwriteCategories","rotateAlways","hideOverlappingLabels","minHeight","maxHeight","showDuplicates","datetimeUTC","datetimeFormatter","hour","minute","second","tickPlacement","range","colorFrom","colorTo","mode","palette","monochrome","shadeTo","isBarHorizontal","xAxisAnnotations","yAxisAnnotations","pointsAnnotations","xDivision","dataPoints","axisCharts","drawYAxisAnnotations","drawXAxisAnnotations","drawPointAnnotations","elGraphical","annotationsBackground","addText","move","addAnnotationExternal","pushToMemory","contextMethod","memory","methodsToExec","randomId","listToArray","opts","createElementNS","SVGNS","setAttrs","patternID","patternUnits","setAttributeNS","xlink","preserveAspectRatio","elDefs","seriesNumber","getSeriesIndex","getFillColors","seriesColors","getFillType","getOpacityFromRGBA","handlePatternFill","handleGradientFill","clippedImgArea","solid","drawPattern","shadeColor","rgb2hex","drawGradient","getMarkerConfig","setSelectionFilter","addEvents","pointsArray","getMarkerStyle","pointShape","pointStrokeDashArray","passive","initialAnim","dynamicAnim","pointsPos","elParent","seriesZ","drawPoint","fillPath","animateMarker","setTimeout","previousPaths","collapsedSeries","animateCircle","dataLabelsRects","lastDrawnDataLabelsIndexes","textRects","drawnextLabel","centerTextInBubble","plotDataLabelsText","parent","offsetCorrection","dataLabelsConfig","alwaysDrawDataLabel","dataLabelsCorrection","addBackgroundToDataLabel","barCtx","barWidth","barYPosition","visibleSeries","renderedPath","isXNumeric","barOptions","isTimelineBar","yLabelFormatters","bcx","bcy","dataLabelsX","dataLabelsY","barDataLabelsConfig","offX","offY","isHorizontal","calculateBarsDataLabelsPosition","calculateColumnsDataLabelsPosition","val","drawCalculatedDataLabels","isReversed","collapsedSeriesIndices","legendInactiveClass","getElementsByClassName","getSeriesByName","isHidden","ancillaryCollapsedSeries","isSeriesHidden","legendHelpers","initialSeries","ancillaryCollapsedSeriesIndices","emptyCollapsedSeries","updateHelpers","revertDefaultAxisMinMax","_updateSeries","hasAttribute","handlePrevBubbleScatterPaths","allSeriesCollapsed","svgWidth","svgHeight","filteredSeriesX","allSeriesHasEqualX","totalItems","seriesLen","visibleI","visibleItems","zeroSerieses","radiusOnSeriesNumber","checkZeroSeries","padHorizontal","minXDiff","yaxisIndex","yDivision","zeroH","zeroW","isNullValue","elSeries","getActiveConfigSeriesIndex","barXPosition","getRoundedBars","getPreviousPath","pathWithRadius","yArrj","yArrjF","yArrjVal","xArrj","xArrjF","xArrjVal","quadraticCurve","seriesGoals","getXForValue","getYForValue","goalX","goalY","attrs","strokeHeight","strokeLineCap","seriesRangeBarTimeline","xyRatios","barHelpers","getLogSeries","getLogYRatios","initVariables","seriesNames","addCollapsedClassToSeries","initialPositions","getStrokeWidth","indexes","bc","drawBarPaths","drawColumnPaths","drawGoalLine","getPathFillColor","renderSeries","pathFill","elDataLabelsWrap","elGoalsMarkers","seriesXvalues","seriesYvalues","lineFill","renderPaths","handleBarDataLabels","getBarpaths","barBackground","getGoalValues","getColumnPaths","months31","months30","daysCntOfYear","parseDate","toISOString","toUTCString","getTimeStamp","locale","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getHours","getUTCMinutes","getMinutes","getUTCSeconds","getUTCMilliseconds","getMilliseconds","getTimezoneOffset","getUTCDay","formatDate","minMillisecond","maxMillisecond","minSecond","maxSecond","minMinute","maxMinute","minHour","maxHour","minMonth","maxMonth","determineDaysOfMonths","isLeapYear","monthMod","rangeBarOptions","rangeBar","seriesRangeStart","seriesRangeEnd","detectOverlappingBars","srty","initPositions","drawRangeBarPaths","drawRangeColumnPaths","rangeName","findIndex","overlaps","getRangeValue","isFinite","startVal","endVal","ylabel","_getBoxTooltip","getTooltipValues","buildCustomTooltipHTML","toFixed","seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC","responsiveOverride","chartType","extendAnnotations","stacked100","checkForDarkTheme","Apex","checkForCatToNumericXAxis","handleUserInputErrors","convertCatToNumeric","extendArray","timescaleLabels","noLabelsProvided","resizeTimer","selectionResizeTimer","xaxisLabelsCount","skipLastTimelinelabel","skipFirstTimelinelabel","isDataXYZ","isMultiLineX","yAxisScale","xAxisScale","xAxisTicksPositions","yLabelsCoords","yTitleCoords","xTickAmount","chartID","clicked","clientX","clientY","radarPolygons","msMaxTouchPoints","isDirty","isExecCalled","initialConfig","lastXAxis","lastYAxis","columnSeries","risingSeries","capturedSeriesIndex","capturedDataPointIndex","goldenPadding","ignoreYAxisIndexes","yAxisSameScaleIndices","radialSize","zoomEnabled","panEnabled","selectionEnabled","mousedown","lastClientPosition","visibleXRange","yValueDecimal","hasNullValues","rotateXLabels","defaultLabels","xLabelFormatter","xaxisTooltipFormatter","ttKeyFormatter","ttVal","ttZFormatter","LINE_HEIGHT_RATIO","xAxisLabelsHeight","xAxisLabelsWidth","yAxisLabelsWidth","scaleX","scaleY","translateX","translateY","translateYAxisX","yAxisWidths","translateXAxisY","translateXAxisX","globalVars","initGlobalVars","twoDSeries","threeDSeries","twoDSeriesX","coreUtils","isFormatXY","isFormat2DArray","activeSeriesIndex","parseNumber","goals","isValidDate","isRangeData","fallbackToCategory","handleRangeDataFormat","rangeUniques","handleCandleStickBoxDataFormat","handleRangeData","isMultiFormat","handleFormat2DArray","handleFormatXY","handleCandleStickBoxData","convertCatToNumericXaxis","_generateExternalLabels","excludeCollapsedSeriesInYAxis","core","resetGlobals","isMultipleY","parseDataAxisCharts","parseDataNonAxisCharts","getLargestSeries","setNullSeriesToZeroValues","getSeriesTotals","getStackedSeriesTotals","getPercentSeries","handleExternalLabelsData","getCategoryLabels","tooltipKeyFormat","defaultGeneralFormatter","legendFormatter","xyCharts","defaultYFormatter","niceMax","niceMin","xLabelFormat","unit","timeScale","textRect","isBold","isSeriesNull","pushExtraColors","V","getAttributeNS","isIE11","cloneNode","scaleSvgNode","XMLSerializer","serializeToString","fixSvgStringForIe11","cleanup","getSvgString","Blob","URL","createObjectURL","scale","elWrap","getContext","fillStyle","fillRect","canvg","Canvg","fromString","ignoreClear","ignoreDimensions","msToBlob","blob","Image","crossOrigin","onload","drawImage","toDataURL","imgURI","triggerDownload","svgUrl","dataURI","msSaveOrOpenBlob","lineDelimiter","getLabel","encodeURI","href","axesUtils","xaxisLabels","drawnLabels","drawnLabelsRects","isCategoryBarHorizontal","xaxisFontSize","xaxisFontFamily","xaxisForeColors","xaxisBorderWidth","xaxisBorderHeight","checkLabelBasedOnTickamount","checkForOverflowingLabels","xAxisHeight","getYAxisForeColor","drawYAxisTicks","placeTextWithEllipsis","renderGrid","drawGridArea","elGridRectMask","elGridRectMarkerMask","elForecastMask","elNonForecastMask","elGridRect","getLargestMarkerSize","elGridRectMarker","xCount","_drawGridLine","drawXaxisTicks","elg","xC","_drawGridLines","elgridLinesV","elgridLinesH","_drawXYLines","_drawInvertedXYLines","drawGridBands","xAxisTickWidth","_drawGridBandRect","_adjustTicksForSmallRange","linearScale","isFloat","logarithmicScale","niceScale","similarIndex","alreadyExists","setYScaleForIndex","sameScaleInMultipleAxes","sort","valueOf","scales","setYRange","setXRange","setZRange","noExponents","lowestY","highestY","getMinYMaxY","_setStackedMinMax","setMultipleYScales","setXScale","_handleSingleDataPoint","_getMinXDiff","setUTCDate","axisFontFamily","xAxisoffX","isYAxisHidden","checkForReversedLabels","inversedYAxisTitleText","inversedYAxisBorder","xPaddingForYAxisTitle","xPos","padd","multipleYs","documentEvent","chartClass","eventList","which","capture","setupBrushHandler","touches","$","drawYaxisInversed","drawXaxisInversed","drawXaxis","drawYaxis","breakpoint","screen","extendArrayProps","overrideResponsiveOptions","tt","isColorFn","isHeatmapDistributed","isBarDistributed","setDefaultColors","predefined","et","drawTitleSubtitle","it","dCtx","lgRect","getxAxisTimeScaleLabelsCoords","lgWidthForSideLegends","getLargestStringFromArr","dimHelpers","getLargestStringFromMultiArr","yAxisWidth","gridPad","overlappingXLabels","yAxisWidthRight","yAxisWidthLeft","xPadRight","xPadLeft","st","_o","rt","isSparkline","getTitleSubtitleCoords","ot","dimYAxis","dimXAxis","dimGrid","getLegendsRect","setDimensionsForAxisCharts","setDimensionsForNonAxisCharts","gridPadFortitleSubtitle","gridPadForColumnsInNumericAxis","getyAxisLabelsCoords","getyAxisTitleCoords","getTotalYAxisWidth","getxAxisLabelsCoords","getxAxisTitleCoords","conditionalChecksForAxisCoords","xAxisWidth","additionalPaddingXLabels","setGridXPosForDualYAxis","setYAxisXPosition","nt","lgCtx","clwh","clww","elLegendForeign","elLegendWrap","getLegendStyles","cs","csi","riseCollapsedSeries","hideSeries","seriesEl","printDataLabelsInner","fire","baseVal","_getSeriesBasedOnCollapsedState","lt","onLegendClick","onLegendHovered","isBarsDistributed","drawLegends","getElementsByTagName","appendToForeignObject","legendAlignHorizontal","legendAlignVertical","setProperty","getSeriesTotalByIndex","seriesHaveSameValues","getLegendBBox","setLegendWrapXY","highlightRangeInSeries","toggleSeriesOnHover","ht","ev","selectedClass","localeValues","elZoom","elZoomIn","elZoomOut","elPan","elSelection","elZoomReset","elMenuIcon","elMenu","elCustomIcons","icon","moveIndexInArray","_createHamburgerMenu","addToolbarEventListeners","elMenuItems","handleZoomReset","toggleZoomSelection","handleZoomIn","handleZoomOut","togglePanning","toggleMenu","handleDownload","getSyncedCharts","toggleOtherControls","getToolbarIconsReference","_getNewMinXMaxX","disableZoomIn","zoomUpdateOptions","disableZoomOut","getBeforeZoomRange","autoScaleY","_updateOptions","zoomCallback","exportToPng","ct","dragged","startX","endX","dragX","startY","endY","dragY","moveDirection","zoomRect","selectionRect","gridRect","slDraggableRect","draggable","selectionDragging","preselectedSelection","hoverArea","svgMouseEvents","shiftKey","shiftWasPressed","enableZoomPanFromToolbar","changedTouches","panDragging","zoomtype","selectionDrawing","selectionDrawn","delayedPanScrolled","hideSelectionRect","makeSelectionRectDraggable","selectize","pointSize","pointType","resize","constraint","drawSelectionRect","clearTimeout","panScrolled","updateScrolledChart","dt","ttCtx","elGrid","hasBars","closestInMultiArray","closestInArray","capturedSeries","hoverX","hoverY","getFirstActiveXArray","getElMarkers","getElBars","allTooltipSeriesGroups","gt","tooltipUtil","ttItems","handleCustomTooltip","toggleActiveInactiveSeries","getValuesToPrint","printLabels","getElTooltip","tooltipRect","ttWidth","ttHeight","xVal","zVal","xAxisTTVal","getFormatters","getSeriesName","yLbTitleFormatter","yLbFormatter","DOMHandling","goalVals","pColor","showTooltipTitle","tooltipTitle","blxaxisTooltip","xaxisTooltipText","toggleAllTooltipSeriesGroups","ut","getElXCrosshairs","xcrosshairsWidth","moveXAxisTooltip","ycrosshairs","ycrosshairsHidden","xaxisTooltip","xaxisOffY","yaxisTTEls","getElGrid","resetPointsSize","enlargeCurrentPoint","moveDynamicPointOnHover","getHoverMarkerSize","moveXCrosshairs","fixedTooltip","moveTooltip","getAllMarkers","dataPointsDividedWidth","pt","tooltipPosition","newPointSize","oldPointSize","lastChild","ft","opt","getAttr","tooltipLabels","drawSeriesTexts","findAncestor","showOnIntersect","getBarTooltipXY","dataPointsDividedHeight","xt","_i2","yaxisOffX","yaxisTooltip","yaxisTooltipText","yaxisTooltips","moveYCrosshairs","moveYAxisTooltip","bt","tConfig","axesTooltip","isBarShared","drawXaxisTooltip","drawYaxisTooltip","setXCrosshairWidth","handleYCrosshair","getXAxisTicksPositions","drawDynamicPoints","legendLabels","createTTElements","addSVGEvents","_r","seriesBound","tooltipEl","tooltipY","tooltipX","addPathsEventListeners","addDatapointEventsListeners","seriesHover","getGroupedCharts","seriesHoverByContext","chartCtx","drawFixedTooltipRect","axisChartsTooltips","nonAxisChartsTooltips","handleMouseOut","handleStickyTooltip","handleHeatTreeTooltip","handleBarTooltip","hasMarkers","handleMarkerTooltip","drawYaxisTooltipText","getNearestValues","handleStickyCapturedSeries","isXoverlap","isInitialSeriesSameLen","deactivateHoverFilter","enlargePoints","moveDynamicPointsOnHover","barSeriesHeight","getBarsHeight","moveStickyTooltipOverBars","moveMarkers","vt","prevY","prevX","prevYF","prevXF","prevYVal","prevXVal","drawStackedBarPaths","drawStackedColumnPaths","mt","candlestickOptions","boxOptions","isBoxPlot","drawBoxPaths","getOHLCValue","yt","determineColor","percent","colorProps","wt","rectRadius","negRange","checkColorRange","getShadeColor","addListeners","animateHeatMap","animateHeatColor","calculateDataLabels","animateRect","kt","At","animBeginArr","animDur","donutDataLabels","lineColorArr","defaultSize","centerY","centerX","fullAngle","initialAngle","donutSize","sliceLabels","sliceSizes","prevSectorAngleArr","ret","negToZero","drawPolarElements","drawArcs","renderInnerDataLabels","hollowSize","getChangedPath","polarToCartesian","animatePaths","prevStartAngle","prevEndAngle","animateStartingPos","shouldSetPrevPaths","dur","pieClicked","revertDataLabelsInner","animateArc","getPiePath","me","angle","during","isTrack","drawYAxisTexts","drawSpokes","printInnerLabels","makeSliceOut","printLabel","St","isLog","maxValue","minValue","dataRadiusOfPercent","dataRadius","angleArr","yaxisLabelsTextsPos","dataPointsLen","disAngle","yaxisLabels","getDataPointsPos","createPaths","linePathsTo","linePathsFrom","areaPathsFrom","areaPathsTo","drawPolygons","drawXAxisTexts","getPolygonPos","drawPolygon","getTextPos","newX","newY","Ct","totalAngle","trackStartAngle","trackEndAngle","radialDataLabels","drawTracks","colorArr","elHollow","drawHollowImage","drawHollow","loaded","Lt","lineCtx","categoryAxisCorrection","pathFromLine","pathFromArea","appendPathFrom","lineYPosition","prevSeriesY","zeroY","Pt","pointsChart","scatter","noNegatives","lineHelpers","sameValueSeriesFix","_initSerieVariables","determineFirstPrevY","_calculatePathsFrom","_iterateOverDataPoints","pX","pY","pathsFrom","linePaths","areaPaths","_handlePaths","elPointsMain","areaBottomY","checkPreviousPaths","linePath","areaPath","calculatePoints","_createPaths","handleNullDataPoints","_handleMarkersAndLabels","draw","plotChartMarkers","drawDataLabel","TreemapSquared","generate","xoffset","yoffset","shortestEdge","getCoordinates","cutArea","Tt","Mt","It","animateTreemap","getFontSize","rotateToFitLabel","zt","timeScaleArray","utc","determineInterval","getTimeUnitsfromTimestamp","firstVal","currentMillisecond","currentSecond","currentMinute","currentHour","currentMonthDate","currentDate","currentMonth","currentYear","daysWidthOnXAxis","hoursWidthOnXAxis","minutesWidthOnXAxis","secondsWidthOnXAxis","numberOfSeconds","numberOfMinutes","numberOfHours","numberOfDays","numberOfYears","tickInterval","generateYearScale","generateMonthScale","generateDayScale","generateHourScale","generateMinuteScale","generateSecondScale","formatDates","removeOverlappingTS","plotCoords","determineRemainingDaysOfYear","determineDaysOfYear","_getYear","date","createRawDateString","parseDateWithTimezone","dateString","Xt","Doc","setSVGDimensions","elAnnotations","defs","getDimensions","drawXCrosshairs","drawYCrosshairs","calculateTimeScaleTicks","recalcDimensionsBasedOnFormat","getCalculatedRatios","targets","getChartByID","brushSource","updateSourceChart","Et","getPreviousPaths","update","_extendSeries","supported","prepare","xmlns","svgjs","did","eid","Set","inherit","invent","Container","adopt","nodeName","SVGElement","Nested","Gradient","Element","namespace","setData","documentElement","nested","poly","polyline","native","numberAndUnit","hex","reference","transforms","whitespace","isHex","isRgb","isCss","isBlank","isPercent","isImage","hyphen","pathLetters","isPathLetter","numbersWithDots","dots","utils","filterSVGElements","defaults","Color","toHex","toRgb","brightness","morph","destination","isColor","PointArray","toUpperCase","PathArray","Point","toJSON","plus","minus","times","divide","relative","_stroke","_event","center","writeDataToDom","after","removeElement","addTo","put","putIn","visible","hasClass","addClass","removeClass","toggleClass","matches","doc","matchesSelector","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","oMatchesSelector","Parent","each","removeAttribute","is","MorphObj","Situation","reversing","duration","ease","loop","loops","FX","_target","situations","situation","paused","lastPos","pos","absPos","_speed","queue","timeToAbsPos","absPosToTime","startAnimFrame","stopAnimFrame","animationFrame","requestAnimationFrame","step","cancelAnimationFrame","startCurrent","initAnimations","dequeue","initialTransformation","matrixify","clearQueue","clearCurrent","atEnd","last","detail","_callStart","_i3","eased","eachAt","Matrix","multiply","undo","extract","matrix","Box","BBox","Shape","clientLeft","clientTop","atan2","transformedX","sqrt","transformedY","rotation","translate","createSVGMatrix","ctm","getCTM","screenCTM","getScreenCTM","point","nodeValue","leading","rebuild","untransform","toParent","toDoc","Transformation","inversed","Translate","first","clear","hasChildNodes","_defs","ungroup","Defs","flatten","ViewBox","handlerMap","listenerId","_svgjsListenerId","CustomEvent","cancelable","event","getElementById","version","Stop","Pattern","symbol","Use","Rect","Circle","Ellipse","ellipse","Line","toLine","Polyline","Polygon","_array","morphArray","Path","load","_loaded","ratio","url","_error","Text","_rebuild","_build","nodeType","newLined","build","textPath","Tspan","dx","dy","TextPath","getTotalLength","pointAt","getPointAtLength","remember","forget","_memory","bubbles","createEvent","initCustomEvent","backgroundAlpha","autoSetIn","BlendEffect","colorMatrix","ColorMatrixEffect","convolveMatrix","ConvolveMatrixEffect","ComponentTransferEffect","CompositeEffect","FloodEffect","OffsetEffect","ImageEffect","MergeEffect","GaussianBlurEffect","morphology","MorphologyEffect","diffuseLighting","DiffuseLightingEffect","displacementMap","DisplacementMapEffect","specularLighting","SpecularLightingEffect","tile","TileEffect","turbulence","TurbulenceEffect","Effect","in","ParentEffect","ChildEffect","in2","kernelMatrix","operator","xChannelSelector","yChannelSelector","numOctaves","seed","stitchTiles","baseFrequency","MergeNode","surfaceScale","diffuseConstant","kernelUnitLength","specularExponent","distantLight","azimuth","elevation","pointLight","spotLight","pointsAtX","pointsAtY","pointsAtZ","mergeNode","sepiatone","dest","reflection","acos","tan","transformPoint","matrixTransform","rbox","buttons","handler","defaultPrevented","stopPropagation","createSVGPoint","startPoints","box","drag","snapToGrid","pointSelection","isSelected","rectSelection","pointsList","rb","lb","pointCoord","pointCoords","pointsExclude","deepSelect","selectPoints","selectRect","observe","drawPoints","getPointArray","pageX","pageY","classPoints","updatePointSelection","updateRectSelection","rotationPoint","classRect","MutationObserver","observerInst","disconnect","parameters","lastUpdateCall","_extractPosition","calc","checkAspectRatio","snapToAngle","constraintToBox","saveAspectRatio","insertAt","__resizeTriggers__","firstElementChild","lastElementChild","scrollLeft","scrollWidth","scrollTop","scrollHeight","offsetWidth","offsetHeight","__resizeRAF__","__resizeLast__","__resizeListeners__","mozRequestAnimationFrame","webkitRequestAnimationFrame","mozCancelAnimationFrame","webkitCancelAnimationFrame","animationName","addResizeListener","removeResizeListener","Yt","publicMethods","axes","localization","formatters","titleSubtitle","dimensions","zoomPanSelection","Ft","isUpdating","clearDomElements","killSVG","Rt","initModules","windowResizeHandler","_windowResizeHandler","parentResizeHandler","_parentResizeCallback","_chartInstances","setLocale","mount","catch","checkResponsiveConfig","setupElements","checkComboSeries","handleNoData","setupEventHandlers","parseData","setGlobalMarkerSize","setLabelFormatters","hasAllSeriesEqualX","coreCalculations","heatmapLabelFormatters","xySettings","createGridMask","plotChartType","bringForward","dataLabelsBackground","shiftGraphPosition","elGraph","elInner","drawAxis","drawGrid","drawImageAnnos","drawTextAnnos","xAxisLabelCorrections","setYAxisTextAlignments","yAxisTitleRotate","drawAxesAnnotations","drawTooltip","createToolbar","resizeNonAxisCharts","resetSeries","forceXAxisUpdate","forceYAxisUpdate","clearPreviousPaths","updateThemeOptions","toggleSeries","showSeries","addXaxisAnnotationExternal","addYaxisAnnotationExternal","addPointAnnotationExternal","clearAnnotations","removeAnnotation","getSeriesTotalsXRange","toggleDataPointSelection","setCurrentLocaleValues","_windowResize","for","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","updater","isReactComponent","setState","forceUpdate","isPureReactComponent","__self","__source","$$typeof","_owner","keyPrefix","escape","ReactCurrentDispatcher","ReactCurrentBatchConfig","suspense","ReactCurrentOwner","IsSomeRendererActing","Children","toArray","only","Fragment","Profiler","PureComponent","StrictMode","Suspense","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","_context","createFactory","forwardRef","isValidElement","lazy","_ctor","_status","_result","memo","compare","useCallback","useContext","useDebugValue","useEffect","useImperativeHandle","useLayoutEffect","useMemo","useReducer","useRef","useState","propIsEnumerable","propertyIsEnumerable","toObject","test1","test2","fromCharCode","test3","letter","shouldUseNative","symbols","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","propFullName","secret","getShim","ReactPropTypes","bool","number","arrayOf","elementType","instanceOf","objectOf","oneOf","oneOfType","exact","checkPropTypes","PropTypes","customRanges","force","Today","Yesterday","rangesPosition","innerText","prepend"],"mappings":";;;;;;;;;;;;;;;;;kOAyB4R,IAAIA,EAAwB,WAAW,SAASA,EAAWC,GAASC,KAAKC,cAA0BC,IAAjBH,EAAQI,QAAuDJ,EAAQI,OAAOH,KAAKI,KAAK,GAAGJ,KAAKK,IAAI,EAAEL,KAAKM,MAAMP,EAAQO,MACveN,KAAKO,IAAIR,EAAQQ,IAAIP,KAAKQ,UAAUT,EAAQS,UAAUR,KAAKS,OAAO,KAAM,IAAIC,EAAOZ,EAAWa,UAmBM,OAnBID,EAAOE,OAAO,SAAgBC,GAGtI,GAAGb,KAAKK,KAAKL,KAAKC,SAAS,KAAM,IAAK,EAAE,CAAC,IAAsCQ,EAAlCK,EAJX,SAA4Bf,GAAS,IAAIgB,EAAIC,SAASC,cAAc,SAA0K,OAAjKF,EAAIG,aAAa,eAAenB,EAAQQ,UAAwBL,IAAhBH,EAAQO,OAAmBS,EAAIG,aAAa,QAAQnB,EAAQO,OAAQS,EAAII,YAAYH,SAASI,eAAe,KAAYL,EAIrOM,CAAmBrB,MAA0CS,EAAH,IAAnBT,KAAKI,KAAKkB,OAAmBtB,KAAKS,OAAoBT,KAAKI,KAAKJ,KAAKI,KAAKkB,OAAO,GAAGC,YAAavB,KAAKQ,UAAUgB,aAAaV,EAAKL,GAAQT,KAAKI,KAAKqB,KAAKX,GAAO,IAAIC,EAAIf,KAAKI,KAAKJ,KAAKI,KAAKkB,OAAO,GAAG,GAAGtB,KAAKC,SAAS,CAAC,IAAIyB,EAPrT,SAAqBX,GAAK,GAAGA,EAAIW,MACjC,OAAOX,EAAIW,MACe,IAAI,IAAI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