{"version":3,"sources":["1-popper.js","10-jsvectormap.js","11-world.js","12-choices.js","13-highcharts.src.js","14-tempus-dominus.js","15-sweetalert2.js","16-quill.js","17-tagify.js","18-highlight.js","19-event-calendar.min.js","2-bootstrap.js","20-fslightbox.js","21-jkanban.js","22-nouislider.js","3-feather.js","4-simple-scrollbar.js","5-chart.umd.js","6-apexcharts.js","7-claendar.js","8-img-fix.js","9-vis-timeline-graph2d.min.js"],"names":[],"mappings":"AAAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1DA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjCA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;ACAA","file":"plugins.bundle.js","sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=\"undefined\"!=typeof globalThis?globalThis:e||self).Popper={})}(this,function(e){\"use strict\";function b(e){var t;return null==e?window:\"[object Window]\"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function h(e){return e instanceof b(e).Element||e instanceof Element}function f(e){return e instanceof b(e).HTMLElement||e instanceof HTMLElement}function i(e){return\"undefined\"!=typeof ShadowRoot&&(e instanceof b(e).ShadowRoot||e instanceof ShadowRoot)}var P=Math.max,k=Math.min,w=Math.round;function a(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+\"/\"+e.version}).join(\" \"):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(a())}function l(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&f(e)&&(o=0<e.offsetWidth&&w(r.width)/e.offsetWidth||1,i=0<e.offsetHeight&&w(r.height)/e.offsetHeight||1);t=(h(e)?b(e):window).visualViewport,e=!S()&&n,n=(r.left+(e&&t?t.offsetLeft:0))/o,e=(r.top+(e&&t?t.offsetTop:0))/i,t=r.width/o,o=r.height/i;return{width:t,height:o,top:e,right:n+t,bottom:e+o,left:n,x:n,y:e}}function d(e){e=b(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function p(e){return e?(e.nodeName||\"\").toLowerCase():null}function x(e){return((h(e)?e.ownerDocument:e.document)||window.document).documentElement}function u(e){return l(x(e)).left+d(e).scrollLeft}function O(e){return b(e).getComputedStyle(e)}function c(e){var e=O(e),t=e.overflow,n=e.overflowX,e=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+e+n)}function N(e,t,n){void 0===n&&(n=!1);var r=f(t),o=f(t)&&(a=(o=t).getBoundingClientRect(),i=w(a.width)/o.offsetWidth||1,a=w(a.height)/o.offsetHeight||1,1!==i||1!==a),i=x(t),a=l(e,o,n),e={scrollLeft:0,scrollTop:0},s={x:0,y:0};return!r&&n||(\"body\"===p(t)&&!c(i)||(e=(r=t)!==b(r)&&f(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:d(r)),f(t)?((s=l(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=u(i))),{x:a.left+e.scrollLeft-s.x,y:a.top+e.scrollTop-s.y,width:a.width,height:a.height}}function F(e){var t=l(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function s(e){return\"html\"===p(e)?e:e.assignedSlot||e.parentNode||(i(e)?e.host:null)||x(e)}function v(e,t){void 0===t&&(t=[]);var n=function e(t){return 0<=[\"html\",\"body\",\"#document\"].indexOf(p(t))?t.ownerDocument.body:f(t)&&c(t)?t:e(s(t))}(e),e=n===(null==(e=e.ownerDocument)?void 0:e.body),r=b(n),r=e?[r].concat(r.visualViewport||[],c(n)?n:[]):n,n=t.concat(r);return e?n:n.concat(v(s(r)))}function o(e){return f(e)&&\"fixed\"!==O(e).position?e.offsetParent:null}function A(e){for(var t,n=b(e),r=o(e);r&&(t=r,0<=[\"table\",\"td\",\"th\"].indexOf(p(t)))&&\"static\"===O(r).position;)r=o(r);return(!r||\"html\"!==p(r)&&(\"body\"!==p(r)||\"static\"!==O(r).position))&&(r||function(e){var t=/firefox/i.test(a()),n=/Trident/i.test(a());if(!n||!f(e)||\"fixed\"!==O(e).position){var r=s(e);for(i(r)&&(r=r.host);f(r)&&[\"html\",\"body\"].indexOf(p(r))<0;){var o=O(r);if(\"none\"!==o.transform||\"none\"!==o.perspective||\"paint\"===o.contain||-1!==[\"transform\",\"perspective\"].indexOf(o.willChange)||t&&\"filter\"===o.willChange||t&&o.filter&&\"none\"!==o.filter)return r;r=r.parentNode}}return null}(e))||n}var D=\"top\",L=\"bottom\",M=\"right\",T=\"left\",q=\"auto\",W=[D,L,M,T],H=\"start\",j=\"end\",U=\"clippingParents\",_=\"viewport\",m=\"popper\",z=\"reference\",G=W.reduce(function(e,t){return e.concat([t+\"-\"+H,t+\"-\"+j])},[]),X=[].concat(W,[q]).reduce(function(e,t){return e.concat([t,t+\"-\"+H,t+\"-\"+j])},[]),Y=[\"beforeRead\",\"read\",\"afterRead\",\"beforeMain\",\"main\",\"afterMain\",\"beforeWrite\",\"write\",\"afterWrite\"];function J(e){var n=new Map,r=new Set,o=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||!function t(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){r.has(e)||(e=n.get(e))&&t(e)}),o.push(e)}(e)}),o}function g(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(e,t){return e.replace(/%s/,t)},e)}var y='Popper: modifier \"%s\" provided an invalid %s property, expected %s but got %s',K='Popper: modifier \"%s\" requires \"%s\", but \"%s\" modifier is not available',Q=[\"name\",\"enabled\",\"phase\",\"fn\",\"effect\",\"requires\",\"options\"];function B(e){return e.split(\"-\")[0]}function Z(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&i(n)){var r=t;do{if(r&&e.isSameNode(r))return!0}while(r=r.parentNode||r.host)}return!1}function $(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ee(e,t,n){return t===_?$((o=n,a=b(r=e),s=x(r),a=a.visualViewport,f=s.clientWidth,s=s.clientHeight,c=p=0,a&&(f=a.width,s=a.height,(i=S())||!i&&\"fixed\"===o)&&(p=a.offsetLeft,c=a.offsetTop),{width:f,height:s,x:p+u(r),y:c})):h(t)?((o=l(i=t,!1,\"fixed\"===(o=n))).top=o.top+i.clientTop,o.left=o.left+i.clientLeft,o.bottom=o.top+i.clientHeight,o.right=o.left+i.clientWidth,o.width=i.clientWidth,o.height=i.clientHeight,o.x=o.left,o.y=o.top,o):$((a=x(e),f=x(a),s=d(a),p=null==(p=a.ownerDocument)?void 0:p.body,r=P(f.scrollWidth,f.clientWidth,p?p.scrollWidth:0,p?p.clientWidth:0),c=P(f.scrollHeight,f.clientHeight,p?p.scrollHeight:0,p?p.clientHeight:0),a=-s.scrollLeft+u(a),s=-s.scrollTop,\"rtl\"===O(p||f).direction&&(a+=P(f.clientWidth,p?p.clientWidth:0)-r),{width:r,height:c,x:a,y:s}));var r,o,i,a,s,f,p,c}function te(n,e,t,r){var o,i=\"clippingParents\"===e?(a=v(s(i=n)),h(o=0<=[\"absolute\",\"fixed\"].indexOf(O(i).position)&&f(i)?A(i):i)?a.filter(function(e){return h(e)&&Z(e,o)&&\"body\"!==p(e)}):[]):[].concat(e),a=[].concat(i,[t]),e=a[0],t=a.reduce(function(e,t){t=ee(n,t,r);return e.top=P(t.top,e.top),e.right=k(t.right,e.right),e.bottom=k(t.bottom,e.bottom),e.left=P(t.left,e.left),e},ee(n,e,r));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function R(e){return e.split(\"-\")[1]}function ne(e){return 0<=[\"top\",\"bottom\"].indexOf(e)?\"x\":\"y\"}function re(e){var t,n=e.reference,r=e.element,e=e.placement,o=e?B(e):null,e=e?R(e):null,i=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(o){case D:t={x:i,y:n.y-r.height};break;case L:t={x:i,y:n.y+n.height};break;case M:t={x:n.x+n.width,y:a};break;case T:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var s=o?ne(o):null;if(null!=s){var f=\"y\"===s?\"height\":\"width\";switch(e){case H:t[s]=t[s]-(n[f]/2-r[f]/2);break;case j:t[s]=t[s]+(n[f]/2-r[f]/2)}}return t}function oe(){return{top:0,right:0,bottom:0,left:0}}function ie(e){return Object.assign({},oe(),e)}function ae(n,e){return e.reduce(function(e,t){return e[t]=n,e},{})}function C(e,t){var r,t=t=void 0===t?{}:t,n=t.placement,n=void 0===n?e.placement:n,o=t.strategy,o=void 0===o?e.strategy:o,i=t.boundary,i=void 0===i?U:i,a=t.rootBoundary,a=void 0===a?_:a,s=t.elementContext,s=void 0===s?m:s,f=t.altBoundary,f=void 0!==f&&f,t=t.padding,t=void 0===t?0:t,t=ie(\"number\"!=typeof t?t:ae(t,W)),p=e.rects.popper,f=e.elements[f?s===m?z:m:s],f=te(h(f)?f:f.contextElement||x(e.elements.popper),i,a,o),i=l(e.elements.reference),a=re({reference:i,element:p,strategy:\"absolute\",placement:n}),o=$(Object.assign({},p,a)),p=s===m?o:i,c={top:f.top-p.top+t.top,bottom:p.bottom-f.bottom+t.bottom,left:f.left-p.left+t.left,right:p.right-f.right+t.right},a=e.modifiersData.offset;return s===m&&a&&(r=a[n],Object.keys(c).forEach(function(e){var t=0<=[M,L].indexOf(e)?1:-1,n=0<=[D,L].indexOf(e)?\"y\":\"x\";c[e]+=r[n]*t})),c}var se=\"Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.\",fe={placement:\"bottom\",modifiers:[],strategy:\"absolute\"};function pe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&\"function\"==typeof e.getBoundingClientRect)})}function t(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,u=void 0===t?[]:t,t=e.defaultOptions,m=void 0===t?fe:t;return function(a,s,t){void 0===t&&(t=m);var n,r,f={placement:\"bottom\",orderedModifiers:[],options:Object.assign({},fe,m),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},p=[],c=!1,l={state:f,setOptions:function(e){var n,t,r,o,i,e=\"function\"==typeof e?e(f.options):e,e=(d(),f.options=Object.assign({},m,f.options,e),f.scrollParents={reference:h(a)?v(a):a.contextElement?v(a.contextElement):[],popper:v(s)},e=[].concat(u,f.options.modifiers),t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),e=Object.keys(t).map(function(e){return t[e]}),n=J(e),Y.reduce(function(e,t){return e.concat(n.filter(function(e){return e.phase===t}))},[])),e=(f.orderedModifiers=e.filter(function(e){return e.enabled}),e=[].concat(e,f.options.modifiers),o=function(e){return e.name},i=new Set,e.filter(function(e){e=o(e);if(!i.has(e))return i.add(e),!0})),e=((r=e).forEach(function(n){[].concat(Object.keys(n),Q).filter(function(e,t,n){return n.indexOf(e)===t}).forEach(function(e){switch(e){case\"name\":\"string\"!=typeof n.name&&console.error(g(y,String(n.name),'\"name\"','\"string\"','\"'+String(n.name)+'\"'));break;case\"enabled\":\"boolean\"!=typeof n.enabled&&console.error(g(y,n.name,'\"enabled\"','\"boolean\"','\"'+String(n.enabled)+'\"'));break;case\"phase\":Y.indexOf(n.phase)<0&&console.error(g(y,n.name,'\"phase\"',\"either \"+Y.join(\", \"),'\"'+String(n.phase)+'\"'));break;case\"fn\":\"function\"!=typeof n.fn&&console.error(g(y,n.name,'\"fn\"','\"function\"','\"'+String(n.fn)+'\"'));break;case\"effect\":null!=n.effect&&\"function\"!=typeof n.effect&&console.error(g(y,n.name,'\"effect\"','\"function\"','\"'+String(n.fn)+'\"'));break;case\"requires\":null==n.requires||Array.isArray(n.requires)||console.error(g(y,n.name,'\"requires\"','\"array\"','\"'+String(n.requires)+'\"'));break;case\"requiresIfExists\":Array.isArray(n.requiresIfExists)||console.error(g(y,n.name,'\"requiresIfExists\"','\"array\"','\"'+String(n.requiresIfExists)+'\"'));break;case\"options\":case\"data\":break;default:console.error('PopperJS: an invalid property has been provided to the \"'+n.name+'\" modifier, valid properties are '+Q.map(function(e){return'\"'+e+'\"'}).join(\", \")+'; but \"'+e+'\" was provided.')}n.requires&&n.requires.forEach(function(t){null==r.find(function(e){return e.name===t})&&console.error(g(K,String(n.name),t,t))})})}),B(f.options.placement)!==q||f.orderedModifiers.find(function(e){return\"flip\"===e.name})||console.error(['Popper: \"auto\" placements require the \"flip\" modifier be',\"present and enabled to work.\"].join(\" \")),O(s));return[e.marginTop,e.marginRight,e.marginBottom,e.marginLeft].some(function(e){return parseFloat(e)})&&console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding',\"between the popper and its reference element or boundary.\",\"To replicate margin, use the `offset` modifier, as well as\",\"the `padding` option in the `preventOverflow` and `flip`\",\"modifiers.\"].join(\" \")),f.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,e=e.effect;\"function\"==typeof e&&(e=e({state:f,name:t,instance:l,options:void 0===n?{}:n}),p.push(e||function(){}))}),l.update()},forceUpdate:function(){if(!c){var e=f.elements,t=e.reference,e=e.popper;if(pe(t,e)){f.rects={reference:N(t,A(e),\"fixed\"===f.options.strategy),popper:F(e)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(e){return f.modifiersData[e.name]=Object.assign({},e.data)});for(var n,r,o,i=0,a=0;a<f.orderedModifiers.length;a++){if(100<(i+=1)){console.error(\"Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.\");break}!0===f.reset?(f.reset=!1,a=-1):(n=(o=f.orderedModifiers[a]).fn,r=o.options,o=o.name,\"function\"==typeof n&&(f=n({state:f,options:void 0===r?{}:r,name:o,instance:l})||f))}}else console.error(se)}},update:(n=function(){return new Promise(function(e){l.forceUpdate(),e(f)})},function(){return r=r||new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(n())})})}),destroy:function(){d(),c=!0}};return pe(a,s)?l.setOptions(t).then(function(e){!c&&t.onFirstUpdate&&t.onFirstUpdate(e)}):console.error(se),l;function d(){p.forEach(function(e){return e()}),p=[]}}}var E={passive:!0};var n={name:\"eventListeners\",enabled:!0,phase:\"write\",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=(e=e.options).scroll,o=void 0===r||r,i=void 0===(r=e.resize)||r,a=b(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&s.forEach(function(e){e.addEventListener(\"scroll\",n.update,E)}),i&&a.addEventListener(\"resize\",n.update,E),function(){o&&s.forEach(function(e){e.removeEventListener(\"scroll\",n.update,E)}),i&&a.removeEventListener(\"resize\",n.update,E)}},data:{}};var r={name:\"popperOffsets\",enabled:!0,phase:\"read\",fn:function(e){var t=e.state,e=e.name;t.modifiersData[e]=re({reference:t.rects.reference,element:t.rects.popper,strategy:\"absolute\",placement:t.placement})},data:{}},ce={top:\"auto\",right:\"auto\",bottom:\"auto\",left:\"auto\"};function le(e){var t,n,r,o=e.popper,i=e.popperRect,a=e.placement,s=e.variation,f=e.offsets,p=e.position,c=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,e=e.isFixed,u=f.x,u=void 0===u?0:u,m=f.y,m=void 0===m?0:m,h=\"function\"==typeof d?d({x:u,y:m}):{x:u,y:m},h=(u=h.x,m=h.y,f.hasOwnProperty(\"x\")),f=f.hasOwnProperty(\"y\"),v=T,g=D,y=window,o=(l&&(n=\"clientHeight\",t=\"clientWidth\",(r=A(o))===b(o)&&\"static\"!==O(r=x(o)).position&&\"absolute\"===p&&(n=\"scrollHeight\",t=\"scrollWidth\"),a!==D&&(a!==T&&a!==M||s!==j)||(g=L,m=(m-((e&&r===y&&y.visualViewport?y.visualViewport.height:r[n])-i.height))*(c?1:-1)),a!==T&&(a!==D&&a!==L||s!==j)||(v=M,u=(u-((e&&r===y&&y.visualViewport?y.visualViewport.width:r[t])-i.width))*(c?1:-1))),Object.assign({position:p},l&&ce)),e=!0===d?(a=(n={x:u,y:m}).x,n=n.y,s=window.devicePixelRatio||1,{x:w(a*s)/s||0,y:w(n*s)/s||0}):{x:u,y:m};return u=e.x,m=e.y,c?Object.assign({},o,((r={})[g]=f?\"0\":\"\",r[v]=h?\"0\":\"\",r.transform=(y.devicePixelRatio||1)<=1?\"translate(\"+u+\"px, \"+m+\"px)\":\"translate3d(\"+u+\"px, \"+m+\"px, 0)\",r)):Object.assign({},o,((t={})[g]=f?m+\"px\":\"\",t[v]=h?u+\"px\":\"\",t.transform=\"\",t))}var de={name:\"computeStyles\",enabled:!0,phase:\"beforeWrite\",fn:function(e){var t=e.state,e=e.options,n=void 0===(n=e.gpuAcceleration)||n,r=void 0===(r=e.adaptive)||r,e=void 0===(e=e.roundOffsets)||e,o=O(t.elements.popper).transitionProperty||\"\",n=(r&&[\"transform\",\"top\",\"right\",\"bottom\",\"left\"].some(function(e){return 0<=o.indexOf(e)})&&console.warn([\"Popper: Detected CSS transitions on at least one of the following\",'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".',\"\\n\\n\",'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow',\"for smooth transitions, or remove these properties from the CSS\",\"transition declaration on the popper element if only transitioning\",\"opacity or background-color for example.\",\"\\n\\n\",\"We recommend using the popper element as a wrapper around an inner\",\"element that can have any CSS property transitioned for animations.\"].join(\" \")),{placement:B(t.placement),variation:R(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:\"fixed\"===t.options.strategy});null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,le(Object.assign({},n,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,le(Object.assign({},n,{offsets:t.modifiersData.arrow,position:\"absolute\",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-placement\":t.placement})},data:{}};var ue={name:\"applyStyles\",enabled:!0,phase:\"write\",fn:function(e){var o=e.state;Object.keys(o.elements).forEach(function(e){var t=o.styles[e]||{},n=o.attributes[e]||{},r=o.elements[e];f(r)&&p(r)&&(Object.assign(r.style,t),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?\"\":t)}))})},effect:function(e){var r=e.state,o={popper:{position:r.options.strategy,left:\"0\",top:\"0\",margin:\"0\"},arrow:{position:\"absolute\"},reference:{}};return Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow),function(){Object.keys(r.elements).forEach(function(e){var t=r.elements[e],n=r.attributes[e]||{},e=Object.keys((r.styles.hasOwnProperty(e)?r.styles:o)[e]).reduce(function(e,t){return e[t]=\"\",e},{});f(t)&&p(t)&&(Object.assign(t.style,e),Object.keys(n).forEach(function(e){t.removeAttribute(e)}))})}},requires:[\"computeStyles\"]};var me={name:\"offset\",enabled:!0,phase:\"main\",requires:[\"popperOffsets\"],fn:function(e){var a=e.state,t=e.options,e=e.name,s=void 0===(t=t.offset)?[0,0]:t,t=X.reduce(function(e,t){var n,r,o,i;return e[t]=(t=t,n=a.rects,r=s,o=B(t),i=0<=[T,D].indexOf(o)?-1:1,t=(n=\"function\"==typeof r?r(Object.assign({},n,{placement:t})):r)[0]||0,r=(n[1]||0)*i,0<=[T,M].indexOf(o)?{x:r,y:t}:{x:t,y:r}),e},{}),n=(r=t[a.placement]).x,r=r.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=n,a.modifiersData.popperOffsets.y+=r),a.modifiersData[e]=t}},he={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};function V(e){return e.replace(/left|right|bottom|top/g,function(e){return he[e]})}var ve={start:\"end\",end:\"start\"};function ge(e){return e.replace(/start|end/g,function(e){return ve[e]})}var ye={name:\"flip\",enabled:!0,phase:\"main\",fn:function(e){var l=e.state,t=e.options,e=e.name;if(!l.modifiersData[e]._skip){for(var n=t.mainAxis,r=void 0===n||n,n=t.altAxis,o=void 0===n||n,n=t.fallbackPlacements,d=t.padding,u=t.boundary,m=t.rootBoundary,i=t.altBoundary,a=t.flipVariations,h=void 0===a||a,v=t.allowedAutoPlacements,a=l.options.placement,t=B(a),n=n||(t===a||!h?[V(a)]:B(n=a)===q?[]:(t=V(n),[ge(n),t,ge(t)])),s=[a].concat(n).reduce(function(e,t){return e.concat(B(t)===q?(n=l,r=(e=e=void 0===(e={placement:t,boundary:u,rootBoundary:m,padding:d,flipVariations:h,allowedAutoPlacements:v})?{}:e).placement,o=e.boundary,i=e.rootBoundary,a=e.padding,s=e.flipVariations,f=void 0===(e=e.allowedAutoPlacements)?X:e,p=R(r),e=p?s?G:G.filter(function(e){return R(e)===p}):W,0===(r=e.filter(function(e){return 0<=f.indexOf(e)})).length&&(r=e,console.error([\"Popper: The `allowedAutoPlacements` option did not allow any\",\"placements. Ensure the `placement` option matches the variation\",\"of the allowed placements.\",'For example, \"auto\" cannot be used to allow \"bottom-start\".','Use \"auto-start\" instead.'].join(\" \"))),c=r.reduce(function(e,t){return e[t]=C(n,{placement:t,boundary:o,rootBoundary:i,padding:a})[B(t)],e},{}),Object.keys(c).sort(function(e,t){return c[e]-c[t]})):t);var n,r,o,i,a,s,f,p,c},[]),f=l.rects.reference,p=l.rects.popper,c=new Map,g=!0,y=s[0],b=0;b<s.length;b++){var w=s[b],x=B(w),O=R(w)===H,j=0<=[D,L].indexOf(x),E=j?\"width\":\"height\",S=C(l,{placement:w,boundary:u,rootBoundary:m,altBoundary:i,padding:d}),j=j?O?M:T:O?L:D,O=(f[E]>p[E]&&(j=V(j)),V(j)),E=[];if(r&&E.push(S[x]<=0),o&&E.push(S[j]<=0,S[O]<=0),E.every(function(e){return e})){y=w,g=!1;break}c.set(w,E)}if(g)for(var P=h?3:1;0<P;P--)if(\"break\"===function(t){var e=s.find(function(e){e=c.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return y=e,\"break\"}(P))break;l.placement!==y&&(l.modifiersData[e]._skip=!0,l.placement=y,l.reset=!0)}},requiresIfExists:[\"offset\"],data:{_skip:!1}};function I(e,t,n){return P(e,k(t,n))}var be={name:\"preventOverflow\",enabled:!0,phase:\"main\",fn:function(e){var t,n,r,o,i,a,s,f,p,c=e.state,l=e.options,e=e.name,d=void 0===(d=l.mainAxis)||d,u=void 0!==(u=l.altAxis)&&u,m=l.boundary,h=l.rootBoundary,v=l.altBoundary,g=l.padding,y=void 0===(y=l.tether)||y,l=void 0===(l=l.tetherOffset)?0:l,m=C(c,{boundary:m,rootBoundary:h,padding:g,altBoundary:v}),h=B(c.placement),v=!(g=R(c.placement)),b=ne(h),w=\"x\"===b?\"y\":\"x\",x=c.modifiersData.popperOffsets,O=c.rects.reference,j=c.rects.popper,l=\"number\"==typeof(l=\"function\"==typeof l?l(Object.assign({},c.rects,{placement:c.placement})):l)?{mainAxis:l,altAxis:l}:Object.assign({mainAxis:0,altAxis:0},l),E=c.modifiersData.offset?c.modifiersData.offset[c.placement]:null,S={x:0,y:0};x&&(d&&(d=\"y\"===b?\"height\":\"width\",a=(s=x[b])+m[n=\"y\"===b?D:T],f=s-m[p=\"y\"===b?L:M],t=y?-j[d]/2:0,o=(g===H?O:j)[d],g=g===H?-j[d]:-O[d],i=c.elements.arrow,i=y&&i?F(i):{width:0,height:0},n=(r=c.modifiersData[\"arrow#persistent\"]?c.modifiersData[\"arrow#persistent\"].padding:oe())[n],r=r[p],p=I(0,O[d],i[d]),i=v?O[d]/2-t-p-n-l.mainAxis:o-p-n-l.mainAxis,o=v?-O[d]/2+t+p+r+l.mainAxis:g+p+r+l.mainAxis,v=(n=c.elements.arrow&&A(c.elements.arrow))?\"y\"===b?n.clientTop||0:n.clientLeft||0:0,g=s+o-(t=null!=(d=null==E?void 0:E[b])?d:0),p=I(y?k(a,s+i-t-v):a,s,y?P(f,g):f),x[b]=p,S[b]=p-s),u&&(r=\"y\"==w?\"height\":\"width\",o=(n=x[w])+m[\"x\"===b?D:T],d=n-m[\"x\"===b?L:M],i=-1!==[D,T].indexOf(h),v=null!=(t=null==E?void 0:E[w])?t:0,a=i?o:n-O[r]-j[r]-v+l.altAxis,g=i?n+O[r]+j[r]-v-l.altAxis:d,s=y&&i?(f=I(f=a,n,p=g),p<f?p:f):I(y?a:o,n,y?g:d),x[w]=s,S[w]=s-n),c.modifiersData[e]=S)},requiresIfExists:[\"offset\"]};var we={name:\"arrow\",enabled:!0,phase:\"main\",fn:function(e){var t,n,r,o,i=e.state,a=e.name,e=e.options,s=i.elements.arrow,f=i.modifiersData.popperOffsets,p=ne(c=B(i.placement)),c=0<=[T,M].indexOf(c)?\"height\":\"width\";s&&f&&(e=e.padding,n=i,n=ie(\"number\"!=typeof(e=\"function\"==typeof e?e(Object.assign({},n.rects,{placement:n.placement})):e)?e:ae(e,W)),e=F(s),o=\"y\"===p?D:T,r=\"y\"===p?L:M,t=i.rects.reference[c]+i.rects.reference[p]-f[p]-i.rects.popper[c],f=f[p]-i.rects.reference[p],s=(s=A(s))?\"y\"===p?s.clientHeight||0:s.clientWidth||0:0,o=n[o],n=s-e[c]-n[r],o=I(o,r=s/2-e[c]/2+(t/2-f/2),n),i.modifiersData[a]=((s={})[p]=o,s.centerOffset=o-r,s))},effect:function(e){var t=e.state;null==(e=void 0===(e=e.options.element)?\"[data-popper-arrow]\":e)||\"string\"==typeof e&&!(e=t.elements.popper.querySelector(e))||(f(e)||console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).',\"To use an SVG arrow, wrap it in an HTMLElement that will be used as\",\"the arrow.\"].join(\" \")),Z(t.elements.popper,e)?t.elements.arrow=e:console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper',\"element.\"].join(\" \")))},requires:[\"popperOffsets\"],requiresIfExists:[\"preventOverflow\"]};function xe(e,t,n){return{top:e.top-t.height-(n=void 0===n?{x:0,y:0}:n).y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Oe(t){return[D,M,L,T].some(function(e){return 0<=t[e]})}var je={name:\"hide\",enabled:!0,phase:\"main\",requiresIfExists:[\"preventOverflow\"],fn:function(e){var t=e.state,e=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,i=C(t,{elementContext:\"reference\"}),a=C(t,{altBoundary:!0}),i=xe(i,n),n=xe(a,r,o),a=Oe(i),r=Oe(n);t.modifiersData[e]={referenceClippingOffsets:i,popperEscapeOffsets:n,isReferenceHidden:a,hasPopperEscaped:r},t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-reference-hidden\":a,\"data-popper-escaped\":r})}},Ee=t({defaultModifiers:[n,r,de,ue]}),Se=[n,r,de,ue,me,ye,be,we,je],Pe=t({defaultModifiers:Se});e.applyStyles=ue,e.arrow=we,e.computeStyles=de,e.createPopper=Pe,e.createPopperLite=Ee,e.defaultModifiers=Se,e.detectOverflow=C,e.eventListeners=n,e.flip=ye,e.hide=je,e.offset=me,e.popperGenerator=t,e.popperOffsets=r,e.preventOverflow=be,Object.defineProperty(e,\"__esModule\",{value:!0})});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).jsVectorMap=e()}(this,function(){\"use strict\";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),i=e.length;0<=--i&&e.item(i)!==this;);return-1<i}),Object.assign||Object.defineProperty(Object,\"assign\",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError(\"Cannot convert first argument to object\");for(var e=Object(t),i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s)for(var s=Object(s),a=Object.keys(Object(s)),n=0,r=a.length;n<r;n++){var o=a[n],h=Object.getOwnPropertyDescriptor(s,o);void 0!==h&&h.enumerable&&(e[o]=s[o])}}return e}});var a=function(t){return!(!(e=t)||\"object\"!=typeof e||(e=t,\"[object RegExp]\"===(t=Object.prototype.toString.call(e)))||\"[object Date]\"===t||function(t){return t instanceof Node}(e)||function(t){return t.$$typeof===i}(e));var e};var i=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?p(Array.isArray(t)?[]:{},t,e):t}function n(t,e,i){return t.concat(e).map(function(t){return o(t,i)})}function t(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function h(t,e){try{return e in t}catch(t){return!1}}function r(s,a,n){var r={};return n.isMergeableObject(s)&&t(s).forEach(function(t){r[t]=o(s[t],n)}),t(a).forEach(function(t){var e,i;(!h(e=s,i=t)||Object.hasOwnProperty.call(e,i)&&Object.propertyIsEnumerable.call(e,i))&&(h(s,t)&&n.isMergeableObject(a[t])?r[t]=(e=t,((i=n).customMerge&&\"function\"==typeof(i=i.customMerge(e))?i:p)(s[t],a[t],n)):r[t]=o(a[t],n))}),r}function l(t,e,i,s){return void 0===s&&(s=!1),t=document.createElement(t),i&&(t[s?\"innerHTML\":\"textContent\"]=i),e&&(t.className=e),t}function s(t){t.parentNode.removeChild(t)}function c(t,e,i){return(i=void 0!==i&&i)?p(t,e):Object.assign(t,e)}function u(t,e){return t.toLowerCase()+\":to:\"+e.toLowerCase()}function e(t,e){Object.assign(t.prototype,e)}var p=function(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||a,i.cloneUnlessOtherwiseSpecified=o;var s=Array.isArray(e);return s===Array.isArray(t)?s?i.arrayMerge(t,e,i):r(t,e,i):o(e,i)},d=function(t){return\"object\"==typeof t&&void 0!==t.nodeType?t:\"string\"==typeof t?document.querySelector(t):null},f={},m=1,g={on:function(t,e,i,s){void 0===s&&(s={});var a=\"jvm:\"+e+\"::\"+m++;f[a]={selector:t,handler:i},i._uid=a,t.addEventListener(e,i,s)},delegate:function(e,t,i,s){(t=t.split(\" \")).forEach(function(t){g.on(e,t,function(t){var e=t.target;e.matches(i)&&s.call(e,t)})})},off:function(t,e,i){e=e.split(\":\")[1];t.removeEventListener(e,i),delete f[i._uid]},flush:function(){Object.keys(f).forEach(function(t){g.off(f[t].selector,t,f[t].handler)})},getEventRegistry:function(){return f}};var v={onViewportChange:\"viewport:changed\",onRegionClick:\"region:clicked\",onMarkerClick:\"marker:clicked\",onRegionSelected:\"region:selected\",onMarkerSelected:\"marker:selected\",onRegionTooltipShow:\"region.tooltip:show\",onMarkerTooltipShow:\"marker.tooltip:show\",onLoaded:\"map:loaded\",onDestroyed:\"map:destroyed\"};function y(t,e,i){var e=d(e),s=-1===e.getAttribute(\"class\").indexOf(\"jvm-region\")?\"marker\":\"region\",e=\"region\"==s?e.getAttribute(\"data-code\"):e.getAttribute(\"data-index\");return{event:i?s+\".tooltip:show\":s+\":selected\",type:s,code:e,element:(\"region\"==s?t.regions:t.markers)[e].element,tooltipText:\"region\"==s?t.mapData.paths[e].name||\"\":t.markers[e].config.name||\"\"}}function b(t,e){t.prototype=Object.create(e.prototype),_(t.prototype.constructor=t,e)}function _(t,e){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function w(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function k(t,e){var i,s=\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=function(t,e){var i;if(t)return\"string\"==typeof t?S(t,e):\"Map\"===(i=\"Object\"===(i=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||\"Set\"===i?Array.from(t):\"Arguments\"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?S(t,e):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),i=0,function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var x=function(){function t(){}return t.prototype.dispose=function(){this._tooltip?s(this._tooltip):this.shape.remove();for(var t,e=k(Object.getOwnPropertyNames(this));!(t=e()).done;)this[t.value]=null},t}(),M={getLabelText:function(t,e){var i;if(e)return\"function\"==typeof e.render?(i=[],this.config&&this.config.marker&&i.push(this.config.marker),i.push(t),e.render.apply(this,i)):t},getLabelOffsets:function(t,e){return\"function\"==typeof e.offsets?e.offsets(t):Array.isArray(e.offsets)?e.offsets[t]:[0,0]},setStyle:function(t,e){this.shape.setStyle(t,e)},remove:function(){this.shape.remove(),this.label&&this.label.remove()},hover:function(t){this._setStatus(\"isHovered\",t)},select:function(t){this._setStatus(\"isSelected\",t)},_setStatus:function(t,e){this.shape[t]=e,this.shape.updateStyle(),this[t]=e,this.label&&(this.label[t]=e,this.label.updateStyle())}},j=function(h){function t(t){var e=t.map,i=t.code,s=t.path,a=t.style,n=t.label,r=t.labelStyle,t=t.labelsGroup,o=h.call(this)||this,e=(o._map=e,o.shape=o._createRegion(s,i,a),o.shape.getBBox()),s=o.getLabelText(i,n);return n&&s&&(a=o.getLabelOffsets(i,n),o.labelX=e.x+e.width/2+a[0],o.labelY=e.y+e.height/2+a[1],o.label=o._map.canvas.createText({text:s,textAnchor:\"middle\",alignmentBaseline:\"central\",dataCode:i,x:o.labelX,y:o.labelY},r,t),o.label.addClass(\"jvm-region jvm-element\")),o}b(t,h);var e=t.prototype;return e._createRegion=function(t,e,i){return(t=this._map.canvas.createPath({d:t,dataCode:e},i)).addClass(\"jvm-region jvm-element\"),t},e.updateLabelPosition=function(){this.label&&this.label.set({x:this.labelX*this._map.scale+this._map.transX*this._map.scale,y:this.labelY*this._map.scale+this._map.transY*this._map.scale})},t}(x);e(j,M);var L=function(c){function t(t){var e=t.index,i=t.map,s=t.style,a=t.x1,n=t.y1,r=t.x2,o=t.y2,h=t.group,t=t.config,l=c.call(this)||this;return l.config=t,l.shape=i.canvas.createLine({x1:a,y1:n,x2:r,y2:o,dataIndex:e},s,h),l.shape.addClass(\"jvm-line\"),l}return b(t,c),t.prototype.setStyle=function(t,e){this.shape.setStyle(t,e)},t}(x);var C=function(l){function t(t){var e=t.index,i=t.style,s=t.label,a=t.cx,n=t.cy,r=t.map,o=t.group,h=l.call(this)||this;return h._map=r,h._isImage=!!i.initial.image,h.config=t,h.shape=r.canvas[h._isImage?\"createImage\":\"createCircle\"]({dataIndex:e,cx:a,cy:n},i,o),h.shape.addClass(\"jvm-marker jvm-element\"),h._isImage&&h.updateLabelPosition(),s&&h._createLabel(h.config),h}b(t,l);var e=t.prototype;return e.updateLabelPosition=function(){this.label&&this.label.set({x:this._labelX*this._map.scale+this._offsets[0]+this._map.transX*this._map.scale+5+(this._isImage?(this.shape.width||0)/2:this.shape.node.r.baseVal.value),y:this._labelY*this._map.scale+this._map.transY*this._map.scale+this._offsets[1]})},e._createLabel=function(t){var e=t.index,i=t.map,s=t.label,a=t.labelsGroup,n=t.cx,r=t.cy,o=t.marker,t=t.isRecentlyCreated,h=this.getLabelText(e,s);this._labelX=n/i.scale-i.transX,this._labelY=r/i.scale-i.transY,this._offsets=t&&o.offsets?o.offsets:this.getLabelOffsets(e,s),this.label=i.canvas.createText({text:h,dataIndex:e,x:this._labelX,y:this._labelY,dy:\"0.6ex\"},i.params.markerLabelStyle,a),this.label.addClass(\"jvm-marker jvm-element\"),t&&this.updateLabelPosition()},t}(x);e(C,M);var O=function(){function t(t){this._options=t=void 0===t?{}:t,this._map=this._options.map,this._series=this._options.series,this._body=l(\"div\",\"jvm-legend\"),this._options.cssClass&&this._body.setAttribute(\"class\",this._options.cssClass),(t.vertical?this._map.legendVertical:this._map.legendHorizontal).appendChild(this._body),this.render()}return t.prototype.render=function(){var t,e,i,s=this._series.scale.getTicks(),a=l(\"div\",\"jvm-legend-inner\");this._body.innderHTML=\"\",this._options.title&&(i=l(\"div\",\"jvm-legend-title\",this._options.title),this._body.appendChild(i)),this._body.appendChild(a);for(var n,r=0;r<s.length;r++){switch(t=l(\"div\",\"jvm-legend-tick\"),e=l(\"div\",\"jvm-legend-tick-sample\"),this._series.config.attribute){case\"fill\":n=s[r].value,/\\.(jpg|gif|png)$/.test(n)?e.style.background=\"url(\"+s[r].value+\")\":e.style.background=s[r].value;break;case\"stroke\":e.style.background=s[r].value;break;case\"image\":e.style.background=\"url(\"+(\"object\"==typeof s[r].value?s[r].value.url:s[r].value)+\") no-repeat center center\",e.style.backgroundSize=\"cover\"}t.appendChild(e),o=s[r].label,this._options.labelRender&&(o=this._options.labelRender(o));var o=l(\"div\",\"jvm-legend-tick-text\",o);t.appendChild(o),a.appendChild(t)}},t}(),A=function(){function t(t){this._scale=t}var e=t.prototype;return e.getValue=function(t){return this._scale[t]},e.getTicks=function(){var t,e=[];for(t in this._scale)e.push({label:t,value:this._scale[t]});return e},t}(),X=function(){function t(t,e,i){void 0===t&&(t={}),this._map=i,this._elements=e,this._values=t.values||{},this.config=t,this.config.attribute=t.attribute||\"fill\",t.attributes&&this.setAttributes(t.attributes),\"object\"==typeof t.scale&&(this.scale=new A(t.scale)),this.config.legend&&(this.legend=new O(c({map:this._map,series:this},this.config.legend))),this.setValues(this._values)}var e=t.prototype;return e.setValues=function(t){var e,i={};for(e in t)t[e]&&(i[e]=this.scale.getValue(t[e]));this.setAttributes(i)},e.setAttributes=function(t){for(var e in t)this._elements[e]&&this._elements[e].element.setStyle(this.config.attribute,t[e])},e.clear=function(){var t,e={};for(t in this._values)this._elements[t]&&(e[t]=this._elements[t].element.shape.style.initial[this.config.attribute]);this.setAttributes(e),this._values={}},t}();var Y={mill:function(t,e,i){return{x:this.radius*(e-i)*this.radDeg,y:-this.radius*Math.log(Math.tan((45+.4*t)*this.radDeg))/.8}},merc:function(t,e,i){return{x:this.radius*(e-i)*this.radDeg,y:-this.radius*Math.log(Math.tan(Math.PI/4+t*Math.PI/360))}},aea:function(t,e,i){var i=i*this.radDeg,s=29.5*this.radDeg,a=45.5*this.radDeg,t=t*this.radDeg,e=e*this.radDeg,a=(Math.sin(s)+Math.sin(a))/2,s=Math.cos(s)*Math.cos(s)+2*a*Math.sin(s),e=a*(e-i),i=Math.sqrt(s-2*a*Math.sin(t))/a,t=Math.sqrt(s-2*a*Math.sin(0))/a;return{x:i*Math.sin(e)*this.radius,y:-(t-i*Math.cos(e))*this.radius}},lcc:function(t,e,i){var i=i*this.radDeg,e=e*this.radDeg,s=33*this.radDeg,a=45*this.radDeg,t=t*this.radDeg,a=Math.log(Math.cos(s)*(1/Math.cos(a)))/Math.log(Math.tan(Math.PI/4+a/2)*(1/Math.tan(Math.PI/4+s/2))),s=Math.cos(s)*Math.pow(Math.tan(Math.PI/4+s/2),a)/a,t=s*Math.pow(1/Math.tan(Math.PI/4+t/2),a),s=s*Math.pow(1/Math.tan(Math.PI/4+0),a);return{x:t*Math.sin(a*(e-i))*this.radius,y:-(s-t*Math.cos(a*(e-i)))*this.radius}}};Y.degRad=180/Math.PI,Y.radDeg=Math.PI/180,Y.radius=6381372;var M={_setupContainerEvents:function(){var e,i,a=this,s=!1,n=this;this.params.draggable&&(g.on(this.container,\"mousemove\",function(t){if(!s)return!1;n.transX-=(e-t.pageX)/n.scale,n.transY-=(i-t.pageY)/n.scale,n._applyTransform(),e=t.pageX,i=t.pageY}),g.on(this.container,\"mousedown\",function(t){return s=!0,e=t.pageX,i=t.pageY,!1}),g.on(document.body,\"mouseup\",function(){s=!1})),this.params.zoomOnScroll&&g.on(this.container,\"wheel\",function(t){var e=0,e=(t.deltaY||-t.wheelDelta||t.detail)>>10||1,i=(e*=75,a.container.getBoundingClientRect()),s=t.pageX-i.left-window.pageXOffset,i=t.pageY-i.top-window.pageYOffset,e=Math.pow(1+n.params.zoomOnScrollSpeed/1e3,-1.5*e);n.tooltip&&n.tooltip.hide(),n._setScale(n.scale*e,s,i),t.preventDefault()})},_setupElementEvents:function(){var e,i,s,a=this,t=this.container;g.on(t,\"mousemove\",function(t){2<Math.abs(e-t.pageX)+Math.abs(i-t.pageY)&&(s=!0)}),g.delegate(t,\"mousedown\",\".jvm-element\",function(t){e=t.pageX,i=t.pageY,s=!1}),g.delegate(t,\"mouseover mouseout\",\".jvm-element\",function(t){var e=y(a,this,!0),i=a.params.showTooltip;\"mouseover\"===t.type?(e.element.hover(!0),a.tooltip.text(e.tooltipText),a._emit(e.event,[t,a.tooltip,e.code]),t.defaultPrevented||i&&a.tooltip.show()):(e.element.hover(!1),i&&a.tooltip.hide())}),g.delegate(t,\"mouseup\",\".jvm-element\",function(t){var e,i=y(a,this);s||(\"region\"===i.type&&a.params.regionsSelectable||\"marker\"===i.type&&a.params.markersSelectable)&&(e=i.element,a.params[i.type+\"sSelectableOne\"]&&a._clearSelected(i.type+\"s\"),i.element.isSelected?e.select(!1):e.select(!0),a._emit(i.event,[i.code,e.isSelected,a._getSelected(i.type+\"s\")]))}),g.delegate(t,\"click\",\".jvm-element\",function(t){var e=y(a,this),i=e.type,e=e.code;a._emit(\"region\"===i?v.onRegionClick:v.onMarkerClick,[t,e])})},_setupZoomButtons:function(){var t=this,e=this,i=l(\"div\",\"jvm-zoom-btn jvm-zoomin\",\"+\",!0),s=l(\"div\",\"jvm-zoom-btn jvm-zoomout\",\"−\",!0);this.container.appendChild(i),this.container.appendChild(s),g.on(i,\"click\",function(){t._setScale(e.scale*e.params.zoomStep,e.width/2,e.height/2,!1,e.params.zoomAnimate)}),g.on(s,\"click\",function(){t._setScale(e.scale/e.params.zoomStep,e.width/2,e.height/2,!1,e.params.zoomAnimate)})},_setupContainerTouchEvents:function(){function t(t){var e,i,s=t.touches;\"touchstart\"==t.type&&(c=0),1==s.length?(1==c&&(i=u.transX,e=u.transY,u.transX-=(r-s[0].pageX)/u.scale,u.transY-=(o-s[0].pageY)/u.scale,u.tooltip.hide(),u._applyTransform(),i==u.transX&&e==u.transY||t.preventDefault()),r=s[0].pageX,o=s[0].pageY):2==s.length&&(2==c?(i=Math.sqrt(Math.pow(s[0].pageX-s[1].pageX,2)+Math.pow(s[0].pageY-s[1].pageY,2))/n,u._setScale(a*i,h,l),u.tooltip.hide(),t.preventDefault()):(i={top:(e=u.container.selector.getBoundingClientRect()).top+window.scrollY,left:e.left+window.scrollX},h=s[0].pageX>s[1].pageX?s[1].pageX+(s[0].pageX-s[1].pageX)/2:s[0].pageX+(s[1].pageX-s[0].pageX)/2,l=s[0].pageY>s[1].pageY?s[1].pageY+(s[0].pageY-s[1].pageY)/2:s[0].pageY+(s[1].pageY-s[0].pageY)/2,h-=i.left,l-=i.top,a=u.scale,n=Math.sqrt(Math.pow(s[0].pageX-s[1].pageX,2)+Math.pow(s[0].pageY-s[1].pageY,2)))),c=s.length}var a,n,r,o,h,l,c,u=this;g.on(u.container,\"touchstart\",t),g.on(u.container,\"touchmove\",t)},_createRegions:function(){var t,e;for(t in this._regionLabelsGroup=this._regionLabelsGroup||this.canvas.createGroup(\"jvm-regions-labels-group\"),this.mapData.paths)e=new j({map:this,code:t,path:this.mapData.paths[t].path,style:c({},this.params.regionStyle),labelStyle:this.params.regionLabelStyle,labelsGroup:this._regionLabelsGroup,label:this.params.labels&&this.params.labels.regions}),this.regions[t]={config:this.mapData.paths[t],element:e}},_createLines:function(t,e,i){void 0===i&&(i=!1);var s,a=!1,n=!1;for(s in this.linesGroup=this.linesGroup||this.canvas.createGroup(\"jvm-lines-group\"),t){var r,o=t[s];for(r in e){var h=i?e[r].config:e[r];h.name===o.from&&(a=this.getMarkerPosition(h)),h.name===o.to&&(n=this.getMarkerPosition(h))}!1!==a&&!1!==n&&(this.lines[u(o.from,o.to)]=new L({index:s,map:this,style:c({initial:this.params.lineStyle},{initial:o.style||{}},!0),x1:a.x,y1:a.y,x2:n.x,y2:n.y,group:this.linesGroup,config:o}))}},_createMarkers:function(t,e){var i,s,a,n,r=this;for(n in void 0===t&&(t={}),void 0===e&&(e=!1),this._markersGroup=this._markersGroup||this.canvas.createGroup(\"jvm-markers-group\"),this._markerLabelsGroup=this._markerLabelsGroup||this.canvas.createGroup(\"jvm-markers-labels-group\"),t)if(i=t[n],s=this.getMarkerPosition(i),a=i.coords.join(\":\"),s){if(e){if(Object.keys(this.markers).filter(function(t){return r.markers[t]._uid===a}).length)continue;n=Object.keys(this.markers).length}s=new C({index:n,map:this,style:c(this.params.markerStyle,{initial:i.style||{}},!0),label:this.params.labels&&this.params.labels.markers,labelsGroup:this._markerLabelsGroup,cx:s.x,cy:s.y,group:this._markersGroup,marker:i,isRecentlyCreated:e}),this.markers[n]&&this.removeMarkers([n]),this.markers[n]={_uid:a,config:i,element:s}}},_createSeries:function(){for(var t in this.series={markers:[],regions:[]},this.params.series)for(var e=0;e<this.params.series[t].length;e++)this.series[t][e]=new X(this.params.series[t][e],this[t],this)},_applyTransform:function(){var t,e,i=this.defaultWidth*this.scale<=this.width?(t=(this.width-this.defaultWidth*this.scale)/(2*this.scale),(this.width-this.defaultWidth*this.scale)/(2*this.scale)):(t=0,(this.width-this.defaultWidth*this.scale)/this.scale),s=this.defaultHeight*this.scale<=this.height?(e=(this.height-this.defaultHeight*this.scale)/(2*this.scale),(this.height-this.defaultHeight*this.scale)/(2*this.scale)):(e=0,(this.height-this.defaultHeight*this.scale)/this.scale);this.transY>e?this.transY=e:this.transY<s&&(this.transY=s),this.transX>t?this.transX=t:this.transX<i&&(this.transX=i),this.canvas.applyTransformParams(this.scale,this.transX,this.transY),this.markers&&this._repositionMarkers(),this.lines&&this._repositionLines(),this._repositionLabels()},_resize:function(){var t=this.baseScale;this.width/this.height>this.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale)),this.scale*=this.baseScale/t,this.transX*=this.baseScale/t,this.transY*=this.baseScale/t},_setScale:function(t,e,i,s,a){var n,r,o,h,l,c,u,p,d,f=this,m=0,g=Math.abs(Math.round(60*(t-this.scale)/Math.max(t,this.scale)));t>this.params.zoomMax*this.baseScale?t=this.params.zoomMax*this.baseScale:t<this.params.zoomMin*this.baseScale&&(t=this.params.zoomMin*this.baseScale),void 0!==e&&void 0!==i&&(d=t/this.scale,d=s?(p=e+this.defaultWidth*(this.width/(this.defaultWidth*t))/2,i+this.defaultHeight*(this.height/(this.defaultHeight*t))/2):(p=this.transX-(d-1)/t*e,this.transY-(d-1)/t*i)),a&&0<g?(r=this.scale,o=(t-r)/g,h=this.transX*this.scale,c=this.transY*this.scale,l=(p*t-h)/g,u=(d*t-c)/g,n=setInterval(function(){m+=1,f.scale=r+o*m,f.transX=(h+l*m)/f.scale,f.transY=(c+u*m)/f.scale,f._applyTransform(),m==g&&(clearInterval(n),f._emit(v.onViewportChange,[f.scale,f.transX,f.transY]))},10)):(this.transX=p,this.transY=d,this.scale=t,this._applyTransform(),this._emit(v.onViewportChange,[this.scale,this.transX,this.transY]))},setFocus:function(t){var e,i,s=this,a=[];return(t=void 0===t?{}:t).region?a.push(t.region):t.regions&&(a=t.regions),a.length?(a.forEach(function(t){s.regions[t]&&(t=s.regions[t].element.shape.getBBox())&&(e=void 0===e?t:{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),width:Math.max(e.x+e.width,t.x+t.width)-Math.min(e.x,t.x),height:Math.max(e.y+e.height,t.y+t.height)-Math.min(e.y,t.y)})}),this._setScale(Math.min(this.width/e.width,this.height/e.height),-(e.x+e.width/2),-(e.y+e.height/2),!0,t.animate)):t.coords?(a=this.coordsToPoint(t.coords[0],t.coords[1]),i=this.transX-a.x/this.scale,a=this.transY-a.y/this.scale,this._setScale(t.scale*this.baseScale,i,a,!0,t.animate)):void 0},updateSize:function(){this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this._resize(),this.canvas.setSize(this.width,this.height),this._applyTransform()},coordsToPoint:function(t,e){var i=(s=z.maps[this.params.map].projection).centralMeridian,s=Y[s.type](t,e,i);return!!(t=this.getInsetForPoint(s.x,s.y))&&(e=t.bbox,s.x=(s.x-e[0].x)/(e[1].x-e[0].x)*t.width*this.scale,s.y=(s.y-e[0].y)/(e[1].y-e[0].y)*t.height*this.scale,{x:s.x+this.transX*this.scale+t.left*this.scale,y:s.y+this.transY*this.scale+t.top*this.scale})},getInsetForPoint:function(t,e){for(var i,s=z.maps[this.params.map].insets,a=0;a<s.length;a++)if(t>(i=s[a].bbox)[0].x&&t<i[1].x&&e>i[0].y&&e<i[1].y)return s[a]},getMarkerPosition:function(t){return t=t.coords,z.maps[this.params.map].projection?this.coordsToPoint.apply(this,t):{x:t[0]*this.scale+this.transX*this.scale,y:t[1]*this.scale+this.transY*this.scale}},_repositionLines:function(){var t,e=!1,i=!1;for(t in this.lines){for(var s in this.markers){s=this.markers[s];s.config.name===this.lines[t].config.from&&(e=this.getMarkerPosition(s.config)),s.config.name===this.lines[t].config.to&&(i=this.getMarkerPosition(s.config))}!1!==e&&!1!==i&&this.lines[t].setStyle({x1:e.x,y1:e.y,x2:i.x,y2:i.y})}},_repositionMarkers:function(){var t,e;for(e in this.markers)!1!==(t=this.getMarkerPosition(this.markers[e].config))&&this.markers[e].element.setStyle({cx:t.x,cy:t.y})},_repositionLabels:function(){var t=this.params.labels;if(t){if(t.regions)for(var e in this.regions)this.regions[e].element.updateLabelPosition();if(t.markers)for(var i in this.markers)this.markers[i].element.updateLabelPosition()}}},E=function(){function t(t,e){this.node=this._createElement(t),e&&this.set(e)}var e=t.prototype;return e._createElement=function(t){return document.createElementNS(\"http://www.w3.org/2000/svg\",t)},e.addClass=function(t){this.node.setAttribute(\"class\",t)},e.getBBox=function(){return this.node.getBBox()},e.set=function(t,e){if(\"object\"==typeof t)for(var i in t)this.applyAttr(i,t[i]);else this.applyAttr(t,e)},e.get=function(t){return this.style.initial[t]},e.applyAttr=function(t,e){this.node.setAttribute(t.replace(/[\\w]([A-Z])/g,function(t){return t[0]+\"-\"+t[1]}).toLowerCase(),e)},e.remove=function(){s(this.node)},t}(),T=function(s){function t(t,e,i){return void 0===i&&(i={}),(t=s.call(this,t,e)||this).isHovered=!1,t.isSelected=!1,t.style=i,t.style.current={},t.updateStyle(),t}b(t,s);var e=t.prototype;return e.setStyle=function(t,e){var i;c(this.style.current,\"object\"==typeof t?t:((i={})[t]=e,i)),this.updateStyle()},e.updateStyle=function(){var t={};c(t,this.style.initial),c(t,this.style.current),this.isHovered&&c(t,this.style.hover),this.isSelected&&(c(t,this.style.selected),this.isHovered)&&c(t,this.style.selectedHover),this.set(t)},t}(E),P=function(i){function t(t,e){return i.call(this,\"text\",t,e)||this}return b(t,i),t.prototype.applyAttr=function(t,e){\"text\"===t?this.node.textContent=e:i.prototype.applyAttr.call(this,t,e)},t}(T),D=function(s){function t(t,e){return s.call(this,\"image\",t,e)||this}return b(t,s),t.prototype.applyAttr=function(t,e){var i;\"image\"===t?(\"object\"==typeof e?(i=e.url,this.offset=e.offset||[0,0]):(i=e,this.offset=[0,0]),this.node.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",i),this.width=23,this.height=23,this.applyAttr(\"width\",this.width),this.applyAttr(\"height\",this.height),this.applyAttr(\"x\",this.cx-this.width/2+this.offset[0]),this.applyAttr(\"y\",this.cy-this.height/2+this.offset[1])):\"cx\"==t?(this.cx=e,this.width&&this.applyAttr(\"x\",e-this.width/2+this.offset[0])):\"cy\"==t?(this.cy=e,this.height&&this.applyAttr(\"y\",e-this.height/2+this.offset[1])):s.prototype.applyAttr.apply(this,arguments)},t}(T),I=function(i){function t(t){var e=i.call(this,\"svg\")||this;return e._container=t,e._defsElement=new E(\"defs\"),e._rootElement=new E(\"g\",{id:\"jvm-regions-group\"}),e.node.appendChild(e._defsElement.node),e.node.appendChild(e._rootElement.node),e._container.appendChild(e.node),e}b(t,i);var e=t.prototype;return e.setSize=function(t,e){this.node.setAttribute(\"width\",t),this.node.setAttribute(\"height\",e)},e.applyTransformParams=function(t,e,i){this._rootElement.node.setAttribute(\"transform\",\"scale(\"+t+\") translate(\"+e+\", \"+i+\")\")},e.createPath=function(t,e){t=new T(\"path\",t,e);return t.node.setAttribute(\"fill-rule\",\"evenodd\"),this.add(t)},e.createCircle=function(t,e,i){t=new T(\"circle\",t,e);return this.add(t,i)},e.createLine=function(t,e,i){t=new T(\"line\",t,e);return this.add(t,i)},e.createText=function(t,e,i){t=new P(t,e);return this.add(t,i)},e.createImage=function(t,e,i){t=new D(t,e);return this.add(t,i)},e.createGroup=function(t){var e=new E(\"g\");return this.node.appendChild(e.node),t&&(e.node.id=t),e.canvas=this,e},e.add=function(t,e){return(e=e||this._rootElement).node.appendChild(t.node),t},t}(E),R=function(s){function t(t){var e=s.call(this)||this,i=l(\"div\",\"jvm-tooltip\");return e._map=t,e._tooltip=document.body.appendChild(i),e._bindEventListeners(),w(e)||w(e)}b(t,s);var e=t.prototype;return e._bindEventListeners=function(){var o=this;g.on(this._map.container,\"mousemove\",function(t){var e,i,s,a,n,r;o._tooltip.classList.contains(\"active\")&&(e=o._map.container,s=\"#jvm-regions-group\",e=Element.prototype.querySelector.call(e,s).getBoundingClientRect(),i=(s=o._tooltip.getBoundingClientRect()).height,s=s.width,a=t.clientY<=e.top+i+5,n=t.pageY-i-5,r=t.pageX-s-5,a&&(n+=i+5,r-=10),t.clientX<e.left+s+5&&(r=t.pageX+5+2,a)&&(r+=10),o.css({top:n+\"px\",left:r+\"px\"}))})},e.getElement=function(){return this._tooltip},e.show=function(){this._tooltip.classList.add(\"active\")},e.hide=function(){this._tooltip.classList.remove(\"active\")},e.text=function(t,e){e=(e=void 0===e?!1:e)?\"innerHTML\":\"textContent\";if(!t)return this._tooltip[e];this._tooltip[e]=t},e.css=function(t){for(var e in t)this._tooltip.style[e]=t[e];return this},t}(x),H=function(){function t(t,e){var i=t.scale,t=t.values;this._scale=i,this._values=t,this._fromColor=this.hexToRgb(i[0]),this._toColor=this.hexToRgb(i[1]),this._map=e,this.setMinMaxValues(t),this.visualize()}var e=t.prototype;return e.setMinMaxValues=function(t){for(var e in this.min=Number.MAX_VALUE,this.max=0,t)(e=parseFloat(t[e]))>this.max&&(this.max=e),e<this.min&&(this.min=e)},e.visualize=function(){var t,e,i={};for(e in this._values)t=parseFloat(this._values[e]),isNaN(t)||(i[e]=this.getValue(t));this.setAttributes(i)},e.setAttributes=function(t){for(var e in t)this._map.regions[e]&&this._map.regions[e].element.setStyle(\"fill\",t[e])},e.getValue=function(t){for(var e,i=\"#\",s=0;s<3;s++)i+=(1===(e=Math.round(this._fromColor[s]+(this._toColor[s]-this._fromColor[s])*((t-this.min)/(this.max-this.min))).toString(16)).length?\"0\":\"\")+e;return i},e.hexToRgb=function(t){var e=0,i=0,s=0;return 4==t.length?(e=\"0x\"+t[1]+t[1],i=\"0x\"+t[2]+t[2],s=\"0x\"+t[3]+t[3]):7==t.length&&(e=\"0x\"+t[1]+t[2],i=\"0x\"+t[3]+t[4],s=\"0x\"+t[5]+t[6]),[parseInt(e),parseInt(i),parseInt(s)]},t}(),z=function(){function i(t){var e=this;if(this.params=c(i.defaults,t=void 0===t?{}:t,!0),!i.maps[this.params.map])throw new Error(\"Attempt to use map which was not loaded: \"+t.map);this.mapData=i.maps[this.params.map],this.regions={},this.markers={},this.lines={},this.defaultWidth=this.mapData.width,this.defaultHeight=this.mapData.height,this.height=0,this.width=0,this.scale=1,this.baseScale=1,this.transX=0,this.transY=0,this.baseTransX=0,this.baseTransY=0,\"loading\"!==document.readyState?this._init():window.addEventListener(\"DOMContentLoaded\",function(){return e._init()})}var t=i.prototype;return t._init=function(){var t=this.params;this.container=d(t.selector),this.container.classList.add(\"jvm-container\"),this.canvas=new I(this.container),this.setBackgroundColor(t.backgroundColor),this._createRegions(),this.updateSize(),this._createLines(t.lines||{},t.markers||{}),this._createMarkers(t.markers),this._repositionLabels(),this._setupContainerEvents(),this._setupElementEvents(),t.zoomButtons&&this._setupZoomButtons(),t.showTooltip&&(this.tooltip=new R(this)),t.selectedRegions&&this._setSelected(\"regions\",t.selectedRegions),t.selectedMarkers&&this._setSelected(\"markers\",t.selectedMarkers),t.focusOn&&this.setFocus(t.focusOn),t.visualizeData&&(this.dataVisualization=new H(t.visualizeData,this)),t.bindTouchEvents&&(\"ontouchstart\"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&this._setupContainerTouchEvents(),t.series&&(this.container.appendChild(this.legendHorizontal=l(\"div\",\"jvm-series-container jvm-series-h\")),this.container.appendChild(this.legendVertical=l(\"div\",\"jvm-series-container jvm-series-v\")),this._createSeries()),this._emit(v.onLoaded,[this])},t._emit=function(t,e){for(var i in v)v[i]===t&&\"function\"==typeof this.params[i]&&this.params[i].apply(this,e)},t.setBackgroundColor=function(t){this.container.style.backgroundColor=t},t._getSelected=function(t){var e,i=[];for(e in this[t])this[t][e].element.isSelected&&i.push(e);return i},t._setSelected=function(e,t){var i=this;t.forEach(function(t){i[e][t]&&i[e][t].element.select(!0)})},t._clearSelected=function(e){var i=this;this._getSelected(e).forEach(function(t){i[e][t].element.select(!1)})},t.getSelectedRegions=function(){return this._getSelected(\"regions\")},t.clearSelectedRegions=function(){this._clearSelected(\"regions\")},t.getSelectedMarkers=function(){return this._getSelected(\"markers\")},t.clearSelectedMarkers=function(){this._clearSelected(\"markers\")},t.addMarkers=function(t){if(Array.isArray(t))return this._createMarkers(t,!0);this._createMarkers([t],!0)},t.removeMarkers=function(t){var e=this;(t=t||Object.keys(this.markers)).forEach(function(t){e.markers[t].element.remove(),delete e.markers[t]})},t.addLine=function(t,e,i){void 0===i&&(i={}),console.warn(\"`addLine` method is deprecated, please use `addLines` instead.\"),this._createLines([{from:t,to:e,style:i}],this.markers,!0)},t.addLines=function(t){var e=this._getLinesAsUids();Array.isArray(t)||(t=[t]),this._createLines(t.filter(function(t){return!(-1<e.indexOf(u(t.from,t.to)))}),this.markers,!0)},t.removeLines=function(t){var e=this;(t=Array.isArray(t)?t.map(function(t){return u(t.from,t.to)}):this._getLinesAsUids()).forEach(function(t){e.lines[t].dispose(),delete e.lines[t]})},t._getLinesAsUids=function(){return Object.keys(this.lines)},t.removeLine=function(t,e){console.warn(\"`removeLine` method is deprecated, please use `removeLines` instead.\");t=u(t,e);this.lines.hasOwnProperty(t)&&(this.lines[t].element.remove(),delete this.lines[t])},t.reset=function(){for(var t in this.series)for(var e=0;e<this.series[t].length;e++)this.series[t][e].clear();this.legendHorizontal&&(s(this.legendHorizontal),this.legendHorizontal=null),this.legendVertical&&(s(this.legendVertical),this.legendVertical=null),this.scale=this.baseScale,this.transX=this.baseTransX,this.transY=this.baseTransY,this._applyTransform(),this.clearSelectedMarkers(),this.clearSelectedRegions(),this.removeMarkers()},t.destroy=function(t){var e=this;void 0===t&&(t=!0),g.flush(),this.tooltip.dispose(),this._emit(v.onDestroyed),t&&Object.keys(this).forEach(function(t){try{delete e[t]}catch(t){}})},t.extend=function(t,e){if(\"function\"==typeof this[t])throw new Error(\"The method [\"+t+\"] already exists internally please use another name.\");i.prototype[t]=e},i}(),x=(z.maps={},z.defaults={map:\"world\",backgroundColor:\"transparent\",draggable:!0,zoomButtons:!0,zoomOnScroll:!0,zoomOnScrollSpeed:3,zoomMax:12,zoomMin:1,zoomAnimate:!0,showTooltip:!0,zoomStep:1.5,bindTouchEvents:!0,lineStyle:{stroke:\"#808080\",strokeWidth:1,strokeLinecap:\"round\"},markersSelectable:!1,markersSelectableOne:!1,markerStyle:{initial:{r:7,fill:\"#374151\",fillOpacity:1,stroke:\"#FFF\",strokeWidth:5,strokeOpacity:.5},hover:{fill:\"#3cc0ff\",cursor:\"pointer\"},selected:{fill:\"blue\"},selectedHover:{}},markerLabelStyle:{initial:{fontFamily:\"Verdana\",fontSize:12,fontWeight:500,cursor:\"default\",fill:\"#374151\"},hover:{cursor:\"pointer\"},selected:{},selectedHover:{}},regionsSelectable:!1,regionsSelectableOne:!1,regionStyle:{initial:{fill:\"#dee2e8\",fillOpacity:1,stroke:\"none\",strokeWidth:0},hover:{fillOpacity:.7,cursor:\"pointer\"},selected:{fill:\"#9ca3af\"},selectedHover:{}},regionLabelStyle:{initial:{fontFamily:\"Verdana\",fontSize:\"12\",fontWeight:\"bold\",cursor:\"default\",fill:\"#35373e\"},hover:{cursor:\"pointer\"}}},Object.assign(z.prototype,M),function(){function t(t){if((t=void 0===t?{}:t).selector)return new z(t);throw new Error(\"Selector is not given.\")}return t.addMap=function(t,e){z.maps[t]=e},t}());return window.jsVectorMap=x});","jsVectorMap.addMap(\"world\",{insets:[{width:900,top:0,left:0,height:440.70631074413296,bbox:[{y:-12671671.123330014,x:-20004297.151525836},{y:6930392.025135122,x:20026572.39474939}]}],paths:{BD:{path:\"M651.84,230.21l-0.6,-2.0l-1.36,-1.71l-2.31,-0.11l-0.41,0.48l0.2,0.94l-0.53,0.99l-0.72,-0.36l-0.68,0.35l-1.2,-0.36l-0.37,-2.0l-0.81,-1.86l0.39,-1.46l-0.22,-0.47l-1.14,-0.53l0.29,-0.5l1.48,-0.94l0.03,-0.65l-1.55,-1.22l0.55,-1.14l1.61,0.94l1.04,0.15l0.18,1.54l0.34,0.35l5.64,0.63l-0.84,1.64l-1.22,0.34l-0.77,1.51l0.07,0.47l1.37,1.37l0.67,-0.19l0.42,-1.39l1.21,3.84l-0.03,1.21l-0.33,-0.15l-0.4,0.28Z\",name:\"Bangladesh\"},BE:{path:\"M429.29,144.05l1.91,0.24l2.1,-0.63l2.63,1.99l-0.21,1.66l-0.69,0.4l-0.18,1.2l-1.66,-1.13l-1.39,0.15l-2.73,-2.7l-1.17,-0.18l-0.16,-0.52l1.54,-0.5Z\",name:\"Belgium\"},BF:{path:\"M421.42,247.64l-0.11,0.95l0.34,1.16l1.4,1.71l0.07,1.1l0.32,0.37l2.55,0.51l-0.04,1.28l-0.38,0.53l-1.07,0.21l-0.72,1.18l-0.63,0.21l-3.22,-0.25l-0.94,0.39l-5.4,-0.05l-0.39,0.38l0.16,2.73l-1.23,-0.43l-1.17,0.1l-0.89,0.57l-2.27,-1.72l-0.13,-1.11l0.61,-0.96l0.02,-0.93l1.87,-1.98l0.44,-1.81l0.43,-0.39l1.28,0.26l1.05,-0.52l0.47,-0.73l1.84,-1.09l0.55,-0.83l2.2,-1.0l1.15,-0.3l0.72,0.45l1.13,-0.01Z\",name:\"Burkina Faso\"},BG:{path:\"M491.65,168.18l-0.86,0.88l-0.91,2.17l0.48,1.34l-1.6,-0.24l-2.55,0.95l-0.28,1.51l-1.8,0.22l-2.0,-1.0l-1.92,0.79l-1.42,-0.07l-0.15,-1.63l-1.05,-0.97l0.0,-0.8l1.2,-1.57l0.01,-0.56l-1.14,-1.23l-0.05,-0.94l0.88,0.97l0.88,-0.2l1.91,0.47l3.68,0.16l1.42,-0.81l2.72,-0.66l2.55,1.24Z\",name:\"Bulgaria\"},BA:{path:\"M463.49,163.65l2.1,0.5l1.72,-0.03l1.52,0.68l-0.36,0.78l0.08,0.45l1.04,1.02l-0.25,0.98l-1.81,1.15l-0.38,1.38l-1.67,-0.87l-0.89,-1.2l-2.11,-1.83l-1.63,-2.22l0.23,-0.57l0.48,0.38l0.55,-0.06l0.43,-0.51l0.94,-0.06Z\",name:\"Bosnia and Herz.\"},BN:{path:\"M707.48,273.58l0.68,-0.65l1.41,-0.91l-0.15,1.63l-0.81,-0.05l-0.61,0.58l-0.53,-0.6Z\",name:\"Brunei\"},BO:{path:\"M263.83,340.69l-3.09,-0.23l-0.38,0.23l-0.7,1.52l-1.31,-1.53l-3.28,-0.64l-2.37,2.4l-1.31,0.26l-0.88,-3.26l-1.3,-2.86l0.74,-2.37l-0.13,-0.43l-1.2,-1.01l-0.37,-1.89l-1.08,-1.55l1.45,-2.56l-0.96,-2.33l0.47,-1.06l-0.34,-0.73l0.91,-1.32l0.16,-3.84l0.5,-1.18l-1.81,-3.41l2.46,0.07l0.8,-0.85l3.4,-1.91l2.66,-0.35l-0.19,1.38l0.3,1.07l-0.05,1.97l2.72,2.27l2.88,0.49l0.89,0.86l1.79,0.58l0.98,0.7l1.71,0.05l1.17,0.61l0.6,2.7l-0.7,0.54l0.96,2.99l0.37,0.28l4.3,0.1l-0.25,1.2l0.27,1.02l1.43,0.9l0.5,1.35l-0.41,1.86l-0.65,1.08l0.12,1.35l-2.69,-1.65l-2.4,-0.03l-4.36,0.76l-1.49,2.5l-0.11,1.52l-0.75,2.37Z\",name:\"Bolivia\"},JP:{path:\"M781.12,166.87l1.81,0.68l1.62,-0.97l0.39,2.42l-3.35,0.75l-2.23,2.88l-3.63,-1.9l-0.56,0.2l-1.26,3.05l-2.16,0.03l-0.29,-2.51l1.08,-2.03l2.45,-0.16l0.37,-0.33l1.25,-5.94l2.47,2.71l2.03,1.12ZM773.56,187.34l-0.91,2.22l0.37,1.52l-1.14,1.75l-3.02,1.26l-4.58,0.27l-3.34,3.01l-1.25,-0.8l-0.09,-1.9l-0.46,-0.38l-4.35,0.62l-3.0,1.32l-2.85,0.05l-0.37,0.27l0.13,0.44l2.32,1.89l-1.54,4.34l-1.26,0.9l-0.79,-0.7l0.56,-2.27l-0.21,-0.45l-1.47,-0.75l-0.74,-1.4l2.12,-0.84l1.26,-1.7l2.45,-1.42l1.83,-1.91l4.78,-0.81l2.6,0.57l0.44,-0.21l2.39,-4.66l1.29,1.06l0.5,0.01l5.1,-4.02l1.69,-3.73l-0.38,-3.4l0.9,-1.61l2.14,-0.44l1.23,3.72l-0.07,2.18l-2.23,2.84l-0.04,3.16ZM757.78,196.26l0.19,0.56l-1.01,1.21l-1.16,-0.68l-1.28,0.65l-0.69,1.45l-1.02,-0.5l0.01,-0.93l1.14,-1.38l1.57,0.14l0.85,-0.98l1.4,0.46Z\",name:\"Japan\"},BI:{path:\"M495.45,295.49l-1.08,-2.99l1.14,-0.11l0.64,-1.19l0.76,0.09l0.65,1.83l-2.1,2.36Z\",name:\"Burundi\"},BJ:{path:\"M429.57,255.75l-0.05,0.8l0.5,1.34l-0.42,0.86l0.17,0.79l-1.81,2.12l-0.57,1.76l-0.08,5.42l-1.41,0.2l-0.48,-1.36l0.11,-5.71l-0.52,-0.7l-0.2,-1.35l-1.48,-1.48l0.21,-0.9l0.89,-0.43l0.42,-0.92l1.27,-0.36l1.22,-1.34l0.61,-0.0l1.62,1.24Z\",name:\"Benin\"},BT:{path:\"M650.32,213.86l0.84,0.71l-0.12,1.1l-3.76,-0.11l-1.57,0.4l-1.93,-0.87l1.48,-1.96l1.13,-0.57l1.63,0.57l1.33,0.08l0.99,0.65Z\",name:\"Bhutan\"},JM:{path:\"M228.38,239.28l-0.8,0.4l-2.26,-1.06l0.84,-0.23l2.14,0.3l1.17,0.56l-1.08,0.03Z\",name:\"Jamaica\"},BW:{path:\"M483.92,330.07l2.27,4.01l2.83,2.86l0.96,0.31l0.78,2.43l2.13,0.61l1.02,0.76l-3.0,1.64l-2.32,2.02l-1.54,2.69l-1.52,0.45l-0.64,1.94l-1.34,0.52l-1.85,-0.12l-1.21,-0.74l-1.35,-0.3l-1.22,0.62l-0.75,1.37l-2.31,1.9l-1.4,0.21l-0.35,-0.59l0.16,-1.75l-1.48,-2.54l-0.62,-0.43l-0.0,-7.1l2.08,-0.08l0.39,-0.4l0.07,-8.9l5.19,-0.93l0.8,0.89l0.51,0.07l1.5,-0.95l2.21,-0.49Z\",name:\"Botswana\"},BR:{path:\"M259.98,275.05l3.24,0.7l0.65,-0.53l4.55,-1.32l1.08,-1.06l-0.02,-0.63l0.55,-0.05l0.28,0.28l-0.26,0.87l0.22,0.48l0.73,0.32l0.4,0.81l-0.62,0.86l-0.4,2.13l0.82,2.56l1.69,1.43l1.43,0.2l3.17,-1.68l3.18,0.3l0.65,-0.75l-0.27,-0.92l1.9,-0.09l2.39,0.99l1.06,-0.61l0.84,0.78l1.2,-0.18l1.18,-1.06l0.84,-1.94l1.36,-2.11l0.37,-0.05l1.89,5.45l1.33,0.59l0.05,1.28l-1.77,1.94l0.02,0.56l1.02,0.87l4.07,0.36l0.08,2.16l0.66,0.29l1.74,-1.5l6.97,2.32l1.02,1.22l-0.35,1.18l0.49,0.5l2.81,-0.74l4.77,1.3l3.75,-0.08l3.57,2.0l3.29,2.86l1.93,0.72l2.12,0.12l0.71,0.62l1.21,4.51l-0.95,3.98l-4.72,5.06l-1.64,2.92l-1.72,2.05l-0.8,0.3l-0.72,2.03l0.18,4.75l-0.94,5.53l-0.81,1.13l-0.43,3.36l-2.55,3.5l-0.4,2.51l-1.86,1.04l-0.67,1.53l-2.54,0.01l-3.94,1.01l-1.83,1.2l-2.87,0.82l-3.03,2.19l-2.2,2.83l-0.36,2.0l0.4,1.58l-0.44,2.6l-0.51,1.2l-1.77,1.54l-2.75,4.78l-3.83,3.42l-1.24,2.74l-1.18,1.15l-0.36,-0.83l0.95,-1.14l0.01,-0.5l-1.52,-1.97l-4.56,-3.32l-1.03,-0.0l-2.38,-2.02l-0.81,-0.0l5.34,-5.45l3.77,-2.58l0.22,-2.46l-1.35,-1.81l-0.91,0.07l0.58,-2.33l0.01,-1.54l-1.11,-0.83l-1.75,0.3l-0.44,-3.11l-0.52,-0.95l-1.88,-0.88l-1.24,0.47l-2.17,-0.41l0.15,-3.21l-0.62,-1.34l0.66,-0.73l-0.22,-1.34l0.66,-1.13l0.44,-2.04l-0.61,-1.83l-1.4,-0.86l-0.2,-0.75l0.34,-1.39l-0.38,-0.5l-4.52,-0.1l-0.72,-2.22l0.59,-0.42l-0.03,-1.1l-0.5,-0.87l-0.32,-1.7l-1.45,-0.76l-1.63,-0.02l-1.05,-0.72l-1.6,-0.48l-1.13,-0.99l-2.69,-0.4l-2.47,-2.06l0.13,-4.35l-0.45,-0.45l-3.46,0.5l-3.44,1.94l-0.6,0.74l-2.9,-0.17l-1.47,0.42l-0.72,-0.18l0.15,-3.52l-0.63,-0.34l-1.94,1.41l-1.87,-0.06l-0.83,-1.18l-1.37,-0.26l0.21,-1.01l-1.35,-1.49l-0.88,-1.91l0.56,-0.6l-0.0,-0.81l1.29,-0.62l0.22,-0.43l-0.22,-1.19l0.61,-0.91l0.15,-0.99l2.65,-1.58l1.99,-0.47l0.42,-0.36l2.06,0.11l0.42,-0.33l1.19,-8.0l-0.41,-1.56l-1.1,-1.0l0.01,-1.33l1.91,-0.42l0.08,-0.96l-0.33,-0.43l-1.14,-0.2l-0.02,-0.83l4.47,0.05l0.82,-0.67l0.82,1.81l0.8,0.07l1.15,1.1l2.26,-0.05l0.71,-0.83l2.78,-0.96l0.48,-1.13l1.6,-0.64l0.24,-0.47l-0.48,-0.82l-1.83,-0.19l-0.36,-3.22Z\",name:\"Brazil\"},BS:{path:\"M226.4,223.87l-0.48,-1.15l-0.84,-0.75l0.36,-1.11l0.95,1.95l0.01,1.06ZM225.56,216.43l-1.87,0.29l-0.04,-0.22l0.74,-0.14l1.17,0.06Z\",name:\"Bahamas\"},BY:{path:\"M493.84,128.32l0.29,0.7l0.49,0.23l1.19,-0.38l2.09,0.72l0.19,1.26l-0.45,1.24l1.57,2.26l0.89,0.59l0.17,0.81l1.58,0.56l0.4,0.5l-0.53,0.41l-1.87,-0.11l-0.73,0.38l-0.13,0.52l1.04,2.74l-1.91,0.26l-0.89,0.99l-0.11,1.18l-2.73,-0.04l-0.53,-0.62l-0.52,-0.08l-0.75,0.46l-0.91,-0.42l-1.92,-0.07l-2.75,-0.79l-2.6,-0.28l-2.0,0.07l-1.5,0.92l-0.67,0.07l-0.08,-1.22l-0.59,-1.19l1.36,-0.88l0.01,-1.35l-0.7,-1.41l-0.07,-1.0l2.16,-0.02l2.72,-1.3l0.75,-2.04l1.91,-1.04l0.2,-0.41l-0.19,-1.25l3.8,-1.78l2.3,0.77Z\",name:\"Belarus\"},BZ:{path:\"M198.03,244.38l0.1,-4.49l0.69,-0.06l0.74,-1.3l0.34,0.28l-0.4,1.3l0.17,0.58l-0.34,2.25l-1.3,1.42Z\",name:\"Belize\"},RU:{path:\"M491.55,115.25l2.55,-1.85l-0.01,-0.65l-2.2,-1.5l7.32,-6.76l1.03,-2.11l-0.13,-0.49l-3.46,-2.52l0.86,-2.7l-2.11,-2.81l1.56,-3.67l-2.77,-4.52l2.15,-2.99l-0.08,-0.55l-3.65,-2.73l0.3,-2.54l1.81,-0.37l4.26,-1.77l2.42,-1.45l4.06,2.61l6.79,1.04l9.34,4.85l1.78,1.88l0.14,2.46l-2.55,2.02l-3.9,1.06l-11.07,-3.14l-2.06,0.53l-0.13,0.7l3.94,2.94l0.31,5.86l0.26,0.36l5.14,2.24l0.58,-0.29l0.32,-1.94l-1.35,-1.78l1.13,-1.09l6.13,2.42l2.11,-0.98l0.18,-0.56l-1.51,-2.67l5.41,-3.76l2.07,0.22l2.26,1.41l0.57,-0.16l1.46,-2.87l-0.05,-0.44l-1.92,-2.32l1.12,-2.32l-1.32,-2.27l5.87,1.16l1.04,1.75l-2.59,0.43l-0.33,0.4l0.02,2.36l2.46,1.83l3.87,-0.91l0.86,-2.8l13.69,-5.65l0.99,0.11l-1.92,2.06l0.23,0.67l3.11,0.45l2.0,-1.48l4.56,-0.12l3.64,-1.73l2.65,2.44l0.56,-0.01l2.85,-2.88l-0.01,-0.57l-2.35,-2.29l0.9,-1.01l7.14,1.3l3.41,1.36l9.05,4.97l0.51,-0.11l1.67,-2.27l-0.05,-0.53l-2.43,-2.21l-0.06,-0.78l-0.34,-0.36l-2.52,-0.36l0.64,-1.93l-1.32,-3.46l-0.06,-1.21l4.48,-4.06l1.69,-4.29l1.6,-0.81l6.23,1.18l0.44,2.21l-2.29,3.64l0.06,0.5l1.47,1.39l0.76,3.0l-0.56,6.03l2.69,2.82l-0.96,2.57l-4.86,5.95l0.23,0.64l2.86,0.61l0.42,-0.17l0.93,-1.4l2.64,-1.03l0.87,-2.24l2.09,-1.96l0.07,-0.5l-1.36,-2.28l1.09,-2.69l-0.32,-0.55l-2.47,-0.33l-0.5,-2.06l1.94,-4.38l-0.06,-0.42l-2.96,-3.4l4.12,-2.88l0.16,-0.4l-0.51,-2.93l0.54,-0.05l1.13,2.25l-0.96,4.35l0.27,0.47l2.68,0.84l0.5,-0.51l-1.02,-2.99l3.79,-1.66l5.01,-0.24l4.53,2.61l0.48,-0.06l0.07,-0.48l-2.18,-3.82l-0.23,-4.67l3.98,-0.9l5.97,0.21l5.49,-0.64l0.27,-0.65l-1.83,-2.31l2.56,-2.9l2.87,-0.17l4.8,-2.47l6.54,-0.67l1.03,-1.42l6.25,-0.45l2.32,1.11l5.53,-2.7l4.5,0.08l0.39,-0.28l0.66,-2.15l2.26,-2.12l5.69,-2.11l3.21,1.29l-2.46,0.94l-0.25,0.42l0.34,0.35l5.41,0.77l0.61,2.33l0.58,0.25l2.2,-1.22l7.13,0.07l5.51,2.47l1.79,1.72l-0.53,2.24l-9.16,4.15l-1.97,1.52l0.16,0.71l6.77,1.91l2.16,-0.78l1.13,2.74l0.67,0.11l1.01,-1.15l3.81,-0.73l7.7,0.77l0.54,1.99l0.36,0.29l10.47,0.71l0.43,-0.38l0.13,-3.23l4.87,0.78l3.95,-0.02l3.83,2.4l1.03,2.71l-1.35,1.79l0.02,0.5l3.15,3.64l4.07,1.96l0.53,-0.18l2.23,-4.47l3.95,1.93l4.16,-1.21l4.73,1.39l2.05,-1.26l3.94,0.62l0.43,-0.55l-1.68,-4.02l2.89,-1.8l22.31,3.03l2.16,2.75l6.55,3.51l10.29,-0.81l4.82,0.73l1.85,1.66l-0.29,3.08l0.25,0.41l3.08,1.26l3.56,-0.88l4.35,-0.11l4.8,0.87l4.57,-0.47l4.23,3.79l0.43,0.07l3.1,-1.4l0.16,-0.6l-1.88,-2.62l0.85,-1.52l7.71,1.21l5.22,-0.26l7.09,2.09l9.59,5.22l6.35,4.11l-0.2,2.38l1.88,1.41l0.6,-0.42l-0.48,-2.53l6.15,0.57l4.4,3.51l-1.97,1.43l-4.0,0.41l-0.36,0.39l-0.06,3.79l-0.74,0.62l-2.07,-0.11l-1.91,-1.39l-3.14,-1.11l-0.78,-1.85l-2.72,-0.68l-2.63,0.49l-1.04,-1.1l0.46,-1.31l-0.5,-0.51l-3.0,0.98l-0.22,0.58l0.99,1.7l-1.21,1.48l-3.04,1.68l-3.12,-0.28l-0.4,0.23l0.09,0.46l2.2,2.09l1.46,3.2l1.15,1.1l0.24,1.33l-0.42,0.67l-4.63,-0.77l-6.96,2.9l-2.19,0.44l-7.6,5.06l-0.84,1.45l-3.61,-2.37l-6.24,2.82l-0.94,-1.15l-0.53,-0.08l-2.28,1.52l-3.2,-0.49l-0.44,0.27l-0.78,2.37l-3.05,3.78l0.09,1.47l0.29,0.36l2.54,0.72l-0.29,4.53l-1.97,0.11l-0.35,0.26l-1.07,2.94l0.8,1.45l-3.91,1.58l-1.05,3.95l-3.48,0.77l-0.3,0.3l-0.72,3.29l-3.09,2.65l-0.7,-1.74l-2.44,-12.44l1.16,-4.71l2.04,-2.06l0.22,-1.64l3.8,-0.86l4.46,-4.61l4.28,-3.81l4.48,-3.01l2.17,-5.63l-0.42,-0.54l-3.04,0.33l-1.77,3.31l-5.86,3.86l-1.86,-4.25l-0.45,-0.23l-6.46,1.3l-6.47,6.44l-0.01,0.55l1.58,1.74l-8.24,1.17l0.15,-2.2l-0.34,-0.42l-3.89,-0.56l-3.25,1.81l-7.62,-0.62l-8.45,1.19l-17.71,15.41l0.22,0.7l3.74,0.41l1.36,2.17l2.43,0.76l1.88,-1.68l2.4,0.2l3.4,3.54l0.08,2.6l-1.95,3.42l-0.21,3.9l-1.1,5.06l-3.71,4.54l-0.87,2.21l-8.29,8.89l-3.19,1.7l-1.32,0.03l-1.45,-1.36l-0.49,-0.04l-2.27,1.5l0.41,-3.65l-0.59,-2.47l1.75,-0.89l2.91,0.53l0.42,-0.2l1.68,-3.03l0.87,-3.46l0.97,-1.18l1.32,-2.88l-0.45,-0.56l-4.14,0.95l-2.19,1.25l-3.41,-0.0l-1.06,-2.93l-2.97,-2.3l-4.28,-1.06l-1.75,-5.07l-2.66,-5.01l-2.29,-1.29l-3.75,-1.01l-3.44,0.08l-3.18,0.62l-2.24,1.77l0.05,0.66l1.18,0.69l0.02,1.43l-1.33,1.05l-2.26,3.51l-0.04,1.43l-3.16,1.84l-2.82,-1.16l-3.01,0.23l-1.35,-1.07l-1.5,-0.35l-3.9,2.31l-3.22,0.52l-2.27,0.79l-3.05,-0.51l-2.21,0.03l-1.48,-1.6l-2.6,-1.63l-2.63,-0.43l-5.46,1.01l-3.23,-1.25l-0.72,-2.57l-5.2,-1.24l-2.75,-1.36l-0.5,0.12l-2.59,3.45l0.84,2.1l-2.06,1.93l-3.41,-0.77l-2.42,-0.12l-1.83,-1.54l-2.53,-0.05l-2.42,-0.98l-3.86,1.57l-4.72,2.78l-3.3,0.75l-1.55,-1.92l-3.0,0.41l-1.11,-1.33l-1.62,-0.59l-1.31,-1.94l-1.38,-0.6l-3.7,0.79l-3.31,-1.83l-0.51,0.11l-0.99,1.29l-5.29,-8.05l-2.96,-2.48l0.65,-0.77l0.01,-0.51l-0.5,-0.11l-6.2,3.21l-1.84,0.15l0.15,-1.39l-0.26,-0.42l-3.22,-1.17l-2.46,0.7l-0.69,-3.16l-0.32,-0.31l-4.5,-0.75l-2.47,1.47l-6.19,1.27l-1.29,0.86l-9.51,1.3l-1.15,1.17l-0.03,0.53l1.47,1.9l-1.89,0.69l-0.22,0.56l0.31,0.6l-2.11,1.44l0.03,0.68l3.75,2.12l-0.39,0.98l-3.23,-0.13l-0.86,0.86l-3.09,-1.59l-3.97,0.07l-2.66,1.35l-8.32,-3.56l-4.07,0.06l-5.39,3.68l-0.39,2.0l-2.03,-1.5l-0.59,0.13l-2.0,3.59l0.57,0.93l-1.28,2.16l0.06,0.48l2.13,2.17l1.95,0.04l1.37,1.82l-0.23,1.46l0.25,0.43l0.83,0.33l-0.8,1.31l-2.49,0.62l-2.49,3.2l0.0,0.49l2.17,2.78l-0.15,2.18l2.5,3.24l-1.58,1.59l-0.7,-0.13l-1.63,-1.72l-2.29,-0.84l-0.94,-1.31l-2.34,-0.63l-1.48,0.4l-0.43,-0.47l-3.51,-1.48l-5.76,-1.01l-0.45,0.19l-2.89,-2.34l-2.9,-1.2l-1.53,-1.29l1.29,-0.43l2.08,-2.61l-0.05,-0.55l-0.89,-0.79l3.05,-1.06l0.27,-0.42l-0.07,-0.69l-0.49,-0.35l-1.73,0.39l0.04,-0.68l1.04,-0.72l2.66,-0.48l0.4,-1.32l-0.5,-1.6l0.92,-1.54l0.03,-1.17l-0.29,-0.37l-3.69,-1.06l-1.41,0.02l-1.42,-1.41l-2.19,0.38l-2.77,-1.01l-0.03,-0.59l-0.89,-1.43l-2.0,-0.32l-0.11,-0.54l0.49,-0.53l0.01,-0.53l-1.6,-1.9l-3.58,0.02l-0.88,0.73l-0.46,-0.07l-1.0,-2.79l2.22,-0.02l0.97,-0.74l0.07,-0.57l-0.9,-1.04l-1.35,-0.48l-0.11,-0.7l-0.95,-0.58l-1.38,-1.99l0.46,-0.98l-0.51,-1.96l-2.45,-0.84l-1.21,0.3l-0.46,-0.76l-2.46,-0.83l-0.72,-1.87l-0.21,-1.69l-0.99,-0.85l0.85,-1.17l-0.7,-3.21l1.66,-1.97l-0.16,-0.79ZM749.2,170.72l-0.6,0.4l-0.13,0.16l-0.01,-0.51l0.74,-0.05ZM874.85,67.94l-5.63,0.48l-0.26,-0.84l3.15,-1.89l1.94,0.01l3.19,1.16l-2.39,1.09ZM797.39,48.49l-2.0,1.36l-3.8,-0.42l-4.25,-1.8l0.35,-0.97l9.69,1.83ZM783.67,46.12l-1.63,3.09l-8.98,-0.13l-4.09,1.14l-4.54,-2.97l1.16,-3.01l3.05,-0.89l6.5,0.22l8.54,2.56ZM778.2,134.98l-0.56,-0.9l0.27,-0.12l0.29,1.01ZM778.34,135.48l0.94,3.53l-0.05,3.38l1.05,3.39l2.18,5.0l-2.89,-0.83l-0.49,0.26l-1.54,4.65l2.42,3.5l-0.04,1.13l-1.24,-1.24l-0.61,0.06l-1.09,1.61l-0.28,-1.61l0.27,-3.1l-0.28,-3.4l0.58,-2.47l0.11,-4.39l-1.46,-3.36l0.21,-4.32l2.15,-1.46l0.07,-0.34ZM771.95,56.61l1.76,-1.42l2.89,-0.42l3.28,1.71l0.14,0.6l-3.27,0.03l-4.81,-0.5ZM683.76,31.09l-13.01,1.93l4.03,-6.35l1.82,-0.56l1.73,0.34l5.99,2.98l-0.56,1.66ZM670.85,27.93l-5.08,0.64l-6.86,-1.57l-3.99,-2.05l-2.1,-4.16l-2.6,-0.87l5.72,-3.5l5.2,-1.28l4.69,2.85l5.59,5.4l-0.56,4.53ZM564.15,68.94l-0.64,0.17l-7.85,-0.57l-0.86,-2.04l-4.28,-1.17l-0.28,-1.94l2.27,-0.89l0.25,-0.39l-0.08,-2.38l4.81,-3.97l-0.15,-0.7l-1.47,-0.38l5.3,-3.81l0.15,-0.44l-0.58,-1.94l5.28,-2.51l8.21,-3.27l8.28,-0.96l4.35,-1.94l4.6,-0.64l1.36,1.61l-1.34,1.28l-16.43,4.94l-7.97,4.88l-7.74,9.63l0.66,4.14l4.16,3.27ZM548.81,18.48l-5.5,1.18l-0.58,1.02l-2.59,0.84l-2.13,-1.07l1.12,-1.42l-0.3,-0.65l-2.33,-0.07l1.68,-0.36l3.47,-0.06l0.42,1.29l0.66,0.16l1.38,-1.34l2.15,-0.88l2.94,1.01l-0.39,0.36ZM477.37,133.15l-4.08,0.05l-2.56,-0.32l0.33,-0.87l3.17,-1.03l3.24,0.96l-0.09,1.23Z\",name:\"Russia\"},RW:{path:\"M497.0,288.25l0.71,1.01l-0.11,1.09l-1.63,0.03l-1.04,1.39l-0.83,-0.11l0.51,-1.2l0.08,-1.34l0.42,-0.41l0.7,0.14l1.19,-0.61Z\",name:\"Rwanda\"},RS:{path:\"M469.4,163.99l0.42,-0.5l-0.01,-0.52l-1.15,-1.63l1.43,-0.62l1.33,0.12l1.17,1.06l0.46,1.13l1.34,0.64l0.35,1.35l1.46,0.9l0.76,-0.29l0.2,0.69l-0.48,0.78l0.22,1.12l1.05,1.22l-0.77,0.8l-0.37,1.52l-1.21,0.08l0.24,-0.64l-0.39,-0.54l-2.08,-1.64l-0.9,0.05l-0.48,0.94l-2.12,-1.37l0.53,-1.6l-1.11,-1.37l0.51,-1.1l-0.41,-0.57Z\",name:\"Serbia\"},LT:{path:\"M486.93,129.3l0.17,1.12l-1.81,0.98l-0.72,2.02l-2.47,1.18l-2.1,-0.02l-0.73,-1.05l-1.06,-0.3l-0.09,-1.87l-3.56,-1.13l-0.43,-2.36l2.48,-0.94l4.12,0.22l2.25,-0.31l0.52,0.69l1.24,0.21l2.19,1.56Z\",name:\"Lithuania\"},LU:{path:\"M436.08,149.45l-0.48,-0.07l0.3,-1.28l0.27,0.4l-0.09,0.96Z\",name:\"Luxembourg\"},LR:{path:\"M399.36,265.97l0.18,1.54l-0.48,0.99l0.08,0.47l2.47,1.8l-0.33,2.8l-2.65,-1.13l-5.78,-4.61l0.58,-1.32l2.1,-2.33l0.86,-0.22l0.77,1.14l-0.14,0.85l0.59,0.87l1.0,0.14l0.76,-0.99Z\",name:\"Liberia\"},RO:{path:\"M487.53,154.23l0.6,0.24l2.87,3.98l-0.17,2.69l0.45,1.42l1.32,0.81l1.35,-0.42l0.76,0.36l0.02,0.31l-0.83,0.45l-0.59,-0.22l-0.54,0.3l-0.62,3.3l-1.0,-0.22l-2.07,-1.13l-2.95,0.71l-1.25,0.76l-3.51,-0.15l-1.89,-0.47l-0.87,0.16l-0.82,-1.3l0.29,-0.26l-0.06,-0.64l-1.09,-0.34l-0.56,0.5l-1.05,-0.64l-0.39,-1.39l-1.36,-0.65l-0.35,-1.0l-0.83,-0.75l1.54,-0.54l2.66,-4.21l2.4,-1.24l2.96,0.34l1.48,0.73l0.79,-0.45l1.78,-0.3l0.75,-0.74l0.79,0.0Z\",name:\"Romania\"},GW:{path:\"M386.23,253.6l-0.29,0.84l0.15,0.6l-2.21,0.59l-0.86,0.96l-1.04,-0.83l-1.09,-0.23l-0.54,-1.06l-0.66,-0.49l2.41,-0.48l4.13,0.1Z\",name:\"Guinea-Bissau\"},GT:{path:\"M195.08,249.77l-2.48,-0.37l-1.03,-0.45l-1.14,-0.89l0.3,-0.99l-0.24,-0.68l0.96,-1.66l2.98,-0.01l0.4,-0.37l-0.19,-1.28l-1.67,-1.4l0.51,-0.4l0.0,-1.05l3.85,0.02l-0.21,4.53l0.4,0.43l1.46,0.38l-1.48,0.98l-0.35,0.7l0.12,0.57l-2.2,1.96Z\",name:\"Guatemala\"},GR:{path:\"M487.07,174.59l-0.59,1.43l-0.37,0.21l-2.84,-0.35l-3.03,0.77l-0.18,0.68l1.28,1.23l-0.61,0.23l-1.14,0.0l-1.2,-1.39l-0.63,0.03l-0.53,1.01l0.56,1.76l1.03,1.19l-0.56,0.38l-0.05,0.62l2.52,2.12l0.02,0.87l-1.78,-0.59l-0.48,0.56l0.5,1.0l-1.07,0.2l-0.3,0.53l0.75,2.01l-0.98,0.02l-1.84,-1.12l-1.37,-4.2l-2.21,-2.95l-0.11,-0.56l1.04,-1.28l0.2,-0.95l0.85,-0.66l0.03,-0.46l1.32,-0.21l1.01,-0.64l1.22,0.05l0.65,-0.56l2.26,-0.0l1.82,-0.75l1.85,1.0l2.28,-0.28l0.35,-0.39l0.01,-0.77l0.34,0.22ZM480.49,192.16l0.58,0.4l-0.68,-0.12l0.11,-0.28ZM482.52,192.82l2.51,0.06l0.24,0.32l-1.99,0.13l-0.77,-0.51Z\",name:\"Greece\"},GQ:{path:\"M448.79,279.62l0.02,2.22l-4.09,0.0l0.69,-2.27l3.38,0.05Z\",name:\"Eq. Guinea\"},GY:{path:\"M277.42,270.07l-0.32,1.83l-1.32,0.57l-0.23,0.46l-0.28,2.0l1.11,1.82l0.83,0.19l0.32,1.25l1.13,1.62l-1.21,-0.19l-1.08,0.71l-1.77,0.5l-0.44,0.46l-0.86,-0.09l-1.32,-1.01l-0.77,-2.27l0.36,-1.9l0.68,-1.23l-0.57,-1.17l-0.74,-0.43l0.12,-1.16l-0.9,-0.69l-1.1,0.09l-1.31,-1.48l0.53,-0.72l-0.04,-0.84l1.99,-0.86l0.05,-0.59l-0.71,-0.78l0.14,-0.57l1.66,-1.24l1.36,0.77l1.41,1.49l0.06,1.15l0.37,0.38l0.8,0.05l2.06,1.86Z\",name:\"Guyana\"},GE:{path:\"M521.71,168.93l5.29,0.89l4.07,2.01l1.41,-0.44l2.07,0.56l0.68,1.1l1.07,0.55l-0.12,0.59l0.98,1.29l-1.01,-0.13l-1.81,-0.83l-0.94,0.47l-3.23,0.43l-2.29,-1.39l-2.33,0.05l0.21,-0.97l-0.76,-2.26l-1.45,-1.12l-1.43,-0.39l-0.41,-0.42Z\",name:\"Georgia\"},GB:{path:\"M412.61,118.72l-2.19,3.22l-0.0,0.45l5.13,-0.3l-0.53,2.37l-2.2,3.12l0.29,0.63l2.37,0.21l2.33,4.3l1.76,0.69l2.2,5.12l2.94,0.77l-0.23,1.62l-1.15,0.88l-0.1,0.52l0.82,1.42l-1.86,1.43l-3.3,-0.02l-4.12,0.87l-1.04,-0.58l-0.47,0.06l-1.51,1.41l-2.12,-0.34l-1.86,1.18l-0.6,-0.29l3.19,-3.0l2.16,-0.69l0.28,-0.41l-0.34,-0.36l-3.73,-0.53l-0.4,-0.76l2.2,-0.87l0.17,-0.61l-1.26,-1.67l0.36,-1.7l3.38,0.28l0.43,-0.33l0.37,-1.99l-1.79,-2.49l-3.11,-0.72l-0.38,-0.59l0.79,-1.35l-0.04,-0.46l-0.82,-0.97l-0.61,0.01l-0.68,0.84l-0.1,-2.34l-1.23,-1.88l0.85,-3.47l1.77,-2.68l1.85,0.26l2.17,-0.22ZM406.26,132.86l-1.01,1.77l-1.57,-0.59l-1.16,0.01l0.37,-1.54l-0.39,-1.39l1.45,-0.1l2.3,1.84Z\",name:\"United Kingdom\"},GA:{path:\"M453.24,279.52l-0.08,0.98l0.7,1.29l2.36,0.24l-0.98,2.63l1.18,1.79l0.25,1.78l-0.29,1.52l-0.6,0.93l-1.84,-0.09l-1.23,-1.11l-0.66,0.23l-0.15,0.84l-1.42,0.26l-1.02,0.7l-0.11,0.52l0.77,1.35l-1.34,0.97l-3.94,-4.3l-1.44,-2.45l0.06,-0.6l0.54,-0.81l1.05,-3.46l4.17,-0.07l0.4,-0.4l-0.02,-2.66l2.39,0.21l1.25,-0.27Z\",name:\"Gabon\"},GN:{path:\"M391.8,254.11l0.47,0.8l1.11,-0.32l0.98,0.7l1.07,0.2l2.26,-1.22l0.64,0.44l1.13,1.56l-0.48,1.4l0.8,0.3l-0.08,0.48l0.46,0.68l-0.35,1.36l1.05,2.61l-1.0,0.69l0.03,1.41l-0.72,-0.06l-1.08,1.0l-0.24,-0.27l0.07,-1.11l-1.05,-1.54l-1.79,0.21l-0.35,-2.01l-1.6,-2.18l-2.0,-0.0l-1.31,0.54l-1.95,2.18l-1.86,-2.19l-1.2,-0.78l-0.3,-1.11l-0.8,-0.85l0.65,-0.72l0.81,-0.03l1.64,-0.8l0.23,-1.87l2.67,0.64l0.89,-0.3l1.21,0.15Z\",name:\"Guinea\"},GM:{path:\"M379.31,251.39l0.1,-0.35l2.43,-0.07l0.74,-0.61l0.51,-0.03l0.77,0.49l-1.03,-0.3l-1.87,0.9l-1.65,-0.04ZM384.03,250.91l0.91,0.05l0.75,-0.24l-0.59,0.31l-1.08,-0.13Z\",name:\"Gambia\"},GL:{path:\"M353.02,1.2l14.69,4.67l-3.68,1.89l-22.97,0.86l-0.36,0.27l0.12,0.43l1.55,1.18l8.79,-0.66l7.48,2.07l4.86,-1.77l1.66,1.73l-2.53,3.19l-0.01,0.48l0.46,0.15l6.35,-2.2l12.06,-2.31l7.24,1.13l1.09,1.99l-9.79,4.01l-1.44,1.32l-7.87,0.98l-0.35,0.41l0.38,0.38l5.07,0.24l-2.53,3.58l-2.07,3.81l0.08,6.05l2.57,3.11l-3.22,0.2l-4.12,1.66l-0.05,0.72l4.45,2.65l0.51,3.75l-2.3,0.4l-0.25,0.64l2.79,3.69l-4.82,0.31l-0.36,0.29l0.16,0.44l2.62,1.8l-0.59,1.22l-3.3,0.7l-3.45,0.01l-0.29,0.68l3.03,3.12l0.02,1.34l-4.4,-1.73l-1.72,1.35l0.15,0.66l3.31,1.15l3.13,2.71l0.81,3.16l-3.85,0.75l-4.89,-4.26l-0.47,-0.03l-0.17,0.44l0.79,2.86l-2.71,2.21l-0.13,0.44l0.37,0.27l8.73,0.34l-12.32,6.64l-7.24,1.48l-2.94,0.08l-2.69,1.75l-3.43,4.41l-5.24,2.84l-1.73,0.18l-7.12,2.1l-2.15,2.52l-0.13,2.99l-1.19,2.45l-4.01,3.09l-0.14,0.44l0.97,2.9l-2.28,6.48l-3.1,0.2l-3.83,-3.07l-4.86,-0.02l-2.25,-1.93l-1.7,-3.79l-4.3,-4.84l-1.21,-2.49l-0.44,-3.8l-3.32,-3.63l0.84,-2.86l-1.56,-1.7l2.28,-4.6l3.83,-1.74l1.03,-1.96l0.52,-3.47l-0.59,-0.41l-4.17,2.21l-2.07,0.58l-2.72,-1.28l-0.15,-2.71l0.85,-2.09l2.01,-0.06l5.06,1.2l0.46,-0.23l-0.14,-0.49l-6.54,-4.47l-2.67,0.55l-1.58,-0.86l2.56,-4.01l-0.03,-0.48l-1.5,-1.74l-4.98,-8.5l-3.13,-1.96l0.03,-1.88l-0.24,-0.37l-6.85,-3.02l-5.36,-0.38l-12.7,0.58l-2.78,-1.57l-3.66,-2.77l5.73,-1.45l5.0,-0.28l0.38,-0.38l-0.35,-0.41l-10.67,-1.38l-5.3,-2.06l0.25,-1.54l18.41,-5.26l1.22,-2.27l-0.25,-0.55l-6.14,-1.86l1.68,-1.77l8.55,-4.03l3.59,-0.63l0.3,-0.54l-0.88,-2.27l5.47,-1.47l7.65,-0.95l7.55,-0.05l3.04,1.85l6.48,-3.27l5.81,2.22l3.56,0.5l5.16,1.94l0.5,-0.21l-0.17,-0.52l-5.71,-3.13l0.28,-2.13l8.12,-3.6l8.7,0.28l3.35,-2.34l8.71,-0.6l19.93,0.8Z\",name:\"Greenland\"},KW:{path:\"M540.81,207.91l0.37,0.86l-0.17,0.76l0.6,1.53l-0.95,0.04l-0.82,-1.28l-1.57,-0.18l1.31,-1.88l1.22,0.17Z\",name:\"Kuwait\"},GH:{path:\"M420.53,257.51l-0.01,0.72l0.96,1.2l0.24,3.73l0.59,0.95l-0.51,2.1l0.19,1.41l1.02,2.21l-6.97,2.84l-1.8,-0.57l0.04,-0.89l-1.02,-2.04l0.61,-2.65l1.07,-2.32l-0.96,-6.47l5.01,0.07l0.94,-0.39l0.61,0.11Z\",name:\"Ghana\"},OM:{path:\"M568.09,230.93l-0.91,1.67l-1.22,0.04l-0.6,0.76l-0.41,1.51l0.27,1.58l-1.16,0.05l-1.56,0.97l-0.76,1.74l-1.62,0.05l-0.98,0.65l-0.17,1.15l-0.89,0.52l-1.49,-0.18l-2.4,0.94l-2.47,-5.4l7.35,-2.71l1.67,-5.23l-1.12,-2.09l0.05,-0.83l0.67,-1.0l0.07,-1.05l0.9,-0.42l-0.05,-2.07l0.7,-0.01l1.0,1.62l1.51,1.08l3.3,0.84l1.73,2.29l0.81,0.37l-1.23,2.35l-0.99,0.79Z\",name:\"Oman\"},_2:{path:\"M531.15,258.94l1.51,0.12l5.13,-0.95l5.3,-1.48l-0.01,4.4l-2.67,3.39l-1.85,0.01l-8.04,-2.94l-2.55,-3.17l1.12,-1.71l2.04,2.34Z\",name:\"Somaliland\"},_1:{path:\"M472.77,172.64l-1.08,-1.29l0.96,-0.77l0.29,-0.83l1.98,1.64l-0.36,0.67l-1.79,0.58Z\",name:\"Kosovo\"},_0:{path:\"M504.91,192.87l0.34,0.01l0.27,-0.07l-0.29,0.26l-0.31,-0.2Z\",name:\"N. Cyprus\"},JO:{path:\"M518.64,201.38l-5.14,1.56l-0.19,0.65l2.16,2.39l-0.89,1.14l-1.71,0.34l-1.71,1.8l-2.34,-0.37l1.21,-4.32l0.56,-4.07l2.8,0.94l4.46,-2.71l0.79,2.66Z\",name:\"Jordan\"},HR:{path:\"M455.59,162.84l1.09,0.07l-0.82,0.94l-0.27,-1.01ZM456.96,162.92l0.62,-0.41l1.73,0.45l0.42,-0.4l-0.01,-0.59l0.86,-0.52l0.2,-1.05l1.63,-0.68l2.57,1.68l2.07,0.6l0.87,-0.31l1.05,1.57l-0.52,0.63l-1.05,-0.56l-1.68,0.04l-2.1,-0.5l-1.29,0.06l-0.57,0.49l-0.59,-0.47l-0.62,0.16l-0.46,1.7l1.79,2.42l2.79,2.75l-1.18,-0.87l-2.21,-0.87l-1.67,-1.78l0.13,-0.63l-1.05,-1.19l-0.32,-1.27l-1.42,-0.43Z\",name:\"Croatia\"},HT:{path:\"M237.05,238.38l-1.16,0.43l-0.91,-0.55l0.05,-0.2l2.02,0.31ZM237.53,238.43l1.06,0.12l-0.05,0.01l-1.01,-0.12ZM239.25,238.45l0.79,-0.51l0.06,-0.62l-1.02,-1.0l0.02,-0.82l-0.3,-0.4l-0.93,-0.32l3.16,0.45l0.02,1.84l-0.48,0.34l-0.08,0.58l0.54,0.72l-1.78,-0.26Z\",name:\"Haiti\"},HU:{path:\"M462.08,157.89l0.65,-1.59l-0.09,-0.44l0.64,-0.0l0.39,-0.34l0.1,-0.69l1.75,0.87l2.32,-0.37l0.43,-0.66l3.49,-0.78l0.69,-0.78l0.57,-0.14l2.57,0.93l0.67,-0.23l1.03,0.65l0.08,0.37l-1.42,0.71l-2.59,4.14l-1.8,0.53l-1.68,-0.1l-2.74,1.23l-1.85,-0.54l-2.54,-1.66l-0.66,-1.1Z\",name:\"Hungary\"},HN:{path:\"M199.6,249.52l-1.7,-1.21l0.06,-0.94l3.04,-2.14l2.37,0.28l1.27,-0.09l1.1,-0.52l1.3,0.28l1.14,-0.25l1.38,0.37l2.23,1.37l-2.36,0.93l-1.23,-0.39l-0.88,1.3l-1.28,0.99l-0.98,-0.22l-0.42,0.52l-0.96,0.05l-0.36,0.41l0.04,0.88l-0.52,0.6l-0.3,0.04l-0.3,-0.55l-0.66,-0.31l0.11,-0.67l-0.48,-0.65l-0.87,-0.26l-0.73,0.2Z\",name:\"Honduras\"},PR:{path:\"M256.17,238.73l-0.26,0.27l-2.83,0.05l-0.07,-0.55l1.95,-0.1l1.22,0.33Z\",name:\"Puerto Rico\"},PS:{path:\"M509.21,203.07l0.1,-0.06l-0.02,0.03l-0.09,0.03ZM509.36,202.91l-0.02,-0.63l-0.33,-0.16l0.31,-1.09l0.24,0.1l-0.2,1.78Z\",name:\"Palestine\"},PT:{path:\"M401.84,187.38l-0.64,0.47l-1.13,-0.35l-0.91,0.17l0.28,-1.78l-0.24,-1.78l-1.25,-0.56l-0.45,-0.84l0.17,-1.66l1.01,-1.18l0.69,-2.92l-0.04,-1.39l-0.59,-1.9l1.3,-0.85l0.84,1.35l3.1,-0.3l0.46,0.99l-1.05,0.94l-0.03,2.16l-0.41,0.57l-0.08,1.1l-0.79,0.18l-0.26,0.59l0.91,1.6l-0.63,1.75l0.76,1.09l-1.1,1.52l0.07,1.05Z\",name:\"Portugal\"},PY:{path:\"M274.9,336.12l0.74,1.52l-0.16,3.45l0.32,0.41l2.64,0.5l1.11,-0.47l1.4,0.59l0.36,0.6l0.53,3.42l1.27,0.4l0.98,-0.38l0.51,0.27l-0.0,1.18l-1.21,5.32l-2.09,1.9l-1.8,0.4l-4.71,-0.98l2.2,-3.63l-0.32,-1.5l-2.78,-1.28l-3.03,-1.94l-2.07,-0.44l-4.34,-4.06l0.91,-2.9l0.08,-1.42l1.07,-2.04l4.13,-0.72l2.18,0.03l2.05,1.17l0.03,0.59Z\",name:\"Paraguay\"},PA:{path:\"M213.8,263.68l0.26,-1.52l-0.36,-0.26l-0.01,-0.49l0.44,-0.1l0.93,1.4l1.26,0.03l0.77,0.49l1.38,-0.23l2.51,-1.11l0.86,-0.72l3.45,0.85l1.4,1.18l0.41,1.74l-0.21,0.34l-0.53,-0.12l-0.47,0.29l-0.16,0.6l-0.68,-1.28l0.45,-0.49l-0.19,-0.66l-0.47,-0.13l-0.54,-0.84l-1.5,-0.75l-1.1,0.16l-0.75,0.99l-1.62,0.84l-0.18,0.96l0.85,0.97l-0.58,0.45l-0.69,0.08l-0.34,-1.18l-1.27,0.03l-0.71,-1.05l-2.59,-0.46Z\",name:\"Panama\"},PG:{path:\"M808.58,298.86l2.54,2.56l-0.13,0.26l-0.33,0.12l-0.87,-0.78l-1.22,-2.16ZM801.41,293.04l0.5,0.29l0.26,0.27l-0.49,-0.35l-0.27,-0.21ZM803.17,294.58l0.59,0.5l0.08,1.06l-0.29,-0.91l-0.38,-0.65ZM796.68,298.41l0.52,0.75l1.43,-0.19l2.27,-1.81l-0.01,-1.43l1.12,0.16l-0.04,1.1l-0.7,1.28l-1.12,0.18l-0.62,0.79l-2.46,1.11l-1.17,-0.0l-3.08,-1.25l3.41,0.0l0.45,-0.68ZM789.15,303.55l2.31,1.8l1.59,2.61l1.34,0.13l-0.06,0.66l0.31,0.43l1.06,0.24l0.06,0.65l2.25,1.05l-1.22,0.13l-0.72,-0.63l-4.56,-0.65l-3.22,-2.87l-1.49,-2.34l-3.27,-1.1l-2.38,0.72l-1.59,0.86l-0.2,0.42l0.27,1.55l-1.55,0.68l-1.36,-0.4l-2.21,-0.09l-0.08,-15.41l8.39,2.93l2.95,2.4l0.6,1.64l4.02,1.49l0.31,0.68l-1.76,0.21l-0.33,0.52l0.55,1.68Z\",name:\"Papua New Guinea\"},PE:{path:\"M244.96,295.21l-1.26,-0.07l-0.57,0.42l-1.93,0.45l-2.98,1.75l-0.36,1.36l-0.58,0.8l0.12,1.37l-1.24,0.59l-0.22,1.22l-0.62,0.84l1.04,2.27l1.28,1.44l-0.41,0.84l0.32,0.57l1.48,0.13l1.16,1.37l2.21,0.07l1.63,-1.08l-0.13,3.02l0.3,0.4l1.14,0.29l1.31,-0.34l1.9,3.59l-0.48,0.85l-0.17,3.85l-0.94,1.59l0.35,0.75l-0.47,1.07l0.98,1.97l-2.1,3.82l-0.98,0.5l-2.17,-1.28l-0.39,-1.16l-4.95,-2.58l-4.46,-2.79l-1.84,-1.51l-0.91,-1.84l0.3,-0.96l-2.11,-3.33l-4.82,-9.68l-1.04,-1.2l-0.87,-1.94l-3.4,-2.48l0.58,-1.18l-1.13,-2.23l0.66,-1.49l1.45,-1.15l-0.6,0.98l0.07,0.92l0.47,0.36l1.74,0.03l0.97,1.17l0.54,0.07l1.42,-1.03l0.6,-1.84l1.42,-2.02l3.04,-1.04l2.73,-2.62l0.86,-1.74l-0.1,-1.87l1.44,1.02l0.9,1.25l1.06,0.59l1.7,2.73l1.86,0.31l1.45,-0.61l0.96,0.39l1.36,-0.19l1.45,0.89l-1.4,2.21l0.31,0.61l0.59,0.05l0.47,0.5Z\",name:\"Peru\"},PK:{path:\"M615.09,192.34l-1.83,1.81l-2.6,0.39l-3.73,-0.68l-1.58,1.33l-0.09,0.42l1.77,4.39l1.7,1.23l-1.69,1.27l-0.12,2.14l-2.33,2.64l-1.6,2.8l-2.46,2.67l-3.03,-0.07l-2.76,2.83l0.05,0.6l1.5,1.11l0.26,1.9l1.44,1.5l0.37,1.68l-5.01,-0.01l-1.78,1.7l-1.42,-0.52l-0.76,-1.87l-2.27,-2.15l-11.61,0.86l0.71,-2.34l3.43,-1.32l0.25,-0.44l-0.21,-1.24l-1.2,-0.65l-0.28,-2.46l-2.29,-1.14l-1.28,-1.94l2.82,0.94l2.62,-0.38l1.42,0.33l0.76,-0.56l1.71,0.19l3.25,-1.14l0.27,-0.36l0.08,-2.19l1.18,-1.32l1.68,0.0l0.58,-0.82l1.6,-0.3l1.19,0.16l0.98,-0.78l0.02,-1.88l0.93,-1.47l1.48,-0.66l0.19,-0.55l-0.66,-1.25l2.04,-0.11l0.69,-1.01l-0.02,-1.16l1.11,-1.06l-0.17,-1.78l-0.49,-1.03l1.15,-0.98l5.42,-0.91l2.6,-0.82l1.6,1.16l0.97,2.34l3.45,0.97Z\",name:\"Pakistan\"},PH:{path:\"M737.01,263.84l0.39,2.97l-0.44,1.18l-0.55,-1.53l-0.67,-0.14l-1.17,1.28l0.65,2.09l-0.42,0.69l-2.48,-1.23l-0.57,-1.49l0.65,-1.03l-0.1,-0.54l-1.59,-1.19l-0.56,0.08l-0.65,0.87l-1.23,0.0l-1.58,0.97l0.83,-1.8l2.56,-1.42l0.65,0.84l0.45,0.13l1.9,-0.69l0.56,-1.11l1.5,-0.06l0.38,-0.43l-0.09,-1.19l1.21,0.71l0.36,2.02ZM733.59,256.58l0.05,0.75l0.08,0.26l-0.8,-0.42l-0.18,-0.71l0.85,0.12ZM734.08,256.1l-0.12,-1.12l-1.0,-1.27l1.36,0.03l0.53,0.73l0.51,2.04l-1.27,-0.4ZM733.76,257.68l0.38,0.98l-0.32,0.15l-0.07,-1.13ZM724.65,238.43l1.46,0.7l0.72,-0.31l-0.32,1.17l0.79,1.71l-0.57,1.84l-1.53,1.04l-0.39,2.25l0.56,2.04l1.63,0.57l1.16,-0.27l2.71,1.23l-0.19,1.08l0.76,0.84l-0.08,0.36l-1.4,-0.9l-0.88,-1.27l-0.66,0.0l-0.38,0.55l-1.6,-1.31l-2.15,0.36l-0.87,-0.39l0.07,-0.61l0.66,-0.55l-0.01,-0.62l-0.75,-0.59l-0.72,0.44l-0.74,-0.87l-0.39,-2.49l0.32,0.27l0.66,-0.28l0.26,-3.97l0.7,-2.02l1.14,0.0ZM731.03,258.87l-0.88,0.85l-1.19,1.94l-1.05,-1.19l0.93,-1.1l0.32,-1.47l0.52,-0.06l-0.27,1.15l0.22,0.45l0.49,-0.12l1.0,-1.32l-0.08,0.85ZM726.83,255.78l0.83,0.38l1.17,-0.0l-0.02,0.48l-2.0,1.4l0.03,-2.26ZM724.81,252.09l-0.38,1.27l-1.42,-1.95l1.2,0.05l0.6,0.63ZM716.55,261.82l1.1,-0.95l0.03,-0.03l-0.28,0.36l-0.85,0.61ZM719.22,259.06l0.04,-0.06l0.8,-1.53l0.16,0.75l-1.0,0.84Z\",name:\"Philippines\"},PL:{path:\"M468.44,149.42l-1.11,-1.54l-1.86,-0.33l-0.48,-1.05l-1.72,-0.37l-0.65,0.69l-0.72,-0.36l0.11,-0.61l-0.33,-0.46l-1.75,-0.27l-1.04,-0.93l-0.94,-1.94l0.16,-1.22l-0.62,-1.8l-0.78,-1.07l0.57,-1.04l-0.48,-1.43l1.41,-0.83l6.91,-2.71l2.14,0.5l0.52,0.91l5.51,0.44l4.55,-0.05l1.07,0.31l0.48,0.84l0.15,1.58l0.65,1.2l-0.01,0.99l-1.27,0.58l-0.19,0.54l0.73,1.48l0.08,1.55l1.2,2.76l-0.17,0.58l-1.23,0.44l-2.27,2.72l0.18,0.95l-1.97,-1.03l-1.98,0.4l-1.36,-0.28l-1.24,0.58l-1.07,-0.97l-1.16,0.24Z\",name:\"Poland\"},ZM:{path:\"M481.47,313.3l0.39,0.31l2.52,0.14l0.99,1.17l2.01,0.35l1.4,-0.64l0.69,1.17l1.78,0.33l1.84,2.35l2.23,0.18l0.4,-0.43l-0.21,-2.74l-0.62,-0.3l-0.48,0.32l-1.98,-1.17l0.72,-5.29l-0.51,-1.18l0.57,-1.3l3.68,-0.62l0.26,0.63l1.21,0.63l0.9,-0.22l2.16,0.67l1.33,0.71l1.07,1.02l0.56,1.87l-0.88,2.7l0.43,2.09l-0.73,0.87l-0.76,2.37l0.59,0.68l-6.6,1.83l-0.29,0.44l0.19,1.45l-1.68,0.35l-1.43,1.02l-0.38,0.87l-0.87,0.26l-3.48,3.69l-4.16,-0.53l-1.52,-1.0l-1.77,-0.13l-1.83,0.52l-3.04,-3.4l0.11,-7.59l4.82,0.03l0.39,-0.49l-0.18,-0.76l0.33,-0.83l-0.4,-1.36l0.24,-1.05Z\",name:\"Zambia\"},EH:{path:\"M384.42,230.28l0.25,-0.79l1.06,-1.29l0.8,-3.51l3.38,-2.78l0.7,-1.81l0.06,4.84l-1.98,0.2l-0.94,1.59l0.39,3.56l-3.7,-0.01ZM392.01,218.1l0.7,-1.8l1.77,-0.24l2.09,0.34l0.95,-0.62l1.28,-0.07l-0.0,2.51l-6.79,-0.12Z\",name:\"W. Sahara\"},EE:{path:\"M485.71,115.04l2.64,0.6l2.56,0.11l-1.6,1.91l0.61,3.54l-0.81,0.87l-1.78,-0.01l-3.22,-1.76l-1.8,0.45l0.21,-1.53l-0.58,-0.41l-0.69,0.34l-1.26,-1.03l-0.17,-1.63l2.83,-0.92l3.05,-0.52Z\",name:\"Estonia\"},EG:{path:\"M492.06,205.03l1.46,0.42l2.95,-1.64l2.04,-0.21l1.53,0.3l0.59,1.19l0.69,0.04l0.41,-0.64l1.81,0.58l1.95,0.16l1.04,-0.51l1.42,4.08l-2.03,4.54l-1.66,-1.77l-1.76,-3.85l-0.64,-0.12l-0.36,0.67l1.04,2.88l3.44,6.95l1.78,3.04l2.03,2.65l-0.36,0.53l0.23,2.01l2.7,2.19l-28.41,0.0l0.0,-18.96l-0.73,-2.2l0.59,-1.56l-0.32,-1.26l0.68,-0.99l3.06,-0.04l4.82,1.52Z\",name:\"Egypt\"},ZA:{path:\"M467.14,373.21l-0.13,-1.96l-0.68,-1.56l0.7,-0.68l-0.13,-2.33l-4.56,-8.19l0.77,-0.86l0.6,0.45l0.69,1.31l2.83,0.72l1.5,-0.26l2.24,-1.39l0.19,-9.55l1.35,2.3l-0.21,1.5l0.61,1.2l0.4,0.19l1.79,-0.27l2.6,-2.07l0.69,-1.32l0.96,-0.48l2.19,1.04l2.04,0.13l1.77,-0.65l0.85,-2.12l1.38,-0.33l1.59,-2.76l2.15,-1.89l3.41,-1.87l2.0,0.45l1.02,-0.28l0.99,0.2l1.75,5.29l-0.38,3.25l-0.81,-0.23l-1.0,0.46l-0.87,1.68l-0.05,1.16l1.97,1.84l1.47,-0.29l0.69,-1.18l1.09,0.01l-0.76,3.69l-0.58,1.09l-2.2,1.79l-3.17,4.76l-2.8,2.83l-3.57,2.88l-2.53,1.05l-1.22,0.14l-0.51,0.7l-1.18,-0.32l-1.39,0.5l-2.59,-0.52l-1.61,0.33l-1.18,-0.11l-2.55,1.1l-2.1,0.44l-1.6,1.07l-0.85,0.05l-0.93,-0.89l-0.93,-0.15l-0.97,-1.13l-0.25,0.05ZM491.45,364.19l0.62,-0.93l1.48,-0.59l1.18,-2.19l-0.07,-0.49l-1.99,-1.69l-1.66,0.56l-1.43,1.14l-1.34,1.73l0.02,0.51l1.88,2.11l1.31,-0.16Z\",name:\"South Africa\"},EC:{path:\"M231.86,285.53l0.29,1.59l-0.69,1.45l-2.61,2.51l-3.13,1.11l-1.53,2.18l-0.49,1.68l-1.0,0.73l-1.02,-1.11l-1.78,-0.16l0.67,-1.15l-0.24,-0.86l1.25,-2.13l-0.54,-1.09l-0.67,-0.08l-0.72,0.87l-0.87,-0.64l0.35,-0.69l-0.36,-1.96l0.81,-0.51l0.45,-1.51l0.92,-1.57l-0.07,-0.97l2.65,-1.33l2.75,1.35l0.77,1.05l2.12,0.35l0.76,-0.32l1.96,1.21Z\",name:\"Ecuador\"},AL:{path:\"M470.32,171.8l0.74,0.03l0.92,0.89l-0.17,1.95l0.36,1.28l1.01,0.82l-1.82,2.83l-0.19,-0.61l-1.25,-0.89l-0.18,-1.2l0.53,-2.82l-0.54,-1.47l0.6,-0.83Z\",name:\"Albania\"},AO:{path:\"M461.55,300.03l1.26,3.15l1.94,2.36l2.47,-0.53l1.25,0.32l0.44,-0.18l0.93,-1.92l1.31,-0.08l0.41,-0.44l0.47,-0.0l-0.1,0.41l0.39,0.49l2.65,-0.02l0.03,1.19l0.48,1.01l-0.34,1.52l0.18,1.55l0.83,1.04l-0.13,2.85l0.54,0.39l3.96,-0.41l-0.1,1.79l0.39,1.05l-0.24,1.43l-4.7,-0.03l-0.4,0.39l-0.12,8.13l2.92,3.49l-3.83,0.88l-5.89,-0.36l-1.88,-1.24l-10.47,0.22l-1.3,-1.01l-1.85,-0.16l-2.4,0.77l-0.15,-1.06l0.33,-2.16l1.0,-3.45l1.35,-3.2l2.24,-2.8l0.33,-2.06l-0.13,-1.53l-0.8,-1.08l-1.21,-2.87l0.87,-1.62l-1.27,-4.12l-1.17,-1.53l2.47,-0.63l7.03,0.03ZM451.71,298.87l-0.47,-1.25l1.25,-1.11l0.32,0.3l-0.99,1.03l-0.12,1.03Z\",name:\"Angola\"},KZ:{path:\"M552.8,172.89l0.46,-1.27l-0.48,-1.05l-2.96,-1.19l-1.06,-2.58l-1.37,-0.87l-0.03,-0.3l1.95,0.23l0.45,-0.38l0.08,-1.96l1.75,-0.41l2.1,0.45l0.48,-0.33l0.45,-3.04l-0.45,-2.09l-0.41,-0.31l-2.42,0.15l-2.36,-0.73l-2.87,1.37l-2.17,0.61l-0.85,-0.34l0.13,-1.61l-1.6,-2.12l-2.02,-0.08l-1.78,-1.82l1.29,-2.18l-0.57,-0.95l1.62,-2.91l2.21,1.63l0.63,-0.27l0.29,-2.22l4.92,-3.43l3.71,-0.08l8.4,3.6l2.92,-1.36l3.77,-0.06l3.11,1.66l0.51,-0.11l0.6,-0.81l3.31,0.13l0.39,-0.25l0.63,-1.57l-0.17,-0.5l-3.5,-1.98l1.87,-1.27l-0.13,-1.03l1.98,-0.72l0.18,-0.62l-1.59,-2.06l0.81,-0.82l9.23,-1.18l1.33,-0.88l6.18,-1.26l2.26,-1.42l4.08,0.68l0.73,3.33l0.51,0.3l2.48,-0.8l2.79,1.02l-0.17,1.56l0.43,0.44l2.55,-0.24l4.89,-2.53l0.03,0.32l3.15,2.61l5.56,8.47l0.65,0.02l1.12,-1.46l3.15,1.74l3.76,-0.78l1.15,0.49l1.14,1.8l1.84,0.76l0.99,1.29l3.35,-0.25l1.02,1.52l-1.6,1.81l-1.93,0.28l-0.34,0.38l-0.11,3.05l-1.13,1.16l-4.75,-1.0l-0.46,0.27l-1.76,5.47l-1.1,0.59l-4.91,1.23l-0.27,0.54l2.1,4.97l-1.37,0.63l-0.23,0.41l0.13,1.13l-0.88,-0.25l-1.42,-1.13l-7.89,-0.4l-0.92,0.31l-3.73,-1.22l-1.42,0.63l-0.53,1.66l-3.72,-0.94l-1.85,0.43l-0.76,1.4l-4.65,2.62l-1.13,2.08l-0.44,0.01l-0.92,-1.4l-2.87,-0.09l-0.45,-2.14l-0.38,-0.32l-0.8,-0.01l0.0,-2.96l-3.0,-2.22l-7.31,0.58l-2.35,-2.68l-6.71,-3.69l-6.45,1.83l-0.29,0.39l0.1,10.85l-0.7,0.08l-1.62,-2.17l-1.83,-0.96l-3.11,0.59l-0.64,0.51Z\",name:\"Kazakhstan\"},ET:{path:\"M516.04,247.79l1.1,0.84l1.63,-0.45l0.68,0.47l1.63,0.03l2.01,0.94l1.73,1.66l1.64,2.07l-1.52,2.04l0.16,1.72l0.39,0.38l2.05,0.0l-0.36,1.03l2.86,3.58l8.32,3.08l1.31,0.02l-6.32,6.75l-3.1,0.11l-2.36,1.77l-1.47,0.04l-0.86,0.79l-1.38,-0.0l-1.32,-0.81l-2.29,1.05l-0.76,0.98l-3.29,-0.41l-3.07,-2.07l-1.8,-0.07l-0.62,-0.6l0.0,-1.24l-0.28,-0.38l-1.15,-0.37l-1.4,-2.59l-1.19,-0.68l-0.47,-1.0l-1.27,-1.23l-1.16,-0.22l0.43,-0.72l1.45,-0.28l0.41,-0.95l-0.03,-2.21l0.68,-2.44l1.05,-0.63l1.43,-3.06l1.57,-1.37l1.02,-2.51l0.35,-1.88l2.52,0.46l0.44,-0.24l0.58,-1.43Z\",name:\"Ethiopia\"},ZW:{path:\"M498.91,341.09l-1.11,-0.22l-0.92,0.28l-2.09,-0.44l-1.5,-1.11l-1.89,-0.43l-0.62,-1.4l-0.01,-0.84l-0.3,-0.38l-0.97,-0.25l-2.71,-2.74l-1.92,-3.32l3.83,0.45l3.73,-3.82l1.08,-0.44l0.26,-0.77l1.25,-0.9l1.41,-0.26l0.5,0.89l1.99,-0.05l1.72,1.17l1.11,0.17l1.05,0.66l0.01,2.99l-0.59,3.76l0.38,0.86l-0.23,1.23l-0.39,0.35l-0.63,1.81l-2.43,2.75Z\",name:\"Zimbabwe\"},ES:{path:\"M416.0,169.21l1.07,1.17l4.61,1.38l1.06,-0.57l2.6,1.26l2.71,-0.3l0.09,1.12l-2.14,1.8l-3.11,0.61l-0.31,0.31l-0.2,0.89l-1.54,1.69l-0.97,2.4l0.84,1.74l-1.32,1.27l-0.48,1.68l-1.88,0.65l-1.66,2.07l-5.36,-0.01l-1.79,1.08l-0.89,0.98l-0.88,-0.17l-0.79,-0.82l-0.68,-1.59l-2.37,-0.63l-0.11,-0.5l1.21,-1.82l-0.77,-1.13l0.61,-1.68l-0.76,-1.62l0.87,-0.49l0.09,-1.25l0.42,-0.6l0.03,-2.11l0.99,-0.69l0.13,-0.5l-1.03,-1.73l-1.46,-0.11l-0.61,0.38l-1.06,0.0l-0.52,-1.23l-0.53,-0.21l-1.32,0.67l-0.01,-1.49l-0.75,-0.96l3.03,-1.88l2.99,0.53l3.32,-0.02l2.63,0.51l6.01,-0.06Z\",name:\"Spain\"},ER:{path:\"M520.38,246.23l3.42,2.43l3.5,3.77l0.84,0.54l-0.95,-0.01l-3.51,-3.89l-2.33,-1.15l-1.73,-0.07l-0.91,-0.51l-1.26,0.51l-1.34,-1.02l-0.61,0.17l-0.66,1.61l-2.35,-0.43l-0.17,-0.67l1.29,-5.29l0.61,-0.61l1.95,-0.53l0.87,-1.01l1.17,2.41l0.68,2.33l1.49,1.43Z\",name:\"Eritrea\"},ME:{path:\"M468.91,172.53l-1.22,-1.02l0.47,-1.81l0.89,-0.72l2.26,1.51l-0.5,0.57l-0.75,-0.27l-1.14,1.73Z\",name:\"Montenegro\"},MD:{path:\"M488.41,153.73l1.4,-0.27l1.72,0.93l1.07,0.15l0.85,0.65l-0.14,0.84l0.96,0.85l1.12,2.47l-1.15,-0.07l-0.66,-0.41l-0.52,0.25l-0.09,0.86l-1.08,1.89l-0.27,-0.86l0.25,-1.34l-0.16,-1.6l-3.29,-4.34Z\",name:\"Moldova\"},MG:{path:\"M545.91,319.14l0.4,3.03l0.62,1.21l-0.21,1.02l-0.57,-0.8l-0.69,-0.01l-0.47,0.76l0.41,2.12l-0.18,0.87l-0.73,0.78l-0.15,2.14l-4.71,15.2l-1.06,2.88l-3.92,1.64l-3.12,-1.49l-0.6,-1.21l-0.19,-2.4l-0.86,-2.05l-0.21,-1.77l0.38,-1.62l1.21,-0.75l0.01,-0.76l1.19,-2.04l0.23,-1.66l-1.06,-2.99l-0.19,-2.21l0.81,-1.33l0.32,-1.46l4.63,-1.22l3.44,-3.0l0.85,-1.4l-0.08,-0.7l0.78,-0.04l1.38,-1.77l0.13,-1.64l0.45,-0.61l1.16,1.69l0.59,1.6Z\",name:\"Madagascar\"},MA:{path:\"M378.78,230.02l0.06,-0.59l0.92,-0.73l0.82,-1.37l-0.09,-1.04l0.79,-1.7l1.31,-1.58l0.96,-0.59l0.66,-1.55l0.09,-1.47l0.81,-1.48l1.72,-1.07l1.55,-2.69l1.16,-0.96l2.44,-0.39l1.94,-1.82l1.31,-0.78l2.09,-2.28l-0.51,-3.65l1.24,-3.7l1.5,-1.75l4.46,-2.57l2.37,-4.47l1.44,0.01l1.68,1.21l2.32,-0.19l3.47,0.65l0.8,1.54l0.16,1.71l0.86,2.96l0.56,0.59l-0.26,0.61l-3.05,0.44l-1.26,1.05l-1.33,0.22l-0.33,0.37l-0.09,1.78l-2.68,1.0l-1.07,1.42l-4.47,1.13l-4.04,2.01l-0.54,4.64l-1.15,0.06l-0.92,0.61l-1.96,-0.35l-2.42,0.54l-0.74,1.9l-0.86,0.4l-1.14,3.26l-3.53,3.01l-0.8,3.55l-0.96,1.1l-0.29,0.82l-4.95,0.18Z\",name:\"Morocco\"},UZ:{path:\"M598.64,172.75l-1.63,1.52l0.06,0.64l1.85,1.12l1.97,-0.64l2.21,1.17l-2.52,1.68l-2.59,-0.22l-0.18,-0.41l0.46,-1.23l-0.45,-0.53l-3.35,0.69l-2.1,3.51l-1.87,-0.12l-1.03,1.51l0.22,0.55l1.64,0.62l0.46,1.83l-1.19,2.49l-2.66,-0.53l0.05,-1.36l-0.26,-0.39l-3.3,-1.23l-2.56,-1.4l-4.4,-3.34l-1.34,-3.14l-1.08,-0.6l-2.58,0.13l-0.69,-0.44l-0.47,-2.52l-3.37,-1.6l-0.43,0.05l-2.07,1.72l-2.1,1.01l-0.21,0.47l0.28,1.01l-1.91,0.03l-0.09,-10.5l5.99,-1.7l6.19,3.54l2.71,2.84l7.05,-0.67l2.71,2.01l-0.17,2.81l0.39,0.42l0.9,0.02l0.44,2.14l0.38,0.32l2.94,0.09l0.95,1.42l1.28,-0.24l1.05,-2.04l4.43,-2.5Z\",name:\"Uzbekistan\"},MM:{path:\"M673.9,230.21l-1.97,1.57l-0.57,0.96l-1.4,0.6l-1.36,1.05l-1.99,0.36l-1.08,2.66l-0.91,0.4l-0.19,0.55l1.21,2.27l2.52,3.43l-0.79,1.91l-0.74,0.41l-0.17,0.52l0.65,1.37l1.61,1.95l0.25,2.58l0.9,2.13l-1.92,3.57l0.68,-2.25l-0.81,-1.74l0.19,-2.65l-1.05,-1.53l-1.24,-6.17l-1.12,-2.26l-0.6,-0.13l-4.34,3.02l-2.39,-0.65l0.77,-2.84l-0.52,-2.61l-1.91,-2.96l0.25,-0.75l-0.29,-0.51l-1.33,-0.3l-1.61,-1.93l-0.1,-1.3l0.82,-0.24l0.04,-1.64l1.02,-0.52l0.21,-0.45l-0.23,-0.95l0.54,-0.96l0.08,-2.22l1.46,0.45l0.47,-0.2l1.12,-2.19l0.16,-1.35l1.33,-2.16l-0.0,-1.52l2.89,-1.66l1.63,0.44l0.5,-0.44l-0.17,-1.4l0.64,-0.36l0.08,-1.04l0.77,-0.11l0.71,1.35l1.06,0.69l-0.03,3.86l-2.38,2.37l-0.3,3.15l0.46,0.43l2.28,-0.38l0.51,2.08l1.47,0.67l-0.6,1.8l0.19,0.48l2.97,1.48l1.64,-0.55l0.02,0.32Z\",name:\"Myanmar\"},ML:{path:\"M392.61,254.08l-0.19,-2.37l-0.99,-0.87l-0.44,-1.3l-0.09,-1.28l0.81,-0.58l0.35,-1.24l2.37,0.65l1.31,-0.47l0.86,0.15l0.66,-0.56l9.83,-0.04l0.38,-0.28l0.56,-1.8l-0.44,-0.65l-2.35,-21.95l3.27,-0.04l16.7,11.38l0.74,1.31l2.5,1.09l0.02,1.38l0.44,0.39l2.34,-0.21l0.01,5.38l-1.28,1.61l-0.26,1.49l-5.31,0.57l-1.07,0.92l-2.9,0.1l-0.86,-0.48l-1.38,0.36l-2.4,1.08l-0.6,0.87l-1.85,1.09l-0.43,0.7l-0.79,0.39l-1.44,-0.21l-0.81,0.84l-0.34,1.64l-1.91,2.02l-0.06,1.03l-0.67,1.22l0.13,1.16l-0.97,0.39l-0.23,-0.64l-0.52,-0.24l-1.35,0.4l-0.34,0.55l-2.69,-0.28l-0.37,-0.35l-0.02,-0.9l-0.65,-0.35l0.45,-0.64l-0.03,-0.53l-2.12,-2.44l-0.76,-0.01l-2.0,1.16l-0.78,-0.15l-0.8,-0.67l-1.21,0.23Z\",name:\"Mali\"},MN:{path:\"M676.61,146.48l3.81,1.68l5.67,-1.0l2.37,0.41l2.34,1.5l1.79,1.75l2.29,-0.03l3.12,0.52l2.47,-0.81l3.41,-0.59l3.53,-2.21l1.25,0.29l1.53,1.13l2.27,-0.21l-2.66,5.01l0.64,1.68l0.47,0.21l1.32,-0.38l2.38,0.48l2.02,-1.11l1.76,0.89l2.06,2.02l-0.13,0.53l-1.72,-0.29l-3.77,0.46l-1.88,0.99l-1.76,1.99l-3.71,1.17l-2.45,1.6l-3.83,-0.87l-0.41,0.17l-1.31,1.99l1.04,2.24l-1.52,0.9l-1.74,1.57l-2.79,1.02l-3.78,0.13l-4.05,1.05l-2.77,1.52l-1.16,-0.85l-2.94,0.0l-3.62,-1.79l-2.58,-0.49l-3.4,0.41l-5.12,-0.67l-2.63,0.06l-1.31,-1.6l-1.4,-3.0l-1.48,-0.33l-3.13,-1.94l-6.16,-0.93l-0.71,-1.06l0.86,-3.82l-1.93,-2.71l-3.5,-1.18l-1.95,-1.58l-0.5,-1.72l2.34,-0.52l4.75,-2.8l3.62,-1.47l2.18,0.97l2.46,0.05l1.81,1.53l2.46,0.12l3.95,0.71l2.43,-2.28l0.08,-0.48l-0.9,-1.72l2.24,-2.98l2.62,1.27l4.94,1.17l0.43,2.24Z\",name:\"Mongolia\"},MK:{path:\"M472.8,173.98l0.49,-0.71l3.57,-0.71l1.0,0.77l0.13,1.45l-0.65,0.53l-1.15,-0.05l-1.12,0.67l-1.39,0.22l-0.79,-0.55l-0.29,-1.03l0.19,-0.6Z\",name:\"Macedonia\"},MW:{path:\"M505.5,309.31l0.85,1.95l0.15,2.86l-0.69,1.65l0.71,1.8l0.06,1.28l0.49,0.64l0.07,1.06l0.4,0.55l0.8,-0.23l0.55,0.61l0.69,-0.21l0.34,0.6l0.19,2.94l-1.04,0.62l-0.54,1.25l-1.11,-1.08l-0.16,-1.56l0.51,-1.31l-0.32,-1.3l-0.99,-0.65l-0.82,0.12l-2.36,-1.64l0.63,-1.96l0.82,-1.18l-0.46,-2.01l0.9,-2.86l-0.94,-2.51l0.96,0.18l0.29,0.4Z\",name:\"Malawi\"},MR:{path:\"M407.36,220.66l-2.58,0.03l-0.39,0.44l2.42,22.56l0.36,0.43l-0.39,1.24l-9.75,0.04l-0.56,0.53l-0.91,-0.11l-1.27,0.45l-1.61,-0.66l-0.97,0.03l-0.36,0.29l-0.38,1.35l-0.42,0.23l-2.93,-3.4l-2.96,-1.52l-1.62,-0.03l-1.27,0.54l-1.12,-0.2l-0.65,0.4l-0.08,-0.49l0.68,-1.29l0.31,-2.43l-0.57,-3.91l0.23,-1.21l-0.69,-1.5l-1.15,-1.02l0.25,-0.39l9.58,0.02l0.4,-0.45l-0.46,-3.68l0.47,-1.04l2.12,-0.21l0.36,-0.4l-0.08,-6.4l7.81,0.13l0.41,-0.4l0.01,-3.31l7.76,5.35Z\",name:\"Mauritania\"},UG:{path:\"M498.55,276.32l0.7,-0.46l1.65,0.5l1.96,-0.57l1.7,0.01l1.45,-0.98l0.91,1.33l1.33,3.95l-2.57,4.03l-1.46,-0.4l-2.54,0.91l-1.37,1.61l-0.01,0.81l-2.42,-0.01l-2.26,1.01l-0.17,-1.59l0.58,-1.04l0.14,-1.94l1.37,-2.28l1.78,-1.58l-0.17,-0.65l-0.72,-0.24l0.13,-2.43Z\",name:\"Uganda\"},MY:{path:\"M717.47,273.46l-1.39,0.65l-2.12,-0.41l-2.88,-0.0l-0.38,0.28l-0.84,2.75l-0.99,0.96l-1.21,3.29l-1.73,0.45l-2.45,-0.68l-1.39,0.31l-1.33,1.15l-1.59,-0.14l-1.41,0.44l-1.44,-1.19l-0.18,-0.73l1.34,0.53l1.93,-0.47l0.75,-2.22l4.02,-1.03l2.75,-3.21l0.82,0.94l0.64,-0.05l0.4,-0.65l0.96,0.06l0.42,-0.36l0.24,-2.68l1.81,-1.64l1.21,-1.86l0.63,-0.01l1.07,1.05l0.34,1.28l3.44,1.35l-0.06,0.35l-1.37,0.1l-0.35,0.54l0.32,0.88ZM673.68,269.59l0.17,1.09l0.47,0.33l1.65,-0.3l0.87,-0.94l1.61,1.52l0.98,1.56l-0.12,2.81l0.41,2.29l0.95,0.9l0.88,2.44l-1.27,0.12l-5.1,-3.67l-0.34,-1.29l-1.37,-1.59l-0.33,-1.97l-0.88,-1.4l0.25,-1.68l-0.46,-1.05l1.63,0.84Z\",name:\"Malaysia\"},MX:{path:\"M133.12,200.41l0.2,0.47l9.63,3.33l6.96,-0.02l0.4,-0.4l0.0,-0.74l3.77,0.0l3.55,2.93l1.39,2.83l1.52,1.04l2.08,0.82l0.47,-0.14l1.46,-2.0l1.73,-0.04l1.59,0.98l2.05,3.35l1.47,1.56l1.26,3.14l2.18,1.02l2.26,0.58l-1.18,3.72l-0.42,5.04l1.79,4.89l1.62,1.89l0.61,1.52l1.2,1.42l2.55,0.66l1.37,1.1l7.54,-1.89l1.86,-1.3l1.14,-4.3l4.1,-1.21l3.57,-0.11l0.32,0.3l-0.06,0.94l-1.26,1.45l-0.67,1.71l0.38,0.7l-0.72,2.27l-0.49,-0.3l-1.0,0.08l-1.0,1.39l-0.47,-0.11l-0.53,0.47l-4.26,-0.02l-0.4,0.4l-0.0,1.06l-1.1,0.26l0.1,0.44l1.82,1.44l0.56,0.91l-3.19,0.21l-1.21,2.09l0.24,0.72l-0.2,0.44l-2.24,-2.18l-1.45,-0.93l-2.22,-0.69l-1.52,0.22l-3.07,1.16l-10.55,-3.85l-2.86,-1.96l-3.78,-0.92l-1.08,-1.19l-2.62,-1.43l-1.18,-1.54l-0.38,-0.81l0.66,-0.63l-0.18,-0.53l0.52,-0.76l0.01,-0.91l-2.0,-3.82l-2.21,-2.63l-2.53,-2.09l-1.19,-1.62l-2.2,-1.17l-0.3,-0.43l0.34,-1.48l-0.21,-0.45l-1.23,-0.6l-1.36,-1.2l-0.59,-1.78l-1.54,-0.47l-2.44,-2.55l-0.16,-0.9l-1.33,-2.03l-0.84,-1.99l-0.16,-1.33l-1.81,-1.1l-0.97,0.05l-1.31,-0.7l-0.57,0.22l-0.4,1.12l0.72,3.77l3.51,3.89l0.28,0.78l0.53,0.26l0.41,1.43l1.33,1.73l1.58,1.41l0.8,2.39l1.43,2.41l0.13,1.32l0.37,0.36l1.04,0.08l1.67,2.28l-0.85,0.76l-0.66,-1.51l-1.68,-1.54l-2.91,-1.87l0.06,-1.82l-0.54,-1.68l-2.91,-2.03l-0.55,0.09l-1.95,-1.1l-0.88,-0.94l0.68,-0.08l0.93,-1.01l0.08,-1.78l-1.93,-1.94l-1.46,-0.77l-3.75,-7.56l4.88,-0.42Z\",name:\"Mexico\"},VU:{path:\"M839.04,322.8l0.22,1.14l-0.44,0.03l-0.2,-1.45l0.42,0.27Z\",name:\"Vanuatu\"},FR:{path:\"M444.48,172.62l-0.64,1.78l-0.58,-0.31l-0.49,-1.72l0.4,-0.89l1.0,-0.72l0.3,1.85ZM429.64,147.1l1.78,1.58l1.46,-0.13l2.1,1.42l1.35,0.27l1.23,0.83l3.04,0.5l-1.03,1.85l-0.3,2.12l-0.41,0.32l-0.95,-0.24l-0.5,0.43l0.06,0.61l-1.81,1.92l-0.04,1.42l0.55,0.38l0.88,-0.36l0.61,0.97l-0.03,1.0l0.57,0.91l-0.75,1.09l0.65,2.39l1.27,0.57l-0.18,0.82l-2.01,1.53l-4.77,-0.8l-3.82,1.0l-0.53,1.85l-2.49,0.34l-2.71,-1.31l-1.16,0.57l-4.31,-1.29l-0.72,-0.86l1.19,-1.78l0.39,-6.45l-2.58,-3.3l-1.9,-1.66l-3.72,-1.23l-0.19,-1.72l2.81,-0.61l4.12,0.81l0.47,-0.48l-0.6,-2.77l1.94,0.95l5.83,-2.54l0.92,-2.74l1.6,-0.49l0.24,0.78l1.36,0.33l1.05,1.19ZM289.01,278.39l-0.81,0.8l-0.78,0.12l-0.5,-0.66l-0.56,-0.1l-0.91,0.6l-0.46,-0.22l1.09,-2.96l-0.96,-1.77l-0.17,-1.49l1.07,-1.77l2.32,0.75l2.51,2.01l0.3,0.74l-2.14,3.96Z\",name:\"France\"},FI:{path:\"M492.17,76.39l-0.23,3.5l3.52,2.63l-2.08,2.88l-0.02,0.44l2.8,4.56l-1.59,3.31l2.16,3.24l-0.94,2.39l0.14,0.47l3.44,2.51l-0.77,1.62l-7.52,6.95l-4.5,0.31l-4.38,1.37l-3.8,0.74l-1.44,-1.96l-2.17,-1.11l0.5,-3.66l-1.16,-3.33l1.09,-2.08l2.21,-2.42l5.67,-4.32l1.64,-0.83l0.21,-0.42l-0.46,-2.02l-3.38,-1.89l-0.75,-1.43l-0.22,-6.74l-6.79,-4.8l0.8,-0.62l2.54,2.12l3.46,-0.12l3.0,0.96l2.51,-2.11l1.17,-3.08l3.55,-1.38l2.76,1.53l-0.95,2.79Z\",name:\"Finland\"},FJ:{path:\"M871.53,326.34l-2.8,1.05l-0.08,-0.23l2.97,-1.21l-0.1,0.39ZM867.58,329.25l0.43,0.37l-0.27,0.88l-1.24,0.28l-1.04,-0.24l-0.14,-0.66l0.63,-0.58l0.92,0.26l0.7,-0.31Z\",name:\"Fiji\"},FK:{path:\"M274.36,425.85l1.44,1.08l-0.47,0.73l-3.0,0.89l-0.96,-1.0l-0.52,-0.05l-1.83,1.29l-0.73,-0.88l2.46,-1.64l1.93,0.76l1.67,-1.19Z\",name:\"Falkland Is.\"},NI:{path:\"M202.33,252.67l0.81,-0.18l1.03,-1.02l-0.04,-0.88l0.68,-0.0l0.63,-0.54l0.97,0.22l1.53,-1.26l0.58,-0.99l1.17,0.34l2.41,-0.94l0.13,1.32l-0.81,1.94l0.1,2.74l-0.36,0.37l-0.11,1.75l-0.47,0.81l0.18,1.14l-1.73,-0.85l-0.71,0.27l-1.47,-0.6l-0.52,0.16l-4.01,-3.81Z\",name:\"Nicaragua\"},NL:{path:\"M430.31,143.39l0.6,-0.5l2.13,-4.8l3.2,-1.33l1.74,0.08l0.33,0.8l-0.59,2.92l-0.5,0.99l-1.26,0.0l-0.4,0.45l0.33,2.7l-2.2,-1.78l-2.62,0.58l-0.75,-0.11Z\",name:\"Netherlands\"},NO:{path:\"M491.44,67.41l6.8,2.89l-2.29,0.86l-0.15,0.65l2.33,2.38l-4.98,1.79l0.84,-2.45l-0.18,-0.48l-3.55,-1.8l-3.89,1.52l-1.42,3.38l-2.12,1.72l-2.64,-1.0l-3.11,0.21l-2.66,-2.22l-0.5,-0.01l-1.41,1.1l-1.44,0.17l-0.35,0.35l-0.32,2.47l-4.32,-0.64l-0.44,0.29l-0.58,2.11l-2.45,0.2l-4.15,7.68l-3.88,5.76l0.78,1.62l-0.64,1.16l-2.24,-0.06l-0.38,0.24l-1.66,3.89l0.15,5.17l1.57,2.04l-0.78,4.16l-2.02,2.48l-0.85,1.63l-1.3,-1.75l-0.58,-0.07l-4.87,4.19l-3.1,0.79l-3.16,-1.7l-0.85,-3.77l-0.77,-8.55l2.14,-2.31l6.55,-3.27l5.02,-4.17l10.63,-13.84l10.98,-8.7l5.35,-1.91l4.34,0.12l3.69,-3.64l4.49,0.19l4.37,-0.89ZM484.55,20.04l4.26,1.75l-3.1,2.55l-7.1,0.65l-7.08,-0.9l-0.37,-1.31l-0.37,-0.29l-3.44,-0.1l-2.08,-2.0l6.87,-1.44l3.9,1.31l2.39,-1.64l6.13,1.4ZM481.69,33.93l-4.45,1.74l-3.54,-0.99l1.12,-0.9l0.05,-0.58l-1.06,-1.22l4.22,-0.89l1.09,1.97l2.57,0.87ZM466.44,24.04l7.43,3.77l-5.41,1.86l-1.58,4.08l-2.26,1.2l-1.12,4.11l-2.61,0.18l-4.79,-2.86l1.84,-1.54l-0.1,-0.68l-3.69,-1.53l-4.77,-4.51l-1.73,-3.89l6.11,-1.82l1.54,1.92l3.57,-0.08l1.2,-1.96l3.32,-0.18l3.05,1.92Z\",name:\"Norway\"},NA:{path:\"M474.26,330.66l-0.97,0.04l-0.38,0.4l-0.07,8.9l-2.09,0.08l-0.39,0.4l-0.0,17.42l-1.98,1.23l-1.17,0.17l-2.44,-0.66l-0.48,-1.13l-0.99,-0.74l-0.54,0.05l-0.9,1.01l-1.53,-1.68l-0.93,-1.88l-1.99,-8.56l-0.06,-3.12l-0.33,-1.52l-2.3,-3.34l-1.91,-4.83l-1.96,-2.43l-0.12,-1.57l2.33,-0.79l1.43,0.07l1.81,1.13l10.23,-0.25l1.84,1.23l5.87,0.35ZM474.66,330.64l6.51,-1.6l1.9,0.39l-1.69,0.4l-1.31,0.83l-1.12,-0.94l-4.29,0.92Z\",name:\"Namibia\"},NC:{path:\"M838.78,341.24l-0.33,0.22l-2.9,-1.75l-3.26,-3.37l1.65,0.83l4.85,4.07Z\",name:\"New Caledonia\"},NE:{path:\"M454.75,226.53l1.33,1.37l0.48,0.07l1.27,-0.7l0.53,3.52l0.94,0.83l0.17,0.92l0.81,0.69l-0.44,0.95l-0.96,5.26l-0.13,3.22l-3.04,2.31l-1.22,3.57l1.02,1.24l-0.0,1.46l0.39,0.4l1.13,0.04l-0.9,1.25l-1.47,-2.42l-0.86,-0.29l-2.09,1.37l-1.74,-0.67l-1.45,-0.17l-0.85,0.35l-1.36,-0.07l-1.64,1.09l-1.06,0.05l-2.94,-1.28l-1.44,0.59l-1.01,-0.03l-0.97,-0.94l-2.7,-0.98l-2.69,0.3l-0.87,0.64l-0.47,1.6l-0.75,1.16l-0.12,1.53l-1.57,-1.1l-1.31,0.24l0.03,-0.81l-0.32,-0.41l-2.59,-0.52l-0.15,-1.16l-1.35,-1.6l-0.29,-1.0l0.13,-0.84l1.29,-0.08l1.08,-0.92l3.31,-0.22l2.22,-0.41l0.32,-0.34l0.2,-1.47l1.39,-1.88l-0.01,-5.66l3.36,-1.12l7.24,-5.12l8.42,-4.92l3.69,1.06Z\",name:\"Niger\"},NG:{path:\"M456.32,253.89l0.64,0.65l-0.28,1.04l-2.11,2.01l-2.03,5.18l-1.37,1.16l-1.15,3.18l-1.33,0.66l-1.46,-0.97l-1.21,0.16l-1.38,1.36l-0.91,0.24l-1.79,4.06l-2.33,0.81l-1.11,-0.07l-0.86,0.5l-1.71,-0.05l-1.19,-1.39l-0.89,-1.89l-1.77,-1.66l-3.95,-0.08l0.07,-5.21l0.42,-1.43l1.95,-2.3l-0.14,-0.91l0.43,-1.18l-0.53,-1.41l0.25,-2.92l0.72,-1.07l0.32,-1.34l0.46,-0.39l2.47,-0.28l2.34,0.89l1.15,1.02l1.28,0.04l1.22,-0.58l3.03,1.27l1.49,-0.14l1.36,-1.0l1.33,0.07l0.82,-0.35l3.45,0.8l1.82,-1.32l1.84,2.67l0.66,0.16Z\",name:\"Nigeria\"},NZ:{path:\"M857.8,379.65l1.86,3.12l0.44,0.18l0.3,-0.38l0.03,-1.23l0.38,0.27l0.57,2.31l2.02,0.94l1.81,0.27l1.57,-1.06l0.7,0.18l-1.15,3.59l-1.98,0.11l-0.74,1.2l0.2,1.11l-2.42,3.98l-1.49,0.92l-1.04,-0.85l1.21,-2.05l-0.81,-2.01l-2.63,-1.25l0.04,-0.57l1.82,-1.19l0.43,-2.34l-0.16,-2.03l-0.95,-1.82l-0.06,-0.72l-3.11,-3.64l-0.79,-1.52l1.56,1.45l1.76,0.66l0.65,2.34ZM853.83,393.59l0.57,1.24l0.59,0.16l1.42,-0.97l0.46,0.79l0.0,1.03l-2.47,3.48l-1.26,1.2l-0.06,0.5l0.55,0.87l-1.41,0.07l-2.33,1.38l-2.03,5.02l-3.02,2.16l-2.06,-0.06l-1.71,-1.04l-2.47,-0.2l-0.27,-0.73l1.22,-2.1l3.05,-2.94l1.62,-0.59l4.02,-2.82l1.57,-1.67l1.07,-2.16l0.88,-0.7l0.48,-1.75l1.24,-0.97l0.35,0.79Z\",name:\"New Zealand\"},NP:{path:\"M641.14,213.62l0.01,3.19l-1.74,0.04l-4.8,-0.86l-1.58,-1.39l-3.37,-0.34l-7.65,-3.7l0.8,-2.09l2.33,-1.7l1.77,0.75l2.49,1.76l1.38,0.41l0.99,1.35l1.9,0.52l1.99,1.17l5.49,0.9Z\",name:\"Nepal\"},CI:{path:\"M407.4,259.27l0.86,0.42l0.56,0.9l1.13,0.53l1.19,-0.61l0.97,-0.08l1.42,0.54l0.6,3.24l-1.03,2.08l-0.65,2.84l1.06,2.33l-0.06,0.53l-2.54,-0.47l-1.66,0.03l-3.06,0.46l-4.11,1.6l0.32,-3.06l-1.18,-1.31l-1.32,-0.66l0.42,-0.85l-0.2,-1.4l0.5,-0.67l0.01,-1.59l0.84,-0.32l0.26,-0.5l-1.15,-3.01l0.12,-0.5l0.51,-0.25l0.66,0.31l1.93,0.02l0.67,-0.71l0.71,-0.14l0.25,0.69l0.57,0.22l1.4,-0.61Z\",name:\"Côte d'Ivoire\"},CH:{path:\"M444.62,156.35l-0.29,0.87l0.18,0.53l1.13,0.58l1.0,0.1l-0.1,0.65l-0.79,0.38l-1.72,-0.37l-0.45,0.23l-0.45,1.04l-0.75,0.06l-0.84,-0.4l-1.32,1.0l-0.96,0.12l-0.88,-0.55l-0.81,-1.3l-0.49,-0.16l-0.63,0.26l0.02,-0.65l1.71,-1.66l0.1,-0.56l0.93,0.08l0.58,-0.46l1.99,0.02l0.66,-0.61l2.19,0.79Z\",name:\"Switzerland\"},CO:{path:\"M242.07,254.93l-1.7,0.59l-0.59,1.18l-1.7,1.69l-0.38,1.93l-0.67,1.43l0.31,0.57l1.03,0.13l0.25,0.9l0.57,0.64l-0.04,2.34l1.64,1.42l3.16,-0.24l1.26,0.28l1.67,2.06l0.41,0.13l4.09,-0.39l0.45,0.22l-0.92,1.95l-0.2,1.8l0.52,1.83l0.75,1.05l-1.12,1.1l0.07,0.63l0.84,0.51l0.74,1.29l-0.39,-0.45l-0.59,-0.01l-0.71,0.74l-4.71,-0.05l-0.4,0.41l0.03,1.57l0.33,0.39l1.11,0.2l-1.68,0.4l-0.29,0.38l-0.01,1.82l1.16,1.14l0.34,1.25l-1.05,7.05l-1.04,-0.87l1.26,-1.99l-0.13,-0.56l-2.18,-1.23l-1.38,0.2l-1.14,-0.38l-1.27,0.61l-1.55,-0.26l-1.38,-2.46l-1.23,-0.75l-0.85,-1.2l-1.67,-1.19l-0.86,0.13l-2.11,-1.32l-1.01,0.31l-1.8,-0.29l-0.52,-0.91l-3.09,-1.68l0.77,-0.52l-0.1,-1.12l0.41,-0.64l1.34,-0.32l2.0,-2.88l-0.11,-0.57l-0.66,-0.43l0.39,-1.38l-0.52,-2.1l0.49,-0.83l-0.4,-2.13l-0.97,-1.35l0.17,-0.66l0.86,-0.08l0.47,-0.75l-0.46,-1.63l1.41,-0.07l1.8,-1.69l0.93,-0.24l0.3,-0.38l0.45,-2.76l1.22,-1.0l1.44,-0.04l0.45,-0.5l1.91,0.12l2.93,-1.84l1.15,-1.14l0.91,0.46l-0.25,0.45Z\",name:\"Colombia\"},CN:{path:\"M740.23,148.97l4.57,1.3l2.8,2.17l0.98,2.9l0.38,0.27l3.8,0.0l2.32,-1.28l3.29,-0.75l-0.96,2.09l-1.02,1.28l-0.85,3.4l-1.52,2.73l-2.76,-0.5l-2.4,1.13l-0.21,0.45l0.64,2.57l-0.32,3.2l-0.94,0.06l-0.37,0.89l-0.91,-1.01l-0.64,0.07l-0.92,1.57l-3.73,1.25l-0.26,0.48l0.26,1.06l-1.5,-0.08l-1.09,-0.86l-0.56,0.06l-1.67,2.06l-2.7,1.56l-2.03,1.88l-3.4,0.83l-1.93,1.4l-1.15,0.34l0.33,-0.7l-0.41,-0.89l1.79,-1.79l0.02,-0.54l-1.32,-1.56l-0.48,-0.1l-2.24,1.09l-2.83,2.06l-1.51,1.83l-2.28,0.13l-1.55,1.49l-0.04,0.5l1.32,1.97l2.0,0.58l0.31,1.35l1.98,0.84l3.0,-1.96l2.0,1.02l1.49,0.11l0.22,0.83l-3.37,0.86l-1.12,1.48l-2.5,1.52l-1.29,1.99l0.14,0.56l2.57,1.48l0.97,2.7l3.17,4.63l-0.03,1.66l-1.35,0.65l-0.2,0.51l0.6,1.47l1.4,0.91l-0.89,3.82l-1.43,0.38l-3.85,6.44l-2.27,3.11l-6.78,4.57l-2.73,0.29l-1.45,1.04l-0.62,-0.61l-0.55,-0.01l-1.36,1.25l-3.39,1.27l-2.61,0.4l-1.1,2.79l-0.81,0.09l-0.49,-1.42l0.5,-0.85l-0.25,-0.59l-3.36,-0.84l-1.3,0.4l-2.31,-0.62l-0.94,-0.84l0.33,-1.28l-0.3,-0.49l-2.19,-0.46l-1.13,-0.93l-0.47,-0.02l-2.06,1.36l-4.29,0.28l-2.76,1.05l-0.28,0.43l0.32,2.53l-0.59,-0.03l-0.19,-1.34l-0.55,-0.34l-1.68,0.7l-2.46,-1.23l0.62,-1.87l-0.26,-0.51l-1.37,-0.44l-0.54,-2.22l-0.45,-0.3l-2.13,0.35l0.24,-2.48l2.39,-2.4l0.03,-4.31l-1.19,-0.92l-0.78,-1.49l-0.41,-0.21l-1.41,0.19l-1.98,-0.3l0.46,-1.07l-1.17,-1.7l-0.55,-0.11l-1.63,1.05l-2.25,-0.57l-2.89,1.73l-2.25,1.98l-1.75,0.29l-1.17,-0.71l-3.31,-0.65l-1.48,0.79l-1.04,1.27l-0.12,-1.17l-0.54,-0.34l-1.44,0.54l-5.55,-0.86l-1.98,-1.16l-1.89,-0.54l-0.99,-1.35l-1.34,-0.37l-2.55,-1.79l-2.01,-0.84l-1.21,0.56l-5.57,-3.45l-0.53,-2.31l1.19,0.25l0.48,-0.37l0.08,-1.42l-0.98,-1.56l0.15,-2.44l-2.69,-3.32l-4.12,-1.23l-0.67,-2.0l-1.92,-1.48l-0.38,-0.7l-0.51,-3.01l-1.52,-0.66l-0.7,0.13l-0.48,-2.05l0.55,-0.51l-0.09,-0.82l2.03,-1.19l1.6,-0.54l2.56,0.38l0.42,-0.22l0.85,-1.7l3.0,-0.33l1.1,-1.26l4.05,-1.77l0.39,-0.91l-0.17,-1.44l1.45,-0.67l0.2,-0.52l-2.07,-4.9l4.51,-1.12l1.37,-0.73l1.89,-5.51l4.98,0.86l1.51,-1.7l0.11,-2.87l1.99,-0.38l1.83,-2.06l0.49,-0.13l0.68,2.08l2.23,1.77l3.44,1.16l1.55,2.29l-0.92,3.49l0.96,1.67l6.54,1.13l2.95,1.87l1.47,0.35l1.06,2.62l1.53,1.91l3.05,0.08l5.14,0.67l3.37,-0.41l2.36,0.43l3.65,1.8l3.06,0.04l1.45,0.88l2.87,-1.59l3.95,-1.02l3.83,-0.14l3.06,-1.14l1.77,-1.6l1.72,-1.01l0.17,-0.49l-1.1,-2.05l1.02,-1.54l4.02,0.8l2.45,-1.61l3.76,-1.19l1.96,-2.13l1.63,-0.83l3.51,-0.4l1.92,0.34l0.46,-0.3l0.17,-1.5l-2.27,-2.22l-2.11,-1.09l-2.18,1.11l-2.32,-0.47l-1.29,0.32l-0.4,-0.82l2.73,-5.16l3.02,1.06l3.53,-2.06l0.18,-1.68l2.16,-3.35l1.49,-1.35l-0.03,-1.85l-1.07,-0.85l1.54,-1.26l2.98,-0.59l3.23,-0.09l3.64,0.99l2.04,1.16l3.29,6.71l0.92,3.19ZM696.92,237.31l-1.87,1.08l-1.63,-0.64l-0.06,-1.79l1.03,-0.98l2.58,-0.69l1.16,0.05l0.3,0.54l-0.98,1.06l-0.53,1.37Z\",name:\"China\"},CM:{path:\"M457.92,257.49l1.05,1.91l-1.4,0.16l-1.05,-0.23l-0.45,0.22l-0.54,1.19l0.08,0.45l1.48,1.47l1.05,0.45l1.01,2.46l-1.52,2.99l-0.68,0.68l-0.13,3.69l2.38,3.84l1.09,0.8l0.24,2.48l-3.67,-1.14l-11.27,-0.13l0.23,-1.79l-0.98,-1.66l-1.19,-0.54l-0.44,-0.97l-0.6,-0.42l1.71,-4.27l0.75,-0.13l1.38,-1.36l0.65,-0.03l1.71,0.99l1.93,-1.12l1.14,-3.18l1.38,-1.17l2.0,-5.14l2.17,-2.13l0.3,-1.64l-0.86,-0.88l0.03,-0.33l0.94,1.28l0.07,3.22Z\",name:\"Cameroon\"},CL:{path:\"M246.5,429.18l-3.14,1.83l-0.57,3.16l-0.64,0.05l-2.68,-1.06l-2.82,-2.33l-3.04,-1.89l-0.69,-1.85l0.63,-2.14l-1.21,-2.11l-0.31,-5.37l1.01,-2.91l2.57,-2.38l-0.18,-0.68l-3.16,-0.77l2.05,-2.47l0.77,-4.65l2.32,0.9l0.54,-0.29l1.31,-6.31l-0.22,-0.44l-1.68,-0.8l-0.56,0.28l-0.7,3.36l-0.81,-0.22l1.56,-9.41l1.15,-2.24l-0.71,-2.82l-0.18,-2.84l1.01,-0.33l3.26,-9.14l1.07,-4.22l-0.56,-4.21l0.74,-2.34l-0.29,-3.27l1.46,-3.34l2.04,-16.59l-0.66,-7.76l1.03,-0.53l0.54,-0.9l0.79,1.14l0.32,1.78l1.25,1.16l-0.69,2.55l1.33,2.9l0.97,3.59l0.46,0.29l1.5,-0.3l0.11,0.23l-0.76,2.44l-2.57,1.23l-0.23,0.37l0.08,4.33l-0.46,0.77l0.56,1.21l-1.58,1.51l-1.68,2.62l-0.89,2.47l0.2,2.7l-1.48,2.73l1.12,5.09l0.64,0.61l-0.01,2.29l-1.38,2.68l0.01,2.4l-1.89,2.04l0.02,2.75l0.69,2.57l-1.43,1.13l-1.26,5.68l0.39,3.51l-0.97,0.89l0.58,3.5l1.02,1.14l-0.65,1.02l0.15,0.57l1.0,0.53l0.16,0.69l-1.03,0.85l0.26,1.75l-0.89,4.03l-1.31,2.66l0.24,1.75l-0.71,1.83l-1.99,1.7l0.3,3.67l0.88,1.19l1.58,0.01l0.01,2.21l1.04,1.95l5.98,0.63ZM248.69,430.79l0.0,7.33l0.4,0.4l3.52,0.05l-0.44,0.75l-1.94,0.98l-2.49,-0.37l-1.88,-1.06l-2.55,-0.49l-5.59,-3.71l-2.38,-2.63l4.1,2.48l3.32,1.23l0.45,-0.12l1.29,-1.57l0.83,-2.32l2.05,-1.24l1.31,0.29Z\",name:\"Chile\"},CA:{path:\"M280.06,145.6l-1.67,2.88l0.07,0.49l0.5,0.04l1.46,-0.98l1.0,0.42l-0.56,0.72l0.17,0.62l2.22,0.89l1.35,-0.71l1.95,0.78l-0.66,2.01l0.5,0.51l1.32,-0.42l0.98,3.17l-0.91,2.41l-0.8,0.08l-1.23,-0.45l0.47,-2.25l-0.89,-0.83l-0.48,0.06l-2.78,2.63l-0.34,-0.02l1.02,-0.85l-0.14,-0.69l-2.4,-0.77l-7.4,0.08l-0.17,-0.41l1.3,-0.94l0.02,-0.64l-0.73,-0.58l1.85,-1.74l2.57,-5.16l1.47,-1.79l1.99,-1.05l0.46,0.06l-1.53,2.45ZM68.32,74.16l4.13,0.95l4.02,2.14l2.61,0.4l2.47,-1.89l2.88,-1.31l3.85,0.48l3.71,-1.94l3.82,-1.04l1.56,1.68l0.49,0.08l1.87,-1.04l0.65,-1.98l1.24,0.35l4.16,3.94l0.54,0.01l2.75,-2.49l0.26,2.59l0.49,0.35l3.08,-0.73l1.04,-1.27l2.73,0.23l3.83,1.86l5.86,1.61l3.47,0.75l2.44,-0.26l2.73,1.78l-2.98,1.81l-0.19,0.41l0.31,0.32l4.53,0.92l6.87,-0.5l2.0,-0.69l2.49,2.39l0.53,0.02l2.72,-2.16l-0.02,-0.64l-2.16,-1.54l1.15,-1.06l4.83,-0.61l1.84,0.95l2.48,2.31l3.01,-0.23l4.55,1.92l3.85,-0.67l3.61,0.1l0.41,-0.44l-0.25,-2.36l1.79,-0.61l3.49,1.32l-0.01,3.77l0.31,0.39l0.45,-0.22l1.48,-3.16l1.74,0.1l0.41,-0.3l1.13,-4.37l-2.78,-3.11l-2.8,-1.74l0.19,-4.64l2.71,-3.07l2.98,0.67l2.41,1.95l3.19,4.8l-1.99,1.97l0.21,0.68l4.33,0.84l-0.01,4.15l0.25,0.37l0.44,-0.09l3.07,-3.15l2.54,2.39l-0.61,3.33l2.42,2.88l0.61,0.0l2.61,-3.08l1.88,-3.82l0.17,-4.58l6.72,0.94l3.13,2.04l0.13,1.82l-1.76,2.19l-0.01,0.49l1.66,2.16l-0.26,1.71l-4.68,2.8l-3.28,0.61l-2.47,-1.2l-0.55,0.23l-0.73,2.04l-2.38,3.43l-0.74,1.77l-2.74,2.57l-3.44,0.25l-2.21,1.78l-0.28,2.53l-2.82,0.55l-3.12,3.22l-2.72,4.31l-1.03,3.17l-0.14,4.31l0.33,0.41l3.44,0.57l2.24,5.95l0.45,0.23l3.4,-0.69l4.52,1.51l2.43,1.31l1.91,1.73l3.1,0.96l2.62,1.46l6.6,0.54l-0.35,2.74l0.81,3.53l1.81,3.78l3.83,3.3l0.45,0.04l2.1,-1.28l1.37,-3.69l-1.31,-5.38l-1.45,-1.58l3.57,-1.47l2.84,-2.46l1.52,-2.8l-0.25,-2.55l-1.7,-3.07l-2.85,-2.61l2.8,-3.95l-1.08,-3.37l-0.79,-5.67l1.36,-0.7l6.76,1.41l2.12,-0.96l5.12,3.36l1.05,1.61l4.08,0.26l-0.06,2.87l0.83,4.7l0.3,0.32l2.16,0.54l1.73,2.06l0.5,0.09l3.63,-2.03l2.52,-4.19l1.26,-1.32l7.6,11.72l-0.92,2.04l0.16,0.51l3.3,1.97l2.22,1.98l4.1,0.98l1.43,0.99l0.95,2.79l2.1,0.68l0.84,1.08l0.17,3.45l-3.37,2.26l-4.22,1.24l-3.06,2.63l-4.06,0.51l-5.35,-0.69l-6.39,0.2l-2.3,2.41l-3.26,1.51l-6.47,7.15l-0.06,0.48l0.44,0.19l2.13,-0.52l4.17,-4.24l5.12,-2.62l3.52,-0.3l1.69,1.21l-2.12,2.21l0.81,3.47l1.02,2.61l3.47,1.6l4.14,-0.45l2.15,-2.8l0.26,1.48l1.14,0.8l-2.56,1.69l-5.5,1.82l-2.54,1.27l-2.74,2.15l-1.4,-0.16l-0.07,-2.01l4.14,-2.44l0.18,-0.45l-0.39,-0.29l-6.63,0.45l-1.39,-1.49l-0.14,-4.43l-1.11,-0.91l-1.82,0.39l-0.66,-0.66l-0.6,0.03l-1.91,2.39l-0.82,2.52l-0.8,1.27l-1.67,0.56l-0.46,0.76l-8.31,0.07l-1.21,0.62l-2.35,1.97l-0.71,-0.14l-1.37,0.96l-1.12,-0.48l-4.74,1.26l-0.9,1.17l0.21,0.62l1.73,0.3l-1.81,0.31l-1.85,0.81l-2.11,-0.13l-2.95,1.78l-0.69,-0.09l1.39,-2.1l1.73,-1.21l0.1,-2.29l1.16,-1.99l0.49,0.53l2.03,0.42l1.2,-1.16l0.02,-0.47l-2.66,-3.51l-2.28,-0.61l-5.64,-0.71l-0.4,-0.57l-0.79,0.13l0.2,-0.41l-0.22,-0.55l-0.68,-0.26l0.19,-1.26l-0.78,-0.73l0.31,-0.64l-0.29,-0.57l-2.6,-0.44l-0.75,-1.63l-0.94,-0.66l-4.31,-0.65l-1.13,1.19l-1.48,0.59l-0.85,1.06l-2.83,-0.76l-2.09,0.39l-2.39,-0.97l-4.24,-0.7l-0.57,-0.4l-0.41,-1.63l-0.4,-0.3l-0.85,0.02l-0.39,0.4l-0.01,0.85l-69.13,-0.01l-6.51,-4.52l-4.5,-1.38l-1.26,-2.66l0.33,-1.93l-0.23,-0.43l-3.01,-1.35l-0.55,-2.77l-2.89,-2.38l-0.04,-1.45l1.39,-1.83l-0.28,-2.55l-4.16,-2.2l-4.07,-6.6l-4.02,-3.22l-1.3,-1.88l-0.5,-0.13l-2.51,1.21l-2.23,1.87l-3.85,-3.88l-2.44,-1.04l-2.22,-0.13l0.03,-37.49ZM260.37,148.65l3.04,0.76l2.26,1.2l-3.78,-0.95l-1.53,-1.01ZM249.4,3.81l6.68,0.49l5.32,0.79l4.26,1.57l-0.07,1.1l-5.85,2.53l-6.02,1.21l-2.39,1.39l-0.18,0.45l0.39,0.29l4.01,-0.02l-4.65,2.82l-4.2,1.74l-4.19,4.59l-5.03,0.92l-1.67,1.15l-7.47,0.59l-0.37,0.37l0.32,0.42l2.41,0.49l-0.81,0.47l-0.12,0.59l1.83,2.41l-2.02,1.59l-3.81,1.51l-1.32,2.16l-3.38,1.53l-0.22,0.48l0.35,1.19l0.4,0.29l3.88,-0.18l0.03,0.61l-6.33,2.95l-6.41,-1.4l-7.43,0.79l-3.72,-0.62l-4.4,-0.25l-0.23,-1.83l4.29,-1.11l0.28,-0.51l-1.1,-3.45l1.0,-0.25l6.58,2.28l0.47,-0.16l-0.05,-0.49l-3.41,-3.45l-3.58,-0.98l1.48,-1.55l4.34,-1.29l0.97,-2.19l-0.16,-0.48l-3.42,-2.13l-0.81,-2.26l6.2,0.22l2.24,0.58l3.91,-2.1l0.2,-0.43l-0.35,-0.32l-5.64,-0.67l-8.73,0.36l-4.26,-1.9l-2.12,-2.4l-2.78,-1.66l-0.41,-1.52l3.31,-1.03l2.93,-0.2l4.91,-0.99l3.7,-2.27l2.87,0.3l2.62,1.67l0.56,-0.14l1.82,-3.2l3.13,-0.94l4.44,-0.69l7.53,-0.26l1.48,0.67l7.19,-1.06l10.8,0.79ZM203.85,57.54l0.01,0.42l1.97,2.97l0.68,-0.02l2.24,-3.72l5.95,-1.86l4.01,4.64l-0.35,2.91l0.5,0.43l4.95,-1.36l2.32,-1.8l5.31,2.28l3.27,2.11l0.3,1.84l0.48,0.33l4.42,-0.99l2.64,2.87l5.97,1.77l2.06,1.72l2.11,3.71l-4.19,1.86l-0.01,0.73l5.9,2.83l3.94,0.94l3.78,3.95l3.46,0.25l-0.63,2.37l-4.11,4.47l-2.76,-1.56l-3.9,-3.94l-3.59,0.41l-0.33,0.34l-0.19,2.72l2.63,2.38l3.42,1.89l0.94,0.97l1.55,3.75l-0.7,2.29l-2.74,-0.92l-6.25,-3.15l-0.51,0.13l0.05,0.52l6.07,5.69l0.18,0.59l-6.09,-1.39l-5.31,-2.24l-2.63,-1.66l0.6,-0.77l-0.12,-0.6l-7.39,-4.01l-0.59,0.37l0.03,0.79l-6.73,0.6l-1.69,-1.1l1.36,-2.46l4.51,-0.07l5.15,-0.52l0.31,-0.6l-0.74,-1.3l0.78,-1.84l3.21,-4.05l-0.67,-2.35l-1.11,-1.6l-3.84,-2.1l-4.35,-1.28l0.91,-0.63l0.06,-0.61l-2.65,-2.75l-2.34,-0.36l-1.89,-1.46l-0.53,0.03l-1.24,1.23l-4.36,0.55l-9.04,-0.99l-9.26,-1.98l-1.6,-1.22l2.22,-1.77l0.13,-0.44l-0.38,-0.27l-3.22,-0.02l-0.72,-4.25l1.83,-4.04l2.42,-1.85l5.5,-1.1l-1.39,2.35ZM261.19,159.33l2.07,0.61l1.44,-0.04l-1.15,0.63l-2.94,-1.23l-0.4,-0.68l0.36,-0.37l0.61,1.07ZM230.83,84.39l-2.37,0.18l-0.49,-1.63l0.93,-2.09l1.94,-0.51l1.62,0.99l0.02,1.52l-1.66,1.54ZM229.43,58.25l0.11,0.65l-4.87,-0.21l-2.72,0.62l-3.1,-2.57l0.08,-1.26l0.86,-0.23l5.57,0.51l4.08,2.5ZM222.0,105.02l-0.72,1.49l-0.63,-0.19l-0.48,-0.84l0.81,-0.99l0.65,0.05l0.37,0.46ZM183.74,38.32l2.9,1.7l4.79,-0.01l1.84,1.46l-0.49,1.68l0.23,0.48l2.82,1.14l1.76,1.26l7.01,0.65l4.1,-1.1l5.03,-0.43l3.93,0.35l2.48,1.77l0.46,1.7l-1.3,1.1l-3.56,1.01l-3.23,-0.59l-7.17,0.76l-5.09,0.09l-3.99,-0.6l-6.42,-1.54l-0.79,-2.51l-0.3,-2.49l-2.64,-2.5l-5.32,-0.72l-2.52,-1.4l0.68,-1.57l4.78,0.31ZM207.38,91.35l0.4,1.56l0.56,0.26l1.06,-0.52l1.32,0.96l5.42,2.57l0.2,1.68l0.46,0.35l1.68,-0.28l1.15,0.85l-1.55,0.87l-3.61,-0.88l-1.32,-1.69l-0.57,-0.06l-2.45,2.1l-3.12,1.79l-0.7,-1.87l-0.42,-0.26l-2.16,0.24l1.39,-1.39l0.32,-3.14l0.76,-3.35l1.18,0.22ZM215.49,102.6l-2.67,1.95l-1.4,-0.07l-0.3,-0.58l1.53,-1.48l2.84,0.18ZM202.7,24.12l2.53,1.59l-2.87,1.4l-4.53,4.05l-4.25,0.38l-5.03,-0.68l-2.45,-2.04l0.03,-1.62l1.82,-1.37l0.14,-0.45l-0.38,-0.27l-4.45,0.04l-2.59,-1.76l-1.41,-2.29l1.57,-2.32l1.62,-1.66l2.44,-0.39l0.25,-0.65l-0.6,-0.74l4.86,-0.25l3.24,3.11l8.16,2.3l1.9,3.61ZM187.47,59.2l-2.76,3.49l-2.38,-0.15l-1.44,-3.84l0.04,-2.2l1.19,-1.88l2.3,-1.23l5.07,0.17l4.11,1.02l-3.24,3.72l-2.88,0.89ZM186.07,48.79l-1.08,1.53l-3.34,-0.34l-2.56,-1.1l1.03,-1.75l3.25,-1.23l1.95,1.58l0.75,1.3ZM185.71,35.32l-5.3,-0.2l-0.32,-0.71l4.31,0.07l1.3,0.84ZM180.68,32.48l-3.34,1.0l-1.79,-1.1l-0.98,-1.87l-0.15,-1.73l4.1,0.53l2.67,1.7l-0.51,1.47ZM180.9,76.31l-1.1,1.08l-3.13,-1.23l-2.12,0.43l-2.71,-1.57l1.72,-1.09l1.55,-1.72l3.81,1.9l1.98,2.2ZM169.74,54.87l2.96,0.97l4.17,-0.57l0.41,0.88l-2.14,2.11l0.09,0.64l3.55,1.92l-0.4,3.72l-3.79,1.65l-2.17,-0.35l-1.72,-1.74l-6.02,-3.5l0.03,-0.85l4.68,0.54l0.4,-0.21l-0.05,-0.45l-2.48,-2.81l2.46,-1.95ZM174.45,40.74l1.37,1.73l0.07,2.44l-1.05,3.45l-3.79,0.47l-2.32,-0.69l0.05,-2.64l-0.44,-0.41l-3.68,0.35l-0.12,-3.1l2.45,0.1l3.67,-1.73l3.41,0.29l0.37,-0.26ZM170.05,31.55l0.67,1.56l-3.33,-0.49l-4.22,-1.77l-4.35,-0.16l1.4,-0.94l-0.06,-0.7l-2.81,-1.23l-0.12,-1.39l4.39,0.68l6.62,1.98l1.81,2.47ZM134.5,58.13l-1.02,1.82l0.45,0.58l5.4,-1.39l3.33,2.29l0.49,-0.03l2.6,-2.23l1.94,1.32l2.0,4.5l0.7,0.06l1.3,-2.29l-1.63,-4.46l1.69,-0.54l2.31,0.71l2.65,1.81l2.49,7.92l8.48,4.27l-0.19,1.35l-3.79,0.33l-0.26,0.67l1.4,1.49l-0.58,1.1l-4.23,-0.64l-4.43,-1.19l-3.0,0.28l-4.66,1.47l-10.52,1.04l-1.43,-2.02l-3.42,-1.2l-2.21,0.43l-2.51,-2.86l4.84,-1.05l3.6,0.19l3.27,-0.78l0.31,-0.39l-0.31,-0.39l-4.84,-1.06l-8.79,0.27l-0.85,-1.07l5.26,-1.66l0.27,-0.45l-0.4,-0.34l-3.8,0.06l-3.81,-1.06l1.81,-3.01l1.66,-1.79l6.48,-2.81l1.97,0.71ZM158.7,56.61l-1.7,2.44l-3.2,-2.75l0.37,-0.3l3.11,-0.18l1.42,0.79ZM149.61,42.73l1.01,1.89l0.5,0.18l2.14,-0.82l2.23,0.19l0.36,2.04l-1.33,2.09l-8.28,0.76l-6.35,2.15l-3.41,0.1l-0.19,-0.96l4.9,-2.08l0.23,-0.46l-0.41,-0.31l-11.25,0.59l-2.89,-0.74l3.04,-4.44l2.14,-1.32l6.81,1.69l4.58,3.06l4.37,0.39l0.36,-0.63l-3.36,-4.6l1.85,-1.53l2.18,0.51l0.77,2.26ZM144.76,34.41l-4.36,1.44l-3.0,-1.4l1.46,-1.24l3.47,-0.52l2.96,0.71l-0.52,1.01ZM145.13,29.83l-1.9,0.66l-3.67,-0.0l2.27,-1.61l3.3,0.95ZM118.92,65.79l-6.03,2.02l-1.33,-1.9l-5.38,-2.28l2.59,-5.05l2.16,-3.14l-0.02,-0.48l-1.97,-2.41l7.64,-0.7l3.6,1.02l6.3,0.27l4.42,2.95l-2.53,0.98l-6.24,3.43l-3.1,3.28l-0.11,2.01ZM129.54,35.53l-0.28,3.37l-1.72,1.62l-2.33,0.28l-4.61,2.19l-3.86,0.76l-2.64,-0.87l3.72,-3.4l5.01,-3.34l3.72,0.07l3.0,-0.67ZM111.09,152.69l-0.67,0.24l-3.85,-1.37l-0.83,-1.17l-2.12,-1.07l-0.66,-1.02l-2.4,-0.55l-0.74,-1.71l6.02,1.45l2.0,2.55l2.52,1.39l0.73,1.27ZM87.8,134.64l0.89,0.29l1.86,-0.21l-0.65,3.34l1.69,2.33l-1.31,-1.33l-0.99,-1.62l-1.17,-0.98l-0.33,-1.82Z\",name:\"Canada\"},CG:{path:\"M466.72,276.48l-0.1,1.03l-1.25,2.97l-0.19,3.62l-0.46,1.78l-0.23,0.63l-1.61,1.19l-1.21,1.39l-1.09,2.43l0.04,2.09l-3.25,3.24l-0.5,-0.24l-0.5,-0.83l-1.36,-0.02l-0.98,0.89l-1.68,-0.99l-1.54,1.24l-1.52,-1.96l1.57,-1.14l0.11,-0.52l-0.77,-1.35l2.1,-0.66l0.39,-0.73l1.05,0.82l2.21,0.11l1.12,-1.37l0.37,-1.81l-0.27,-2.09l-1.13,-1.5l1.0,-2.69l-0.13,-0.45l-0.92,-0.58l-1.6,0.17l-0.51,-0.94l0.1,-0.61l2.75,0.09l3.97,1.24l0.51,-0.33l0.17,-1.28l1.24,-2.21l1.28,-1.14l2.76,0.49Z\",name:\"Congo\"},CF:{path:\"M461.16,278.2l-0.26,-1.19l-1.09,-0.77l-0.84,-1.17l-0.29,-1.0l-1.04,-1.15l0.08,-3.43l0.58,-0.49l1.16,-2.35l1.85,-0.17l0.61,-0.62l0.97,0.58l3.15,-0.96l2.48,-1.92l0.02,-0.96l2.81,0.02l2.36,-1.17l1.93,-2.85l1.16,-0.93l1.11,-0.3l0.27,0.86l1.34,1.47l-0.39,2.01l0.3,1.01l4.01,2.75l0.17,0.93l2.63,2.31l0.6,1.44l2.08,1.4l-3.84,-0.21l-1.94,0.88l-1.23,-0.49l-2.67,1.2l-1.29,-0.18l-0.51,0.36l-0.6,1.22l-3.35,-0.65l-1.57,-0.91l-2.42,-0.83l-1.45,0.91l-0.97,1.27l-0.26,1.56l-3.22,-0.43l-1.49,1.33l-0.94,1.62Z\",name:\"Central African Rep.\"},CD:{path:\"M487.01,272.38l2.34,-0.14l1.35,1.84l1.34,0.45l0.86,-0.39l1.21,0.12l1.07,-0.41l0.54,0.89l2.04,1.54l-0.14,2.72l0.7,0.54l-1.38,1.13l-1.53,2.54l-0.17,2.05l-0.59,1.08l-0.02,1.72l-0.72,0.84l-0.66,3.01l0.63,1.32l-0.44,4.26l0.64,1.47l-0.37,1.22l0.86,1.8l1.53,1.41l0.3,1.26l0.44,0.5l-4.08,0.75l-0.92,1.81l0.51,1.34l-0.74,5.43l0.17,0.38l2.45,1.46l0.54,-0.1l0.12,1.62l-1.28,-0.01l-1.85,-2.35l-1.94,-0.45l-0.48,-1.13l-0.55,-0.2l-1.41,0.74l-1.71,-0.3l-1.01,-1.18l-2.49,-0.19l-0.44,-0.77l-1.98,-0.21l-2.88,0.36l0.11,-2.41l-0.85,-1.13l-0.16,-1.36l0.32,-1.73l-0.46,-0.89l-0.04,-1.49l-0.4,-0.39l-2.53,0.02l0.1,-0.41l-0.39,-0.49l-1.28,0.01l-0.43,0.45l-1.62,0.32l-0.83,1.79l-1.09,-0.28l-2.4,0.52l-1.37,-1.91l-1.3,-3.3l-0.38,-0.27l-7.39,-0.03l-2.46,0.42l0.5,-0.45l0.37,-1.47l0.66,-0.38l0.92,0.08l0.73,-0.82l0.87,0.02l0.31,0.68l1.4,0.36l3.59,-3.63l0.01,-2.23l1.02,-2.29l2.69,-2.39l0.43,-0.99l0.49,-1.96l0.17,-3.51l1.25,-2.95l0.36,-3.14l0.86,-1.13l1.1,-0.66l3.57,1.73l3.65,0.73l0.46,-0.21l0.8,-1.46l1.24,0.19l2.61,-1.17l0.81,0.44l1.04,-0.03l0.59,-0.66l0.7,-0.16l1.81,0.25Z\",name:\"Dem. Rep. Congo\"},CZ:{path:\"M458.46,144.88l1.22,1.01l1.47,0.23l0.13,0.93l1.36,0.68l0.54,-0.2l0.24,-0.55l1.15,0.25l0.53,1.09l1.68,0.18l0.6,0.84l-1.04,0.73l-0.96,1.28l-1.6,0.17l-0.55,0.56l-1.04,-0.46l-1.05,0.15l-2.12,-0.96l-1.05,0.34l-1.2,1.12l-1.56,-0.87l-2.57,-2.1l-0.53,-1.88l4.7,-2.52l0.71,0.26l0.9,-0.28Z\",name:\"Czech Rep.\"},CY:{path:\"M504.36,193.47l0.43,0.28l-1.28,0.57l-0.92,-0.28l-0.24,-0.46l2.01,-0.13Z\",name:\"Cyprus\"},CR:{path:\"M211.34,258.05l0.48,0.99l1.6,1.6l-0.54,0.45l0.29,1.42l-0.25,1.19l-1.09,-0.59l-0.05,-1.25l-2.46,-1.42l-0.28,-0.77l-0.66,-0.45l-0.45,-0.0l-0.11,1.04l-1.32,-0.95l0.31,-1.3l-0.36,-0.6l0.31,-0.27l1.42,0.58l1.29,-0.14l0.56,0.56l0.74,0.17l0.55,-0.27Z\",name:\"Costa Rica\"},CU:{path:\"M221.21,227.25l1.27,1.02l2.19,-0.28l4.43,3.33l2.08,0.43l-0.1,0.38l0.36,0.5l1.75,0.1l1.48,0.84l-3.11,0.51l-4.15,-0.03l0.77,-0.67l-0.04,-0.64l-1.2,-0.74l-1.49,-0.16l-0.7,-0.61l-0.56,-1.4l-0.4,-0.25l-1.34,0.1l-2.2,-0.66l-0.88,-0.58l-3.18,-0.4l-0.27,-0.16l0.58,-0.74l-0.36,-0.29l-2.72,-0.05l-1.7,1.29l-0.91,0.03l-0.61,0.69l-1.01,0.22l1.11,-1.29l1.01,-0.52l3.69,-1.01l3.98,0.21l2.21,0.84Z\",name:\"Cuba\"},SZ:{path:\"M500.35,351.36l0.5,2.04l-0.38,0.89l-1.05,0.21l-1.23,-1.2l-0.02,-0.64l0.83,-1.57l1.34,0.27Z\",name:\"Swaziland\"},SY:{path:\"M511.0,199.79l0.05,-1.33l0.54,-1.36l1.28,-0.99l0.13,-0.45l-0.41,-1.11l-1.14,-0.36l-0.19,-1.74l0.52,-1.0l1.29,-1.21l0.2,-1.18l0.59,0.23l2.62,-0.76l1.36,0.52l2.06,-0.01l2.95,-1.08l3.25,-0.26l-0.67,0.94l-1.28,0.66l-0.21,0.4l0.23,2.01l-0.88,3.19l-10.15,5.73l-2.15,-0.85Z\",name:\"Syria\"},KG:{path:\"M621.35,172.32l-3.87,1.69l-0.96,1.18l-3.04,0.34l-1.13,1.86l-2.36,-0.35l-1.99,0.63l-2.39,1.4l0.06,0.95l-0.4,0.37l-4.52,0.43l-3.02,-0.93l-2.37,0.17l0.11,-0.79l2.32,0.42l1.13,-0.88l1.99,0.2l3.21,-2.14l-0.03,-0.69l-2.97,-1.57l-1.94,0.65l-1.22,-0.74l1.71,-1.58l-0.12,-0.67l-0.36,-0.15l0.32,-0.77l1.36,-0.35l4.02,1.02l0.49,-0.3l0.35,-1.59l1.09,-0.48l3.42,1.22l1.11,-0.31l7.64,0.39l1.16,1.0l1.23,0.39Z\",name:\"Kyrgyzstan\"},KE:{path:\"M506.26,284.69l1.87,-2.56l0.93,-2.15l-1.38,-4.08l-1.06,-1.6l2.82,-2.75l0.79,0.26l0.12,1.41l0.86,0.83l1.9,0.11l3.28,2.13l3.57,0.44l1.05,-1.12l1.96,-0.9l0.82,0.68l1.16,0.09l-1.78,2.45l0.03,9.12l1.3,1.94l-1.37,0.78l-0.67,1.03l-1.08,0.46l-0.34,1.67l-0.81,1.07l-0.45,1.55l-0.68,0.56l-3.2,-2.23l-0.35,-1.58l-8.86,-4.98l0.14,-1.6l-0.57,-1.04Z\",name:\"Kenya\"},SS:{path:\"M481.71,263.34l1.07,-0.72l1.2,-3.18l1.36,-0.26l1.61,1.99l0.87,0.34l1.1,-0.41l1.5,0.07l0.57,0.53l2.49,0.0l0.44,-0.63l1.07,-0.4l0.45,-0.84l0.59,-0.33l1.9,1.33l1.6,-0.2l2.83,-3.33l-0.32,-2.21l1.59,-0.52l-0.24,1.6l0.3,1.83l1.35,1.18l0.2,1.87l0.35,0.41l0.02,1.53l-0.23,0.47l-1.42,0.25l-0.85,1.44l0.3,0.6l1.4,0.16l1.11,1.08l0.59,1.13l1.03,0.53l1.28,2.36l-4.41,3.98l-1.74,0.01l-1.89,0.55l-1.47,-0.52l-1.15,0.57l-2.96,-2.62l-1.3,0.49l-1.06,-0.15l-0.79,0.39l-0.82,-0.22l-1.8,-2.7l-1.91,-1.1l-0.66,-1.5l-2.62,-2.32l-0.18,-0.94l-2.37,-1.6Z\",name:\"S. Sudan\"},SR:{path:\"M283.12,270.19l2.1,0.53l-1.08,1.95l0.2,1.72l0.93,1.49l-0.59,2.03l-0.43,0.71l-1.12,-0.42l-1.32,0.22l-0.93,-0.2l-0.46,0.26l-0.25,0.73l0.33,0.7l-0.89,-0.13l-1.39,-1.97l-0.31,-1.34l-0.97,-0.31l-0.89,-1.47l0.35,-1.61l1.45,-0.82l0.33,-1.87l2.61,0.44l0.57,-0.47l1.75,-0.16Z\",name:\"Suriname\"},KH:{path:\"M689.52,249.39l0.49,1.45l-0.28,2.74l-4.0,1.86l-0.16,0.6l0.68,0.95l-2.06,0.17l-2.05,0.97l-1.82,-0.32l-2.12,-3.7l-0.55,-2.85l1.4,-1.85l3.02,-0.45l2.23,0.35l2.01,0.98l0.51,-0.14l0.95,-1.48l1.74,0.74Z\",name:\"Cambodia\"},SV:{path:\"M195.8,250.13l1.4,-1.19l2.24,1.45l0.98,-0.27l0.44,0.2l-0.27,1.05l-1.14,-0.03l-3.64,-1.21Z\",name:\"El Salvador\"},SK:{path:\"M476.82,151.17l-1.14,1.9l-2.73,-0.92l-0.82,0.2l-0.74,0.8l-3.46,0.73l-0.47,0.69l-1.76,0.33l-1.88,-1.0l-0.18,-0.81l0.38,-0.75l1.87,-0.32l1.74,-1.89l0.83,0.16l0.79,-0.34l1.51,1.04l1.34,-0.63l1.25,0.3l1.65,-0.42l1.81,0.95Z\",name:\"Slovakia\"},KR:{path:\"M737.51,185.84l0.98,-0.1l0.87,-1.17l2.69,-0.32l0.33,-0.29l1.76,2.79l0.58,1.76l0.02,3.12l-0.8,1.32l-2.21,0.55l-1.93,1.13l-1.8,0.19l-0.2,-1.1l0.43,-2.28l-0.95,-2.56l1.43,-0.37l0.23,-0.62l-1.43,-2.06Z\",name:\"Korea\"},SI:{path:\"M456.18,162.07l-0.51,-1.32l0.18,-1.05l1.69,0.2l1.42,-0.71l2.09,-0.07l0.62,-0.51l0.21,0.47l-1.61,0.67l-0.44,1.34l-0.66,0.24l-0.26,0.82l-1.22,-0.49l-0.84,0.46l-0.69,-0.04Z\",name:\"Slovenia\"},KP:{path:\"M736.77,185.16l-0.92,-0.42l-0.88,0.62l-1.21,-0.88l0.96,-1.15l0.59,-2.59l-0.46,-0.74l-2.09,-0.77l1.64,-1.52l2.72,-1.58l1.58,-1.91l1.11,0.78l2.17,0.11l0.41,-0.5l-0.3,-1.22l3.52,-1.18l0.94,-1.4l0.98,1.08l-2.19,2.18l0.01,2.14l-1.06,0.54l-1.41,1.4l-1.7,0.52l-1.25,1.09l-0.14,1.98l0.94,0.45l1.15,1.04l-0.13,0.26l-2.6,0.29l-1.13,1.29l-1.22,0.08Z\",name:\"Dem. Rep. Korea\"},SO:{path:\"M525.13,288.48l-1.13,-1.57l-0.03,-8.86l2.66,-3.38l1.67,-0.13l2.13,-1.69l3.41,-0.23l7.08,-7.55l2.91,-3.69l0.08,-4.82l2.98,-0.67l1.24,-0.86l0.45,-0.0l-0.2,3.0l-1.21,3.62l-2.73,5.97l-2.13,3.65l-5.03,6.16l-8.56,6.4l-2.78,3.08l-0.8,1.56Z\",name:\"Somalia\"},SN:{path:\"M390.09,248.21l0.12,1.55l0.49,1.46l0.96,0.82l0.05,1.28l-1.26,-0.19l-0.75,0.33l-1.84,-0.61l-5.84,-0.13l-2.54,0.51l-0.22,-1.03l1.77,0.04l2.01,-0.91l1.03,0.48l1.09,0.04l1.29,-0.62l0.14,-0.58l-0.51,-0.74l-1.81,0.25l-1.13,-0.63l-0.79,0.04l-0.72,0.61l-2.31,0.06l-0.92,-1.77l-0.81,-0.64l0.64,-0.35l2.46,-3.74l1.04,0.19l1.38,-0.56l1.19,-0.02l2.72,1.37l3.03,3.48Z\",name:\"Senegal\"},SL:{path:\"M394.46,264.11l-1.73,1.98l-0.58,1.33l-2.07,-1.06l-1.22,-1.26l-0.65,-2.39l1.16,-0.96l0.67,-1.17l1.21,-0.52l1.66,0.0l1.03,1.64l0.52,2.41Z\",name:\"Sierra Leone\"},SB:{path:\"M826.69,311.6l-0.61,0.09l-0.2,-0.33l0.37,0.15l0.44,0.09ZM824.18,307.38l-0.26,-0.3l-0.31,-0.91l0.03,0.0l0.54,1.21ZM823.04,309.33l-1.66,-0.22l-0.2,-0.52l1.16,0.28l0.69,0.46ZM819.28,304.68l1.14,0.65l0.02,0.03l-0.81,-0.44l-0.35,-0.23Z\",name:\"Solomon Is.\"},SA:{path:\"M537.53,210.34l2.0,0.24l0.9,1.32l1.49,-0.06l0.87,2.08l1.29,0.76l0.51,0.99l1.56,1.03l-0.1,1.9l0.32,0.9l1.58,2.47l0.76,0.53l0.7,-0.04l1.68,4.23l7.53,1.33l0.51,-0.29l0.77,1.25l-1.55,4.87l-7.29,2.52l-7.3,1.03l-2.34,1.17l-1.88,2.74l-0.76,0.28l-0.82,-0.78l-0.91,0.12l-2.88,-0.51l-3.51,0.25l-0.86,-0.56l-0.57,0.15l-0.66,1.27l0.16,1.11l-0.43,0.32l-0.93,-1.4l-0.33,-1.16l-1.23,-0.88l-1.27,-2.06l-0.78,-2.22l-1.73,-1.79l-1.14,-0.48l-1.54,-2.31l-0.21,-3.41l-1.44,-2.93l-1.27,-1.16l-1.33,-0.57l-1.31,-3.37l-0.77,-0.67l-0.97,-1.97l-2.8,-4.03l-1.06,-0.17l0.37,-1.96l0.2,-0.72l2.74,0.3l1.08,-0.84l0.6,-0.94l1.74,-0.35l0.65,-1.03l0.71,-0.4l0.1,-0.62l-2.06,-2.28l4.39,-1.22l0.48,-0.37l2.77,0.69l3.66,1.9l7.03,5.5l4.87,0.3Z\",name:\"Saudi Arabia\"},SE:{path:\"M480.22,89.3l-4.03,1.17l-2.43,2.86l0.26,2.57l-8.77,6.64l-1.78,5.79l1.78,2.68l2.22,1.96l-2.07,3.77l-2.72,1.13l-0.95,6.04l-1.29,3.01l-2.74,-0.31l-0.4,0.22l-1.31,2.59l-2.34,0.13l-0.75,-3.09l-2.08,-4.03l-1.83,-4.96l1.0,-1.93l2.14,-2.7l0.83,-4.45l-1.6,-2.17l-0.15,-4.94l1.48,-3.39l2.58,-0.15l0.87,-1.59l-0.78,-1.57l3.76,-5.59l4.04,-7.48l2.17,0.01l0.39,-0.29l0.57,-2.07l4.37,0.64l0.46,-0.34l0.33,-2.56l1.1,-0.13l6.94,4.87l0.06,6.32l0.66,1.36Z\",name:\"Sweden\"},SD:{path:\"M505.98,259.4l-0.34,-0.77l-1.17,-0.9l-0.26,-1.61l0.29,-1.81l-0.34,-0.46l-1.16,-0.17l-0.54,0.59l-1.23,0.11l-0.28,0.65l0.53,0.65l0.17,1.22l-2.44,3.0l-0.96,0.19l-2.39,-1.4l-0.95,0.52l-0.38,0.78l-1.11,0.41l-0.29,0.5l-1.94,0.0l-0.54,-0.52l-1.81,-0.09l-0.95,0.4l-2.45,-2.35l-2.07,0.54l-0.73,1.26l-0.6,2.1l-1.25,0.58l-0.75,-0.62l0.27,-2.65l-1.48,-1.78l-0.22,-1.48l-0.92,-0.96l-0.02,-1.29l-0.57,-1.16l-0.68,-0.16l0.69,-1.29l-0.18,-1.14l0.65,-0.62l0.03,-0.55l-0.36,-0.41l1.55,-2.97l1.91,0.16l0.43,-0.4l-0.1,-10.94l2.49,-0.01l0.4,-0.4l-0.0,-4.82l29.02,0.0l0.64,2.04l-0.49,0.66l0.36,2.69l0.93,3.16l2.12,1.55l-0.89,1.04l-1.72,0.39l-0.98,0.9l-1.43,5.65l0.24,1.15l-0.38,2.06l-0.96,2.38l-1.53,1.31l-1.32,2.91l-1.22,0.86l-0.37,1.34Z\",name:\"Sudan\"},DO:{path:\"M241.8,239.2l0.05,-0.65l-0.46,-0.73l0.42,-0.44l0.19,-1.0l-0.09,-1.53l1.66,0.01l1.99,0.63l0.33,0.67l1.28,0.19l0.33,0.76l1.0,0.08l0.8,0.62l-0.45,0.51l-1.13,-0.47l-1.88,-0.01l-1.27,0.59l-0.75,-0.55l-1.01,0.54l-0.79,1.4l-0.23,-0.61Z\",name:\"Dominican Rep.\"},DJ:{path:\"M528.43,256.18l-0.45,0.66l-0.58,-0.25l-1.51,0.13l-0.18,-1.01l1.45,-1.95l0.83,0.17l0.77,-0.44l0.2,1.0l-1.2,0.51l-0.06,0.7l0.73,0.47Z\",name:\"Djibouti\"},DK:{path:\"M452.28,129.07l-1.19,2.24l-2.13,-1.6l-0.23,-0.95l2.98,-0.95l0.57,1.26ZM447.74,126.31l-0.26,0.57l-0.88,-0.07l-1.8,2.53l0.48,1.69l-1.09,0.36l-1.61,-0.39l-0.89,-1.69l-0.07,-3.43l0.96,-1.73l2.02,-0.2l1.09,-1.07l1.33,-0.67l-0.05,1.06l-0.73,1.41l0.3,1.0l1.2,0.64Z\",name:\"Denmark\"},DE:{path:\"M453.14,155.55l-0.55,-0.36l-1.2,-0.1l-1.87,0.57l-2.13,-0.13l-0.56,0.63l-0.86,-0.6l-0.96,0.09l-2.57,-0.93l-0.85,0.67l-1.47,-0.02l0.24,-1.75l1.23,-2.14l-0.28,-0.59l-3.52,-0.58l-0.92,-0.66l0.12,-1.2l-0.48,-0.88l0.27,-2.17l-0.37,-3.03l1.41,-0.22l0.63,-1.26l0.66,-3.19l-0.41,-1.18l0.26,-0.39l1.66,-0.15l0.33,0.54l0.62,0.07l1.7,-1.69l-0.54,-3.02l1.37,0.33l1.31,-0.37l0.31,1.18l2.25,0.71l-0.02,0.92l0.5,0.4l2.55,-0.65l1.34,-0.87l2.57,1.24l1.06,0.98l0.48,1.44l-0.57,0.74l-0.0,0.48l0.87,1.15l0.57,1.64l-0.14,1.29l0.82,1.7l-1.5,-0.07l-0.56,0.57l-4.47,2.15l-0.22,0.54l0.68,2.26l2.58,2.16l-0.66,1.11l-0.79,0.36l-0.23,0.43l0.32,1.87Z\",name:\"Germany\"},YE:{path:\"M528.27,246.72l0.26,-0.42l-0.22,-1.01l0.19,-1.5l0.92,-0.69l-0.07,-1.35l0.39,-0.75l1.01,0.47l3.34,-0.27l3.76,0.41l0.95,0.81l1.36,-0.58l1.74,-2.62l2.18,-1.09l6.86,-0.94l2.48,5.41l-1.64,0.76l-0.56,1.9l-6.23,2.16l-2.29,1.8l-1.93,0.05l-1.41,1.02l-4.24,0.74l-1.72,1.49l-3.28,0.19l-0.52,-1.18l0.02,-1.51l-1.34,-3.29Z\",name:\"Yemen\"},AT:{path:\"M462.89,152.8l0.04,2.25l-1.07,0.0l-0.33,0.63l0.36,0.51l-1.04,2.13l-2.02,0.07l-1.33,0.7l-5.29,-0.99l-0.47,-0.93l-0.44,-0.21l-2.47,0.55l-0.42,0.51l-3.18,-0.81l0.43,-0.91l1.12,0.78l0.6,-0.17l0.25,-0.58l1.93,0.12l1.86,-0.56l1.0,0.08l0.68,0.57l0.62,-0.15l0.26,-0.77l-0.3,-1.78l0.8,-0.44l0.68,-1.15l1.52,0.85l0.47,-0.06l1.34,-1.25l0.64,-0.17l1.81,0.92l1.28,-0.11l0.7,0.37Z\",name:\"Austria\"},DZ:{path:\"M441.46,188.44l-0.32,1.07l0.39,2.64l-0.54,2.16l-1.58,1.82l0.37,2.39l1.91,1.55l0.18,0.8l1.42,1.03l1.84,7.23l0.12,1.16l-0.57,5.0l0.2,1.51l-0.87,0.99l-0.02,0.51l1.41,1.86l0.14,1.2l0.89,1.48l0.5,0.16l0.98,-0.41l1.73,1.08l0.82,1.23l-8.22,4.81l-7.23,5.11l-3.43,1.13l-2.3,0.21l-0.28,-1.59l-2.56,-1.09l-0.67,-1.25l-26.12,-17.86l0.01,-3.47l3.77,-1.88l2.44,-0.41l2.12,-0.75l1.08,-1.42l2.81,-1.05l0.35,-2.08l1.33,-0.29l1.04,-0.94l3.47,-0.69l0.46,-1.08l-0.1,-0.45l-0.58,-0.52l-0.82,-2.81l-0.19,-1.83l-0.78,-1.49l2.03,-1.31l2.63,-0.48l1.7,-1.22l2.31,-0.84l8.24,-0.73l1.49,0.38l2.28,-1.1l2.46,-0.02l0.92,0.6l1.35,-0.05Z\",name:\"Algeria\"},US:{path:\"M892.72,99.2l1.31,0.53l1.41,-0.37l1.89,0.98l1.89,0.42l-1.32,0.58l-2.9,-1.53l-2.08,0.22l-0.26,-0.15l0.07,-0.67ZM183.22,150.47l0.37,1.47l1.12,0.85l4.23,0.7l2.39,0.98l2.17,-0.38l1.85,0.5l-1.55,0.65l-3.49,2.61l-0.16,0.77l0.5,0.39l2.33,-0.61l1.77,1.02l5.15,-2.4l-0.31,0.65l0.25,0.56l1.36,0.38l1.71,1.16l4.7,-0.88l0.67,0.85l1.31,0.21l0.58,0.58l-1.34,0.17l-2.18,-0.32l-3.6,0.89l-2.71,3.25l0.35,0.9l0.59,-0.0l0.55,-0.6l-1.36,4.65l0.29,3.09l0.67,1.58l0.61,0.45l1.77,-0.44l1.6,-1.96l0.14,-2.21l-0.82,-1.96l0.11,-1.13l1.19,-2.37l0.44,-0.33l0.48,0.75l0.4,-0.29l0.4,-1.37l0.6,-0.47l0.24,-0.8l1.69,0.49l1.65,1.08l-0.03,2.37l-1.27,1.13l-0.0,1.13l0.87,0.36l1.66,-1.29l0.5,0.17l0.5,2.6l-2.49,3.75l0.17,0.61l1.54,0.62l1.48,0.17l1.92,-0.44l4.72,-2.15l2.16,-1.8l-0.05,-1.24l0.75,-0.22l3.92,0.36l2.12,-1.05l0.21,-0.4l-0.28,-1.48l3.27,-2.4l8.32,-0.02l0.56,-0.82l1.9,-0.77l0.93,-1.51l0.74,-2.37l1.58,-1.98l0.92,0.62l1.47,-0.47l0.8,0.66l-0.0,4.09l1.96,2.6l-2.34,1.31l-5.37,2.09l-1.83,2.72l0.02,1.79l0.83,1.59l0.54,0.23l-6.19,0.94l-2.2,0.89l-0.23,0.48l0.45,0.29l2.99,-0.46l-2.19,0.56l-1.13,0.0l-0.15,-0.32l-0.48,0.08l-0.76,0.82l0.22,0.67l0.32,0.06l-0.41,1.62l-1.27,1.58l-1.48,-1.07l-0.49,-0.04l-0.16,0.46l0.52,1.58l0.61,0.59l0.03,0.79l-0.95,1.38l-1.21,-1.22l-0.27,-2.27l-0.35,-0.35l-0.42,0.25l-0.48,1.27l0.33,1.41l-0.97,-0.27l-0.48,0.24l0.18,0.5l1.52,0.83l0.1,2.52l0.79,0.51l0.52,3.42l-1.42,1.88l-2.47,0.8l-1.71,1.66l-1.31,0.25l-1.27,1.03l-0.43,0.99l-2.69,1.78l-2.64,3.03l-0.45,2.12l0.45,2.08l0.85,2.38l1.09,1.9l0.04,1.2l1.16,3.06l-0.18,2.69l-0.55,1.43l-0.47,0.21l-0.89,-0.23l-0.49,-1.18l-0.87,-0.56l-2.75,-5.16l0.48,-1.68l-0.72,-1.78l-2.01,-2.38l-1.12,-0.53l-2.72,1.18l-1.47,-1.35l-1.57,-0.68l-2.99,0.31l-2.17,-0.3l-2.0,0.19l-1.15,0.46l-0.19,0.58l0.39,0.63l0.14,1.34l-0.84,-0.2l-0.84,0.46l-1.58,-0.07l-2.08,-1.44l-2.09,0.33l-1.91,-0.62l-3.73,0.84l-2.39,2.07l-2.54,1.22l-1.45,1.41l-0.61,1.38l0.34,3.71l-0.29,0.02l-3.5,-1.33l-1.25,-3.11l-1.44,-1.5l-2.24,-3.56l-1.76,-1.09l-2.27,-0.01l-1.71,2.07l-1.76,-0.69l-1.16,-0.74l-1.52,-2.98l-3.93,-3.16l-4.34,-0.0l-0.4,0.4l-0.0,0.74l-6.5,0.02l-9.02,-3.14l-0.34,-0.71l-5.7,0.49l-0.43,-1.29l-1.62,-1.61l-1.14,-0.38l-0.55,-0.88l-1.28,-0.13l-1.01,-0.77l-2.22,-0.27l-0.43,-0.3l-0.36,-1.58l-2.4,-2.83l-2.01,-3.85l-0.06,-0.9l-2.92,-3.26l-0.33,-2.29l-1.3,-1.66l0.52,-2.37l-0.09,-2.57l-0.78,-2.3l0.95,-2.82l0.61,-5.68l-0.47,-4.27l-1.46,-4.08l3.19,0.79l1.26,2.83l0.69,0.08l0.69,-1.14l-1.1,-4.79l68.76,-0.0l0.4,-0.4l0.14,-0.86ZM32.44,67.52l1.73,1.97l0.55,0.05l0.99,-0.79l3.65,0.24l-0.09,0.62l0.32,0.45l3.83,0.77l2.61,-0.43l5.19,1.4l4.84,0.43l1.89,0.57l3.42,-0.7l6.14,1.87l-0.03,38.06l0.38,0.4l2.39,0.11l2.31,0.98l3.9,3.99l0.55,0.04l2.4,-2.03l2.16,-1.04l1.2,1.71l3.95,3.14l4.09,6.63l4.2,2.29l0.06,1.83l-1.02,1.23l-1.16,-1.08l-2.04,-1.03l-0.67,-2.89l-3.28,-3.03l-1.65,-3.57l-6.35,-0.32l-2.82,-1.01l-5.26,-3.85l-6.77,-2.04l-3.53,0.3l-4.81,-1.69l-3.25,-1.63l-2.78,0.8l-0.28,0.46l0.44,2.21l-3.91,0.96l-2.26,1.27l-2.3,0.65l-0.27,-1.65l1.05,-3.42l2.49,-1.09l0.16,-0.6l-0.69,-0.96l-0.55,-0.1l-3.19,2.12l-1.78,2.56l-3.55,2.61l-0.04,0.61l1.56,1.52l-2.07,2.29l-5.11,2.57l-0.77,1.66l-3.76,1.77l-0.92,1.73l-2.69,1.38l-1.81,-0.22l-6.95,3.32l-3.97,0.91l4.85,-2.5l2.59,-1.86l3.26,-0.52l1.19,-1.4l3.42,-2.1l2.59,-2.27l0.42,-2.68l1.23,-2.1l-0.04,-0.46l-0.45,-0.11l-2.68,1.03l-0.63,-0.49l-0.53,0.03l-1.05,1.04l-1.36,-1.54l-0.66,0.08l-0.32,0.62l-0.58,-1.14l-0.56,-0.16l-2.41,1.42l-1.07,-0.0l-0.17,-1.75l0.3,-1.71l-1.61,-1.33l-3.41,0.59l-1.96,-1.63l-1.57,-0.84l-0.15,-2.21l-1.7,-1.43l0.82,-1.88l1.99,-2.12l0.88,-1.92l1.71,-0.24l2.04,0.51l1.87,-1.77l1.91,0.25l1.91,-1.23l0.17,-0.43l-0.47,-1.82l-1.07,-0.7l1.39,-1.17l0.12,-0.45l-0.39,-0.26l-1.65,0.07l-2.66,0.88l-0.75,0.78l-1.92,-0.8l-3.46,0.44l-3.44,-0.91l-1.06,-1.61l-2.65,-1.99l2.91,-1.43l5.5,-2.0l1.52,0.0l-0.26,1.62l0.41,0.46l5.29,-0.16l0.3,-0.65l-2.03,-2.59l-3.14,-1.68l-1.79,-2.12l-2.4,-1.83l-3.09,-1.24l1.04,-1.69l4.23,-0.14l3.36,-2.07l0.73,-2.27l2.39,-1.99l2.42,-0.52l4.65,-1.97l2.46,0.23l3.71,-2.35l3.5,0.89ZM37.6,123.41l-2.25,1.23l-0.95,-0.69l-0.29,-1.24l3.21,-1.63l1.42,0.21l0.67,0.7l-1.8,1.42ZM31.06,234.03l0.98,0.47l0.74,0.87l-1.77,1.07l-0.44,-1.53l0.49,-0.89ZM29.34,232.07l0.18,0.05l0.08,0.05l-0.16,0.03l-0.11,-0.14ZM25.16,230.17l0.05,-0.03l0.18,0.22l-0.13,-0.01l-0.1,-0.18ZM5.89,113.26l-1.08,0.41l-2.21,-1.12l1.53,-0.4l1.62,0.28l0.14,0.83Z\",name:\"United States\"},LV:{path:\"M489.16,122.85l0.96,0.66l0.22,1.65l0.68,1.76l-3.65,1.7l-2.23,-1.58l-1.29,-0.26l-0.68,-0.77l-2.42,0.34l-4.16,-0.23l-2.47,0.9l0.06,-1.98l1.13,-2.06l1.95,-1.02l2.12,2.58l2.01,-0.07l0.38,-0.33l0.44,-2.52l1.76,-0.53l3.06,1.7l2.15,0.07Z\",name:\"Latvia\"},UY:{path:\"M286.85,372.74l-0.92,1.5l-2.59,1.44l-1.69,-0.52l-1.42,0.26l-2.39,-1.19l-1.52,0.08l-1.27,-1.3l0.16,-1.5l0.56,-0.79l-0.02,-2.73l1.21,-4.74l1.19,-0.21l2.37,2.0l1.08,0.03l4.36,3.17l1.22,1.6l-0.96,1.5l0.61,1.4Z\",name:\"Uruguay\"},LB:{path:\"M510.37,198.01l-0.88,0.51l1.82,-3.54l0.62,0.08l0.22,0.61l-1.13,0.88l-0.65,1.47Z\",name:\"Lebanon\"},LA:{path:\"M689.54,248.53l-1.76,-0.74l-0.49,0.15l-0.94,1.46l-1.32,-0.64l0.62,-0.98l0.11,-2.17l-2.04,-2.42l-0.25,-2.65l-1.9,-2.1l-2.15,-0.31l-0.78,0.91l-1.12,0.06l-1.05,-0.4l-2.06,1.2l-0.04,-1.59l0.61,-2.68l-0.36,-0.49l-1.35,-0.1l-0.11,-1.23l-0.96,-0.88l1.96,-1.89l0.39,0.36l1.33,0.07l0.42,-0.45l-0.34,-2.66l0.7,-0.21l1.28,1.81l1.11,2.35l0.36,0.23l2.82,0.02l0.71,1.67l-1.39,0.65l-0.72,0.93l0.13,0.6l2.91,1.51l3.6,5.25l1.88,1.78l0.56,1.62l-0.35,1.96Z\",name:\"Lao PDR\"},TW:{path:\"M724.01,226.68l-0.74,1.48l-0.9,-1.52l-0.25,-1.74l1.38,-2.44l1.73,-1.74l0.64,0.44l-1.85,5.52Z\",name:\"Taiwan\"},TT:{path:\"M266.64,259.32l0.28,-1.16l1.13,-0.22l-0.06,1.2l-1.35,0.18Z\",name:\"Trinidad and Tobago\"},TR:{path:\"M513.21,175.47l3.64,1.17l3.05,-0.44l2.1,0.26l3.11,-1.56l2.46,-0.13l2.19,1.33l0.33,0.82l-0.22,1.33l0.25,0.44l2.28,1.13l-1.17,0.57l-0.21,0.45l0.75,3.2l-0.41,1.16l1.13,1.92l-0.55,0.22l-0.9,-0.67l-2.91,-0.37l-1.24,0.46l-4.23,0.41l-2.81,1.05l-1.91,0.01l-1.52,-0.53l-2.58,0.75l-0.66,-0.45l-0.62,0.3l-0.12,1.45l-0.89,0.84l-0.47,-0.67l0.79,-1.3l-0.41,-0.2l-1.43,0.23l-2.0,-0.63l-2.02,1.65l-3.51,0.3l-2.13,-1.53l-2.7,-0.1l-0.86,1.24l-1.38,0.27l-2.29,-1.44l-2.71,-0.01l-1.37,-2.65l-1.68,-1.52l1.07,-1.99l-0.09,-0.49l-1.27,-1.12l2.37,-2.41l3.7,-0.11l1.28,-2.24l4.49,0.37l3.21,-1.97l2.81,-0.82l3.99,-0.06l4.29,2.07ZM488.79,176.72l-1.72,1.31l-0.5,-0.88l1.37,-2.57l-0.7,-0.85l1.7,-0.63l1.8,0.34l0.46,1.17l1.76,0.78l-2.87,0.32l-1.3,1.01Z\",name:\"Turkey\"},LK:{path:\"M624.16,268.99l-1.82,0.48l-0.99,-1.67l-0.42,-3.46l0.95,-3.43l1.21,0.98l2.26,4.19l-0.34,2.33l-0.85,0.58Z\",name:\"Sri Lanka\"},TN:{path:\"M448.1,188.24l-1.0,1.27l-0.02,1.32l0.84,0.88l-0.28,2.09l-1.53,1.32l-0.12,0.42l0.48,1.54l1.42,0.32l0.53,1.11l0.9,0.52l-0.11,1.67l-3.54,2.64l-0.1,2.38l-0.58,0.3l-0.96,-4.45l-1.54,-1.25l-0.16,-0.78l-1.92,-1.56l-0.18,-1.76l1.51,-1.62l0.59,-2.34l-0.38,-2.78l0.42,-1.21l2.45,-1.05l1.29,0.26l-0.06,1.11l0.58,0.38l1.47,-0.73Z\",name:\"Tunisia\"},TL:{path:\"M734.55,307.93l-0.1,-0.97l4.5,-0.86l-2.82,1.28l-1.59,0.55Z\",name:\"Timor-Leste\"},TM:{path:\"M553.03,173.76l-0.04,0.34l-0.09,-0.22l0.13,-0.12ZM555.87,172.66l0.45,-0.1l1.48,0.74l2.06,2.43l4.07,-0.18l0.38,-0.51l-0.32,-1.19l1.92,-0.94l1.91,-1.59l2.94,1.39l0.43,2.47l1.19,0.67l2.58,-0.13l0.62,0.4l1.32,3.12l4.54,3.44l2.67,1.45l3.06,1.14l-0.04,1.05l-1.33,-0.75l-0.59,0.19l-0.32,0.84l-2.2,0.81l-0.46,2.13l-1.21,0.74l-1.91,0.42l-0.73,1.33l-1.56,0.31l-2.22,-0.94l-0.2,-2.17l-0.38,-0.36l-1.73,-0.09l-2.76,-2.46l-2.14,-0.4l-2.84,-1.48l-1.78,-0.27l-1.24,0.53l-1.57,-0.08l-2.0,1.69l-1.7,0.43l-0.36,-1.58l0.36,-2.98l-0.22,-0.4l-1.65,-0.84l0.54,-1.69l-0.34,-0.52l-1.22,-0.13l0.36,-1.64l2.22,0.59l2.2,-0.95l0.12,-0.65l-1.77,-1.74l-0.66,-1.57Z\",name:\"Turkmenistan\"},TJ:{path:\"M597.75,178.82l-2.54,-0.44l-0.47,0.34l-0.24,1.7l0.43,0.45l2.64,-0.22l3.18,0.95l4.39,-0.41l0.56,2.37l0.52,0.29l0.67,-0.24l1.11,0.49l0.21,2.13l-3.76,-0.21l-1.8,1.32l-1.76,0.74l-0.61,-0.58l0.21,-2.23l-0.64,-0.49l-0.07,-0.93l-1.36,-0.66l-0.45,0.07l-1.08,1.01l-0.55,1.48l-1.31,-0.05l-0.95,1.16l-0.9,-0.35l-1.86,0.74l1.26,-2.83l-0.54,-2.17l-1.67,-0.82l0.33,-0.66l2.18,-0.04l1.19,-1.63l0.76,-1.79l2.43,-0.5l-0.26,1.0l0.73,1.05Z\",name:\"Tajikistan\"},LS:{path:\"M491.06,363.48l-0.49,0.15l-1.49,-1.67l1.1,-1.43l2.19,-1.44l1.51,1.27l-0.98,1.82l-1.23,0.38l-0.62,0.93Z\",name:\"Lesotho\"},TH:{path:\"M670.27,255.86l-1.41,3.87l0.15,2.0l0.38,0.36l1.38,0.07l0.9,2.04l0.55,2.34l1.4,1.44l1.61,0.38l0.96,0.97l-0.5,0.64l-1.1,0.2l-0.34,-1.18l-2.04,-1.1l-0.63,0.23l-0.63,-0.62l-0.48,-1.3l-2.56,-2.63l-0.73,0.41l0.95,-3.89l2.16,-4.22ZM670.67,254.77l-0.92,-2.18l-0.26,-2.61l-2.14,-3.06l0.71,-0.49l0.89,-2.59l-3.61,-5.45l0.87,-0.51l1.05,-2.58l1.74,-0.18l2.6,-1.59l0.76,0.56l0.13,1.39l0.37,0.36l1.23,0.09l-0.51,2.28l0.05,2.42l0.6,0.34l2.43,-1.42l0.77,0.39l1.47,-0.07l0.71,-0.88l1.48,0.14l1.71,1.88l0.25,2.65l1.92,2.11l-0.1,1.89l-0.61,0.86l-2.22,-0.33l-3.5,0.64l-1.6,2.12l0.36,2.58l-1.51,-0.79l-1.84,-0.01l0.28,-1.52l-0.4,-0.47l-2.21,0.01l-0.4,0.37l-0.19,2.74l-0.34,0.93Z\",name:\"Thailand\"},TF:{path:\"M596.68,420.38l-3.2,0.18l-0.05,-1.26l0.39,-1.41l1.3,0.78l2.08,0.35l-0.52,1.36Z\",name:\"Fr. S. Antarctic Lands\"},TG:{path:\"M422.7,257.63l-0.09,1.23l1.53,1.52l0.08,1.09l0.5,0.65l-0.11,5.62l0.49,1.47l-1.31,0.35l-1.02,-2.13l-0.18,-1.12l0.53,-2.19l-0.63,-1.16l-0.22,-3.68l-1.01,-1.4l0.07,-0.28l1.37,0.03Z\",name:\"Togo\"},TD:{path:\"M480.25,235.49l0.12,9.57l-2.1,0.05l-1.14,1.89l-0.69,1.63l0.34,0.73l-0.66,0.91l0.24,0.89l-0.86,1.95l0.45,0.5l0.6,-0.1l0.34,0.64l0.03,1.38l0.9,1.04l-1.45,0.43l-1.27,1.03l-1.83,2.76l-2.16,1.07l-2.31,-0.15l-0.86,0.25l-0.26,0.49l0.17,0.61l-2.11,1.68l-2.85,0.87l-1.09,-0.57l-0.73,0.66l-1.12,0.1l-1.1,-3.12l-1.25,-0.64l-1.22,-1.22l0.29,-0.64l3.01,0.04l0.35,-0.6l-1.3,-2.2l-0.08,-3.31l-0.97,-1.66l0.22,-1.04l-0.38,-0.48l-1.22,-0.04l0.0,-1.25l-0.98,-1.07l0.96,-3.01l3.25,-2.65l0.13,-3.33l0.95,-5.18l0.52,-1.07l-0.1,-0.48l-0.91,-0.78l-0.2,-0.96l-0.8,-0.58l-0.55,-3.65l2.1,-1.2l19.57,9.83Z\",name:\"Chad\"},LY:{path:\"M483.48,203.15l-0.75,1.1l0.29,1.39l-0.6,1.83l0.73,2.14l0.0,24.12l-2.48,0.01l-0.41,0.85l-19.41,-9.76l-4.41,2.28l-1.37,-1.33l-3.82,-1.1l-1.14,-1.65l-1.98,-1.23l-1.22,0.32l-0.66,-1.11l-0.17,-1.26l-1.28,-1.69l0.87,-1.19l-0.07,-4.34l0.43,-2.27l-0.86,-3.45l1.13,-0.76l0.22,-1.16l-0.2,-1.03l3.48,-2.61l0.29,-1.94l2.45,0.8l1.18,-0.21l1.98,0.44l3.15,1.18l1.37,2.54l5.72,1.67l2.64,1.35l1.61,-0.72l1.29,-1.34l-0.44,-2.34l0.66,-1.13l1.67,-1.21l1.57,-0.35l3.14,0.53l1.08,1.28l3.99,0.78l0.36,0.54Z\",name:\"Libya\"},AE:{path:\"M550.76,223.97l1.88,-0.4l3.84,0.02l4.78,-4.75l0.19,0.36l0.26,1.58l-0.81,0.01l-0.39,0.35l-0.08,2.04l-0.81,0.63l-0.01,0.96l-0.66,0.99l-0.39,1.41l-7.08,-1.25l-0.7,-1.96Z\",name:\"United Arab Emirates\"},VE:{path:\"M240.68,256.69l0.53,0.75l-0.02,1.06l-1.07,1.78l0.95,2.0l0.42,0.22l1.4,-0.44l0.56,-1.83l-0.77,-1.17l-0.1,-1.47l2.82,-0.93l0.26,-0.49l-0.28,-0.96l0.3,-0.28l0.66,1.31l1.96,0.26l1.4,1.22l0.08,0.68l0.39,0.35l4.81,-0.22l1.49,1.11l1.92,0.31l1.67,-0.84l0.22,-0.6l3.44,-0.14l-0.17,0.55l0.86,1.19l2.19,0.35l1.67,1.1l0.37,1.86l0.41,0.32l1.55,0.17l-1.66,1.35l-0.22,0.92l0.65,0.97l-1.67,0.54l-0.3,0.4l0.04,0.99l-0.56,0.57l-0.01,0.55l1.85,2.27l-0.66,0.69l-4.47,1.29l-0.72,0.54l-3.69,-0.9l-0.71,0.27l-0.02,0.7l0.91,0.53l-0.08,1.54l0.35,1.58l0.35,0.31l1.66,0.17l-1.3,0.52l-0.48,1.13l-2.68,0.91l-0.6,0.77l-1.57,0.13l-1.17,-1.13l-0.8,-2.52l-1.25,-1.26l1.02,-1.23l-1.29,-2.95l0.18,-1.62l1.0,-2.21l-0.2,-0.49l-1.14,-0.46l-4.02,0.36l-1.82,-2.1l-1.57,-0.33l-2.99,0.22l-1.06,-0.97l0.25,-1.23l-0.2,-1.01l-0.59,-0.69l-0.29,-1.06l-1.08,-0.39l0.78,-2.79l1.9,-2.11Z\",name:\"Venezuela\"},AF:{path:\"M600.7,188.88l-1.57,1.3l-0.1,0.48l0.8,2.31l-1.09,1.04l-0.03,1.27l-0.48,0.71l-2.16,-0.08l-0.37,0.59l0.78,1.48l-1.38,0.69l-1.06,1.69l0.06,1.7l-0.65,0.52l-0.91,-0.21l-1.91,0.36l-0.48,0.77l-1.88,0.13l-1.4,1.56l-0.18,2.32l-2.91,1.02l-1.65,-0.23l-0.71,0.55l-1.41,-0.3l-2.41,0.39l-3.52,-1.17l1.96,-2.35l-0.21,-1.78l-0.3,-0.34l-1.63,-0.4l-0.19,-1.58l-0.75,-2.03l0.95,-1.36l-0.19,-0.6l-0.73,-0.28l1.47,-4.8l2.14,0.9l2.12,-0.36l0.74,-1.34l1.77,-0.39l1.54,-0.92l0.63,-2.31l1.87,-0.5l0.49,-0.81l0.94,0.56l2.13,0.11l2.55,0.92l1.95,-0.83l0.65,0.43l0.56,-0.13l0.69,-1.12l1.57,-0.08l0.72,-1.66l0.79,-0.74l0.8,0.39l-0.17,0.56l0.71,0.58l-0.08,2.39l1.11,0.95ZM601.37,188.71l1.73,-0.71l1.43,-1.18l4.03,0.35l-2.23,0.74l-4.95,0.8Z\",name:\"Afghanistan\"},IQ:{path:\"M530.82,187.47l0.79,0.66l1.26,-0.28l1.46,3.08l1.63,0.94l0.14,1.23l-1.22,1.05l-0.53,2.52l1.73,2.67l3.12,1.62l1.15,1.88l-0.38,1.85l0.39,0.48l0.41,-0.0l0.02,1.07l0.76,0.94l-2.47,-0.1l-1.71,2.44l-4.31,-0.2l-7.02,-5.48l-3.73,-1.94l-2.88,-0.73l-0.85,-2.87l5.45,-3.02l0.95,-3.43l-0.19,-1.96l1.27,-0.7l1.22,-1.7l0.87,-0.36l2.69,0.34Z\",name:\"Iraq\"},IS:{path:\"M384.14,88.06l-0.37,2.61l2.54,2.51l-2.9,2.75l-9.19,3.4l-9.25,-1.66l1.7,-1.22l-0.1,-0.7l-4.05,-1.47l2.96,-0.53l0.33,-0.43l-0.11,-1.2l-0.33,-0.36l-4.67,-0.85l1.28,-2.04l3.45,-0.56l3.77,2.72l0.44,0.02l3.64,-2.16l3.3,1.08l3.98,-2.16l3.58,0.26Z\",name:\"Iceland\"},IR:{path:\"M533.43,187.16l-1.27,-2.15l0.42,-0.98l-0.71,-3.04l1.03,-0.5l0.33,0.83l1.26,1.35l2.05,0.51l1.11,-0.16l2.89,-2.11l0.62,-0.14l0.39,0.46l-0.72,1.2l0.06,0.49l1.56,1.53l0.65,0.04l0.67,1.81l2.56,0.83l1.87,1.48l3.69,0.49l3.91,-0.76l0.47,-0.73l2.17,-0.6l1.66,-1.54l1.51,0.08l1.18,-0.53l1.59,0.24l2.83,1.48l1.88,0.3l2.77,2.47l1.77,0.18l0.18,1.99l-1.68,5.49l0.24,0.5l0.61,0.23l-0.82,1.48l0.8,2.18l0.19,1.71l0.3,0.34l1.63,0.4l0.15,1.32l-2.15,2.35l-0.01,0.53l2.21,3.03l2.34,1.24l0.06,2.14l1.24,0.72l0.11,0.69l-3.31,1.27l-1.08,3.03l-9.68,-1.68l-0.99,-3.05l-1.43,-0.73l-2.17,0.46l-2.47,1.26l-2.83,-0.82l-2.46,-2.02l-2.41,-0.8l-3.42,-6.06l-0.48,-0.2l-1.18,0.39l-1.44,-0.82l-0.5,0.08l-0.65,0.74l-0.97,-1.01l-0.02,-1.31l-0.71,-0.39l0.26,-1.81l-1.29,-2.11l-3.13,-1.63l-1.58,-2.43l0.5,-1.9l1.31,-1.26l-0.19,-1.66l-1.74,-1.1l-1.57,-3.3Z\",name:\"Iran\"},AM:{path:\"M536.99,182.33l-0.28,0.03l-1.23,-2.13l-0.93,0.01l-0.62,-0.66l-0.69,-0.07l-0.96,-0.81l-1.56,-0.62l0.19,-1.12l-0.26,-0.79l2.72,-0.36l1.09,1.01l-0.17,0.92l1.02,0.78l-0.47,0.62l0.08,0.56l2.04,1.23l0.04,1.4Z\",name:\"Armenia\"},IT:{path:\"M451.59,158.63l3.48,0.94l-0.21,1.17l0.3,0.83l-1.49,-0.24l-2.04,1.1l-0.21,0.39l0.13,1.45l-0.25,1.12l0.82,1.57l2.39,1.63l1.31,2.54l2.79,2.43l2.05,0.08l0.21,0.23l-0.39,0.33l0.09,0.67l4.05,1.97l2.17,1.76l-0.16,0.36l-1.17,-1.08l-2.18,-0.49l-0.44,0.2l-1.05,1.91l0.14,0.54l1.57,0.95l-0.19,0.98l-1.06,0.33l-1.25,2.34l-0.37,0.08l0.0,-0.33l1.0,-2.45l-1.73,-3.17l-1.12,-0.51l-0.88,-1.33l-1.51,-0.51l-1.27,-1.25l-1.75,-0.18l-4.12,-3.21l-1.62,-1.65l-1.03,-3.19l-3.53,-1.36l-1.3,0.51l-1.69,1.41l0.16,-0.72l-0.28,-0.47l-1.14,-0.33l-0.53,-1.96l0.72,-0.78l0.04,-0.48l-0.65,-1.17l0.8,0.39l1.4,-0.23l1.11,-0.84l0.52,0.35l1.19,-0.1l0.75,-1.2l1.53,0.33l1.36,-0.56l0.35,-1.14l1.08,0.32l0.68,-0.64l1.98,-0.44l0.42,0.82ZM459.19,184.75l-0.65,1.65l0.32,1.05l-0.31,0.89l-1.5,-0.85l-4.5,-1.67l0.19,-0.82l2.67,0.23l3.78,-0.48ZM443.93,176.05l1.18,1.66l-0.3,3.32l-1.06,-0.01l-0.77,0.73l-0.53,-0.44l-0.1,-3.37l-0.39,-1.22l1.04,0.01l0.92,-0.68Z\",name:\"Italy\"},VN:{path:\"M690.56,230.25l-2.7,1.82l-2.09,2.46l-0.63,1.95l4.31,6.45l2.32,1.65l1.43,1.94l1.11,4.59l-0.32,4.24l-1.93,1.54l-2.84,1.61l-2.11,2.15l-2.73,2.06l-0.59,-1.05l0.63,-1.53l-0.13,-0.47l-1.34,-1.04l1.51,-0.71l2.55,-0.18l0.3,-0.63l-0.82,-1.14l4.0,-2.07l0.31,-3.05l-0.57,-1.77l0.42,-2.66l-0.73,-1.97l-1.86,-1.76l-3.63,-5.29l-2.72,-1.46l0.36,-0.47l1.5,-0.64l0.21,-0.52l-0.97,-2.27l-0.37,-0.24l-2.83,-0.02l-2.24,-3.9l0.83,-0.4l4.39,-0.29l2.06,-1.31l1.15,0.89l1.88,0.4l-0.17,1.51l1.35,1.16l1.67,0.45Z\",name:\"Vietnam\"},AR:{path:\"M249.29,428.93l-2.33,-0.52l-5.83,-0.43l-0.89,-1.66l0.05,-2.37l-0.45,-0.4l-1.43,0.18l-0.67,-0.91l-0.2,-3.13l1.88,-1.47l0.79,-2.04l-0.25,-1.7l1.3,-2.68l0.91,-4.15l-0.22,-1.69l0.85,-0.45l0.2,-0.44l-0.27,-1.16l-0.98,-0.68l0.59,-0.92l-0.05,-0.5l-1.04,-1.07l-0.52,-3.1l0.97,-0.86l-0.42,-3.58l1.2,-5.43l1.38,-0.98l0.16,-0.43l-0.75,-2.79l-0.01,-2.43l1.78,-1.75l0.06,-2.57l1.43,-2.85l0.01,-2.58l-0.69,-0.74l-1.09,-4.52l1.47,-2.7l-0.18,-2.79l0.85,-2.35l1.59,-2.46l1.73,-1.64l0.05,-0.52l-0.6,-0.84l0.44,-0.85l-0.07,-4.19l2.7,-1.44l0.86,-2.75l-0.21,-0.71l1.76,-2.01l2.9,0.57l1.38,1.78l0.68,-0.08l0.87,-1.87l2.39,0.09l4.95,4.77l2.17,0.49l3.0,1.92l2.47,1.0l0.25,0.82l-2.37,3.93l0.23,0.59l5.39,1.16l2.12,-0.44l2.45,-2.16l0.5,-2.38l0.76,-0.31l0.98,1.2l-0.04,1.8l-3.67,2.51l-2.85,2.66l-3.43,3.88l-1.3,5.07l0.01,2.72l-0.54,0.73l-0.36,3.28l3.14,2.64l-0.16,2.11l1.4,1.11l-0.1,1.09l-2.29,3.52l-3.55,1.49l-4.92,0.6l-2.71,-0.29l-0.43,0.51l0.5,1.65l-0.49,2.1l0.38,1.42l-1.19,0.83l-2.36,0.38l-2.3,-1.04l-1.38,0.83l0.41,3.64l1.69,0.91l1.4,-0.71l0.36,0.76l-2.04,0.86l-2.01,1.89l-0.97,4.63l-2.34,0.1l-2.09,1.78l-0.61,2.75l2.46,2.31l2.17,0.63l-0.7,2.32l-2.83,1.73l-1.73,3.86l-2.17,1.22l-1.16,1.67l0.75,3.76l1.04,1.28ZM256.71,438.88l-2.0,0.15l-1.4,-1.22l-3.82,-0.1l-0.0,-5.83l1.6,3.05l3.26,2.07l3.08,0.78l-0.71,1.1Z\",name:\"Argentina\"},AU:{path:\"M705.8,353.26l0.26,0.04l0.17,-0.47l-0.48,-1.42l0.92,1.11l0.45,0.15l0.27,-0.39l-0.1,-1.56l-1.98,-3.63l1.09,-3.31l-0.24,-1.57l0.34,-0.62l0.38,1.06l0.43,-0.19l0.99,-1.7l1.91,-0.83l1.29,-1.15l1.81,-0.91l0.96,-0.17l0.92,0.26l1.92,-0.95l1.47,-0.28l1.03,-0.8l1.43,0.04l2.78,-0.84l1.36,-1.15l0.71,-1.45l1.41,-1.26l0.3,-2.58l1.27,-1.59l0.78,1.65l0.54,0.19l1.07,-0.51l0.15,-0.6l-0.73,-1.0l0.45,-0.71l0.78,0.39l0.58,-0.3l0.28,-1.82l1.87,-2.14l1.12,-0.39l0.28,-0.58l0.62,0.17l0.53,-0.73l1.87,-0.57l1.65,1.05l1.35,1.48l3.39,0.38l0.43,-0.54l-0.46,-1.23l1.05,-1.79l1.04,-0.61l0.14,-0.55l-0.25,-0.41l0.88,-1.17l1.31,-0.77l1.3,0.27l2.1,-0.48l0.31,-0.4l-0.05,-1.3l-0.92,-0.77l1.48,0.56l1.41,1.07l2.11,0.65l0.81,-0.2l1.4,0.7l1.69,-0.66l0.8,0.19l0.64,-0.33l0.71,0.77l-1.33,1.94l-0.71,0.07l-0.35,0.51l0.24,0.86l-1.52,2.35l0.12,1.05l2.15,1.65l1.97,0.85l3.04,2.36l1.97,0.65l0.55,0.88l2.72,0.85l1.84,-1.1l2.07,-5.97l-0.42,-3.59l0.3,-1.73l0.47,-0.87l-0.31,-0.68l1.09,-3.28l0.46,-0.47l0.4,0.71l0.16,1.51l0.65,0.52l0.16,1.04l0.85,1.21l0.12,2.38l0.9,2.0l0.57,0.18l1.3,-0.78l1.69,1.7l-0.2,1.08l0.53,2.2l0.39,1.3l0.68,0.48l0.6,1.95l-0.19,1.48l0.81,1.76l6.01,3.69l-0.11,0.76l1.38,1.58l0.95,2.77l0.58,0.22l0.72,-0.41l0.8,0.9l0.61,0.01l0.46,2.41l4.81,4.71l0.66,2.02l-0.07,3.31l1.14,2.2l-0.13,2.24l-1.1,3.68l0.03,1.64l-0.47,1.89l-1.05,2.4l-1.9,1.47l-1.72,3.51l-2.38,6.09l-0.24,2.82l-1.14,0.8l-2.85,0.15l-2.31,1.19l-2.51,2.25l-3.09,-1.57l0.3,-1.15l-0.54,-0.47l-1.5,0.63l-2.01,1.94l-7.12,-2.18l-1.48,-1.63l-1.14,-3.74l-1.45,-1.26l-1.81,-0.26l0.56,-1.18l-0.61,-2.1l-0.72,-0.1l-1.14,1.82l-0.9,0.21l0.63,-0.82l0.36,-1.55l0.92,-1.31l-0.13,-2.34l-0.7,-0.22l-2.0,2.34l-1.51,0.93l-0.94,2.01l-1.35,-0.81l-0.02,-1.52l-1.57,-2.04l-1.09,-0.88l0.24,-0.33l-0.14,-0.59l-3.21,-1.69l-1.83,-0.12l-2.54,-1.35l-4.58,0.28l-6.02,1.9l-2.53,-0.13l-2.62,1.41l-2.13,0.63l-1.49,2.6l-3.49,0.31l-2.29,-0.5l-3.48,0.43l-1.6,1.47l-0.81,-0.04l-2.37,1.63l-3.26,-0.1l-3.72,-2.21l0.04,-1.05l1.19,-0.46l0.49,-0.89l0.21,-2.97l-0.28,-1.64l-1.34,-2.86l-0.38,-1.47l0.05,-1.72l-0.95,-1.7l-0.18,-0.97l-1.01,-0.99l-0.29,-1.98l-1.13,-1.75ZM784.92,393.44l2.65,1.02l3.23,-0.96l1.09,0.14l0.15,3.06l-0.85,1.13l-0.17,1.63l-0.87,-0.24l-1.57,1.91l-1.68,-0.18l-1.4,-2.36l-0.37,-2.04l-1.39,-2.51l0.04,-0.8l1.15,0.18Z\",name:\"Australia\"},IL:{path:\"M507.76,203.05l0.4,-0.78l0.18,0.4l-0.33,1.03l0.52,0.44l0.68,-0.22l-0.86,3.6l-1.16,-3.32l0.59,-0.74l-0.03,-0.41ZM508.73,200.34l0.37,-1.02l0.64,0.0l0.52,-0.51l-0.49,1.53l-0.56,-0.24l-0.48,0.23Z\",name:\"Israel\"},IN:{path:\"M623.34,207.03l-1.24,1.04l-0.97,2.55l0.22,0.51l8.04,3.87l3.42,0.37l1.57,1.38l4.92,0.88l2.18,-0.04l0.38,-0.3l0.29,-1.24l-0.32,-1.64l0.14,-0.87l0.82,-0.31l0.45,2.48l2.28,1.02l1.77,-0.38l4.14,0.1l0.38,-0.36l0.18,-1.66l-0.5,-0.65l1.37,-0.29l2.25,-1.99l2.7,-1.62l1.93,0.62l1.8,-0.98l0.79,1.14l-0.68,0.91l0.26,0.63l2.42,0.36l0.09,0.47l-0.83,0.75l0.13,1.07l-1.52,-0.29l-3.24,1.86l-0.13,1.78l-1.32,2.14l-0.18,1.39l-0.93,1.82l-1.64,-0.5l-0.52,0.37l-0.09,2.63l-0.56,1.11l0.19,0.81l-0.53,0.27l-1.18,-3.73l-1.08,-0.27l-0.38,0.31l-0.24,1.0l-0.66,-0.66l0.54,-1.06l1.22,-0.34l1.15,-2.25l-0.24,-0.56l-1.57,-0.47l-4.34,-0.28l-0.18,-1.56l-0.35,-0.35l-1.11,-0.12l-1.91,-1.12l-0.56,0.17l-0.88,1.82l0.11,0.49l1.36,1.07l-1.09,0.69l-0.69,1.11l0.18,0.56l1.24,0.57l-0.32,1.54l0.85,1.94l0.36,2.01l-0.22,0.59l-4.58,0.52l-0.33,0.42l0.13,1.8l-1.17,1.36l-3.65,1.81l-2.79,3.03l-4.32,3.28l-0.18,1.27l-4.65,1.79l-0.77,2.16l0.64,5.3l-1.06,2.49l-0.01,3.94l-1.24,0.28l-1.14,1.93l0.39,0.84l-1.68,0.53l-1.04,1.83l-0.65,0.47l-2.06,-2.05l-2.1,-6.02l-2.2,-3.64l-1.05,-4.75l-2.29,-3.57l-1.76,-8.2l0.01,-3.11l-0.49,-2.53l-0.55,-0.29l-3.53,1.52l-1.53,-0.27l-2.86,-2.77l0.85,-0.67l0.08,-0.55l-0.74,-1.03l-2.67,-2.06l1.24,-1.32l5.34,0.01l0.39,-0.49l-0.5,-2.29l-1.42,-1.46l-0.27,-1.93l-1.43,-1.2l2.31,-2.37l3.05,0.06l2.62,-2.85l1.6,-2.81l2.4,-2.73l0.07,-2.04l1.97,-1.48l-0.02,-0.65l-1.93,-1.31l-0.82,-1.78l-0.8,-2.21l0.9,-0.89l3.59,0.65l2.92,-0.42l2.33,-2.19l2.31,2.85l-0.24,2.13l0.99,1.59l-0.05,0.82l-1.34,-0.28l-0.47,0.48l0.7,3.06l2.62,1.99l2.99,1.65Z\",name:\"India\"},TZ:{path:\"M495.56,296.42l2.8,-3.12l-0.02,-0.81l-0.64,-1.3l0.68,-0.52l0.14,-1.47l-0.76,-1.25l0.31,-0.11l2.26,0.03l-0.51,2.76l0.76,1.3l0.5,0.12l1.05,-0.53l1.19,-0.12l0.61,0.24l1.43,-0.62l0.1,-0.67l-0.71,-0.62l1.57,-1.7l8.65,4.86l0.32,1.53l3.34,2.33l-1.05,2.8l0.13,1.61l1.63,1.12l-0.6,1.76l-0.01,2.33l1.89,4.03l0.57,0.43l-1.46,1.08l-2.61,0.94l-1.43,-0.04l-1.06,0.77l-2.29,0.36l-2.87,-0.68l-0.83,0.07l-0.63,-0.75l-0.31,-2.78l-1.32,-1.35l-3.25,-0.77l-3.96,-1.58l-1.18,-2.41l-0.32,-1.75l-1.76,-1.49l0.42,-1.05l-0.44,-0.89l0.08,-0.96l-0.46,-0.58l0.06,-0.56Z\",name:\"Tanzania\"},AZ:{path:\"M539.29,175.73l1.33,0.32l1.94,-1.8l2.3,3.34l1.43,0.43l-1.26,0.15l-0.35,0.32l-0.8,3.14l-0.99,0.96l0.05,1.11l-1.26,-1.13l0.7,-1.18l-0.04,-0.47l-0.74,-0.86l-1.48,0.15l-2.34,1.71l-0.03,-1.27l-2.03,-1.35l0.47,-0.62l-0.08,-0.56l-1.03,-0.79l0.29,-0.43l-0.14,-0.58l-1.13,-0.86l1.89,0.68l1.69,0.06l0.37,-0.87l-0.81,-1.37l0.42,0.06l1.63,1.72ZM533.78,180.57l0.61,0.46l0.69,-0.0l0.59,1.15l-0.68,-0.15l-1.21,-1.45Z\",name:\"Azerbaijan\"},IE:{path:\"M405.08,135.42l0.35,2.06l-1.75,2.78l-4.22,1.88l-2.84,-0.4l1.73,-3.0l-1.18,-3.53l4.6,-3.74l0.32,1.15l-0.49,1.74l0.4,0.51l1.47,-0.04l1.6,0.6Z\",name:\"Ireland\"},ID:{path:\"M756.47,287.89l0.69,4.01l2.79,1.78l0.51,-0.1l2.04,-2.59l2.71,-1.43l2.05,-0.0l3.9,1.73l2.46,0.45l0.08,15.12l-1.75,-1.54l-2.54,-0.51l-0.88,0.71l-2.32,0.06l0.69,-1.33l1.45,-0.64l0.23,-0.46l-0.65,-2.74l-1.24,-2.21l-5.04,-2.29l-2.09,-0.23l-3.68,-2.27l-0.55,0.13l-0.65,1.07l-0.52,0.12l-0.55,-1.89l-1.21,-0.78l1.84,-0.62l1.72,0.05l0.39,-0.52l-0.21,-0.66l-0.38,-0.28l-3.45,-0.0l-1.13,-1.48l-2.1,-0.43l-0.52,-0.6l2.69,-0.48l1.28,-0.78l3.66,0.94l0.3,0.71ZM757.91,300.34l-0.62,0.82l-0.1,-0.8l0.59,-1.12l0.13,1.1ZM747.38,292.98l0.34,0.72l-1.22,-0.57l-4.68,-0.1l0.27,-0.62l2.78,-0.09l2.52,0.67ZM741.05,285.25l-0.67,-2.88l0.64,-2.01l0.41,0.86l1.21,0.18l0.16,0.7l-0.1,1.68l-0.84,-0.16l-0.46,0.3l-0.34,1.34ZM739.05,293.5l-0.5,0.44l-1.34,-0.36l-0.17,-0.37l1.73,-0.08l0.27,0.36ZM721.45,284.51l-0.19,1.97l2.24,2.23l0.54,0.02l1.27,-1.07l2.75,-0.5l-0.9,1.21l-2.11,0.93l-0.16,0.6l2.22,3.01l-0.3,1.07l1.36,1.74l-2.26,0.85l-0.28,-0.31l0.12,-1.19l-1.64,-1.34l0.17,-2.23l-0.56,-0.39l-1.67,0.76l-0.23,0.39l0.3,6.17l-1.1,0.25l-0.69,-0.47l0.64,-2.21l-0.39,-2.42l-0.39,-0.34l-0.8,-0.01l-0.58,-1.29l0.98,-1.6l0.35,-1.96l1.32,-3.87ZM728.59,296.27l0.38,0.49l-0.02,1.28l-0.88,0.49l-0.53,-0.47l1.04,-1.79ZM729.04,286.98l0.27,-0.05l-0.02,0.13l-0.24,-0.08ZM721.68,284.05l0.16,-0.32l1.89,-1.65l1.83,0.68l3.16,0.35l2.94,-0.1l2.39,-1.66l-1.73,2.13l-1.66,0.43l-2.41,-0.48l-4.17,0.13l-2.39,0.51ZM730.55,310.47l1.11,-1.93l2.03,-0.82l0.08,0.62l-1.45,1.67l-1.77,0.46ZM728.12,305.88l-0.1,0.38l-3.46,0.66l-2.91,-0.27l-0.0,-0.25l1.54,-0.41l1.66,0.73l1.67,-0.19l1.61,-0.65ZM722.9,310.24l-0.64,0.03l-2.26,-1.2l1.11,-0.24l1.78,1.41ZM716.26,305.77l0.88,0.51l1.28,-0.17l0.2,0.35l-4.65,0.73l0.39,-0.67l1.15,-0.02l0.75,-0.73ZM711.66,293.84l-0.38,-0.16l-2.54,1.01l-1.12,-1.44l-1.69,-0.13l-1.16,-0.75l-3.04,0.77l-1.1,-1.15l-3.31,-0.11l-0.35,-3.05l-1.35,-0.95l-1.11,-1.98l-0.33,-2.06l0.27,-2.14l0.9,-1.01l0.37,1.15l2.09,1.49l1.53,-0.48l1.82,0.08l1.38,-1.19l1.0,-0.18l2.28,0.67l2.26,-0.53l1.52,-3.64l1.01,-0.99l0.78,-2.57l4.1,0.3l-1.11,1.77l0.02,0.46l1.7,2.2l-0.23,1.39l2.07,1.71l-2.33,0.42l-0.88,1.9l0.1,2.05l-2.4,1.9l-0.06,2.45l-0.7,2.79ZM692.58,302.03l0.35,0.26l4.8,0.25l0.78,-0.97l4.17,1.09l1.13,1.68l3.69,0.45l2.13,1.04l-1.8,0.6l-2.77,-0.99l-4.8,-0.12l-5.24,-1.41l-1.84,-0.25l-1.11,0.3l-4.26,-0.97l-0.7,-1.14l-1.59,-0.13l1.18,-1.65l2.74,0.13l2.87,1.13l0.26,0.68ZM685.53,299.17l-2.22,0.04l-2.06,-2.03l-3.15,-2.01l-2.93,-3.51l-3.11,-5.33l-2.2,-2.12l-1.64,-4.06l-2.32,-1.69l-1.27,-2.07l-1.96,-1.5l-2.51,-2.65l-0.11,-0.66l4.81,0.53l2.15,2.38l3.31,2.74l2.35,2.66l2.7,0.17l1.95,1.59l1.54,2.17l1.59,0.95l-0.84,1.71l0.15,0.52l1.44,0.87l0.79,0.1l0.4,1.58l0.87,1.4l1.96,0.39l1.0,1.31l-0.6,3.01l-0.09,3.5Z\",name:\"Indonesia\"},UA:{path:\"M492.5,162.44l1.28,-2.49l1.82,0.19l0.66,-0.23l0.09,-0.71l-0.25,-0.75l-0.79,-0.72l-0.33,-1.21l-0.86,-0.62l-0.02,-1.19l-1.13,-0.86l-1.15,-0.19l-2.04,-1.0l-1.66,0.32l-0.66,0.47l-0.92,-0.0l-0.84,0.78l-2.48,0.7l-1.18,-0.71l-3.07,-0.36l-0.89,0.43l-0.24,-0.55l-1.11,-0.7l0.35,-0.93l1.26,-1.02l-0.54,-1.23l2.04,-2.43l1.4,-0.62l0.25,-1.19l-1.04,-2.39l0.83,-0.13l1.28,-0.84l1.8,-0.07l2.47,0.26l2.86,0.81l1.88,0.06l0.86,0.44l1.04,-0.41l0.77,0.66l2.18,-0.15l0.92,0.3l0.52,-0.34l0.15,-1.53l0.56,-0.54l2.85,-0.05l0.84,-0.72l3.04,-0.18l1.23,1.46l-0.48,0.77l0.21,1.03l0.36,0.32l1.8,0.14l0.93,2.08l3.18,1.15l1.94,-0.45l1.67,1.49l1.4,-0.03l3.35,0.96l0.02,0.54l-0.96,1.59l0.47,1.97l-0.26,0.7l-2.36,0.28l-1.29,0.89l-0.23,1.38l-1.83,0.27l-1.58,0.97l-2.41,0.21l-2.16,1.17l-0.21,0.38l0.34,2.26l1.23,0.75l2.13,-0.08l-0.14,0.31l-2.65,0.53l-3.23,1.69l-0.87,-0.39l0.42,-1.1l-0.25,-0.52l-2.21,-0.73l2.35,-1.06l0.12,-0.65l-0.93,-0.82l-3.62,-0.74l-0.13,-0.89l-0.46,-0.34l-2.61,0.59l-0.91,1.69l-1.71,2.04l-0.86,-0.4l-1.62,0.27Z\",name:\"Ukraine\"},QA:{path:\"M549.33,221.64l-0.76,-0.23l-0.14,-1.64l0.84,-1.29l0.47,0.52l0.04,1.34l-0.45,1.3Z\",name:\"Qatar\"},MZ:{path:\"M508.58,318.75l-0.34,-2.57l0.51,-2.05l3.55,0.63l2.5,-0.38l1.02,-0.76l1.49,0.01l2.74,-0.98l1.66,-1.2l0.5,9.24l0.41,1.23l-0.68,1.67l-0.93,1.71l-1.5,1.5l-5.16,2.28l-2.78,2.73l-1.02,0.53l-1.71,1.8l-0.98,0.57l-0.35,2.41l1.16,1.94l0.49,2.17l0.43,0.31l-0.06,2.06l-0.39,1.17l0.5,0.72l-0.25,0.73l-0.92,0.83l-5.12,2.39l-1.22,1.36l0.21,1.13l0.58,0.39l-0.11,0.72l-1.22,-0.01l-0.73,-2.97l0.42,-3.09l-1.78,-5.37l2.49,-2.81l0.69,-1.89l0.44,-0.43l0.28,-1.53l-0.39,-0.93l0.59,-3.65l-0.01,-3.26l-1.49,-1.16l-1.2,-0.22l-1.74,-1.17l-1.92,0.01l-0.29,-2.08l7.06,-1.96l1.28,1.09l0.89,-0.1l0.67,0.44l0.1,0.73l-0.51,1.29l0.19,1.81l1.75,1.83l0.65,-0.13l0.71,-1.65l1.17,-0.86l-0.26,-3.47l-1.05,-1.85l-1.04,-0.94Z\",name:\"Mozambique\"}},height:440.70631074413296,width:900,projection:{type:\"mill\",centralMeridian:11.5}});","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.Choices=t():e.Choices=t()}(window,function(){\"use strict\";var i={282:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var l=i(883);t.addChoice=function(e){var t=e.value,i=e.label,n=e.id,s=e.groupId,o=e.disabled,r=e.elementId,a=e.customProperties,c=e.placeholder,e=e.keyCode;return{type:l.ACTION_TYPES.ADD_CHOICE,value:t,label:i,id:n,groupId:s,disabled:o,elementId:r,customProperties:a,placeholder:c,keyCode:e}},t.filterChoices=function(e){return{type:l.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return{type:l.ACTION_TYPES.ACTIVATE_CHOICES,active:e=void 0===e?!0:e}};t.clearChoices=function(){return{type:l.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.addGroup=void 0;var s=i(883);t.addGroup=function(e){var t=e.value,i=e.id,n=e.active,e=e.disabled;return{type:s.ACTION_TYPES.ADD_GROUP,value:t,id:i,active:n,disabled:e}}},464:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var c=i(883);t.addItem=function(e){var t=e.value,i=e.label,n=e.id,s=e.choiceId,o=e.groupId,r=e.customProperties,a=e.placeholder,e=e.keyCode;return{type:c.ACTION_TYPES.ADD_ITEM,value:t,label:i,id:n,choiceId:s,groupId:o,customProperties:r,placeholder:a,keyCode:e}},t.removeItem=function(e,t){return{type:c.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}};t.highlightItem=function(e,t){return{type:c.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var n=i(883);t.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:n.ACTION_TYPES.RESET_TO,state:e}};t.setIsLoading=function(e){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,i){var f=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(t,\"__esModule\",{value:!0}),n(i(996))),o=n(i(221)),h=i(282),c=i(783),l=i(464),r=i(137),a=i(520),g=i(883),u=i(789),m=i(799),d=i(655),p=n(i(744)),v=n(i(686)),_=\"-ms-scroll-limit\"in document.documentElement.style&&\"-ms-ime-align\"in document.documentElement.style,y={};function E(e,t){void 0===e&&(e=\"[data-choice]\");var i=this,n=(void 0===(t=void 0===t?{}:t).allowHTML&&console.warn(\"Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message.\"),this.config=s.default.all([u.DEFAULT_CONFIG,E.defaults.options,t],{arrayMerge:function(e,t){return f([],t,!0)}}),(0,m.diff)(this.config,u.DEFAULT_CONFIG)),n=(n.length&&console.warn(\"Unknown config option(s) passed\",n.join(\", \")),\"string\"==typeof e?document.querySelector(e):e);if(!(n instanceof HTMLInputElement||n instanceof HTMLSelectElement))throw TypeError(\"Expected one of the following types text|select-one|select-multiple\");this._isTextElement=n.type===g.TEXT_TYPE,this._isSelectOneElement=n.type===g.SELECT_ONE_TYPE,this._isSelectMultipleElement=n.type===g.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,[\"auto\",\"always\"].includes(\"\".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices=\"auto\"),t.addItemFilter&&\"function\"!=typeof t.addItemFilter&&(t=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter),this.config.addItemFilter=t.test.bind(t)),this._isTextElement?this.passedElement=new a.WrappedInput({element:n,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new a.WrappedSelect({element:n,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new p.default,this._initialState=d.defaultState,this._currentState=d.defaultState,this._prevState=d.defaultState,this._currentValue=\"\",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,m.generateId)(this.passedElement.element,\"choices-\"),this._direction=this.passedElement.dir,this._direction||(t=window.getComputedStyle(this.passedElement.element).direction)!==window.getComputedStyle(document.documentElement).direction&&(this._direction=t),this._idNames={itemChoice:\"item-choice\"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement&&(n=this.passedElement.value.split(this.config.delimiter),this._presetItems=this._presetItems.concat(n)),this.passedElement.options&&this.passedElement.options.forEach(function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:\"\"===e.value||e.hasAttribute(\"placeholder\"),customProperties:(0,m.parseCustomProperties)(e.dataset.customProperties)})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive?(this.config.silent||console.warn(\"Trying to initialise Choices on element already initialised\",{element:e}),this.initialised=!0):this.init()}Object.defineProperty(E,\"defaults\",{get:function(){return Object.preventExtensions({get options(){return y},get templates(){return v.default}})},enumerable:!1,configurable:!0}),E.prototype.init=function(){var e;this.initialised||(this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),this.config.addItems&&!this.passedElement.element.hasAttribute(\"disabled\")||this.disable(),this.initialised=!0,(e=this.config.callbackOnInit)&&\"function\"==typeof e&&e.call(this))},E.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},E.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},E.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},E.prototype.highlightItem=function(e,t){var i,n,s;return void 0===t&&(t=!0),e&&e.id&&(i=e.id,s=e.groupId,n=void 0===(n=e.value)?\"\":n,e=void 0===(e=e.label)?\"\":e,s=0<=(s=void 0===s?-1:s)?this._store.getGroupById(s):null,this._store.dispatch((0,l.highlightItem)(i,!0)),t)&&this.passedElement.triggerEvent(g.EVENTS.highlightItem,{id:i,value:n,label:e,groupValue:s&&s.value?s.value:null}),this},E.prototype.unhighlightItem=function(e){var t,i,n;return e&&e.id&&(t=e.id,n=e.groupId,i=void 0===(i=e.value)?\"\":i,e=void 0===(e=e.label)?\"\":e,n=0<=(n=void 0===n?-1:n)?this._store.getGroupById(n):null,this._store.dispatch((0,l.highlightItem)(t,!1)),this.passedElement.triggerEvent(g.EVENTS.highlightItem,{id:t,value:i,label:e,groupValue:n&&n.value?n.value:null})),this},E.prototype.highlightAll=function(){var t=this;return this._store.items.forEach(function(e){return t.highlightItem(e)}),this},E.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach(function(e){return t.unhighlightItem(e)}),this},E.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter(function(e){return e.value===t}).forEach(function(e){return i._removeItem(e)}),this},E.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter(function(e){return e.id!==t}).forEach(function(e){return i._removeItem(e)}),this},E.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach(function(e){i._removeItem(e),t&&i._triggerChange(e.value)}),this},E.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame(function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(g.EVENTS.showDropdown,{})}),this},E.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive&&requestAnimationFrame(function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(g.EVENTS.hideDropdown,{})}),this},E.prototype.getValue=function(i){void 0===i&&(i=!1);var e=this._store.activeItems.reduce(function(e,t){t=i?t.value:t;return e.push(t),e},[]);return this._isSelectOneElement?e[0]:e},E.prototype.setValue=function(e){var t=this;return this.initialised&&e.forEach(function(e){return t._setChoiceOrItem(e)}),this},E.prototype.setChoiceByValue=function(e){var t=this;return this.initialised&&!this._isTextElement&&(Array.isArray(e)?e:[e]).forEach(function(e){return t._findAndSelectChoiceByValue(e)}),this},E.prototype.setChoices=function(e,t,i,n){var s=this;if(void 0===e&&(e=[]),void 0===t&&(t=\"value\"),void 0===i&&(i=\"label\"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError(\"setChoices was called on a non-initialized instance of Choices\");if(!this._isSelectElement)throw new TypeError(\"setChoices can't be used with INPUT based Choices\");if(\"string\"!=typeof t||!t)throw new TypeError(\"value parameter must be a name of 'value' field in passed objects\");if(n&&this.clearChoices(),\"function\"==typeof e){var o=e(this);if(\"function\"==typeof Promise&&o instanceof Promise)return new Promise(function(e){return requestAnimationFrame(e)}).then(function(){return s._handleLoadingState(!0)}).then(function(){return o}).then(function(e){return s.setChoices(e,t,i,n)}).catch(function(e){s.config.silent||console.error(e)}).then(function(){return s._handleLoadingState(!1)}).then(function(){return s});if(Array.isArray(o))return this.setChoices(o,t,i,!1);throw new TypeError(\".setChoices first argument function must return either array of choices or Promise, got: \".concat(typeof o))}if(Array.isArray(e))return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach(function(e){e.choices?s._addGroup({id:e.id?parseInt(\"\".concat(e.id),10):null,group:e,valueKey:t,labelKey:i}):s._addChoice({value:e[t],label:e[i],isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:e.customProperties})}),this._stopLoading(),this;throw new TypeError(\".setChoices must be called either with array of choices with a function resulting into Promise of array of choices\")},E.prototype.clearChoices=function(){return this._store.dispatch((0,h.clearChoices)()),this},E.prototype.clearStore=function(){return this._store.dispatch((0,r.clearAll)()),this},E.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))),this},E.prototype._render=function(){var e,t,i;this._store.isLoading()||(this._currentState=this._store.state,e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items,e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState))},E.prototype._renderChoices=function(){var e,t,i=this,n=this._store,s=n.activeGroups,n=n.activeChoices,o=document.createDocumentFragment();this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return i.choiceList.scrollToTop()}),1<=s.length&&!this._isSearching?(1<=(e=n.filter(function(e){return!0===e.placeholder&&-1===e.groupId})).length&&(o=this._createChoicesFragment(e,o)),o=this._createGroupsFragment(s,n,o)):1<=n.length&&(o=this._createChoicesFragment(n,o)),o.childNodes&&0<o.childNodes.length?(e=this._store.activeItems,(s=this._canAddItem(e,this.input.value)).response?(this.choiceList.append(o),this._highlightChoice()):(t=this._getTemplate(\"notice\",s.notice),this.choiceList.append(t))):(t=n=void 0,n=this._isSearching?(t=\"function\"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,this._getTemplate(\"notice\",t,\"no-results\")):(t=\"function\"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,this._getTemplate(\"notice\",t,\"no-choices\")),this.choiceList.append(n))},E.prototype._renderItems=function(){var e=this._store.activeItems||[],e=(this.itemList.clear(),this._createItemsFragment(e));e.childNodes&&this.itemList.append(e)},E.prototype._createGroupsFragment=function(e,n,s){var o=this;void 0===s&&(s=document.createDocumentFragment());return this.config.shouldSort&&e.sort(this.config.sorter),e.forEach(function(e){t=e;var t,i=n.filter(function(e){return o._isSelectOneElement?e.groupId===t.id:e.groupId===t.id&&(\"always\"===o.config.renderSelectedChoices||!e.selected)});1<=i.length&&(e=o._getTemplate(\"choiceGroup\",e),s.appendChild(e),o._createChoicesFragment(i,s,!0))}),s},E.prototype._createChoicesFragment=function(e,t,i){var n=this,s=(void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1),this.config),o=s.renderSelectedChoices,r=s.searchResultLimit,s=s.renderChoiceLimit,a=this._isSearching?m.sortByScore:this.config.sorter,c=e,e=(c=\"auto\"!==o||this._isSelectOneElement?c:e.filter(function(e){return!e.selected})).reduce(function(e,t){return(t.placeholder?e.placeholderChoices:e.normalChoices).push(t),e},{placeholderChoices:[],normalChoices:[]}),l=e.placeholderChoices,e=e.normalChoices,h=((this.config.shouldSort||this._isSearching)&&e.sort(a),c.length),u=this._isSelectOneElement?f(f([],l,!0),e,!0):e;this._isSearching?h=r:s&&0<s&&!i&&(h=s);for(var d,p=0;p<h;p+=1)u[p]&&(d=u[p],\"auto\"===o&&!n._isSelectOneElement&&d.selected||(d=n._getTemplate(\"choice\",d,n.config.itemSelectText),t.appendChild(d)));return t},E.prototype._createItemsFragment=function(e,t){var i=this,n=(void 0===t&&(t=document.createDocumentFragment()),this.config),s=n.shouldSortItems,o=n.sorter,r=n.removeItemButton;s&&!this._isSelectOneElement&&e.sort(o),this._isTextElement?this.passedElement.value=e.map(function(e){return e.value}).join(this.config.delimiter):this.passedElement.options=e;return e.forEach(function(e){e=i._getTemplate(\"item\",e,r);t.appendChild(e)}),t},E.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(g.EVENTS.change,{value:e})},E.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},E.prototype._handleButtonAction=function(e,t){var i;e&&t&&this.config.removeItems&&this.config.removeItemButton&&(t=(i=t.parentNode&&t.parentNode.dataset.id)&&e.find(function(e){return e.id===parseInt(i,10)}))&&(this._removeItem(t),this._triggerChange(t.value),this._isSelectOneElement)&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice)},E.prototype._handleItemAction=function(e,t,i){var n,s=this;void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement&&(n=t.dataset.id,e.forEach(function(e){e.id!==parseInt(\"\".concat(n),10)||e.highlighted?!i&&e.highlighted&&s.unhighlightItem(e):s.highlightItem(e)}),this.input.focus())},E.prototype._handleChoiceAction=function(e,t){var i,n;e&&t&&(t=(t=t.dataset.id)&&this._store.getChoiceById(t))&&(i=e[0]&&e[0].keyCode?e[0].keyCode:void 0,n=this.dropdown.isActive,t.keyCode=i,this.passedElement.triggerEvent(g.EVENTS.choice,{choice:t}),t.selected||t.disabled||this._canAddItem(e,t.value).response&&(this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode}),this._triggerChange(t.value)),this.clearInput(),n)&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())},E.prototype._handleBackspace=function(e){var t;this.config.removeItems&&e&&(t=e[e.length-1],e=e.some(function(e){return e.highlighted}),this.config.editItems&&!e&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(e||this.highlightItem(t,!1),this.removeHighlightedItems(!0)))},E.prototype._startLoading=function(){this._store.dispatch((0,r.setIsLoading)(!0))},E.prototype._stopLoading=function(){this._store.dispatch((0,r.setIsLoading)(!1))},E.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(\".\".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate(\"placeholder\",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||\"\"):this.input.placeholder=this._placeholderValue||\"\")},E.prototype._handleSearch=function(e){var t,i,n;this.input.isFocussed&&(i=this._store.choices,n=(t=this.config).searchFloor,t=t.searchChoices,i=i.some(function(e){return!e.active}),null!=e&&e.length>=n?(n=t?this._searchChoices(e):0,this.passedElement.triggerEvent(g.EVENTS.search,{value:e,resultCount:n})):i&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))))},E.prototype._canAddItem=function(e,t){var i,n=!0,s=\"function\"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;return this._isSelectOneElement||(i=(0,m.existsInArray)(e,t),0<this.config.maxItemCount&&this.config.maxItemCount<=e.length&&(n=!1,s=\"function\"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&i&&n&&(n=!1,s=\"function\"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&\"function\"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,s=\"function\"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)),{response:n,notice:s}},E.prototype._searchChoices=function(e){var t,i,e=\"string\"==typeof e?e.trim():e,n=\"string\"==typeof this._currentValue?this._currentValue.trim():this._currentValue;return e.length<1&&e===\"\".concat(n,\" \")?0:(n=this._store.searchableChoices,t=e,i=Object.assign(this.config.fuseOptions,{keys:f([],this.config.searchFields,!0),includeMatches:!0}),n=new o.default(n,i).search(t),this._currentValue=e,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,h.filterChoices)(n)),n.length)},E.prototype._addEventListeners=function(){var e=document.documentElement;e.addEventListener(\"touchend\",this._onTouchEnd,!0),this.containerOuter.element.addEventListener(\"keydown\",this._onKeyDown,!0),this.containerOuter.element.addEventListener(\"mousedown\",this._onMouseDown,!0),e.addEventListener(\"click\",this._onClick,{passive:!0}),e.addEventListener(\"touchmove\",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener(\"mouseover\",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener(\"focus\",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener(\"blur\",this._onBlur,{passive:!0})),this.input.element.addEventListener(\"keyup\",this._onKeyUp,{passive:!0}),this.input.element.addEventListener(\"focus\",this._onFocus,{passive:!0}),this.input.element.addEventListener(\"blur\",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener(\"reset\",this._onFormReset,{passive:!0}),this.input.addEventListeners()},E.prototype._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener(\"touchend\",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener(\"keydown\",this._onKeyDown,!0),this.containerOuter.element.removeEventListener(\"mousedown\",this._onMouseDown,!0),e.removeEventListener(\"click\",this._onClick),e.removeEventListener(\"touchmove\",this._onTouchMove),this.dropdown.element.removeEventListener(\"mouseover\",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener(\"focus\",this._onFocus),this.containerOuter.element.removeEventListener(\"blur\",this._onBlur)),this.input.element.removeEventListener(\"keyup\",this._onKeyUp),this.input.element.removeEventListener(\"focus\",this._onFocus),this.input.element.removeEventListener(\"blur\",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener(\"reset\",this._onFormReset),this.input.removeEventListeners()},E.prototype._onKeyDown=function(e){var t=e.keyCode,i=this._store.activeItems,n=this.input.isFocussed,s=this.dropdown.isActive,o=this.itemList.hasChildren(),r=String.fromCharCode(t),r=/[^\\x00-\\x1F]/.test(r),a=g.KEY_CODES.BACK_KEY,c=g.KEY_CODES.DELETE_KEY,l=g.KEY_CODES.ENTER_KEY,h=g.KEY_CODES.A_KEY,u=g.KEY_CODES.ESC_KEY,d=g.KEY_CODES.UP_KEY,p=g.KEY_CODES.DOWN_KEY,f=g.KEY_CODES.PAGE_UP_KEY,m=g.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||s||!r||(this.showDropdown(),this.input.isFocussed)||(this.input.value+=e.key.toLowerCase()),t){case h:return this._onSelectKey(e,o);case l:return this._onEnterKey(e,i,s);case u:return this._onEscapeKey(s);case d:case f:case p:case m:return this._onDirectionKey(e,s);case c:case a:return this._onDeleteKey(e,i,n)}},E.prototype._onKeyUp=function(e){var t=e.target,e=e.keyCode,i=this.input.value,n=this._store.activeItems,n=this._canAddItem(n,i),s=g.KEY_CODES.BACK_KEY,o=g.KEY_CODES.DELETE_KEY;this._isTextElement?n.notice&&i?(i=this._getTemplate(\"notice\",n.notice),this.dropdown.element.innerHTML=i.outerHTML,this.showDropdown(!0)):this.hideDropdown(!0):(i=(e===s||e===o)&&t&&!t.value,s=!this._isTextElement&&this._isSearching,e=this._canSearch&&n.response,i&&s?(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))):e&&this._handleSearch(this.input.rawValue)),this._canSearch=this.config.searchEnabled},E.prototype._onSelectKey=function(e,t){var i=e.ctrlKey,e=e.metaKey;(i||e)&&t&&(this._canSearch=!1,this.config.removeItems)&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll()},E.prototype._onEnterKey=function(e,t,i){var n,s=e.target,o=g.KEY_CODES.ENTER_KEY,r=s&&s.hasAttribute(\"data-button\");this._isTextElement&&s&&s.value&&(n=this.input.value,this._canAddItem(t,n).response)&&(this.hideDropdown(!0),this._addItem({value:n}),this._triggerChange(n),this.clearInput()),r&&(this._handleButtonAction(t,s),e.preventDefault()),i?((n=this.dropdown.getChild(\".\".concat(this.config.classNames.highlightedState)))&&(t[0]&&(t[0].keyCode=o),this._handleChoiceAction(t,n)),e.preventDefault()):this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},E.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},E.prototype._onDirectionKey=function(e,t){var i,n=e.keyCode,s=e.metaKey,o=g.KEY_CODES.DOWN_KEY,r=g.KEY_CODES.PAGE_UP_KEY,a=g.KEY_CODES.PAGE_DOWN_KEY;(t||this._isSelectOneElement)&&(this.showDropdown(),this._canSearch=!1,t=n===o||n===a?1:-1,o=\"[data-choice-selectable]\",i=void 0,(i=s||n===a||n===r?0<t?this.dropdown.element.querySelector(\"\".concat(o,\":last-of-type\")):this.dropdown.element.querySelector(o):(s=this.dropdown.element.querySelector(\".\".concat(this.config.classNames.highlightedState)))?(0,m.getAdjacentEl)(s,o,t):this.dropdown.element.querySelector(o))&&((0,m.isScrolledIntoView)(i,this.choiceList.element,t)||this.choiceList.scrollToChildElement(i,t),this._highlightChoice(i)),e.preventDefault())},E.prototype._onDeleteKey=function(e,t,i){var n=e.target;this._isSelectOneElement||n.value||!i||(this._handleBackspace(t),e.preventDefault())},E.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},E.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&(t!==this.containerOuter.element&&t!==this.containerInner.element||(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},E.prototype._onMouseDown=function(e){var t,i,n,s=e.target;s instanceof HTMLElement&&(_&&this.choiceList.element.contains(s)&&(t=this.choiceList.element.firstElementChild,t=\"ltr\"===this._direction?e.offsetX>=t.offsetWidth:e.offsetX<t.offsetLeft,this._isScrollingOnIe=t),s!==this.input.element)&&((t=s.closest(\"[data-button],[data-item],[data-choice]\"))instanceof HTMLElement&&(s=e.shiftKey,i=this._store.activeItems,\"button\"in(n=t.dataset)?this._handleButtonAction(i,t):\"item\"in n?this._handleItemAction(i,t,s):\"choice\"in n&&this._handleChoiceAction(i,t)),e.preventDefault())},E.prototype._onMouseOver=function(e){e=e.target;e instanceof HTMLElement&&\"choice\"in e.dataset&&this._highlightChoice(e)},E.prototype._onClick=function(e){e=e.target;this.containerOuter.element.contains(e)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(0<this._store.highlightedActiveItems.length&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},E.prototype._onFocus=function(e){var t=this,i=e.target;i&&this.containerOuter.element.contains(i)&&((e={})[g.TEXT_TYPE]=function(){i===t.input.element&&t.containerOuter.addFocusState()},e[g.SELECT_ONE_TYPE]=function(){t.containerOuter.addFocusState(),i===t.input.element&&t.showDropdown(!0)},e[g.SELECT_MULTIPLE_TYPE]=function(){i===t.input.element&&(t.showDropdown(!0),t.containerOuter.addFocusState())},e[this.passedElement.element.type]())},E.prototype._onBlur=function(e){var t,i=this,n=e.target;n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe?(t=this._store.activeItems.some(function(e){return e.highlighted}),(e={})[g.TEXT_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),t&&i.unhighlightAll(),i.hideDropdown(!0))},e[g.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState(),n!==i.input.element&&(n!==i.containerOuter.element||i._canSearch)||i.hideDropdown(!0)},e[g.SELECT_MULTIPLE_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),i.hideDropdown(!0),t)&&i.unhighlightAll()},e[this.passedElement.element.type]()):(this._isScrollingOnIe=!1,this.input.element.focus())},E.prototype._onFormReset=function(){this._store.dispatch((0,r.resetTo)(this._initialState))},E.prototype._highlightChoice=function(e){var t=this,i=(void 0===e&&(e=null),Array.from(this.dropdown.element.querySelectorAll(\"[data-choice-selectable]\")));i.length&&(e=e,Array.from(this.dropdown.element.querySelectorAll(\".\".concat(this.config.classNames.highlightedState))).forEach(function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute(\"aria-selected\",\"false\")}),e?this._highlightPosition=i.indexOf(e):e=(e=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||i[0],e.classList.add(this.config.classNames.highlightedState),e.setAttribute(\"aria-selected\",\"true\"),this.passedElement.triggerEvent(g.EVENTS.highlightChoice,{el:e}),this.dropdown.isActive)&&(this.input.setActiveDescendant(e.id),this.containerOuter.setActiveDescendant(e.id))},E.prototype._addItem=function(e){var t=e.value,i=e.label,i=void 0===i?null:i,n=e.choiceId,n=void 0===n?-1:n,s=e.groupId,s=void 0===s?-1:s,o=e.customProperties,o=void 0===o?{}:o,r=e.placeholder,r=void 0!==r&&r,e=e.keyCode,e=void 0===e?-1:e,t=\"string\"==typeof t?t.trim():t,a=this._store.items,i=i||t,n=n||-1,c=0<=s?this._store.getGroupById(s):null,a=a?a.length+1:1;this.config.prependValue&&(t=this.config.prependValue+t.toString()),this.config.appendValue&&(t+=this.config.appendValue.toString()),this._store.dispatch((0,l.addItem)({value:t,label:i,id:a,choiceId:n,groupId:s,customProperties:o,placeholder:r,keyCode:e})),this._isSelectOneElement&&this.removeActiveItems(a),this.passedElement.triggerEvent(g.EVENTS.addItem,{id:a,value:t,label:i,customProperties:o,groupValue:c&&c.value?c.value:null,keyCode:e})},E.prototype._removeItem=function(e){var t=e.id,i=e.value,n=e.label,s=e.customProperties,o=e.choiceId,e=e.groupId,e=e&&0<=e?this._store.getGroupById(e):null;t&&o&&(this._store.dispatch((0,l.removeItem)(t,o)),this.passedElement.triggerEvent(g.EVENTS.removeItem,{id:t,value:i,label:n,customProperties:s,groupValue:e&&e.value?e.value:null}))},E.prototype._addChoice=function(e){var t,i,n=e.value,s=e.label,o=e.isSelected,o=void 0!==o&&o,r=e.isDisabled,r=void 0!==r&&r,a=e.groupId,a=void 0===a?-1:a,c=e.customProperties,c=void 0===c?{}:c,l=e.placeholder,l=void 0!==l&&l,e=e.keyCode,e=void 0===e?-1:e;null!=n&&(s=(void 0===s?null:s)||n,t=(t=this._store.choices)?t.length+1:1,i=\"\".concat(this._baseId,\"-\").concat(this._idNames.itemChoice,\"-\").concat(t),this._store.dispatch((0,h.addChoice)({id:t,groupId:a,elementId:i,value:n,label:s,disabled:r,customProperties:c,placeholder:l,keyCode:e})),o)&&this._addItem({value:n,label:s,choiceId:t,customProperties:c,placeholder:l,keyCode:e})},E.prototype._addGroup=function(e){var i=this,t=e.group,n=e.id,s=e.valueKey,o=void 0===s?\"value\":s,s=e.labelKey,r=void 0===s?\"label\":s,e=(0,m.isType)(\"Object\",t)?t.choices:Array.from(t.getElementsByTagName(\"OPTION\")),a=n||Math.floor((new Date).valueOf()*Math.random()),s=t.disabled||!1;e?(this._store.dispatch((0,c.addGroup)({value:t.label,id:a,active:!0,disabled:s})),e.forEach(function(e){var t=e.disabled||e.parentNode&&e.parentNode.disabled;i._addChoice({value:e[o],label:(0,m.isType)(\"Object\",e)?e[r]:e.innerHTML,isSelected:e.selected,isDisabled:t,groupId:a,customProperties:e.customProperties,placeholder:e.placeholder})})):this._store.dispatch((0,c.addGroup)({value:t.label,id:t.id,active:!1,disabled:t.disabled}))},E.prototype._getTemplate=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return(e=this._templates[e]).call.apply(e,f([this,this.config],t,!1))},E.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&\"function\"==typeof e&&(t=e.call(this,m.strToEl)),this._templates=(0,s.default)(v.default,t)},E.prototype._createElements=function(){this.containerOuter=new a.Container({element:this._getTemplate(\"containerOuter\",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new a.Container({element:this._getTemplate(\"containerInner\"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new a.Input({element:this._getTemplate(\"input\",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new a.List({element:this._getTemplate(\"choiceList\",this._isSelectOneElement)}),this.itemList=new a.List({element:this._getTemplate(\"itemList\",this._isSelectOneElement)}),this.dropdown=new a.Dropdown({element:this._getTemplate(\"dropdown\"),classNames:this.config.classNames,type:this.passedElement.element.type})},E.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||\"\":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},E.prototype._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&i.parentNode&&\"SELECT\"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach(function(e){return t._addGroup({group:e,id:e.id||null})})},E.prototype._addPredefinedChoices=function(e){var a=this,c=(this.config.shouldSort&&e.sort(this.config.sorter),e.some(function(e){return e.selected})),l=e.findIndex(function(e){return void 0===e.disabled||!e.disabled});e.forEach(function(e,t){var i,n=e.value,n=void 0===n?\"\":n,s=e.label,o=e.customProperties,r=e.placeholder;a._isSelectElement?e.choices?a._addGroup({group:e,id:e.id||null}):(t=!!(a._isSelectOneElement&&!c&&t===l)||e.selected,i=e.disabled,a._addChoice({value:n,label:s,isSelected:!!t,isDisabled:!!i,placeholder:!!r,customProperties:o})):a._addChoice({value:n,label:s,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:o})})},E.prototype._addPredefinedItems=function(e){var t=this;e.forEach(function(e){\"object\"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),\"string\"==typeof e&&t._addItem({value:e})})},E.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,m.getType)(e).toLowerCase()]()},E.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find(function(e){return i.config.valueComparer(e.value,t)});e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},E.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption)return(e=this.passedElement.placeholderOption)?e.text:null;var e=this.config,t=e.placeholder,e=e.placeholderValue,i=this.passedElement.element.dataset;if(t){if(e)return e;if(i.placeholder)return i.placeholder}return null},t.default=E},613:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var n=i(799),s=i(883);function o(e){var t=e.element,i=e.type,n=e.classNames,e=e.position;this.element=t,this.classNames=n,this.type=i,this.position=e,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}o.prototype.addEventListeners=function(){this.element.addEventListener(\"focus\",this._onFocus),this.element.addEventListener(\"blur\",this._onBlur)},o.prototype.removeEventListeners=function(){this.element.removeEventListener(\"focus\",this._onFocus),this.element.removeEventListener(\"blur\",this._onBlur)},o.prototype.shouldFlip=function(e){var t;return\"number\"==typeof e&&(t=!1,\"auto\"===this.position?t=!window.matchMedia(\"(min-height: \".concat(e+1,\"px)\")).matches:\"top\"===this.position&&(t=!0),t)},o.prototype.setActiveDescendant=function(e){this.element.setAttribute(\"aria-activedescendant\",e)},o.prototype.removeActiveDescendant=function(){this.element.removeAttribute(\"aria-activedescendant\")},o.prototype.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute(\"aria-expanded\",\"true\"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},o.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute(\"aria-expanded\",\"false\"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},o.prototype.focus=function(){this.isFocussed||this.element.focus()},o.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},o.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},o.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute(\"aria-disabled\"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute(\"tabindex\",\"0\"),this.isDisabled=!1},o.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute(\"aria-disabled\",\"true\"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute(\"tabindex\",\"-1\"),this.isDisabled=!0},o.prototype.wrap=function(e){(0,n.wrap)(e,this.element)},o.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},o.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute(\"aria-busy\",\"true\"),this.isLoading=!0},o.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute(\"aria-busy\"),this.isLoading=!1},o.prototype._onFocus=function(){this.isFocussed=!0},o.prototype._onBlur=function(){this.isFocussed=!1},t.default=o},217:function(e,t){function i(e){var t=e.element,i=e.type,e=e.classNames;this.element=t,this.classNames=e,this.type=i,this.isActive=!1}Object.defineProperty(t,\"__esModule\",{value:!0}),Object.defineProperty(i.prototype,\"distanceFromTopWindow\",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),i.prototype.getChild=function(e){return this.element.querySelector(e)},i.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute(\"aria-expanded\",\"true\"),this.isActive=!0,this},i.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute(\"aria-expanded\",\"false\"),this.isActive=!1,this},t.default=i},520:function(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(t,\"__esModule\",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0,n(i(217))),s=(t.Dropdown=s.default,n(i(613))),s=(t.Container=s.default,n(i(11))),s=(t.Input=s.default,n(i(624))),s=(t.List=s.default,n(i(541))),s=(t.WrappedInput=s.default,n(i(982)));t.WrappedSelect=s.default},11:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var n=i(799),s=i(883);function o(e){var t=e.element,i=e.type,n=e.classNames,e=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=e,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}Object.defineProperty(o.prototype,\"placeholder\",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,\"value\",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,\"rawValue\",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),o.prototype.addEventListeners=function(){this.element.addEventListener(\"paste\",this._onPaste),this.element.addEventListener(\"input\",this._onInput,{passive:!0}),this.element.addEventListener(\"focus\",this._onFocus,{passive:!0}),this.element.addEventListener(\"blur\",this._onBlur,{passive:!0})},o.prototype.removeEventListeners=function(){this.element.removeEventListener(\"input\",this._onInput),this.element.removeEventListener(\"paste\",this._onPaste),this.element.removeEventListener(\"focus\",this._onFocus),this.element.removeEventListener(\"blur\",this._onBlur)},o.prototype.enable=function(){this.element.removeAttribute(\"disabled\"),this.isDisabled=!1},o.prototype.disable=function(){this.element.setAttribute(\"disabled\",\"\"),this.isDisabled=!0},o.prototype.focus=function(){this.isFocussed||this.element.focus()},o.prototype.blur=function(){this.isFocussed&&this.element.blur()},o.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=\"\"),e&&this.setWidth(),this},o.prototype.setWidth=function(){var e=this.element,t=e.style,i=e.value,e=e.placeholder;t.minWidth=\"\".concat(e.length+1,\"ch\"),t.width=\"\".concat(i.length+1,\"ch\")},o.prototype.setActiveDescendant=function(e){this.element.setAttribute(\"aria-activedescendant\",e)},o.prototype.removeActiveDescendant=function(){this.element.removeAttribute(\"aria-activedescendant\")},o.prototype._onInput=function(){this.type!==s.SELECT_ONE_TYPE&&this.setWidth()},o.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},o.prototype._onFocus=function(){this.isFocussed=!0},o.prototype._onBlur=function(){this.isFocussed=!1},t.default=o},624:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var r=i(883);function n(e){e=e.element;this.element=e,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}n.prototype.clear=function(){this.element.innerHTML=\"\"},n.prototype.append=function(e){this.element.appendChild(e)},n.prototype.getChild=function(e){return this.element.querySelector(e)},n.prototype.hasChildren=function(){return this.element.hasChildNodes()},n.prototype.scrollToTop=function(){this.element.scrollTop=0},n.prototype.scrollToChildElement=function(e,t){var i,n,s,o=this;e&&(i=this.element.offsetHeight,i=this.element.scrollTop+i,n=e.offsetHeight,n=e.offsetTop+n,s=0<t?this.element.scrollTop+n-i:e.offsetTop,requestAnimationFrame(function(){o._animateScroll(s,t)}))},n.prototype._scrollDown=function(e,t,i){i=(i-e)/t;this.element.scrollTop=e+(1<i?i:1)},n.prototype._scrollUp=function(e,t,i){i=(e-i)/t;this.element.scrollTop=e-(1<i?i:1)},n.prototype._animateScroll=function(e,t){var i=this,n=r.SCROLLING_SPEED,s=this.element.scrollTop,o=!1;0<t?(this._scrollDown(s,n,e),s<e&&(o=!0)):(this._scrollUp(s,n,e),e<s&&(o=!0)),o&&requestAnimationFrame(function(){i._animateScroll(e,t)})},t.default=n},730:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0});var n=i(799);function s(e){var t=e.element,e=e.classNames;if(this.element=t,this.classNames=e,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError(\"Invalid element passed\");this.isDisabled=!1}Object.defineProperty(s.prototype,\"isActive\",{get:function(){return\"active\"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,\"dir\",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,\"value\",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),s.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute(\"style\");e&&this.element.setAttribute(\"data-choice-orig-style\",e),this.element.setAttribute(\"data-choice\",\"active\")},s.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute(\"tabindex\");var e=this.element.getAttribute(\"data-choice-orig-style\");e?(this.element.removeAttribute(\"data-choice-orig-style\"),this.element.setAttribute(\"style\",e)):this.element.removeAttribute(\"style\"),this.element.removeAttribute(\"data-choice\"),this.element.value=this.element.value},s.prototype.enable=function(){this.element.removeAttribute(\"disabled\"),this.element.disabled=!1,this.isDisabled=!1},s.prototype.disable=function(){this.element.setAttribute(\"disabled\",\"\"),this.element.disabled=!0,this.isDisabled=!0},s.prototype.triggerEvent=function(e,t){(0,n.dispatchEvent)(this.element,e,t)},t.default=s},541:function(e,t,i){var n,s,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=(Object.defineProperty(t,\"__esModule\",{value:!0}),r(i(730))),i=(s=r.default,o(a,s),Object.defineProperty(a.prototype,\"value\",{get:function(){return this.element.value},set:function(e){this.element.setAttribute(\"value\",e),this.element.value=e},enumerable:!1,configurable:!0}),a);function a(e){var t=e.element,i=e.classNames,e=e.delimiter,t=s.call(this,{element:t,classNames:i})||this;return t.delimiter=e,t}t.default=i},982:function(e,t,i){var n,s,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=(Object.defineProperty(t,\"__esModule\",{value:!0}),r(i(730))),i=(s=r.default,o(a,s),Object.defineProperty(a.prototype,\"placeholderOption\",{get:function(){return this.element.querySelector('option[value=\"\"]')||this.element.querySelector(\"option[placeholder]\")},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"optionGroups\",{get:function(){return Array.from(this.element.getElementsByTagName(\"OPTGROUP\"))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"options\",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach(function(e){e=t.template(e),i.appendChild(e)}),this.appendDocFragment(i)},enumerable:!1,configurable:!0}),a.prototype.appendDocFragment=function(e){this.element.innerHTML=\"\",this.element.appendChild(e)},a);function a(e){var t=e.element,i=e.classNames,e=e.template,t=s.call(this,{element:t,classNames:i})||this;return t.template=e,t}t.default=i},883:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:\"showDropdown\",hideDropdown:\"hideDropdown\",change:\"change\",choice:\"choice\",search:\"search\",addItem:\"addItem\",removeItem:\"removeItem\",highlightItem:\"highlightItem\",highlightChoice:\"highlightChoice\",unhighlightItem:\"unhighlightItem\"},t.ACTION_TYPES={ADD_CHOICE:\"ADD_CHOICE\",FILTER_CHOICES:\"FILTER_CHOICES\",ACTIVATE_CHOICES:\"ACTIVATE_CHOICES\",CLEAR_CHOICES:\"CLEAR_CHOICES\",ADD_GROUP:\"ADD_GROUP\",ADD_ITEM:\"ADD_ITEM\",REMOVE_ITEM:\"REMOVE_ITEM\",HIGHLIGHT_ITEM:\"HIGHLIGHT_ITEM\",CLEAR_ALL:\"CLEAR_ALL\",RESET_TO:\"RESET_TO\",SET_IS_LOADING:\"SET_IS_LOADING\"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE=\"text\",t.SELECT_ONE_TYPE=\"select-one\",t.SELECT_MULTIPLE_TYPE=\"select-multiple\",t.SCROLLING_SPEED=4},789:function(e,t,i){Object.defineProperty(t,\"__esModule\",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var n=i(799);t.DEFAULT_CLASSNAMES={containerOuter:\"choices\",containerInner:\"choices__inner\",input:\"choices__input\",inputCloned:\"choices__input--cloned\",list:\"choices__list\",listItems:\"choices__list--multiple\",listSingle:\"choices__list--single\",listDropdown:\"choices__list--dropdown\",item:\"choices__item\",itemSelectable:\"choices__item--selectable\",itemDisabled:\"choices__item--disabled\",itemChoice:\"choices__item--choice\",placeholder:\"choices__placeholder\",group:\"choices__group\",groupHeading:\"choices__heading\",button:\"choices__button\",activeState:\"is-active\",focusState:\"is-focused\",openState:\"is-open\",disabledState:\"is-disabled\",highlightedState:\"is-highlighted\",selectedState:\"is-selected\",flippedState:\"is-flipped\",loadingState:\"is-loading\",noResults:\"has-no-results\",noChoices:\"has-no-choices\"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:\",\",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:[\"label\",\"value\"],position:\"auto\",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:\"auto\",loadingText:\"Loading...\",noResultsText:\"No results found\",noChoicesText:\"No choices to choose from\",itemSelectText:\"Press to select\",uniqueItemText:\"Only unique values can be added\",customAddItemText:\"Only values matching specific conditions can be added\",addItemText:function(e){return'Press Enter to add <b>\"'.concat((0,n.sanitise)(e),'\"</b>')},maxItemText:function(e){return\"Only \".concat(e,\" values can be added\")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:\"\",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},978:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},948:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},359:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},285:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},533:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},187:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(t,i);s&&(\"get\"in s?t.__esModule:!s.writable&&!s.configurable)||(s={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,s)}:function(e,t,i,n){e[n=void 0===n?i:n]=t[i]}),s=this&&this.__exportStar||function(e,t){for(var i in e)\"default\"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,\"__esModule\",{value:!0}),s(i(18),t),s(i(978),t),s(i(948),t),s(i(359),t),s(i(285),t),s(i(533),t),s(i(287),t),s(i(132),t),s(i(837),t),s(i(598),t),s(i(369),t),s(i(37),t),s(i(47),t),s(i(923),t),s(i(876),t)},287:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},132:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},837:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},598:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},37:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},369:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},47:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},923:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},876:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0})},799:function(e,i){Object.defineProperty(i,\"__esModule\",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0;var t;i.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},i.generateChars=function(e){return Array.from({length:e},function(){return(0,i.getRandomNumber)(0,36).toString(36)}).join(\"\")},i.generateId=function(e,t){e=(e=e.id||e.name&&\"\".concat(e.name,\"-\").concat((0,i.generateChars)(2))||(0,i.generateChars)(4)).replace(/(:|\\.|\\[|\\]|,)/g,\"\");return e=\"\".concat(t,\"-\").concat(e)},i.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},i.isType=function(e,t){return null!=t&&(0,i.getType)(t)===e},i.wrap=function(e,t){return void 0===t&&(t=document.createElement(\"div\")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},i.getAdjacentEl=function(e,t,i){for(var n=\"\".concat(0<(i=void 0===i?1:i)?\"next\":\"previous\",\"ElementSibling\"),s=e[n];s;){if(s.matches(t))return s;s=s[n]}return s},i.isScrolledIntoView=function(e,t,i){return!!e&&(0<(i=void 0===i?1:i)?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},i.sanitise=function(e){return\"string\"!=typeof e?e:e.replace(/&/g,\"&\").replace(/>/g,\">\").replace(/</g,\"<\").replace(/\"/g,\""\")},i.strToEl=(t=document.createElement(\"div\"),function(e){for(e=e.trim(),t.innerHTML=e,e=t.children[0];t.firstChild;)t.removeChild(t.firstChild);return e}),i.sortByAlpha=function(e,t){var i=e.value,e=e.label,i=void 0===e?i:e,e=t.value,t=t.label;return i.localeCompare(void 0===t?e:t,[],{sensitivity:\"base\",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(e,t){e=e.score,t=t.score;return(void 0===e?0:e)-(void 0===t?0:t)},i.dispatchEvent=function(e,t,i){void 0===i&&(i=null);t=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});return e.dispatchEvent(t)},i.existsInArray=function(e,t,i){return void 0===i&&(i=\"value\"),e.some(function(e){return\"string\"==typeof t?e[i]===t.trim():e[i]===t})},i.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},i.diff=function(e,t){var e=Object.keys(e).sort(),i=Object.keys(t).sort();return e.filter(function(e){return i.indexOf(e)<0})};i.parseCustomProperties=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(e){return t}return{}}},273:function(e,a){var c=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(a,\"__esModule\",{value:!0}),a.defaultState=void 0,a.defaultState=[],a.default=function(e,t){switch(void 0===e&&(e=a.defaultState),(t=void 0===t?{}:t).type){case\"ADD_CHOICE\":var i=t,i={id:i.id,elementId:i.elementId,groupId:i.groupId,value:i.value,label:i.label||i.value,disabled:i.disabled||!1,selected:!1,active:!0,score:9999,customProperties:i.customProperties,placeholder:i.placeholder||!1};return c(c([],e,!0),[i],!1);case\"ADD_ITEM\":var n=t;return-1<n.choiceId?e.map(function(e){return e.id===parseInt(\"\".concat(n.choiceId),10)&&(e.selected=!0),e}):e;case\"REMOVE_ITEM\":var s=t;return s.choiceId&&-1<s.choiceId?e.map(function(e){return e.id===parseInt(\"\".concat(s.choiceId),10)&&(e.selected=!1),e}):e;case\"FILTER_CHOICES\":var o=t;return e.map(function(e){var i=e;return i.active=o.results.some(function(e){var t=e.item,e=e.score;return t.id===i.id&&(i.score=e,!0)}),i});case\"ACTIVATE_CHOICES\":var r=t;return e.map(function(e){return e.active=r.active,e});case\"CLEAR_CHOICES\":return a.defaultState;default:return e}}},871:function(e,n){var s=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(n,\"__esModule\",{value:!0}),n.defaultState=void 0,n.defaultState=[],n.default=function(e,t){switch(void 0===e&&(e=n.defaultState),(t=void 0===t?{}:t).type){case\"ADD_GROUP\":var i=t;return s(s([],e,!0),[{id:i.id,value:i.value,active:i.active,disabled:i.disabled}],!1);case\"CLEAR_CHOICES\":return[];default:return e}}},655:function(e,i,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(i,\"__esModule\",{value:!0}),i.defaultState=void 0,t(791)),o=n(t(52)),r=n(t(871)),a=n(t(273)),n=n(t(502)),c=t(799),l=(i.defaultState={groups:[],items:[],choices:[],loading:!1},(0,s.combineReducers)({items:o.default,groups:r.default,choices:a.default,loading:n.default}));i.default=function(e,t){if(\"CLEAR_ALL\"===t.type)e=i.defaultState;else if(\"RESET_TO\"===t.type)return(0,c.cloneObject)(t.state);return l(e,t)}},52:function(e,s){var o=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(s,\"__esModule\",{value:!0}),s.defaultState=void 0,s.defaultState=[],s.default=function(e,t){switch(void 0===e&&(e=s.defaultState),(t=void 0===t?{}:t).type){case\"ADD_ITEM\":var i=t;return o(o([],e,!0),[{id:i.id,choiceId:i.choiceId,groupId:i.groupId,value:i.value,label:i.label,active:!0,highlighted:!1,customProperties:i.customProperties,placeholder:i.placeholder||!1,keyCode:null}],!1).map(function(e){return e.highlighted=!1,e});case\"REMOVE_ITEM\":return e.map(function(e){return e.id===t.id&&(e.active=!1),e});case\"HIGHLIGHT_ITEM\":var n=t;return e.map(function(e){return e.id===n.id&&(e.highlighted=n.highlighted),e});default:return e}}},502:function(e,i){Object.defineProperty(i,\"__esModule\",{value:!0}),i.defaultState=void 0,i.defaultState=!1;i.default=function(e,t){return void 0===e&&(e=i.defaultState),\"SET_IS_LOADING\"!==(t=void 0===t?{}:t).type?e:t.isLoading}},744:function(e,t,i){var n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(t,\"__esModule\",{value:!0}),i(791)),r=s(i(655));function a(){this._store=(0,o.createStore)(r.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}a.prototype.subscribe=function(e){this._store.subscribe(e)},a.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(a.prototype,\"state\",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"items\",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"activeItems\",{get:function(){return this.items.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"highlightedActiveItems\",{get:function(){return this.items.filter(function(e){return e.active&&e.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"choices\",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"activeChoices\",{get:function(){return this.choices.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"selectableChoices\",{get:function(){return this.choices.filter(function(e){return!0!==e.disabled})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"searchableChoices\",{get:function(){return this.selectableChoices.filter(function(e){return!0!==e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"placeholderChoice\",{get:function(){return n([],this.choices,!0).reverse().find(function(e){return!0===e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"groups\",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,\"activeGroups\",{get:function(){var e=this.groups,i=this.choices;return e.filter(function(e){var e=!0===e.active&&!1===e.disabled,t=i.some(function(e){return!0===e.active&&!1===e.disabled});return e&&t},[])},enumerable:!1,configurable:!0}),a.prototype.isLoading=function(){return this.state.loading},a.prototype.getChoiceById=function(t){return this.activeChoices.find(function(e){return e.id===parseInt(t,10)})},a.prototype.getGroupById=function(t){return this.groups.find(function(e){return e.id===t})},t.default=a},686:function(e,t){Object.defineProperty(t,\"__esModule\",{value:!0}),t.default={containerOuter:function(e,t,i,n,s,o,r){e=e.classNames.containerOuter,e=Object.assign(document.createElement(\"div\"),{className:e});return e.dataset.type=o,t&&(e.dir=t),n&&(e.tabIndex=0),i&&(e.setAttribute(\"role\",s?\"combobox\":\"listbox\"),s)&&e.setAttribute(\"aria-autocomplete\",\"list\"),e.setAttribute(\"aria-haspopup\",\"true\"),e.setAttribute(\"aria-expanded\",\"false\"),r&&e.setAttribute(\"aria-labelledby\",r),e},containerInner:function(e){e=e.classNames.containerInner;return Object.assign(document.createElement(\"div\"),{className:e})},itemList:function(e,t){var e=e.classNames,i=e.list,n=e.listSingle,e=e.listItems;return Object.assign(document.createElement(\"div\"),{className:\"\".concat(i,\" \").concat(t?n:e)})},placeholder:function(e,t){var i=e.allowHTML,e=e.classNames.placeholder;return Object.assign(document.createElement(\"div\"),((e={className:e})[i?\"innerHTML\":\"innerText\"]=t,e))},item:function(e,t,i){var n=e.allowHTML,e=e.classNames,s=e.item,o=e.button,r=e.highlightedState,a=e.itemSelectable,e=e.placeholder,c=t.id,l=t.value,h=t.label,u=t.customProperties,d=t.active,p=t.disabled,f=t.highlighted,t=t.placeholder,h=Object.assign(document.createElement(\"div\"),((s={className:s})[n?\"innerHTML\":\"innerText\"]=h,s));return Object.assign(h.dataset,{item:\"\",id:c,value:l,customProperties:u}),d&&h.setAttribute(\"aria-selected\",\"true\"),p&&h.setAttribute(\"aria-disabled\",\"true\"),t&&h.classList.add(e),h.classList.add(f?r:a),i&&(p&&h.classList.remove(a),h.dataset.deletable=\"\",s=\"Remove item\",(u=Object.assign(document.createElement(\"button\"),((c={type:\"button\",className:o})[n?\"innerHTML\":\"innerText\"]=s,c))).setAttribute(\"aria-label\",\"\".concat(s,\": '\").concat(l,\"'\")),u.dataset.button=\"\",h.appendChild(u)),h},choiceList:function(e,t){e=e.classNames.list,e=Object.assign(document.createElement(\"div\"),{className:e});return t||e.setAttribute(\"aria-multiselectable\",\"true\"),e.setAttribute(\"role\",\"listbox\"),e},choiceGroup:function(e,t){var i=e.allowHTML,e=e.classNames,n=e.group,s=e.groupHeading,e=e.itemDisabled,o=t.id,r=t.value,t=t.disabled,n=Object.assign(document.createElement(\"div\"),{className:\"\".concat(n,\" \").concat(t?e:\"\")});return n.setAttribute(\"role\",\"group\"),Object.assign(n.dataset,{group:\"\",id:o,value:r}),t&&n.setAttribute(\"aria-disabled\",\"true\"),n.appendChild(Object.assign(document.createElement(\"div\"),((e={className:s})[i?\"innerHTML\":\"innerText\"]=r,e))),n},choice:function(e,t,i){var n=e.allowHTML,e=e.classNames,s=e.item,o=e.itemChoice,r=e.itemSelectable,a=e.selectedState,c=e.itemDisabled,e=e.placeholder,l=t.id,h=t.value,u=t.label,d=t.groupId,p=t.elementId,f=t.disabled,m=t.selected,t=t.placeholder,n=Object.assign(document.createElement(\"div\"),((p={id:p})[n?\"innerHTML\":\"innerText\"]=u,p.className=\"\".concat(s,\" \").concat(o),p));return m&&n.classList.add(a),t&&n.classList.add(e),n.setAttribute(\"role\",d&&0<d?\"treeitem\":\"option\"),Object.assign(n.dataset,{choice:\"\",id:l,value:h,selectText:i}),f?(n.classList.add(c),n.dataset.choiceDisabled=\"\",n.setAttribute(\"aria-disabled\",\"true\")):(n.classList.add(r),n.dataset.choiceSelectable=\"\"),n},input:function(e,t){var e=e.classNames,i=e.input,e=e.inputCloned,i=Object.assign(document.createElement(\"input\"),{type:\"search\",name:\"search_terms\",className:\"\".concat(i,\" \").concat(e),autocomplete:\"off\",autocapitalize:\"off\",spellcheck:!1});return i.setAttribute(\"role\",\"textbox\"),i.setAttribute(\"aria-autocomplete\",\"list\"),i.setAttribute(\"aria-label\",t),i},dropdown:function(e){var e=e.classNames,t=e.list,e=e.listDropdown,i=document.createElement(\"div\");return i.classList.add(t,e),i.setAttribute(\"aria-expanded\",\"false\"),i},notice:function(e,t,i){var n=e.allowHTML,e=e.classNames,s=e.item,o=e.itemChoice,r=e.noResults,e=e.noChoices,s=[s,o];return\"no-choices\"===(i=void 0===i?\"\":i)?s.push(e):\"no-results\"===i&&s.push(r),Object.assign(document.createElement(\"div\"),((o={})[n?\"innerHTML\":\"innerText\"]=t,o.className=s.join(\" \"),o))},option:function(e){var t=e.label,i=e.value,n=e.customProperties,s=e.active,e=e.disabled,t=new Option(t,i,!1,s);return n&&(t.dataset.customProperties=\"\".concat(n)),t.disabled=!!e,t}}},996:function(e){function s(e){return!(!(t=e)||\"object\"!=typeof t||(t=e,\"[object RegExp]\"===(e=Object.prototype.toString.call(t)))||\"[object Date]\"===e||function(e){return e.$$typeof===i}(t));var t}var i=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function o(e,t,i){return e.concat(t).map(function(e){return a(e,i)})}function t(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function c(e,t){try{return t in e}catch(e){return!1}}function r(n,s,o){var r={};return o.isMergeableObject(n)&&t(n).forEach(function(e){r[e]=a(n[e],o)}),t(s).forEach(function(e){var t,i;(!c(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(c(n,e)&&o.isMergeableObject(s[e])?r[e]=(t=e,((i=o).customMerge&&\"function\"==typeof(i=i.customMerge(t))?i:l)(n[e],s[e],o)):r[e]=a(s[e],o))}),r}function l(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||s,i.cloneUnlessOtherwiseSpecified=a;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):r(e,t,i):a(t,i)}l.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,i)},{});throw new Error(\"first argument should be an array\")},e.exports=l},221:function(F,e,t){function l(e){return Array.isArray?Array.isArray(e):\"[object Array]\"===n(e)}t.r(e),t.d(e,{default:function(){return j}});const i=1/0;function c(e){return null==e?\"\":\"string\"==typeof(e=e)?e:\"0\"==(t=e+\"\")&&1/e==-i?\"-0\":t;var t}function u(e){return\"string\"==typeof e}function d(e){return\"number\"==typeof e}function h(e){return!0===e||!1===e||p(t=e)&&null!==t&&\"[object Boolean]\"==n(e);var t}function p(e){return\"object\"==typeof e}function f(e){return null!=e}function m(e){return!e.trim().length}function n(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":Object.prototype.toString.call(e)}const a=Object.prototype.hasOwnProperty;class s{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{e=o(e);t+=e.weight,this._keys.push(e),this._keyMap[e.id]=e,t+=e.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function o(e){let t=null,i=null,n=null,s=1,o=null;if(u(e)||l(e))n=e,t=g(e),i=v(e);else{if(!a.call(e,\"name\"))throw new Error(\"Missing name property in key\");var r=e.name;if(n=r,a.call(e,\"weight\")&&(s=e.weight)<=0)throw new Error(`Property 'weight' in key '${r}' must be a positive integer`);t=g(r),i=v(r),o=e.getFn}return{path:t,id:i,weight:s,src:n,getFn:o}}function g(e){return l(e)?e:e.split(\".\")}function v(e){return l(e)?e.join(\".\"):e}var L={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(e,t){let o=[],r=!1;const a=(e,i,n)=>{if(f(e))if(i[n]){var s=e[i[n]];if(f(s))if(n===i.length-1&&(u(s)||d(s)||h(s)))o.push(c(s));else if(l(s)){r=!0;for(let e=0,t=s.length;e<t;e+=1)a(s[e],i,n+1)}else i.length&&a(s,i,n+1)}else o.push(e)};return a(e,u(t)?t.split(\".\"):t,0),r?o:o[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const k=/[^ ]+/g;class r{constructor({getFn:e=L.getFn,fieldNormWeight:t=L.fieldNormWeight}={}){this.norm=function(i=1,e){const n=new Map,s=Math.pow(10,e);return{get(e){var t,e=e.match(k).length;return n.has(e)?n.get(e):(t=1/Math.pow(e,.5*i),t=parseFloat(Math.round(t*s)/s),n.set(e,t),t)},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,u(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){var t=this.size();u(e)?this._addString(e,t):this._addObject(e,t)}removeAt(i){this.records.splice(i,1);for(let e=i,t=this.size();e<t;e+=1)--this.records[e].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){f(e)&&!m(e)&&(t={v:e,i:t,n:this.norm.get(e)},this.records.push(t))}_addObject(a,e){let c={i:e,$:{}};this.keys.forEach((e,t)=>{let i=e.getFn?e.getFn(a):this.getFn(a,e.path);if(f(i))if(l(i)){var n,s=[];const o=[{nestedArrIndex:-1,value:i}];for(;o.length;){const{nestedArrIndex:r,value:i}=o.pop();f(i)&&(u(i)&&!m(i)?(n={v:i,i:r,n:this.norm.get(i)},s.push(n)):l(i)&&i.forEach((e,t)=>{o.push({nestedArrIndex:t,value:e})}))}c.$[t]=s}else u(i)&&!m(i)&&(e={v:i,n:this.norm.get(i)},c.$[t]=e)}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function _(e,t,{getFn:i=L.getFn,fieldNormWeight:n=L.fieldNormWeight}={}){i=new r({getFn:i,fieldNormWeight:n});return i.setKeys(e.map(o)),i.setSources(t),i.create(),i}function A(e,{errors:t=0,currentLocation:i=0,expectedLocation:n=0,distance:s=L.distance,ignoreLocation:o=L.ignoreLocation}={}){t/=e.length;return o?t:(e=Math.abs(n-i),s?t+e/s:e?1:t)}function R(s,o,r,{location:e=L.location,distance:a=L.distance,threshold:t=L.threshold,findAllMatches:c=L.findAllMatches,minMatchCharLength:i=L.minMatchCharLength,includeMatches:n=L.includeMatches,ignoreLocation:l=L.ignoreLocation}={}){if(32<o.length)throw new Error(\"Pattern length exceeds max of 32.\");var h=o.length,u=s.length,d=Math.max(0,Math.min(e,u));let p=t,f=d;for(var m,g=1<i||n,v=g?Array(u):[];-1<(m=s.indexOf(o,f));){var _=A(o,{currentLocation:m,expectedLocation:d,distance:a,ignoreLocation:l});if(p=Math.min(_,p),f=m+h,g){let e=0;for(;e<h;)v[m+e]=1,e+=1}}f=-1;let y=[],E=1,b=h+u;var S=1<<h-1;for(let n=0;n<h;n+=1){let e=0,t=b;for(;e<t;)A(o,{errors:n,currentLocation:d+t,expectedLocation:d,distance:a,ignoreLocation:l})<=p?e=t:b=t,t=Math.floor((b-e)/2+e);b=t;let i=Math.max(1,d-t+1);var O=c?u:Math.min(d+t,u)+h,I=Array(O+2);I[O+1]=(1<<n)-1;for(let e=O;e>=i;--e){var C=e-1,T=r[s.charAt(C)];if(g&&(v[C]=+!!T),I[e]=(I[e+1]<<1|1)&T,n&&(I[e]|=(y[e+1]|y[e])<<1|1|y[e+1]),I[e]&S&&(E=A(o,{errors:n,currentLocation:C,expectedLocation:d,distance:a,ignoreLocation:l}))<=p){if(p=E,(f=C)<=d)break;i=Math.max(1,2*d-f)}}if(A(o,{errors:n+1,currentLocation:d,expectedLocation:d,distance:a,ignoreLocation:l})>p)break;y=I}e={isMatch:0<=f,score:Math.max(.001,E)};return g&&((t=function(e=[],t=L.minMatchCharLength){var i=[];let n=-1,s=0;for(var o=e.length;s<o;s+=1){var r=e[s];r&&-1===n?n=s:r||-1===n||((r=s-1)-n+1>=t&&i.push([n,r]),n=-1)}return e[s-1]&&s-n>=t&&i.push([n,s-1]),i}(v,i)).length?n&&(e.indices=t):e.isMatch=!1),e}class y{constructor(e,{location:t=L.location,threshold:i=L.threshold,distance:n=L.distance,includeMatches:s=L.includeMatches,findAllMatches:o=L.findAllMatches,minMatchCharLength:r=L.minMatchCharLength,isCaseSensitive:a=L.isCaseSensitive,ignoreLocation:c=L.ignoreLocation}={}){if(this.options={location:t,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?e:e.toLowerCase(),this.chunks=[],this.pattern.length){var l=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(i){var n={};for(let e=0,t=i.length;e<t;e+=1){var s=i.charAt(e);n[s]=(n[s]||0)|1<<t-e-1}return n}(e),startIndex:t})},t=this.pattern.length;if(32<t){let e=0;for(var i=t%32,h=t-i;e<h;)l(this.pattern.substr(e,32),e),e+=32;i&&l(this.pattern.substr(n=t-32),n)}else l(this.pattern,0)}}searchIn(n){const{isCaseSensitive:e,includeMatches:s}=this.options;if(e||(n=n.toLowerCase()),this.pattern===n)return t={isMatch:!0,score:0},s&&(t.indices=[[0,n.length-1]]),t;const{location:o,distance:r,threshold:a,findAllMatches:c,minMatchCharLength:l,ignoreLocation:h}=this.options;let u=[],d=0,p=!1;this.chunks.forEach(({pattern:e,alphabet:t,startIndex:i})=>{var{isMatch:e,score:t,indices:i}=R(n,e,t,{location:o+i,distance:r,threshold:a,findAllMatches:c,minMatchCharLength:l,includeMatches:s,ignoreLocation:h});e&&(p=!0),d+=t,e&&i&&(u=[...u,...i])});var t={isMatch:p,score:p?d/this.chunks.length:1};return p&&s&&(t.indices=u),t}}class E{constructor(e){this.pattern=e}static isMultiMatch(e){return b(e,this.multiRegex)}static isSingleMatch(e){return b(e,this.singleRegex)}search(){}}function b(e,t){e=e.match(t);return e?e[1]:null}class S extends E{constructor(e,{location:t=L.location,threshold:i=L.threshold,distance:n=L.distance,includeMatches:s=L.includeMatches,findAllMatches:o=L.findAllMatches,minMatchCharLength:r=L.minMatchCharLength,isCaseSensitive:a=L.isCaseSensitive,ignoreLocation:c=L.ignoreLocation}={}){super(e),this._bitapSearch=new y(e,{location:t,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:a,ignoreLocation:c})}static get type(){return\"fuzzy\"}static get multiRegex(){return/^\"(.*)\"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class O extends E{constructor(e){super(e)}static get type(){return\"include\"}static get multiRegex(){return/^'\"(.*)\"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0;for(var i,n=[],s=this.pattern.length;-1<(i=e.indexOf(this.pattern,t));)t=i+s,n.push([i,t-1]);var o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const I=[class extends E{constructor(e){super(e)}static get type(){return\"exact\"}static get multiRegex(){return/^=\"(.*)\"$/}static get singleRegex(){return/^=(.*)$/}search(e){e=e===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},O,class extends E{constructor(e){super(e)}static get type(){return\"prefix-exact\"}static get multiRegex(){return/^\\^\"(.*)\"$/}static get singleRegex(){return/^\\^(.*)$/}search(e){e=e.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"inverse-prefix-exact\"}static get multiRegex(){return/^!\\^\"(.*)\"$/}static get singleRegex(){return/^!\\^(.*)$/}search(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"inverse-suffix-exact\"}static get multiRegex(){return/^!\"(.*)\"\\$$/}static get singleRegex(){return/^!(.*)\\$$/}search(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"suffix-exact\"}static get multiRegex(){return/^\"(.*)\"\\$$/}static get singleRegex(){return/^(.*)\\$$/}search(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends E{constructor(e){super(e)}static get type(){return\"inverse-exact\"}static get multiRegex(){return/^!\"(.*)\"$/}static get singleRegex(){return/^!(.*)$/}search(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},S],C=I.length,K=/ +(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)/;const H=new Set([S.type,O.type]);class Y{constructor(e,{isCaseSensitive:t=L.isCaseSensitive,includeMatches:i=L.includeMatches,minMatchCharLength:n=L.minMatchCharLength,ignoreLocation:s=L.ignoreLocation,findAllMatches:o=L.findAllMatches,location:r=L.location,threshold:a=L.threshold,distance:c=L.distance}={}){var h;this.query=null,this.options={isCaseSensitive:t,includeMatches:i,minMatchCharLength:n,findAllMatches:o,ignoreLocation:s,location:r,threshold:a,distance:c},this.pattern=t?e:e.toLowerCase(),this.query=([i,h={}]=[this.pattern,this.options],i.split(\"|\").map(e=>{var n=e.trim().split(K).filter(e=>e&&!!e.trim()),s=[];for(let i=0,e=n.length;i<e;i+=1){var o=n[i];let e=!1,t=-1;for(;!e&&++t<C;){var r=I[t],a=r.isMultiMatch(o);a&&(s.push(new r(a,h)),e=!0)}if(!e)for(t=-1;++t<C;){var c=I[t],l=c.isSingleMatch(o);if(l){s.push(new c(l,h));break}}}return s}))}static condition(e,t){return t.useExtendedSearch}searchIn(o){var r=this.query;if(r){var{includeMatches:a,isCaseSensitive:e}=this.options;o=e?o:o.toLowerCase();let i=0,n=[],s=0;for(let e=0,t=r.length;e<t;e+=1){var c,l=r[e];n.length=0;for(let e=i=0,t=l.length;e<t;e+=1){var h=l[e],{isMatch:u,indices:d,score:p}=h.search(o);if(!u){s=0,i=0,n.length=0;break}i+=1,s+=p,a&&(u=h.constructor.type,H.has(u)?n=[...n,...d]:n.push(d))}if(i)return c={isMatch:!0,score:s/i},a&&(c.indices=n),c}}return{isMatch:!1,score:1}}}const T=[];function w(i,n){for(let e=0,t=T.length;e<t;e+=1){var s=T[e];if(s.condition(i,n))return new s(i,n)}return new y(i,n)}const M={AND:\"$and\",OR:\"$or\"},P={PATH:\"$path\",PATTERN:\"$val\"},N=e=>!(!e[M.AND]&&!e[M.OR]),x=t=>({[M.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function D(e,r,{auto:a=!0}={}){const c=t=>{var e=Object.keys(t),i=!!t[P.PATH];if(!i&&1<e.length&&!N(t))return c(x(t));if(!l(s=t)&&p(s)&&!N(s)){var n,s=i?t[P.PATH]:e[0],i=i?t[P.PATTERN]:t[s];if(u(i))return n={keyId:v(s),pattern:i},a&&(n.searcher=w(i,r)),n;throw new Error(\"Invalid value for key \"+s)}let o={children:[],operator:e[0]};return e.forEach(e=>{e=t[e];l(e)&&e.forEach(e=>{o.children.push(c(e))})}),o};return N(e)||(e=x(e)),c(e)}function V(e,n){e=e.matches;n.matches=[],f(e)&&e.forEach(e=>{var t,i;f(e.indices)&&e.indices.length&&({indices:i,value:t}=e,i={indices:i,value:t},e.key&&(i.key=e.key.src),-1<e.idx&&(i.refIndex=e.idx),n.matches.push(i))})}function B(e,t){t.score=e.score}class j{constructor(e,t={},i){this.options={...L,...t},this.options.useExtendedSearch,this._keyStore=new s(this.options.keys),this.setCollection(e,i)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof r))throw new Error(\"Incorrect 'index' type\");this._myIndex=t||_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){f(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(i=()=>!1){var n=[];for(let e=0,t=this._docs.length;e<t;e+=1){var s=this._docs[e];i(s,e)&&(this.removeAt(e),--e,--t,n.push(s))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){var s,{includeMatches:i,includeScore:n,shouldSort:o,sortFn:r,ignoreFieldNorm:a}=this.options;let c=u(e)?u(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);[e,{ignoreFieldNorm:s=L.ignoreFieldNorm}]=[c,{ignoreFieldNorm:a}],e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:t,score:i})=>{e=e?e.weight:null;n*=Math.pow(0===i&&e?Number.EPSILON:i,(e||1)*(s?1:t))}),e.score=n}),o&&c.sort(r),d(t)&&-1<t&&(c=c.slice(0,t));{var[a,l,{includeMatches:e=L.includeMatches,includeScore:o=L.includeScore}]=[c,this._docs,{includeMatches:i,includeScore:n}];const h=[];return e&&h.push(V),o&&h.push(B),a.map(t=>{var e=t[\"idx\"];const i={item:l[e],refIndex:e};return h.length&&h.forEach(e=>{e(t,i)}),i})}}_searchStringList(e){const r=w(e,this.options);e=this._myIndex.records;const a=[];return e.forEach(({v:e,i:t,n:i})=>{var n,s,o;f(e)&&({isMatch:n,score:s,indices:o}=r.searchIn(e),n)&&a.push({item:e,idx:t,matches:[{score:s,value:e,norm:i,indices:o}]})}),a}_searchLogical(e){const n=D(e,this.options),a=(i,n,s)=>{var e,t;if(!i.children)return{keyId:t,searcher:e}=i,(t=this._findMatches({key:this._keyStore.get(t),value:this._myIndex.getValueForItemAtKeyId(n,t),searcher:e}))&&t.length?[{idx:s,item:n,matches:t}]:[];var o=[];for(let e=0,t=i.children.length;e<t;e+=1){var r=i.children[e],r=a(r,n,s);if(r.length)o.push(...r);else if(i.operator===M.AND)return[]}return o};e=this._myIndex.records;const s={},o=[];return e.forEach(({$:e,i:t})=>{var i;f(e)&&(i=a(n,e,t)).length&&(s[t]||(s[t]={idx:t,item:e,matches:[]},o.push(s[t])),i.forEach(({matches:e})=>{s[t].matches.push(...e)}))}),o}_searchObjectList(e){const s=w(e,this.options),{keys:t,records:i}=this._myIndex,o=[];return i.forEach(({$:n,i:e})=>{if(f(n)){let i=[];t.forEach((e,t)=>{i.push(...this._findMatches({key:e,value:n[t],searcher:s}))}),i.length&&o.push({idx:e,item:n,matches:i})}}),o}_findMatches({key:r,value:e,searcher:a}){if(!f(e))return[];let c=[];var t,i,n,s;return l(e)?e.forEach(({v:e,i:t,n:i})=>{var n,s,o;f(e)&&({isMatch:n,score:s,indices:o}=a.searchIn(e),n)&&c.push({score:s,key:r,value:e,idx:t,norm:i,indices:o})}):({v:e,n:t}=e,{isMatch:i,score:n,indices:s}=a.searchIn(e),i&&c.push({score:n,key:r,value:e,norm:t,indices:s})),c}}j.version=\"6.6.2\",j.createIndex=_,j.parseIndex=function(e,{getFn:t=L.getFn,fieldNormWeight:i=L.fieldNormWeight}={}){var{keys:e,records:n}=e;return(t=new r({getFn:t,fieldNormWeight:i})).setKeys(e),t.setIndexRecords(n),t},j.config=L,j.parseQuery=D,t=[Y],T.push(...t)},791:function(e,t,i){function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(e){e=function(e,t){if(\"object\"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return(\"string\"===t?String:Number)(e);if(\"object\"!==n(i=i.call(e,t||\"default\")))return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}(e,\"string\");return\"symbol\"===n(e)?e:String(e)}function r(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function a(n){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?r(Object(s),!0).forEach(function(e){var t,i;t=n,i=s[e=e],(e=o(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(s,e))})}return n}function d(e){return\"Minified Redux error #\"+e+\"; visit https://redux.js.org/Errors?code=\"+e+\" for the full message or use the non-minified dev environment for full errors. \"}i.r(t),i.d(t,{__DO_NOT_USE__ActionTypes:function(){return f},applyMiddleware:function(){return _},bindActionCreators:function(){return u},combineReducers:function(){return l},compose:function(){return v},createStore:function(){return g},legacy_createStore:function(){return c}});function s(){return Math.random().toString(36).substring(7).split(\"\").join(\".\")}var p=\"function\"==typeof Symbol&&Symbol.observable||\"@@observable\",f={INIT:\"@@redux/INIT\"+s(),REPLACE:\"@@redux/REPLACE\"+s(),PROBE_UNKNOWN_ACTION:function(){return\"@@redux/PROBE_UNKNOWN_ACTION\"+s()}};function m(e){if(\"object\"==typeof e&&null!==e){for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}}function g(e,t,i){if(\"function\"==typeof t&&\"function\"==typeof i||\"function\"==typeof i&&\"function\"==typeof arguments[3])throw new Error(d(0));if(\"function\"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if(\"function\"!=typeof i)throw new Error(d(1));return i(g)(e,t)}if(\"function\"!=typeof e)throw new Error(d(2));var n=e,s=t,o=[],r=o,a=!1;function c(){r===o&&(r=o.slice())}function l(){if(a)throw new Error(d(3));return s}function h(t){if(\"function\"!=typeof t)throw new Error(d(4));if(a)throw new Error(d(5));var i=!0;return c(),r.push(t),function(){if(i){if(a)throw new Error(d(6));i=!1,c();var e=r.indexOf(t);r.splice(e,1),o=null}}}function u(e){if(!m(e))throw new Error(d(7));if(void 0===e.type)throw new Error(d(8));if(a)throw new Error(d(9));try{a=!0,s=n(s,e)}finally{a=!1}for(var t=o=r,i=0;i<t.length;i++)(0,t[i])();return e}return u({type:f.INIT}),(i={dispatch:u,subscribe:h,getState:l,replaceReducer:function(e){if(\"function\"!=typeof e)throw new Error(d(10));n=e,u({type:f.REPLACE})}})[p]=function(){var i=h,e={subscribe:function(e){if(\"object\"!=typeof e||null===e)throw new Error(d(11));function t(){e.next&&e.next(l())}return t(),{unsubscribe:i(t)}}};return e[p]=function(){return this},e},i}var c=g;function l(e){for(var t=Object.keys(e),c={},i=0;i<t.length;i++){var n=t[i];\"function\"==typeof e[n]&&(c[n]=e[n])}var l,s,h=Object.keys(c);try{s=c,Object.keys(s).forEach(function(e){e=s[e];if(void 0===e(void 0,{type:f.INIT}))throw new Error(d(12));if(void 0===e(void 0,{type:f.PROBE_UNKNOWN_ACTION()}))throw new Error(d(13))})}catch(e){l=e}return function(e,t){if(void 0===e&&(e={}),l)throw l;for(var i=!1,n={},s=0;s<h.length;s++){var o=h[s],r=c[o],a=e[o],r=r(a,t);if(void 0===r)throw t&&t.type,new Error(d(14));n[o]=r,i=i||r!==a}return(i=i||h.length!==Object.keys(e).length)?n:e}}function h(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t){if(\"function\"==typeof e)return h(e,t);if(\"object\"!=typeof e||null===e)throw new Error(d(16));var i,n={};for(i in e){var s=e[i];\"function\"==typeof s&&(n[i]=h(s,t))}return n}function v(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function _(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return function(s){return function(){var e=s.apply(void 0,arguments),t=function(){throw new Error(d(15))},i={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},n=o.map(function(e){return e(i)}),t=v.apply(void 0,n)(e.dispatch);return a(a({},e),{},{dispatch:t})}}}}},n={};function s(e){var t=n[e];return void 0!==t||(t=n[e]={exports:{}},i[e].call(t.exports,t,t.exports,s)),t.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var e={},t=s(373),t=s.n(t);return s(187),s(883),s(789),s(686),e.default=t(),e=e.default});","!function(t,e){\"object\"==typeof module&&module.exports?(e.default=e,module.exports=t.document?e(t):e):\"function\"==typeof define&&define.amd?define(\"highcharts/highcharts\",function(){return e(t)}):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e(t))}(\"undefined\"!=typeof window?window:this,function(r){\"use strict\";var t={};function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),\"function\"==typeof CustomEvent&&r.dispatchEvent(new CustomEvent(\"HighchartsModuleLoaded\",{detail:{path:e,module:t[e]}})))}return e(t,\"Core/Globals.js\",[],function(){var t,e,i,o;return(e=t=t||{}).SVG_NS=\"http://www.w3.org/2000/svg\",e.product=\"Highcharts\",e.version=\"10.3.3\",e.win=void 0!==r?r:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,\"svg\").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||\"\",e.isChrome=-1!==e.userAgent.indexOf(\"Chrome\"),e.isFirefox=-1!==e.userAgent.indexOf(\"Firefox\"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf(\"Safari\"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf(\"AppleWebKit\"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&parseInt(e.userAgent.split(\"Firefox/\")[1],10)<4,e.hasTouch=!!e.win.TouchEvent,e.marginNames=[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],e.noop=function(){},e.supportsPassiveEvents=(o=!1,e.isMS||(i=Object.defineProperty({},\"passive\",{get:function(){o=!0}}),e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener(\"testPassive\",e.noop,i),e.win.removeEventListener(\"testPassive\",e.noop,i))),o),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0,t}),e(t,\"Core/Utilities.js\",[t[\"Core/Globals.js\"]],function(h){var e=h.charts,l=h.doc,c=h.win;function d(t,e,i,o){var r,s=e?\"Highcharts error\":\"Highcharts warning\",n=f(t=32===t?s+\": Deprecated member\":t),a=n?s+\" #\"+t+\": www.highcharts.com/errors/\"+t+\"/\":t.toString();void 0!==o&&(r=\"\",n&&(a+=\"?\"),S(o,function(t,e){r+=\"\\n - \".concat(e,\": \").concat(t),n&&(a+=encodeURI(e)+\"=\"+encodeURI(t))}),a+=r),C(h,\"displayError\",{chart:i,code:t,message:a,params:o},function(){if(e)throw new Error(a);c.console&&-1===d.messages.indexOf(a)&&console.warn(a)}),d.messages.push(a)}function p(t,e){return parseInt(t,e||10)}function n(t){return\"string\"==typeof t}function i(t){t=Object.prototype.toString.call(t);return\"[object Array]\"===t||\"[object Array Iterator]\"===t}function a(t,e){return!(!t||\"object\"!=typeof t||e&&i(t))}function s(t){return a(t)&&\"number\"==typeof t.nodeType}function u(t){var e=t&&t.constructor;return!(!a(t,!0)||s(t)||!e||!e.name||\"Object\"===e.name)}function f(t){return\"number\"==typeof t&&!isNaN(t)&&t<1/0&&-1/0<t}function g(t){return null!=t}function o(i,t,e){function o(t,e){g(t)?i.setAttribute(e,t):s?(r=i.getAttribute(e))||\"class\"!==e||(r=i.getAttribute(e+\"Name\")):i.removeAttribute(e)}var r,s=n(t)&&!g(e);return n(t)?o(e,t):S(t,o),r}function m(t,e){for(var i in t=t||{},e)t[i]=e[i];return t}function y(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function v(t,e){h.isMS&&!h.svg&&e&&g(e.opacity)&&(e.filter=\"alpha(opacity=\".concat(100*e.opacity,\")\")),m(t.style,e)}function x(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function b(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}(d=d||{}).messages=[];Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var r,t=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){for(var i=t.length,o=0;o<i;o++)if(e(t[o],o))return t[o]};function S(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function k(r,e,i){function s(t,e){var i=r.removeEventListener||h.removeEventListenerPolyfill;i&&i.call(r,t,e,!1)}function t(i){var t,o;r.nodeName&&(e?(t={})[e]=!0:t=i,S(t,function(t,e){if(i[e])for(o=i[e].length;o--;)s(e,i[e][o].fn)}))}var o,n,a=\"function\"==typeof r&&r.prototype||r;Object.hasOwnProperty.call(a,\"hcEvents\")&&(o=a.hcEvents,e?(n=o[e]||[],i?(o[e]=n.filter(function(t){return i!==t.fn}),s(e,i)):(t(o),o[e]=[])):(t(o),delete a.hcEvents))}function C(e,t,i,o){var r;if(i=i||{},l.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==h))(r=l.createEvent(\"Events\")).initEvent(t,!0,!0),i=m(r,i),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(t,i);else if(e.hcEvents){i.target||m(i,{preventDefault:function(){i.defaultPrevented=!0},target:e,type:t});for(var s=[],n=e,a=!1;n.hcEvents;)Object.hasOwnProperty.call(n,\"hcEvents\")&&n.hcEvents[t]&&(s.length&&(a=!0),s.unshift.apply(s,n.hcEvents[t])),n=Object.getPrototypeOf(n);a&&s.sort(function(t,e){return t.order-e.order}),s.forEach(function(t){!1===t.fn.call(e,i)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(e,i)}S({map:\"map\",each:\"forEach\",grep:\"filter\",reduce:\"reduce\",some:\"some\"},function(i,o){h[o]=function(t){var e;return d(32,!1,void 0,((e={})[\"Highcharts.\".concat(o)]=\"use Array.\".concat(i),e)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}});function M(){return\"highcharts-\"+(r?\"\":w)+T++}var w,T;w=Math.random().toString(36).substring(2,9)+\"-\",T=0;return c.jQuery&&(c.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new h[n(t[0])?t.shift():\"Chart\"](this[0],t[0],t[1]),this):e[o(this[0],\"data-highcharts-chart\")]}),{addEvent:function(t,e,i,o){void 0===o&&(o={});var r=\"function\"==typeof t&&t.prototype||t,r=(Object.hasOwnProperty.call(r,\"hcEvents\")||(r.hcEvents={}),r.hcEvents);h.Point&&t instanceof h.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);(s=t.addEventListener||h.addEventListenerPolyfill)&&s.call(t,e,i,!!h.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==e.indexOf(\"touch\"):o.passive,capture:!1}),r[e]||(r[e]=[]);var s={fn:i,order:\"number\"==typeof o.order?o.order:1/0};return r[e].push(s),r[e].sort(function(t,e){return t.order-e.order}),function(){k(t,e,i)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:o,clamp:function(t,e,i){return e<t?t<i?t:i:e},cleanRecursively:function o(r,s){var n={};return S(r,function(t,e){var i;a(r[e],!0)&&!r.nodeType&&s[e]?(i=o(r[e],s[e]),Object.keys(i).length&&(n[e]=i)):(a(r[e])||r[e]!==s[e]||e in r&&!(e in s))&&(n[e]=r[e])}),n},clearTimeout:function(t){g(t)&&clearTimeout(t)},correctFloat:b,createElement:function(t,e,i,o,r){return t=l.createElement(t),e&&m(t,e),r&&v(t,{padding:\"0\",border:\"none\",margin:\"0\"}),i&&v(t,i),o&&o.appendChild(t),t},css:v,defined:g,destroyObjectProperties:function(i,o){S(i,function(t,e){t&&t!==o&&t.destroy&&t.destroy(),delete i[e]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:d,extend:m,extendClass:function(t,e){function i(){}return m(i.prototype=new t,e),i},find:t,fireEvent:C,getMagnitude:x,getNestedProperty:function(t,e){for(var i=t.split(\".\");i.length&&g(e);){var o=i.shift();if(void 0===o||\"__proto__\"===o)return;o=e[o];if(!g(o)||\"function\"==typeof o||\"number\"==typeof o.nodeType||o===c)return;e=o}return e},getStyle:function t(e,i,o){var r,s,n=h.getStyle||t;if(\"width\"===i)return s=Math.min(e.offsetWidth,e.scrollWidth),(a=e.getBoundingClientRect&&e.getBoundingClientRect().width)<s&&s-1<=a&&(s=Math.floor(a)),Math.max(0,s-(n(e,\"padding-left\",!0)||0)-(n(e,\"padding-right\",!0)||0));if(\"height\"===i)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(n(e,\"padding-top\",!0)||0)-(n(e,\"padding-bottom\",!0)||0));c.getComputedStyle||d(27,!0);var a=c.getComputedStyle(e,void 0);return r=a&&(r=a.getPropertyValue(i),y(o,\"opacity\"!==i))?p(r):r},inArray:function(t,e,i){return d(32,!1,void 0,{\"Highcharts.inArray\":\"use Array.indexOf\"}),e.indexOf(t,i)},isArray:i,isClass:u,isDOMElement:s,isFunction:function(t){return\"function\"==typeof t},isNumber:f,isObject:a,isString:n,keys:function(t){return d(32,!1,void 0,{\"Highcharts.keys\":\"use Object.keys\"}),Object.keys(t)},merge:function(){for(var t=arguments,e={},r=function(i,o){return\"object\"!=typeof i&&(i={}),S(o,function(t,e){\"__proto__\"!==e&&\"constructor\"!==e&&(!a(t,!0)||u(t)||s(t)?i[e]=o[e]:i[e]=r(i[e]||{},t))}),i},i=(!0===t[0]&&(e=t[1],t=Array.prototype.slice.call(t,2)),t.length),o=0;o<i;o++)e=r(e,t[o]);return e},normalizeTickInterval:function(t,e,i,o,r){var s,n=t,a=t/(i=y(i,x(t)));for(e||(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),s=0;s<e.length&&(n=e[s],!(r&&t<=n*i||!r&&a<=(e[s]+(e[s+1]||e[s]))/2));s++);return n=b(n*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:S,offset:function(t){var e=l.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(c.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(c.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return new Array((e||2)+1-String(t).replace(\"-\",\"\").length).join(i||\"0\")+t},pick:y,pInt:p,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:k,splat:function(t){return i(t)?t:[t]},stableSort:function(t,i){for(var o,e=t.length,r=0;r<e;r++)t[r].safeI=r;for(t.sort(function(t,e){return 0===(o=i(t,e))?t.safeI-e.safeI:o}),r=0;r<e;r++)delete t[r].safeI},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:M,useSerialIds:function(t){return r=y(t,r)},wrap:function(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}}}),e(t,\"Core/Chart/ChartDefaults.js\",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:\"x\"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"}}),e(t,\"Core/Color/Color.js\",[t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(i,t){var s=t.isNumber,r=t.merge,o=t.pInt;function a(t){this.rgba=[NaN,NaN,NaN,NaN],this.input=t;var e=i.Color;return e&&e!==a?new e(t):this instanceof a?void this.init(t):new a(t)}return a.parse=function(t){return t?new a(t):a.None},a.prototype.init=function(t){var e,i,o,r,s,n;if(\"object\"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(function(t){return new a(t[1])});else if(\"string\"==typeof t)if(this.input=t=a.names[t.toLowerCase()]||t,\"#\"===t.charAt(0)&&(s=t.length,n=parseInt(t.substr(1),16),7===s?i=[(16711680&n)>>16,(65280&n)>>8,255&n,1]:4===s&&(i=[(3840&n)>>4|(3840&n)>>8,(240&n)>>4|240&n,(15&n)<<4|15&n,1])),!i)for(o=a.parsers.length;o--&&!i;)(e=(r=a.parsers[o]).regex.exec(t))&&(i=r.parse(e));i&&(this.rgba=i)},a.prototype.get=function(i){var o,t=this.input,e=this.rgba;return\"object\"==typeof t&&void 0!==this.stops?((o=r(t)).stops=[].slice.call(o.stops),this.stops.forEach(function(t,e){o.stops[e]=[o.stops[e][0],t.get(i)]}),o):e&&s(e[0])?\"rgb\"===i||!i&&1===e[3]?\"rgb(\"+e[0]+\",\"+e[1]+\",\"+e[2]+\")\":\"a\"===i?\"\".concat(e[3]):\"rgba(\"+e.join(\",\")+\")\":t},a.prototype.brighten=function(e){var t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(s(e)&&0!==e)for(var i=0;i<3;i++)t[i]+=o(255*e),t[i]<0&&(t[i]=0),255<t[i]&&(t[i]=255);return this},a.prototype.setOpacity=function(t){return this.rgba[3]=t,this},a.prototype.tweenTo=function(t,e){var i,o=this.rgba,r=t.rgba;return s(o[0])&&s(r[0])?((i=1!==r[3]||1!==o[3])?\"rgba(\":\"rgb(\")+Math.round(r[0]+(o[0]-r[0])*(1-e))+\",\"+Math.round(r[1]+(o[1]-r[1])*(1-e))+\",\"+Math.round(r[2]+(o[2]-r[2])*(1-e))+(i?\",\"+(r[3]+(o[3]-r[3])*(1-e)):\"\")+\")\":t.input||\"none\"},a.names={white:\"#ffffff\",black:\"#000000\"},a.parsers=[{regex:/rgba\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]?(?:\\.[0-9]+)?)\\s*\\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),1]}}],a.None=new a(\"\"),a}),e(t,\"Core/Color/Palettes.js\",[],function(){return{colors:[\"#7cb5ec\",\"#434348\",\"#90ed7d\",\"#f7a35c\",\"#8085e9\",\"#f15c80\",\"#e4d354\",\"#2b908f\",\"#f45b5b\",\"#91e8e1\"]}}),e(t,\"Core/Time.js\",[t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(u,t){var r=u.win,v=t.defined,s=t.error,x=t.extend,e=t.isObject,i=t.merge,f=t.objectEach,g=t.pad,b=t.pick,o=t.splat,S=t.timeUnits,n=u.isSafari&&r.Intl&&r.Intl.DateTimeFormat.prototype.formatRange,l=u.isSafari&&r.Intl&&!r.Intl.DateTimeFormat.prototype.formatRange;function a(t){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=r.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return a.prototype.get=function(t,e){var i,o;return this.variableTimezone||this.timezoneOffset?(o=(i=e.getTime())-this.getTimezoneOffset(e),e.setTime(o),o=e[\"getUTC\"+t](),e.setTime(i),o):this.useUTC?e[\"getUTC\"+t]():e[\"get\"+t]()},a.prototype.set=function(t,e,i){var o,r;return this.variableTimezone||this.timezoneOffset?\"Milliseconds\"===t||\"Seconds\"===t||\"Minutes\"===t&&this.getTimezoneOffset(e)%36e5==0?e[\"setUTC\"+t](i):(r=this.getTimezoneOffset(e),r=e.getTime()-r,e.setTime(r),e[\"setUTC\"+t](i),o=this.getTimezoneOffset(e),r=e.getTime()+o,e.setTime(r)):this.useUTC||n&&\"FullYear\"===t?e[\"setUTC\"+t](i):e[\"set\"+t](i)},a.prototype.update=function(t){var e=b((t=void 0===t?{}:t).useUTC,!0);this.options=t=i(!0,this.options,t),this.Date=t.Date||r.Date||Date,this.useUTC=e,this.timezoneOffset=e&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},a.prototype.makeTime=function(t,e,i,o,r,s){var n,a,h;return this.useUTC?(n=this.Date.UTC.apply(0,arguments),(a=this.getTimezoneOffset(n))!==(h=this.getTimezoneOffset(n+=a))?n+=h-a:a-36e5!==this.getTimezoneOffset(n-36e5)||l||(n-=36e5)):n=new this.Date(t,e,b(i,1),b(o,0),b(r,0),b(s,0)).getTime(),n},a.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.getTimezoneOffset,o=e.moment||r.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(o)return function(t){return 6e4*-o.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&i?function(t){return 6e4*i(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},a.prototype.dateFormat=function(i,o,t){if(!v(o)||isNaN(o))return u.defaultOptions.lang&&u.defaultOptions.lang.invalidDate||\"\";i=b(i,\"%Y-%m-%d %H:%M:%S\");var r=this,e=new this.Date(o),s=this.get(\"Hours\",e),n=this.get(\"Day\",e),a=this.get(\"Date\",e),h=this.get(\"Month\",e),l=this.get(\"FullYear\",e),c=u.defaultOptions.lang,d=c&&c.weekdays,p=c&&c.shortWeekdays,p=x({a:p?p[n]:d[n].substr(0,3),A:d[n],d:g(a),e:g(a,2,\" \"),w:n,b:c.shortMonths[h],B:c.months[h],m:g(h+1),o:h+1,y:l.toString().substr(2,2),Y:l,H:g(s),k:s,I:g(s%12||12),l:s%12||12,M:g(this.get(\"Minutes\",e)),p:s<12?\"AM\":\"PM\",P:s<12?\"am\":\"pm\",S:g(e.getSeconds()),L:g(Math.floor(o%1e3),3)},u.dateFormats);return f(p,function(t,e){for(;-1!==i.indexOf(\"%\"+e);)i=i.replace(\"%\"+e,\"function\"==typeof t?t.call(r,o):t)}),t?i.substr(0,1).toUpperCase()+i.substr(1):i},a.prototype.resolveDTLFormat=function(t){return e(t,!0)?t:{main:(t=o(t))[0],from:t[1],to:t[2]}},a.prototype.getTimeTicks=function(t,e,i,o){var r,s,n=this,a=n.Date,h=[],l={},a=new a(e),c=t.unitRange,d=t.count||1;if(o=b(o,1),v(e)){n.set(\"Milliseconds\",a,c>=S.second?0:d*Math.floor(n.get(\"Milliseconds\",a)/d)),c>=S.second&&n.set(\"Seconds\",a,c>=S.minute?0:d*Math.floor(n.get(\"Seconds\",a)/d)),c>=S.minute&&n.set(\"Minutes\",a,c>=S.hour?0:d*Math.floor(n.get(\"Minutes\",a)/d)),c>=S.hour&&n.set(\"Hours\",a,c>=S.day?0:d*Math.floor(n.get(\"Hours\",a)/d)),c>=S.day&&n.set(\"Date\",a,c>=S.month?1:Math.max(1,d*Math.floor(n.get(\"Date\",a)/d))),c>=S.month&&(n.set(\"Month\",a,c>=S.year?0:d*Math.floor(n.get(\"Month\",a)/d)),p=n.get(\"FullYear\",a)),c>=S.year&&n.set(\"FullYear\",a,p-=p%d),c===S.week&&(s=n.get(\"Day\",a),n.set(\"Date\",a,n.get(\"Date\",a)-s+o+(s<o?-7:0)));for(var p=n.get(\"FullYear\",a),u=n.get(\"Month\",a),f=n.get(\"Date\",a),g=n.get(\"Hours\",a),m=(e=a.getTime(),!n.variableTimezone&&n.useUTC||!v(i)||(r=i-e>4*S.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(i)),a.getTime()),y=1;m<i;)h.push(m),c===S.year?m=n.makeTime(p+y*d,0):c===S.month?m=n.makeTime(p,u+y*d):!r||c!==S.day&&c!==S.week?r&&c===S.hour&&1<d?m=n.makeTime(p,u,f,g+y*d):m+=c*d:m=n.makeTime(p,u,f+y*d*(c===S.day?1:7)),y++;h.push(m),c<=S.hour&&h.length<1e4&&h.forEach(function(t){t%18e5==0&&\"000000000\"===n.dateFormat(\"%H%M%S%L\",t)&&(l[t]=\"day\")})}return h.info=x(t,{higherRanks:l,totalRange:c*d}),h},a.prototype.getDateFormat=function(t,e,i,o){var r=this.dateFormat(\"%m-%d %H:%M:%S.%L\",e),s=\"01-01 00:00:00.000\",n={millisecond:15,second:12,minute:9,hour:6,day:3},a=\"millisecond\",h=a;for(a in S){if(t===S.week&&+this.dateFormat(\"%w\",e)===i&&r.substr(6)===s.substr(6)){a=\"week\";break}if(S[a]>t){a=h;break}if(n[a]&&r.substr(n[a])!==s.substr(n[a]))break;\"week\"!==a&&(h=a)}return this.resolveDTLFormat(o[a]).main},a}),e(t,\"Core/Defaults.js\",[t[\"Core/Chart/ChartDefaults.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Color/Palettes.js\"],t[\"Core/Time.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o,r,s){var e=e.parse,n=i.isTouchDevice,a=i.svg,h=s.merge,l={colors:o.colors,symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",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\"],weekdays:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],decimalPoint:\".\",numericSymbols:[\"k\",\"M\",\"G\",\"T\",\"P\",\"E\"],resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},caption:{margin:15,text:\"\",align:\"left\",verticalAlign:\"bottom\"},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,className:\"highcharts-no-tooltip\",layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",cursor:\"pointer\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",headerShape:\"callout\",hideDelay:500,padding:8,shape:\"callout\",shared:!1,snap:n?25:10,headerFormat:'<span style=\"font-size: 10px\">{point.key}</span><br/>',pointFormat:'<span style=\"color:{point.color}\">â—</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",whiteSpace:\"nowrap\"},useHTML:!1},credits:{enabled:!0,href:\"https://www.highcharts.com?credits\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}},c=(l.chart.styledMode=!1,new r(h(l.global,l.time)));return{defaultOptions:l,defaultTime:c,getOptions:function(){return l},setOptions:function(t){return h(!0,l,t),(t.time||t.global)&&(i.time?i.time.update(h(l.global,l.time,t.global,t.time)):i.time=c),l}}}),e(t,\"Core/Animation/Fx.js\",[t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o=t.parse,h=e.win,u=i.isNumber,l=i.objectEach;function c(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return c.prototype.dSetter=function(){var t=this.paths,e=t&&t[0],i=t&&t[1],o=this.now||0,r=[];if(1!==o&&e&&i)if(e.length===i.length&&o<1)for(var s=0;s<i.length;s++){for(var n=e[s],a=i[s],h=[],l=0;l<a.length;l++){var c=n[l],d=a[l];u(c)&&u(d)&&(\"A\"!==a[0]||4!==l&&5!==l)?h[l]=c+o*(d-c):h[l]=d}r.push(h)}else r=i;else r=this.toD||[];this.elem.attr(\"d\",r,void 0,!0)},c.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+\"Setter\"]?this[e+\"Setter\"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},c.prototype.run=function(t,e,i){var o=this,r=o.options,s=function(t){return!s.stopped&&o.step(t)},n=h.requestAnimationFrame||function(t){setTimeout(t,13)},a=function(){for(var t=0;t<c.timers.length;t++)c.timers[t]()||c.timers.splice(t--,1);c.timers.length&&n(a)};t!==e||this.elem[\"forceAnimate:\"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===c.timers.push(s)&&n(a)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))},c.prototype.step=function(t){var e,i=+new Date,o=this.options,r=this.elem,s=o.complete,n=o.duration,a=o.curAnim,t=!(r.attr&&!r.element||(t||i>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),a[this.prop]=!0,e=!0,l(a,function(t){!0!==t&&(e=!1)}),e&&s&&s.call(r),1):(this.pos=o.easing((i-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),0)));return t},c.prototype.initPath=function(t,e,i){var o,r,s,n,a=t.startX,h=t.endX,i=i.slice(),l=t.isArea,c=l?2:1,t=e&&e.slice();if(!t)return[i,i];function d(t,e){for(;t.length<r;){var i=t[0],o=e[r-t.length];o&&\"M\"===i[0]&&(\"C\"===o[0]?t[0]=[\"C\",i[1],i[2],i[1],i[2],i[1],i[2]]:t[0]=[\"L\",i[1],i[2]]),t.unshift(i),l&&(o=t.pop(),t.push(t[t.length-1],o))}}function p(t){for(;t.length<r;){var e,i=t[Math.floor(t.length/c)-1].slice();\"C\"===i[0]&&(i[1]=i[5],i[2]=i[6]),l?(e=t[Math.floor(t.length/c)].slice(),t.splice(t.length/2,0,i,e)):t.push(i)}}if(a&&h&&h.length){for(s=0;s<a.length;s++){if(a[s]===h[0]){o=s;break}if(a[0]===h[h.length-a.length+s]){o=s,n=!0;break}if(a[a.length-1]===h[h.length-a.length+s]){o=a.length-s;break}}void 0===o&&(t=[])}return t.length&&u(o)&&(r=i.length+o*c,n?(d(t,i),p(i)):(d(i,t),p(t))),[t,i]},c.prototype.fillSetter=function(){c.prototype.strokeSetter.apply(this,arguments)},c.prototype.strokeSetter=function(){this.elem.attr(this.prop,o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)},c.timers=[],c}),e(t,\"Core/Animation/AnimationUtilities.js\",[t[\"Core/Animation/Fx.js\"],t[\"Core/Utilities.js\"]],function(l,t){var n=t.defined,c=t.getStyle,d=t.isArray,e=t.isNumber,p=t.isObject,u=t.merge,f=t.objectEach,i=t.pick;function a(t){return p(t)?u({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function g(t,e){for(var i=l.timers.length;i--;)l.timers[i].elem!==t||e&&e!==l.timers[i].prop||(l.timers[i].stopped=!0)}return{animate:function(i,o,r){var s,n,a,t,h=\"\";p(r)||(r={duration:(t=arguments)[2],easing:t[3],complete:t[4]}),e(r.duration)||(r.duration=400),r.easing=\"function\"==typeof r.easing?r.easing:Math[r.easing]||Math.easeInOutSine,r.curAnim=u(o),f(o,function(t,e){g(i,e),a=new l(i,r,e),n=void 0,\"d\"===e&&d(o.d)?(a.paths=a.initPath(i,i.pathArray,o.d),a.toD=o.d,s=0,n=1):i.attr?s=i.attr(e):(s=parseFloat(c(i,e))||0,\"opacity\"!==e&&(h=\"px\")),\"string\"==typeof(n=n||t)&&n.match(\"px\")&&(n=n.replace(/px/g,\"\")),a.run(s,n,h)})},animObject:a,getDeferredAnimation:function(t,e,i){var o=a(e),i=i?[i]:t.series,r=0,s=0;return i.forEach(function(t){t=a(t.options.animation);r=e&&n(e.defer)?o.defer:Math.max(r,t.duration+t.defer),s=Math.min(o.duration,t.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-s),duration:Math.min(r,s)}},setAnimation:function(t,e){e.renderer.globalAnimation=i(t,e.options.chart.animation,!0)},stop:g}}),e(t,\"Core/Renderer/HTML/AST.js\",[t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(c,t){var d=c.SVG_NS,e=c.win,p=t.attr,o=t.createElement,u=t.css,f=t.error,i=t.isFunction,r=t.isString,g=t.objectEach,s=t.splat,t=e.trustedTypes,a=t&&i(t.createPolicy)&&t.createPolicy(\"highcharts\",{createHTML:function(t){return t}}),n=a?a.createHTML(\"\"):\"\",h=function(){try{return Boolean((new DOMParser).parseFromString(n,\"text/html\"))}catch(t){return!1}}();function m(t){this.nodes=\"string\"==typeof t?this.parseMarkup(t):t}return m.filterUserAttributes=function(o){return g(o,function(e,t){var i=!0;-1===m.allowedAttributes.indexOf(t)&&(i=!1),(i=-1!==[\"background\",\"dynsrc\",\"href\",\"lowsrc\",\"src\"].indexOf(t)?r(e)&&m.allowedReferences.some(function(t){return 0===e.indexOf(t)}):i)||(f(33,!1,void 0,{\"Invalid attribute in config\":\"\".concat(t)}),delete o[t]),r(e)&&o[t]&&(o[t]=e.replace(/</g,\"<\"))}),o},m.parseStyle=function(t){return t.split(\";\").reduce(function(t,e){var e=e.split(\":\").map(function(t){return t.trim()}),i=e.shift();return i&&e.length&&(t[i.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=e.join(\":\")),t},{})},m.setElementHTML=function(t,e){t.innerHTML=m.emptyHTML,e&&new m(e).addToDOM(t)},m.prototype.addToDOM=function(t){return function a(t,h){var l;return s(t).forEach(function(t){var e,i,o,r=t.tagName,s=t.textContent?c.doc.createTextNode(t.textContent):void 0,n=m.bypassHTMLFiltering;r&&(\"#text\"===r?e=s:-1!==m.allowedTags.indexOf(r)||n?(i=\"svg\"!==r&&h.namespaceURI||d,i=c.doc.createElementNS(i,r),o=t.attributes||{},g(t,function(t,e){\"tagName\"!==e&&\"attributes\"!==e&&\"children\"!==e&&\"style\"!==e&&\"textContent\"!==e&&(o[e]=t)}),p(i,n?o:m.filterUserAttributes(o)),t.style&&u(i,t.style),s&&i.appendChild(s),a(t.children||[],i),e=i):f(33,!1,void 0,{\"Invalid tagName in config\":r})),e&&h.appendChild(e),l=e}),l}(this.nodes,t)},m.prototype.parseMarkup=function(t){function n(t,e){var i,o,r=t.nodeName.toLowerCase(),s={tagName:r};\"#text\"===r&&(s.textContent=t.textContent||\"\"),(r=t.attributes)&&(i={},[].forEach.call(r,function(t){\"data-style\"===t.name?s.style=m.parseStyle(t.value):i[t.name]=t.value}),s.attributes=i),t.childNodes.length&&(o=[],[].forEach.call(t.childNodes,function(t){n(t,o)}),o.length)&&(s.children=o),e.push(s)}var e,i=[];t=t.trim().replace(/ style=([\"'])/g,\" data-style=$1\"),t=h?(new DOMParser).parseFromString(a?a.createHTML(t):t,\"text/html\"):((e=o(\"div\")).innerHTML=t,{body:e});return[].forEach.call(t.body.childNodes,function(t){return n(t,i)}),i},m.allowedAttributes=[\"aria-controls\",\"aria-describedby\",\"aria-expanded\",\"aria-haspopup\",\"aria-hidden\",\"aria-label\",\"aria-labelledby\",\"aria-live\",\"aria-pressed\",\"aria-readonly\",\"aria-roledescription\",\"aria-selected\",\"class\",\"clip-path\",\"color\",\"colspan\",\"cx\",\"cy\",\"d\",\"dx\",\"dy\",\"disabled\",\"fill\",\"height\",\"href\",\"id\",\"in\",\"markerHeight\",\"markerWidth\",\"offset\",\"opacity\",\"orient\",\"padding\",\"paddingLeft\",\"paddingRight\",\"patternUnits\",\"r\",\"refX\",\"refY\",\"role\",\"scope\",\"slope\",\"src\",\"startOffset\",\"stdDeviation\",\"stroke\",\"stroke-linecap\",\"stroke-width\",\"style\",\"tableValues\",\"result\",\"rowspan\",\"summary\",\"target\",\"tabindex\",\"text-align\",\"text-anchor\",\"textAnchor\",\"textLength\",\"title\",\"type\",\"valign\",\"width\",\"x\",\"x1\",\"x2\",\"xlink:href\",\"y\",\"y1\",\"y2\",\"zIndex\"],m.allowedReferences=[\"https://\",\"http://\",\"mailto:\",\"/\",\"../\",\"./\",\"#\"],m.allowedTags=[\"a\",\"abbr\",\"b\",\"br\",\"button\",\"caption\",\"circle\",\"clipPath\",\"code\",\"dd\",\"defs\",\"div\",\"dl\",\"dt\",\"em\",\"feComponentTransfer\",\"feFuncA\",\"feFuncB\",\"feFuncG\",\"feFuncR\",\"feGaussianBlur\",\"feOffset\",\"feMerge\",\"feMergeNode\",\"filter\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"hr\",\"i\",\"img\",\"li\",\"linearGradient\",\"marker\",\"ol\",\"p\",\"path\",\"pattern\",\"pre\",\"rect\",\"small\",\"span\",\"stop\",\"strong\",\"style\",\"sub\",\"sup\",\"svg\",\"table\",\"text\",\"textPath\",\"thead\",\"title\",\"tbody\",\"tspan\",\"td\",\"th\",\"tr\",\"u\",\"ul\",\"#text\"],m.emptyHTML=n,m.bypassHTMLFiltering=!1,m}),e(t,\"Core/FormatUtilities.js\",[t[\"Core/Defaults.js\"],t[\"Core/Utilities.js\"]],function(t,e){var g=t.defaultOptions,m=t.defaultTime,y=e.getNestedProperty,c=e.isNumber,d=e.pick,p=e.pInt;function v(t,e,i,o){e=+e;var r=g.lang,s=((t=+t||0).toString().split(\".\")[1]||\"\").split(\"e\")[0].length,n=t.toString().split(\"e\"),a=e,h=(-1===e?e=Math.min(s,20):c(e)?e&&n[1]&&n[1]<0&&(0<=(h=e+ +n[1])?(n[0]=(+n[0]).toExponential(h).split(\"e\")[0],e=h):(n[0]=n[0].split(\".\")[0]||0,t=e<20?(n[0]*Math.pow(10,n[1])).toFixed(e):0,n[1]=0)):e=2,(Math.abs(n[1]?n[0]:t)+Math.pow(10,-Math.max(e,s)-1)).toFixed(e)),s=String(p(h)),l=3<s.length?s.length%3:0;return i=d(i,r.decimalPoint),o=d(o,r.thousandsSep),r=t<0?\"-\":\"\",r+=l?s.substr(0,l)+o:\"\",+n[1]<0&&!a?r=\"0\":r+=s.substr(l).replace(/(\\d{3})(?=\\d)/g,\"$1\"+o),e&&(r+=i+h.slice(-e)),n[1]&&0!=+r&&(r+=\"e\"+n[1]),r}return{dateFormat:function(t,e,i){return m.dateFormat(t,e,i)},format:function(t,e,i){for(var o,r,s,n,a=\"{\",h=!1,l=/f$/,c=/\\.([0-9])/,d=g.lang,p=i&&i.time||m,u=i&&i.numberFormatter||v,f=[];t&&-1!==(o=t.indexOf(a));)r=t.slice(0,o),h?(s=r.split(\":\"),n=y(s.shift()||\"\",e),s.length&&\"number\"==typeof n&&(r=s.join(\":\"),l.test(r)?(s=parseInt((r.match(c)||[\"\",\"-1\"])[1],10),null!==n&&(n=u(n,s,d.decimalPoint,-1<r.indexOf(\",\")?d.thousandsSep:\"\"))):n=p.dateFormat(r,n)),f.push(n)):f.push(r),t=t.slice(o+1),a=(h=!h)?\"}\":\"{\";return f.push(t),f.join(\"\")},numberFormat:v}}),e(t,\"Core/Renderer/RendererUtilities.js\",[t[\"Core/Utilities.js\"]],function(t){var e,u=t.clamp,f=t.pick,g=t.stableSort;return(e||(e={})).distribute=function i(t,o,r){for(var e,s,n=t,a=n.reducedLen||o,h=function(t,e){return t.target-e.target},l=!0,c=[],d=0,p=t.length;p--;)d+=t[p].size;if(a<d){for(g(t,function(t,e){return(e.rank||0)-(t.rank||0)}),d=p=0;d<=a;)d+=t[p].size,p++;c=t.splice(p-1,t.length)}for(g(t,h),t=t.map(function(t){return{size:t.size,targets:[t.target],align:f(t.align,.5)}});l;){for(p=t.length;p--;)e=t[p],s=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/2,e.pos=u(s-e.size*e.align,0,o-e.size);for(p=t.length,l=!1;p--;)0<p&&t[p-1].pos+t[p-1].size>t[p].pos&&(t[p-1].size+=t[p].size,t[p-1].targets=t[p-1].targets.concat(t[p].targets),t[p-1].align=.5,t[p-1].pos+t[p-1].size>o&&(t[p-1].pos=o-t[p-1].size),t.splice(p,1),l=!0)}return n.push.apply(n,c),p=0,t.some(function(t){var e=0;return(t.targets||[]).some(function(){return n[p].pos=t.pos+e,void 0!==r&&Math.abs(n[p].pos-n[p].target)>r?(n.slice(0,p+1).forEach(function(t){return delete t.pos}),n.reducedLen=(n.reducedLen||o)-.1*o,n.reducedLen>.1*o&&i(n,o,r),!0):(e+=n[p].size,p++,!1)})}),g(n,h),n},e}),e(t,\"Core/Renderer/SVG/SVGElement.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(t,m,s,e){var n=t.animate,a=t.animObject,c=t.stop,g=s.deg2rad,h=s.doc,l=(s.noop,s.svg),d=s.SVG_NS,i=s.win,p=e.addEvent,y=e.attr,o=e.createElement,v=e.css,x=e.defined,u=e.erase,b=e.extend,S=e.fireEvent,k=e.isArray,C=e.isFunction,f=(e.isNumber,e.isString),M=e.merge,w=e.objectEach,T=e.pick,A=e.pInt,P=(e.removeEvent,e.syncTimeout),L=e.uniqueKey,t=(O.prototype._defaultGetter=function(t){t=T(this[t+\"Value\"],this[t],this.element?this.element.getAttribute(t):null,0);return t=/^[\\-0-9\\.]+$/.test(t)?parseFloat(t):t},O.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},O.prototype.add=function(t){var e,i=this.renderer,o=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&\"text\"===this.element.nodeName&&i.buildText(this),this.added=!0,(e=t&&!t.handleZ&&!this.zIndex?e:this.zIndexSetter())||(t?t.element:i.box).appendChild(o),this.onAdd&&this.onAdd(),this},O.prototype.addClass=function(t,e){var i=!e&&this.attr(\"class\")||\"\";return(t=(t||\"\").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(\" \"))!==i&&this.attr(\"class\",t),this},O.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},O.prototype.align=function(t,e,i){var o,r,s={},n=this.renderer,a=n.alignedObjects,a=(t?(this.alignOptions=t,this.alignByTranslate=e,i&&!f(i)||(this.alignTo=h=i||\"renderer\",u(a,this),a.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,h=this.alignTo),i=T(i,n[h],\"scrollablePlotBox\"===h?n.plotBox:void 0,n),t.align),h=t.verticalAlign,n=(i.x||0)+(t.x||0),l=(i.y||0)+(t.y||0);return\"right\"===a?o=1:\"center\"===a&&(o=2),o&&(n+=(i.width-(t.width||0))/o),s[e?\"translateX\":\"x\"]=Math.round(n),\"bottom\"===h?r=1:\"middle\"===h&&(r=2),r&&(l+=(i.height-(t.height||0))/r),s[e?\"translateY\":\"y\"]=Math.round(l),this[this.placed?\"animate\":\"attr\"](s),this.placed=!0,this.alignAttr=s,this},O.prototype.alignSetter=function(t){var e={left:\"start\",center:\"middle\",right:\"end\"};e[t]&&(this.alignValue=t,this.element.setAttribute(\"text-anchor\",e[t]))},O.prototype.animate=function(t,e,i){var o=this,r=a(T(e,this.renderer.globalAnimation,!0)),e=r.defer;return T(h.hidden,h.msHidden,h.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(i&&(r.complete=i),P(function(){o.element&&n(o,t,r)},e)):(this.attr(t,void 0,i||r.complete),w(t,function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},O.prototype.applyTextOutline=function(t){var i,e,o=this.element,t=(t=-1!==t.indexOf(\"contrast\")?t.replace(/contrast/g,this.renderer.getContrast(o.style.fill)):t).split(\" \"),r=t[t.length-1],t=t[0];t&&\"none\"!==t&&s.svg&&(this.fakeTS=!0,t=t.replace(/(^[\\d\\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline(),i=h.createElementNS(d,\"tspan\"),y(i,{class:\"highcharts-text-outline\",fill:r,stroke:r,\"stroke-width\":t,\"stroke-linejoin\":\"round\"}),r=o.querySelector(\"textPath\")||o,[].forEach.call(r.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&[\"fill\",\"stroke\",\"stroke-width\",\"stroke\"].forEach(function(t){return e.removeAttribute(t)}),i.appendChild(e)}),e=0,[].forEach.call(r.querySelectorAll(\"text tspan\"),function(t){e+=Number(t.getAttribute(\"dy\"))}),(t=h.createElementNS(d,\"tspan\")).textContent=\"​\",y(t,{x:Number(o.getAttribute(\"x\")),dy:-e}),i.appendChild(t),r.insertBefore(i,r.firstChild))},O.prototype.attr=function(i,t,e,o){var r,s,n,a=this.element,h=this.symbolCustomAttribs,l=this;return\"string\"==typeof i&&void 0!==t&&(r=i,(i={})[r]=t),\"string\"==typeof i?l=(this[i+\"Getter\"]||this._defaultGetter).call(this,i,a):(w(i,function(t,e){n=!1,o||c(this,e),this.symbolName&&-1!==h.indexOf(e)&&(s||(this.symbolAttr(i),s=!0),n=!0),!this.rotation||\"x\"!==e&&\"y\"!==e||(this.doTransform=!0),n||((n=this[e+\"Setter\"]||this._defaultSetter).call(this,t,e,a),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e)&&this.updateShadows(e,t,n))},this),this.afterSetters()),e&&e.call(this),l},O.prototype.clip=function(t){return this.attr(\"clip-path\",t?\"url(\"+this.renderer.url+\"#\"+t.id+\")\":\"none\")},O.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),x(t.strokeWidth)&&(t.strokeWidth=e),t},O.prototype.complexColor=function(t,i,o){var r,s,n,a,h,l,c,d,p,u,f=this.renderer,g=[];S(this.renderer,\"complexColor\",{args:arguments},function(){var e;t.radialGradient?r=\"radialGradient\":t.linearGradient&&(r=\"linearGradient\"),r&&(s=t[r],a=f.gradients,h=t.stops,d=o.radialReference,k(s)&&(t[r]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:\"userSpaceOnUse\"}),\"radialGradient\"===r&&d&&!x(s.gradientUnits)&&(s=M(n=s,f.getRadialAttr(d,n),{gradientUnits:\"userSpaceOnUse\"})),w(s,function(t,e){\"id\"!==e&&g.push(e,t)}),w(h,function(t){g.push(t)}),g=g.join(\",\"),a[g]?p=a[g].attr(\"id\"):(s.id=p=L(),(e=a[g]=f.createElement(r).attr(s).add(f.defs)).radAttr=n,e.stops=[],h.forEach(function(t){c=0===t[1].indexOf(\"rgba\")?(c=m.parse(t[1]),l=c.get(\"rgb\"),c.get(\"a\")):(l=t[1],1);t=f.createElement(\"stop\").attr({offset:t[0],\"stop-color\":l,\"stop-opacity\":c}).add(e);e.stops.push(t)})),u=\"url(\"+f.url+\"#\"+p+\")\",o.setAttribute(i,u),o.gradient=g,t.toString=function(){return u})})},O.prototype.css=function(t){var e,i,o=this.styles,r={},s=this.element,n=!o;return t.color&&(t.fill=t.color),o&&w(t,function(t,e){o&&o[e]!==t&&(r[e]=t,n=!0)}),n&&(null===(t=o?b(o,r):t).width||\"auto\"===t.width?delete this.textWidth:\"text\"===s.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=A(t.width)),this.styles=t,e&&!l&&this.renderer.forExport&&delete t.width,i=M(t),s.namespaceURI===this.SVG_NS&&[\"textOutline\",\"textOverflow\",\"width\"].forEach(function(t){return i&&delete i[t]}),v(s,i),this.added)&&(\"text\"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline)&&this.applyTextOutline(t.textOutline),this},O.prototype.dashstyleSetter=function(t){var e=this[\"stroke-width\"];if(\"inherit\"===e&&(e=1),t=t&&t.toLowerCase()){for(var i=t.replace(\"shortdashdotdot\",\"3,1,1,1,1,1,\").replace(\"shortdashdot\",\"3,1,1,1\").replace(\"shortdot\",\"1,1,\").replace(\"shortdash\",\"3,1,\").replace(\"longdash\",\"8,3,\").replace(/dot/g,\"1,3,\").replace(\"dash\",\"4,3,\").replace(/,$/,\"\").split(\",\"),o=i.length;o--;)i[o]=\"\"+A(i[o])*T(e,NaN);t=i.join(\",\").replace(/NaN/g,\"none\"),this.element.setAttribute(\"stroke-dasharray\",t)}},O.prototype.destroy=function(){var t,e,i,o=this,r=o.element||{},s=o.renderer,n=r.ownerSVGElement,a=s.isSVG&&\"SPAN\"===r.nodeName&&o.parentGroup||void 0;if(r.onclick=r.onmouseout=r.onmouseover=r.onmousemove=r.point=null,c(o),o.clipPath&&n&&(i=o.clipPath,[].forEach.call(n.querySelectorAll(\"[clip-path],[CLIP-PATH]\"),function(t){-1<t.getAttribute(\"clip-path\").indexOf(i.element.id)&&t.removeAttribute(\"clip-path\")}),o.clipPath=i.destroy()),o.stops){for(e=0;e<o.stops.length;e++)o.stops[e].destroy();o.stops.length=0,o.stops=void 0}for(o.safeRemoveChild(r),s.styledMode||o.destroyShadows();a&&a.div&&0===a.div.childNodes.length;)t=a.parentGroup,o.safeRemoveChild(a.div),delete a.div,a=t;o.alignTo&&u(s.alignedObjects,o),w(o,function(t,e){o[e]&&o[e].parentGroup===o&&o[e].destroy&&o[e].destroy(),delete o[e]})},O.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},O.prototype.dSetter=function(t,e,i){k(t)&&(\"string\"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),t=(this.pathArray=t).reduce(function(t,e,i){return e&&e.join?(i?t+\" \":\"\")+e.join(\" \"):(e||\"\").toString()},\"\")),/(NaN| {2}|^$)/.test(t)&&(t=\"M 0 0\"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},O.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:T(t,150),complete:function(){e.hide()}})},O.prototype.fillSetter=function(t,e,i){\"string\"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},O.prototype.getBBox=function(t,e){var i,o,r,s=this,n=s.alignValue,a=s.element,h=s.renderer,l=s.styles,c=s.textStr,d=h.cache,p=h.cacheKeys,u=a.namespaceURI===s.SVG_NS,e=T(e,s.rotation,0),f=h.styledMode?a&&O.prototype.getStyle.call(a,\"font-size\"):l&&l.fontSize;if(x(c)&&(-1===(o=c.toString()).indexOf(\"<\")&&(o=o.replace(/[0-9]/g,\"0\")),o+=[\"\",e,f,s.textWidth,n,l&&l.textOverflow,l&&l.fontWeight].join(\",\")),!(i=o&&!t?d[o]:i)){if(u||h.forExport){try{r=this.fakeTS&&function(t){var e=a.querySelector(\".highcharts-text-outline\");e&&v(e,{display:t})},C(r)&&r(\"none\"),i=a.getBBox?b({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight,x:0,y:0},C(r)&&r(\"\")}catch(t){}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=s.htmlGetBBox();if(h.isSVG&&(l=i.width,t=i.height,u&&(i.height=t={\"11px,17\":14,\"13px,20\":16}[\"\"+(f||\"\")+\",\".concat(Math.round(t))]||t),e)&&(r=Number(a.getAttribute(\"y\")||0)-i.y,s={right:1,center:.5}[n||0]||0,h=e*g,u=(e-90)*g,f=l*Math.cos(h),n=l*Math.sin(h),e=Math.cos(u),h=Math.sin(u),f=(e=(l=(u=i.x+s*(l-f)+r*e)+f)-t*e)-f,h=(t=(r=(s=i.y+r-s*n+r*h)+n)-t*h)-n,i.x=Math.min(u,l,e,f),i.y=Math.min(s,r,t,h),i.width=Math.max(u,l,e,f)-i.x,i.height=Math.max(s,r,t,h)-i.y),o&&(\"\"===c||0<i.height)){for(;250<p.length;)delete d[p.shift()];d[o]||p.push(o),d[o]=i}}return i},O.prototype.getStyle=function(t){return i.getComputedStyle(this.element||this,\"\").getPropertyValue(t)},O.prototype.hasClass=function(t){return-1!==(\"\"+this.attr(\"class\")).split(\" \").indexOf(t)},O.prototype.hide=function(){return this.attr({visibility:\"hidden\"})},O.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},O.prototype.init=function(t,e){this.element=\"span\"===e?o(e):h.createElementNS(this.SVG_NS,e),this.renderer=t,S(this,\"afterInit\")},O.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=p(this.element,t,e),this},O.prototype.opacitySetter=function(t,e,i){t=Number(Number(t).toFixed(3));this.opacity=t,i.setAttribute(e,t)},O.prototype.removeClass=function(t){return this.attr(\"class\",(\"\"+this.attr(\"class\")).replace(f(t)?new RegExp(\"(^| )\".concat(t,\"( |$)\")):t,\" \").replace(/ +/g,\" \").trim())},O.prototype.removeTextOutline=function(){var t=this.element.querySelector(\"tspan.highcharts-text-outline\");t&&this.safeRemoveChild(t)},O.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},O.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},O.prototype.setTextPath=function(o,t){var r=this,s=(t=M(!0,{enabled:!0,attributes:{dy:-5,startOffset:\"50%\",textAnchor:\"middle\"}},t),this.renderer.url),n=this.text||this,e=n.textPath,a=t.attributes,h=t.enabled;return o=o||e&&e.path,e&&e.undo(),o&&h?(t=p(n,\"afterModifyTree\",function(t){var e,i;o&&h&&((e=o.attr(\"id\"))||o.attr(\"id\",e=L()),i={x:0,y:0},x(a.dx)&&(i.dx=a.dx,delete a.dx),x(a.dy)&&(i.dy=a.dy,delete a.dy),n.attr(i),r.attr({transform:\"\"}),r.box&&(r.box=r.box.destroy()),i=t.nodes.slice(0),t.nodes.length=0,t.nodes[0]={tagName:\"textPath\",attributes:b(a,{\"text-anchor\":a.textAnchor,href:\"\"+s+\"#\".concat(e)}),children:i})}),n.textPath={path:o,undo:t}):(n.attr({dx:0,dy:0}),delete n.textPath),this.added&&(n.textCache=\"\",this.renderer.buildText(n)),this},O.prototype.shadow=function(t,e,i){var o,r,s,n,a,h,l=[],c=this.element,d=this.oldShadowOptions,p=this.parentGroup,p=p&&90===p.rotation,u={color:\"#000000\",offsetX:p?-1:1,offsetY:p?-1:1,opacity:.15,width:3},f=!1;if(!0===t?h=u:\"object\"==typeof t&&(h=b(u,t)),h&&(d&&w(h,function(t,e){t!==d[e]&&(f=!0)}),f&&this.destroyShadows(),this.oldShadowOptions=h),h){if(!this.shadows){for(n=h.opacity/h.width,a=p?\"translate(\".concat(h.offsetY,\", \").concat(h.offsetX,\")\"):\"translate(\".concat(h.offsetX,\", \").concat(h.offsetY,\")\"),o=1;o<=h.width;o++)r=c.cloneNode(!1),s=2*h.width+1-2*o,y(r,{stroke:t.color||\"#000000\",\"stroke-opacity\":n*o,\"stroke-width\":s,transform:a,fill:\"none\"}),r.setAttribute(\"class\",(r.getAttribute(\"class\")||\"\")+\" highcharts-shadow\"),i&&(y(r,\"height\",Math.max(y(r,\"height\")-s,0)),r.cutHeight=s),e?e.element.appendChild(r):c.parentNode&&c.parentNode.insertBefore(r,c),l.push(r);this.shadows=l}}else this.destroyShadows();return this},O.prototype.show=function(t){return this.attr({visibility:(t=void 0===t?!0:t)?\"inherit\":\"visible\"})},O.prototype[\"stroke-widthSetter\"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},O.prototype.strokeWidth=function(){var t,e,i;return this.renderer.styledMode?(e=0,(t=this.getStyle(\"stroke-width\")).indexOf(\"px\")===t.length-2?e=A(t):\"\"!==t&&(i=h.createElementNS(d,\"rect\"),y(i,{width:t,\"stroke-width\":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)),e):this[\"stroke-width\"]||0},O.prototype.symbolAttr=function(e){var i=this;[\"x\",\"y\",\"r\",\"start\",\"end\",\"width\",\"height\",\"innerR\",\"anchorX\",\"anchorY\",\"clockwise\"].forEach(function(t){i[t]=T(e[t],i[t])}),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})},O.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added)&&this.renderer.buildText(this)},O.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName(\"title\")[0]||h.createElementNS(this.SVG_NS,\"title\");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(T(t,\"\")).replace(/<[^>]*>/g,\"\").replace(/</g,\"<\").replace(/>/g,\">\")},O.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},O.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},O.prototype.updateShadows=function(t,e,i){var o=this.shadows;if(o)for(var r=o.length;r--;)i.call(o[r],\"height\"===t?Math.max(e-(o[r].cutHeight||0),0):\"d\"===t?this.d:e,t,o[r])},O.prototype.updateTransform=function(){var t=this,e=t.element,i=t.matrix,o=t.rotation,o=void 0===o?0:o,r=t.scaleX,s=t.scaleY,n=t.translateX,t=t.translateY,n=[\"translate(\"+(void 0===n?0:n)+\",\"+(void 0===t?0:t)+\")\"];x(i)&&n.push(\"matrix(\"+i.join(\",\")+\")\"),o&&n.push(\"rotate(\"+o+\" \"+T(this.rotationOriginX,e.getAttribute(\"x\"),0)+\" \"+T(this.rotationOriginY,e.getAttribute(\"y\")||0)+\")\"),(x(r)||x(s))&&n.push(\"scale(\"+T(r,1)+\" \"+T(s,1)+\")\"),n.length&&!(this.text||this).textPath&&e.setAttribute(\"transform\",n.join(\" \"))},O.prototype.visibilitySetter=function(t,e,i){\"inherit\"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},O.prototype.xGetter=function(t){return\"circle\"===this.element.nodeName&&(\"x\"===t?t=\"cx\":\"y\"===t&&(t=\"cy\")),this._defaultGetter(t)},O.prototype.zIndexSetter=function(t,e){var i,o,r,s,n,a=this.renderer,h=this.parentGroup,l=(h||a).element||a.box,c=this.element,d=l===a.box,p=!1,a=this.added;if(x(t)?(c.setAttribute(\"data-z-index\",t),this[e]===(t=+t)&&(a=!1)):x(this[e])&&c.removeAttribute(\"data-z-index\"),this[e]=t,a){for((t=this.zIndex)&&h&&(h.handleZ=!0),n=(i=l.childNodes).length-1;0<=n&&!p;n--)r=(o=i[n]).getAttribute(\"data-z-index\"),s=!x(r),o!==c&&(t<0&&s&&!d&&!n?(l.insertBefore(c,i[n]),p=!0):(A(r)<=t||s&&(!x(t)||0<=t))&&(l.insertBefore(c,i[n+1]||null),p=!0));p||(l.insertBefore(c,i[d?3:0]||null),p=!0)}return p},O);function O(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=d,this.symbolCustomAttribs=[\"x\",\"y\",\"width\",\"height\",\"r\",\"start\",\"end\",\"innerR\",\"anchorX\",\"anchorY\",\"rounded\"]}return t.prototype.strokeSetter=t.prototype.fillSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t}),e(t,\"Core/Renderer/RendererRegistry.js\",[t[\"Core/Globals.js\"]],function(o){var t,r,s;return(r=t=t||{}).rendererTypes={},r.getRendererType=function(t){return void 0===t&&(t=s),r.rendererTypes[t]||r.rendererTypes[s]},r.registerRendererType=function(t,e,i){r.rendererTypes[t]=e,s&&!i||(s=t,o.Renderer=e)},t}),e(t,\"Core/Renderer/SVG/SVGLabel.js\",[t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Utilities.js\"]],function(t,e){var o,p,i=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=e.defined,n=e.extend,a=e.isNumber,r=e.merge,h=e.pick,l=e.removeEvent;function u(t,e,i,o,r,s,n,a,h,l){var c,d=p.call(this)||this;return d.paddingLeftSetter=d.paddingSetter,d.paddingRightSetter=d.paddingSetter,d.init(t,\"g\"),d.textStr=e,d.x=i,d.y=o,d.anchorX=s,d.anchorY=n,d.baseline=h,d.className=l,d.addClass(\"button\"===l?\"highcharts-no-tooltip\":\"highcharts-label\"),l&&d.addClass(\"highcharts-\"+l),d.text=t.text(void 0,0,0,a).attr({zIndex:1}),\"string\"==typeof r&&((c=/^url\\((.*?)\\)$/.test(r))||d.renderer.symbols[r])&&(d.symbolKey=r),d.bBox=u.emptyBBox,d.padding=3,d.baselineOffset=0,d.needsBox=t.styledMode||c,d.deferredAttr={},d.alignFactor=0,d}return i(u,p=t),u.prototype.alignSetter=function(t){t={left:0,center:.5,right:1}[t];t!==this.alignFactor&&(this.alignFactor=t,this.bBox)&&a(this.xSetting)&&this.attr({x:this.xSetting})},u.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},u.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},u.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},u.prototype.css=function(e){var i;return e&&(i={},e=r(e),u.textProps.forEach(function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])}),this.text.css(i),\"fontSize\"in i||\"fontWeight\"in i?this.updateTextPadding():(\"width\"in i||\"textOverflow\"in i)&&this.updateBoxSize()),t.prototype.css.call(this,e)},u.prototype.destroy=function(){l(this.element,\"mouseenter\"),l(this.element,\"mouseleave\"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},u.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},u.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=h(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},u.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this[\"stroke-width\"]?parseInt(this[\"stroke-width\"],10):0)%2/2},u.prototype.heightSetter=function(t){this.heightSetting=t},u.prototype.onAdd=function(){this.text.add(this),this.attr({text:h(this.textStr,\"\"),x:this.x||0,y:this.y||0}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},u.prototype.paddingSetter=function(t,e){a(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},u.prototype.rSetter=function(t,e){this.boxAttr(e,t)},u.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box)&&this.box.shadow(t),this},u.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},u.prototype[\"stroke-widthSetter\"]=function(t,e){t&&(this.needsBox=!0),this[\"stroke-width\"]=t,this.boxAttr(e,t)},u.prototype[\"text-alignSetter\"]=function(t){this.textAlign=t},u.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},u.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,i={},o=this.padding,r=this.bBox=a(this.widthSetting)&&a(this.heightSetting)&&!this.textAlign||!s(t.textStr)?u.emptyBBox:t.getBBox(),e=(this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*o,this.renderer.fontMetrics(e&&e.fontSize,t));this.baselineOffset=o+Math.min((this.text.firstLineMetrics||e).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((o=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass((\"button\"===this.className?\"\":\"highcharts-label-box\")+(this.className?\" highcharts-\"+this.className+\"-box\":\"\")),o.add(this)),r=this.getCrispAdjust(),i.x=r,i.y=(this.baseline?-this.baselineOffset:0)+r,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(n(i,this.deferredAttr)),this.deferredAttr={})},u.prototype.updateTextPadding=function(){var t,e,i=this.text;i.textPath||(this.updateBoxSize(),t=this.baseline?0:this.baselineOffset,e=h(this.paddingLeft,this.padding),s(this.widthSetting)&&this.bBox&&(\"center\"===this.textAlign||\"right\"===this.textAlign)&&(e+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),e===i.x&&t===i.y||(i.attr(\"x\",e),i.hasBoxWidthChanged&&(this.bBox=i.getBBox(!0)),void 0!==t&&i.attr(\"y\",t)),i.x=e,i.y=t)},u.prototype.widthSetter=function(t){this.widthSetting=a(t)?t:void 0},u.prototype.getPaddedWidth=function(){var t=this.padding,e=h(this.paddingLeft,t),t=h(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+t},u.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this[\"forceAnimate:x\"]=!0),this.xSetting=Math.round(t),this.attr(\"translateX\",this.xSetting)},u.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr(\"translateY\",this.ySetting)},u.emptyBBox={width:0,height:0,x:0,y:0},u.textProps=[\"color\",\"direction\",\"fontFamily\",\"fontSize\",\"fontStyle\",\"fontWeight\",\"lineHeight\",\"textAlign\",\"textDecoration\",\"textOutline\",\"textOverflow\",\"width\"],u}),e(t,\"Core/Renderer/SVG/Symbols.js\",[t[\"Core/Utilities.js\"]],function(t){var f=t.defined,l=t.isNumber,g=t.pick;function r(t,e,i,o,r){var s,n,a,h,l,c,d,p,u=[];return r&&(s=r.start||0,n=g(r.r,i),o=g(r.r,o||i),i=Math.abs((r.end||0)-s-2*Math.PI)<.001,p=(r.end||0)-.001,a=r.innerR,i=g(r.open,i),h=Math.cos(s),l=Math.sin(s),c=Math.cos(p),d=Math.sin(p),p=g(r.longArc,p-s-Math.PI<.001?0:1),u.push([\"M\",t+n*h,e+o*l],[\"A\",n,o,0,p,g(r.clockwise,1),t+n*c,e+o*d]),f(a)&&u.push(i?[\"M\",t+a*c,e+a*d]:[\"L\",t+a*c,e+a*d],[\"A\",a,a,0,p,f(r.clockwise)?1-r.clockwise:0,t+a*h,e+a*l]),i||u.push([\"Z\"])),u}function e(t,e,i,o,r){return r&&r.r?c(t,e,i,o,r):[[\"M\",t,e],[\"L\",t+i,e],[\"L\",t+i,e+o],[\"L\",t,e+o],[\"Z\"]]}function c(t,e,i,o,r){r=r&&r.r||0;return[[\"M\",t+r,e],[\"L\",t+i-r,e],[\"C\",t+i,e,t+i,e,t+i,e+r],[\"L\",t+i,e+o-r],[\"C\",t+i,e+o,t+i,e+o,t+i-r,e+o],[\"L\",t+r,e+o],[\"C\",t,e+o,t,e+o,t,e+o-r],[\"L\",t,e+r],[\"C\",t,e,t,e,t+r,e]]}return{arc:r,callout:function(t,e,i,o,r){var s=Math.min(r&&r.r||0,i,o),n=s+6,a=r&&r.anchorX,r=r&&r.anchorY||0,h=c(t,e,i,o,{r:s});return l(a)&&(i<=t+a?e+n<r&&r<e+o-n?h.splice(3,1,[\"L\",t+i,r-6],[\"L\",t+i+6,r],[\"L\",t+i,r+6],[\"L\",t+i,e+o-s]):h.splice(3,1,[\"L\",t+i,o/2],[\"L\",a,r],[\"L\",t+i,o/2],[\"L\",t+i,e+o-s]):t+a<=0?e+n<r&&r<e+o-n?h.splice(7,1,[\"L\",t,r+6],[\"L\",t-6,r],[\"L\",t,r-6],[\"L\",t,e+s]):h.splice(7,1,[\"L\",t,o/2],[\"L\",a,r],[\"L\",t,o/2],[\"L\",t,e+s]):r&&o<r&&t+n<a&&a<t+i-n?h.splice(5,1,[\"L\",a+6,e+o],[\"L\",a,e+o+6],[\"L\",a-6,e+o],[\"L\",t+s,e+o]):r&&r<0&&t+n<a&&a<t+i-n&&h.splice(1,1,[\"L\",a-6,e],[\"L\",a,e-6],[\"L\",a+6,e],[\"L\",i-s,e])),h},circle:function(t,e,i,o){return r(t+i/2,e+o/2,i/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[[\"M\",t+i/2,e],[\"L\",t+i,e+o/2],[\"L\",t+i/2,e+o],[\"L\",t,e+o/2],[\"Z\"]]},rect:e,roundedRect:c,square:e,triangle:function(t,e,i,o){return[[\"M\",t+i/2,e],[\"L\",t+i,e+o],[\"L\",t,e+o],[\"Z\"]]},\"triangle-down\":function(t,e,i,o){return[[\"M\",t,e],[\"L\",t+i,e],[\"L\",t+i/2,e+o],[\"Z\"]]}}}),e(t,\"Core/Renderer/SVG/TextBuilder.js\",[t[\"Core/Renderer/HTML/AST.js\"],t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(h,t,e){var f=t.doc,g=t.SVG_NS,r=t.win,m=e.attr,c=e.extend,i=e.fireEvent,l=e.isString,s=e.objectEach,d=e.pick;function o(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=Boolean(e&&\"ellipsis\"===e.textOverflow),this.noWrap=Boolean(e&&\"nowrap\"===e.whiteSpace),this.fontSize=e&&e.fontSize}return o.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,i=t.renderer,o=d(t.textStr,\"\").toString(),r=-1!==o.indexOf(\"<\"),s=e.childNodes,i=this.width&&!t.added&&i.box,n=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(\",\");if(n!==t.textCache){t.textCache=n,delete t.actualWidth;for(var a=s.length;a--;)e.removeChild(s[a]);r||this.ellipsis||this.width||t.textPath||-1!==o.indexOf(\" \")&&(!this.noWrap||/<br.*?>/g.test(o))?\"\"!==o&&(i&&i.appendChild(e),n=new h(o),this.modifyTree(n.nodes),n.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||\"\").indexOf(\"…\")&&t.attr(\"title\",this.unescapeEntities(t.textStr||\"\",[\"<\",\">\"])),i)&&i.removeChild(e):e.appendChild(f.createTextNode(this.unescapeEntities(o))),l(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},o.prototype.modifyDOM=function(){var t,c=this,d=this.svgElement,p=m(d.element,\"x\");for(d.firstLineMetrics=void 0;(t=d.element.firstChild)&&/^[\\s\\u200B]*$/.test(t.textContent||\" \");)d.element.removeChild(t);[].forEach.call(d.element.querySelectorAll(\"tspan.highcharts-br\"),function(t,e){t.nextSibling&&t.previousSibling&&(0===e&&1===t.previousSibling.nodeType&&(d.firstLineMetrics=d.renderer.fontMetrics(void 0,t.previousSibling)),m(t,{dy:c.getLineHeight(t.nextSibling),x:p}))});var i,o,u=this.width||0;u&&(i=function(e,i){var t=e.textContent||\"\",o=t.replace(/([^\\^])-/g,\"$1- \").split(\" \"),r=!c.noWrap&&(1<o.length||1<d.element.childNodes.length),s=c.getLineHeight(i),n=0,a=d.actualWidth;if(c.ellipsis)t&&c.truncate(e,t,void 0,0,Math.max(0,u-parseInt(c.fontSize||12,10)),function(t,e){return t.substring(0,e)+\"…\"});else if(r){for(var h=[],l=[];i.firstChild&&i.firstChild!==e;)l.push(i.firstChild),i.removeChild(i.firstChild);for(;o.length;)o.length&&!c.noWrap&&0<n&&(h.push(e.textContent||\"\"),e.textContent=o.join(\" \").replace(/- /g,\"-\")),c.truncate(e,void 0,o,0===n&&a||0,u,function(t,e){return o.slice(0,e).join(\" \").replace(/- /g,\"-\")}),a=d.actualWidth,n++;l.forEach(function(t){i.insertBefore(t,e)}),h.forEach(function(t){i.insertBefore(f.createTextNode(t),e);t=f.createElementNS(g,\"tspan\");t.textContent=\"​\",m(t,{dy:s,x:p}),i.insertBefore(t,e)})}},(o=function(e){[].slice.call(e.childNodes).forEach(function(t){t.nodeType===r.Node.TEXT_NODE?i(t,e):(-1!==t.className.baseVal.indexOf(\"highcharts-br\")&&(d.actualWidth=0),o(t))})})(d.element))},o.prototype.getLineHeight=function(t){var e,t=t.nodeType===r.Node.TEXT_NODE?t.parentElement:t;return this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},o.prototype.modifyTree=function(a){function h(t,e){var i=void 0===(i=t.attributes)?{}:i,o=t.children,r=void 0===(r=t.style)?{}:r,s=t.tagName,n=l.renderer.styledMode;\"b\"===s||\"strong\"===s?n?i.class=\"highcharts-strong\":r.fontWeight=\"bold\":\"i\"!==s&&\"em\"!==s||(n?i.class=\"highcharts-emphasized\":r.fontStyle=\"italic\"),r&&r.color&&(r.fill=r.color),\"br\"===s?(i.class=\"highcharts-br\",t.textContent=\"​\",(n=a[e+1])&&n.textContent&&(n.textContent=n.textContent.replace(/^ +/gm,\"\"))):\"a\"===s&&o&&o.some(function(t){return\"#text\"===t.tagName})&&(t.children=[{children:o,tagName:\"tspan\"}]),\"#text\"!==s&&\"a\"!==s&&(t.tagName=\"tspan\"),c(t,{attributes:i,style:r}),o&&o.filter(function(t){return\"#text\"!==t.tagName}).forEach(h)}var l=this;a.forEach(h),i(this.svgElement,\"afterModifyTree\",{nodes:a})},o.prototype.truncate=function(o,r,s,n,t,a){function e(t,e){var e=e||t,i=o.parentNode;if(i&&void 0===p[e])if(i.getSubStringLength)try{p[e]=n+i.getSubStringLength(0,s?e+1:e)}catch(t){}else c.getSpanWidth&&(o.textContent=a(r||s,t),p[e]=n+c.getSpanWidth(l,o));return p[e]}var i,h,l=this.svgElement,c=l.renderer,d=l.rotation,p=[],u=s?1:0,f=(r||s||\"\").length,g=f;if(l.rotation=0,h=e(o.textContent.length),t<n+h){for(;u<=f;)h=e(g=Math.ceil((u+f)/2),(i=s?a(s,g):i)&&i.length-1),u===f?u=f+1:t<h?f=g-1:u=g;0===f?o.textContent=\"\":r&&f===r.length-1||(o.textContent=i||a(r||s,g))}s&&s.splice(0,g),l.actualWidth=h,l.rotation=d},o.prototype.unescapeEntities=function(i,o){return s(this.renderer.escapes,function(t,e){o&&-1!==o.indexOf(t)||(i=i.toString().replace(new RegExp(t,\"g\"),e))}),i},o}),e(t,\"Core/Renderer/SVG/SVGRenderer.js\",[t[\"Core/Renderer/HTML/AST.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Renderer/RendererRegistry.js\"],t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Renderer/SVG/SVGLabel.js\"],t[\"Core/Renderer/SVG/Symbols.js\"],t[\"Core/Renderer/SVG/TextBuilder.js\"],t[\"Core/Utilities.js\"]],function(v,e,t,i,o,l,r,s,n){var a,g=t.charts,h=t.deg2rad,m=t.doc,d=t.isFirefox,x=t.isMS,c=t.isWebKit,p=t.noop,u=t.SVG_NS,y=t.symbolSizes,f=t.win,b=n.addEvent,S=n.attr,k=n.createElement,C=n.css,M=n.defined,w=n.destroyObjectProperties,T=n.extend,A=n.isArray,P=n.isNumber,L=n.isObject,O=n.isString,E=n.merge,D=n.pick,j=n.pInt,I=n.uniqueKey,t=(B.prototype.init=function(t,e,i,o,r,s,n){var a,h=this,l=h.createElement(\"svg\").attr({version:\"1.1\",class:\"highcharts-root\"}),c=l.element;n||l.css(this.getStyle(o)),t.appendChild(c),S(t,\"dir\",\"ltr\"),-1===t.innerHTML.indexOf(\"xmlns\")&&S(c,\"xmlns\",this.SVG_NS),h.isSVG=!0,this.box=c,this.boxWrapper=l,h.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement(\"desc\").add().element.appendChild(m.createTextNode(\"Created with Highcharts 10.3.3\")),h.defs=this.createElement(\"defs\").add(),h.allowHTML=s,h.forExport=r,h.styledMode=n,h.gradients={},h.cache={},h.cacheKeys=[],h.imgCount=0,h.setSize(e,i,!1),d&&t.getBoundingClientRect&&((o=function(){C(t,{left:0,top:0}),a=t.getBoundingClientRect(),C(t,{left:Math.ceil(a.left)-a.left+\"px\",top:Math.ceil(a.top)-a.top+\"px\"})})(),h.unSubPixelFix=b(f,\"resize\",o))},B.prototype.definition=function(t){return new v([t]).addToDOM(this.defs.element)},B.prototype.getReferenceURL=function(){var t,e;if((d||c)&&m.getElementsByTagName(\"base\").length&&(M(a)||(t=I(),t=new v([{tagName:\"svg\",attributes:{width:8,height:8},children:[{tagName:\"defs\",children:[{tagName:\"clipPath\",attributes:{id:t},children:[{tagName:\"rect\",attributes:{width:4,height:4}}]}]},{tagName:\"rect\",attributes:{id:\"hitme\",width:8,height:8,\"clip-path\":\"url(#\".concat(t,\")\"),fill:\"rgba(0,0,0,0.001)\"}}]}]).addToDOM(m.body),C(t,{position:\"fixed\",top:0,left:0,zIndex:9e5}),e=m.elementFromPoint(6,6),a=\"hitme\"===(e&&e.id),m.body.removeChild(t)),a))return f.location.href.split(\"#\")[0].replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\");return\"\"},B.prototype.getStyle=function(t){return this.style=T({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},t),this.style},B.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},B.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},B.prototype.destroy=function(){var t=this,e=t.defs;return t.box=null,t.boxWrapper=t.boxWrapper.destroy(),w(t.gradients||{}),t.gradients=null,e&&(t.defs=e.destroy()),t.unSubPixelFix&&t.unSubPixelFix(),t.alignedObjects=null},B.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},B.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},B.prototype.buildText=function(t){new s(t).buildSVG()},B.prototype.getContrast=function(t){t=e.parse(t).rgba.map(function(t){t/=255;return t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4)}),t=.2126*t[0]+.7152*t[1]+.0722*t[2];return(.05+t)/.05<1.05/(.05+t)?\"#FFFFFF\":\"#000000\"},B.prototype.button=function(t,e,i,o,r,s,n,a,h,l){void 0===r&&(r={});var c,d,p,u=this.label(t,e,i,h,void 0,void 0,l,void 0,\"button\"),f=this.styledMode,t=r.states||{},g=0,m=(delete(r=E(r)).states,E({color:\"#333333\",cursor:\"pointer\",fontWeight:\"normal\"},r.style)),y=(delete r.style,v.filterUserAttributes(r));return u.attr(E({padding:8,r:2},y)),f||(y=E({fill:\"#f7f7f7\",stroke:\"#cccccc\",\"stroke-width\":1},y),s=E(y,{fill:\"#e6e6e6\"},v.filterUserAttributes(s||t.hover||{})),c=s.style,delete s.style,n=E(y,{fill:\"#e6ebf5\",style:{color:\"#000000\",fontWeight:\"bold\"}},v.filterUserAttributes(n||t.select||{})),d=n.style,delete n.style,a=E(y,{style:{color:\"#cccccc\"}},v.filterUserAttributes(a||t.disabled||{})),p=a.style,delete a.style),b(u.element,x?\"mouseover\":\"mouseenter\",function(){3!==g&&u.setState(1)}),b(u.element,x?\"mouseout\":\"mouseleave\",function(){3!==g&&u.setState(g)}),u.setState=function(t){1!==t&&(u.state=g=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass(\"highcharts-button-\"+[\"normal\",\"hover\",\"pressed\",\"disabled\"][t||0]),f||(u.attr([y,s,n,a][t||0]),L(t=[m,c,d,p][t||0])&&u.css(t))},f||(u.attr(y).css(T({cursor:\"default\"},m)),l&&u.text.css({pointerEvents:\"none\"})),u.on(\"touchstart\",function(t){return t.stopPropagation()}).on(\"click\",function(t){3!==g&&o.call(u,t)})},B.prototype.crispLine=function(t,e,i){void 0===i&&(i=\"round\");var o=t[0],r=t[1];return M(o[1])&&o[1]===r[1]&&(o[1]=r[1]=Math[i](o[1])-e%2/2),M(o[2])&&o[2]===r[2]&&(o[2]=r[2]=Math[i](o[2])+e%2/2),t},B.prototype.path=function(t){var e=this.styledMode?{}:{fill:\"none\"};return A(t)?e.d=t:L(t)&&T(e,t),this.createElement(\"path\").attr(e)},B.prototype.circle=function(t,e,i){t=L(t)?t:void 0===t?{}:{x:t,y:e,r:i},e=this.createElement(\"circle\");return e.xSetter=e.ySetter=function(t,e,i){i.setAttribute(\"c\"+e,t)},e.attr(t)},B.prototype.arc=function(t,e,i,o,r,s){L(t)?(e=(n=t).y,i=n.r,o=n.innerR,r=n.start,s=n.end,t=n.x):n={innerR:o,start:r,end:s};var n,o=this.symbol(\"arc\",t,e,i,i,n);return o.r=i,o},B.prototype.rect=function(t,e,i,o,r,s){r=L(t)?t.r:r;var n=this.createElement(\"rect\"),t=L(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)};return this.styledMode||(void 0!==s&&(t[\"stroke-width\"]=s,t=n.crisp(t)),t.fill=\"none\"),r&&(t.r=r),n.rSetter=function(t,e,i){n.r=t,S(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(t)},B.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:\"0 0 \"+this.attr(\"width\")+\" \"+this.attr(\"height\")})},duration:D(i,!0)?void 0:0}),this.alignElements()},B.prototype.g=function(t){var e=this.createElement(\"g\");return t?e.attr({class:\"highcharts-\"+t}):e},B.prototype.image=function(e,t,i,o,r,s){function n(t){h(l.element,e),s.call(l,t)}var a={preserveAspectRatio:\"none\"},h=function(t,e){t.setAttributeNS?t.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",e):t.setAttribute(\"hc-svg-href\",e)},l=(P(t)&&(a.x=t),P(i)&&(a.y=i),P(o)&&(a.width=o),P(r)&&(a.height=r),this.createElement(\"image\").attr(a));return s?(h(l.element,\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"),t=new f.Image,b(t,\"load\",n),t.src=e,t.complete&&n({})):h(l.element,e),l},B.prototype.symbol=function(t,e,i,o,r,l){var s,n,a,h,c=this,d=/^url\\((.*?)\\)$/,p=d.test(t),u=!p&&(this.symbols[t]?t:\"circle\"),f=u&&this.symbols[u];return f?(\"number\"==typeof e&&(s=f.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,r||0,l)),s=this.path(s),c.styledMode||s.attr(\"fill\",\"none\"),T(s,{symbolName:u||void 0,x:e,y:i,width:o,height:r}),l&&T(s,l)):p&&(a=t.match(d)[1],(h=s=this.image(a)).imgwidth=D(y[a]&&y[a].width,l&&l.width),h.imgheight=D(y[a]&&y[a].height,l&&l.height),n=function(t){return t.attr({width:t.width,height:t.height})},[\"width\",\"height\"].forEach(function(t){h[t+\"Setter\"]=function(t,e){this[e]=t;var i,t=this,o=t.alignByTranslate,r=t.element,s=t.width,n=t.height,a=t.imgwidth,t=t.imgheight,h=this[\"img\"+e];M(h)&&(i=1,l&&\"within\"===l.backgroundSize&&s&&n?(i=Math.min(s/a,n/t),h=Math.round(h*i),S(r,{width:Math.round(a*i),height:Math.round(t*i)})):r&&r.setAttribute(e,h),o||this.translate(((s||0)-h*i)/2,((n||0)-h*i)/2))}}),M(e)&&h.attr({x:e,y:i}),h.isImg=!0,M(h.imgwidth)&&M(h.imgheight)?n(h):(h.attr({width:0,height:0}),k(\"img\",{onload:function(){var t=g[c.chartIndex];0===this.width&&(C(this,{position:\"absolute\",top:\"-999em\"}),m.body.appendChild(this)),y[a]={width:this.width,height:this.height},h.imgwidth=this.width,h.imgheight=this.height,h.element&&n(h),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,c.imgCount||!t||t.hasLoaded||t.onload()},src:a}),this.imgCount++)),s},B.prototype.clipRect=function(t,e,i,o){var r=I()+\"-\",s=this.createElement(\"clipPath\").attr({id:r}).add(this.defs),t=this.rect(t,e,i,o,0).add(s);return t.id=r,t.clipPath=s,t.count=0,t},B.prototype.text=function(t,e,i,o){var r=this,s={};if(o&&(r.allowHTML||!r.forExport))return r.html(t,e,i);s.x=Math.round(e||0),i&&(s.y=Math.round(i)),M(t)&&(s.text=t);e=r.createElement(\"text\").attr(s);return o&&(!r.forExport||r.allowHTML)||(e.xSetter=function(t,e,i){for(var o=i.getElementsByTagName(\"tspan\"),r=i.getAttribute(e),s=0,n=void 0;s<o.length;s++)(n=o[s]).getAttribute(e)===r&&n.setAttribute(e,t);i.setAttribute(e,t)}),e},B.prototype.fontMetrics=function(t,e){t=!this.styledMode&&/px/.test(t)||!f.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&o.prototype.getStyle.call(e,\"font-size\");e=(t=/px/.test(t)?j(t):12)<24?t+3:Math.round(1.2*t);return{h:e,b:Math.round(.8*e),f:t}},B.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*h),4)),{x:-t/3*Math.sin(e*h),y:o}},B.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r<t.length;r++)O(i[0])&&P(t[r])&&i.length===o[i[0].toUpperCase()]&&t.splice(r,0,i[0].replace(\"M\",\"L\").replace(\"m\",\"l\")),\"string\"==typeof t[r]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[r]);return e.push(i.slice(0)),e},B.prototype.label=function(t,e,i,o,r,s,n,a,h){return new l(this,t,e,i,o,r,s,n,a,h)},B.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},B);function B(t,e,i,o,r,s,n){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.isSVG=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(t,e,i,o,r,s,n)}return T(t.prototype,{Element:o,SVG_NS:u,escapes:{\"&\":\"&\",\"<\":\"<\",\">\":\">\",\"'\":\"'\",'\"':\""\"},symbols:r,draw:p}),i.registerRendererType(\"svg\",t,!0),t}),e(t,\"Core/Renderer/HTML/HTMLElement.js\",[t[\"Core/Globals.js\"],t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=t.isFirefox,a=t.isMS,h=t.isWebKit,l=t.win,m=i.css,y=i.defined,c=i.extend,d=i.pick,v=i.pInt;function p(){return null!==r&&r.apply(this,arguments)||this}return s(p,r=e),p.compose=function(t){var e,i;return-1===p.composedClasses.indexOf(t)&&(p.composedClasses.push(t),(i=t.prototype).getSpanCorrection=(e=p.prototype).getSpanCorrection,i.htmlCss=e.htmlCss,i.htmlGetBBox=e.htmlGetBBox,i.htmlUpdateTransform=e.htmlUpdateTransform,i.setSpanRotation=e.setSpanRotation),t},p.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},p.prototype.htmlCss=function(t){var e,i=this,o=\"SPAN\"===i.element.tagName&&t&&\"width\"in t,r=d(o&&t.width,void 0);return o&&(delete t.width,i.textWidth=r,e=!0),t&&\"ellipsis\"===t.textOverflow&&(t.whiteSpace=\"nowrap\",t.overflow=\"hidden\"),i.styles=c(i.styles,t),m(i.element,t),e&&i.htmlUpdateTransform(),i},p.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},p.prototype.htmlUpdateTransform=function(){var t,e,i,o,r,s,n,a,h,l,c,d,p,u,f,g;this.added?(e=(t=this).renderer,i=t.element,o=t.translateX||0,r=t.translateY||0,s=t.x||0,n=t.y||0,h={left:0,center:.5,right:1}[a=t.textAlign||\"left\"],l=t.styles,l=l&&l.whiteSpace,m(i,{marginLeft:o,marginTop:r}),!e.styledMode&&t.shadows&&t.shadows.forEach(function(t){m(t,{marginLeft:o+1,marginTop:r+1})}),t.inverted&&[].forEach.call(i.childNodes,function(t){e.invertChild(t,i)}),\"SPAN\"===i.tagName&&(c=t.rotation,d=t.textWidth&&v(t.textWidth),p=[c,a,i.innerHTML,t.textWidth,t.textAlign].join(\",\"),u=void 0,f=!1,d!==t.oldTextWidth&&(g=t.textPxLength||(m(i,{width:\"\",whiteSpace:l||\"nowrap\"}),i.offsetWidth),d>t.oldTextWidth||d<g)&&(/[ \\-]/.test(i.textContent||i.innerText)||\"ellipsis\"===i.style.textOverflow)&&(m(i,{width:d<g||c?d+\"px\":\"auto\",display:\"block\",whiteSpace:l||\"normal\"}),t.oldTextWidth=d,f=!0),t.hasBoxWidthChanged=f,p!==t.cTT&&(u=e.fontMetrics(i.style.fontSize,i).b,!y(c)||c===(t.oldRotation||0)&&a===t.oldAlign||t.setSpanRotation(c,h,u),t.getSpanCorrection(!y(c)&&t.textPxLength||i.offsetWidth,u,h,c,a)),m(i,{left:s+(t.xCorr||0)+\"px\",top:n+(t.yCorr||0)+\"px\"}),t.cTT=p,t.oldRotation=c,t.oldAlign=a)):this.alignOnAdd=!0},p.prototype.setSpanRotation=function(t,e,i){var o={},r=a&&!/Edge/.test(l.navigator.userAgent)?\"-ms-transform\":h?\"-webkit-transform\":n?\"MozTransform\":l.opera?\"-o-transform\":void 0;r&&(o[r]=o.transform=\"rotate(\"+t+\"deg)\",o[r+(n?\"Origin\":\"-origin\")]=o.transformOrigin=100*e+\"% \"+i+\"px\",m(this.element,o))},p.composedClasses=[],p}),e(t,\"Core/Renderer/HTML/HTMLRenderer.js\",[t[\"Core/Renderer/HTML/AST.js\"],t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Renderer/SVG/SVGRenderer.js\"],t[\"Core/Utilities.js\"]],function(n,a,t,e){var o,i,r=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=e.attr,p=e.createElement,u=e.extend,h=e.pick;function s(){return null!==i&&i.apply(this,arguments)||this}return r(s,i=t),s.compose=function(t){return-1===s.composedClasses.indexOf(t)&&(s.composedClasses.push(t),t.prototype.html=s.prototype.html),t},s.prototype.html=function(t,e,i){function l(s,n){[\"opacity\",\"visibility\"].forEach(function(r){s[r+\"Setter\"]=function(t,e,i){var o=s.div?s.div.style:n;a.prototype[r+\"Setter\"].call(this,t,e,i),o&&(o[e]=t)}}),s.addedSetters=!0}var c=this.createElement(\"span\"),o=c.element,r=c.renderer,s=r.isSVG;return c.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,n.setElementHTML(this.element,h(t,\"\")),this.textStr=t,c.doTransform=!0)},s&&l(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(t,e){\"align\"===e?c.alignValue=c.textAlign=t:c[e]=t,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:t,x:Math.round(e),y:Math.round(i)}).css({position:\"absolute\"}),r.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),o.style.whiteSpace=\"nowrap\",c.css=c.htmlCss,s&&(c.add=function(t){var n,e,a=r.box.parentNode,h=[];if(this.parentGroup=t){if(!(n=t.div)){for(e=t;e;)h.push(e),e=e.parentGroup;h.reverse().forEach(function(i){var t=d(i.element,\"class\");function e(t,e){i[e]=t,\"translateX\"===e?s.left=t+\"px\":s.top=t+\"px\",i.doTransform=!0}var o,r=i.styles||{},s=(n=i.div=i.div||p(\"div\",t?{className:t}:void 0,{position:\"absolute\",left:(i.translateX||0)+\"px\",top:(i.translateY||0)+\"px\",display:i.display,opacity:i.opacity,cursor:r.cursor,pointerEvents:r.pointerEvents,visibility:i.visibility},n||a)).style;u(i,{classSetter:(o=n,function(t){this.element.setAttribute(\"class\",t),o.className=t}),on:function(){return h[0].div&&c.on.apply({element:h[0].div,onEvents:i.onEvents},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||l(i)})}}else n=a;return n.appendChild(o),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c}),c},s.composedClasses=[],s}),e(t,\"Core/Axis/AxisDefaults.js\",[],function(){var t,e;return(e=t=t||{}).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:\"%H:%M:%S.%L\",range:!1},second:{main:\"%H:%M:%S\",range:!1},minute:{main:\"%H:%M\",range:!1},hour:{main:\"%H:%M\",range:!1},day:{main:\"%e. %b\"},week:{main:\"%e. %b\"},month:{main:\"%b '%y\"},year:{main:\"%Y\"}},endOnTick:!1,gridLineDashStyle:\"Solid\",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:\"justify\",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"}},maxPadding:.01,minorGridLineDashStyle:\"Solid\",minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:\"between\",tickPosition:\"outside\",title:{align:\"middle\",rotation:0,useHTML:!1,x:0,y:0,style:{color:\"#666666\"}},type:\"linear\",uniqueNames:!0,visible:!0,minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",gridLineWidth:void 0,tickColor:\"#ccd6eb\"},e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:\"justify\",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:\"#000000\",fontSize:\"11px\",fontWeight:\"bold\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},e.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t}),e(t,\"Core/Foundation.js\",[t[\"Core/Utilities.js\"]],function(t){var e,o=t.addEvent,r=t.isFunction,s=t.objectEach,n=t.removeEvent;return(e||(e={})).registerEventOptions=function(i,t){i.eventOptions=i.eventOptions||{},s(t.events,function(t,e){i.eventOptions[e]!==t&&(i.eventOptions[e]&&(n(i,e,i.eventOptions[e]),delete i.eventOptions[e]),r(t))&&(i.eventOptions[e]=t,o(i,e,t))})},e}),e(t,\"Core/Axis/Tick.js\",[t[\"Core/FormatUtilities.js\"],t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"]],function(b,t,e){var y=t.deg2rad,a=e.clamp,S=e.correctFloat,k=e.defined,i=e.destroyObjectProperties,C=e.extend,M=e.fireEvent,w=e.isNumber,s=e.merge,h=e.objectEach,T=e.pick;function o(t,e,i,o,r){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||\"\",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,M(this,\"init\"),i||o||this.addLabel()}return o.prototype.addLabel=function(){function t(t){return p.formatter?p.formatter.call(t,t):p.format?(t.text=s.defaultLabelFormatter.call(t,t),b.format(p.format,t,a)):s.defaultLabelFormatter.call(t,t)}var e,i,o,r=this,s=r.axis,n=s.options,a=s.chart,h=s.categories,l=s.logarithmic,c=s.names,d=r.pos,p=T(r.options&&r.options.labels,n.labels),u=s.tickPositions,f=d===u[0],g=d===u[u.length-1],m=(!p.step||1===p.step)&&1===s.tickInterval,u=u.info,y=r.label,h=this.parameters.category||(h?T(h[d],c[d],d):d),v=(l&&w(h)&&(h=S(l.lin2log(h))),s.dateTime&&(u?e=(i=a.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&u.higherRanks[d]||u.unitName])).main:w(h)&&(e=s.dateTime.getXDateFormat(h,n.dateTimeLabelFormats||{}))),r.isFirst=f,r.isLast=g,{axis:s,chart:a,dateTimeLabelFormat:e,isFirst:f,isLast:g,pos:d,tick:r,tickPositionInfo:u,value:h}),c=(M(this,\"labelFormat\",v),t.call(v,v)),x=i&&i.list;r.shortenLabel=x?function(){for(o=0;o<x.length;o++)if(C(v,{dateTimeLabelFormat:x[o]}),y.attr({text:t.call(v,v)}),y.getBBox().width<s.getSlotWidth(r)-2*p.padding)return;y.attr({text:\"\"})}:void 0,m&&s._addedPlotLB&&r.moveLabel(c,p),k(y)||r.movedLabel?y&&y.textStr!==c&&!m&&(!y.textWidth||p.style.width||y.styles.width||y.css({width:null}),y.attr({text:c}),y.textPxLength=y.getBBox().width):(r.label=y=r.createLabel({x:0,y:0},c,p),r.rotation=0)},o.prototype.createLabel=function(t,e,i){var o=this.axis,r=o.chart,e=k(e)&&i.enabled?r.renderer.text(e,t.x,t.y,i.useHTML).add(o.labelGroup):null;return e&&(r.styledMode||e.css(s(i.style)),e.textPxLength=e.getBBox().width),e},o.prototype.destroy=function(){i(this,this.axis)},o.prototype.getPosition=function(t,e,i,o){var r=this.axis,s=r.chart,n=o&&s.oldChartHeight||s.chartHeight,s={x:t?S(r.translate(e+i,void 0,void 0,o)+r.transB):r.left+r.offset+(r.opposite?(o&&s.oldChartWidth||s.chartWidth)-r.right-r.left:0),y:t?n-r.bottom+r.offset-(r.opposite?r.height:0):S(n-r.translate(e+i,void 0,void 0,o)-r.transB)};return s.y=a(s.y,-1e5,1e5),M(this,\"afterGetPosition\",{pos:s}),s},o.prototype.getLabelPosition=function(t,e,i,o,r,s,n,a){var h=this.axis,l=h.transA,c=(h.isLinked&&h.linkedParent?h.linkedParent:h).reversed,d=h.staggerLines,p=h.tickRotCorr||{x:0,y:0},u=o||h.reserveSpaceDefault?0:-h.labelOffset*(\"center\"===h.labelAlign?.5:1),f={},i=0===h.side?i.rotation?-8:-i.getBBox().height:2===h.side?p.y+8:Math.cos(i.rotation*y)*(p.y-i.getBBox(!1,0).height/2);return k(r.y)&&(i=0===h.side&&h.horiz?r.y+i:r.y),t=t+r.x+u+p.x-(s&&o?s*l*(c?-1:1):0),e=e+i-(s&&!o?s*l*(c?1:-1):0),d&&(r=n/(a||1)%d,e+=(r=h.opposite?d-r-1:r)*(h.labelOffset/d)),f.x=t,f.y=Math.round(e),M(this,\"afterGetLabelPosition\",{pos:f,tickmarkOffset:s,index:n}),f},o.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},o.prototype.getMarkPath=function(t,e,i,o,r,s){return s.crispLine([[\"M\",t,e],[\"L\",t+(r?0:-i),e+(r?i:0)]],o)},o.prototype.handleOverflow=function(t){var e,i=this.axis,o=i.options.labels,r=t.x,s=i.chart.chartWidth,n=i.chart.spacing,a=T(i.labelLeft,Math.min(i.pos,n[3])),n=T(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,s-n[1])),h=this.label,l=this.rotation,c={left:0,center:.5,right:1}[i.labelAlign||h.attr(\"align\")],d=h.getBBox().width,p=i.getSlotWidth(this),u=c,f={},g=p,m=1;l||\"justify\"!==o.overflow?l<0&&r-c*d<a?e=Math.round(r/Math.cos(l*y)-a):0<l&&n<r+c*d&&(e=Math.round((s-r)/Math.cos(l*y))):(r-c*d<a?g=t.x+g*(1-c)-a:n<r+(1-c)*d&&(g=n-t.x+g*c,m=-1),(g=Math.min(p,g))<p&&\"center\"===i.labelAlign&&(t.x+=m*(p-g-u*(p-Math.min(d,g)))),(g<d||i.autoRotation&&(h.styles||{}).width)&&(e=g)),e&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(e)+\"px\",(o.style||{}).textOverflow||(f.textOverflow=\"ellipsis\"),h.css(f)))},o.prototype.moveLabel=function(e,t){var i,o=this,r=o.label,s=o.axis,n=s.reversed,a=!1;r&&r.textStr===e?(o.movedLabel=r,a=!0,delete o.label):h(s.ticks,function(t){a||t.isNew||t===o||!t.label||t.label.textStr!==e||(o.movedLabel=t.label,a=!0,t.labelPos=o.movedLabel.xy,delete t.label)}),a||!o.labelPos&&!r||(r=o.labelPos||r.xy,i=s.horiz?n?0:s.width+s.left:r.x,r=s.horiz?r.y:n?s.width+s.left:0,o.movedLabel=o.createLabel({x:i,y:r},e,t),o.movedLabel&&o.movedLabel.attr({opacity:0}))},o.prototype.render=function(t,e,i){var o=this,r=o.axis,s=r.horiz,n=o.pos,a=T(o.tickmarkOffset,r.tickmarkOffset),n=o.getPosition(s,n,a,e),a=n.x,h=n.y,a=s&&a===r.pos+r.len||!s&&h===r.pos?-1:1,s=T(i,o.label&&o.label.newOpacity,1);i=T(i,1),this.isActive=!0,this.renderGridLine(e,i,a),this.renderMark(n,i,a),this.renderLabel(n,e,s,t),o.isNew=!1,M(this,\"afterRender\")},o.prototype.renderGridLine=function(t,e,i){var o=this,r=o.axis,s=r.options,n={},a=o.pos,h=o.type,l=T(o.tickmarkOffset,r.tickmarkOffset),c=r.chart.renderer,d=o.gridLine,p=s.gridLineWidth,u=s.gridLineColor,f=s.gridLineDashStyle;\"minor\"===o.type&&(p=s.minorGridLineWidth,u=s.minorGridLineColor,f=s.minorGridLineDashStyle),d||(r.chart.styledMode||(n.stroke=u,n[\"stroke-width\"]=p||0,n.dashstyle=f),h||(n.zIndex=1),t&&(e=0),o.gridLine=d=c.path().attr(n).addClass(\"highcharts-\"+(h?h+\"-\":\"\")+\"grid-line\").add(r.gridGroup)),d&&(s=r.getPlotLinePath({value:a+l,lineWidth:d.strokeWidth()*i,force:\"pass\",old:t,acrossPanes:!1}))&&d[t||o.isNew?\"attr\":\"animate\"]({d:s,opacity:e})},o.prototype.renderMark=function(t,e,i){var o=this,r=o.axis,s=r.options,n=r.chart.renderer,a=o.type,h=r.tickSize(a?a+\"Tick\":\"tick\"),l=t.x,t=t.y,c=T(s[\"minor\"!==a?\"tickWidth\":\"minorTickWidth\"],!a&&r.isXAxis?1:0),s=s[\"minor\"!==a?\"tickColor\":\"minorTickColor\"],d=o.mark,p=!d;h&&(r.opposite&&(h[0]=-h[0]),d||(o.mark=d=n.path().addClass(\"highcharts-\"+(a?a+\"-\":\"\")+\"tick\").add(r.axisGroup),r.chart.styledMode)||d.attr({stroke:s,\"stroke-width\":c}),d[p?\"attr\":\"animate\"]({d:o.getMarkPath(l,t,h[0],d.strokeWidth()*i,r.horiz,n),opacity:e}))},o.prototype.renderLabel=function(t,e,i,o){var r=this,s=r.axis,n=s.horiz,a=s.options,h=r.label,l=a.labels,c=l.step,s=T(r.tickmarkOffset,s.tickmarkOffset),d=t.x,p=t.y,u=!0;h&&w(d)&&(h.xy=t=r.getLabelPosition(d,p,h,n,l,s,o,c),r.isFirst&&!r.isLast&&!a.showFirstLabel||r.isLast&&!r.isFirst&&!a.showLastLabel?u=!1:!n||l.step||l.rotation||e||0===i||r.handleOverflow(t),(u=c&&o%c?!1:u)&&w(t.y)?(t.opacity=i,h[r.isNewLabel?\"attr\":\"animate\"](t).show(!0),r.isNewLabel=!1):(h.hide(),r.isNewLabel=!0))},o.prototype.replaceMovedLabel=function(){var t,e=this,i=e.label,o=e.axis,r=o.reversed;i&&!e.isNew&&(t=o.horiz?r?o.left:o.width+o.left:i.xy.x,r=o.horiz?i.xy.y:r?o.width+o.top:o.top,i.animate({x:t,y:r,opacity:0},void 0,i.destroy),delete e.label),o.isDirty=!0,e.label=e.movedLabel,delete e.movedLabel},o}),e(t,\"Core/Axis/Axis.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Axis/AxisDefaults.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Defaults.js\"],t[\"Core/Foundation.js\"],t[\"Core/Globals.js\"],t[\"Core/Axis/Tick.js\"],t[\"Core/Utilities.js\"]],function(t,e,h,i,o,b,S,r){function k(t,e){return p(e,void 0,void 0,O(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount)}var C=t.animObject,f=i.defaultOptions,a=o.registerEventOptions,y=b.deg2rad,g=r.arrayMax,m=r.arrayMin,x=r.clamp,M=r.correctFloat,w=r.defined,n=r.destroyObjectProperties,s=r.erase,T=r.error,l=r.extend,A=r.fireEvent,c=r.isArray,P=r.isNumber,v=r.isString,d=r.merge,p=r.normalizeTickInterval,L=r.objectEach,O=r.pick,u=r.relativeLength,E=r.removeEvent,D=r.splat,j=r.syncTimeout;function I(t,e){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(t,e)}return I.prototype.init=function(t,e){var i=e.isX,o=this,r=(o.chart=t,o.horiz=t.inverted&&!o.isZAxis?!i:i,o.isXAxis=i,o.coll=o.coll||(i?\"xAxis\":\"yAxis\"),A(this,\"init\",{userOptions:e}),o.opposite=O(e.opposite,o.opposite),o.side=O(e.side,o.side,o.horiz?o.opposite?0:2:o.opposite?1:3),o.setOptions(e),this.options),s=r.labels,n=r.type,e=(o.userOptions=e,o.minPixelPadding=0,o.reversed=O(r.reversed,o.reversed),o.visible=r.visible,o.zoomEnabled=r.zoomEnabled,o.hasNames=\"category\"===n||!0===r.categories,o.categories=r.categories||(o.hasNames?[]:void 0),o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.positiveValuesOnly=!!o.logarithmic,o.isLinked=w(r.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len=0,o.minRange=o.userMinRange=r.minRange||r.maxZoom,o.range=r.range,o.offset=r.offset||0,o.max=null,o.min=null,O(r.crosshair,D(t.options.tooltip.crosshairs)[i?0:1]));o.crosshair=!0===e?{}:e,-1===t.axes.indexOf(o)&&(i?t.axes.splice(t.xAxis.length,0,o):t.axes.push(o),t[o.coll].push(o)),o.series=o.series||[],t.inverted&&!o.isZAxis&&i&&void 0===o.reversed&&(o.reversed=!0),o.labelRotation=P(s.rotation)?s.rotation:void 0,a(o,r),A(this,\"afterInit\")},I.prototype.setOptions=function(t){this.options=d(e.defaultXAxisOptions,\"yAxis\"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],d(f[this.coll],t)),A(this,\"afterSetOptions\",{userOptions:t})},I.prototype.defaultLabelFormatter=function(t){var e,i,o=this.axis,r=this.chart.numberFormatter,s=P(this.value)?this.value:NaN,n=o.chart.time,a=o.categories,h=this.dateTimeLabelFormat,l=f.lang,c=l.numericSymbols,d=l.numericSymbolMagnitude||1e3,p=o.logarithmic?Math.abs(s):o.tickInterval,u=c&&c.length;if(a)i=\"\".concat(this.value);else if(h)i=n.dateFormat(h,s);else if(u&&1e3<=p)for(;u--&&void 0===i;)(e=Math.pow(d,u+1))<=p&&10*s%e==0&&null!==c[u]&&0!==s&&(i=r(s/e,-1)+c[u]);return i=void 0===i?1e4<=Math.abs(s)?r(s,-1):r(s,-1,void 0,\"\"):i},I.prototype.getSeriesExtremes=function(){var n,a=this,h=a.chart;A(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1,a.dataMin=a.dataMax=a.threshold=null,a.softThreshold=!a.isXAxis,a.series.forEach(function(t){var e,i,o,r,s;!t.visible&&h.options.chart.ignoreHiddenSeries||(i=(e=t.options).threshold,a.hasVisibleSeries=!(r=o=s=void 0),a.positiveValuesOnly&&i<=0&&(i=null),a.isXAxis?(s=t.xData).length&&(s=a.logarithmic?s.filter(a.validatePositiveValue):s,o=(n=t.getXExtremes(s)).min,r=n.max,P(o)||o instanceof Date||(s=s.filter(P),o=(n=t.getXExtremes(s)).min,r=n.max),s.length)&&(a.dataMin=Math.min(O(a.dataMin,o),o),a.dataMax=Math.max(O(a.dataMax,r),r)):(s=t.applyExtremes(),P(s.dataMin)&&(o=s.dataMin,a.dataMin=Math.min(O(a.dataMin,o),o)),P(s.dataMax)&&(r=s.dataMax,a.dataMax=Math.max(O(a.dataMax,r),r)),w(i)&&(a.threshold=i),e.softThreshold&&!a.positiveValuesOnly||(a.softThreshold=!1)))})}),A(this,\"afterGetSeriesExtremes\")},I.prototype.translate=function(t,e,i,o,r,s){var n,a,h,l,c=this.linkedParent||this,d=(o&&c.old?c.old:c).min;return P(d)?(n=c.minPixelPadding,r=(c.isOrdinal||c.brokenAxis&&c.brokenAxis.hasBreaks||c.logarithmic&&r)&&c.lin2val,a=1,l=h=0,o=(o=(o&&c.old?c.old:c).transA)||c.transA,i&&(a*=-1,h=c.len),c.reversed&&(h-=(a*=-1)*(c.sector||c.len)),e?(t=t*a+h,l=(t-=n)/o+d,r&&(l=c.lin2val(l))):(i=a*((t=r?c.val2lin(t):t)-d)*o,l=(c.isRadial?i:M(i))+h+a*n+(P(s)?o*s:0)),l):NaN},I.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},I.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},I.prototype.getPlotLinePath=function(t){var e,i,o,r,s,n=this,a=n.chart,h=n.left,l=n.top,c=t.old,d=t.value,p=t.lineWidth,u=c&&a.oldChartHeight||a.chartHeight,f=c&&a.oldChartWidth||a.chartWidth,g=n.transB,m=t.translatedValue,y=t.force;function v(t,e,i){return\"pass\"!==y&&(t<e||i<t)&&(y?t=x(t,e,i):s=!0),t}t={value:d,lineWidth:p,old:c,force:y,acrossPanes:t.acrossPanes,translatedValue:m};return A(this,\"getPlotLinePath\",t,function(t){m=O(m,n.translate(d,void 0,void 0,c)),m=x(m,-1e5,1e5),e=o=Math.round(m+g),i=r=Math.round(u-m-g),P(m)?n.horiz?(i=l,r=u-n.bottom,e=o=v(e,h,h+n.width)):(e=h,o=f-n.right,i=r=v(i,l,l+n.height)):y=!(s=!0),t.path=s&&!y?null:a.renderer.crispLine([[\"M\",e,i],[\"L\",o,r]],p||1)}),t.path},I.prototype.getLinearTickPositions=function(t,e,i){var o,r,s,n=M(Math.floor(e/t)*t),a=M(Math.ceil(i/t)*t),h=[];if(M(n+t)===n&&(s=20),this.single)return[e];for(o=n;o<=a&&(h.push(o),(o=M(o+t,s))!==r);)r=o;return h},I.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?O(t.minorTickInterval,\"auto\"):!1===t.minorTicks?null:t.minorTickInterval},I.prototype.getMinorTickPositions=function(){var t,e=this,i=e.options,o=e.tickPositions,r=e.minorTickInterval,s=e.pointRangePadding||0,n=e.min-s,a=e.max+s,s=a-n,h=[];if(s&&s/r<e.len/3){var l=e.logarithmic;if(l)this.paddedTicks.forEach(function(t,e,i){e&&h.push.apply(h,l.getLogTickPositions(r,i[e-1],i[e],!0))});else if(e.dateTime&&\"auto\"===this.getMinorTickInterval())h=h.concat(e.getTimeTicks(e.dateTime.normalizeTimeTickInterval(r),n,a,i.startOfWeek));else for(t=n+(o[0]-n)%r;t<=a&&t!==h[0];t+=r)h.push(t)}return 0!==h.length&&e.trimTicks(h),h},I.prototype.adjustForMinRange=function(){var t,e,i,o,r,s,n,a,h=this,l=h.options,c=h.logarithmic,d=h.min,p=h.max,u=0;h.isXAxis&&void 0===h.minRange&&!c&&(w(l.min)||w(l.max)||w(l.floor)||w(l.ceiling)?h.minRange=null:(h.series.forEach(function(t){if(o=t.xData,r=t.xIncrement?1:o.length-1,1<o.length)for(e=r;0<e;e--)i=o[e]-o[e-1],(!u||i<u)&&(u=i)}),h.minRange=Math.min(5*u,h.dataMax-h.dataMin))),p-d<h.minRange&&(t=h.dataMax-h.dataMin>=h.minRange,s=[d-(s=((a=h.minRange)-p+d)/2),O(l.min,d-s)],t&&(s[2]=h.logarithmic?h.logarithmic.log2lin(h.dataMin):h.dataMin),n=[(d=g(s))+a,O(l.max,d+a)],t&&(n[2]=c?c.log2lin(h.dataMax):h.dataMax),(p=m(n))-d<a)&&(s[0]=p-a,s[1]=O(l.min,p-a),d=g(s)),h.min=d,h.max=p},I.prototype.getClosest=function(){var o;return this.categories?o=1:this.series.forEach(function(t){var e=t.closestPointRange,i=t.visible||!t.chart.options.chart.ignoreHiddenSeries;!t.noSharedTooltip&&w(e)&&i&&(o=w(o)?Math.min(o,e):e)}),o},I.prototype.nameToX=function(t){var e,i=c(this.options.categories),o=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,-1===(r=w(r)?r:this.options.uniqueNames&&o?i?o.indexOf(t.name):O(o.keys[t.name],-1):t.series.autoIncrement())?!i&&o&&(e=o.length):e=r,void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e},I.prototype.updateNames=function(){var r=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(o){o.xIncrement=null,o.points&&!o.isDirtyData||(r.max=Math.max(r.max,o.xData.length-1),o.processData(),o.generatePoints()),o.data.forEach(function(t,e){var i;t&&t.options&&void 0!==t.name&&void 0!==(i=r.nameToX(t))&&i!==t.x&&(t.x=i,o.xData[e]=i)})}))},I.prototype.setAxisTranslation=function(){var o,r=this,t=r.max-r.min,e=r.linkedParent,s=!!r.categories,n=r.isXAxis,a=r.axisPointRange||0,h=0,l=0;r.transA;(n||s||a)&&(o=r.getClosest(),e?(h=e.minPointOffset,l=e.pointRangePadding):r.series.forEach(function(t){var e=s?1:n?O(t.options.pointRange,o,0):r.axisPointRange||0,i=t.options.pointPlacement;a=Math.max(a,e),r.single&&!s||(t=t.is(\"xrange\")?!n:n,h=Math.max(h,t&&v(i)?0:e/2),l=Math.max(l,t&&\"on\"===i?0:e))}),e=r.ordinal&&r.ordinal.slope&&o?r.ordinal.slope/o:1,r.minPointOffset=h*=e,r.pointRangePadding=l*=e,r.pointRange=Math.min(a,r.single&&s?1:t),n)&&(r.closestPointRange=o),r.translationSlope=r.transA=e=r.staticScale||r.len/(t+l||1),r.transB=r.horiz?r.left:r.bottom,r.minPixelPadding=e*h,A(this,\"afterSetAxisTranslation\")},I.prototype.minFromRange=function(){return this.max-this.range},I.prototype.setTickInterval=function(t){var e,i,o,r,s,n=this,a=n.chart,h=n.logarithmic,l=n.options,c=n.isXAxis,d=n.isLinked,p=l.tickPixelInterval,u=n.categories,f=n.softThreshold,g=l.maxPadding,m=l.minPadding,y=P(l.tickInterval)&&0<=l.tickInterval?l.tickInterval:void 0,v=P(n.threshold)?n.threshold:null,x=(n.dateTime||u||d||this.getTickAmount(),o=O(n.userMin,l.min),r=O(n.userMax,l.max),d?(n.linkedParent=a[n.coll][l.linkedTo],e=n.linkedParent.getExtremes(),n.min=O(e.min,e.dataMin),n.max=O(e.max,e.dataMax),l.type!==n.linkedParent.options.type&&T(11,1,a)):(f&&w(v)&&(n.dataMin>=v?(x=v,m=0):n.dataMax<=v&&(i=v,g=0)),n.min=O(o,x,n.dataMin),n.max=O(r,i,n.dataMax)),h&&(n.positiveValuesOnly&&!t&&Math.min(n.min,O(n.dataMin,n.min))<=0&&T(10,1,a),n.min=M(h.log2lin(n.min),16),n.max=M(h.log2lin(n.max),16)),n.range&&w(n.max)&&(n.userMin=n.min=o=Math.max(n.dataMin,n.minFromRange()),n.userMax=r=n.max,n.range=null),A(n,\"foundExtremes\"),n.beforePadding&&n.beforePadding(),n.adjustForMinRange(),u||n.axisPointRange||n.stacking&&n.stacking.usePercentage||d||!w(n.min)||!w(n.max)||(e=n.max-n.min)&&(!w(o)&&m&&(n.min-=e*m),!w(r))&&g&&(n.max+=e*g),P(n.userMin)||(P(l.softMin)&&l.softMin<n.min&&(n.min=o=l.softMin),P(l.floor)&&(n.min=Math.max(n.min,l.floor))),P(n.userMax)||(P(l.softMax)&&l.softMax>n.max&&(n.max=r=l.softMax),P(l.ceiling)&&(n.max=Math.min(n.max,l.ceiling))),f&&w(n.dataMin)&&(v=v||0,!w(o)&&n.min<v&&n.dataMin>=v?n.min=n.options.minRange?Math.min(v,n.max-n.minRange):v:!w(r)&&n.max>v&&n.dataMax<=v&&(n.max=n.options.minRange?Math.max(v,n.min+n.minRange):v)),P(n.min)&&P(n.max)&&!this.chart.polar&&n.min>n.max&&(w(n.options.min)?n.max=n.min:w(n.options.max)&&(n.min=n.max)),n.min===n.max||void 0===n.min||void 0===n.max?n.tickInterval=1:d&&n.linkedParent&&!y&&p===n.linkedParent.options.tickPixelInterval?n.tickInterval=y=n.linkedParent.tickInterval:n.tickInterval=O(y,this.tickAmount?(n.max-n.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(n.max-n.min)*p/Math.max(n.len,p)),c&&!t&&(s=n.min!==(n.old&&n.old.min)||n.max!==(n.old&&n.old.max),n.series.forEach(function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(s)}),A(this,\"postProcessData\",{hasExtremesChanged:s})),n.setAxisTranslation(),A(this,\"initialAxisTranslation\"),n.pointRange&&!y&&(n.tickInterval=Math.max(n.pointRange,n.tickInterval)),O(l.minTickInterval,n.dateTime&&!n.series.some(function(t){return t.noSharedTooltip})?n.closestPointRange:0));!y&&n.tickInterval<x&&(n.tickInterval=x),n.dateTime||n.logarithmic||y||(n.tickInterval=k(n,n.tickInterval)),this.tickAmount||(n.tickInterval=n.unsquish()),this.setTickPositions()},I.prototype.setTickPositions=function(){var t,e=this,i=this.options,o=i.tickPositions,r=i.tickPositioner,s=this.getMinorTickInterval(),n=this.hasVerticalPanning(),a=\"colorAxis\"===this.coll,h=(a||!n)&&i.startOnTick,a=(a||!n)&&i.endOnTick,l=[];if(this.tickmarkOffset=this.categories&&\"between\"===i.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval=\"auto\"===s&&this.tickInterval?this.tickInterval/5:s,this.single=this.min===this.max&&w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==i.allowDecimals),o)l=o.slice();else if(P(this.min)&&P(this.max)){if(e.ordinal&&e.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(e.dateTime)l=e.getTimeTicks(e.dateTime.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,e.ordinal&&e.ordinal.positions,this.closestPointRange,!0);else if(e.logarithmic)l=e.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var c=this.tickInterval,d=c;d<=2*c&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount)&&l.length>this.tickAmount;)this.tickInterval=k(this,d*=1.1);else l=[this.min,this.max],T(19,!1,this.chart);l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),r&&(this.tickPositions=l,t=r.apply(e,[this.min,this.max]))&&(l=t)}this.tickPositions=l,this.paddedTicks=l.slice(0),this.trimTicks(l,h,a),!this.isLinked&&P(this.min)&&P(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some(function(t){return t.is(\"heatmap\")&&\"between\"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),o||t||this.adjustTickAmount()),A(this,\"afterSetTickPositions\")},I.prototype.trimTicks=function(t,e,i){var o=t[0],r=t[t.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if(A(this,\"trimTicks\"),!this.isLinked){if(e&&o!==-1/0)this.min=o;else for(;this.min-s>t[0];)t.shift();if(i)this.max=r;else for(;this.max+s<t[t.length-1];)t.pop();0===t.length&&w(o)&&!this.options.tickPositions&&t.push((r+o)/2)}},I.prototype.alignToOthers=function(){var i,o,r,e,s=this,n=[this],t=s.options,a=\"yAxis\"===this.coll&&this.chart.options.chart.alignThresholds,h=[];return s.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&t.alignTicks||a)&&!1!==t.startOnTick&&!1!==t.endOnTick&&!s.logarithmic&&(r=(o=function(t){var e=t.horiz,t=t.options;return[e?t.left:t.top,t.width,t.height,t.pane].join(\",\")})(this),this.chart[this.coll].forEach(function(t){var e=t.series;e.length&&e.some(function(t){return t.visible})&&t!==s&&o(t)===r&&(i=!0,n.push(t))})),i&&a&&(n.forEach(function(t){t=t.getThresholdAlignment(s);P(t)&&h.push(t)}),e=1<h.length?h.reduce(function(t,e){return t+e},0)/h.length:void 0,n.forEach(function(t){t.thresholdAlignment=e})),i},I.prototype.getThresholdAlignment=function(t){if((!P(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),P(this.threshold))return t=x((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed?1-t:t},I.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;(i=!(i=!w(t.tickInterval)&&!i&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick?2:i)&&this.alignToOthers()?Math.ceil(this.len/e)+1:i)<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i},I.prototype.adjustTickAmount=function(){function t(){c.push(M(c[c.length-1]+g))}function e(){c.unshift(M(c[0]-g))}var i,o,r,s=this,n=s.finalTickAmt,a=s.max,h=s.min,l=s.options,c=s.tickPositions,d=s.tickAmount,p=s.thresholdAlignment,u=c&&c.length,f=O(s.threshold,s.softThreshold?0:null),g=s.tickInterval;if(P(p)&&(r=p<.5?Math.ceil(p*(d-1)):Math.floor(p*(d-1)),l.reversed)&&(r=d-1-r),s.hasData()&&P(h)&&P(a)){p=function(){s.transA*=(u-1)/(d-1),s.min=l.startOnTick?c[0]:Math.min(h,c[0]),s.max=l.endOnTick?c[c.length-1]:Math.max(a,c[c.length-1])};if(P(r)&&P(s.threshold)){for(;c[r]!==f||c.length!==d||c[0]>h||c[c.length-1]<a;){for(c.length=0,c.push(s.threshold);c.length<d;)(void 0===c[r]||c[r]>s.threshold?e:t)();if(g>8*s.tickInterval)break;g*=2}p()}else if(u<d){for(;c.length<d;)(c.length%2||h===f?t:e)();p()}if(w(n)){for(o=i=c.length;o--;)(3===n&&o%2==1||n<=2&&0<o&&o<i-1)&&c.splice(o,1);s.finalTickAmt=void 0}}},I.prototype.setScale=function(){var t=this,e=!1,i=!1,o=(t.series.forEach(function(t){e=e||t.isDirtyData||t.isDirty,i=i||t.xAxis&&t.xAxis.isDirty||!1}),t.setAxisSize(),t.len!==(t.old&&t.old.len));o||e||i||t.isLinked||t.forceRedraw||t.userMin!==(t.old&&t.old.userMin)||t.userMax!==(t.old&&t.old.userMax)||t.alignToOthers()?(t.stacking&&(t.stacking.resetStacks(),t.stacking.buildStacks()),t.forceRedraw=!1,t.getSeriesExtremes(),t.setTickInterval(),t.isDirty||(t.isDirty=o||t.min!==(t.old&&t.old.min)||t.max!==(t.old&&t.old.max))):t.stacking&&t.stacking.cleanStacks(),e&&t.panningState&&(t.panningState.isDirty=!0),A(this,\"afterSetScale\")},I.prototype.setExtremes=function(t,e,i,o,r){var s=this,n=s.chart;i=O(i,!0),s.series.forEach(function(t){delete t.kdTree}),r=l(r,{min:t,max:e}),A(s,\"setExtremes\",r,function(){s.userMin=t,s.userMax=e,s.eventArgs=r,i&&n.redraw(o)})},I.prototype.zoom=function(t,e){var o=this,r=this.dataMin,s=this.dataMax,i=this.options,n=Math.min(r,O(i.min,r)),a=Math.max(s,O(i.max,s)),i={newMin:t,newMax:e};return A(this,\"zoom\",i,function(t){var e=t.newMin,i=t.newMax;e===o.min&&i===o.max||(o.allowZoomOutside||(w(r)&&a<(e=e<n?n:e)&&(e=a),w(s)&&a<(i=i<n?n:i)&&(i=a)),o.displayBtn=void 0!==e||void 0!==i,o.setExtremes(e,i,!1,void 0,{trigger:\"zoom\"})),t.zoomed=!0}),i.zoomed},I.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,r=this.width=Math.round(u(O(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),s=this.height=Math.round(u(O(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(u(O(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),e=this.left=Math.round(u(O(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-s-n,this.right=t.chartWidth-r-e,this.len=Math.max(o?r:s,0),this.pos=o?e:n},I.prototype.getExtremes=function(){var t=this,e=t.logarithmic;return{min:e?M(e.lin2log(t.min)):t.min,max:e?M(e.lin2log(t.max)):t.max,dataMin:t.dataMin,dataMax:t.dataMax,userMin:t.userMin,userMax:t.userMax}},I.prototype.getThreshold=function(t){var e=this,i=e.logarithmic,o=i?i.lin2log(e.min):e.min,i=i?i.lin2log(e.max):e.max;return null===t||t===-1/0?t=o:t===1/0?t=i:t<o?t=o:i<t&&(t=i),e.translate(t,0,1,0,1)},I.prototype.autoLabelAlign=function(t){var e=(O(t,0)-90*this.side+720)%360,t={align:\"center\"};return A(this,\"autoLabelAlign\",t,function(t){15<e&&e<165?t.align=\"right\":195<e&&e<345&&(t.align=\"left\")}),t.align},I.prototype.tickSize=function(t){var e,i=this.options,o=O(i[\"tick\"===t?\"tickWidth\":\"minorTickWidth\"],\"tick\"===t&&this.isXAxis&&!this.categories?1:0),r=i[\"tick\"===t?\"tickLength\":\"minorTickLength\"],i={tickSize:e=o&&r?[r=\"inside\"===i[t+\"Position\"]?-r:r,o]:e};return A(this,\"afterTickSize\",i),i.tickSize},I.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},I.prototype.unsquish=function(){function t(t){var e=1<(e=t/(n||1))?Math.ceil(e):1;return l<e*s&&t!==1/0&&n!==1/0&&l&&(e=Math.ceil(l/s)),M(e*s)}var e,i,o=this.options.labels,r=this.horiz,s=this.tickInterval,n=this.len/(((this.categories?1:0)+this.max-this.min)/s),a=o.rotation,h=this.labelMetrics(),l=Math.max(this.max-this.min,0),c=s,d=Number.MAX_VALUE;if(r){if(o.staggerLines||(P(a)?i=[a]:n<o.autoRotationLimit&&(i=o.autoRotation)),i)for(var p,u,f=0,g=i;f<g.length;f++){var m=g[f];(m===a||m&&-90<=m&&m<=90)&&(u=(p=t(Math.abs(h.h/Math.sin(y*m))))+Math.abs(m/360))<d&&(d=u,e=m,c=p)}}else c=t(h.h);return this.autoRotation=i,this.labelRotation=O(e,P(a)?a:0),o.step?s:c},I.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),s=e.margin[3];if(t&&P(t.slotWidth))return t.slotWidth;if(i&&o.step<2)return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){t=o.style.width;if(void 0!==t)return parseInt(String(t),10);if(s)return s-e.spacing[3]}return.33*e.chartWidth},I.prototype.renderUnsquish=function(){var r,s,t,e,i=this.chart,o=i.renderer,n=this.tickPositions,a=this.ticks,h=this.options.labels,l=h.style,c=this.horiz,d=this.getSlotWidth(),p=Math.max(1,Math.round(d-2*h.padding)),u={},f=this.labelMetrics(),g=l.textOverflow,m=0;if(v(h.rotation)||(u.rotation=h.rotation||0),n.forEach(function(t){t=a[t];t.movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>m&&(m=t.label.textPxLength)}),this.maxLabelLength=m,this.autoRotation)p<m&&m>f.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(r=p,!g))for(s=\"clip\",t=n.length;!c&&t--;)e=n[t],(e=a[e].label)&&(e.styles&&\"ellipsis\"===e.styles.textOverflow?e.css({textOverflow:\"clip\"}):e.textPxLength>d&&e.css({width:d+\"px\"}),e.getBBox().height>this.len/n.length-(f.h-f.f))&&(e.specificTextOverflow=\"ellipsis\");u.rotation&&(r=m>.5*i.chartHeight?.33*i.chartHeight:m,g||(s=\"ellipsis\")),this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(u.align=this.labelAlign),n.forEach(function(t){var t=a[t],e=t&&t.label,i=l.width,o={};e&&(e.attr(u),t.shortenLabel?t.shortenLabel():r&&!i&&\"nowrap\"!==l.whiteSpace&&(r<e.textPxLength||\"SPAN\"===e.element.tagName)?(o.width=r+\"px\",g||(o.textOverflow=e.specificTextOverflow||s),e.css(o)):e.styles&&e.styles.width&&!o.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=u.rotation)},this),this.tickRotCorr=o.rotCorr(f.b,this.labelRotation||0,0!==this.side)},I.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&w(this.min)&&w(this.max)},I.prototype.addTitle=function(t){var e,i=this,o=i.chart.renderer,r=i.horiz,s=i.opposite,n=i.options.title,a=i.chart.styledMode;i.axisTitle||(e=(e=n.textAlign)||(r?{low:\"left\",middle:\"center\",high:\"right\"}:{low:s?\"right\":\"left\",middle:\"center\",high:s?\"left\":\"right\"})[n.align],i.axisTitle=o.text(n.text||\"\",0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation,align:e}).addClass(\"highcharts-axis-title\"),a||i.axisTitle.css(d(n.style)),i.axisTitle.add(i.axisGroup),i.axisTitle.isNew=!0),a||n.style.width||i.isRadial||i.axisTitle.css({width:i.len+\"px\"}),i.axisTitle[t?\"show\":\"hide\"](t)},I.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new S(this,t)},I.prototype.getOffset=function(){var t,e,i,o=this,r=this,s=r.chart,n=r.horiz,a=r.options,h=r.side,l=r.ticks,c=r.tickPositions,d=r.coll,p=r.axisParent,u=s.renderer,f=s.inverted&&!r.isZAxis?[1,0,3,2][h]:h,g=r.hasData(),m=a.title,y=a.labels,v=s.axisOffset,s=s.clipOffset,x=[-1,1,1,-1][h],b=a.className,S=0,k=0,C=0;r.showAxis=i=g||a.showEmpty,r.staggerLines=r.horiz&&y.staggerLines||void 0,r.axisGroup||(r.gridGroup=(e=function(t,e,i){return u.g(t).attr({zIndex:i}).addClass(\"highcharts-\".concat(d.toLowerCase()).concat(e,\" \")+(o.isRadial?\"highcharts-radial-axis\".concat(e,\" \"):\"\")+(b||\"\")).add(p)})(\"grid\",\"-grid\",a.gridZIndex),r.axisGroup=e(\"axis\",\"\",a.zIndex),r.labelGroup=e(\"axis-labels\",\"-labels\",y.zIndex)),g||r.isLinked?(c.forEach(function(t){r.generateTick(t)}),r.renderUnsquish(),r.reserveSpaceDefault=0===h||2===h||{1:\"left\",3:\"right\"}[h]===r.labelAlign,O(y.reserveSpace,\"center\"===r.labelAlign||null,r.reserveSpaceDefault)&&c.forEach(function(t){C=Math.max(l[t].getLabelSize(),C)}),r.staggerLines&&(C*=r.staggerLines),r.labelOffset=C*(r.opposite?-1:1)):L(l,function(t,e){t.destroy(),delete l[e]}),m&&m.text&&!1!==m.enabled&&(r.addTitle(i),i)&&!1!==m.reserveSpace&&(r.titleOffset=S=r.axisTitle.getBBox()[n?\"height\":\"width\"],t=m.offset,k=w(t)?0:O(m.margin,n?5:10)),r.renderLine(),r.offset=x*O(a.offset,v[h]?v[h]+(a.margin||0):0),r.tickRotCorr=r.tickRotCorr||{x:0,y:0},e=0===h?-r.labelMetrics().h:2===h?r.tickRotCorr.y:0,g=Math.abs(C)+k,C&&(g=(g-=e)+x*(n?O(y.y,r.tickRotCorr.y+8*x):y.x)),r.axisTitleMargin=O(t,g),r.getMaxLabelDimensions&&(r.maxLabelDimensions=r.getMaxLabelDimensions(l,c)),\"colorAxis\"!==d&&(i=this.tickSize(\"tick\"),v[h]=Math.max(v[h],(r.axisTitleMargin||0)+S+x*r.offset,g,c&&c.length&&i?i[0]+x*r.offset:0),m=!r.axisLine||a.offset?0:2*Math.floor(r.axisLine.strokeWidth()/2),s[f]=Math.max(s[f],m)),A(this,\"afterGetOffset\")},I.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,r=this.horiz,s=this.left+(i?this.width:0)+o,o=e.chartHeight-this.bottom-(i?this.height:0)+o;return i&&(t*=-1),e.renderer.crispLine([[\"M\",r?this.left:s,r?o:this.top],[\"L\",r?e.chartWidth-this.right:s,r?o:e.chartHeight-this.bottom]],t)},I.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass(\"highcharts-axis-line\").add(this.axisGroup),this.chart.styledMode)||this.axisLine.attr({stroke:this.options.lineColor,\"stroke-width\":this.options.lineWidth,zIndex:7})},I.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,i=this.top,o=this.len,r=this.options.title,s=t?e:i,n=this.opposite,a=this.offset,h=r.x,l=r.y,c=this.axisTitle,d=this.chart.renderer.fontMetrics(r.style.fontSize,c),c=c?Math.max(c.getBBox(!1,0).height-d.h-1,0):0,s={low:s+(t?0:o),middle:s+o/2,high:s+(t?o:0)}[r.align],o=(t?i+this.height:e)+(t?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-c,c,d.f,-c][this.side],r={x:t?s+h:o+(n?this.width:0)+a+h,y:t?o+l-(n?this.height:0)+a:s+l};return A(this,\"afterGetTitlePosition\",{titlePosition:r}),r},I.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new S(this,t,\"minor\")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},I.prototype.renderTick=function(t,e,i){var o=this,r=o.isLinked,s=o.ticks;(!r||t>=o.min&&t<=o.max||o.grid&&o.grid.isColumn)&&(s[t]||(s[t]=new S(o,t)),i&&s[t].isNew&&s[t].render(e,!0,-1),s[t].render(e))},I.prototype.render=function(){var i,o,r,s=this,n=s.chart,a=s.logarithmic,t=n.renderer,e=s.options,h=s.isLinked,l=s.tickPositions,c=s.axisTitle,d=s.ticks,p=s.minorTicks,u=s.alternateBands,f=e.stackLabels,g=e.alternateGridColor,m=s.tickmarkOffset,y=s.axisLine,v=s.showAxis,x=C(t.globalAnimation);s.labelEdge.length=0,s.overlap=!1,[d,p,u].forEach(function(t){L(t,function(t){t.isActive=!1})}),(s.hasData()||h)&&(r=s.chart.hasRendered&&s.old&&P(s.old.min),s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(t){s.renderMinorTick(t,r)}),l.length&&(l.forEach(function(t,e){s.renderTick(t,e,r)}),m)&&(0===s.min||s.single)&&(d[-1]||(d[-1]=new S(s,-1,null,!0)),d[-1].render(-1)),g&&l.forEach(function(t,e){o=void 0!==l[e+1]?l[e+1]+m:s.max-m,e%2==0&&t<s.max&&o<=s.max+(n.polar?-m:m)&&(u[t]||(u[t]=new b.PlotLineOrBand(s)),i=t+m,u[t].options={from:a?a.lin2log(i):i,to:a?a.lin2log(o):o,color:g,className:\"highcharts-alternate-grid\"},u[t].render(),u[t].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(t){s.addPlotBandOrLine(t)}))),[d,p,u].forEach(function(e){var i=[],t=x.duration;L(e,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),j(function(){for(var t=i.length;t--;)e[i[t]]&&!e[i[t]].isActive&&(e[i[t]].destroy(),delete e[i[t]])},e!==u&&n.hasRendered&&t?t:0)}),y&&(y[y.isPlaced?\"animate\":\"attr\"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[v?\"show\":\"hide\"](v)),c&&v&&(t=s.getTitlePosition(),c[c.isNew?\"attr\":\"animate\"](t),c.isNew=!1),f&&f.enabled&&s.stacking&&s.stacking.renderStackTotals(),s.old={len:s.len,max:s.max,min:s.min,transA:s.transA,userMax:s.userMax,userMin:s.userMin},s.isDirty=!1,A(this,\"afterRender\")},I.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},I.prototype.getKeepProps=function(){return this.keepProps||I.keepProps},I.prototype.destroy=function(t){var e,i=this,o=i.plotLinesAndBands,r=this.eventOptions;if(A(this,\"destroy\",{keepEvents:t}),t||E(i),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(t){n(t)}),o)for(var s=o.length;s--;)o[s].destroy();for(e in[\"axisLine\",\"axisTitle\",\"axisGroup\",\"gridGroup\",\"labelGroup\",\"cross\",\"scrollbar\"].forEach(function(t){i[t]&&(i[t]=i[t].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();L(i,function(t,e){-1===i.getKeepProps().indexOf(e)&&delete i[e]}),this.eventOptions=r},I.prototype.drawCrosshair=function(t,e){var i,o,r=this.crosshair,s=O(r&&r.snap,!0),n=this.chart,a=this.cross;if(A(this,\"drawCrosshair\",{e:t,point:e}),t=t||this.cross&&this.cross.e,r&&!1!==(w(e)||!s)){if(s?w(e)&&(o=O(\"colorAxis\"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):o=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),w(o)&&(s={value:e&&(this.isXAxis?e.x:O(e.stackY,e.y)),translatedValue:o},n.polar&&l(s,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),i=this.getPlotLinePath(s)||null),!w(i))return void this.hideCrosshair();o=this.categories&&!this.isRadial,a||(this.cross=a=n.renderer.path().addClass(\"highcharts-crosshair highcharts-crosshair-\"+(o?\"category \":\"thin \")+(r.className||\"\")).attr({zIndex:O(r.zIndex,2)}).add(),n.styledMode)||(a.attr({stroke:r.color||(o?h.parse(\"#ccd6eb\").setOpacity(.25).get():\"#cccccc\"),\"stroke-width\":O(r.width,1)}).css({\"pointer-events\":\"none\"}),r.dashStyle&&a.attr({dashstyle:r.dashStyle})),a.show().attr({d:i}),o&&!r.width&&a.attr({\"stroke-width\":this.transA}),this.cross.e=t}else this.hideCrosshair();A(this,\"afterDrawCrosshair\",{e:t,point:e})},I.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),A(this,\"afterHideCrosshair\")},I.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return Boolean(t&&t.enabled&&/y/.test(t.type))},I.prototype.validatePositiveValue=function(t){return P(t)&&0<t},I.prototype.update=function(t,e){var i=this.chart;t=d(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,O(e,!0)&&i.redraw()},I.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,r=o.length;r--;)o[r]&&o[r].remove(!1);s(e.axes,this),s(e[i],this),e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,O(t,!0)&&e.redraw()},I.prototype.setTitle=function(t,e){this.update({title:t},e)},I.prototype.setCategories=function(t,e){this.update({categories:t},e)},I.defaultOptions=e.defaultXAxisOptions,I.keepProps=[\"extKey\",\"hcEvents\",\"names\",\"series\",\"userMax\",\"userMin\"],I}),e(t,\"Core/Axis/DateTimeAxis.js\",[t[\"Core/Utilities.js\"]],function(t){var e,i=t.addEvent,a=t.getMagnitude,h=t.normalizeTickInterval,l=t.timeUnits,t=e=e||{},o=[];function r(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function s(t){\"datetime\"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new n(this))}t.compose=function(t){return-1===o.indexOf(t)&&(o.push(t),t.keepProps.push(\"dateTime\"),t.prototype.getTimeTicks=r,i(t,\"init\",s)),t},c.prototype.normalizeTimeTickInterval=function(t,e){for(var i=e||[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1,2]],[\"week\",[1,2]],[\"month\",[1,2,3,4,6]],[\"year\",null]],o=i[i.length-1],r=l[o[0]],s=o[1],n=0;n<i.length;n++){o=i[n],r=l[o[0]],s=o[1];if(i[n+1])if(t<=(r*s[s.length-1]+l[i[n+1][0]])/2)break}return r===l.year&&t<5*r&&(s=[1,2,5]),{unitRange:r,count:h(t/r,s,\"year\"===o[0]?Math.max(a(t/r),1):1),unitName:o[0]}},c.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main};var n=c;function c(t){this.axis=t}return t.Additions=n,e}),e(t,\"Core/Axis/LogarithmicAxis.js\",[t[\"Core/Utilities.js\"]],function(t){var e,i=t.addEvent,x=(t.getMagnitude,t.normalizeTickInterval),b=t.pick,t=e=e||{},o=[];function r(t){var t=t.userOptions,e=this.logarithmic;\"logarithmic\"!==t.type?this.logarithmic=void 0:e||(this.logarithmic=new n(this))}function s(){var e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}t.compose=function(t){return-1===o.indexOf(t)&&(o.push(t),t.keepProps.push(\"logarithmic\"),i(t,\"init\",r),i(t,\"afterInit\",s)),t},a.prototype.getLogTickPositions=function(t,e,i,o){var r=this,s=r.axis,n=s.len,a=s.options,h=[];if(o||(r.minorAutoInterval=void 0),.5<=t)t=Math.round(t),h=s.getLinearTickPositions(t,e,i);else if(.08<=t)for(var l,c,d=void 0,p=void 0,u=void 0,f=void 0,g=void 0,d=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],p=Math.floor(e);p<i+1&&!g;p++)for(l=d.length,u=0;u<l&&!g;u++)e<(c=r.log2lin(r.lin2log(p)*d[u]))&&(!o||f<=i)&&void 0!==f&&h.push(f),i<f&&(g=!0),f=c;else{var m=r.lin2log(e),y=r.lin2log(i),v=o?s.getMinorTickInterval():a.tickInterval,a=a.tickPixelInterval/(o?5:1),n=o?n/s.tickPositions.length:n;t=b(\"auto\"===v?null:v,r.minorAutoInterval,(y-m)*a/(n||1)),t=x(t),h=s.getLinearTickPositions(t,m,y).map(r.log2lin),o||(r.minorAutoInterval=t/5)}return o||(s.tickInterval=t),h},a.prototype.lin2log=function(t){return Math.pow(10,t)},a.prototype.log2lin=function(t){return Math.log(t)/Math.LN10};var n=a;function a(t){this.axis=t}return t.Additions=n,e}),e(t,\"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js\",[t[\"Core/Utilities.js\"]],function(t){var e,n,s=t.erase,i=t.extend,f=t.isNumber,o=(e=e||{},[]),r=(e.compose=function(t,e){return n=n||t,-1===o.indexOf(e)&&(o.push(e),i(e.prototype,r.prototype)),e},a.prototype.getPlotBandPath=function(t,e,i){void 0===i&&(i=this.options);var o,r,s=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),n=[],a=this.horiz,e=!f(this.min)||!f(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,h=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),l=1;if(h&&s)for(e&&(r=h.toString()===s.toString(),l=0),o=0;o<h.length;o+=2){var c=h[o],d=h[o+1],p=s[o],u=s[o+1];\"M\"!==c[0]&&\"L\"!==c[0]||\"M\"!==d[0]&&\"L\"!==d[0]||\"M\"!==p[0]&&\"L\"!==p[0]||\"M\"!==u[0]&&\"L\"!==u[0]||(a&&p[1]===c[1]?(p[1]+=l,u[1]+=l):a||p[2]!==c[2]||(p[2]+=l,u[2]+=l),n.push([\"M\",c[1],c[2]],[\"L\",d[1],d[2]],[\"L\",u[1],u[2]],[\"L\",p[1],p[2]],[\"Z\"])),n.isFlat=r}else h=null;return n},a.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,\"plotBands\")},a.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,\"plotLines\")},a.prototype.addPlotBandOrLine=function(t,e){var i,o=this,r=this.userOptions,s=new n(this,t);return(s=this.visible?s.render():s)&&(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(t){o.addPlotBandOrLine(t)})),e&&((i=r[e]||[]).push(t),r[e]=i),this.plotLinesAndBands.push(s)),s},a.prototype.removePlotBandOrLine=function(e){var t=this.plotLinesAndBands,i=this.options,o=this.userOptions;if(t){for(var r=t.length;r--;)t[r].id===e&&t[r].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach(function(t){for(r=t.length;r--;)(t[r]||{}).id===e&&s(t,t[r])})}},a.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},a.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},a);function a(){}return e}),e(t,\"Core/Axis/PlotLineOrBand/PlotLineOrBand.js\",[t[\"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js\"],t[\"Core/Utilities.js\"]],function(e,t){var a=t.arrayMax,h=t.arrayMin,k=t.defined,i=t.destroyObjectProperties,o=t.erase,C=t.fireEvent,M=t.merge,w=t.objectEach,T=t.pick;function r(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return r.compose=function(t){return e.compose(r,t)},r.prototype.render=function(){C(this,\"render\");var i=this,t=i.axis,e=t.horiz,o=t.logarithmic,r=i.options,s=r.color,n=T(r.zIndex,0),a=r.events,h={},l=t.chart.renderer,c=r.label,d=i.label,p=r.to,u=r.from,f=r.value,g=i.svgElem,m=[],y=k(u)&&k(p),v=k(f),x=!g,b={class:\"highcharts-plot-\"+(y?\"band \":\"line \")+(r.className||\"\")},S=y?\"bands\":\"lines\";if(o&&(u=o.log2lin(u),p=o.log2lin(p),f=o.log2lin(f)),t.chart.styledMode||(v?(b.stroke=s||\"#999999\",b[\"stroke-width\"]=T(r.width,1),r.dashStyle&&(b.dashstyle=r.dashStyle)):y&&(b.fill=s||\"#e6ebf5\",r.borderWidth)&&(b.stroke=r.borderColor,b[\"stroke-width\"]=r.borderWidth)),(o=t.plotLinesAndBandsGroups[S+=\"-\"+(h.zIndex=n)])||(t.plotLinesAndBandsGroups[S]=o=l.g(\"plot-\"+S).attr(h).add()),x&&(i.svgElem=g=l.path().attr(b).add(o)),v)m=t.getPlotLinePath({value:f,lineWidth:g.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!y)return;m=t.getPlotBandPath(u,p,r)}return!i.eventsAdded&&a&&(w(a,function(t,e){g.on(e,function(t){a[e].apply(i,[t])})}),i.eventsAdded=!0),(x||!g.d)&&m&&m.length?g.attr({d:m}):g&&(m?(g.show(),g.animate({d:m})):g.d&&(g.hide(),d)&&(i.label=d=d.destroy())),c&&(k(c.text)||k(c.formatter))&&m&&m.length&&0<t.width&&0<t.height&&!m.isFlat?(c=M({align:e&&y&&\"center\",x:e?!y&&4:10,verticalAlign:!e&&y&&\"middle\",y:e?y?16:10:y?6:-4,rotation:e&&!y&&90},c),this.renderLabel(c,m,y,n)):d&&d.hide(),i},r.prototype.renderLabel=function(t,e,i,o){var r=this.axis,s=r.chart.renderer,n=this.label,s=(n||(this.label=n=s.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:\"highcharts-plot-\"+(i?\"band\":\"line\")+\"-label \"+(t.className||\"\"),zIndex:o}).add(),r.chart.styledMode)||n.css(M({textOverflow:\"ellipsis\"},t.style)),e.xBounds||[e[0][1],e[1][1],(i?e[2]:e[0])[1]]),o=e.yBounds||[e[0][2],e[1][2],(i?e[2]:e[0])[2]],i=h(s),e=h(o);n.align(t,!1,{x:i,y:e,width:a(s)-i,height:a(o)-e}),n.alignValue&&\"left\"!==n.alignValue||(s=t.clip?r.width:r.chart.chartWidth,n.css({width:(90===n.rotation?r.height-(n.alignAttr.y-r.top):s-(n.alignAttr.x-r.left))+\"px\"})),n.show(!0)},r.prototype.getLabelText=function(t){return k(t.formatter)?t.formatter.call(this):t.text},r.prototype.destroy=function(){o(this.axis.plotLinesAndBands,this),delete this.axis,i(this)},r}),e(t,\"Core/Tooltip.js\",[t[\"Core/FormatUtilities.js\"],t[\"Core/Globals.js\"],t[\"Core/Renderer/RendererUtilities.js\"],t[\"Core/Renderer/RendererRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,p,e,u,y){var h=t.format,O=p.doc,E=e.distribute,D=(y.addEvent,y.clamp),f=y.css,i=(y.defined,y.discardElement),j=y.extend,v=y.fireEvent,x=y.isArray,l=y.isNumber,I=y.isString,o=y.merge,B=y.pick,b=y.splat,r=y.syncTimeout;function s(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return s.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:\"filter\",attributes:{id:\"drop-shadow-\"+t.index,opacity:.5},children:[{tagName:\"feGaussianBlur\",attributes:{in:\"SourceAlpha\",stdDeviation:1}},{tagName:\"feOffset\",attributes:{dx:1,dy:1}},{tagName:\"feComponentTransfer\",children:[{tagName:\"feFuncA\",attributes:{type:\"linear\",slope:.3}}]},{tagName:\"feMerge\",children:[{tagName:\"feMergeNode\"},{tagName:\"feMergeNode\",attributes:{in:\"SourceGraphic\"}}]}]})},s.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||\"point\")+\"Formatter\"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||\"point\")+\"Format\"]||\"\")})},s.prototype.cleanSplit=function(i){this.chart.series.forEach(function(t){var e=t&&t.tt;e&&(!e.isActive||i?t.tt=e.destroy():e.isActive=!1)})},s.prototype.defaultFormatter=function(t){var e=this.points||b(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},s.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),i(this.container)),y.clearTimeout(this.hideTimer),y.clearTimeout(this.tooltipTimeout)},s.prototype.getAnchor=function(t,e){var i,o,r=this.chart,s=r.pointer,n=r.inverted,a=r.plotTop,r=r.plotLeft;return(t=b(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),(this.followPointer&&e?[(e=void 0===e.chartX?s.normalize(e):e).chartX-r,e.chartY-a]:t[0].tooltipPos||(o=i=0,t.forEach(function(t){t=t.pos(!0);t&&(i+=t[0],o+=t[1])}),i/=t.length,o/=t.length,this.shared&&1<t.length&&e&&(n?i=e.chartX:o=e.chartY),[i-r,o-a])).map(Math.round)},s.prototype.getClassName=function(t,e,i){var o=this.options,r=t.series,s=r.options;return[o.className,\"highcharts-label\",i&&\"highcharts-tooltip-header\",e?\"highcharts-tooltip-box\":\"highcharts-tooltip\",!i&&\"highcharts-color-\"+B(t.colorIndex,r.colorIndex),s&&s.className].filter(I).join(\" \")},s.prototype.getLabel=function(){var e,t,i,o,r,s,n=this,a=this.chart.styledMode,h=this.options,l=this.split&&this.allowShared,c=h.style.pointerEvents||(this.shouldStickOnContact()?\"auto\":\"none\"),d=this.chart.renderer;return n.label&&(t=!n.label.hasClass(\"highcharts-label\"),l&&!t||!l&&t)&&n.destroy(),this.label||(this.outside&&(t=this.chart.options.chart.style,i=u.getRendererType(),this.container=e=p.doc.createElement(\"div\"),e.className=\"highcharts-tooltip-container\",f(e,{position:\"absolute\",top:\"1px\",pointerEvents:c,zIndex:Math.max(this.options.style.zIndex||0,(t&&t.zIndex||0)+3)}),p.doc.body.appendChild(e),this.renderer=d=new i(e,0,0,t,void 0,void 0,d.styledMode)),l?this.label=d.g(\"tooltip\"):(this.label=d.label(\"\",0,0,h.shape,void 0,void 0,h.useHTML,void 0,\"tooltip\").attr({padding:h.padding,r:h.borderRadius}),a||this.label.attr({fill:h.backgroundColor,\"stroke-width\":h.borderWidth}).css(h.style).css({pointerEvents:c}).shadow(h.shadow)),a&&h.shadow&&(this.applyFilter(),this.label.attr({filter:\"url(#drop-shadow-\"+this.chart.index+\")\"})),n.outside&&!n.split&&(o=this.label,r=o.xSetter,s=o.ySetter,o.xSetter=function(t){r.call(o,n.distance),e.style.left=t+\"px\"},o.ySetter=function(t){s.call(o,n.distance),e.style.top=t+\"px\"}),this.label.attr({zIndex:8}).add()),this.label},s.prototype.getPosition=function(i,o,r){function t(t){var e=\"x\"===t;return[t,e?a:h,e?i:o].concat(g?[e?m(i):y(o),e?l.left-p+m(r.plotX+n.plotLeft):l.top-p+y(r.plotY+n.plotTop),0,e?a:h]:[e?i:o,e?r.plotX+n.plotLeft:r.plotY+n.plotTop,e?n.plotLeft:n.plotTop,e?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])}var s,n=this.chart,p=this.distance,u={},f=n.inverted&&r.h||0,g=this.outside,a=g?O.documentElement.clientWidth-2*p:n.chartWidth,h=g?Math.max(O.body.scrollHeight,O.documentElement.scrollHeight,O.body.offsetHeight,O.documentElement.offsetHeight,O.documentElement.clientHeight):n.chartHeight,l=n.pointer.getChartPosition(),m=function(t){return t*l.scaleX},y=function(t){return t*l.scaleY},c=t(\"y\"),d=t(\"x\"),e=!!r.negative,v=(!n.polar&&n.hoverSeries&&n.hoverSeries.yAxis&&n.hoverSeries.yAxis.reversed&&(e=!e),!this.followPointer&&B(r.ttBelow,!n.inverted===e)),x=function(t,e,i,o,r,s,n){var a=g?(\"y\"===t?y:m)(p):p,h=(i-o)/2,l=o<r-p,c=r+p+o<e,d=r-a-i+h,r=r+a-h;if(v&&c)u[t]=r;else if(!v&&l)u[t]=d;else if(l)u[t]=Math.min(n-o,d-f<0?d:d-f);else{if(!c)return!1;u[t]=Math.max(s,e<r+f+i?r:r+f)}},b=function(t,e,i,o,r){var s;return r<p||e-p<r?s=!1:u[t]=r<i/2?1:e-o/2<r?e-o-2:r-i/2,s},S=function(t){var e=c;c=d,d=e,s=t},k=function(){!1!==x.apply(0,c)?!1!==b.apply(0,d)||s||(S(!0),k()):s?u.x=u.y=0:(S(!0),k())};return(n.inverted||1<this.len)&&S(),k(),u},s.prototype.hide=function(t){var e=this;y.clearTimeout(this.hideTimer),t=B(t,this.options.hideDelay),this.isHidden||(this.hideTimer=r(function(){e.getLabel().fadeOut(t&&void 0),e.isHidden=!0},t))},s.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=B(e.outside,Boolean(t.scrollablePixelsX||t.scrollablePixelsY))},s.prototype.shouldStickOnContact=function(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.chart.pointer.inClass(t.target,\"highcharts-tooltip\"))},s.prototype.move=function(t,e,i,o){var r=this,s=r.now,n=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-s.x)||1<Math.abs(e-s.y)),a=r.followPointer||1<r.len;j(s,{x:n?(2*s.x+t)/3:t,y:n?(s.y+e)/2:e,anchorX:a?void 0:n?(2*s.anchorX+i)/3:i,anchorY:a?void 0:n?(s.anchorY+o)/2:o}),r.getLabel().attr(s),r.drawTracker(),n&&(y.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(t,e,i,o)},32))},s.prototype.refresh=function(t,e){var i=this,o=this.chart,r=i.options,s=o.pointer,n=b(t),a=n[0],h=[],l=r.formatter||i.defaultFormatter,c=i.shared,d=o.styledMode,p={};if(r.enabled&&a.series){y.clearTimeout(this.hideTimer),i.allowShared=!(!x(t)&&t.series&&t.series.noSharedTooltip),i.followPointer=!i.split&&a.series.tooltipOptions.followPointer;var t=i.getAnchor(t,e),u=t[0],f=t[1],c=(c&&i.allowShared?(s.applyInactiveState(n),n.forEach(function(t){t.setState(\"hover\"),h.push(t.getLabelConfig())}),(p={x:a.category,y:a.y}).points=h):p=a.getLabelConfig(),this.len=h.length,l.call(p,i)),l=a.series;if(this.distance=B(l.tooltipOptions.distance,16),!1===c)this.hide();else{if(i.split&&i.allowShared)this.renderSplit(c,n);else{var g=u,m=f;if(e&&s.isDirectTouch&&(g=e.chartX-o.plotLeft,m=e.chartY-o.plotTop),!o.polar&&!1!==l.options.clip&&!n.some(function(t){return s.isDirectTouch||t.series.shouldShowTooltip(g,m)}))return void i.hide();p=i.getLabel();r.style.width&&!d||p.css({width:o.spacingBox.width+\"px\"}),p.attr({text:c&&c.join?c.join(\"\"):c}),p.addClass(i.getClassName(a),!0),d||p.attr({stroke:r.borderColor||a.color||l.color||\"#666666\"}),i.updatePosition({plotX:u,plotY:f,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}i.isHidden&&i.label&&i.label.attr({opacity:1}).show(),i.isHidden=!1}v(this,\"refresh\")}},s.prototype.renderSplit=function(t,u){var f,g=this,e=g.chart,i=g.chart,o=i.chartWidth,r=i.chartHeight,m=i.plotHeight,y=i.plotLeft,v=i.plotTop,s=i.pointer,n=i.scrollablePixelsY,n=void 0===n?0:n,a=i.scrollablePixelsX,h=i.scrollingContainer,h=void 0===h?{scrollLeft:0,scrollTop:0}:h,l=h.scrollLeft,h=h.scrollTop,x=i.styledMode,b=g.distance,S=g.options,k=g.options.positioner,C=g.outside&&\"number\"!=typeof a?O.documentElement.getBoundingClientRect():{left:l,right:l+o,top:h,bottom:h+r},M=g.getLabel(),w=this.renderer||e.renderer,T=Boolean(e.xAxis[0]&&e.xAxis[0].opposite),i=s.getChartPosition(),c=i.left,a=i.top,A=v+h,P=m-n;function L(t,e,i,o,r){var s,n;return void 0===r&&(r=!0),{x:n=i?(s=T?0:P,D(t-o/2,C.left,C.right-o-(g.outside?c:0))):(s=e-A,D(n=r?t-o-b:t+b,r?n:C.left,C.right)),y:s}}var l=(t=I(t)?[!1,t]:t).slice(0,u.length+1).reduce(function(t,e,i){var o,r,s,n,a,h,l,c,d,p;return!1!==e&&\"\"!==e&&(e=(c=(d=(h=(o=(i=u[i-1]||{isHeader:!0,plotX:u[0].plotX,plotY:m,series:{}}).isHeader)?g:i.series).tt=(h=h.tt,l=i,e=e.toString(),d=l.isHeader,p=l.series,h||(c={padding:S.padding,r:S.borderRadius},x||(c.fill=S.backgroundColor,c[\"stroke-width\"]=S.borderWidth),h=w.label(\"\",0,0,S[d?\"headerShape\":\"shape\"],void 0,void 0,S.useHTML).addClass(g.getClassName(l,!0,d)).attr(c).add(M)),h.isActive=!0,h.attr({text:e}),x||h.css(S.style).shadow(S.shadow).attr({stroke:S.borderColor||l.color||p.color||\"#333333\"}),h)).getBBox()).width+d.strokeWidth(),o&&(f=c.height,P+=f,T)&&(A-=f),p=(l=i).isHeader,h=void 0===(h=l.plotX)?0:h,a=void 0===(a=l.plotY)?0:a,l=l.series,p?(n=y+h,r=v+m/2):(p=l.xAxis,s=l.yAxis,n=p.pos+D(h,-b,p.len+b),l.shouldShowTooltip(0,s.pos-v+a,{ignoreX:!0})&&(r=s.pos+a)),p=(h={anchorX:n=D(n,C.left-b,C.right+b),anchorY:r}).anchorX,\"number\"==typeof(l=h.anchorY)?(s=c.height+1,a=k?k.call(g,e,s,i):L(p,l,o,e),t.push({align:k?0:void 0,anchorX:p,anchorY:l,boxWidth:e,point:i,rank:B(a.rank,o?1:0),size:s,target:a.y,tt:d,x:a.x})):d.isActive=!1),t},[]),d=(!k&&l.some(function(t){var e=(g.outside?c:0)+t.anchorX;return e<C.left&&e+t.boxWidth<C.right||e<c-C.left+t.boxWidth&&C.right-e>e})&&(l=l.map(function(t){var e=L(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1),i=e.x,e=e.y;return j(t,{target:e,x:i})})),g.cleanSplit(),E(l,P),{left:c,right:c}),o=(l.forEach(function(t){var e=t.x,i=t.boxWidth,t=t.isHeader;t||(g.outside&&c+e<d.left&&(d.left=c+e),!t&&g.outside&&d.right<d.left+i&&(d.right=c+e))}),l.forEach(function(t){var e=t.x,i=t.anchorX,o=t.anchorY,r=t.pos,s=t.point.isHeader,r={visibility:void 0===r?\"hidden\":\"inherit\",x:e,y:(r||0)+A,anchorX:i,anchorY:o};g.outside&&e<i&&0<(o=c-d.left)&&(s||(r.x=e+o,r.anchorX=i+o),s)&&(r.x=(d.right-d.left)/2,r.anchorX=i+o),t.tt.attr(r)}),g.container),r=g.outside,e=g.renderer;r&&o&&e&&(i=(s=M.getBBox()).width,h=s.height,n=s.x,t=s.y,e.setSize(i+n,h+t,!1),o.style.left=d.left+\"px\",o.style.top=a+\"px\")},s.prototype.drawTracker=function(){var t,e,i,o,r,s=this;this.shouldStickOnContact()?(t=s.chart,e=s.label,o=s.shared?t.hoverPoints:t.hoverPoint,e&&o&&(i={x:0,y:0,width:0,height:0},o=this.getAnchor(o),r=e.getBBox(),o[0]+=t.plotLeft-e.translateX,o[1]+=t.plotTop-e.translateY,i.x=Math.min(0,o[0]),i.y=Math.min(0,o[1]),i.width=o[0]<0?Math.max(Math.abs(o[0]),r.width-o[0]):Math.max(Math.abs(o[0]),r.width),i.height=o[1]<0?Math.max(Math.abs(o[1]),r.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),r.height),s.tracker?s.tracker.attr(i):(s.tracker=e.renderer.rect(i).addClass(\"highcharts-tracker\").add(e),t.styledMode||s.tracker.attr({fill:\"rgba(0,0,0,0)\"})))):s.tracker&&s.tracker.destroy()},s.prototype.styledModeFormat=function(t){return t.replace('style=\"font-size: 10px\"','class=\"highcharts-header\"').replace(/style=\"color:{(point|series)\\.color}\"/g,'class=\"highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}\"')},s.prototype.tooltipFooterHeaderFormatter=function(e,t){var i=e.series,o=i.tooltipOptions,r=i.xAxis,s=r&&r.dateTime,r={isFooter:t,labelConfig:e},n=o.xDateFormat,a=o[t?\"footerFormat\":\"headerFormat\"];return v(this,\"headerFormatter\",r,function(t){s&&!n&&l(e.key)&&(n=s.getXDateFormat(e.key,o.dateTimeLabelFormats)),s&&n&&(e.point&&e.point.tooltipDateKeys||[\"key\"]).forEach(function(t){a=a.replace(\"{point.\"+t+\"}\",\"{point.\"+t+\":\"+n+\"}\")}),i.chart.styledMode&&(a=this.styledModeFormat(a)),t.text=h(a,{point:e,series:i},this.chart)}),r.text},s.prototype.update=function(t){this.destroy(),o(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,o(!0,this.options,t))},s.prototype.updatePosition=function(t){var e=this.chart,i=this.distance,o=this.options,r=e.pointer,s=this.getLabel(),r=r.getChartPosition(),n=r.left,a=r.top,h=r.scaleX,r=r.scaleY,l=(o.positioner||this.getPosition).call(this,s.width,s.height,t),c=(t.plotX||0)+e.plotLeft,t=(t.plotY||0)+e.plotTop;this.outside&&(o.positioner&&(l.x+=n-i,l.y+=a-i),e=o.borderWidth+2*i,this.renderer.setSize(s.width+e,s.height+e,!1),1===h&&1===r||(f(this.container,{transform:\"scale(\".concat(h,\", \").concat(r,\")\")}),c*=h,t*=r),c+=n-l.x,t+=a-l.y),this.move(Math.round(l.x),Math.round(l.y||0),c,t)},s}),e(t,\"Core/Series/Point.js\",[t[\"Core/Renderer/HTML/AST.js\"],t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Defaults.js\"],t[\"Core/FormatUtilities.js\"],t[\"Core/Utilities.js\"]],function(v,t,e,i,o){var a=t.animObject,x=e.defaultOptions,n=i.format,r=o.addEvent,s=o.defined,h=o.erase,b=o.extend,S=o.fireEvent,l=o.getNestedProperty,c=o.isArray,d=o.isFunction,k=o.isNumber,p=o.isObject,u=o.merge,f=o.objectEach,C=o.pick,g=o.syncTimeout,m=o.removeEvent,y=o.uniqueKey;function M(){this.category=void 0,this.formatPrefix=\"point\",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}return M.prototype.animateBeforeDestroy=function(){var e=this,i={x:e.startXPos,opacity:0},t=e.getGraphicalProps();t.singular.forEach(function(t){e[t]=e[t].animate(\"dataLabel\"===t?{x:e[t].startXPos,y:e[t].startYPos,opacity:0}:i)}),t.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(b({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})},M.prototype.applyOptions=function(t,e){var i=this,o=i.series,r=o.options.pointValKey||o.pointValKey;return t=M.prototype.optionsToObject.call(this,t),b(i,t),i.options=i.options?b(i.options,t):t,t.group&&delete i.group,t.dataLabels&&delete i.dataLabels,r&&(i.y=M.prototype.getNestedProperty.call(i,r)),i.isNull=this.isValid&&!this.isValid(),i.formatPrefix=i.isNull?\"null\":\"point\",i.selected&&(i.state=\"select\"),\"name\"in i&&void 0===e&&o.xAxis&&o.xAxis.hasNames&&(i.x=o.xAxis.nameToX(i)),void 0===i.x&&o?i.x=void 0===e?o.autoIncrement():e:k(t.x)&&o.options.relativeXValue&&(i.x=o.autoIncrement(t.x)),i},M.prototype.destroy=function(){var t,e=this,i=e.series,o=i.chart,i=i.options.dataSorting,r=o.hoverPoints,s=e.series.chart.renderer.globalAnimation,s=a(s);function n(){for(t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(m(e),e.destroyElements()),e)e[t]=null}e.legendItem&&o.legend.destroyItem(e),r&&(e.setState(),h(r,e),r.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),g(n,s.duration)):n(),o.pointCount--},M.prototype.destroyElements=function(t){var e=this,t=e.getGraphicalProps(t);t.singular.forEach(function(t){e[t]=e[t].destroy()}),t.plural.forEach(function(t){e[t].forEach(function(t){t&&t.element&&t.destroy()}),delete e[t]})},M.prototype.firePointEvent=function(t,e,i){var o=this,r=this.series.options;(r.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),\"click\"===t&&r.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),S(o,t,e,i)},M.prototype.getClassName=function(){var t=this;return\"highcharts-point\"+(t.selected?\" highcharts-point-select\":\"\")+(t.negative?\" highcharts-negative\":\"\")+(t.isNull?\" highcharts-null-point\":\"\")+(void 0!==t.colorIndex?\" highcharts-color-\"+t.colorIndex:\"\")+(t.options.className?\" \"+t.options.className:\"\")+(t.zone&&t.zone.className?\" \"+t.zone.className.replace(\"highcharts-negative\",\"\"):\"\")},M.prototype.getGraphicalProps=function(i){var t,e,o=this,r=[],s={singular:[],plural:[]};for((i=i||{graphic:1,dataLabel:1}).graphic&&r.push(\"graphic\",\"shadowGroup\"),i.dataLabel&&r.push(\"dataLabel\",\"dataLabelPath\",\"dataLabelUpper\",\"connector\"),e=r.length;e--;)o[t=r[e]]&&s.singular.push(t);return[\"graphic\",\"dataLabel\",\"connector\"].forEach(function(t){var e=t+\"s\";i[t]&&o[e]&&s.plural.push(e)}),s},M.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},M.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf(\"custom.\")?l(t,this.options):this[t]},M.prototype.getZone=function(){for(var t=this.series,e=t.zones,i=t.zoneAxis||\"y\",o=0,r=e[o];this[i]>=r.value;)r=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),r&&r.color&&!this.options.color?this.color=r.color:this.color=this.nonZonedColor,r},M.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},M.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=s(this.id)?this.id:y(),this.resolveColor(),t.chart.pointCount++,S(this,\"afterInit\"),this},M.prototype.isValid=function(){return null!==this.x&&k(this.y)},M.prototype.optionsToObject=function(t){var e,i=this.series,o=i.options.keys,r=o||i.pointArrayMap||[\"y\"],s=r.length,n={},a=0,h=0;if(k(t)||null===t)n[r[0]]=t;else if(c(t))for(!o&&t.length>s&&(\"string\"==(e=typeof t[0])?n.name=t[0]:\"number\"==e&&(n.x=t[0]),a++);h<s;)o&&void 0===t[a]||(0<r[h].indexOf(\".\")?M.prototype.setNestedProperty(n,t[a],r[h]):n[r[h]]=t[a]),a++,h++;else\"object\"==typeof t&&((n=t).dataLabels&&(i._hasPointLabels=!0),t.marker)&&(i._hasPointMarkers=!0);return n},M.prototype.pos=function(t,e){void 0===e&&(e=this.plotY);var i=this.plotX,o=this.series,r=o.chart,s=o.xAxis,o=o.yAxis,n=0,a=0;if(k(i)&&k(e))return t&&(n=s?s.pos:r.plotLeft,a=o?o.pos:r.plotTop),r.inverted&&s&&o?[o.len-e+a,s.len-i+n]:[i+n,e+a]},M.prototype.resolveColor=function(){var t,e,i=this.series,o=i.chart.options.chart,r=i.chart.styledMode,o=o.colorCount;delete this.nonZonedColor,i.options.colorByPoint?(r||(t=(e=i.options.colors||i.chart.options.colors)[i.colorCounter],o=e.length),e=i.colorCounter,i.colorCounter++,i.colorCounter===o&&(i.colorCounter=0)):(r||(t=i.color),e=i.colorIndex),this.colorIndex=C(this.options.colorIndex,e),this.color=C(this.options.color,t)},M.prototype.setNestedProperty=function(t,r,e){return e.split(\".\").reduce(function(t,e,i,o){o=o.length-1===i;return t[e]=o?r:p(t[e],!0)?t[e]:{},t[e]},t),t},M.prototype.shouldDraw=function(){return!this.isNull},M.prototype.tooltipFormatter=function(e){var t=this.series,i=t.tooltipOptions,o=C(i.valueDecimals,\"\"),r=i.valuePrefix||\"\",s=i.valueSuffix||\"\";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||[\"y\"]).forEach(function(t){t=\"{point.\"+t,e=(e=r||s?e.replace(RegExp(t+\"}\",\"g\"),r+t+\"}\"+s):e).replace(RegExp(t+\"}\",\"g\"),t+\":,.\"+o+\"f}\")}),n(e,{point:this,series:this.series},t.chart)},M.prototype.update=function(e,i,o,t){var r,s=this,n=s.series,a=s.graphic,h=n.chart,l=n.options;function c(){s.applyOptions(e);var t=a&&s.hasMockGraphic,t=null===s.y?!t:t;a&&t&&(s.graphic=a.destroy(),delete s.hasMockGraphic),p(e,!0)&&(a&&a.element&&e&&e.marker&&void 0!==e.marker.symbol&&(s.graphic=a.destroy()),e&&e.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector)&&(s.connector=s.connector.destroy()),r=s.index,n.updateParallelArrays(s,r),l.data[r]=p(l.data[r],!0)||p(e,!0)?s.options:C(e,l.data[r]),n.isDirty=n.isDirtyData=!0,!n.fixedBox&&n.hasCartesianSeries&&(h.isDirtyBox=!0),\"point\"===l.legendType&&(h.isDirtyLegend=!0),i&&h.redraw(o)}i=C(i,!0),!1===t?c():s.firePointEvent(\"update\",{options:e},c)},M.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},M.prototype.select=function(t,e){var i=this,o=i.series,r=o.chart;t=C(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?\"select\":\"unselect\",{accumulate:e},function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&\"select\"),e||r.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?\"inactive\":\"\"),t.firePointEvent(\"unselect\"))})}),delete this.selectedStaging},M.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},M.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent(\"mouseOut\"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},M.prototype.importEvents=function(){var i,t;this.hasImportedEvents||(t=u((i=this).series.options.point,i.options).events,i.events=t,f(t,function(t,e){d(t)&&r(i,e,t)}),this.hasImportedEvents=!0)},M.prototype.setState=function(t,e){var i,o,r,s=this,n=s.series,a=s.state,h=n.options.states[t||\"normal\"]||{},l=x.plotOptions[n.type].marker&&n.options.marker,c=l&&!1===l.enabled,d=l&&l.states&&l.states[t||\"normal\"]||{},p=!1===d.enabled,u=s.marker||{},f=n.chart,g=l&&n.markerAttribs,m=n.halo,y=n.stateMarkerGraphic;(t=t||\"\")===s.state&&!e||s.selected&&\"select\"!==t||!1===h.enabled||t&&(p||c&&!1===d.enabled)||t&&u.states&&u.states[t]&&!1===u.states[t].enabled||(s.state=t,g&&(i=n.markerAttribs(s,t)),s.graphic&&!s.hasMockGraphic?(a&&s.graphic.removeClass(\"highcharts-point-\"+a),t&&s.graphic.addClass(\"highcharts-point-\"+t),f.styledMode||(p=n.pointAttribs(s,t),o=C(f.options.chart.animation,h.animation),r=p.opacity,n.options.inactiveOtherPoints&&k(r)&&((s.dataLabels||[]).forEach(function(t){t&&!t.hasClass(\"highcharts-data-label-hidden\")&&t.animate({opacity:r},o)}),s.connector)&&s.connector.animate({opacity:r},o),s.graphic.animate(p,o)),i&&s.graphic.animate(i,C(f.options.chart.animation,d.animation,l.animation)),y&&y.hide()):(t&&d&&(c=u.symbol||n.symbol,y&&y.currentSymbol!==c&&(y=y.destroy()),i&&(y?y[e?\"animate\":\"attr\"]({x:i.x,y:i.y}):c&&(n.stateMarkerGraphic=y=f.renderer.symbol(c,i.x,i.y,i.width,i.height).add(n.markerGroup),y.currentSymbol=c)),!f.styledMode)&&y&&\"inactive\"!==s.state&&y.attr(n.pointAttribs(s,t)),y&&(y[t&&s.isInside?\"show\":\"hide\"](),y.element.point=s,y.addClass(s.getClassName(),!0))),g=h.halo,p=(a=s.graphic||y)&&a.visibility||\"inherit\",g&&g.size&&a&&\"hidden\"!==p&&!s.isCluster?(m||(n.halo=m=f.renderer.path().add(a.parentGroup)),m.show()[e?\"animate\":\"attr\"]({d:s.haloPath(g.size)}),m.attr({class:\"highcharts-halo highcharts-color-\"+C(s.colorIndex,n.colorIndex)+(s.className?\" \"+s.className:\"\"),visibility:p,zIndex:-1}),m.point=s,f.styledMode||m.attr(b({fill:s.color||n.color,\"fill-opacity\":g.opacity},v.filterUserAttributes(g.attributes||{})))):m&&m.point&&m.point.haloPath&&m.animate({d:m.point.haloPath(0)},null,m.hide),S(s,\"afterSetState\",{state:t}))},M.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(Math.floor(e[0])-t,e[1]-t,2*t,2*t):[]},M}),e(t,\"Core/Pointer.js\",[t[\"Core/Color/Color.js\"],t[\"Core/Globals.js\"],t[\"Core/Tooltip.js\"],t[\"Core/Utilities.js\"]],function(t,r,i,e){var f=t.parse,p=r.charts,u=r.noop,g=e.addEvent,s=e.attr,o=e.css,m=e.defined,y=e.extend,v=e.find,x=e.fireEvent,b=e.isNumber,S=e.isObject,n=e.objectEach,a=e.offset,k=e.pick,l=e.splat;function C(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return C.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState(\"inactive\",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState(\"inactive\")})},C.prototype.destroy=function(){var i=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],r.chartCount||(C.unbindDocumentMouseUp&&(C.unbindDocumentMouseUp=C.unbindDocumentMouseUp()),C.unbindDocumentTouchEnd&&(C.unbindDocumentTouchEnd=C.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),n(i,function(t,e){i[e]=void 0})},C.prototype.getSelectionMarkerAttrs=function(a,h){var l=this,t={args:{chartX:a,chartY:h},attrs:{},shapeType:\"rect\"};return x(this,\"getSelectionMarkerAttrs\",t,function(t){var e,i=l.chart,o=l.mouseDownX,o=void 0===o?0:o,r=l.mouseDownY,r=void 0===r?0:r,s=l.zoomHor,n=l.zoomVert,t=t.attrs;t.x=i.plotLeft,t.y=i.plotTop,t.width=s?1:i.plotWidth,t.height=n?1:i.plotHeight,s&&(e=a-o,t.width=Math.abs(e),t.x=(0<e?0:e)+o),n&&(e=h-r,t.height=Math.abs(e),t.y=(0<e?0:e)+r)}),t},C.prototype.drag=function(t){var e=this.chart,i=e.options.chart,o=e.plotLeft,r=e.plotTop,s=e.plotWidth,n=e.plotHeight,a=this.mouseDownX||0,h=this.mouseDownY||0,l=S(i.panning)?i.panning&&i.panning.enabled:i.panning,c=i.panKey&&t[i.panKey+\"Key\"],d=t.chartX,p=t.chartY,u=this.selectionMarker;u&&u.touch||(d<o?d=o:o+s<d&&(d=o+s),p<r?p=r:r+n<p&&(p=r+n),this.hasDragged=Math.sqrt(Math.pow(a-d,2)+Math.pow(h-p,2)),10<this.hasDragged&&(s=e.isInsidePlot(a-o,h-r,{visiblePlotOnly:!0}),a=(n=this.getSelectionMarkerAttrs(d,p)).shapeType,o=n.attrs,!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!s||c||u||(this.selectionMarker=u=e.renderer[a](),u.attr({class:\"highcharts-selection-marker\",zIndex:7}).add(),e.styledMode)||u.attr({fill:i.selectionMarkerFill||f(\"#335cad\").setOpacity(.25).get()}),u&&u.attr(o),s)&&!u&&l&&e.pan(t,i.panning))},C.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},C.prototype.getSelectionBox=function(e){var t={args:{marker:e},result:{}};return x(this,\"getSelectionBox\",t,function(t){t.result={x:e.attr?+e.attr(\"x\"):e.x,y:e.attr?+e.attr(\"y\"):e.y,width:e.attr?e.attr(\"width\"):e.width,height:e.attr?e.attr(\"height\"):e.height}}),t.result},C.prototype.drop=function(r){var t,s,n,a,h,l,c,d=this,e=this.chart,p=this.hasPinched;this.selectionMarker&&(t=this.getSelectionBox(this.selectionMarker),s=t.x,n=t.y,a=t.width,h=t.height,l={originalEvent:r,xAxis:[],yAxis:[],x:s,y:n,width:a,height:h},c=Boolean(e.mapView),(this.hasDragged||p)&&(e.axes.forEach(function(t){var e,i,o;t.zoomEnabled&&m(t.min)&&(p||d[{xAxis:\"zoomX\",yAxis:\"zoomY\"}[t.coll]])&&b(s)&&b(n)&&b(a)&&b(h)&&(o=t.horiz,e=\"touchend\"===r.type?t.minPixelPadding:0,i=t.toValue((o?s:n)+e),o=t.toValue((o?s+a:n+h)-e),l[t.coll].push({axis:t,min:Math.min(i,o),max:Math.max(i,o)}),c=!0)}),c)&&x(e,\"selection\",l,function(t){e.zoom(y(t,p?{animation:!1}:null))}),b(e.index)&&(this.selectionMarker=this.selectionMarker.destroy()),p)&&this.scaleGroups(),e&&b(e.index)&&(o(e.container,{cursor:e._cursor}),e.cancelClick=10<this.hasDragged,e.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},C.prototype.findNearestKDPoint=function(t,n,a){var h;return t.forEach(function(t){var e,i,o,r,s=!(t.noSharedTooltip&&n)&&t.options.findNearestPointBy.indexOf(\"y\")<0,t=t.searchPoint(a,s);S(t,!0)&&t.series&&(!S(h,!0)||(s=t,i=(e=h).distX-s.distX,o=e.dist-s.dist,r=(s.series.group&&s.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),0<(i=0!=i&&n?i:0!=o?o:0!=r?r:e.series.index>s.series.index?-1:1)))&&(h=t)}),h},C.prototype.getChartCoordinatesFromPoint=function(t,e){var i,o,r=t.series,s=r.xAxis,r=r.yAxis,n=t.shapeArgs;return s&&r?(i=k(t.clientX,t.plotX),o=t.plotY||0,t.isNode&&n&&b(n.x)&&b(n.y)&&(i=n.x,o=n.y),e?{chartX:r.len+r.pos-o,chartY:s.len+s.pos-i}:{chartX:i+s.pos,chartY:o+r.pos}):n&&n.x&&n.y?{chartX:n.x,chartY:n.y}:void 0},C.prototype.getChartPosition=function(){var t,e,i;return this.chartPosition||(i=this.chart.container,t=a(i),this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1},e=i.offsetWidth,i=i.offsetHeight,2<e&&2<i&&(this.chartPosition.scaleX=t.width/e,this.chartPosition.scaleY=t.height/i)),this.chartPosition},C.prototype.getCoordinates=function(e){var i={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(t){i[t.isXAxis?\"xAxis\":\"yAxis\"].push({axis:t,value:t.toValue(e[t.horiz?\"chartX\":\"chartY\"])})}),i},C.prototype.getHoverData=function(t,e,i,o,r,s){var n=[],o=!(!o||!t),a=function(t){return t.visible&&!(!r&&t.directTouch)&&k(t.options.enableMouseTracking,!0)},h={chartX:s?s.chartX:void 0,chartY:s?s.chartY:void 0,shared:r};x(this,\"beforeGetHoverData\",h);var l=e&&!e.stickyTracking?[e]:i.filter(function(t){return t.stickyTracking&&(h.filter||a)(t)}),c=o||!s?t:this.findNearestKDPoint(l,r,s),e=c&&c.series;return c&&(r&&!e.noSharedTooltip?(l=i.filter(function(t){return h.filter?h.filter(t):a(t)&&!t.noSharedTooltip})).forEach(function(t){var e=v(t.points,function(t){return t.x===c.x&&!t.isNull});S(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),n.push(e))}):n.push(c)),x(this,\"afterGetHoverData\",h={hoverPoint:c}),{hoverPoint:h.hoverPoint,hoverSeries:e,hoverPoints:n}},C.prototype.getPointFromEvent=function(t){for(var e,i=t.target;i&&!e;)e=i.point,i=i.parentNode;return e},C.prototype.onTrackerMouseOut=function(t){var e=this.chart,t=t.relatedTarget||t.toElement,e=e.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,\"highcharts-tooltip\")||this.inClass(t,\"highcharts-series-\"+e.index)&&this.inClass(t,\"highcharts-tracker\")||e.onMouseOut()},C.prototype.inClass=function(t,e){for(var i,o=t;o;){if(i=s(o,\"class\")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf(\"highcharts-container\"))return!1}o=o.parentElement}},C.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=Boolean(e.chart.events&&e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip)),this.setDOMEvents()},C.prototype.normalize=function(t,e){var i=t.touches,i=i?i.length?i.item(0):k(i.changedTouches,t.changedTouches)[0]:t,o=(e=e||this.getChartPosition(),i.pageX-e.left),i=i.pageY-e.top;return o/=e.scaleX,i/=e.scaleY,y(t,{chartX:Math.round(o),chartY:Math.round(i)})},C.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint,t=this.normalize(t),o=e.plotLeft,r=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,\"highcharts-tracker\")?(x(i.series,\"click\",y(t,{point:i})),e.hoverPoint&&i.firePointEvent(\"click\",t)):(y(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-o,t.chartY-r,{visiblePlotOnly:!0})&&x(e,\"click\",t)))},C.prototype.onContainerMouseDown=function(t){var e=1==(1&(t.buttons||t.button));t=this.normalize(t),r.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),void 0!==t.button&&!e||(this.zoomOption(t),e&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},C.prototype.onContainerMouseLeave=function(t){var e=p[k(C.hoverChartIndex,-1)],i=this.chart.tooltip;t=this.normalize(t),e&&(t.relatedTarget||t.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=void 0),i&&!i.isHidden&&this.reset()},C.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},C.prototype.onContainerMouseMove=function(t){var e=this.chart,i=e.tooltip,t=this.normalize(t);this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),\"mousedown\"!==e.mouseIsDown&&!this.touchSelect(t)||this.drag(t),e.openMenu||!this.inClass(t.target,\"highcharts-tracker\")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||(this.inClass(t.target,\"highcharts-no-tooltip\")?this.reset(!1,0):this.runPointActions(t))},C.prototype.onDocumentTouchEnd=function(t){var e=p[k(C.hoverChartIndex,-1)];e&&e.pointer.drop(t)},C.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},C.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},C.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.chartPosition,t=this.normalize(t,o);!o||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||this.inClass(t.target,\"highcharts-tracker\")||this.reset()},C.prototype.onDocumentMouseUp=function(t){var e=p[k(C.hoverChartIndex,-1)];e&&e.pointer.drop(t)},C.prototype.pinch=function(t){var e=this,n=e.chart,i=e.pinchDown,o=t.touches||[],r=o.length,s=e.lastValidTouch,a=e.hasZoom,h={},l=1===r&&(e.inClass(t.target,\"highcharts-tracker\")&&n.runTrackerClick||e.runChartClick),c={},d=e.chart.tooltip,d=1===r&&k(d&&d.options.followTouchMove,!0),p=e.selectionMarker;1<r?e.initiated=!0:d&&(e.initiated=!1),a&&e.initiated&&!l&&!1!==t.cancelable&&t.preventDefault(),[].map.call(o,function(t){return e.normalize(t)}),\"touchstart\"===t.type?([].forEach.call(o,function(t,e){i[e]={chartX:t.chartX,chartY:t.chartY}}),s.x=[i[0].chartX,i[1]&&i[1].chartX],s.y=[i[0].chartY,i[1]&&i[1].chartY],n.axes.forEach(function(t){var e,i,o,r,s;t.zoomEnabled&&(e=n.bounds[t.horiz?\"h\":\"v\"],i=t.minPixelPadding,s=t.toPixels(Math.min(k(t.options.min,t.dataMin),t.dataMin)),o=t.toPixels(Math.max(k(t.options.max,t.dataMax),t.dataMax)),r=Math.min(s,o),s=Math.max(s,o),e.min=Math.min(t.pos,r-i),e.max=Math.max(t.pos+t.len,s+i))}),e.res=!0):d?this.runPointActions(e.normalize(t)):i.length&&(x(n,\"touchpan\",{originalEvent:t},function(){p||(e.selectionMarker=p=y({destroy:u,touch:!0},n.plotBox)),e.pinchTranslate(i,o,h,p,c,s),e.hasPinched=a,e.scaleGroups(h,c)}),e.res)&&(e.res=!1,this.reset(!1,0))},C.prototype.pinchTranslate=function(t,e,i,o,r,s){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,o,r,s),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,o,r,s)},C.prototype.pinchTranslateDirection=function(t,e,i,o,r,s,n,a){function h(){\"number\"==typeof w&&20<Math.abs(S-k)&&(C=a||Math.abs(M-w)/Math.abs(S-k)),c=(y-M)/C+S,l=p[\"plot\"+(t?\"Width\":\"Height\")]/C}var l,c,d,p=this.chart,u=t?\"x\":\"y\",f=t?\"X\":\"Y\",g=\"chart\"+f,m=t?\"width\":\"height\",y=p[\"plot\"+(t?\"Left\":\"Top\")],v=p.inverted,x=p.bounds[t?\"h\":\"v\"],b=1===e.length,S=e[0][g],k=!b&&e[1][g],C=a||1,M=i[0][g],w=!b&&i[1][g],b=(h(),(e=c)<x.min?(e=x.min,d=!0):e+l>x.max&&(e=x.max-l,d=!0),d?(M-=.8*(M-n[u][0]),\"number\"==typeof w&&(w-=.8*(w-n[u][1])),h()):n[u]=[M,w],v||(s[u]=c-y,s[m]=l),v?t?\"scaleY\":\"scaleX\":\"scale\"+f),i=v?1/C:C;r[m]=l,r[u]=e,o[b]=C,o[\"translate\"+f]=i*y+(M-i*S)},C.prototype.reset=function(e,t){var i=this,o=i.chart,r=o.hoverSeries,s=o.hoverPoint,n=o.hoverPoints,a=o.tooltip,h=a&&a.shared?n:s;e&&h&&l(h).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?a&&h&&l(h).length&&(a.refresh(h),a.shared&&n?n.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair)&&t.series.yAxis.drawCrosshair(null,t)}):s&&(s.setState(s.state,!0),o.axes.forEach(function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)}))):(s&&s.onMouseOut(),n&&n.forEach(function(t){t.setState()}),r&&r.onMouseOut(),a&&a.hide(t),i.unDocMouseMove&&(i.unDocMouseMove=i.unDocMouseMove()),o.axes.forEach(function(t){t.hideCrosshair()}),i.hoverX=o.hoverPoints=o.hoverPoint=null)},C.prototype.runPointActions=function(o,t,e){var i=this,r=i.chart,s=r.series,n=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,a=!!n&&n.shared,h=(l=t||r.hoverPoint)&&l.series||r.hoverSeries,t=(!o||\"touchmove\"!==o.type)&&(!!t||h&&h.directTouch&&i.isDirectTouch),s=this.getHoverData(l,h,s,t,a,o),l=s.hoverPoint,h=s.hoverSeries,c=s.hoverPoints,t=h&&h.tooltipOptions.followPointer&&!h.tooltipOptions.split,d=a&&h&&!h.noSharedTooltip;if(l&&(e||l!==r.hoverPoint||n&&n.isHidden)){if((r.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),r.hoverSeries!==h&&h.onMouseOver(),i.applyInactiveState(c),(c||[]).forEach(function(t){t.setState(\"hover\")}),r.hoverPoint&&r.hoverPoint.firePointEvent(\"mouseOut\"),!l.series)return;r.hoverPoints=c,(r.hoverPoint=l).firePointEvent(\"mouseOver\",void 0,function(){n&&l&&n.refresh(d?c:l,o)})}else t&&n&&!n.isHidden&&(s=n.getAnchor([{}],o),r.isInsidePlot(s[0],s[1],{visiblePlotOnly:!0}))&&n.updatePosition({plotX:s[0],plotY:s[1]});i.unDocMouseMove||(i.unDocMouseMove=g(r.container.ownerDocument,\"mousemove\",function(t){var e=p[C.hoverChartIndex];e&&e.pointer.onDocumentMouseMove(t)}),i.eventsToUnbind.push(i.unDocMouseMove)),r.axes.forEach(function(e){var t,i=k((e.crosshair||{}).snap,!0);(t=!i||(t=r.hoverPoint)&&t.series[e.coll]===e?t:v(c,function(t){return t.series&&t.series[e.coll]===e}))||!i?e.drawCrosshair(o,t):e.hideCrosshair()})},C.prototype.scaleGroups=function(i,o){var r=this.chart;r.series.forEach(function(t){var e=i||t.getPlotBox();t.group&&(t.xAxis&&t.xAxis.zoomEnabled||r.mapView)&&(t.group.attr(e),t.markerGroup&&(t.markerGroup.attr(e),t.markerGroup.clip(o?r.clipRect:null)),t.dataLabelsGroup)&&t.dataLabelsGroup.attr(e)}),r.clipRect.attr(o||r.clipBox)},C.prototype.setDOMEvents=function(){for(var t=this,e=this.chart.container,i=e.ownerDocument,o=(e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(g(e,\"mouseenter\",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(g(e,\"mouseleave\",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=g(i,\"mouseup\",this.onDocumentMouseUp.bind(this))),this.chart.renderTo.parentElement);o&&\"BODY\"!==o.tagName;)this.eventsToUnbind.push(g(o,\"scroll\",function(){delete t.chartPosition})),o=o.parentElement;r.hasTouch&&(this.eventsToUnbind.push(g(e,\"touchstart\",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(g(e,\"touchmove\",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=g(i,\"touchend\",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var t=this.chart,e=r.charts[k(C.hoverChartIndex,-1)];e&&e!==t&&e.pointer.onContainerMouseLeave({relatedTarget:t.container}),e&&e.mouseIsDown||(C.hoverChartIndex=t.index)},C.prototype.touch=function(t,e){var i,o=this.chart;this.setHoverChartIndex(),1===t.touches.length?(t=this.normalize(t),o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu?(e&&this.runPointActions(t),\"touchmove\"===t.type&&(i=!!(o=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(o[0].chartX-t.chartX,2)+Math.pow(o[0].chartY-t.chartY,2))),k(i,!0)&&this.pinch(t)):e&&this.reset()):2===t.touches.length&&this.pinch(t)},C.prototype.touchSelect=function(t){return Boolean(this.chart.options.chart.zooming.singleTouch&&t.touches&&1===t.touches.length)},C.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,e=e.inverted,o=i.zooming.type||\"\";/touch/.test(t.type)&&(o=k(i.zooming.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},C}),e(t,\"Core/MSPointer.js\",[t[\"Core/Globals.js\"],t[\"Core/Pointer.js\"],t[\"Core/Utilities.js\"]],function(t,n,e){var o,i,r=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=t.charts,s=t.doc,h=t.noop,l=t.win,c=e.addEvent,d=e.css,p=e.objectEach,u=e.pick,f=e.removeEvent,g={},m=!!l.PointerEvent;function y(t,e,i,o){var r,s=a[n.hoverChartIndex||NaN];\"touch\"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[e]({type:i,target:t.currentTarget,preventDefault:h,touches:((r=[]).item=function(t){return this[t]},p(g,function(t){r.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),r)}))}function v(){return null!==i&&i.apply(this,arguments)||this}return r(v,i=n),v.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},v.prototype.batchMSEvents=function(t){t(this.chart.container,m?\"pointerdown\":\"MSPointerDown\",this.onContainerPointerDown),t(this.chart.container,m?\"pointermove\":\"MSPointerMove\",this.onContainerPointerMove),t(s,m?\"pointerup\":\"MSPointerUp\",this.onDocumentPointerUp)},v.prototype.destroy=function(){this.batchMSEvents(f),i.prototype.destroy.call(this)},v.prototype.init=function(t,e){i.prototype.init.call(this,t,e),this.hasZoom&&d(t.container,{\"-ms-touch-action\":\"none\",\"touch-action\":\"none\"})},v.prototype.onContainerPointerDown=function(t){y(t,\"onContainerTouchStart\",\"touchstart\",function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},v.prototype.onContainerPointerMove=function(t){y(t,\"onContainerTouchMove\",\"touchmove\",function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY},g[t.pointerId].target||(g[t.pointerId].target=t.currentTarget)})},v.prototype.onDocumentPointerUp=function(t){y(t,\"onDocumentTouchEnd\",\"touchend\",function(t){delete g[t.pointerId]})},v.prototype.setDOMEvents=function(){var t=this.chart.tooltip;i.prototype.setDOMEvents.call(this),(this.hasZoom||u(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(c)},v}),e(t,\"Core/Legend/Legend.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/FormatUtilities.js\"],t[\"Core/Globals.js\"],t[\"Core/Series/Point.js\"],t[\"Core/Renderer/RendererUtilities.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,u,o,r){var d=t.animObject,p=t.setAnimation,s=e.format,a=(i.isFirefox,i.marginNames),h=(i.win,o.distribute),n=r.addEvent,l=r.createElement,c=r.css,f=r.defined,g=r.discardElement,m=r.find,y=r.fireEvent,v=r.isNumber,x=r.merge,S=r.pick,b=r.relativeLength,k=r.stableSort,C=r.syncTimeout;r.wrap;function M(t,e){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.init(t,e)}return M.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),n(this.chart,\"endResize\",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=n(this.chart,\"render\",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},M.prototype.setOptions=function(t){var e=S(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=x(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=S(t.symbolWidth,16),this.pages=[],this.proximate=\"proximate\"===t.layout&&!this.chart.inverted,this.baseline=void 0},M.prototype.update=function(t,e){var i=this.chart;this.setOptions(x(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,S(e,!0)&&i.redraw(),y(this,\"afterUpdate\")},M.prototype.colorizeItem=function(t,e){var i,o,r,s,n=t.legendItem||{},a=n.group,h=n.label,l=n.line,n=n.symbol;a&&a[e?\"removeClass\":\"addClass\"](\"highcharts-legend-item-hidden\"),this.chart.styledMode||(a=this.options,i=this.itemHiddenStyle.color,a=e?a.itemStyle.color:i,o=e&&t.color||i,r=t.options&&t.options.marker,s={fill:o},h&&h.css({fill:a,color:a}),l&&l.attr({stroke:o}),n&&(r&&n.isMarker&&(s=t.pointAttribs(),e||(s.stroke=s.fill=i)),n.attr(s))),y(this,\"afterColorizeItem\",{item:t,visible:e})},M.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},M.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,r=i.x,r=void 0===r?0:r,i=i.y,i=void 0===i?0:i,s=this.options,n=s.symbolPadding,s=!s.rtl,a=t.checkbox;o&&o.element&&(s={translateX:s?r:this.legendWidth-r-2*n-4,translateY:i},o[f(o.translateY)?\"animate\":\"attr\"](s,void 0,function(){y(e,\"afterPositionItem\",{item:t})})),a&&(a.x=r,a.y=i)},M.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,r=[\"group\",\"label\",\"line\",\"symbol\"];o<r.length;o++){var s=r[o];i[s]&&(i[s]=i[s].destroy())}e&&g(e),t.legendItem=void 0},M.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++){var i=e[t];this.destroyItem(i)}for(var o=0,r=[\"clipRect\",\"up\",\"down\",\"pager\",\"nav\",\"box\",\"title\",\"group\"];o<r.length;o++){var s=r[o];this[s]&&(this[s]=this[s].destroy())}this.display=null},M.prototype.positionCheckboxes=function(){var o,r=this.group&&this.group.alignAttr,s=this.clipHeight||this.legendHeight,n=this.titleHeight;r&&(o=r.translateY,this.allItems.forEach(function(t){var e,i=t.checkbox;i&&(e=o+n+i.y+(this.scrollOffset||0)+3,c(i,{left:r.translateX+t.checkboxOffset+i.x-20+\"px\",top:e+\"px\",display:this.proximate||o-6<e&&e<o+s-6?\"\":\"none\"}))},this))},M.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,\"legend-title\").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+\"px\"}),o=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o},M.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?s(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},M.prototype.renderItem=function(t){var e=this,i=t.legendItem=t.legendItem||{},o=e.chart,r=o.renderer,s=e.options,n=\"horizontal\"===s.layout,a=e.symbolWidth,h=s.symbolPadding||0,l=e.itemStyle,c=e.itemHiddenStyle,n=n?S(s.itemDistance,20):0,d=!s.rtl,p=!t.series,u=!p&&t.series.drawLegendSymbol?t.series:t,f=u.options,f=e.createCheckboxForItem&&f&&f.showCheckbox,g=s.useHTML,m=t.options.className,y=i.label,v=a+h+n+(f?20:0),m=(y||(i.group=r.g(\"legend-item\").addClass(\"highcharts-\"+u.type+\"-series highcharts-color-\"+t.colorIndex+(m?\" \"+m:\"\")+(p?\" highcharts-series-\"+t.index:\"\")).attr({zIndex:1}).add(e.scrollGroup),i.label=y=r.text(\"\",d?a+h:-h,e.baseline||0,g),o.styledMode||y.css(x(t.visible?l:c)),y.attr({align:d?\"left\":\"right\",zIndex:2}).add(i.group),e.baseline||(e.fontMetrics=r.fontMetrics(o.styledMode?12:l.fontSize,y),e.baseline=e.fontMetrics.f+3+e.itemMarginTop,y.attr(\"y\",e.baseline),e.symbolHeight=s.symbolHeight||e.fontMetrics.f,s.squareSymbol&&(e.symbolWidth=S(s.symbolWidth,Math.max(e.symbolHeight,16)),v=e.symbolWidth+h+n+(f?20:0),d)&&y.attr(\"x\",e.symbolWidth+h)),u.drawLegendSymbol(e,t),e.setItemEvents&&e.setItemEvents(t,y,g)),f&&!t.checkbox&&e.createCheckboxForItem&&e.createCheckboxForItem(t),e.colorizeItem(t,t.visible),!o.styledMode&&l.width||y.css({width:(s.itemWidth||e.widthOption||o.spacingBox.width)-v+\"px\"}),e.setText(t),y.getBBox()),p=e.fontMetrics&&e.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=s.itemWidth||i.labelWidth||m.width+v,e.maxItemWidth=Math.max(e.maxItemWidth,t.itemWidth),e.totalItemWidth+=t.itemWidth,e.itemHeight=t.itemHeight=Math.round(i.labelHeight||(m.height>1.5*p?m.height:p))},M.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o=\"horizontal\"===e.layout,r=t.itemHeight,s=this.itemMarginBottom,n=this.itemMarginTop,a=o?S(e.itemDistance,20):0,h=this.maxLegendWidth,e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,l=t.legendItem||{};o&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=n+this.itemY+s,this.lastLineHeight=Math.max(r,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,o?this.itemX+=e:(this.itemY+=n+r+s,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},M.prototype.getAllItems=function(){var i=[];return this.chart.series.forEach(function(t){var e=t&&t.options;t&&S(e.showInLegend,!f(e.linkedTo)&&void 0,!0)&&(i=i.concat((t.legendItem||{}).labels||(\"point\"===e.legendType?t.data:t)))}),y(this,\"afterGetAllItems\",{allItems:i}),i},M.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+\"tv\":t.floating?\"\":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},M.prototype.adjustMargins=function(i,o){var r=this.chart,s=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(t,e){t.test(n)&&!f(i[e])&&(r[a[e]]=Math.max(r[a[e]],r.legend[(e+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][e]*s[e%2?\"x\":\"y\"]+S(s.margin,12)+o[e]+(r.titleOffset[e]||0)))})},M.prototype.proximatePositions=function(){var s=this.chart,n=[],a=\"left\"===this.options.align;this.allItems.forEach(function(t){var e,i,o,r=a;t.yAxis&&(t.xAxis.options.reversed&&(r=!r),t.points&&(e=m(r?t.points:t.points.slice(0).reverse(),function(t){return v(t.plotY)})),r=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,o=t.yAxis.top-s.plotTop,t.visible?(i=e?e.plotY:t.yAxis.height,i+=o-.3*r):i=o+t.yAxis.height,n.push({target:i,size:r,item:t}))},this);for(var t=0,e=h(n,s.plotHeight);t<e.length;t++){var i=e[t],o=i.item.legendItem||{};v(i.pos)&&(o.y=s.plotTop-s.spacing[0]+i.pos)}},M.prototype.render=function(){var t,e,i=this,o=i.chart,r=o.renderer,s=i.options,n=i.padding,a=i.getAllItems(),h=i.group,l=i.box;i.itemX=n,i.itemY=i.initialItemY,i.offsetWidth=0,i.lastItemY=0,i.widthOption=b(s.width,o.spacingBox.width-n),e=o.spacingBox.width-2*n-s.x,-1<[\"rm\",\"lm\"].indexOf(i.getAlignment().substring(0,2))&&(e/=2),i.maxLegendWidth=i.widthOption||e,h||(i.group=h=r.g(\"legend\").addClass(s.className||\"\").attr({zIndex:7}).add(),i.contentGroup=r.g().attr({zIndex:1}).add(h),i.scrollGroup=r.g().add(i.contentGroup)),i.renderTitle(),k(a,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),s.reversed&&a.reverse(),i.allItems=a,i.display=e=!!a.length,i.lastLineHeight=0,i.maxItemWidth=0,i.totalItemWidth=0,i.itemHeight=0,a.forEach(i.renderItem,i),a.forEach(i.layoutItem,i),a=(i.widthOption||i.offsetWidth)+n,t=i.lastItemY+i.lastLineHeight+i.titleHeight,t=i.handleOverflow(t),t+=n,l||(i.box=l=r.rect().addClass(\"highcharts-legend-box\").attr({r:s.borderRadius}).add(h)),o.styledMode||l.attr({stroke:s.borderColor,\"stroke-width\":s.borderWidth||0,fill:s.backgroundColor||\"none\"}).shadow(s.shadow),0<a&&0<t&&l[l.placed?\"animate\":\"attr\"](l.crisp.call({},{x:0,y:0,width:a,height:t},l.strokeWidth())),h[e?\"show\":\"hide\"](),o.styledMode&&\"none\"===h.getStyle(\"display\")&&(a=t=0),i.legendWidth=a,i.legendHeight=t,e&&i.align(),this.proximate||this.positionItems(),y(this,\"afterRender\")},M.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(o-=e.titleOffset[2]),o!==t.y&&(t=x(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(x(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?\"top\":i.verticalAlign}),!0,t)},M.prototype.handleOverflow=function(t){function e(t){\"number\"==typeof t?b.attr({height:t}):b&&(o.clipRect=b.destroy(),o.contentGroup.clip()),o.contentGroup.div&&(o.contentGroup.div.style.clip=t?\"rect(\"+p+\"px,9999px,\"+(p+t)+\"px,0)\":\"auto\")}function i(t){return o[t]=h.circle(0,0,1.3*m).translate(m/2,m/2).add(x),a.styledMode||o[t].attr(\"fill\",\"rgba(0,0,0,0.0001)\"),o[t]}var r,s,n,o=this,a=this.chart,h=a.renderer,l=this.options,c=l.y,d=\"top\"===l.verticalAlign,p=this.padding,u=l.maxHeight,f=l.navigation,g=S(f.animation,!0),m=f.arrowSize||12,y=this.pages,v=this.allItems,d=a.spacingBox.height+(d?-c:c)-p,x=this.nav,b=this.clipRect;return\"horizontal\"!==l.layout||\"middle\"===l.verticalAlign||l.floating||(d/=2),u&&(d=Math.min(d,u)),y.length=0,t&&0<d&&d<t&&!1!==f.enabled?(this.clipHeight=r=Math.max(d-20-this.titleHeight-p,0),this.currentPage=S(this.currentPage,1),this.fullHeight=t,v.forEach(function(t,e){var t=(n=t.legendItem||{}).y||0,i=Math.round(n.label.getBBox().height),o=y.length;(!o||t-y[o-1]>r&&(s||t)!==y[o-1])&&(y.push(s||t),o++),n.pageIx=o-1,s&&((v[e-1].legendItem||{}).pageIx=o-1),e===v.length-1&&t+i-y[o-1]>r&&i<=r&&(y.push(t),n.pageIx=o),t!==s&&(s=t)}),b||(b=o.clipRect=h.clipRect(0,p,9999,0),o.contentGroup.clip(b)),e(r),x||(this.nav=x=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol(\"triangle\",0,0,m,m).add(x),i(\"upTracker\").on(\"click\",function(){o.scroll(-1,g)}),this.pager=h.text(\"\",15,10).addClass(\"highcharts-legend-navigation\"),!a.styledMode&&f.style&&this.pager.css(f.style),this.pager.add(x),this.down=h.symbol(\"triangle-down\",0,0,m,m).add(x),i(\"downTracker\").on(\"click\",function(){o.scroll(1,g)})),o.scroll(0),t=d):x&&(e(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},M.prototype.scroll=function(t,e){var i=this,o=this.chart,r=this.pages,s=r.length,n=this.clipHeight,a=this.options.navigation,h=this.pager,l=this.padding,c=this.currentPage+t;0<(c=s<c?s:c)&&(void 0!==e&&p(e,o),this.nav.attr({translateX:l,translateY:n+this.padding+7+this.titleHeight,visibility:\"inherit\"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===c?\"highcharts-legend-nav-inactive\":\"highcharts-legend-nav-active\"})}),h.attr({text:c+\"/\"+s}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:c===s?\"highcharts-legend-nav-inactive\":\"highcharts-legend-nav-active\"})},this),o.styledMode||(this.up.attr({fill:1===c?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===c?\"default\":\"pointer\"}),this.down.attr({fill:c===s?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===s?\"default\":\"pointer\"})),this.scrollOffset=-r[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),t=d(S(e,o.renderer.globalAnimation,!0)),C(function(){y(i,\"afterScroll\",{currentPage:c})},t.duration))},M.prototype.setItemEvents=function(o,t,e){for(var i=this,r=o.legendItem||{},s=i.chart.renderer.boxWrapper,n=o instanceof u,a=\"highcharts-legend-\"+(n?\"point\":\"series\")+\"-active\",h=i.chart.styledMode,e=e?[t,r.symbol]:[r.group],l=function(e){i.allItems.forEach(function(t){o!==t&&[t].concat(t.linkedSeries||[]).forEach(function(t){t.setState(e,!n)})})},c=0,d=e;c<d.length;c++){var p=d[c];p&&p.on(\"mouseover\",function(){o.visible&&l(\"inactive\"),o.setState(\"hover\"),o.visible&&s.addClass(a),h||t.css(i.options.itemHoverStyle)}).on(\"mouseout\",function(){i.chart.styledMode||t.css(x(o.visible?i.itemStyle:i.itemHiddenStyle)),l(\"\"),s.removeClass(a),o.setState()}).on(\"click\",function(t){function e(){o.setVisible&&o.setVisible(),l(o.visible?\"inactive\":\"\")}var i=\"legendItemClick\";s.removeClass(a),t={browserEvent:t},o.firePointEvent?o.firePointEvent(i,t,e):y(o,i,t,e)})}},M.prototype.createCheckboxForItem=function(e){e.checkbox=l(\"input\",{type:\"checkbox\",className:\"highcharts-legend-checkbox\",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),n(e.checkbox,\"click\",function(t){t=t.target;y(e.series||e,\"checkboxClick\",{checked:t.checked,item:e},function(){e.select()})})},M}),e(t,\"Core/Series/SeriesRegistry.js\",[t[\"Core/Globals.js\"],t[\"Core/Defaults.js\"],t[\"Core/Series/Point.js\"],t[\"Core/Utilities.js\"]],function(t,e,n,i){var o,a,h=e.defaultOptions,l=i.extendClass,c=i.merge;function d(t,e){var i=h.plotOptions||{},o=e.defaultOptions,r=e.prototype;r.type=t,r.pointClass||(r.pointClass=n),o&&(i[t]=o),a.seriesTypes[t]=e}return(a=o=o||{}).seriesTypes=t.seriesTypes,a.registerSeriesType=d,a.seriesType=function(t,e,i,o,r){var s=h.plotOptions||{};return s[t]=c(s[e=e||\"\"],i),d(t,l(a.seriesTypes[e]||function(){},o)),a.seriesTypes[t].prototype.type=t,r&&(a.seriesTypes[t].prototype.pointClass=l(n,r)),a.seriesTypes[t]},o}),e(t,\"Core/Chart/Chart.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Axis/Axis.js\"],t[\"Core/Defaults.js\"],t[\"Core/FormatUtilities.js\"],t[\"Core/Foundation.js\"],t[\"Core/Globals.js\"],t[\"Core/Legend/Legend.js\"],t[\"Core/MSPointer.js\"],t[\"Core/Pointer.js\"],t[\"Core/Renderer/RendererRegistry.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Renderer/SVG/SVGRenderer.js\"],t[\"Core/Time.js\"],t[\"Core/Utilities.js\"],t[\"Core/Renderer/HTML/AST.js\"]],function(t,o,e,R,z,n,N,i,r,W,H,G,p,a,l){var h=t.animate,X=t.animObject,m=t.setAnimation,c=e.defaultOptions,F=e.defaultTime,Y=R.numberFormat,u=z.registerEventOptions,d=n.charts,f=n.doc,g=n.marginNames,_=n.svg,y=n.win,v=H.seriesTypes,x=a.addEvent,U=a.attr,V=a.cleanRecursively,b=a.createElement,S=a.css,k=a.defined,K=a.discardElement,q=a.erase,C=a.error,M=a.extend,s=a.find,w=a.fireEvent,T=a.getStyle,Z=a.isArray,A=a.isNumber,P=a.isObject,L=a.isString,O=a.merge,E=a.objectEach,D=a.pick,j=a.pInt,$=a.relativeLength,J=a.removeEvent,I=a.splat,Q=a.syncTimeout,tt=a.uniqueKey,t=(B.chart=function(t,e,i){return new B(t,e,i)},B.prototype.getArgs=function(t,e,i){L(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},B.prototype.init=function(o,r){var s=o.plotOptions||{};w(this,\"init\",{args:arguments},function(){var t=O(c,o),e=t.chart,i=(E(t.plotOptions,function(t,e){P(t)&&(t.tooltip=s[e]&&O(s[e].tooltip)||void 0)}),t.tooltip.userOptions=o.chart&&o.chart.forExport&&o.tooltip.userOptions||o.tooltip,this.userOptions=o,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=r,this.isResizing=0,e.zooming=e.zooming||{});o.chart&&!o.chart.zooming&&(i.resetButton=e.resetZoomButton),i.key=D(i.key,e.zoomKey),i.pinchType=D(i.pinchType,e.pinchType),i.singleTouch=D(i.singleTouch,e.zoomBySingleTouch),i.type=D(i.type,e.zoomType),this.options=t,this.axes=[],this.series=[],this.time=o.time&&Object.keys(o.time).length?new p(o.time):n.time,this.numberFormatter=e.numberFormatter||Y,this.styledMode=e.styledMode,this.hasCartesianSeries=e.showAxes;this.index=d.length,d.push(this),n.chartCount++,u(this,e),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,w(this,\"afterInit\"),this.firstRender()})},B.prototype.initSeries=function(t){var e=this.options.chart,e=t.type||e.type||e.defaultSeriesType,i=v[e],e=(i||C(17,!0,this,{missingModuleFor:e}),new i);return\"function\"==typeof e.init&&e.init(this,t),e},B.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},B.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},B.prototype.orderSeries=function(t){for(var e=this.series,i=t||0,o=e.length;i<o;++i)e[i]&&(e[i].index=i,e[i].name=e[i].getName())},B.prototype.isInsidePlot=function(t,e,i){var o,r=this.inverted,s=this.plotBox,n=this.plotLeft,a=this.plotTop,h=this.scrollablePlotBox,l=0,c=0,d=((i=void 0===i?{}:i).visiblePlotOnly&&this.scrollingContainer&&(l=(d=this.scrollingContainer).scrollLeft,c=d.scrollTop),i.series),h=i.visiblePlotOnly&&h||s,s=i.inverted?e:t,t=i.inverted?t:e,e={x:s,y:t,isInsidePlot:!0,options:i};return i.ignoreX||(o=d&&(r&&!this.polar?d.yAxis:d.xAxis)||{pos:n,len:1/0},(s=i.paneCoordinates?o.pos+s:n+s)>=Math.max(l+n,o.pos)&&s<=Math.min(l+n+h.width,o.pos+o.len))||(e.isInsidePlot=!1),!i.ignoreY&&e.isInsidePlot&&(s=i.axis&&!i.axis.isXAxis&&i.axis||d&&(r?d.xAxis:d.yAxis)||{pos:a,len:1/0},(l=i.paneCoordinates?s.pos+t:a+t)>=Math.max(c+a,s.pos)&&l<=Math.min(c+a+h.height,s.pos+s.len)||(e.isInsidePlot=!1)),w(this,\"afterIsInsidePlot\",e),e.isInsidePlot},B.prototype.redraw=function(t){w(this,\"beforeRedraw\");var e,i,o,r,s=this,n=s.hasCartesianSeries?s.axes:s.colorAxis||[],a=s.series,h=s.pointer,l=s.legend,c=s.userOptions.legend,d=s.renderer,p=d.isHidden(),u=[],f=s.isDirtyBox,g=s.isDirtyLegend;for(s.setResponsive&&s.setResponsive(!1),m(!!s.hasRendered&&t,s),p&&s.temporaryDisplay(),s.layOutTitles(),o=a.length;o--;)if(((r=a[o]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){e=!0;break}if(e)for(o=a.length;o--;)(r=a[o]).options.stacking&&(r.isDirty=!0);a.forEach(function(t){t.isDirty&&(\"point\"===t.options.legendType?(\"function\"==typeof t.updateTotals&&t.updateTotals(),g=!0):c&&(c.labelFormatter||c.labelFormat)&&(g=!0)),t.isDirtyData&&w(t,\"updatedData\")}),g&&l&&l.options.enabled&&(l.render(),s.isDirtyLegend=!1),i&&s.getStacks(),n.forEach(function(t){t.updateNames(),t.setScale()}),s.getMargins(),n.forEach(function(t){t.isDirty&&(f=!0)}),n.forEach(function(t){var e=t.min+\",\"+t.max;t.extKey!==e&&(t.extKey=e,u.push(function(){w(t,\"afterSetExtremes\",M(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(f||i)&&t.redraw()}),f&&s.drawChartBox(),w(s,\"predraw\"),a.forEach(function(t){(f||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),h&&h.reset(!0),d.draw(),w(s,\"redraw\"),w(s,\"render\"),p&&s.temporaryDisplay(!0),u.forEach(function(t){t.call()})},B.prototype.get=function(e){var t=this.series;function i(t){return t.id===e||t.options&&t.options.id===e}for(var o=s(this.axes,i)||s(this.series,i),r=0;!o&&r<t.length;r++)o=s(t[r].points||[],i);return o},B.prototype.getAxes=function(){var e=this,t=this.options,i=t.xAxis=I(t.xAxis||{}),t=t.yAxis=I(t.yAxis||{});w(this,\"getAxes\"),i.forEach(function(t,e){t.index=e,t.isX=!0}),t.forEach(function(t,e){t.index=e}),i.concat(t).forEach(function(t){new o(e,t)}),w(this,\"afterGetAxes\")},B.prototype.getSelectedPoints=function(){return this.series.reduce(function(e,t){return t.getPointsCollection().forEach(function(t){D(t.selectedStaging,t.selected)&&e.push(t)}),e},[])},B.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},B.prototype.setTitle=function(t,e,i){this.applyDescription(\"title\",t),this.applyDescription(\"subtitle\",e),this.applyDescription(\"caption\",void 0),this.layOutTitles(i)},B.prototype.applyDescription=function(e,t){var i=this,o=\"title\"===e?{color:\"#333333\",fontSize:this.options.isStock?\"16px\":\"18px\"}:{color:\"#666666\"},o=this.options[e]=O(!this.styledMode&&{style:o},this.options[e],t),r=this[e];r&&t&&(this[e]=r=r.destroy()),o&&!r&&((r=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:\"highcharts-\"+e,zIndex:o.zIndex||4}).add()).update=function(t){i[{title:\"setTitle\",subtitle:\"setSubtitle\",caption:\"setCaption\"}[e]](t)},this.styledMode||r.css(o.style),this[e]=r)},B.prototype.layOutTitles=function(t){var n=[0,0,0],a=this.renderer,h=this.spacingBox,e=([\"title\",\"subtitle\",\"caption\"].forEach(function(t){var e,i,o=this[t],r=this.options[t],s=r.verticalAlign||\"top\",t=\"title\"===t?\"top\"===s?-3:0:\"top\"===s?n[0]+2:0;o&&(this.styledMode||(e=r.style&&r.style.fontSize),e=a.fontMetrics(e,o).b,o.css({width:(r.width||h.width+(r.widthAdjust||0))+\"px\"}),i=Math.round(o.getBBox(r.useHTML).height),o.align(M({y:\"bottom\"===s?e:t+e,height:i},r),!1,\"spacingBox\"),r.floating||(\"top\"===s?n[0]=Math.ceil(n[0]+i):\"bottom\"===s&&(n[2]=Math.ceil(n[2]+i))))},this),n[0]&&\"top\"===(this.options.title.verticalAlign||\"top\")&&(n[0]+=this.options.title.margin),n[2]&&\"bottom\"===this.options.caption.verticalAlign&&(n[2]+=this.options.caption.margin),!this.titleOffset||this.titleOffset.join(\",\")!==n.join(\",\"));this.titleOffset=n,w(this,\"afterLayOutTitles\"),!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered)&&D(t,!0)&&this.isDirtyBox&&this.redraw()},B.prototype.getChartSize=function(){var t=this,e=t.options.chart,i=e.width,e=e.height,o=t.renderTo;k(i)||(t.containerWidth=T(o,\"width\")),k(e)||(t.containerHeight=T(o,\"height\")),t.chartWidth=Math.max(0,i||t.containerWidth||600),t.chartHeight=Math.max(0,$(e,t.chartWidth)||(1<t.containerHeight?t.containerHeight:400))},B.prototype.temporaryDisplay=function(t){var e,i=this.renderTo;if(t)for(;i&&i.style;)i.hcOrigStyle&&(S(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(f.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(f.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,f.body.appendChild(i)),\"none\"!==T(i,\"display\",!1)&&!i.hcOricDetached||(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:\"block\",overflow:\"hidden\"},i!==this.renderTo&&(e.height=0),S(i,e),i.offsetWidth)||i.style.setProperty(\"display\",\"block\",\"important\"),(i=i.parentNode)!==f.body););},B.prototype.setClassName=function(t){this.container.className=\"highcharts-container \"+(t||\"\")},B.prototype.getContainer=function(){var t=this,e=t.options,i=e.chart,o=\"data-highcharts-chart\",r=tt(),s=t.renderTo,n=(s||(t.renderTo=s=i.renderTo),L(s)&&(t.renderTo=s=f.getElementById(s)),s||C(13,!0,t),j(U(s,o))),n=(A(n)&&d[n]&&d[n].hasRendered&&d[n].destroy(),U(s,o,t.index),s.innerHTML=l.emptyHTML,i.skipClone||s.offsetWidth||t.temporaryDisplay(),t.getChartSize(),t.chartWidth),o=t.chartHeight,r=(S(s,{overflow:\"hidden\"}),t.styledMode||(a=M({position:\"relative\",overflow:\"hidden\",width:n+\"px\",height:o+\"px\",textAlign:\"left\",lineHeight:\"normal\",zIndex:0,\"-webkit-tap-highlight-color\":\"rgba(0,0,0,0)\",userSelect:\"none\",\"touch-action\":\"manipulation\",outline:\"none\"},i.style||{})),b(\"div\",{id:r},a,s)),a=(t.container=r,t._cursor=r.style.cursor,i.renderer||!_?W.getRendererType(i.renderer):G);if(t.renderer=new a(r,n,o,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,t.styledMode),m(void 0,t),t.setClassName(i.className),t.styledMode)for(var h in e.defs)this.renderer.definition(e.defs[h]);else t.renderer.setStyle(i.style);t.renderer.chartIndex=t.index,w(this,\"afterGetContainer\")},B.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!k(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!k(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),w(this,\"getMargins\"),t||this.getAxisMargins()},B.prototype.getAxisMargins=function(){function t(t){t.forEach(function(t){t.visible&&t.getOffset()})}var i=this,o=i.axisOffset=[0,0,0,0],e=i.colorAxis,r=i.margin;i.hasCartesianSeries?t(i.axes):e&&e.length&&t(e),g.forEach(function(t,e){k(r[e])||(i[t]+=o[e])}),i.setChartSize()},B.prototype.reflow=function(t){var e=this,i=e.options.chart,o=e.renderTo,r=k(i.width)&&k(i.height),s=i.width||T(o,\"width\"),i=i.height||T(o,\"height\"),o=t?t.target:y;delete e.pointer.chartPosition,r||e.isPrinting||!s||!i||o!==y&&o!==f||(s===e.containerWidth&&i===e.containerHeight||(a.clearTimeout(e.reflowTimeout),e.reflowTimeout=Q(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=s,e.containerHeight=i)},B.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=x(y,\"resize\",function(t){e.options&&e.reflow(t)}),x(this,\"destroy\",this.unbindReflow))},B.prototype.setSize=function(t,e,i){var o=this,r=o.renderer,i=(o.isResizing+=1,m(i,o),r.globalAnimation);o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize(),o.styledMode||(i?h:S)(o.container,{width:o.chartWidth+\"px\",height:o.chartHeight+\"px\"},i),o.setChartSize(!0),r.setSize(o.chartWidth,o.chartHeight,i),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(i),o.oldChartHeight=null,w(o,\"resize\"),Q(function(){o&&w(o,\"endResize\",null,function(){--o.isResizing})},X(i).duration)},B.prototype.setChartSize=function(t){var e,i,o,r,s=this,n=s.inverted,a=s.renderer,h=s.chartWidth,l=s.chartHeight,c=s.options.chart,d=s.spacing,p=s.clipOffset,n=(s.plotLeft=e=Math.round(s.plotLeft),s.plotTop=i=Math.round(s.plotTop),s.plotWidth=o=Math.max(0,Math.round(h-e-s.marginRight)),s.plotHeight=r=Math.max(0,Math.round(l-i-s.marginBottom)),s.plotSizeX=n?r:o,s.plotSizeY=n?o:r,s.plotBorderWidth=c.plotBorderWidth||0,s.spacingBox=a.spacingBox={x:d[3],y:d[0],width:h-d[3]-d[1],height:l-d[0]-d[2]},s.plotBox=a.plotBox={x:e,y:i,width:o,height:r},2*Math.floor(s.plotBorderWidth/2)),c=Math.ceil(Math.max(n,p[3])/2),h=Math.ceil(Math.max(n,p[0])/2);s.clipBox={x:c,y:h,width:Math.floor(s.plotSizeX-Math.max(n,p[1])/2-c),height:Math.max(0,Math.floor(s.plotSizeY-Math.max(n,p[2])/2-h))},t||(s.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),a.alignElements()),w(s,\"afterSetChartSize\",{skipAxes:t})},B.prototype.resetMargins=function(){w(this,\"resetMargins\");var r=this,s=r.options.chart;[\"margin\",\"spacing\"].forEach(function(i){var t=s[i],o=P(t)?t:[t,t,t,t];[\"Top\",\"Right\",\"Bottom\",\"Left\"].forEach(function(t,e){r[i][e]=D(s[i+t],o[e])})}),g.forEach(function(t,e){r[t]=D(r.margin[e],r.spacing[e])}),r.axisOffset=[0,0,0,0],r.clipOffset=[0,0,0,0]},B.prototype.drawChartBox=function(){var t,e,i=this,o=i.options.chart,r=i.renderer,s=i.chartWidth,n=i.chartHeight,a=i.styledMode,h=i.plotBGImage,l=o.backgroundColor,c=o.plotBackgroundColor,d=o.plotBackgroundImage,p=i.plotLeft,u=i.plotTop,f=i.plotWidth,g=i.plotHeight,m=i.plotBox,y=i.clipRect,v=i.clipBox,x=i.chartBackground,b=i.plotBackground,S=i.plotBorder,k=\"animate\";x||(i.chartBackground=x=r.rect().addClass(\"highcharts-background\").add(),k=\"attr\"),a?t=e=x.strokeWidth():(e=(t=o.borderWidth||0)+(o.shadow?8:0),l={fill:l||\"none\"},(t||x[\"stroke-width\"])&&(l.stroke=o.borderColor,l[\"stroke-width\"]=t),x.attr(l).shadow(o.shadow)),x[k]({x:e/2,y:e/2,width:s-e-t%2,height:n-e-t%2,r:o.borderRadius}),k=\"animate\",b||(k=\"attr\",i.plotBackground=b=r.rect().addClass(\"highcharts-plot-background\").add()),b[k](m),a||(b.attr({fill:c||\"none\"}).shadow(o.plotShadow),d&&(h?(d!==h.attr(\"href\")&&h.attr(\"href\",d),h.animate(m)):i.plotBGImage=r.image(d,p,u,f,g).add())),y?y.animate({width:v.width,height:v.height}):i.clipRect=r.clipRect(v),k=\"animate\",S||(k=\"attr\",i.plotBorder=S=r.rect().addClass(\"highcharts-plot-border\").attr({zIndex:1}).add()),a||S.attr({stroke:o.plotBorderColor,\"stroke-width\":o.plotBorderWidth||0,fill:\"none\"}),S[k](S.crisp({x:p,y:u,width:f,height:g},-S.strokeWidth())),i.isDirtyBox=!1,w(this,\"afterDrawChartBox\")},B.prototype.propFromSeries=function(){var e,i,o,r=this,s=r.options.chart,n=r.options.series;[\"inverted\",\"angular\",\"polar\"].forEach(function(t){for(i=v[s.type||s.defaultSeriesType],o=s[t]||i&&i.prototype[t],e=n&&n.length;!o&&e--;)(i=v[n[e].type])&&i.prototype[t]&&(o=!0);r[t]=o})},B.prototype.linkSeries=function(){var i=this,t=i.series;t.forEach(function(t){t.linkedSeries.length=0}),t.forEach(function(t){var e=t.options.linkedTo;L(e)&&(e=\":previous\"===e?i.series[t.index-1]:i.get(e))&&e.linkedParent!==t&&(e.linkedSeries.push(t),(t.linkedParent=e).enabledDataSorting&&t.setDataSortingOptions(),t.visible=D(t.options.visible,e.options.visible,t.visible))}),w(this,\"afterLinkSeries\")},B.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},B.prototype.renderLabels=function(){var r=this,s=r.options.labels;s.items&&s.items.forEach(function(t){var e=M(s.style,t.style),i=j(e.left)+r.plotLeft,o=j(e.top)+r.plotTop+12;delete e.left,delete e.top,r.renderer.text(t.html,i,o).attr({zIndex:2}).css(e).add()})},B.prototype.render=function(){function t(t){t.forEach(function(t){t.visible&&t.render()})}var e=this,i=e.axes,o=e.colorAxis,r=e.renderer,s=e.options,n=0,s=(e.setTitle(),e.legend=new N(e,s.legend),e.getStacks&&e.getStacks(),e.getMargins(!0),e.setChartSize(),e.plotWidth),a=(i.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return n=21,!0}),e.plotHeight=Math.max(e.plotHeight-n,0),e.plotHeight),h=(i.forEach(function(t){t.setScale()}),e.getAxisMargins(),1.1<s/e.plotWidth),l=1.05<a/e.plotHeight;(h||l)&&(i.forEach(function(t){(t.horiz&&h||!t.horiz&&l)&&t.setTickInterval(!0)}),e.getMargins()),e.drawChartBox(),e.hasCartesianSeries?t(i):o&&o.length&&t(o),e.seriesGroup||(e.seriesGroup=r.g(\"series-group\").attr({zIndex:3}).add()),e.renderSeries(),e.renderLabels(),e.addCredits(),e.setResponsive&&e.setResponsive(),e.hasRendered=!0},B.prototype.addCredits=function(t){var e=this,i=O(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||\"\"),0,0).addClass(\"highcharts-credits\").on(\"click\",function(){i.href&&(y.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},B.prototype.destroy=function(){var t,i=this,e=i.axes,o=i.series,r=i.container,s=r&&r.parentNode;for(w(i,\"destroy\"),i.renderer.forExport?q(d,i):d[i.index]=void 0,n.chartCount--,i.renderTo.removeAttribute(\"data-highcharts-chart\"),J(i),t=e.length;t--;)e[t]=e[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=o.length;t--;)o[t]=o[t].destroy();[\"title\",\"subtitle\",\"chartBackground\",\"plotBackground\",\"plotBGImage\",\"plotBorder\",\"seriesGroup\",\"clipRect\",\"credits\",\"pointer\",\"rangeSelector\",\"legend\",\"resetZoomButton\",\"tooltip\",\"renderer\"].forEach(function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())}),r&&(r.innerHTML=l.emptyHTML,J(r),s)&&K(r),E(i,function(t,e){delete i[e]})},B.prototype.firstRender=function(){var e=this,t=e.options;e.isReadyToRender&&!e.isReadyToRender()||(e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes(),(Z(t.series)?t.series:[]).forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSeriesData(),w(e,\"beforeRender\"),r&&(i.isRequired()?e.pointer=new i(e,t):e.pointer=new r(e,t)),e.render(),e.pointer.getChartPosition(),e.renderer.imgCount||e.hasLoaded||e.onload(),e.temporaryDisplay(!0))},B.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),w(this,\"load\"),w(this,\"render\"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},B.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:\"img\",\"aria-label\":(e&&e.element.textContent||\"\").replace(/</g,\"<\")}),t.accessibility&&!1===t.accessibility.enabled||C('Highcharts warning: Consider including the \"accessibility.js\" module to make your chart more usable for people with disabilities. Set the \"accessibility.enabled\" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},B.prototype.addSeries=function(t,e,i){var o,r=this;return t&&(e=D(e,!0),w(r,\"addSeries\",{options:t},function(){o=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),w(r,\"afterAddSeries\",{series:o}),e&&r.redraw(i)})),o},B.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?\"xAxis\":\"yAxis\",{axis:t,redraw:i,animation:o})},B.prototype.addColorAxis=function(t,e,i){return this.createAxis(\"colorAxis\",{axis:t,redraw:e,animation:i})},B.prototype.createAxis=function(t,e){t=new o(this,O(e.axis,{index:this[t].length,isX:\"xAxis\"===t}));return D(e.redraw,!0)&&this.redraw(e.animation),t},B.prototype.showLoading=function(t){function e(){s&&S(s,{left:i.plotLeft+\"px\",top:i.plotTop+\"px\",width:i.plotWidth+\"px\",height:i.plotHeight+\"px\"})}var i=this,o=i.options,r=o.loading,s=i.loadingDiv,n=i.loadingSpan;s||(i.loadingDiv=s=b(\"div\",{className:\"highcharts-loading highcharts-loading-hidden\"},null,i.container)),n||(i.loadingSpan=n=b(\"span\",{className:\"highcharts-loading-inner\"},null,s),x(i,\"redraw\",e)),s.className=\"highcharts-loading\",l.setElementHTML(n,D(t,o.lang.loading,\"\")),i.styledMode||(S(s,M(r.style,{zIndex:10})),S(n,r.labelStyle),i.loadingShown)||(S(s,{opacity:0,display:\"\"}),h(s,{opacity:r.style.opacity||.5},{duration:r.showDuration||0})),i.loadingShown=!0,e()},B.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className=\"highcharts-loading highcharts-loading-hidden\",this.styledMode||h(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){S(e,{display:\"none\"})}})),this.loadingShown=!1},B.prototype.update=function(i,t,n,e){var o,r,a=this,s={credits:\"addCredits\",title:\"setTitle\",subtitle:\"setSubtitle\",caption:\"setCaption\"},h=i.isResponsiveOptions,l=[],c=(w(a,\"update\",{options:i}),h||a.setResponsive(!1,!0),i=V(i,a.options),a.userOptions=O(a.userOptions,i),i.chart),d=(c&&(O(!0,a.options.chart,c),\"className\"in c&&a.setClassName(c.className),\"reflow\"in c&&a.setReflow(c.reflow),(\"inverted\"in c||\"polar\"in c||\"type\"in c)&&(a.propFromSeries(),d=!0),\"alignTicks\"in c&&(d=!0),\"events\"in c&&u(this,c),E(c,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf(\"chart.\"+e)&&(o=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(h?a.isDirtyBox=!0:r=!0)}),!a.styledMode)&&c.style&&a.renderer.setStyle(a.options.chart.style||{}),!a.styledMode&&i.colors&&(this.options.colors=i.colors),i.time&&(this.time===F&&(this.time=new p(i.time)),O(!0,a.options.time,i.time)),E(i,function(t,e){a[e]&&\"function\"==typeof a[e].update?a[e].update(t,!1):\"function\"==typeof a[s[e]]?a[s[e]](t):\"colors\"!==e&&-1===a.collectionsWithUpdate.indexOf(e)&&O(!0,a.options[e],i[e]),\"chart\"!==e&&-1!==a.propsRequireUpdateSeries.indexOf(e)&&(o=!0)}),this.collectionsWithUpdate.forEach(function(r){var s;i[r]&&(s=[],a[r].forEach(function(t,e){t.options.isInternal||s.push(D(t.options.index,e))}),I(i[r]).forEach(function(t,e){var i,o=k(t.id);(i=!(i=o?a.get(t.id):i)&&a[r]&&(i=a[r][s?s[e]:e])&&o&&k(i.options.id)?void 0:i)&&i.coll===r&&(i.update(t,!1),n)&&(i.touched=!0),!i&&n&&a.collectionsWithInit[r]&&(a.collectionsWithInit[r][0].apply(a,[t].concat(a.collectionsWithInit[r][1]||[]).concat([!1])).touched=!0)}),n)&&a[r].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)})}),l.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),d&&a.axes.forEach(function(t){t.update({},!1)}),o&&a.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),c&&c.width),c=c&&(L(c.height)?$(c.height,d||a.chartWidth):c.height);r||A(d)&&d!==a.chartWidth||A(c)&&c!==a.chartHeight?a.setSize(d,c,e):D(t,!0)&&a.redraw(e),w(a,\"afterUpdate\",{options:i,redraw:t,animation:e})},B.prototype.setSubtitle=function(t,e){this.applyDescription(\"subtitle\",t),this.layOutTitles(e)},B.prototype.setCaption=function(t,e){this.applyDescription(\"caption\",t),this.layOutTitles(e)},B.prototype.showResetZoom=function(){var t=this,e=c.lang,i=t.options.chart.zooming.resetButton,o=i.theme,r=\"chart\"===i.relativeTo||\"spacingBox\"===i.relativeTo?null:\"scrollablePlotBox\";function s(){t.zoomOut()}w(this,\"beforeShowResetZoom\",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,s,o).attr({align:i.position.align,title:e.resetZoomTitle}).addClass(\"highcharts-reset-zoom\").add().align(i.position,!1,r)}),w(this,\"afterShowResetZoom\")},B.prototype.zoomOut=function(){w(this,\"selection\",{resetSelection:!0},this.zoom)},B.prototype.zoom=function(t){var o,r=this,s=r.pointer,n=!1,e=(!t||t.resetSelection?(r.axes.forEach(function(t){o=t.zoom()}),s.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var e=t.axis,i=e.isXAxis;(s[i?\"zoomX\":\"zoomY\"]&&k(s.mouseDownX)&&k(s.mouseDownY)&&r.isInsidePlot(s.mouseDownX-r.plotLeft,s.mouseDownY-r.plotTop,{axis:e})||!k(r.inverted?s.mouseDownX:s.mouseDownY))&&(o=e.zoom(t.min,t.max),e.displayBtn)&&(n=!0)}),r.resetZoomButton);n&&!e?r.showResetZoom():!n&&P(e)&&(r.resetZoomButton=e.destroy()),o&&r.redraw(D(r.options.chart.animation,t&&t.animation,r.pointCount<100))},B.prototype.pan=function(p,t){var u,f=this,e=f.hoverPoints,t=\"object\"==typeof t?t:{enabled:t,type:\"x\"},i=f.options.chart,g=(i&&i.panning&&(i.panning=t),t.type);w(this,\"pan\",{originalEvent:p},function(){e&&e.forEach(function(t){t.setState()});var t=f.xAxis,d=(\"xy\"===g?t=t.concat(f.yAxis):\"y\"===g&&(t=f.yAxis),{});t.forEach(function(t){var e,i,o,r,s,n,a,h,l,c;!t.options.panningEnabled||t.options.isInternal||(i=t.horiz,e=p[i?\"chartX\":\"chartY\"],c=f[i=i?\"mouseDownX\":\"mouseDownY\"],o=t.minPointOffset||0,n=t.reversed&&!f.inverted||!t.reversed&&f.inverted?-1:1,r=t.getExtremes(),l=t.toValue(c-e,!0)+o*n,n=(c=t.toValue(c+t.len-e,!0)-(o*n||t.isXAxis&&t.pointRangePadding||0))<l,h=t.hasVerticalPanning(),s=n?c:l,n=n?l:c,a=t.panningState,!h||t.isXAxis||a&&!a.isDirty||t.series.forEach(function(t){var e=t.getProcessedData(!0),e=t.getExtremes(e.yData,!0);a=a||{startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE},A(e.dataMin)&&A(e.dataMax)&&(a.startMin=Math.min(D(t.options.threshold,1/0),e.dataMin,a.startMin),a.startMax=Math.max(D(t.options.threshold,-1/0),e.dataMax,a.startMax))}),l=Math.min(D(a&&a.startMin,r.dataMin),o?r.min:t.toValue(t.toPixels(r.min)-t.minPixelPadding)),c=Math.max(D(a&&a.startMax,r.dataMax),o?r.max:t.toValue(t.toPixels(r.max)+t.minPixelPadding)),t.panningState=a,t.isOrdinal)||(0<(h=l-s)&&(n+=h,s=l),0<(h=n-c)&&(n=c,s-=h),t.series.length&&s!==r.min&&n!==r.max&&l<=s&&n<=c&&(t.setExtremes(s,n,!1,!1,{trigger:\"pan\"}),!f.resetZoomButton&&s!==l&&n!==c&&g.match(\"y\")&&(f.showResetZoom(),t.displayBtn=!1),u=!0),d[i]=e)}),E(d,function(t,e){f[e]=t}),u&&f.redraw(!1),S(f.container,{cursor:\"move\"})})},B);function B(t,e,i){this.axes=void 0,this.axisOffset=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.legend=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.getArgs(t,e,i)}return M(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:[\"xAxis\",\"yAxis\",\"series\"],propsRequireDirtyBox:[\"backgroundColor\",\"borderColor\",\"borderWidth\",\"borderRadius\",\"plotBackgroundColor\",\"plotBackgroundImage\",\"plotBorderColor\",\"plotBorderWidth\",\"plotShadow\",\"shadow\"],propsRequireReflow:[\"margin\",\"marginTop\",\"marginRight\",\"marginBottom\",\"marginLeft\",\"spacing\",\"spacingTop\",\"spacingRight\",\"spacingBottom\",\"spacingLeft\"],propsRequireUpdateSeries:[\"chart.inverted\",\"chart.polar\",\"chart.ignoreHiddenSeries\",\"chart.type\",\"colors\",\"plotOptions\",\"time\",\"tooltip\"]}),t}),e(t,\"Core/Legend/LegendSymbol.js\",[t[\"Core/Utilities.js\"]],function(t){var e,d=t.extend,p=t.merge,u=t.pick;return(t=e=e||{}).drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},i=this.options,o=t.symbolWidth,r=t.symbolHeight,s=r/2,n=this.chart.renderer,a=e.group,t=t.baseline-Math.round(.3*t.fontMetrics.b),h={},l=i.marker,c=0;this.chart.styledMode||(h={\"stroke-width\":Math.min(i.lineWidth||0,24)},i.dashStyle?h.dashstyle=i.dashStyle:\"square\"!==i.linecap&&(h[\"stroke-linecap\"]=\"round\")),e.line=n.path().addClass(\"highcharts-graph\").attr(h).add(a),h[\"stroke-linecap\"]&&(c=Math.min(e.line.strokeWidth(),o)/2),e.line.attr({d:[[\"M\",c,t],[\"L\",o-c,t]]}),l&&!1!==l.enabled&&o&&(i=Math.min(u(l.radius,s),s),0===this.symbol.indexOf(\"url\")&&(l=p(l,{width:r,height:r}),i=0),e.symbol=h=n.symbol(this.symbol,o/2-i,t-i,2*i,2*i,d({context:\"legend\"},l)).addClass(\"highcharts-point\").add(a),h.isMarker=!0)},t.drawRectangle=function(t,e){var e=e.legendItem||{},i=t.options,o=t.symbolHeight,r=(i=i.squareSymbol)?o:t.symbolWidth;e.symbol=this.chart.renderer.rect(i?(t.symbolWidth-o)/2:0,t.baseline-o+1,r,o,u(t.options.symbolRadius,o/2)).addClass(\"highcharts-point\").attr({zIndex:3}).add(e.group)},e}),e(t,\"Core/Series/SeriesDefaults.js\",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:\"#ffffff\",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:\"center\",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return\"number\"!=typeof this.y?\"\":t(this.y,-1)},padding:5,style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:\"x\"}}),e(t,\"Core/Series/Series.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Defaults.js\"],t[\"Core/Foundation.js\"],t[\"Core/Globals.js\"],t[\"Core/Legend/LegendSymbol.js\"],t[\"Core/Series/Point.js\"],t[\"Core/Series/SeriesDefaults.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o,r,l,s,n,h,c){var d=t.animObject,p=t.setAnimation,u=e.defaultOptions,a=i.registerEventOptions,f=o.hasTouch,g=o.svg,m=o.win,v=n.seriesTypes,y=(c.addEvent,c.arrayMax),x=c.arrayMin,A=c.clamp,b=c.cleanRecursively,P=c.correctFloat,L=c.defined,S=c.erase,C=c.error,k=c.extend,R=c.find,O=c.fireEvent,M=c.getNestedProperty,E=c.isArray,D=c.isNumber,z=c.isString,w=c.merge,T=c.objectEach,j=c.pick,N=c.removeEvent,W=c.splat,I=c.syncTimeout,t=(B.prototype.init=function(t,e){O(this,\"init\",{options:e});var i,o=this,r=t.series,e=(this.eventsToUnbind=[],o.chart=t,o.options=o.setOptions(e),o.options),s=(o.linkedSeries=[],o.bindAxes(),k(o,{name:e.name,state:\"\",visible:!1!==e.visible,selected:!0===e.selected}),a(this,e),e.events);(s&&s.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),o.parallelArrays.forEach(function(t){o[t+\"Data\"]||(o[t+\"Data\"]=[])}),o.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),o._i=j(i&&i._i,-1)+1,o.opacity=o.options.opacity,t.orderSeries(this.insert(r)),e.dataSorting&&e.dataSorting.enabled?o.setDataSortingOptions():o.points||o.data||o.setData(e.data,!1),O(this,\"afterInit\")},B.prototype.is=function(t){return v[t]&&this instanceof v[t]},B.prototype.insert=function(t){var e,i=this.options.index;if(D(i)){for(e=t.length;e--;)if(i>=j(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return j(e,t.length-1)},B.prototype.bindAxes=function(){var o,r=this,s=r.options,t=r.chart;O(this,\"bindAxes\",null,function(){(r.axisTypes||[]).forEach(function(e){var i=0;t[e].forEach(function(t){o=t.options,(s[e]===i&&!o.isInternal||void 0!==s[e]&&s[e]===o.id||void 0===s[e]&&0===o.index)&&(r.insert(t.series),(r[e]=t).isDirty=!0),o.isInternal||i++}),r[e]||r.optionalAxis===e||C(18,!0,t)})}),O(this,\"afterBindAxes\")},B.prototype.updateParallelArrays=function(i,o){var r=i.series,e=arguments,t=D(o)?function(t){var e=\"y\"===t&&r.toYData?r.toYData(i):i[t];r[t+\"Data\"][o]=e}:function(t){Array.prototype[o].apply(r[t+\"Data\"],Array.prototype.slice.call(e,2))};r.parallelArrays.forEach(t)},B.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},B.prototype.autoIncrement=function(t){var e,i=this.options,o=i.pointIntervalUnit,r=i.relativeXValue,s=this.chart.time,n=this.xIncrement,n=j(n,i.pointStart,0);return this.pointInterval=i=j(this.pointInterval,i.pointInterval,1),r&&D(t)&&(i*=t),o&&(e=new s.Date(n),\"day\"===o?s.set(\"Date\",e,s.get(\"Date\",e)+i):\"month\"===o?s.set(\"Month\",e,s.get(\"Month\",e)+i):\"year\"===o&&s.set(\"FullYear\",e,s.get(\"FullYear\",e)+i),i=e.getTime()-n),r&&D(t)?n+i:(this.xIncrement=n+i,n)},B.prototype.setDataSortingOptions=function(){var t=this.options;k(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),L(t.pointRange)||(t.pointRange=1)},B.prototype.setOptions=function(t){var e=this.chart,i=e.options,o=i.plotOptions,r=e.userOptions||{},t=w(t),e=e.styledMode,s={plotOptions:o,userOptions:t},n=(O(this,\"setOptions\",s),s.plotOptions[this.type]),a=r.plotOptions||{},s=(this.userOptions=s.userOptions,w(n,o.series,r.plotOptions&&r.plotOptions[this.type],t)),r=(this.tooltipOptions=w(u.tooltip,u.plotOptions.series&&u.plotOptions.series.tooltip,u.plotOptions[this.type].tooltip,i.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,t.tooltip),this.stickyTracking=j(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||s.stickyTracking),null===n.marker&&delete s.marker,this.zoneAxis=s.zoneAxis,this.zones=(s.zones||[]).slice());return!s.negativeColor&&!s.negativeFillColor||s.zones||(i={value:s[this.zoneAxis+\"Threshold\"]||s.threshold||0,className:\"highcharts-negative\"},e||(i.color=s.negativeColor,i.fillColor=s.negativeFillColor),r.push(i)),r.length&&L(r[r.length-1].value)&&r.push(e?{}:{color:this.color,fillColor:this.fillColor}),O(this,\"afterSetOptions\",{options:s}),s},B.prototype.getName=function(){return j(this.options.name,\"Series \"+(this.index+1))},B.prototype.getCyclic=function(t,e,i){var o,r,s=this.chart,n=this.userOptions,a=t+\"Index\",h=t+\"Counter\",l=i?i.length:j(s.options.chart[t+\"Count\"],s[t+\"Count\"]);e||(r=j(n[a],n[\"_\"+a]),L(r)?o=r:(s.series.length||(s[h]=0),n[\"_\"+a]=o=s[h]%l,s[h]+=1),i&&(e=i[o])),void 0!==o&&(this[a]=o),this[t]=e},B.prototype.getColor=function(){this.chart.styledMode?this.getCyclic(\"color\"):this.options.colorByPoint?this.color=\"#cccccc\":this.getCyclic(\"color\",this.options.color||u.plotOptions[this.type].color,this.chart.options.colors)},B.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},B.prototype.getSymbol=function(){var t=this.options.marker;this.getCyclic(\"symbol\",t.symbol,this.chart.options.symbols)},B.prototype.findPointIndex=function(e,t){var i,o,r,s=e.id,n=e.x,a=this.points,h=this.options.dataSorting;if(s){s=this.chart.get(s);s instanceof l&&(i=s)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){s=function(t){return!t.touched&&t.index===e.index};if(h&&h.matchByName?s=function(t){return!t.touched&&t.name===e.name}:this.options.relativeXValue&&(s=function(t){return!t.touched&&t.options.x===e.x}),!(i=R(a,s)))return}return i&&void 0!==(r=i&&i.index)&&(o=!0),-1!==(r=void 0===r&&D(n)?this.xData.indexOf(n,t):r)&&void 0!==r&&this.cropped&&(r=r>=this.cropStart?r-this.cropStart:r),r=!o&&D(r)&&a[r]&&a[r].touched?void 0:r},B.prototype.updateData=function(t,e){var r,i,o,s,n=this.options,a=n.dataSorting,h=this.points,l=[],c=this.requireSorting,d=t.length===h.length,p=!0;if(this.xIncrement=null,t.forEach(function(t,e){var i=L(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},o=i.x;i.id||D(o)?(-1===(o=this.findPointIndex(i,s))||void 0===o?l.push(t):h[o]&&t!==n.data[o]?(h[o].update(t,!1,null,!1),h[o].touched=!0,c&&(s=o+1)):h[o]&&(h[o].touched=!0),(!d||e!==o||a&&a.enabled||this.hasDerivedData)&&(r=!0)):l.push(t)},this),r)for(i=h.length;i--;)(o=h[i])&&!o.touched&&o.remove&&o.remove(!1,e);else!d||a&&a.enabled?p=!1:(t.forEach(function(t,e){t!==h[e].y&&h[e].update&&h[e].update(t,!1,null,!1)}),l.length=0);return h.forEach(function(t){t&&(t.touched=!1)}),!!p&&(l.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0)},B.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var r,s,n,a,h=this,l=h.points,c=l&&l.length||0,d=h.options,p=h.chart,u=d.dataSorting,f=h.xAxis,g=d.turboThreshold,m=this.xData,y=this.yData,v=h.pointArrayMap,x=v&&v.length,v=d.keys,b=0,S=1,k=(p.options.chart.allowMutatingData||(d.data&&delete h.options.data,h.userOptions.data&&delete h.userOptions.data,a=w(!0,t)),(t=a||t||[]).length);if(u&&u.enabled&&(t=this.sortData(t)),!(n=p.options.chart.allowMutatingData&&!1!==o&&k&&c&&!h.cropped&&!h.hasGroupedData&&h.visible&&!h.boosted?this.updateData(t,i):n)){if(h.xIncrement=null,h.colorCounter=0,this.parallelArrays.forEach(function(t){h[t+\"Data\"].length=0}),g&&g<k)if(a=h.getFirstValidPoint(t),D(a))for(r=0;r<k;r++)m[r]=this.autoIncrement(),y[r]=t[r];else if(E(a))if(x)if(a.length===x)for(r=0;r<k;r++)m[r]=this.autoIncrement(),y[r]=t[r];else for(r=0;r<k;r++)s=t[r],m[r]=s[0],y[r]=s.slice(1,x+1);else if(v&&(b=0<=(b=v.indexOf(\"x\"))?b:0,S=0<=(S=v.indexOf(\"y\"))?S:1),b===(S=1===a.length?0:S))for(r=0;r<k;r++)m[r]=this.autoIncrement(),y[r]=t[r][S];else for(r=0;r<k;r++)s=t[r],m[r]=s[b],y[r]=s[S];else C(12,!1,p);else for(r=0;r<k;r++)void 0!==t[r]&&(h.pointClass.prototype.applyOptions.apply(s={series:h},[t[r]]),h.updateParallelArrays(s,r));for(y&&z(y[0])&&C(14,!0,p),h.data=[],h.options.data=h.userOptions.data=t,r=c;r--;)l[r]&&l[r].destroy&&l[r].destroy();f&&(f.minRange=f.userMinRange),h.isDirty=p.isDirtyBox=!0,h.isDirtyData=!!l,i=!1}\"point\"===d.legendType&&(this.processData(),this.generatePoints()),e&&p.redraw(i)},B.prototype.sortData=function(r){function s(t,e){return L(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}}var i=this,o=i.options.dataSorting.sortKey||\"y\";return r.forEach(function(t,e){r[e]=s(i,t),r[e].index=e},this),r.concat().sort(function(t,e){t=M(o,t),e=M(o,e);return e<t?-1:t<e?1:0}).forEach(function(t,e){t.x=e},this),i.linkedSeries&&i.linkedSeries.forEach(function(i){var t=i.options,o=t.data;t.dataSorting&&t.dataSorting.enabled||!o||(o.forEach(function(t,e){o[e]=s(i,t),r[e]&&(o[e].x=r[e].x,o[e].index=e)}),i.setData(o,!1))}),r},B.prototype.getProcessedData=function(t){var e,i,o,r,s,n,a=this,h=a.xAxis,l=a.options,c=l.cropThreshold,t=t||a.getExtremesFromAll||l.getExtremesFromAll,l=a.isCartesian,d=h&&h.val2lin,p=!(!h||!h.logarithmic),u=0,f=a.xData,g=a.yData,m=a.requireSorting,y=!1,v=f.length;for(h&&(s=(n=h.getExtremes()).min,n=n.max,y=!(!h.categories||h.names.length)),l&&a.sorted&&!t&&(!c||c<v||a.forceCrop)&&(f[v-1]<s||f[0]>n?(f=[],g=[]):a.yData&&(f[0]<s||f[v-1]>n)&&(f=(h=this.cropData(a.xData,a.yData,s,n)).xData,g=h.yData,u=h.start,e=!0)),r=f.length||1;--r;)0<(i=p?d(f[r])-d(f[r-1]):f[r]-f[r-1])&&(void 0===o||i<o)?o=i:i<0&&m&&!y&&(C(15,!1,a.chart),m=!1);return{xData:f,yData:g,cropped:e,cropStart:u,closestPointRange:o}},B.prototype.processData=function(t){var e=this,i=e.xAxis;if(e.isCartesian&&!e.isDirty&&!i.isDirty&&!e.yAxis.isDirty&&!t)return!1;i=e.getProcessedData();e.cropped=i.cropped,e.cropStart=i.cropStart,e.processedXData=i.xData,e.processedYData=i.yData,e.closestPointRange=e.basePointRange=i.closestPointRange,O(e,\"afterProcessData\")},B.prototype.cropData=function(t,e,i,o,r){var s,n,a=t.length,h=0,l=a;for(r=j(r,this.cropShoulder),s=0;s<a;s++)if(t[s]>=i){h=Math.max(0,s-r);break}for(n=s;n<a;n++)if(t[n]>o){l=n+r;break}return{xData:t.slice(h,l),yData:e.slice(h,l),start:h,end:l}},B.prototype.generatePoints=function(){var t,e,i,o,r=this,s=r.options,n=r.processedData||s.data,a=r.processedXData,h=r.processedYData,l=r.pointClass,c=a.length,d=r.cropStart||0,p=r.hasGroupedData,u=s.keys,f=[],g=s.dataGrouping&&s.dataGrouping.groupAll?d:0,m=r.data;for(m||p||((s=[]).length=n.length,m=r.data=s),u&&p&&(r.options.keys=!1),o=0;o<c;o++)e=d+o,p?((i=(new l).init(r,[a[o]].concat(W(h[o])))).dataGroup=r.groupMap[g+o],i.dataGroup.options&&(i.options=i.dataGroup.options,k(i,i.dataGroup.options),delete i.dataLabels)):(i=m[e])||void 0===n[e]||(m[e]=i=(new l).init(r,n[e],a[o])),i&&(i.index=p?g+o:e,f[o]=i);if(r.options.keys=u,m&&(c!==(t=m.length)||p))for(o=0;o<t;o++)o!==d||p||(o+=c),m[o]&&(m[o].destroyElements(),m[o].plotX=void 0);r.data=m,r.points=f,O(this,\"afterGeneratePoints\")},B.prototype.getXExtremes=function(t){return{min:x(t),max:y(t)}},B.prototype.getExtremes=function(t,e){var i,o,r,s,n,a=this.xAxis,h=this.yAxis,l=this.processedXData||this.xData,c=[],d=this.requireSorting?this.cropShoulder:0,p=!!h&&h.positiveValuesOnly,u=0,f=0,g=0,m=(t=t||this.stackedYData||this.processedYData||[]).length;for(a&&(u=(h=a.getExtremes()).min,f=h.max),s=0;s<m;s++)if(o=l[s],r=t[s],i=(D(r)||E(r))&&(r.length||0<r||!p),o=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!a||(l[s+d]||o)>=u&&(l[s-d]||o)<=f,i&&o)if(n=r.length)for(;n--;)D(r[n])&&(c[g++]=r[n]);else c[g++]=r;h={activeYData:c,dataMin:x(c),dataMax:y(c)};return O(this,\"afterGetExtremes\",{dataExtremes:h}),h},B.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},B.prototype.getFirstValidPoint=function(t){for(var e=t.length,i=0,o=null;null===o&&i<e;)o=t[i],i++;return o},B.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,o,r=this,s=r.options,n=s.stacking,a=r.xAxis,h=a.categories,l=r.enabledDataSorting,c=r.yAxis,d=r.points,p=d.length,u=r.pointPlacementToXValue(),f=Boolean(u),g=s.threshold,m=s.startFromThreshold?g:0,y=this.zoneAxis||\"y\",v=Number.MAX_VALUE;function x(t){return A(t,-1e5,1e5)}for(t=0;t<p;t++){var b=d[t],S=b.x,k=void 0,C=void 0,M=b.y,w=b.low,T=n&&c.stacking&&c.stacking.stacks[(r.negStacks&&M<(m?0:g)?\"-\":\"\")+r.stackKey];(c.positiveValuesOnly&&!c.validatePositiveValue(M)||a.positiveValuesOnly&&!a.validatePositiveValue(S))&&(b.isNull=!0),b.plotX=e=P(x(a.translate(S,0,0,0,1,u,\"flags\"===this.type))),n&&r.visible&&T&&T[S]&&(o=r.getStackIndicator(o,S,r.index),!b.isNull&&o.key&&(C=(k=T[S]).points[o.key]),k)&&E(C)&&(w=C[0],M=C[1],w===m&&o.key===T[S].base&&(w=j(D(g)?g:c.min)),c.positiveValuesOnly&&L(w)&&w<=0&&(w=void 0),b.total=b.stackTotal=j(k.total),b.percentage=L(b.y)&&k.total?b.y/k.total*100:void 0,b.stackY=M,r.irregularWidths||k.setOffset(r.pointXOffset||0,r.barW||0,void 0,void 0,void 0,r.xAxis)),b.yBottom=L(w)?x(c.translate(w,0,1,0,1)):void 0,r.dataModify&&(M=r.dataModify.modifyValue(M,t)),b.plotY=void 0,D(M)&&void 0!==(C=c.translate(M,!1,!0,!1,!0))&&(b.plotY=x(C)),b.isInside=this.isPointInside(b),b.clientX=f?P(a.translate(S,0,0,0,1,u)):e,b.negative=b[y]<(s[y+\"Threshold\"]||g||0),b.category=j(h&&h[b.x],b.x),b.isNull||!1===b.visible||(void 0!==i&&(v=Math.min(v,Math.abs(e-i))),i=e),b.zone=this.zones.length?b.getZone():void 0,!b.graphic&&r.group&&l&&(b.isNew=!0)}r.closestPointRangePx=v,O(this,\"afterTranslate\")},B.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!o.isInsidePlot(t.plotX,t.plotY,{inverted:o.inverted}))&&!1!==t.visible&&(i||!t.isNull)})},B.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis,o=w(t.clipBox);return e&&e.len!==t.plotSizeX&&(o.width=e.len),i&&i.len!==t.plotSizeY&&(o.height=i.len),o},B.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+\",\"+(this.options.yAxis||0),this.sharedClipKey},B.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips,t=t.renderer,r=this.getClipBox(),s=this.getSharedClipKey(),n=o[s];n?n.animate(r):o[s]=n=t.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:n),i&&i.clip()},B.prototype.animate=function(t){var i,e=this.chart,o=this.group,r=this.markerGroup,s=e.inverted,n=d(this.options.animation),a=[this.getSharedClipKey(),n.duration,n.easing,n.defer].join(\",\"),h=e.sharedClips[a],l=e.sharedClips[a+\"m\"];t&&o?(t=this.getClipBox(),h?h.attr(\"height\",t.height):(t.width=0,s&&(t.x=e.plotHeight),h=e.renderer.clipRect(t),e.sharedClips[a]=h,t={x:-99,y:-99,width:s?e.plotWidth+199:99,height:s?99:e.plotHeight+199},l=e.renderer.clipRect(t),e.sharedClips[a+\"m\"]=l),o.clip(h),r&&r.clip(l)):h&&!h.hasClass(\"highcharts-animating\")&&(t=this.getClipBox(),i=n.step,r&&r.element.childNodes.length&&(n.step=function(t,e){i&&i.apply(e,arguments),\"width\"===e.prop&&l&&l.element&&l.attr(s?\"height\":\"width\",t+99)}),h.addClass(\"highcharts-animating\").animate(t,n))},B.prototype.afterAnimate=function(){var o=this;this.setClip(),T(this.chart.sharedClips,function(t,e,i){t&&!o.chart.container.querySelector('[clip-path=\"url(#'.concat(t.id,')\"]'))&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,O(this,\"afterAnimate\")},B.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=i.chart,r=o.styledMode,s=i.colorAxis,n=i.options.marker,a=i[i.specialGroup||\"markerGroup\"],h=i.xAxis,l=j(n.enabled,!(h&&!h.isRadial)||null,i.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||i._hasPointMarkers)for(e=0;e<t.length;e++){var c,d,p,u,f,g=(d=(c=t[e]).graphic)?\"animate\":\"attr\",m=c.marker||{},y=!!c.marker;(l&&void 0===m.enabled||m.enabled)&&!c.isNull&&!1!==c.visible?(f=j(m.symbol,i.symbol,\"rect\"),p=i.markerAttribs(c,c.selected&&\"select\"),i.enabledDataSorting&&(c.startXPos=h.reversed?-(p.width||0):h.width),u=!1!==c.isInside,!d&&u&&(0<(p.width||0)||c.hasImage)&&(c.graphic=d=o.renderer.symbol(f,p.x,p.y,p.width,p.height,y?m:n).add(a),i.enabledDataSorting)&&o.hasRendered&&(d.attr({x:c.startXPos}),g=\"animate\"),d&&\"animate\"===g&&d[u?\"show\":\"hide\"](u).animate(p),d&&(f=i.pointAttribs(c,r||!c.selected?void 0:\"select\"),r?s&&d.css({fill:f.fill}):d[g](f)),d&&d.addClass(c.getClassName(),!0)):d&&(c.graphic=d.destroy())}},B.prototype.markerAttribs=function(t,e){var i=this.options,o=i.marker,r=t.marker||{},s=r.symbol||o.symbol,n={},a=j(r.radius,o&&o.radius),e=(e&&(o=o.states[e],r=r.states&&r.states[e],a=j(r&&r.radius,o&&o.radius,a&&a+(o&&o.radiusPlus||0))),t.hasImage=s&&0===s.indexOf(\"url\"),t.hasImage&&(a=0),t.pos());return D(a)&&e&&(n.x=e[0]-a,n.y=e[1]-a,i.crisp)&&(n.x=Math.floor(n.x)),a&&(n.width=n.height=2*a),n},B.prototype.pointAttribs=function(t,e){var i=this.options.marker,o=t&&t.options,r=o&&o.marker||{},o=o&&o.color,s=t&&t.color,t=t&&t.zone&&t.zone.color,n=this.color,a=j(r.lineWidth,i.lineWidth),h=1,n=o||t||s||n,o=r.fillColor||i.fillColor||n,t=r.lineColor||i.lineColor||n;return(e=e||\"normal\")&&(s=i.states[e]||{},n=r.states&&r.states[e]||{},a=j(n.lineWidth,s.lineWidth,a+j(n.lineWidthPlus,s.lineWidthPlus,0)),o=n.fillColor||s.fillColor||o,t=n.lineColor||s.lineColor||t,h=j(n.opacity,s.opacity,h)),{stroke:t,\"stroke-width\":a,fill:o,opacity:h}},B.prototype.destroy=function(i){var t,e,o,r=this,s=r.chart,n=/AppleWebKit\\/533/.test(m.navigator.userAgent),a=r.data||[];for(O(r,\"destroy\",{keepEventsForUpdate:i}),this.removeEvents(i),(r.axisTypes||[]).forEach(function(t){(o=r[t])&&o.series&&(S(o.series,r),o.isDirty=o.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),t=a.length;t--;)(e=a[t])&&e.destroy&&e.destroy();r.clips&&r.clips.forEach(function(t){return t.destroy()}),c.clearTimeout(r.animationTimeout),T(r,function(t,e){t instanceof h&&!t.survive&&t[n&&\"group\"===e?\"hide\":\"destroy\"]()}),s.hoverSeries===r&&(s.hoverSeries=void 0),S(s.series,r),s.orderSeries(),T(r,function(t,e){i&&\"hcEvents\"===e||delete r[e]})},B.prototype.applyZones=function(){var i,o,r,s,n,a,h,l,c=this,d=this.chart,p=d.renderer,t=this.zones,u=this.clips||[],f=this.graph,g=this.area,m=Math.max(d.plotWidth,d.plotHeight),y=this[(this.zoneAxis||\"y\")+\"Axis\"],v=d.inverted,x=!1;t.length&&(f||g)&&y&&void 0!==y.min?(s=y.reversed,n=y.horiz,f&&!this.showLine&&f.hide(),g&&g.hide(),r=y.getExtremes(),t.forEach(function(t,e){a=s?n?d.plotWidth:0:!n&&y.toPixels(r.min)||0,a=A(j(i,a),0,m),i=A(Math.round(y.toPixels(j(t.value,r.max),!0)||0),0,m),x&&(a=i=y.toPixels(r.max)),h=Math.abs(a-i),l=Math.min(a,i),a=Math.max(a,i),y.isXAxis?(o={x:v?a:l,y:0,width:h,height:m},n||(o.x=d.plotHeight-o.x)):(o={x:0,y:v?a:l,width:m,height:h},n&&(o.y=d.plotWidth-o.y)),v&&p.isVML&&(o=y.isXAxis?{x:0,y:s?l:a,height:o.width,width:d.chartWidth}:{x:o.y-d.plotLeft-d.spacingBox.x,y:0,width:o.height,height:d.chartHeight}),u[e]?u[e].animate(o):u[e]=p.clipRect(o),h=c[\"zone-area-\"+e],l=c[\"zone-graph-\"+e],f&&l&&l.clip(u[e]),g&&h&&h.clip(u[e]),x=t.value>r.max,c.resetZones&&0===i&&(i=void 0)}),this.clips=u):c.visible&&(f&&f.show(),g)&&g.show()},B.prototype.plotGroup=function(t,e,i,o,r){var s=this[t],n=!s,i={visibility:i,zIndex:o||.1};return void 0===this.opacity||this.chart.styledMode||\"inactive\"===this.state||(i.opacity=this.opacity),n&&(this[t]=s=this.chart.renderer.g().add(r)),s.addClass(\"highcharts-\"+e+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(L(this.colorIndex)?\"highcharts-color-\"+this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(s.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0),s.attr(i)[n?\"attr\":\"animate\"](this.getPlotBox(e)),s},B.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart,t=o.inverted&&!o.polar&&e&&!1!==this.invertible&&\"series\"===t;return o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-i.len)/2:0,rotationOriginY:t?(e.len+i.len)/2:0,scaleX:t?-1:1,scaleY:1}},B.prototype.removeEvents=function(t){t||N(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},B.prototype.render=function(){var t=this,e=t.chart,i=t.options,o=d(i.animation),r=t.visible?\"inherit\":\"hidden\",s=i.zIndex,n=t.hasRendered,a=e.seriesGroup,e=(e.inverted,!t.finishedAnimating&&e.renderer.isSVG?o.duration:0);O(this,\"render\"),t.plotGroup(\"group\",\"series\",r,s,a);t.markerGroup=t.plotGroup(\"markerGroup\",\"markers\",r,s,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.animate&&e&&t.animate(),n||(e&&o.defer&&(e+=o.defer),t.animationTimeout=I(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,O(t,\"afterRender\")},B.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},B.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},B.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var n=this,e=-1<n.options.findNearestPointBy.indexOf(\"y\")?2:1;delete n.kdTree,I(function(){n.kdTree=function t(e,i,o){var r,s=e&&e.length;if(s)return r=n.kdAxisArray[i%o],e.sort(function(t,e){return t[r]-e[r]}),{point:e[s=Math.floor(s/2)],left:t(e.slice(0,s),i+1,o),right:t(e.slice(s+1),i+1,o)}}(n.getValidPoints(null,!n.directTouch),e,e),n.buildingKdTree=!1},n.options.kdNow||t&&\"touchstart\"===t.type?0:1)},B.prototype.searchKDTree=function(t,e,i){var c=this,d=this.kdAxisArray[0],p=this.kdAxisArray[1],u=e?\"distX\":\"dist\",e=-1<c.options.findNearestPointBy.indexOf(\"y\")?2:1;function f(t,e,i,o){var r=e.point,s=c.kdAxisArray[i%o],n=r,a=(h=r,a=((l=L((a=t)[d])&&L(h[d])?Math.pow(a[d]-h[d],2):null)||0)+((L(a[p])&&L(h[p])?Math.pow(a[p]-h[p],2):null)||0),h.dist=L(a)?Math.sqrt(a):Number.MAX_VALUE,h.distX=L(l)?Math.sqrt(l):Number.MAX_VALUE,t[s]-r[s]),h=a<0?\"left\":\"right\",l=a<0?\"right\":\"left\";return e[h]&&(n=(s=f(t,e[h],i+1,o))[u]<n[u]?s:r),n=e[l]&&Math.sqrt(a*a)<n[u]?(h=f(t,e[l],i+1,o))[u]<n[u]?h:n:n}if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return f(t,this.kdTree,e,e)},B.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointPlacement,t=t.pointRange,i=this.xAxis;return\"between\"===e&&(e=i.reversed?-.5:.5),D(e)?e*(t||i.pointRange):0},B.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(o?o.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(i?i.len:e.plotWidth)},B.prototype.drawTracker=function(){function e(t){s.hoverSeries!==i&&i.onMouseOver()}var i=this,o=i.options,t=o.trackByArea,r=[].concat(t?i.areaPath:i.graphPath),s=i.chart,n=s.pointer,a=s.renderer,h=s.options.tooltip.snap,l=i.tracker,c=\"rgba(192,192,192,\"+(g?1e-4:.002)+\")\";l?l.attr({d:r}):i.graph&&(i.tracker=a.path(r).attr({visibility:i.visible?\"inherit\":\"hidden\",zIndex:2}).addClass(t?\"highcharts-tracker-area\":\"highcharts-tracker-line\").add(i.group),s.styledMode||i.tracker.attr({\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",stroke:c,fill:t?c:\"none\",\"stroke-width\":i.graph.strokeWidth()+(t?0:2*h)}),[i.tracker,i.markerGroup,i.dataLabelsGroup].forEach(function(t){t&&(t.addClass(\"highcharts-tracker\").on(\"mouseover\",e).on(\"mouseout\",function(t){n.onTrackerMouseOut(t)}),o.cursor&&!s.styledMode&&t.css({cursor:o.cursor}),f)&&t.on(\"touchstart\",e)})),O(this,\"afterDrawTracker\")},B.prototype.addPoint=function(t,e,i,o,r){var s,n=this,a=n.options,h=n.data,l=n.chart,c=n.xAxis,c=c&&c.hasNames&&c.names,d=a.data,p=n.xData,u=(e=j(e,!0),{series:n}),f=(n.pointClass.prototype.applyOptions.apply(u,[t]),u.x),g=p.length;if(n.requireSorting&&f<p[g-1])for(s=!0;g&&p[g-1]>f;)g--;n.updateParallelArrays(u,\"splice\",g,0,0),n.updateParallelArrays(u,g),c&&u.name&&(c[f]=u.name),d.splice(g,0,t),(s||n.processedData)&&(n.data.splice(g,0,null),n.processData()),\"point\"===a.legendType&&n.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),n.updateParallelArrays(u,\"shift\"),d.shift())),!1!==r&&O(n,\"addPoint\",{point:u}),n.isDirty=!0,n.isDirtyData=!0,e&&l.redraw(o)},B.prototype.removePoint=function(t,e,i){function o(){a&&a.length===s.length&&a.splice(t,1),s.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(n||{series:r},\"splice\",t,1),n&&n.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&h.redraw()}var r=this,s=r.data,n=s[t],a=r.points,h=r.chart;p(i,h),e=j(e,!0),n?n.firePointEvent(\"remove\",null,o):o()},B.prototype.remove=function(t,e,i,o){var r=this,s=r.chart;function n(){r.destroy(o),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),j(t,!0)&&s.redraw(e)}!1!==i?O(r,\"remove\",null,n):n()},B.prototype.update=function(t,e){t=b(t,this.userOptions),O(this,\"update\",{options:t});var i,o,r=this,s=r.chart,n=r.userOptions,a=r.initialType||r.type,h=s.options.plotOptions,l=v[a].prototype,c=r.finishedAnimating&&{animation:!1},d={},p=[\"eventOptions\",\"navigatorSeries\",\"baseSeries\"],u=t.type||n.type||s.options.chart.type,f=!(this.hasDerivedData||u&&u!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||r.hasOptionChanged(\"dataGrouping\")||r.hasOptionChanged(\"pointStart\")||r.hasOptionChanged(\"pointInterval\")||r.hasOptionChanged(\"pointIntervalUnit\")||r.hasOptionChanged(\"keys\")),u=u||a,c=(f&&(p.push(\"data\",\"isDirtyData\",\"points\",\"processedData\",\"processedXData\",\"processedYData\",\"xIncrement\",\"cropped\",\"_hasPointMarkers\",\"_hasPointLabels\",\"clips\",\"nodes\",\"layout\",\"level\",\"mapMap\",\"mapData\",\"minY\",\"maxY\",\"minX\",\"maxX\"),!1!==t.visible&&p.push(\"area\",\"graph\"),r.parallelArrays.forEach(function(t){p.push(t+\"Data\")}),t.data)&&(t.dataSorting&&k(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1)),t=w(n,c,{index:(void 0===n.index?r:n).index,pointStart:j(h&&h.series&&h.series.pointStart,n.pointStart,r.xData[0])},!f&&{data:r.options.data},t),f&&t.data&&(t.data=r.options.data),(p=[\"group\",\"markerGroup\",\"dataLabelsGroup\",\"transformGroup\",\"shadowGroup\"].concat(p)).forEach(function(t){p[t]=r[t],delete r[t]}),!1);if(v[u]){if(c=u!==r.type,r.remove(!1,!1,!1,!0),c)if(Object.setPrototypeOf)Object.setPrototypeOf(r,v[u].prototype);else{var h=Object.hasOwnProperty.call(r,\"hcEvents\")&&r.hcEvents;for(i in l)r[i]=void 0;k(r,v[u].prototype),h?r.hcEvents=h:delete r.hcEvents}}else C(17,!0,s,{missingModuleFor:u});if(p.forEach(function(t){r[t]=p[t]}),r.init(s,t),f&&this.points){!1===(o=r.options).visible?(d.graphic=1,d.dataLabel=1):r._hasPointLabels||(l=o.marker,h=o.dataLabels,u=n.marker||{},!l||!1!==l.enabled&&u.symbol===l.symbol&&u.height===l.height&&u.width===l.width||(d.graphic=1),h&&!1===h.enabled&&(d.dataLabel=1));for(var g=0,m=this.points;g<m.length;g++){var y=m[g];y&&y.series&&(y.resolveColor(),Object.keys(d).length&&y.destroyElements(d),!1===o.showInLegend)&&y.legendItem&&s.legend.destroyItem(y)}}r.initialType=a,s.linkSeries(),c&&r.linkedSeries.length&&(r.isDirtyData=!0),O(this,\"afterUpdate\"),j(e,!0)&&s.redraw(f&&void 0)},B.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},B.prototype.hasOptionChanged=function(t){var e=this.chart,i=this.options[t],e=e.options.plotOptions,o=this.userOptions[t];return o?i!==o:i!==j(e&&e[this.type]&&e[this.type][t],e&&e.series&&e.series[t],i)},B.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&O(this,\"mouseOver\"),this.setState(\"hover\"),t.hoverSeries=this},B.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&O(this,\"mouseOut\"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach(function(t){t.setState(\"\",!0)})},B.prototype.setState=function(e,t){var i,o=this,r=o.options,s=o.graph,n=r.inactiveOtherPoints,a=r.states,h=j(a[e||\"normal\"]&&a[e||\"normal\"].animation,o.chart.options.chart.animation),l=r.lineWidth,c=0,d=r.opacity;if(e=e||\"\",o.state!==e&&([o.group,o.markerGroup,o.dataLabelsGroup].forEach(function(t){t&&(o.state&&t.removeClass(\"highcharts-series-\"+o.state),e)&&t.addClass(\"highcharts-series-\"+e)}),o.state=e,!o.chart.styledMode)){if(a[e]&&!1===a[e].enabled)return;if(e&&(l=a[e].lineWidth||l+(a[e].lineWidthPlus||0),d=j(a[e].opacity,d)),s&&!s.dashstyle&&D(l))for(s.animate(i={\"stroke-width\":l},h);o[\"zone-graph-\"+c];)o[\"zone-graph-\"+c].animate(i,h),c+=1;n||[o.group,o.markerGroup,o.dataLabelsGroup,o.labelBySeries].forEach(function(t){t&&t.animate({opacity:d},h)})}t&&n&&o.points&&o.setAllPointsToState(e||void 0)},B.prototype.setAllPointsToState=function(e){this.points.forEach(function(t){t.setState&&t.setState(e)})},B.prototype.setVisible=function(e,t){var i=this,o=i.chart,r=o.options.chart.ignoreHiddenSeries,s=i.visible,n=(i.visible=e=i.options.visible=i.userOptions.visible=void 0===e?!s:e,e?\"show\":\"hide\");[\"group\",\"dataLabelsGroup\",\"markerGroup\",\"tracker\",\"tt\"].forEach(function(t){i[t]&&i[t][n]()}),o.hoverSeries!==i&&(o.hoverPoint&&o.hoverPoint.series)!==i||i.onMouseOut(),i.legendItem&&o.legend.colorizeItem(i,e),i.isDirty=!0,i.options.stacking&&o.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(t){t.setVisible(e,!1)}),r&&(o.isDirtyBox=!0),O(i,n),!1!==t&&o.redraw()},B.prototype.show=function(){this.setVisible(!0)},B.prototype.hide=function(){this.setVisible(!1)},B.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),O(this,t?\"select\":\"unselect\")},B.prototype.shouldShowTooltip=function(t,e,i){return(i=void 0===i?{}:i).series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},B.defaultOptions=s,B.types=n.seriesTypes,B.registerType=n.registerSeriesType,B);function B(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}return k(t.prototype,{axisTypes:[\"xAxis\",\"yAxis\"],coll:\"series\",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:r.drawLineMarker,isCartesian:!0,kdAxisArray:[\"clientX\",\"plotY\"],parallelArrays:[\"x\",\"y\"],pointClass:l,requireSorting:!0,sorted:!0}),n.series=t}),e(t,\"Extensions/ScrollablePlotArea.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Axis/Axis.js\"],t[\"Core/Chart/Chart.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Renderer/RendererRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,s,e,i,n,o){var a=t.stop,h=o.addEvent,l=o.createElement,c=o.defined,d=o.merge,p=o.pick;h(e,\"afterSetChartSize\",function(t){var r,e=this.options.chart.scrollablePlotArea,i=e&&e.minWidth,e=e&&e.minHeight;this.renderer.forExport||(i?(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth),i&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i,r={1:{name:\"right\",value:i}})):e&&(this.scrollablePixelsY=i=Math.max(0,e-this.chartHeight),c(i))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,r={2:{name:\"bottom\",value:i}}),r&&!t.skipAxes&&this.axes.forEach(function(o){r[o.side]?o.getPlotLinePath=function(){var t=r[o.side].name,e=r[o.side].value,i=this[t];return this[t]=i-e,e=s.prototype.getPlotLinePath.apply(this,arguments),this[t]=i,e}:(o.setAxisSize(),o.setAxisTranslation())}))}),h(e,\"render\",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),e.prototype.setUpScrolling=function(){var t,e=this,i={WebkitOverflowScrolling:\"touch\",overflowX:\"hidden\",overflowY:\"hidden\"};this.scrollablePixelsX&&(i.overflowX=\"auto\"),this.scrollablePixelsY&&(i.overflowY=\"auto\"),this.scrollingParent=l(\"div\",{className:\"highcharts-scrolling-parent\"},{position:\"relative\"},this.renderTo),this.scrollingContainer=l(\"div\",{className:\"highcharts-scrolling\"},i,this.scrollingParent),h(this.scrollingContainer,\"scroll\",function(){e.pointer&&(delete e.pointer.chartPosition,e.hoverPoint&&(t=e.hoverPoint),e.pointer.runPointActions(void 0,t,!0))}),this.innerContainer=l(\"div\",{className:\"highcharts-inner-container\"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},e.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,o=[\".highcharts-breadcrumbs-group\",\".highcharts-contextbutton\",\".highcharts-credits\",\".highcharts-legend\",\".highcharts-legend-checkbox\",\".highcharts-navigator-series\",\".highcharts-navigator-xaxis\",\".highcharts-navigator-yaxis\",\".highcharts-navigator\",\".highcharts-reset-zoom\",\".highcharts-drillup-button\",\".highcharts-scrollbar\",\".highcharts-subtitle\",\".highcharts-title\"];this.scrollablePixelsX&&!this.inverted?t=\".highcharts-yaxis\":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=\".highcharts-xaxis\":this.scrollablePixelsY&&this.inverted&&(t=\".highcharts-yaxis\"),t&&o.push(t+\":not(.highcharts-radial-axis)\",t+\"-labels:not(.highcharts-radial-axis-labels)\"),o.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents=\"auto\"})})},e.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,i=e.scrollablePlotArea,o=n.getRendererType(),o=(t?(this.fixedDiv=l(\"div\",{className:\"highcharts-fixed\"},{position:\"absolute\",overflow:\"hidden\",pointerEvents:\"none\",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow=\"visible\",this.fixedRenderer=e=new o(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||\"#fff\",\"fill-opacity\":p(i.opacity,.85),zIndex:-1}).addClass(\"highcharts-scrollable-mask\").add(),h(this,\"afterShowResetZoom\",this.moveFixedElements),h(this,\"afterApplyDrilldown\",this.moveFixedElements),h(this,\"afterLayOutTitles\",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),o=this.chartWidth+(this.scrollablePixelsX||0),e=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=o+\"px\",this.container.style.height=e+\"px\",this.renderer.boxWrapper.attr({width:o,height:e,viewBox:[0,0,o,e].join(\" \")}),this.chartBackground.attr({width:o,height:e}),this.scrollingContainer.style.height=this.chartHeight+\"px\",t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY)&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY),this.axisOffset),e=this.plotTop-o[0]-1,t=this.plotLeft-o[3]-1,i=this.plotTop+this.plotHeight+o[2]+1,o=this.plotLeft+this.plotWidth+o[1]+1,r=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),s=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0),e=this.scrollablePixelsX?[[\"M\",0,e],[\"L\",this.plotLeft-1,e],[\"L\",this.plotLeft-1,i],[\"L\",0,i],[\"Z\"],[\"M\",r,e],[\"L\",this.chartWidth,e],[\"L\",this.chartWidth,i],[\"L\",r,i],[\"Z\"]]:this.scrollablePixelsY?[[\"M\",t,0],[\"L\",t,this.plotTop-1],[\"L\",o,this.plotTop-1],[\"L\",o,0],[\"Z\"],[\"M\",t,s],[\"L\",t,this.chartHeight],[\"L\",o,this.chartHeight],[\"L\",o,s],[\"Z\"]]:[[\"M\",0,0]];\"adjustHeight\"!==this.redrawTrigger&&this.scrollableMask.attr({d:e})},h(s,\"afterInit\",function(){this.chart.scrollableDirty=!0}),h(i,\"show\",function(){this.chart.scrollableDirty=!0})}),e(t,\"Core/Axis/Stacking/StackItem.js\",[t[\"Core/FormatUtilities.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var r=t.format,p=e.series,o=i.destroyObjectProperties,u=i.pick,f=i.isNumber;function s(t,e,i,o,r){var s=t.chart.inverted,n=t.reversed,t=(this.axis=t,this.isNegative=!!i!=!!n);this.options=e=e||{},this.x=o,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(s?t?\"left\":\"right\":\"center\"),verticalAlign:e.verticalAlign||(s?\"middle\":t?\"bottom\":\"top\"),y:e.y,x:e.x},this.textAlign=e.textAlign||(s?t?\"right\":\"left\":\"center\")}return s.prototype.destroy=function(){o(this,this.axis)},s.prototype.render=function(t){var e=this.axis.chart,i=this.options,o=i.format,o=o?r(o,this,e):i.formatter.call(this);this.label?this.label.attr({text:o,visibility:\"hidden\"}):(this.label=e.renderer.label(o,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,\"stack-labels\"),o={r:i.borderRadius||0,text:o,padding:u(i.padding,5),visibility:\"hidden\"},e.styledMode||(o.fill=i.backgroundColor,o.stroke=i.borderColor,o[\"stroke-width\"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(o),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},s.prototype.setOffset=function(t,e,i,o,r,s){var n=this.alignOptions,a=this.axis,h=this.label,l=this.options,c=this.textAlign,d=a.chart,t=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:s}),e=n.verticalAlign;h&&t&&(i=h.getBBox(),o=h.padding,r=\"justify\"===u(l.overflow,\"justify\"),s=void 0,n.x=l.x||0,n.y=l.y||0,c=(e=this.adjustStackPosition({labelBox:i,verticalAlign:e,textAlign:c})).x,e=e.y,t.x-=c,t.y-=e,h.align(n,!1,t),(r=(s=d.isInsidePlot(h.alignAttr.x+n.x+c,h.alignAttr.y+n.y+e))?r:!1)&&p.prototype.justifyDataLabel.call(a,h,n,h.alignAttr,i,t),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:l.rotation,rotationOriginX:i.width/2,rotationOriginY:i.height/2}),h[(s=u(!r&&l.crop,!0)?f(h.x)&&f(h.y)&&d.isInsidePlot(h.x-o+h.width,h.y)&&d.isInsidePlot(h.x+o,h.y):s)?\"show\":\"hide\"]())},s.prototype.adjustStackPosition=function(t){var e=t.labelBox,i=t.verticalAlign,t=t.textAlign,o={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e.width/2+e.width/2*o[t],y:e.height/2*o[i]}},s.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,r=t.defaultX,s=t.xOffset,n=t.width,a=t.boxBottom,o=e.stacking.usePercentage?100:u(o,this.total,0),o=e.toPixels(o),t=t.xAxis||i.xAxis[0],r=u(r,t.toPixels(this.x))+s,t=e.toPixels(a||0),s=Math.abs(o-t),e=i.inverted,a=this.isNegative;return e?{x:(a?o:o-s)-i.plotLeft,y:r-i.plotTop,width:s,height:n}:{x:r-i.plotLeft,y:(a?o-s:o)-i.plotTop,width:n,height:s}},s}),e(t,\"Core/Axis/Stacking/StackingAxis.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Axis/Axis.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Axis/Stacking/StackItem.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,w,o){var s=t.getDeferredAnimation,r=i.series.prototype,n=o.addEvent,T=o.correctFloat,A=o.defined,a=o.destroyObjectProperties,h=o.fireEvent,P=o.isArray,l=o.isNumber,c=o.objectEach,L=o.pick;function d(){var i=this,o=i.inverted;i.yAxis.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),i.series.forEach(function(t){var e=t.xAxis&&t.xAxis.options||{};!t.options.stacking||!0!==t.visible&&!1!==i.options.chart.ignoreHiddenSeries||(t.stackKey=[t.type,L(t.options.stack,\"\"),o?e.top:e.left,o?e.height:e.width].join(\",\"))})}function p(){var i,t=this.stacking;t&&(i=t.stacks,c(i,function(t,e){a(t),i[e]=null}),t)&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}function u(){\"yAxis\"!==this.coll||this.stacking||(this.stacking=new S(this))}function f(t,e,i,o){return!A(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(\",\"),t}function g(){var r,s=this,t=s.yAxis,e=s.stackKey,n=t.stacking.stacks,a=s.processedXData,t=s.options.stacking,h=s[t+\"Stacker\"];h&&[e,\"-\"+e].forEach(function(t){for(var e,i,o=a.length;o--;)e=a[o],r=s.getStackIndicator(r,e,s.index,t),(i=(e=n[t]&&n[t][e])&&e.points[r.key])&&h.call(s,i,e,o)})}function m(t,e,i){e=e.total?100/e.total:0;t[0]=T(t[0]*e),t[1]=T(t[1]*e),this.stackedYData[i]=t[1]}function y(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is(\"column\")||this.is(\"columnrange\"))&&!this.options.stacking&&1<this.chart.series.length?r.setStackedPoints.call(this,\"group\"):i&&c(i.stacks,function(t,e){\"group\"===e.slice(-5)&&(c(t,function(t){return t.destroy()}),delete i.stacks[e])})}function v(t){var e=this.chart,i=t||this.options.stacking;if(i&&(!0===this.visible||!1===e.options.chart.ignoreHiddenSeries)){var o,r,s,n,a,h,l,c=this,d=c.processedXData,p=c.processedYData,u=[],f=p.length,g=c.options,m=g.threshold,y=L(g.startFromThreshold&&m,0),v=g.stack,x=t?\"\"+c.type+\",\".concat(i):c.stackKey,b=\"-\"+x,S=c.negStacks,k=\"group\"===i?e.yAxis[0]:c.yAxis,C=k.stacking.stacks,M=k.stacking.oldStacks;for(k.stacking.stacksTouched+=1,a=0;a<f;a++)h=d[a],l=p[a],n=(o=c.getStackIndicator(o,h,c.index)).key,C[s=(r=S&&l<(y?0:m))?b:x]||(C[s]={}),C[s][h]||(M[s]&&M[s][h]?(C[s][h]=M[s][h],C[s][h].total=null):C[s][h]=new w(k,k.options.stackLabels,!!r,h,v)),s=C[s][h],null!==l?(s.points[n]=s.points[c.index]=[L(s.cumulative,y)],A(s.cumulative)||(s.base=n),s.touched=k.stacking.stacksTouched,0<o.index&&!1===c.singleStacks&&(s.points[n][0]=s.points[c.index+\",\"+h+\",0\"][0])):s.points[n]=s.points[c.index]=null,\"percent\"===i?(r=r?x:b,S&&C[r]&&C[r][h]?(r=C[r][h],s.total=r.total=Math.max(r.total,s.total)+Math.abs(l)||0):s.total=T(s.total+(Math.abs(l)||0))):\"group\"===i?null!==(l=P(l)?l[0]:l)&&(s.total=(s.total||0)+1):s.total=T(s.total+(l||0)),s.cumulative=\"group\"===i?(s.total||1)-1:L(s.cumulative,y)+(l||0),null!==l&&(s.points[n].push(s.cumulative),u[a]=s.cumulative,s.hasValidPoints=!0);\"percent\"===i&&(k.stacking.usePercentage=!0),\"group\"!==i&&(this.stackedYData=u),k.stacking.oldStacks={}}}k.prototype.buildStacks=function(){var t,e,i=this.axis,o=i.series,r=i.options.reversedStacks,s=o.length;for(this.usePercentage=!1,e=s;e--;)(t=o[r?e:s-e-1]).setStackedPoints(),t.setGroupedPoints();for(e=0;e<s;e++)o[e].modifyStacks();h(i,\"afterBuildStacks\")},k.prototype.cleanStacks=function(){var t;this.oldStacks&&(t=this.stacks=this.oldStacks),c(t,function(t){c(t,function(t){t.cumulative=t.total})})},k.prototype.resetStacks=function(){var o=this;c(this.stacks,function(i){c(i,function(t,e){l(t.touched)&&t.touched<o.stacksTouched?(t.destroy(),delete i[e]):(t.total=null,t.cumulative=null)})})},k.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,i=e.renderer,o=this.stacks,t=t.options.stackLabels&&t.options.stackLabels.animation,t=s(e,t||!1),r=this.stackTotalGroup=this.stackTotalGroup||i.g(\"stack-labels\").attr({zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),c(o,function(t){c(t,function(t){t.render(r)})}),r.animate({opacity:1},t)};var x,b,S=k;function k(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return x=x||{},b=[],x.compose=function(t,e,i){-1===b.indexOf(t)&&(b.push(t),n(t,\"init\",u),n(t,\"destroy\",p)),-1===b.indexOf(e)&&(b.push(e),e.prototype.getStacks=d),-1===b.indexOf(i)&&(b.push(i),(t=i.prototype).getStackIndicator=f,t.modifyStacks=g,t.percentStacker=m,t.setGroupedPoints=y,t.setStackedPoints=v)},x}),e(t,\"Series/Line/LineSeries.js\",[t[\"Core/Series/Series.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=i.defined,i=i.merge,s=(s(n,r=t),n.prototype.drawGraph=function(){var s=this,n=this.options,a=(this.gappedPath||this.getGraphPath).call(this),h=this.chart.styledMode,t=[[\"graph\",\"highcharts-graph\"]];h||t[0].push(n.lineColor||this.color||\"#cccccc\",n.dashStyle),(t=s.getZonesGraphs(t)).forEach(function(t,e){var i=t[0],o=s[i],r=o?\"animate\":\"attr\";o?(o.endX=s.preventGraphAnimation?null:a.xMap,o.animate({d:a})):a.length&&(s[i]=o=s.chart.renderer.path(a).addClass(t[1]).attr({zIndex:1}).add(s.group)),o&&!h&&(i={stroke:t[2],\"stroke-width\":n.lineWidth||0,fill:s.fillGraph&&s.color||\"none\"},t[3]?i.dashstyle=t[3]:\"square\"!==n.linecap&&(i[\"stroke-linecap\"]=i[\"stroke-linejoin\"]=\"round\"),o[r](i).shadow(e<2&&n.shadow)),o&&(o.startX=a.xMap,o.isArea=a.isArea)})},n.prototype.getGraphPath=function(n,a,h){var l,c=this,d=c.options,p=[],u=[],f=d.step,t=(n=n||c.points).reversed;return t&&n.reverse(),(f={right:1,center:2}[f]||f&&3)&&t&&(f=4-f),(n=this.getValidPoints(n,!1,!(d.connectNulls&&!a&&!h))).forEach(function(t,e){var i,o=t.plotX,r=t.plotY,s=n[e-1];(t.leftCliff||s&&s.rightCliff)&&!h&&(l=!0),l=t.isNull&&!g(a)&&0<e?!d.connectNulls:!(!t.isNull||a)||(0===e||l?i=[[\"M\",t.plotX,t.plotY]]:c.getPointSpline?i=[c.getPointSpline(n,t,e)]:f?(i=1===f?[[\"L\",s.plotX,r]]:2===f?[[\"L\",(s.plotX+o)/2,s.plotY],[\"L\",(s.plotX+o)/2,r]]:[[\"L\",o,s.plotY]]).push([\"L\",o,r]):i=[[\"L\",o,r]],u.push(t.x),f&&(u.push(t.x),2===f)&&u.push(t.x),p.push.apply(p,i),!1)}),p.xMap=u,c.graphPath=p},n.prototype.getZonesGraphs=function(i){return this.zones.forEach(function(t,e){e=[\"zone-graph-\"+e,\"highcharts-graph highcharts-zone-graph-\"+e+\" \"+(t.className||\"\")];this.chart.styledMode||e.push(t.color||this.color,t.dashStyle||this.options.dashStyle),i.push(e)},this),i},n.defaultOptions=i(t.defaultOptions,{}),n);function n(){var t=null!==r&&r.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return e.registerSeriesType(\"line\",s),s}),e(t,\"Series/Area/AreaSeries.js\",[t[\"Core/Color/Color.js\"],t[\"Core/Legend/LegendSymbol.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o){var r,h,s=this&&this.__extends||(r=function(t,e){return(r=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}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=t.parse,b=i.seriesTypes.line,t=o.extend,n=o.merge,a=o.objectEach,S=o.pick,o=(s(c,h=b),c.prototype.drawGraph=function(){this.areaPath=[],h.prototype.drawGraph.apply(this);var s=this,n=this.areaPath,a=this.options,t=this.zones,i=[[\"area\",\"highcharts-area\",this.color,a.fillColor]];t.forEach(function(t,e){i.push([\"zone-area-\"+e,\"highcharts-area highcharts-zone-area-\"+e+\" \"+t.className,t.color||s.color,t.fillColor||a.fillColor])}),i.forEach(function(t){var e=t[0],i={},o=s[e],r=o?\"animate\":\"attr\";o?(o.endX=s.preventGraphAnimation?null:n.xMap,o.animate({d:n})):(i.zIndex=0,(o=s[e]=s.chart.renderer.path(n).addClass(t[1]).add(s.group)).isArea=!0),s.chart.styledMode||(i.fill=S(t[3],l(t[2]).setOpacity(S(a.fillOpacity,.75)).get())),o[r](i),o.startX=n.xMap,o.shiftUnit=a.step?2:1})},c.prototype.getGraphPath=function(a){function t(t,e,i){var o,r,t=a[t],s=l&&f[t.x].points[u],n=t[i+\"Null\"]||0,t=t[i+\"Cliff\"]||0,i=!0;t||n?(o=(n?s[0]:s[1])+t,r=s[0]+t,i=!!n):!l&&a[e]&&a[e].isNull&&(o=r=g),void 0!==o&&(p.push({plotX:h,plotY:null===o?m:c.getThreshold(o),isNull:i,isCliff:!0}),d.push({plotX:h,plotY:null===r?m:c.getThreshold(r),doCurve:!1}))}var h,e,i,o=b.prototype.getGraphPath,r=this.options,l=r.stacking,c=this.yAxis,d=[],p=[],u=this.index,f=c.stacking.stacks[this.stackKey],g=r.threshold,m=Math.round(c.getThreshold(r.threshold)),s=S(r.connectNulls,\"percent\"===l);a=a||this.points;for(var n=0,y=(a=l?this.getStackPoints(a):a).length;n<y;++n)l||(a[n].leftCliff=a[n].rightCliff=a[n].leftNull=a[n].rightNull=void 0),e=a[n].isNull,h=S(a[n].rectPlotX,a[n].plotX),i=l?S(a[n].yBottom,m):m,e&&!s||(s||t(n,n-1,\"left\"),e&&!l&&s||(p.push(a[n]),d.push({x:n,plotX:h,plotY:i})),s)||t(n,n+1,\"right\");var r=o.call(this,p,!0,!0),v=(d.reversed=!0,o.call(this,d,!0,!0)),x=v[0],x=(x&&\"M\"===x[0]&&(v[0]=[\"L\",x[1],x[2]]),r.concat(v)),v=(x.length&&x.push([\"Z\"]),o.call(this,p,!1,s));return x.xMap=r.xMap,this.areaPath=x,v},c.prototype.getStackPoints=function(t){var d=this,o=[],p=[],r=this.xAxis,s=this.yAxis,u=s.stacking.stacks[this.stackKey],f={},g=s.series,m=g.length,y=s.options.reversedStacks?1:-1,v=g.indexOf(d);if(t=t||this.points,this.options.stacking){for(var e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,f[t[e].x]=t[e];a(u,function(t,e){null!==t.total&&p.push(e)}),p.sort(function(t,e){return t-e});var x=g.map(function(t){return t.visible});p.forEach(function(a,h){var l,t=0;if(f[a]&&!f[a].isNull)o.push(f[a]),[-1,1].forEach(function(t){var e=1===t?\"rightNull\":\"leftNull\",i=1===t?\"rightCliff\":\"leftCliff\",o=u[p[h+t]],r=0;if(o)for(var s=v;0<=s&&s<m;){var n=g[s].index;(c=o.points[n])||(n===d.index?f[a][e]=!0:x[s]&&(l=u[a].points[n])&&(r-=l[1]-l[0])),s+=y}f[a][i]=r});else{for(var e=v;0<=e&&e<m;){var c,i=g[e].index;if(c=u[a].points[i]){t=c[1];break}e+=y}t=S(t,0),t=s.translate(t,0,1,0,1),o.push({isNull:!0,plotX:r.translate(a,0,0,0,1),x:a,plotY:t,yBottom:t})}})}return o},c.defaultOptions=n(b.defaultOptions,{threshold:0}),c);function c(){var t=null!==h&&h.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return t(o.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType(\"area\",o),o}),e(t,\"Series/Spline/SplineSeries.js\",[t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e){var o,i,r=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=t.seriesTypes.line,n=e.merge,u=e.pick,e=(r(a,i=s),a.prototype.getPointSpline=function(t,e,i){var o,r,s,n,a,h,l=e.plotX||0,c=e.plotY||0,d=t[i-1],t=t[i+1];function p(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}p(d)&&p(t)&&(i=d.plotX||0,o=d.plotY||0,a=t.plotX||0,r=0,n=(1.5*c+o)/2.5,h=(1.5*c+(t=t.plotY||0))/2.5,h+=r=(a=(1.5*l+a)/2.5)!==(s=(1.5*l+i)/2.5)?(h-n)*(a-l)/(a-s)+c-h:r,o<(n+=r)&&c<n?h=2*c-(n=Math.max(o,c)):n<o&&n<c&&(h=2*c-(n=Math.min(o,c))),t<h&&c<h?n=2*c-(h=Math.max(t,c)):h<t&&h<c&&(n=2*c-(h=Math.min(t,c))),e.rightContX=a,e.rightContY=h);i=[\"C\",u(d.rightContX,d.plotX,0),u(d.rightContY,d.plotY,0),u(s,l,0),u(n,c,0),l,c];return d.rightContX=d.rightContY=void 0,i},a.defaultOptions=n(s.defaultOptions),a);function a(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return t.registerSeriesType(\"spline\",e),e}),e(t,\"Series/AreaSpline/AreaSplineSeries.js\",[t[\"Series/Spline/SplineSeries.js\"],t[\"Core/Legend/LegendSymbol.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o){var r,s,n=this&&this.__extends||(r=function(t,e){return(r=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}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=i.seriesTypes,h=a.area,a=a.area.prototype,l=o.extend,o=o.merge,n=(n(c,s=t),c.defaultOptions=o(t.defaultOptions,h.defaultOptions),c);function c(){var t=null!==s&&s.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return l(n.prototype,{getGraphPath:a.getGraphPath,getStackPoints:a.getStackPoints,drawGraph:a.drawGraph,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType(\"areaspline\",n),n}),e(t,\"Series/Column/ColumnSeriesDefaults.js\",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:\"#cccccc\",borderColor:\"#000000\"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:\"#ffffff\"}}),e(t,\"Series/Column/ColumnSeries.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Color/Color.js\"],t[\"Series/Column/ColumnSeriesDefaults.js\"],t[\"Core/Globals.js\"],t[\"Core/Legend/LegendSymbol.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o,r,s,n,a){var h,l,c=this&&this.__extends||(h=function(t,e){return(h=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}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=t.animObject,p=e.parse,u=o.hasTouch,t=o.noop,C=a.clamp,M=(a.css,a.defined),f=a.extend,g=a.fireEvent,m=a.isArray,w=a.isNumber,y=a.merge,T=a.pick,v=a.objectEach,e=(c(x,l=s),x.prototype.animate=function(t){var i,o=this,r=this.yAxis,e=o.options,s=this.chart.inverted,n={},a=s?\"translateX\":\"translateY\";t?(n.scaleY=.001,t=C(r.toPixels(e.threshold),r.pos,r.pos+r.len),s?n.translateX=t-r.len:n.translateY=t,o.clipBox&&o.setClip(),o.group.attr(n)):(i=Number(o.group.attr(a)),o.group.animate({scaleY:1},f(d(o.options.animation),{step:function(t,e){o.group&&(n[a]=i+e.pos*(r.pos-i),o.group.attr(n))}})))},x.prototype.init=function(t,e){l.prototype.init.apply(this,arguments);var i=this;(t=i.chart).hasRendered&&t.series.forEach(function(t){t.type===i.type&&(t.isDirty=!0)})},x.prototype.getColumnMetrics=function(){var r,s=this,t=s.options,e=s.xAxis,n=s.yAxis,i=e.options.reversedStacks,i=e.reversed&&!i||!e.reversed&&i,a={},h=0,o=(!1===t.grouping?h=1:s.chart.series.forEach(function(t){var e,i=t.yAxis,o=t.options;t.type!==s.type||!t.visible&&s.chart.options.chart.ignoreHiddenSeries||n.len!==i.len||n.pos!==i.pos||(o.stacking&&\"group\"!==o.stacking?(r=t.stackKey,void 0===a[r]&&(a[r]=h++),e=a[r]):!1!==o.grouping&&(e=h++),t.columnIndex=e)}),Math.min(Math.abs(e.transA)*(e.ordinal&&e.ordinal.slope||t.pointRange||e.closestPointRange||e.tickInterval||1),e.len)),l=o*t.groupPadding,c=(o-2*l)/(h||1),e=Math.min(t.maxPointWidth||e.len,T(t.pointWidth,c*(1-2*t.pointPadding))),t=(s.columnIndex||0)+(i?1:0);return s.columnMetrics={width:e,offset:(c-e)/2+(l+t*c-o/2)*(i?-1:1),paddedWidth:c,columnCount:h},s.columnMetrics},x.prototype.crispCol=function(t,e,i,o){var r=this.chart,s=this.borderWidth,n=-(s%2?.5:0),s=s%2?.5:1,r=(r.inverted&&r.renderer.isVML&&(s+=1),this.options.crisp&&(i=Math.round(t+i)+n-(t=Math.round(t)+n)),Math.round(e+o)+s),n=Math.abs(e)<=.5&&.5<r;return o=r-(e=Math.round(e)+s),n&&o&&(--e,o+=1),{x:t,y:e,width:i,height:o}},x.prototype.adjustForMissingColumns=function(t,e,i,o){var r,s,n,a,h=this,l=this.options.stacking;return!i.isNull&&1<o.columnCount&&(r=this.yAxis.options.reversedStacks,s=0,n=r?0:-o.columnCount,v(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){var e;\"number\"==typeof i.x&&(e=t[i.x.toString()])&&(t=e.points[h.index],l?(t&&(s=n),e.hasValidPoints&&(r?n++:n--)):m(t)&&(t=Object.keys(e.points).filter(function(t){return!t.match(\",\")&&e.points[t]&&1<e.points[t].length}).map(parseFloat).sort(function(t,e){return e-t}),s=t.indexOf(h.index),n=t.length))}),a=(n-1)*o.paddedWidth+e,t=(i.plotX||0)+a/2-e-s*o.paddedWidth),t},x.prototype.translate=function(){var l=this,c=l.chart,d=l.options,t=l.dense=l.closestPointRange*l.xAxis.transA<2,t=l.borderWidth=T(d.borderWidth,t?0:1),p=l.xAxis,u=l.yAxis,f=d.threshold,g=l.translatedThreshold=u.getThreshold(f),m=T(d.minPointLength,5),y=l.getColumnMetrics(),v=y.width,x=l.pointXOffset=y.offset,b=l.dataMin,S=l.dataMax,k=l.barW=Math.max(v,1+2*t);c.inverted&&(g-=.5),d.pointPadding&&(k=Math.ceil(k)),s.prototype.translate.apply(l),l.points.forEach(function(t){var e,i=T(t.yBottom,g),o=999+Math.abs(i),r=t.plotX||0,o=C(t.plotY,-o,u.len+o),s=Math.min(o,i),n=Math.max(o,i)-s,a=v,r=r+x,h=k;m&&Math.abs(n)<m&&(n=m,e=!u.reversed&&!t.negative||u.reversed&&t.negative,w(f)&&w(S)&&t.y===f&&S<=f&&(u.min||0)<f&&(b!==S||(u.max||0)<=f)&&(e=!e),s=Math.abs(s-g)>m?i-m:g-(e?m:0)),M(t.options.pointWidth)&&(a=h=Math.ceil(t.options.pointWidth),r-=Math.round((a-v)/2)),d.centerInCategory&&(r=l.adjustForMissingColumns(r,a,t,y)),t.barX=r,t.pointWidth=a,t.tooltipPos=c.inverted?[C(u.len+u.pos-c.plotLeft-o,u.pos-c.plotLeft,u.len+u.pos-c.plotLeft),p.len+p.pos-c.plotTop-r-h/2,n]:[p.left-c.plotLeft+r+h/2,C(o+u.pos-c.plotTop,u.pos-c.plotTop,u.len+u.pos-c.plotTop),n],t.shapeType=l.pointClass.prototype.shapeType||\"rect\",t.shapeArgs=l.crispCol.apply(l,t.isNull?[r,g,h,0]:[r,s,h,n])})},x.prototype.drawGraph=function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},x.prototype.pointAttribs=function(t,e){var i,o=this.options,r=this.pointAttrToOptions||{},s=r.stroke||\"borderColor\",r=r[\"stroke-width\"]||\"borderWidth\",n=t&&t.color||this.color,a=t&&t[s]||o[s]||n,h=t&&t.options.dashStyle||o.dashStyle,l=t&&t[r]||o[r]||this[r]||0,c=T(t&&t.opacity,o.opacity,1),t=(t&&this.zones.length&&(i=t.getZone(),n=t.options.color||i&&(i.color||t.nonZonedColor)||this.color,i)&&(a=i.borderColor||a,h=i.dashStyle||h,l=i.borderWidth||l),e&&t&&(o=(i=y(o.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=i.color||void 0!==o&&p(n).brighten(i.brightness).get()||n,a=i[s]||a,l=i[r]||l,h=i.dashStyle||h,c=T(i.opacity,c)),{fill:n,stroke:a,\"stroke-width\":l,opacity:c});return h&&(t.dashstyle=h),t},x.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var s,n=this,a=this.chart,h=n.options,l=a.renderer,c=h.animationLimit||250;t.forEach(function(t){var e=t.plotY,i=t.graphic,o=!!i,r=i&&a.pointCount<c?\"animate\":\"attr\";w(e)&&null!==t.y?(s=t.shapeArgs,i&&t.hasNewShapeType()&&(i=i.destroy()),n.enabledDataSorting&&(t.startXPos=n.xAxis.reversed?-(s&&s.width||0):n.xAxis.width),i||(t.graphic=i=l[t.shapeType](s).add(t.group||n.group),i&&n.enabledDataSorting&&a.hasRendered&&a.pointCount<c&&(i.attr({x:t.startXPos}),o=!0,r=\"animate\")),i&&o&&i[r](y(s)),h.borderRadius&&i[r]({r:h.borderRadius}),a.styledMode||i[r](n.pointAttribs(t,t.selected&&\"select\")).shadow(!1!==t.allowShadow&&h.shadow,null,h.stacking&&!h.borderRadius),i&&(i.addClass(t.getClassName(),!0),i.attr({visibility:t.visible?\"inherit\":\"hidden\"}))):i&&(t.graphic=i.destroy())})},x.prototype.drawTracker=function(t){void 0===t&&(t=this.points);function e(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))}var i,o=this,r=o.chart,s=r.pointer;t.forEach(function(e){i=m(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),i.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),o._hasTracking||(o.trackerGroups.forEach(function(t){o[t]&&(o[t].addClass(\"highcharts-tracker\").on(\"mouseover\",e).on(\"mouseout\",function(t){s.onTrackerMouseOut(t)}),u&&o[t].on(\"touchstart\",e),!r.styledMode)&&o.options.cursor&&o[t].css({cursor:o.options.cursor})}),o._hasTracking=!0),g(this,\"afterDrawTracker\")},x.prototype.remove=function(){var e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),s.prototype.remove.apply(e,arguments)},x.defaultOptions=y(s.defaultOptions,i),x);function x(){var t=null!==l&&l.apply(this,arguments)||this;return t.borderWidth=void 0,t.data=void 0,t.group=void 0,t.options=void 0,t.points=void 0,t}return f(e.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:r.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"]}),n.registerSeriesType(\"column\",e),e}),e(t,\"Core/Series/DataLabel.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/FormatUtilities.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=t.getDeferredAnimation,x=e.format,b=i.defined,v=i.extend,n=i.fireEvent,a=i.isArray,h=i.isString,l=i.merge,S=i.objectEach,k=i.pick,c=i.splat;function d(e,i,t,o,r){function s(t){d&&h.xAxis&&!y&&h.setDataLabelStartPos(e,i,r,m,t)}var n,a,h=this,l=this.chart,c=this.isCartesian&&l.inverted,d=this.enabledDataSorting,p=e.plotX,u=e.plotY,f=t.rotation,g=t.align,m=b(p)&&b(u)&&l.isInsidePlot(p,Math.round(u),{inverted:c,paneCoordinates:!0,series:h}),y=\"justify\"===k(t.overflow,d?\"none\":\"justify\"),u=this.visible&&!1!==e.visible&&b(p)&&(e.series.forceDL||d&&!y||m||k(t.inside,!!this.options.stacking)&&o&&l.isInsidePlot(p,c?o.x+1:o.y+o.height-1,{inverted:c,paneCoordinates:!0,series:h})),p=e.pos();u&&p&&(f&&i.attr({align:g}),c=i.getBBox(!0),g=[0,0],a=l.renderer.fontMetrics(l.styledMode?void 0:t.style.fontSize,i).b,o=v({x:p[0],y:Math.round(p[1]),width:0,height:0},o),v(t,{width:c.width,height:c.height}),f?(y=!1,a=l.renderer.rotCorr(a,f),n={x:o.x+(t.x||0)+o.width/2+a.x,y:o.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*o.height},g=[c.x-Number(i.attr(\"x\")),c.y-Number(i.attr(\"y\"))],s(n),i[r?\"attr\":\"animate\"](n)):(s(o),i.align(t,void 0,o),n=i.alignAttr),y&&0<=o.height?this.justifyDataLabel(i,t,n,c,o,r):k(t.crop,!0)&&(a=n.x,o=n.y,a+=g[0],o+=g[1],u=l.isInsidePlot(a,o,{paneCoordinates:!0,series:h})&&l.isInsidePlot(a+c.width,o+c.height,{paneCoordinates:!0,series:h})),t.shape)&&!f&&i[r?\"attr\":\"animate\"]({anchorX:p[0],anchorY:p[1]}),r&&d&&(i.placed=!1),u||d&&!y?i.show():(i.hide(),i.placed=!1)}function p(t){void 0===t&&(t=this.points);var u,f=this,g=f.chart,m=f.options,e=f.hasRendered||0,y=g.renderer,i=g.options.chart,o=i.backgroundColor,i=i.plotBackgroundColor,v=y.getContrast(h(i)&&i||h(o)&&o||\"#000000\"),i=(r=m.dataLabels).animation,o=r.defer?s(g,i,f):{defer:0,duration:0},r=C(C(g.options.plotOptions&&g.options.plotOptions.series&&g.options.plotOptions.series.dataLabels,g.options.plotOptions&&g.options.plotOptions[f.type]&&g.options.plotOptions[f.type].dataLabels),r);n(this,\"drawDataLabels\"),(a(r)||r.enabled||f._hasPointLabels)&&((u=f.plotGroup(\"dataLabelsGroup\",\"data-labels\",e?\"inherit\":\"hidden\",r.zIndex||6)).attr({opacity:+e}),e||(i=f.dataLabelsGroup)&&(f.visible&&u.show(),i[m.animation?\"animate\":\"attr\"]({opacity:1},o)),t.forEach(function(p){c(C(r,p.dlOptions||p.options&&p.options.dataLabels)).forEach(function(t,e){var i,o,r,s,n,a=t.enabled&&(!p.isNull||p.dataLabelOnNull)&&(h=p,!(l=(l=t).filter)||(a=l.operator,h=h[l.property],l=l.value,\">\"===a&&l<h)||\"<\"===a&&h<l||\">=\"===a&&l<=h||\"<=\"===a&&h<=l||\"==\"===a&&h==l||\"===\"===a&&h===l),h=p.connectors?p.connectors[e]:p.connector,l=p.dataLabels?p.dataLabels[e]:p.dataLabel,c=!l,d=k(t.distance,p.labelDistance);a&&(s=p.getLabelConfig(),r=k(t[p.formatPrefix+\"Format\"],t.format),r=b(r)?x(r,s,g):(t[p.formatPrefix+\"Formatter\"]||t.formatter).call(s,t),s=t.style,n=t.rotation,g.styledMode||(s.color=k(t.color,s.color,f.color,\"#000000\"),\"contrast\"===s.color?(p.contrastColor=y.getContrast(p.color||f.color),s.color=!b(d)&&t.inside||d<0||m.stacking?p.contrastColor:v):delete p.contrastColor,m.cursor&&(s.cursor=m.cursor)),i={r:t.borderRadius||0,rotation:n,padding:t.padding,zIndex:1},g.styledMode||(d=t.backgroundColor,o=t.borderColor,i.fill=\"auto\"===d?p.color:d,i.stroke=\"auto\"===o?p.color:o,i[\"stroke-width\"]=t.borderWidth),S(i,function(t,e){void 0===t&&delete i[e]})),!l||a&&b(r)&&!!l.div==!!t.useHTML&&(l.rotation&&t.rotation||l.rotation===t.rotation)||(c=!0,p.dataLabel=l=p.dataLabel&&p.dataLabel.destroy(),p.dataLabels&&(1===p.dataLabels.length?delete p.dataLabels:delete p.dataLabels[e]),e||delete p.dataLabel,h&&(p.connector=p.connector.destroy(),p.connectors)&&(1===p.connectors.length?delete p.connectors:delete p.connectors[e])),a&&b(r)?(l?i.text=r:(p.dataLabels=p.dataLabels||[],l=p.dataLabels[e]=n?y.text(r,0,0,t.useHTML).addClass(\"highcharts-data-label\"):y.label(r,0,0,t.shape,null,null,t.useHTML,null,\"data-label\"),e||(p.dataLabel=l),l.addClass(\" highcharts-data-label-color-\"+p.colorIndex+\" \"+(t.className||\"\")+(t.useHTML?\" highcharts-tracker\":\"\"))),l.options=t,l.attr(i),g.styledMode||l.css(s).shadow(t.shadow),(d=t[p.formatPrefix+\"TextPath\"]||t.textPath)&&!t.useHTML&&(l.setTextPath(p.getDataLabelPath&&p.getDataLabelPath(l)||p.graphic,d),p.dataLabelPath)&&!d.enabled&&(p.dataLabelPath=p.dataLabelPath.destroy()),l.added||l.add(u),f.alignDataLabel(p,l,t,null,c)):l&&l.hide()})})),n(this,\"afterDrawDataLabels\")}function u(t,e,i,o,r,s){var n,a=this.chart,h=e.align,l=e.verticalAlign,c=!t.box&&t.padding||0,d=e.x,d=void 0===d?0:d,p=e.y,p=void 0===p?0:p,u=(i.x||0)+c;return u<0&&(\"right\"===h&&0<=d?(e.align=\"left\",e.inside=!0):d-=u,n=!0),(u=(i.x||0)+o.width-c)>a.plotWidth&&(\"left\"===h&&d<=0?(e.align=\"right\",e.inside=!0):d+=a.plotWidth-u,n=!0),(u=i.y+c)<0&&(\"bottom\"===l&&0<=p?(e.verticalAlign=\"top\",e.inside=!0):p-=u,n=!0),(u=(i.y||0)+o.height-c)>a.plotHeight&&(\"top\"===l&&p<=0?(e.verticalAlign=\"bottom\",e.inside=!0):p+=a.plotHeight-u,n=!0),n&&(e.x=d,e.y=p,t.placed=!s,t.align(e,void 0,r)),n}function C(e,i){var t,o=[];if(a(e)&&!a(i))o=e.map(function(t){return l(t,i)});else if(a(i)&&!a(e))o=i.map(function(t){return l(e,t)});else if(a(e)||a(i))for(t=Math.max(e.length,i.length);t--;)o[t]=l(e[t],i[t]);else o=l(e,i);return o}function f(t,e,i,o,r){var s=this.chart,n=s.inverted,a=this.xAxis,h=a.reversed,l=n?e.height/2:e.width/2,t=t.pointWidth,t=t?t/2:0;e.startXPos=n?r.x:h?-l-t:a.width-l+t,e.startYPos=n?h?this.yAxis.height-l+t:-l-t:r.y,o?\"hidden\"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),s.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}return o=o||{},r=[],o.compose=function(t){var e;-1===r.indexOf(t)&&(e=t.prototype,r.push(t),e.alignDataLabel=d,e.drawDataLabels=p,e.justifyDataLabel=u,e.setDataLabelStartPos=f)},o}),e(t,\"Series/Column/ColumnDataLabel.js\",[t[\"Core/Series/DataLabel.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(e,t,i){var o,r,d=t.series,p=i.merge,u=i.pick;function s(t,e,i,o,r){var s=this.chart.inverted,n=t.series,a=(n.xAxis?n.xAxis.len:this.chart.plotSizeX)||0,n=(n.yAxis?n.yAxis.len:this.chart.plotSizeY)||0,h=t.dlBox||t.shapeArgs,l=u(t.below,t.plotY>u(this.translatedThreshold,n)),c=u(i.inside,!!this.options.stacking);h&&((o=p(h)).y<0&&(o.height+=o.y,o.y=0),0<(h=o.y+o.height-n)&&h<o.height&&(o.height-=h),s&&(o={x:n-o.y-o.height,y:a-o.x-o.width,width:o.height,height:o.width}),c||(s?(o.x+=l?0:o.width,o.width=0):(o.y+=l?o.height:0,o.height=0))),i.align=u(i.align,!s||c?\"center\":l?\"right\":\"left\"),i.verticalAlign=u(i.verticalAlign,s||c?\"middle\":l?\"top\":\"bottom\"),d.prototype.alignDataLabel.call(this,t,e,i,o,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}return o=o||{},r=[],o.compose=function(t){e.compose(d),-1===r.indexOf(t)&&(r.push(t),t.prototype.alignDataLabel=s)},o}),e(t,\"Series/Bar/BarSeries.js\",[t[\"Series/Column/ColumnSeries.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=i.extend,i=i.merge,s=(s(a,r=t),a.defaultOptions=i(t.defaultOptions,{}),a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(s.prototype,{inverted:!0}),e.registerSeriesType(\"bar\",s),s}),e(t,\"Series/Scatter/ScatterSeriesDefaults.js\",[],function(){return{lineWidth:0,findNearestPointBy:\"xy\",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style=\"color:{point.color}\">â—</span> <span style=\"font-size: 10px\"> {series.name}</span><br/>',pointFormat:\"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>\"}}}),e(t,\"Series/Scatter/ScatterSeries.js\",[t[\"Series/Scatter/ScatterSeriesDefaults.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=e.seriesTypes,a=n.column,n=n.line,h=i.addEvent,l=i.extend,i=i.merge,s=(s(c,r=n),c.prototype.applyJitter=function(){var h=this,l=this.options.jitter,c=this.points.length;l&&this.points.forEach(function(n,a){[\"x\",\"y\"].forEach(function(t,e){var i,o,r,s=\"plot\"+t.toUpperCase();l[t]&&!n.isNull&&(o=h[t+\"Axis\"],r=l[t]*o.transA,o)&&!o.isLog&&(i=Math.max(0,n[s]-r),o=Math.min(o.len,n[s]+r),n[s]=i+(o-i)*(r=a+e*c,(r=1e4*Math.sin(r))-Math.floor(r)),\"x\"===t)&&(n.clientX=n.plotX)})})},c.prototype.drawGraph=function(){this.options.lineWidth?r.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},c.defaultOptions=i(n.defaultOptions,t),c);function c(){var t=null!==r&&r.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return l(s.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],takeOrdinalPosition:!1}),h(s,\"afterTranslate\",function(){this.applyJitter()}),e.registerSeriesType(\"scatter\",s),s}),e(t,\"Series/CenteredUtilities.js\",[t[\"Core/Globals.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Utilities.js\"]],function(t,f,e){var i,o=t.deg2rad,g=e.fireEvent,m=e.isNumber,y=e.pick,v=e.relativeLength;return(t=i=i||{}).getCenter=function(){var t,e,i,o=this.options,r=this.chart,s=2*(o.slicedOffset||0),n=r.plotWidth-2*s,a=r.plotHeight-2*s,h=o.center,l=Math.min(n,a),c=o.thickness,d=o.size,p=o.innerSize||0,u=(\"string\"==typeof d&&(d=parseFloat(d)),\"string\"==typeof p&&(p=parseFloat(p)),[y(h[0],\"50%\"),y(h[1],\"50%\"),y(d&&d<0?void 0:o.size,\"100%\"),y(p&&p<0?void 0:o.innerSize||0,\"0%\")]);for(!r.angular||this instanceof f||(u[3]=0),e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=v(i,[n,a,l,u[2]][e])+(t?s:0);return u[2]<u[3]&&(u[3]=u[2]),m(c)&&2*c<u[2]&&0<c&&(u[3]=u[2]-2*c),g(this,\"afterGetCenter\",{positions:u}),u},t.getStartAndEndRadians=function(t,e){return t=m(t)?t:0,e=m(e)&&t<e&&e-t<360?e:t+360,{start:o*(t+-90),end:o*(e+-90)}},i}),e(t,\"Series/Pie/PiePoint.js\",[t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Series/Point.js\"],t[\"Core/Utilities.js\"]],function(t,e,i){var o,r,s=this&&this.__extends||(o=function(t,e){return(o=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}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=t.setAnimation,a=i.addEvent,h=i.defined,t=i.extend,l=i.isNumber,c=i.pick,d=i.relativeLength,i=(s(p,r=e),p.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=this.connectorShapes,o=e.connectorShape;return(o=i[o]?i[o]:o).call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},p.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},p.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},p.prototype.init=function(){function t(t){e.slice(\"select\"===t.type)}var e=this;r.prototype.init.apply(this,arguments),this.name=c(this.name,\"Slice\");return a(this,\"select\",t),a(this,\"unselect\",t),this},p.prototype.isValid=function(){return l(this.y)&&0<=this.y},p.prototype.setVisible=function(e,t){var i=this,o=this.series,r=o.chart,s=o.options.ignoreHiddenPoint;t=c(t,s),e!==this.visible&&(this.visible=this.options.visible=e=void 0===e?!this.visible:e,o.options.data[o.data.indexOf(this)]=this.options,[\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"].forEach(function(t){i[t]&&i[t][e?\"show\":\"hide\"](e)}),this.legendItem&&r.legend.colorizeItem(this,e),e||\"hover\"!==this.state||this.setState(\"\"),s&&(o.isDirty=!0),t)&&r.redraw()},p.prototype.slice=function(t,e,i){var o=this.series,r=o.chart;n(i,r),e=c(e,!0),this.sliced=this.options.sliced=t=h(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},p);function p(){var t=null!==r&&r.apply(this,arguments)||this;return t.labelDistance=void 0,t.options=void 0,t.series=void 0,t}return t(i.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt,e=e.touchingSliceAt,i=i.softConnector?[\"C\",t.x+(\"left\"===t.alignment?-5:5),t.y,2*o.x-e.x,2*o.y-e.y,o.x,o.y]:[\"L\",o.x,o.y];return[[\"M\",t.x,t.y],i,[\"L\",e.x,e.y]]},straight:function(t,e){e=e.touchingSliceAt;return[[\"M\",t.x,t.y],[\"L\",e.x,e.y]]},crookedLine:function(t,e,i){var e=e.touchingSliceAt,o=this.series,r=o.center[0],s=o.chart.plotWidth,o=o.chart.plotLeft,n=t.alignment,a=this.shapeArgs.r,i=d(i.crookDistance,1),s=\"left\"===n?r+a+(s+o-r-a)*(1-i):o+(r-a)*i,o=[\"L\",s,t.y],r=!0,a=((\"left\"===n?s>t.x||s<e.x:s<t.x||s>e.x)&&(r=!1),[[\"M\",t.x,t.y]]);return r&&a.push(o),a.push([\"L\",e.x,e.y]),a}}}),i}),e(t,\"Series/Pie/PieSeriesDefaults.js\",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:\"fixedOffset\",crookDistance:\"70%\",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),e(t,\"Series/Pie/PieSeries.js\",[t[\"Series/CenteredUtilities.js\"],t[\"Series/Column/ColumnSeries.js\"],t[\"Core/Globals.js\"],t[\"Core/Legend/LegendSymbol.js\"],t[\"Series/Pie/PiePoint.js\"],t[\"Series/Pie/PieSeriesDefaults.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Renderer/SVG/Symbols.js\"],t[\"Core/Utilities.js\"]],function(t,e,i,o,r,s,n,a,h,l){var c,d,p=this&&this.__extends||(c=function(t,e){return(c=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}c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),v=t.getStartAndEndRadians,i=i.noop,u=l.clamp,f=l.extend,x=l.fireEvent,g=l.merge,b=l.pick,S=l.relativeLength,l=(p(m,d=n),m.prototype.animate=function(t){var o=this,e=o.points,r=o.startAngleRad;t||e.forEach(function(t){var e=t.graphic,i=t.shapeArgs;e&&i&&(e.attr({r:b(t.startR,o.center&&o.center[3]/2),start:r,end:r}),e.animate({r:i.r,start:i.start,end:i.end},o.options.animation))})},m.prototype.drawEmpty=function(){var t,e,i=this.startAngleRad,o=this.endAngleRad,r=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,o).addClass(\"highcharts-empty-series\").add(this.group)),this.graph.attr({d:h.arc(t,e,this.center[2]/2,0,{start:i,end:o,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({\"stroke-width\":r.borderWidth,fill:r.fillColor||\"none\",stroke:r.color||\"#cccccc\"})):this.graph&&(this.graph=this.graph.destroy())},m.prototype.drawPoints=function(){var e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})},m.prototype.generatePoints=function(){d.prototype.generatePoints.call(this),this.updateTotals()},m.prototype.getX=function(t,e,i){var o=this.center,r=this.radii?this.radii[i.index]||0:o[2]/2,t=Math.asin(u((t-o[1])/(r+i.labelDistance),-1,1));return o[0]+(e?-1:1)*(Math.cos(t)*(r+i.labelDistance))+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},m.prototype.hasData=function(){return!!this.processedXData.length},m.prototype.redrawPoints=function(){var o,r,s,n,a=this,h=a.chart,l=h.renderer,c=a.options.shadow;this.drawEmpty(),!c||a.shadowGroup||h.styledMode||(a.shadowGroup=l.g(\"shadow\").attr({zIndex:-1}).add(a.group)),a.points.forEach(function(t){var e,i={};r=t.graphic,!t.isNull&&r?(e=void 0,n=t.shapeArgs,o=t.getTranslate(),h.styledMode||(e=t.shadowGroup,(e=c&&!e?t.shadowGroup=l.g(\"shadow\").add(a.shadowGroup):e)&&e.attr(o),s=a.pointAttribs(t,t.selected&&\"select\")),t.delayedRendering?(r.setRadialReference(a.center).attr(n).attr(o),h.styledMode||r.attr(s).attr({\"stroke-linejoin\":\"round\"}).shadow(c,e),t.delayedRendering=!1):(r.setRadialReference(a.center),h.styledMode||g(!0,i,s),g(!0,i,n,o),r.animate(i)),r.attr({visibility:t.visible?\"inherit\":\"hidden\"}),r.addClass(t.getClassName(),!0)):r&&(t.graphic=r.destroy())})},m.prototype.sortByAngle=function(t,i){t.sort(function(t,e){return void 0!==t.angle&&(e.angle-t.angle)*i})},m.prototype.translate=function(t){x(this,\"translate\"),this.generatePoints();var e,i,o,r,s=this.options,n=s.slicedOffset,a=n+(s.borderWidth||0),h=v(s.startAngle,s.endAngle),l=this.startAngleRad=h.start,c=(this.endAngleRad=h.end)-l,d=this.points,p=s.dataLabels.distance,u=s.ignoreHiddenPoint,f=d.length,g=0;for(t||(this.center=t=this.getCenter()),o=0;o<f;o++){i=l+g*c,!(r=d[o]).isValid()||u&&!r.visible||(g+=r.percentage/100);var m=l+g*c,y={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*i)/1e3,end:Math.round(1e3*m)/1e3};r.shapeType=\"arc\",r.shapeArgs=y,r.labelDistance=b(r.options.dataLabels&&r.options.dataLabels.distance,p),r.labelDistance=S(r.labelDistance,y.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,r.labelDistance),(y=(m+i)/2)>1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),r.slicedTranslation={translateX:Math.round(Math.cos(y)*n),translateY:Math.round(Math.sin(y)*n)},m=Math.cos(y)*t[2]/2,i=Math.sin(y)*t[2]/2,r.tooltipPos=[t[0]+.7*m,t[1]+.7*i],r.half=y<-Math.PI/2||y>Math.PI/2?1:0,r.angle=y,e=Math.min(a,r.labelDistance/5),r.labelPosition={natural:{x:t[0]+m+Math.cos(y)*r.labelDistance,y:t[1]+i+Math.sin(y)*r.labelDistance},final:{},alignment:r.labelDistance<0?\"center\":r.half?\"right\":\"left\",connectorPosition:{breakAt:{x:t[0]+m+Math.cos(y)*e,y:t[1]+i+Math.sin(y)*e},touchingSliceAt:{x:t[0]+m,y:t[1]+i}}}}x(this,\"afterTranslate\")},m.prototype.updateTotals=function(){for(var t,e=this.points,i=e.length,o=this.options.ignoreHiddenPoint,r=0,s=0;s<i;s++)!(t=e[s]).isValid()||o&&!t.visible||(r+=t.y);for(this.total=r,s=0;s<i;s++)(t=e[s]).percentage=0<r&&(t.visible||!o)?t.y/r*100:0,t.total=r},m.defaultOptions=g(n.defaultOptions,s),m);function m(){var t=null!==d&&d.apply(this,arguments)||this;return t.center=void 0,t.data=void 0,t.maxLabelDistance=void 0,t.options=void 0,t.points=void 0,t}return f(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:o.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:i,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:i,trackerGroups:[\"group\",\"dataLabelsGroup\"]}),a.registerSeriesType(\"pie\",l),l}),e(t,\"Series/Pie/PieDataLabel.js\",[t[\"Core/Series/DataLabel.js\"],t[\"Core/Globals.js\"],t[\"Core/Renderer/RendererUtilities.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Core/Utilities.js\"]],function(e,t,i,o,r){var s,n,a,h=t.noop,O=i.distribute,E=o.series,D=r.arrayMax,l=r.clamp,j=r.defined,I=r.merge,B=r.pick,c=r.relativeLength;function d(){var l,i,o,c,d,p,u,f,g,m,y,v=this,t=v.data,x=v.chart,b=v.options.dataLabels||{},S=b.connectorPadding,k=x.plotWidth,C=x.plotHeight,M=x.plotLeft,e=Math.round(x.chartWidth/3),w=v.center,T=w[2]/2,A=w[1],r=[[],[]],P=[0,0,0,0],L=v.dataLabelPositioners;v.visible&&(b.enabled||v._hasPointLabels)&&(t.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),t.dataLabel.shortened=!1)}),E.prototype.drawDataLabels.apply(v),t.forEach(function(t){t.dataLabel&&(t.visible?(r[t.half].push(t),t.dataLabel._pos=null,j(b.style.width)||j(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)||t.dataLabel.getBBox().width>e&&(t.dataLabel.css({width:Math.round(.7*e)+\"px\"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),r.forEach(function(t,e){var i,o,r,s,n,a=t.length,h=[];if(a)for(v.sortByAngle(t,e-.5),0<v.maxLabelDistance&&(i=Math.max(0,A-T-v.maxLabelDistance),n=Math.min(A+T+v.maxLabelDistance,x.plotHeight),t.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,A-T-t.labelDistance),t.bottom=Math.min(A+T+t.labelDistance,x.plotHeight),s=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+s/2,size:s,rank:t.y},h.push(t.distributeBox))}),O(h,n=n+s-i,n/5)),m=0;m<a;m++){if(l=t[m],d=l.labelPosition,c=l.dataLabel,g=!1===l.visible?\"hidden\":\"inherit\",o=d.natural.y,f=o,h&&j(l.distributeBox)&&(void 0===l.distributeBox.pos?g=\"hidden\":(p=l.distributeBox.size,f=L.radialDistributionY(l))),delete l.positionIndex,b.justify)u=L.justify(l,T,w);else switch(b.alignTo){case\"connectors\":u=L.alignToConnectors(t,e,k,M);break;case\"plotEdges\":u=L.alignToPlotEdges(c,e,k,M);break;default:u=L.radialDistributionX(v,l,f,o)}c._attr={visibility:g,align:d.alignment},y=l.options.dataLabels||{},c._pos={x:u+B(y.x,b.x)+({left:S,right:-S}[d.alignment]||0),y:f+B(y.y,b.y)-10},d.final.x=u,d.final.y=f,B(b.crop,!0)&&(d=c.getBBox().width,r=null,u-d<S&&1===e?(r=Math.round(d-u+S),P[3]=Math.max(r,P[3])):k-S<u+d&&0===e&&(r=Math.round(u+d-k+S),P[1]=Math.max(r,P[1])),f-p/2<0?P[0]=Math.max(Math.round(p/2-f),P[0]):C<f+p/2&&(P[2]=Math.max(Math.round(f+p/2-C),P[2])),c.sideOverflow=r)}}),0!==D(P)&&!this.verifyDataLabelOverflow(P)||(this.placeDataLabels(),this.points.forEach(function(t){var e;y=I(b,t.options.dataLabels),(i=B(y.connectorWidth,1))&&(e=void 0,o=t.connector,(c=t.dataLabel)&&c._pos&&t.visible&&0<t.labelDistance?(g=c._attr.visibility,(e=!o)&&(t.connector=o=x.renderer.path().addClass(\"highcharts-data-label-connector highcharts-color-\"+t.colorIndex+(t.className?\" \"+t.className:\"\")).add(v.dataLabelsGroup),x.styledMode||o.attr({\"stroke-width\":i,stroke:y.connectorColor||t.color||\"#666666\"})),o[e?\"attr\":\"animate\"]({d:t.getConnectorPath()}),o.attr(\"visibility\",g)):o&&(t.connector=o.destroy()))})))}function p(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+\"px\",textOverflow:(this.options.dataLabels.style||{}).textOverflow||\"ellipsis\"}),i.shortened=!0),i.attr(i._attr),i[i.moved?\"animate\":\"attr\"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)}function u(t){var e=this.center,i=this.options,o=i.center,r=i.minSize||80,s=r,n=null!==i.size;return n||(null!==o[0]?s=Math.max(e[2]-Math.max(t[1],t[3]),r):(s=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2),null!==o[1]?s=l(s,r,e[2]-Math.max(t[0],t[2])):(s=l(s,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(i.thickness?Math.max(0,s-2*i.thickness):Math.max(0,c(i.innerSize||0,s)),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):n=!0),n}return s=s||{},n=[],a={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,o){return t.getX(i<e.top+2||i>e.bottom-2?o:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,o){t=t.getBBox().width;return e?t+o:i-t-o},alignToConnectors:function(t,e,i,o){var r,s=0;return t.forEach(function(t){r=t.dataLabel.getBBox().width,s<r&&(s=r)}),e?s+o:i-s-o}},s.compose=function(t){e.compose(E),-1===n.indexOf(t)&&(n.push(t),(t=t.prototype).dataLabelPositioners=a,t.alignDataLabel=h,t.drawDataLabels=d,t.placeDataLabels=p,t.verifyDataLabelOverflow=u)},s}),e(t,\"Extensions/OverlappingDataLabels.js\",[t[\"Core/Chart/Chart.js\"],t[\"Core/Utilities.js\"]],function(t,e){var i=e.addEvent,u=e.fireEvent,s=e.isArray,f=e.isNumber,n=e.objectEach,a=e.pick;function g(t,e){var i,o,r=!1;return t&&(o=t.newOpacity,t.oldOpacity!==o&&(t.alignAttr&&t.placed?(t[o?\"removeClass\":\"addClass\"](\"highcharts-data-label-hidden\"),i=function(){e.styledMode||t.css({pointerEvents:o?\"auto\":\"none\"})},r=!0,t.alignAttr.opacity=o,t[t.isOld?\"animate\":\"attr\"](t.alignAttr,null,i),u(e,\"afterHideOverlappingLabel\")):t.attr({opacity:o})),t.isOld=!0),r}i(t,\"render\",function(){var o=this,r=[];(this.labelCollectors||[]).forEach(function(t){r=r.concat(t())}),(this.yAxis||[]).forEach(function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&n(t.stacking.stacks,function(t){n(t,function(t){t.label&&r.push(t.label)})})}),(this.series||[]).forEach(function(t){var e=t.options.dataLabels;t.visible&&(!1!==e.enabled||t._hasPointLabels)&&((e=function(t){return t.forEach(function(i){i.visible&&(s(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach(function(t){var e=t.options;t.labelrank=a(e.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),e.allowOverlap?(t.oldOpacity=t.opacity,t.newOpacity=1,g(t,o)):r.push(t)})})})(t.nodes||[]),e(t.points))}),this.hideOverlappingLabels(r)}),t.prototype.hideOverlappingLabels=function(t){for(var e,i,o,r,s,n,a,h=this,l=t.length,c=h.renderer,d=!1,p=0;p<l;p++)(e=t[p])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){var e,i,o,r,s=!t.box&&t.padding||0,n=0,a=0;if(t&&(!t.alignAttr||t.placed))return e=t.alignAttr||{x:t.attr(\"x\"),y:t.attr(\"y\")},i=t.parentGroup,t.width||(o=t.getBBox(),t.width=o.width,t.height=o.height,n=c.fontMetrics(null,t.element).h),o=t.width-2*s,(r={left:\"0\",center:\"0.5\",right:\"1\"}[t.alignValue])?a=+r*o:f(t.x)&&Math.round(t.x)!==t.translateX&&(a=t.x-t.translateX),{x:e.x+(i.translateX||0)+s-(a||0),y:e.y+(i.translateY||0)+s-n,width:t.width-2*s,height:t.height-2*s}}(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),p=0;p<l;p++)for(s=(o=t[p])&&o.absoluteBox,i=p+1;i<l;++i)r=t[i],a=r&&r.absoluteBox,s&&a&&o!==r&&0!==o.newOpacity&&0!==r.newOpacity&&\"hidden\"!==o.visibility&&\"hidden\"!==r.visibility&&(n=s,(a=a).x>=n.x+n.width||a.x+a.width<=n.x||a.y>=n.y+n.height||a.y+a.height<=n.y||((o.labelrank<r.labelrank?o:r).newOpacity=0));t.forEach(function(t){g(t,h)&&(d=!0)}),d&&u(h,\"afterHideAllOverlappingLabels\")}}),e(t,\"Core/Responsive.js\",[t[\"Core/Utilities.js\"]],function(t){var e,i=t.extend,a=t.find,h=t.isArray,l=t.isObject,c=t.merge,d=t.objectEach,o=t.pick,p=t.splat,u=t.uniqueKey,r=(e=e||{},[]),s=(e.compose=function(t){return-1===r.indexOf(t)&&(r.push(t),i(t.prototype,s.prototype)),t},n.prototype.currentOptions=function(t){var a=this,e={};return function i(t,o,r,s){var n;d(t,function(t,e){if(!s&&-1<a.collectionsWithUpdate.indexOf(e)&&o[e])for(t=p(t),r[e]=[],n=0;n<Math.max(t.length,o[e].length);n++)o[e][n]&&(void 0===t[n]?r[e][n]=o[e][n]:(r[e][n]={},i(t[n],o[e][n],r[e][n],s+1)));else l(t)?(r[e]=h(t)?[]:{},i(t,o[e]||{},r[e],s+1)):void 0===o[e]?r[e]=null:r[e]=o[e]})}(t,this.options,e,0),e},n.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=o(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=o(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)},n.prototype.setResponsive=function(t,e){var i=this,o=this.options.responsive,r=this.currentResponsive,s=[],e=(!e&&o&&o.rules&&o.rules.forEach(function(t){void 0===t._id&&(t._id=u()),i.matchResponsiveRule(t,s)},this),c.apply(void 0,s.map(function(e){return a((o||{}).rules||[],function(t){return t._id===e})}).map(function(t){return t&&t.chartOptions}))),n=(e.isResponsiveOptions=!0,s=s.toString()||void 0,r&&r.ruleIds);s!==n&&(r&&this.update(r.undoOptions,t,!0),s?((n=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:n},this.update(e,t,!0)):this.currentResponsive=void 0)},n);function n(){}return e}),e(t,\"masters/highcharts.src.js\",[t[\"Core/Globals.js\"],t[\"Core/Utilities.js\"],t[\"Core/Defaults.js\"],t[\"Core/Animation/Fx.js\"],t[\"Core/Animation/AnimationUtilities.js\"],t[\"Core/Renderer/HTML/AST.js\"],t[\"Core/FormatUtilities.js\"],t[\"Core/Renderer/RendererUtilities.js\"],t[\"Core/Renderer/SVG/SVGElement.js\"],t[\"Core/Renderer/SVG/SVGRenderer.js\"],t[\"Core/Renderer/HTML/HTMLElement.js\"],t[\"Core/Renderer/HTML/HTMLRenderer.js\"],t[\"Core/Axis/Axis.js\"],t[\"Core/Axis/DateTimeAxis.js\"],t[\"Core/Axis/LogarithmicAxis.js\"],t[\"Core/Axis/PlotLineOrBand/PlotLineOrBand.js\"],t[\"Core/Axis/Tick.js\"],t[\"Core/Tooltip.js\"],t[\"Core/Series/Point.js\"],t[\"Core/Pointer.js\"],t[\"Core/MSPointer.js\"],t[\"Core/Legend/Legend.js\"],t[\"Core/Chart/Chart.js\"],t[\"Core/Axis/Stacking/StackingAxis.js\"],t[\"Core/Axis/Stacking/StackItem.js\"],t[\"Core/Series/Series.js\"],t[\"Core/Series/SeriesRegistry.js\"],t[\"Series/Column/ColumnSeries.js\"],t[\"Series/Column/ColumnDataLabel.js\"],t[\"Series/Pie/PieSeries.js\"],t[\"Series/Pie/PieDataLabel.js\"],t[\"Core/Series/DataLabel.js\"],t[\"Core/Responsive.js\"],t[\"Core/Color/Color.js\"],t[\"Core/Time.js\"]],function(t,e,i,o,r,s,n,a,h,l,c,d,p,u,f,g,m,y,v,x,b,S,k,C,M,w,T,A,P,L,O,E,D,j,I){return t.animate=r.animate,t.animObject=r.animObject,t.getDeferredAnimation=r.getDeferredAnimation,t.setAnimation=r.setAnimation,t.stop=r.stop,t.timers=o.timers,t.AST=s,t.Axis=p,t.Chart=k,t.chart=k.chart,t.Fx=o,t.Legend=S,t.PlotLineOrBand=g,t.Point=v,t.Pointer=b.isRequired()?b:x,t.Series=w,t.StackItem=M,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=I,t.Tooltip=y,t.Color=j,t.color=j.parse,d.compose(l),c.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=T.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,P.compose(A),E.compose(w),u.compose(p),f.compose(p),O.compose(L),g.compose(p),D.compose(k),C.compose(p,k,w),t}),(t[\"masters/highcharts.src.js\"]._modules=t)[\"masters/highcharts.src.js\"]});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=\"undefined\"!=typeof globalThis?globalThis:t||self).tempusDominus={})}(this,function(p){\"use strict\";class i extends Error{}const t=\"tempus-dominus\";class m{}m.NAME=t,m.dataKey=\"td\",m.events=new class{constructor(){this.key=\".td\",this.change=\"change\"+this.key,this.update=\"update\"+this.key,this.error=\"error\"+this.key,this.show=\"show\"+this.key,this.hide=\"hide\"+this.key,this.blur=\"blur\"+this.key,this.focus=\"focus\"+this.key,this.keyup=\"keyup\"+this.key,this.keydown=\"keydown\"+this.key}},m.css=new class{constructor(){this.widget=t+\"-widget\",this.calendarHeader=\"calendar-header\",this.switch=\"picker-switch\",this.toolbar=\"toolbar\",this.noHighlight=\"no-highlight\",this.sideBySide=\"timepicker-sbs\",this.previous=\"previous\",this.next=\"next\",this.disabled=\"disabled\",this.old=\"old\",this.new=\"new\",this.active=\"active\",this.dateContainer=\"date-container\",this.decadesContainer=this.dateContainer+\"-decades\",this.decade=\"decade\",this.yearsContainer=this.dateContainer+\"-years\",this.year=\"year\",this.monthsContainer=this.dateContainer+\"-months\",this.month=\"month\",this.daysContainer=this.dateContainer+\"-days\",this.day=\"day\",this.calendarWeeks=\"cw\",this.dayOfTheWeek=\"dow\",this.today=\"today\",this.weekend=\"weekend\",this.rangeIn=\"range-in\",this.rangeStart=\"range-start\",this.rangeEnd=\"range-end\",this.timeContainer=\"time-container\",this.separator=\"separator\",this.clockContainer=this.timeContainer+\"-clock\",this.hourContainer=this.timeContainer+\"-hour\",this.minuteContainer=this.timeContainer+\"-minute\",this.secondContainer=this.timeContainer+\"-second\",this.hour=\"hour\",this.minute=\"minute\",this.second=\"second\",this.toggleMeridiem=\"toggleMeridiem\",this.show=\"show\",this.collapsing=\"td-collapsing\",this.collapse=\"td-collapse\",this.inline=\"inline\",this.lightTheme=\"light\",this.darkTheme=\"dark\",this.isDarkPreferredQuery=\"(prefers-color-scheme: dark)\"}},m.errorMessages=new class{constructor(){this.base=\"TD:\",this.failedToSetInvalidDate=\"Failed to set invalid date\",this.failedToParseInput=\"Failed parse input field\"}unexpectedOption(t){t=new i(this.base+` Unexpected option: ${t} does not match a known option.`);throw t.code=1,t}unexpectedOptions(t){t=new i(this.base+\": \"+t.join(\", \"));throw t.code=1,t}unexpectedOptionValue(t,e,s){t=new i(this.base+` Unexpected option value: ${t} does not accept a value of \"${e}\". Valid values are: `+s.join(\", \"));throw t.code=2,t}typeMismatch(t,e,s){t=new i(this.base+` Mismatch types: ${t} has a type of ${e} instead of the required `+s);throw t.code=3,t}numbersOutOfRange(t,e,s){t=new i(this.base+` ${t} expected an array of number between ${e} and ${s}.`);throw t.code=4,t}failedToParseDate(t,e,s=!1){e=new i(this.base+` Could not correctly parse \"${e}\" to a date for ${t}.`);if(e.code=5,!s)throw e;console.warn(e)}mustProvideElement(){var t=new i(this.base+\" No element was provided.\");throw t.code=6,t}subscribeMismatch(){var t=new i(this.base+\" The subscribed events does not match the number of callbacks\");throw t.code=7,t}conflictingConfiguration(t){t=new i(this.base+\" A configuration value conflicts with another rule. \"+t);throw t.code=8,t}customDateFormatError(t){t=new i(this.base+\" Custom Date Format: \"+t);throw t.code=9,t}dateString(){console.warn(this.base+\" Using a string for date options is not recommended unless you specify an ISO string or use the customDateFormat plugin.\")}deprecatedWarning(t,e){console.warn(this.base+` Warning ${t} is deprecated and will be removed in a future version. `+e)}throwError(t){t=new i(this.base+\" \"+t);throw t.code=9,t}};var n={...{locale:\"default\",hourCycle:void 0,dateFormats:{LTS:\"h:mm:ss T\",LT:\"h:mm T\",L:\"MM/dd/yyyy\",LL:\"MMMM d, yyyy\",LLL:\"MMMM d, yyyy h:mm T\",LLLL:\"dddd, MMMM d, yyyy h:mm T\"},ordinal:t=>{var e=[\"th\",\"st\",\"nd\",\"rd\"],s=t%100;return`[${t}${e[(s-20)%10]||e[s]||e[0]}]`},format:\"L LT\"}};p.Unit=void 0,(O=p.Unit||(p.Unit={})).seconds=\"seconds\",O.minutes=\"minutes\",O.hours=\"hours\",O.date=\"date\",O.month=\"month\",O.year=\"year\";const e={month:\"2-digit\",day:\"2-digit\",year:\"numeric\",hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\"},a=t=>{switch(t){case\"date\":return{dateStyle:\"short\"};case\"month\":return{month:\"numeric\",year:\"numeric\"};case\"year\":return{year:\"numeric\"}}},o=t=>{if(!t)return\"h12\";var e={hour:\"2-digit\",minute:\"2-digit\",numberingSystem:\"latn\"},s=(new y).setLocalization({locale:t}),i=(s.hours=0,s.parts(void 0,e).hour);if(\"12\"===i)return\"h12\";if(\"24\"===i)return\"h24\";s.hours=23;s=s.parts(void 0,e).hour;return\"00\"===i&&\"11\"===s?\"h11\":\"00\"===i&&\"23\"===s?\"h23\":void console.warn(`couldn't determine hour cycle for ${t}. start: ${i}. end: `+s)};class y extends Date{constructor(){super(...arguments),this.localization=n,this.nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],this.leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335],this.dateTimeRegex=/(\\[[^[\\]]*])|y{1,4}|M{1,4}|d{1,4}|H{1,2}|h{1,2}|t|T|m{1,2}|s{1,2}|f{3}/g,this.formattingTokens=/(\\[[^[\\]]*])|([-_:/.,()\\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?|hh?|HH?|mm?|ss?)/g,this.match2=/\\d\\d/,this.match3=/\\d{3}/,this.match4=/\\d{4}/,this.match1to2=/\\d\\d?/,this.matchSigned=/[+-]?\\d+/,this.matchOffset=/[+-]\\d\\d:?(\\d\\d)?|Z/,this.matchWord=/[^\\d_:/,\\-()\\s]+/,this.zoneExpressions=[this.matchOffset,(t,e)=>{t.offset=this.offsetFromString(e)}],this.expressions={t:[this.matchWord,(t,e)=>{t.afternoon=this.meridiemMatch(e)}],T:[this.matchWord,(t,e)=>{t.afternoon=this.meridiemMatch(e)}],fff:[this.match3,(t,e)=>{t.milliseconds=+e}],s:[this.match1to2,this.addInput(\"seconds\")],ss:[this.match1to2,this.addInput(\"seconds\")],m:[this.match1to2,this.addInput(\"minutes\")],mm:[this.match1to2,this.addInput(\"minutes\")],H:[this.match1to2,this.addInput(\"hours\")],h:[this.match1to2,this.addInput(\"hours\")],HH:[this.match1to2,this.addInput(\"hours\")],hh:[this.match1to2,this.addInput(\"hours\")],d:[this.match1to2,this.addInput(\"day\")],dd:[this.match2,this.addInput(\"day\")],Do:[this.matchWord,(e,s)=>{if([e.day]=s.match(/\\d+/),this.localization.ordinal)for(let t=1;t<=31;t+=1)this.localization.ordinal(t).replace(/[[\\]]/g,\"\")===s&&(e.day=t)}],M:[this.match1to2,this.addInput(\"month\")],MM:[this.match2,this.addInput(\"month\")],MMM:[this.matchWord,(t,e)=>{var s=this.getAllMonths(),s=(this.getAllMonths(\"short\")||s.map(t=>t.slice(0,3))).indexOf(e)+1;if(s<1)throw new Error;t.month=s%12||s}],MMMM:[this.matchWord,(t,e)=>{e=this.getAllMonths().indexOf(e)+1;if(e<1)throw new Error;t.month=e%12||e}],y:[this.matchSigned,this.addInput(\"year\")],yy:[this.match2,(t,e)=>{t.year=this.parseTwoDigitYear(e)}],yyyy:[this.match4,this.addInput(\"year\")]}}setLocale(t){return this.localization||(this.localization=n,this.localization.locale=t),this}setLocalization(t){return this.localization=t,this}static convert(t,e=\"default\",s=void 0){if(t)return s||((s=n).locale=e),new y(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()).setLocalization(s);throw new Error(\"A date is required\")}get clone(){return new y(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.getMilliseconds()).setLocalization(this.localization)}static isValid(t){return void 0!==t&&\"null\"!==JSON.stringify(t)&&(t.constructor.name===y.name||void 0)}startOf(t,e=0){if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);switch(t){case\"seconds\":this.setMilliseconds(0);break;case\"minutes\":this.setSeconds(0,0);break;case\"hours\":this.setMinutes(0,0,0);break;case\"date\":this.setHours(0,0,0,0);break;case\"weekDay\":{if(this.startOf(p.Unit.date),this.weekDay===e)break;let t=this.weekDay;0!==e&&0===this.weekDay&&(t=8-e),this.manipulate(e-t,p.Unit.date);break}case\"month\":this.startOf(p.Unit.date),this.setDate(1);break;case\"year\":this.startOf(p.Unit.date),this.setMonth(0,1)}return this}endOf(t,e=0){if(void 0===this[t])throw new Error(`Unit '${t}' is not valid`);switch(t){case\"seconds\":this.setMilliseconds(999);break;case\"minutes\":this.setSeconds(59,999);break;case\"hours\":this.setMinutes(59,59,999);break;case\"date\":this.setHours(23,59,59,999);break;case\"weekDay\":this.endOf(p.Unit.date);var s=6+e;this.weekDay!==s&&this.manipulate(s-this.weekDay,p.Unit.date);break;case\"month\":this.endOf(p.Unit.date),this.manipulate(1,p.Unit.month),this.setDate(0);break;case\"year\":this.endOf(p.Unit.date),this.setMonth(11,31)}return this}manipulate(t,e){if(void 0===this[e])throw new Error(`Unit '${e}' is not valid`);return this[e]+=t,this}isBefore(t,e){if(!y.isValid(t))return!1;if(!e)return this.valueOf()<t.valueOf();if(void 0===this[e])throw new Error(`Unit '${e}' is not valid`);return this.clone.startOf(e).valueOf()<t.clone.startOf(e).valueOf()}isAfter(t,e){if(!y.isValid(t))return!1;if(!e)return this.valueOf()>t.valueOf();if(void 0===this[e])throw new Error(`Unit '${e}' is not valid`);return this.clone.startOf(e).valueOf()>t.clone.startOf(e).valueOf()}isSame(t,e){if(!y.isValid(t))return!1;if(!e)return this.valueOf()===t.valueOf();if(void 0===this[e])throw new Error(`Unit '${e}' is not valid`);return t=y.convert(t),this.clone.startOf(e).valueOf()===t.startOf(e).valueOf()}isBetween(t,e,s,i=\"()\"){if(!y.isValid(t)||!y.isValid(e))return!1;if(s&&void 0===this[s])throw new Error(`Unit '${s}' is not valid`);if(s&&void 0===this[s])throw new Error(`Unit '${s}' is not valid`);var a=\"(\"===i[0],i=\")\"===i[1],a=a?this.isAfter(t,s):!this.isBefore(t,s),t=i?this.isBefore(e,s):!this.isAfter(e,s);return a&&t}parts(t=this.localization.locale,e={dateStyle:\"full\",timeStyle:\"long\"}){const s={};return new Intl.DateTimeFormat(t,e).formatToParts(this).filter(t=>\"literal\"!==t.type).forEach(t=>s[t.type]=t.value),s}get seconds(){return this.getSeconds()}set seconds(t){this.setSeconds(t)}get secondsFormatted(){return this.parts(void 0,e).second}get minutes(){return this.getMinutes()}set minutes(t){this.setMinutes(t)}get minutesFormatted(){return this.parts(void 0,e).minute}get hours(){return this.getHours()}set hours(t){this.setHours(t)}getHoursFormatted(t=\"h12\"){return this.parts(void 0,{...e,hourCycle:t}).hour}meridiem(t=this.localization.locale){return new Intl.DateTimeFormat(t,{hour:\"numeric\",hour12:!0}).formatToParts(this).find(t=>\"dayPeriod\"===t.type)?.value}get date(){return this.getDate()}set date(t){this.setDate(t)}get dateFormatted(){return this.parts(void 0,e).day}get weekDay(){return this.getDay()}get month(){return this.getMonth()}set month(t){var e=new Date(this.year,t+1),e=(e.setDate(0),e.getDate());this.date>e&&(this.date=e),this.setMonth(t)}get monthFormatted(){return this.parts(void 0,e).month}get year(){return this.getFullYear()}set year(t){this.setFullYear(t)}get week(){var t=this.computeOrdinal(),e=this.getUTCDay();let s=Math.floor((t-e+10)/7);return s<1?s=this.weeksInWeekYear():s>this.weeksInWeekYear()&&(s=1),s}weeksInWeekYear(){var t=(this.year+Math.floor(this.year/4)-Math.floor(this.year/100)+Math.floor(this.year/400))%7,e=this.year-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}get isLeapYear(){return this.year%4==0&&(this.year%100!=0||this.year%400==0)}computeOrdinal(){return this.date+(this.isLeapYear?this.leapLadder:this.nonLeapLadder)[this.month]}getAllMonths(t=\"long\"){const e=new Intl.DateTimeFormat(this.localization.locale,{month:t}).format;return[...Array(12).keys()].map(t=>e(new Date(2021,t)))}replaceTokens(t,i){return t.replace(/(\\[[^[\\]]*])|(LTS?|l{1,4}|L{1,4})/g,(t,e,s)=>{s=s&&s.toUpperCase();return e||i[s]||n.dateFormats[s]})}parseTwoDigitYear(t){return(t=+t)+(68<t?1900:2e3)}offsetFromString(t){var e,s;return!t||\"Z\"===t||([t,s,e]=t.match(/([+-]|\\d\\d)/g),0===(s=60*s+(+e||0)))?0:\"+\"===t?-s:s}zoneInformation(t,e){let s=t.parts(this.localization.locale,{timeZoneName:\"longOffset\"}).timeZoneName.replace(\"GMT\",\"\").replace(\":\",\"\");t=s.includes(\"-\");return s=s.replace(\"-\",\"\"),\"z\"===e?s=s.substring(1,2):\"zz\"===e&&(s=s.substring(0,2)),(t?\"-\":\"\")+s}addInput(s){return(t,e)=>{t[s]=+e}}meridiemMatch(t){var e=new Intl.DateTimeFormat(this.localization.locale,{hour:\"numeric\",hour12:!0}).formatToParts(new Date(2022,3,4,13)).find(t=>\"dayPeriod\"===t.type)?.value;return t.toLowerCase()===e.toLowerCase()}correctHours(t){var e,s=t[\"afternoon\"];void 0!==s&&(e=t[\"hours\"],s?e<12&&(t.hours+=12):12===e&&(t.hours=0),delete t.afternoon)}makeParser(t){const r=(t=this.replaceTokens(t,this.localization.dateFormats)).match(this.formattingTokens),d=r[\"length\"];for(let t=0;t<d;t+=1){var e=r[t],s=this.expressions[e],i=s&&s[0],s=s&&s[1];r[t]=s?{regex:i,parser:s}:e.replace(/^\\[[^[\\]]*]$/g,\"\")}return s=>{var i={hours:0,minutes:0,seconds:0,milliseconds:0};for(let t=0,e=0;t<d;t+=1){var a,o,n=r[t];\"string\"==typeof n?e+=n.length:({regex:n,parser:a}=n,o=s.slice(e),n=n.exec(o)[0],a.call(this,i,n),s=s.replace(n,\"\"))}return this.correctHours(i),i}}static fromString(e,s){s?.format||m.errorMessages.customDateFormatError(\"No format was provided\");try{var i=new y;if(i.setLocalization(s),-1<[\"x\",\"X\"].indexOf(s.format))return new y((\"X\"===s.format?1e3:1)*+e);var{year:a,month:o,day:n,hours:r,minutes:d,seconds:l,milliseconds:c,zone:h}=i.makeParser(s.format)(e),p=n||(a||o?1:i.getDate()),u=a||i.getFullYear();let t=0;return a&&!o||(t=0<o?o-1:i.getMonth()),h?new y(Date.UTC(u,t,p,r,d,l,c+60*h.offset*1e3)):new y(u,t,p,r,d,l,c)}catch(t){return m.errorMessages.customDateFormatError(`Unable to parse provided input: ${e}, format: `+s.format),new y(\"\")}}format(t,e=this.localization.locale){if(t&&\"object\"==typeof t)return new Intl.DateTimeFormat(e,t).format(this);var e=this.replaceTokens(t||this.localization.format||n.dateFormats.L+\", \"+n.dateFormats.LT,this.localization.dateFormats),t=t=>new Intl.DateTimeFormat(this.localization.locale,t).format(this),s=(this.localization.hourCycle||(this.localization.hourCycle=o(this.localization.locale)),this.localization.hourCycle.startsWith(\"h1\")?\"h24\":this.localization.hourCycle),i=this.localization.hourCycle.startsWith(\"h2\")?\"h12\":this.localization.hourCycle;const a={yy:t({year:\"2-digit\"}),yyyy:this.year,M:t({month:\"numeric\"}),MM:this.monthFormatted,MMM:this.getAllMonths(\"short\")[this.getMonth()],MMMM:this.getAllMonths()[this.getMonth()],d:this.date,dd:this.dateFormatted,ddd:t({weekday:\"short\"}),dddd:t({weekday:\"long\"}),H:this.getHours(),HH:this.getHoursFormatted(s),h:12<this.hours?this.hours-12:this.hours,hh:this.getHoursFormatted(i),t:this.meridiem(),T:this.meridiem().toUpperCase(),m:this.minutes,mm:this.minutesFormatted,s:this.seconds,ss:this.secondsFormatted,fff:this.getMilliseconds()};return e.replace(this.dateTimeRegex,(t,e)=>e||a[t]).replace(/\\[/g,\"\").replace(/]/g,\"\")}}class x{constructor(){this.cache=new Map}locate(t){var e=this.cache.get(t);return e||(e=new t,this.cache.set(t,e),e)}}let s;const r=[{name:\"calendar\",className:m.css.daysContainer,unit:p.Unit.month,step:1},{name:\"months\",className:m.css.monthsContainer,unit:p.Unit.year,step:1},{name:\"years\",className:m.css.yearsContainer,unit:p.Unit.year,step:10},{name:\"decades\",className:m.css.decadesContainer,unit:p.Unit.year,step:100}];class d{constructor(){this._currentCalendarViewMode=0,this._viewDate=new y,this.minimumCalendarViewMode=0,this.currentView=\"calendar\"}get currentCalendarViewMode(){return this._currentCalendarViewMode}set currentCalendarViewMode(t){this._currentCalendarViewMode=t,this.currentView=r[t].name}get viewDate(){return this._viewDate}set viewDate(t){this._viewDate=t,this.options&&(this.options.viewDate=t)}refreshCurrentView(){this.currentView=r[this.currentCalendarViewMode].name}get isTwelveHour(){return[\"h12\",\"h11\"].includes(this.options.localization.hourCycle)}}class l{constructor(){this.optionsStore=s.locate(d)}isValid(e,t){if(!this._enabledDisabledDatesIsValid(t,e))return!1;if(t!==p.Unit.month&&t!==p.Unit.year&&0<this.optionsStore.options.restrictions.daysOfWeekDisabled?.length&&-1!==this.optionsStore.options.restrictions.daysOfWeekDisabled.indexOf(e.weekDay))return!1;if(!this._minMaxIsValid(t,e))return!1;if(t===p.Unit.hours||t===p.Unit.minutes||t===p.Unit.seconds){if(!this._enabledDisabledHoursIsValid(e))return!1;if(0!==this.optionsStore.options.restrictions.disabledTimeIntervals?.filter(t=>e.isBetween(t.from,t.to)).length)return!1}return!0}_enabledDisabledDatesIsValid(t,e){return t===p.Unit.month||!(0<this.optionsStore.options.restrictions.disabledDates.length&&this._isInDisabledDates(e)||0<this.optionsStore.options.restrictions.enabledDates.length&&!this._isInEnabledDates(e))}_isInDisabledDates(e){return!(!this.optionsStore.options.restrictions.disabledDates||0===this.optionsStore.options.restrictions.disabledDates.length)&&this.optionsStore.options.restrictions.disabledDates.find(t=>t.isSame(e,p.Unit.date))}_isInEnabledDates(e){return!this.optionsStore.options.restrictions.enabledDates||0===this.optionsStore.options.restrictions.enabledDates.length||this.optionsStore.options.restrictions.enabledDates.find(t=>t.isSame(e,p.Unit.date))}_isInDisabledHours(t){if(!this.optionsStore.options.restrictions.disabledHours||0===this.optionsStore.options.restrictions.disabledHours.length)return!1;const e=t.hours;return this.optionsStore.options.restrictions.disabledHours.find(t=>t===e)}_isInEnabledHours(t){if(!this.optionsStore.options.restrictions.enabledHours||0===this.optionsStore.options.restrictions.enabledHours.length)return!0;const e=t.hours;return this.optionsStore.options.restrictions.enabledHours.find(t=>t===e)}_minMaxIsValid(t,e){return!(this.optionsStore.options.restrictions.minDate&&e.isBefore(this.optionsStore.options.restrictions.minDate,t)||this.optionsStore.options.restrictions.maxDate&&e.isAfter(this.optionsStore.options.restrictions.maxDate,t))}_enabledDisabledHoursIsValid(t){return!(0<this.optionsStore.options.restrictions.disabledHours.length&&this._isInDisabledHours(t)||0<this.optionsStore.options.restrictions.enabledHours.length&&!this._isInEnabledHours(t))}dateRangeIsValid(t,e,s){if(this.optionsStore.options.dateRange&&(2===t.length||1===e))for(var i=t[0].clone.manipulate(1,p.Unit.date);!i.isSame(s,p.Unit.date);){if(!this.isValid(i))return!1;i.manipulate(1,p.Unit.date)}return!0}}class c{constructor(){this.subscribers=[]}subscribe(t){return this.subscribers.push(t),this.unsubscribe.bind(this,this.subscribers.length-1)}unsubscribe(t){this.subscribers.splice(t,1)}emit(e){this.subscribers.forEach(t=>{t(e)})}destroy(){this.subscribers=null,this.subscribers=[]}}class h{constructor(){this.triggerEvent=new c,this.viewUpdate=new c,this.updateDisplay=new c,this.action=new c,this.updateViewDate=new c}destroy(){this.triggerEvent.destroy(),this.viewUpdate.destroy(),this.updateDisplay.destroy(),this.action.destroy(),this.updateViewDate.destroy()}}const u={allowInputToggle:!1,container:void 0,dateRange:!1,debug:!1,defaultDate:void 0,display:{icons:{type:\"icons\",time:\"fa-solid fa-clock\",date:\"fa-solid fa-calendar\",up:\"fa-solid fa-arrow-up\",down:\"fa-solid fa-arrow-down\",previous:\"fa-solid fa-chevron-left\",next:\"fa-solid fa-chevron-right\",today:\"fa-solid fa-calendar-check\",clear:\"fa-solid fa-trash\",close:\"fa-solid fa-xmark\"},sideBySide:!1,calendarWeeks:!1,viewMode:\"calendar\",toolbarPlacement:\"bottom\",keepOpen:!1,buttons:{today:!1,clear:!1,close:!1},components:{calendar:!0,date:!0,month:!0,year:!0,decades:!0,clock:!0,hours:!0,minutes:!0,seconds:!1,useTwentyfourHour:void 0},inline:!1,theme:\"auto\"},keepInvalid:!1,localization:{clear:\"Clear selection\",close:\"Close the picker\",dateFormats:n.dateFormats,dayViewHeaderFormat:{month:\"long\",year:\"2-digit\"},decrementHour:\"Decrement Hour\",decrementMinute:\"Decrement Minute\",decrementSecond:\"Decrement Second\",format:n.format,hourCycle:n.hourCycle,incrementHour:\"Increment Hour\",incrementMinute:\"Increment Minute\",incrementSecond:\"Increment Second\",locale:n.locale,nextCentury:\"Next Century\",nextDecade:\"Next Decade\",nextMonth:\"Next Month\",nextYear:\"Next Year\",ordinal:n.ordinal,pickHour:\"Pick Hour\",pickMinute:\"Pick Minute\",pickSecond:\"Pick Second\",previousCentury:\"Previous Century\",previousDecade:\"Previous Decade\",previousMonth:\"Previous Month\",previousYear:\"Previous Year\",selectDate:\"Select Date\",selectDecade:\"Select Decade\",selectMonth:\"Select Month\",selectTime:\"Select Time\",selectYear:\"Select Year\",startOfTheWeek:0,today:\"Go to today\",toggleMeridiem:\"Toggle Meridiem\"},meta:{},multipleDates:!1,multipleDatesSeparator:\"; \",promptTimeOnDateChange:!1,promptTimeOnDateChangeTransitionDelay:200,restrictions:{minDate:void 0,maxDate:void 0,disabledDates:[],enabledDates:[],daysOfWeekDisabled:[],disabledTimeIntervals:[],disabledHours:[],enabledHours:[]},stepping:1,useCurrent:!0,viewDate:new y};function g(t,e){return t.constructor.name===y.name?t:t.constructor.name===Date.name?y.convert(t):\"string\"!=typeof t||(t=y.fromString(t,e),\"null\"===JSON.stringify(t))?null:t}function v(t,e,s){\"string\"==typeof t&&\"input\"!==e&&m.errorMessages.dateString();s=g(t,s);return s||m.errorMessages.failedToParseDate(e,t,\"input\"===e),s}function S(e,s,t,i){Array.isArray(s)||m.errorMessages.typeMismatch(e,t,\"array of DateTime or Date\");for(let t=0;t<s.length;t++){var a=s[t],o=v(a,e,i);o||m.errorMessages.typeMismatch(e,typeof a,\"DateTime or Date\"),o.setLocalization(i??n),s[t]=o}}function w(t,e,s){Array.isArray(e)&&!e.some(t=>\"number\"!=typeof t)||m.errorMessages.typeMismatch(t,s,\"array of numbers\")}function f(i){return({value:t,providedType:e,localization:s})=>{t=v(t,i,s);if(void 0!==t)return t.setLocalization(s),t;m.errorMessages.typeMismatch(i,e,\"DateTime or Date\")}}function b(t){const e=f(t);return t=>void 0===t.value?t.value:e(t)}function D(s,i,a){return({value:t,providedType:e})=>void 0===t?[]:(w(s,t,e),t.some(t=>t<i||a<t)&&m.errorMessages.numbersOutOfRange(s,i,a),t)}function _(t){return D(t,0,23)}function k(i){return({value:t,providedType:e,localization:s})=>void 0===t?[]:(S(i,t,e,s),t)}function C(s){return({value:t,path:e})=>(s.includes(t)||m.errorMessages.unexpectedOptionValue(e.substring(1),t,s),t)}const I=Object.freeze({defaultDate:f(\"defaultDate\"),viewDate:f(\"viewDate\"),minDate:b(\"restrictions.minDate\"),maxDate:b(\"restrictions.maxDate\"),disabledHours:_(\"restrictions.disabledHours\"),enabledHours:_(\"restrictions.enabledHours\"),disabledDates:k(\"restrictions.disabledDates\"),enabledDates:k(\"restrictions.enabledDates\"),daysOfWeekDisabled:D(\"restrictions.daysOfWeekDisabled\",0,6),disabledTimeIntervals:({key:o,value:t,providedType:e,localization:n})=>{if(void 0===t)return[];Array.isArray(t)||m.errorMessages.typeMismatch(o,e,\"array of { from: DateTime|Date, to: DateTime|Date }\");const r=t;for(let a=0;a<r.length;a++)Object.keys(r[a]).forEach(t=>{var e=`${o}[${a}].`+t,s=r[a][t],i=v(s,e,n);i||m.errorMessages.typeMismatch(e,typeof s,\"DateTime or Date\"),i.setLocalization(n),r[a][t]=i});return r},toolbarPlacement:C([\"top\",\"bottom\",\"default\"]),type:C([\"icons\",\"sprites\"]),viewMode:C([\"clock\",\"calendar\",\"months\",\"years\",\"decades\"]),theme:C([\"light\",\"dark\",\"auto\"]),meta:({value:t})=>t,dayViewHeaderFormat:({value:t})=>t,container:({value:t,path:e})=>(t&&!(t instanceof HTMLElement||t instanceof Element||t?.appendChild)&&m.errorMessages.typeMismatch(e.substring(1),typeof t,\"HTMLElement\"),t),useTwentyfourHour:({value:t,path:e,providedType:s,defaultType:i})=>{if(m.errorMessages.deprecatedWarning(\"useTwentyfourHour\",'Please use \"options.localization.hourCycle\" instead'),void 0===t||\"boolean\"===s)return t;m.errorMessages.typeMismatch(e,s,i)},hourCycle:C([\"h11\",\"h12\",\"h23\",\"h24\"])});function P(t){return(I[t.key]||(({value:t,defaultType:e,providedType:s,path:i})=>{switch(e){case\"boolean\":return\"true\"===t||!0===t;case\"number\":return+t;case\"string\":return t.toString();case\"object\":return{};case\"function\":return t;default:m.errorMessages.typeMismatch(i,s,e)}}))(t)}class M{static deepCopy(s){const i={};return Object.keys(s).forEach(t=>{var e=s[t];e instanceof y?i[t]=e.clone:e instanceof Date?i[t]=new Date(e.valueOf()):\"object\"!=typeof(i[t]=e)||e instanceof HTMLElement||e instanceof Element||Array.isArray(e)||(i[t]=M.deepCopy(e))}),i}static objectPath(t,e){return(t=\".\"===t.charAt(0)?t.slice(1):t)?t.split(\".\").reduce((t,e)=>M.isValue(t)||M.isValue(t[e])?t[e]:void 0,e):e}static spread(o,n,r,d=\"\"){const l=M.objectPath(d,u);var t=Object.keys(o).filter(t=>!Object.keys(l).includes(t));if(0<t.length){const i=M.getFlattenDefaultOptions();t=t.map(e=>{let t=`\"${d}.${e}\" in not a known option.`;var s=i.find(t=>t.includes(e));return s&&(t+=` Did you mean \"${s}\"?`),t});m.errorMessages.unexpectedOptions(t)}Object.keys(o).filter(t=>\"__proto__\"!==t&&\"constructor\"!==t).forEach(t=>{\".\"===(d+=\".\"+t).charAt(0)&&(d=d.slice(1));var e=l[t],s=typeof o[t],i=typeof e,a=o[t];d=(null==a?n[t]=a:\"object\"!=typeof e||Array.isArray(o[t])||e instanceof Date||M.ignoreProperties.includes(t)?n[t]=M.processKey(t,a,s,i,d,r):M.spread(o[t],n[t],r,d),d.substring(0,d.lastIndexOf(\".\"+t)))})}static processKey(t,e,s,i,a,o){return P({key:t,value:e,providedType:s,defaultType:i,path:a,localization:o})}static _mergeOptions(t,e){var s=M.deepCopy(e),e=\"default\"!==e.localization?.locale?e.localization:t?.localization||u.localization;return M.spread(t,s,e,\"\"),s}static _dataToOptions(t,i){const a=JSON.parse(JSON.stringify(t.dataset));if(a?.tdTargetInput&&delete a.tdTargetInput,a?.tdTargetToggle&&delete a.tdTargetToggle,!a||0===Object.keys(a).length||a.constructor!==DOMStringMap)return i;const o={};t=t=>{const e={};return Object.keys(t).forEach(t=>{e[t.toLowerCase()]=t}),e};const n=this.normalizeObject(t),r=t(i);return Object.keys(a).filter(t=>t.startsWith(m.dataKey)).map(t=>t.substring(2)).forEach(t=>{let e=r[t.toLowerCase()];var s;t.includes(\"_\")?(s=t.split(\"_\"),void 0!==(e=r[s[0].toLowerCase()])&&i[e].constructor===Object&&(o[e]=n(s,1,i[e],a[\"td\"+t]))):void 0!==e&&(o[e]=a[\"td\"+t])}),this._mergeOptions(o,i)}static normalizeObject(n){const r=(t,e,s,i)=>{var a=n(s)[t[e].toLowerCase()],o={};return void 0!==a&&(s[a].constructor===Object?(e++,o[a]=r(t,e,s[a],i)):o[a]=i),o};return r}static _dateTypeCheck(t,e){return g(t,e)}static _typeCheckDateArray(t,e,s,i){return S(t,e,s,i)}static _typeCheckNumberArray(t,e,s){return w(t,e,s)}static dateConversion(t,e,s){return v(t,e,s)}static getFlattenDefaultOptions(){if(!this._flattenDefaults){const i=(t,s=[])=>Array.isArray(t)?[]:Object(t)===t?Object.entries(t).flatMap(([t,e])=>i(e,[...s,t])):s.join(\".\");this._flattenDefaults=i(u)}return this._flattenDefaults}static _validateConflicts(t){!t.display.sideBySide||t.display.components.clock&&(t.display.components.hours||t.display.components.minutes||t.display.components.seconds)||m.errorMessages.conflictingConfiguration(\"Cannot use side by side mode without the clock components\"),t.restrictions.minDate&&t.restrictions.maxDate&&(t.restrictions.minDate.isAfter(t.restrictions.maxDate)&&m.errorMessages.conflictingConfiguration(\"minDate is after maxDate\"),t.restrictions.maxDate.isBefore(t.restrictions.minDate))&&m.errorMessages.conflictingConfiguration(\"maxDate is before minDate\"),t.multipleDates&&t.dateRange&&m.errorMessages.conflictingConfiguration('Cannot uss option \"multipleDates\" with \"dateRange\"')}}M.ignoreProperties=[\"meta\",\"dayViewHeaderFormat\",\"container\",\"dateForms\",\"ordinal\"],M.isValue=t=>null!=t;class E{constructor(){this._dates=[],this.optionsStore=s.locate(d),this.validation=s.locate(l),this._eventEmitters=s.locate(h)}get picked(){return this._dates}get lastPicked(){return this._dates[this.lastPickedIndex]}get lastPickedIndex(){return 0===this._dates.length?0:this._dates.length-1}formatInput(t){return t?(t.localization=this.optionsStore.options.localization,t.format()):\"\"}parseInput(t){return M.dateConversion(t,\"input\",this.optionsStore.options.localization)}setFromInput(t,e){t?(t=this.parseInput(t))&&(t.setLocalization(this.optionsStore.options.localization),this.setValue(t,e)):this.setValue(void 0,e)}add(t){this._dates.push(t)}isPicked(e,t){if(!t)return void 0!==this._dates.find(t=>t===e);const s=a(t),i=e.format(s);return void 0!==this._dates.map(t=>t.format(s)).find(t=>t===i)}pickedIndex(t,e){if(!e)return this._dates.indexOf(t);const s=a(e);e=t.format(s);return this._dates.map(t=>t.format(s)).indexOf(e)}clear(){this.optionsStore.unset=!0,this._eventEmitters.triggerEvent.emit({type:m.events.change,date:void 0,oldDate:this.lastPicked,isClear:!0,isValid:!0}),this._dates=[],this.optionsStore.input&&(this.optionsStore.input.value=\"\"),this._eventEmitters.updateDisplay.emit(\"all\")}static getStartEndYear(t,e){var s=t/10,t=Math.floor(e/t)*t;return[t,t+9*s,Math.floor(e/s)*s]}updateInput(e){if(this.optionsStore.input){let t=this.formatInput(e);(this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange)&&(t=this._dates.map(t=>this.formatInput(t)).join(this.optionsStore.options.multipleDatesSeparator)),this.optionsStore.input.value!=t&&(this.optionsStore.input.value=t)}}setValue(t,e){var s=void 0===e,i=!t&&s;let a=this.optionsStore.unset?null:this._dates[e];!a&&!this.optionsStore.unset&&s&&i&&(a=this.lastPicked),t&&a?.isSame(t)?this.updateInput(t):t?(e=e||0,t=t.clone,1!==this.optionsStore.options.stepping&&(t.minutes=Math.round(t.minutes/this.optionsStore.options.stepping)*this.optionsStore.options.stepping,t.seconds=0),this.validation.isValid(t)&&this.validation.dateRangeIsValid(this._dates,e,t)?(this._dates[e]=t,this._eventEmitters.updateViewDate.emit(t.clone),this.updateInput(t),this.optionsStore.unset=!1,this._eventEmitters.updateDisplay.emit(\"all\"),this._eventEmitters.triggerEvent.emit({type:m.events.change,date:t,oldDate:a,isClear:i,isValid:!0})):(this.optionsStore.options.keepInvalid&&(this._dates[e]=t,this._eventEmitters.updateViewDate.emit(t.clone),this.updateInput(t),this._eventEmitters.triggerEvent.emit({type:m.events.change,date:t,oldDate:a,isClear:i,isValid:!1})),this._eventEmitters.triggerEvent.emit({type:m.events.error,reason:m.errorMessages.failedToSetInvalidDate,date:t,oldDate:a}))):this._setValueNull(i,e,a)}_setValueNull(t,e,s){!this.optionsStore.options.multipleDates||1===this._dates.length||t?(this.optionsStore.unset=!0,this._dates=[]):this._dates.splice(e,1),this.updateInput(),this._eventEmitters.triggerEvent.emit({type:m.events.change,date:void 0,oldDate:s,isClear:t,isValid:!0}),this._eventEmitters.updateDisplay.emit(\"all\")}}(O=z=z||{}).next=\"next\",O.previous=\"previous\",O.changeCalendarView=\"changeCalendarView\",O.selectMonth=\"selectMonth\",O.selectYear=\"selectYear\",O.selectDecade=\"selectDecade\",O.selectDay=\"selectDay\",O.selectHour=\"selectHour\",O.selectMinute=\"selectMinute\",O.selectSecond=\"selectSecond\",O.incrementHours=\"incrementHours\",O.incrementMinutes=\"incrementMinutes\",O.incrementSeconds=\"incrementSeconds\",O.decrementHours=\"decrementHours\",O.decrementMinutes=\"decrementMinutes\",O.decrementSeconds=\"decrementSeconds\",O.toggleMeridiem=\"toggleMeridiem\",O.togglePicker=\"togglePicker\",O.showClock=\"showClock\",O.showHours=\"showHours\",O.showMinutes=\"showMinutes\",O.showSeconds=\"showSeconds\",O.clear=\"clear\",O.close=\"close\",O.today=\"today\";var T=z;class N{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var t,e=document.createElement(\"div\"),{rangeHoverEvent:s,rangeHoverOutEvent:i}=(e.classList.add(m.css.daysContainer),e.append(...this._daysOfTheWeek()),this.optionsStore.options.display.calendarWeeks&&((t=document.createElement(\"div\")).classList.add(m.css.calendarWeeks,m.css.noHighlight),e.appendChild(t)),this.handleMouseEvents(e));for(let t=0;t<42;t++){0!==t&&t%7==0&&this.optionsStore.options.display.calendarWeeks&&((a=document.createElement(\"div\")).classList.add(m.css.calendarWeeks,m.css.noHighlight),e.appendChild(a));var a=document.createElement(\"div\");a.setAttribute(\"data-action\",T.selectDay),e.appendChild(a),matchMedia(\"(hover: hover)\").matches&&this.optionsStore.options.dateRange&&(a.addEventListener(\"mouseover\",s),a.addEventListener(\"mouseout\",i))}return e}_update(t,s){t=t.getElementsByClassName(m.css.daysContainer)[0];this._updateCalendarView(t);const i=this.optionsStore.viewDate.clone.startOf(p.Unit.month).startOf(\"weekDay\",this.optionsStore.options.localization.startOfTheWeek).manipulate(12,p.Unit.hours);[...t.querySelectorAll(\".\"+m.css.calendarWeeks)].filter(t=>\"#\"!==t.innerText).forEach(t=>{t.innerText=\"\"+i.week}),t.querySelectorAll(`[data-action=\"${T.selectDay}\"]`).forEach(t=>{var e=[];e.push(m.css.day),i.isBefore(this.optionsStore.viewDate,p.Unit.month)&&e.push(m.css.old),i.isAfter(this.optionsStore.viewDate,p.Unit.month)&&e.push(m.css.new),this.optionsStore.unset||this.optionsStore.options.multipleDates||!this.dates.isPicked(i,p.Unit.date)||e.push(m.css.active),this.validation.isValid(i,p.Unit.date)||e.push(m.css.disabled),i.isSame(new y,p.Unit.date)&&e.push(m.css.today),0!==i.weekDay&&6!==i.weekDay||e.push(m.css.weekend),this._handleDateRange(i,e),s(p.Unit.date,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",this._dateToDataValue(i)),t.setAttribute(\"data-day\",\"\"+i.date),t.innerText=i.parts(void 0,{day:\"numeric\"}).day,i.manipulate(1,p.Unit.date)})}_dateToDataValue(t){return y.isValid(t)?`${t.year}-${t.monthFormatted}-`+t.dateFormatted:\"\"}_handleDateRange(t,e){var s=this.dates.picked[0],i=this.dates.picked[1];this.optionsStore.options.dateRange&&(t.isBetween(s,i,p.Unit.date)&&e.push(m.css.rangeIn),t.isSame(s,p.Unit.date)&&e.push(m.css.rangeStart),t.isSame(i,p.Unit.date))&&e.push(m.css.rangeEnd)}handleMouseEvents(h){return{rangeHoverEvent:e=>{e=e?.currentTarget;if(1===this.dates.picked.length&&!e.classList.contains(m.css.disabled)){var s=[...h.querySelectorAll(\".day\")];const r=e.getAttribute(\"data-value\");var i=y.fromString(r,{format:\"yyyy-MM-dd\"});const d=s.findIndex(t=>t.getAttribute(\"data-value\")===r);var a=this.dates.picked[0],o=this.dates.picked[1];const l=this._dateToDataValue(a),c=s.findIndex(t=>t.getAttribute(\"data-value\")===l);var n=s[c];i.isSame(a,p.Unit.date)||e.classList.remove(m.css.rangeStart),i.isSame(o,p.Unit.date)||e.classList.remove(m.css.rangeEnd);let t;t=i.isBefore(a)?(e.classList.add(m.css.rangeStart),n?.classList.remove(m.css.rangeStart),n?.classList.add(m.css.rangeEnd),(t,e)=>e>d&&e<c):(e.classList.add(m.css.rangeEnd),n?.classList.remove(m.css.rangeEnd),n?.classList.add(m.css.rangeStart),(t,e)=>e<d&&e>c),s.filter(t).forEach(t=>{t.classList.add(m.css.rangeIn)})}},rangeHoverOutEvent:t=>{var e=[...h.querySelectorAll(\".day\")];1===this.dates.picked.length&&e.forEach(t=>t.classList.remove(m.css.rangeIn)),1!==this.dates.picked.length||(e=t?.currentTarget,(t=new y(e.getAttribute(\"data-value\"))).isSame(this.dates.picked[0],p.Unit.date)||e.classList.remove(m.css.rangeStart),t.isSame(this.dates.picked[1],p.Unit.date))||e.classList.remove(m.css.rangeEnd)}}}_updateCalendarView(t){var e,s;\"calendar\"===this.optionsStore.currentView&&([t,e,s]=t.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),e.setAttribute(m.css.daysContainer,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat)),this.optionsStore.options.display.components.month?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.month),p.Unit.month)?t.classList.remove(m.css.disabled):t.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.month),p.Unit.month)?s.classList.remove(m.css.disabled):s.classList.add(m.css.disabled))}_daysOfTheWeek(){var t,e=this.optionsStore.viewDate.clone.startOf(\"weekDay\",this.optionsStore.options.localization.startOfTheWeek).startOf(p.Unit.date),s=[];document.createElement(\"div\"),this.optionsStore.options.display.calendarWeeks&&((t=document.createElement(\"div\")).classList.add(m.css.calendarWeeks,m.css.noHighlight),t.innerText=\"#\",s.push(t));for(let t=0;t<7;t++){var i=document.createElement(\"div\");i.classList.add(m.css.dayOfTheWeek,m.css.noHighlight),i.innerText=e.format({weekday:\"short\"}),e.manipulate(1,p.Unit.date),s.push(i)}return s}}class F{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.monthsContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectMonth),e.appendChild(s)}return e}_update(t,i){var e,s,a,t=t.getElementsByClassName(m.css.monthsContainer)[0];\"months\"===this.optionsStore.currentView&&([e,s,a]=t.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),s.setAttribute(m.css.monthsContainer,this.optionsStore.viewDate.format({year:\"numeric\"})),this.optionsStore.options.display.components.year?s.classList.remove(m.css.disabled):s.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.year),p.Unit.year)?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.year),p.Unit.year)?a.classList.remove(m.css.disabled):a.classList.add(m.css.disabled));const o=this.optionsStore.viewDate.clone.startOf(p.Unit.year);t.querySelectorAll(`[data-action=\"${T.selectMonth}\"]`).forEach((t,e)=>{var s=[];s.push(m.css.month),!this.optionsStore.unset&&this.dates.isPicked(o,p.Unit.month)&&s.push(m.css.active),this.validation.isValid(o,p.Unit.month)||s.push(m.css.disabled),i(p.Unit.month,o,s,t),t.classList.remove(...t.classList),t.classList.add(...s),t.setAttribute(\"data-value\",\"\"+e),t.innerText=\"\"+o.format({month:\"short\"}),o.manipulate(1,p.Unit.month)})}}class ${constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.yearsContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectYear),e.appendChild(s)}return e}_update(t,s){this._startYear=this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.year),this._endYear=this.optionsStore.viewDate.clone.manipulate(10,p.Unit.year);var e,i,a,t=t.getElementsByClassName(m.css.yearsContainer)[0];\"years\"===this.optionsStore.currentView&&([e,i,a]=t.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),i.setAttribute(m.css.yearsContainer,this._startYear.format({year:\"numeric\"})+\"-\"+this._endYear.format({year:\"numeric\"})),this.optionsStore.options.display.components.decades?i.classList.remove(m.css.disabled):i.classList.add(m.css.disabled),this.validation.isValid(this._startYear,p.Unit.year)?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled),this.validation.isValid(this._endYear,p.Unit.year)?a.classList.remove(m.css.disabled):a.classList.add(m.css.disabled));const o=this.optionsStore.viewDate.clone.startOf(p.Unit.year).manipulate(-1,p.Unit.year);t.querySelectorAll(`[data-action=\"${T.selectYear}\"]`).forEach(t=>{var e=[];e.push(m.css.year),!this.optionsStore.unset&&this.dates.isPicked(o,p.Unit.year)&&e.push(m.css.active),this.validation.isValid(o,p.Unit.year)||e.push(m.css.disabled),s(p.Unit.year,o,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+o.year),t.innerText=o.format({year:\"numeric\"}),o.manipulate(1,p.Unit.year)})}}class B{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.decadesContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectDecade),e.appendChild(s)}return e}_update(t,a){var[e,s]=E.getStartEndYear(100,this.optionsStore.viewDate.year),e=(this._startDecade=this.optionsStore.viewDate.clone.startOf(p.Unit.year),this._startDecade.year=e,this._endDecade=this.optionsStore.viewDate.clone.startOf(p.Unit.year),this._endDecade.year=s,t.getElementsByClassName(m.css.decadesContainer)[0]);const[o,i,n]=e.parentElement.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\"),r=(\"decades\"===this.optionsStore.currentView&&(i.setAttribute(m.css.decadesContainer,this._startDecade.format({year:\"numeric\"})+\"-\"+this._endDecade.format({year:\"numeric\"})),this.validation.isValid(this._startDecade,p.Unit.year)?o.classList.remove(m.css.disabled):o.classList.add(m.css.disabled),this.validation.isValid(this._endDecade,p.Unit.year)?n.classList.remove(m.css.disabled):n.classList.add(m.css.disabled)),this.dates.picked.map(t=>t.year));e.querySelectorAll(`[data-action=\"${T.selectDecade}\"]`).forEach((t,e)=>{if(0===e)return t.classList.add(m.css.old),this._startDecade.year-10<0?(t.textContent=\" \",o.classList.add(m.css.disabled),t.classList.add(m.css.disabled),void t.setAttribute(\"data-value\",\"\")):(t.innerText=this._startDecade.clone.manipulate(-10,p.Unit.year).format({year:\"numeric\"}),void t.setAttribute(\"data-value\",\"\"+this._startDecade.year));e=[];e.push(m.css.decade);const s=this._startDecade.year,i=this._startDecade.year+9;!this.optionsStore.unset&&0<r.filter(t=>t>=s&&t<=i).length&&e.push(m.css.active),a(\"decade\",this._startDecade,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+this._startDecade.year),t.innerText=\"\"+this._startDecade.format({year:\"numeric\"}),this._startDecade.manipulate(10,p.Unit.year)})}}class W{constructor(){this._gridColumns=\"\",this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l)}getPicker(t){var e=document.createElement(\"div\");return e.classList.add(m.css.clockContainer),e.append(...this._grid(t)),e}_update(t){var e,t=t.getElementsByClassName(m.css.clockContainer)[0],s=(this.dates.lastPicked||this.optionsStore.viewDate).clone;t.querySelectorAll(\".disabled\").forEach(t=>t.classList.remove(m.css.disabled)),this.optionsStore.options.display.components.hours&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.hours),p.Unit.hours)||t.querySelector(`[data-action=${T.incrementHours}]`).classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.hours),p.Unit.hours)||t.querySelector(`[data-action=${T.decrementHours}]`).classList.add(m.css.disabled),t.querySelector(`[data-time-component=${p.Unit.hours}]`).innerText=s.getHoursFormatted(this.optionsStore.options.localization.hourCycle)),this.optionsStore.options.display.components.minutes&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.minutes),p.Unit.minutes)||t.querySelector(`[data-action=${T.incrementMinutes}]`).classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.minutes),p.Unit.minutes)||t.querySelector(`[data-action=${T.decrementMinutes}]`).classList.add(m.css.disabled),t.querySelector(`[data-time-component=${p.Unit.minutes}]`).innerText=s.minutesFormatted),this.optionsStore.options.display.components.seconds&&(this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(1,p.Unit.seconds),p.Unit.seconds)||t.querySelector(`[data-action=${T.incrementSeconds}]`).classList.add(m.css.disabled),this.validation.isValid(this.optionsStore.viewDate.clone.manipulate(-1,p.Unit.seconds),p.Unit.seconds)||t.querySelector(`[data-action=${T.decrementSeconds}]`).classList.add(m.css.disabled),t.querySelector(`[data-time-component=${p.Unit.seconds}]`).innerText=s.secondsFormatted),this.optionsStore.isTwelveHour&&((e=t.querySelector(`[data-action=${T.toggleMeridiem}]`)).innerText=s.meridiem(),this.validation.isValid(s.clone.manipulate(12<=s.hours?-12:12,p.Unit.hours))?e.classList.remove(m.css.disabled):e.classList.add(m.css.disabled)),t.style.gridTemplateAreas=`\"${this._gridColumns}\"`}_grid(e){this._gridColumns=\"\";const s=[],i=[],a=[],o=document.createElement(\"div\"),n=e(this.optionsStore.options.display.icons.up),r=e(this.optionsStore.options.display.icons.down),d=(o.classList.add(m.css.separator,m.css.noHighlight),o.cloneNode(!0));d.innerHTML=\":\";e=(t=!1)=>(t?d:o).cloneNode(!0);if(this.optionsStore.options.display.components.hours){let t=document.createElement(\"div\");t.setAttribute(\"title\",this.optionsStore.options.localization.incrementHour),t.setAttribute(\"data-action\",T.incrementHours),t.appendChild(n.cloneNode(!0)),s.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.pickHour),t.setAttribute(\"data-action\",T.showHours),t.setAttribute(\"data-time-component\",p.Unit.hours),i.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.decrementHour),t.setAttribute(\"data-action\",T.decrementHours),t.appendChild(r.cloneNode(!0)),a.push(t),this._gridColumns+=\"a\"}if(this.optionsStore.options.display.components.minutes){this._gridColumns+=\" a\",this.optionsStore.options.display.components.hours&&(s.push(e()),i.push(e(!0)),a.push(e()),this._gridColumns+=\" a\");let t=document.createElement(\"div\");t.setAttribute(\"title\",this.optionsStore.options.localization.incrementMinute),t.setAttribute(\"data-action\",T.incrementMinutes),t.appendChild(n.cloneNode(!0)),s.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.pickMinute),t.setAttribute(\"data-action\",T.showMinutes),t.setAttribute(\"data-time-component\",p.Unit.minutes),i.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.decrementMinute),t.setAttribute(\"data-action\",T.decrementMinutes),t.appendChild(r.cloneNode(!0)),a.push(t)}if(this.optionsStore.options.display.components.seconds){this._gridColumns+=\" a\",this.optionsStore.options.display.components.minutes&&(s.push(e()),i.push(e(!0)),a.push(e()),this._gridColumns+=\" a\");let t=document.createElement(\"div\");t.setAttribute(\"title\",this.optionsStore.options.localization.incrementSecond),t.setAttribute(\"data-action\",T.incrementSeconds),t.appendChild(n.cloneNode(!0)),s.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.pickSecond),t.setAttribute(\"data-action\",T.showSeconds),t.setAttribute(\"data-time-component\",p.Unit.seconds),i.push(t),(t=document.createElement(\"div\")).setAttribute(\"title\",this.optionsStore.options.localization.decrementSecond),t.setAttribute(\"data-action\",T.decrementSeconds),t.appendChild(r.cloneNode(!0)),a.push(t)}if(this.optionsStore.isTwelveHour){this._gridColumns+=\" a\";let t=e();s.push(t);var l=document.createElement(\"button\");l.setAttribute(\"title\",this.optionsStore.options.localization.toggleMeridiem),l.setAttribute(\"data-action\",T.toggleMeridiem),l.setAttribute(\"tabindex\",\"-1\"),m.css.toggleMeridiem.includes(\",\")?l.classList.add(...m.css.toggleMeridiem.split(\",\")):l.classList.add(m.css.toggleMeridiem),(t=document.createElement(\"div\")).classList.add(m.css.noHighlight),t.appendChild(l),i.push(t),t=e(),a.push(t)}return this._gridColumns=this._gridColumns.trim(),[...s,...i,...a]}}class q{constructor(){this.optionsStore=s.locate(d),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.hourContainer);for(let t=0;t<(this.optionsStore.isTwelveHour?12:24);t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectHour),e.appendChild(s)}return e}_update(t,s){t=t.getElementsByClassName(m.css.hourContainer)[0];const i=this.optionsStore.viewDate.clone.startOf(p.Unit.date);t.querySelectorAll(`[data-action=\"${T.selectHour}\"]`).forEach(t=>{var e=[];e.push(m.css.hour),this.validation.isValid(i,p.Unit.hours)||e.push(m.css.disabled),s(p.Unit.hours,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+i.hours),t.innerText=i.getHoursFormatted(this.optionsStore.options.localization.hourCycle),i.manipulate(1,p.Unit.hours)})}}class Y{constructor(){this.optionsStore=s.locate(d),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\"),s=(e.classList.add(m.css.minuteContainer),1===this.optionsStore.options.stepping?5:this.optionsStore.options.stepping);for(let t=0;t<60/s;t++){var i=document.createElement(\"div\");i.setAttribute(\"data-action\",T.selectMinute),e.appendChild(i)}return e}_update(t,s){t=t.getElementsByClassName(m.css.minuteContainer)[0];const i=this.optionsStore.viewDate.clone.startOf(p.Unit.hours),a=1===this.optionsStore.options.stepping?5:this.optionsStore.options.stepping;t.querySelectorAll(`[data-action=\"${T.selectMinute}\"]`).forEach(t=>{var e=[];e.push(m.css.minute),this.validation.isValid(i,p.Unit.minutes)||e.push(m.css.disabled),s(p.Unit.minutes,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+i.minutes),t.innerText=i.minutesFormatted,i.manipulate(a,p.Unit.minutes)})}}class j{constructor(){this.optionsStore=s.locate(d),this.validation=s.locate(l)}getPicker(){var e=document.createElement(\"div\");e.classList.add(m.css.secondContainer);for(let t=0;t<12;t++){var s=document.createElement(\"div\");s.setAttribute(\"data-action\",T.selectSecond),e.appendChild(s)}return e}_update(t,s){t=t.getElementsByClassName(m.css.secondContainer)[0];const i=this.optionsStore.viewDate.clone.startOf(p.Unit.minutes);t.querySelectorAll(`[data-action=\"${T.selectSecond}\"]`).forEach(t=>{var e=[];e.push(m.css.second),this.validation.isValid(i,p.Unit.seconds)||e.push(m.css.disabled),s(p.Unit.seconds,i,e,t),t.classList.remove(...t.classList),t.classList.add(...e),t.setAttribute(\"data-value\",\"\"+i.seconds),t.innerText=i.secondsFormatted,i.manipulate(5,p.Unit.seconds)})}}class L{static toggle(t){t.classList.contains(m.css.show)?this.hide(t):this.show(t)}static showImmediately(t){t.classList.remove(m.css.collapsing),t.classList.add(m.css.collapse,m.css.show),t.style.height=\"\"}static show(t){t.classList.contains(m.css.collapsing)||t.classList.contains(m.css.show)||(t.style.height=\"0\",t.classList.remove(m.css.collapse),t.classList.add(m.css.collapsing),setTimeout(()=>{L.showImmediately(t)},this.getTransitionDurationFromElement(t)),t.style.height=t.scrollHeight+\"px\")}static hideImmediately(t){t&&(t.classList.remove(m.css.collapsing,m.css.show),t.classList.add(m.css.collapse))}static hide(t){!t.classList.contains(m.css.collapsing)&&t.classList.contains(m.css.show)&&(t.style.height=t.getBoundingClientRect().height+\"px\",t.offsetHeight,t.classList.remove(m.css.collapse,m.css.show),t.classList.add(m.css.collapsing),t.style.height=\"\",setTimeout(()=>{L.hideImmediately(t)},this.getTransitionDurationFromElement(t)))}}L.getTransitionDurationFromElement=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:s}=window.getComputedStyle(t);var t=Number.parseFloat(e),i=Number.parseFloat(s);return t||i?(e=e.split(\",\")[0],s=s.split(\",\")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(s))):0};class U{constructor(){this._isVisible=!1,this._documentClickEvent=t=>{this.optionsStore.options.debug||window.debug||!this._isVisible||t.composedPath().includes(this.widget)||t.composedPath()?.includes(this.optionsStore.element)||this.hide()},this._actionsClickEvent=t=>{this._eventEmitters.action.emit({e:t})},this.optionsStore=s.locate(d),this.validation=s.locate(l),this.dates=s.locate(E),this.dateDisplay=s.locate(N),this.monthDisplay=s.locate(F),this.yearDisplay=s.locate($),this.decadeDisplay=s.locate(B),this.timeDisplay=s.locate(W),this.hourDisplay=s.locate(q),this.minuteDisplay=s.locate(Y),this.secondDisplay=s.locate(j),this._eventEmitters=s.locate(h),this._widget=void 0,this._eventEmitters.updateDisplay.subscribe(t=>{this._update(t)})}get widget(){return this._widget}get dateContainer(){return this.widget?.querySelector(\"div.\"+m.css.dateContainer)}get timeContainer(){return this.widget?.querySelector(\"div.\"+m.css.timeContainer)}get isVisible(){return this._isVisible}_update(t){if(this.widget)switch(t){case p.Unit.seconds:this.secondDisplay._update(this.widget,this.paint);break;case p.Unit.minutes:this.minuteDisplay._update(this.widget,this.paint);break;case p.Unit.hours:this.hourDisplay._update(this.widget,this.paint);break;case p.Unit.date:this.dateDisplay._update(this.widget,this.paint);break;case p.Unit.month:this.monthDisplay._update(this.widget,this.paint);break;case p.Unit.year:this.yearDisplay._update(this.widget,this.paint);break;case\"clock\":this._hasTime&&(this.timeDisplay._update(this.widget),this._update(p.Unit.hours),this._update(p.Unit.minutes),this._update(p.Unit.seconds));break;case\"calendar\":this._update(p.Unit.date),this._update(p.Unit.year),this._update(p.Unit.month),this.decadeDisplay._update(this.widget,this.paint),this._updateCalendarHeader();break;case\"all\":this._hasTime&&this._update(\"clock\"),this._hasDate&&this._update(\"calendar\")}}paint(t,e,s,i){}show(){null==this.widget&&(this._showSetDefaultIfNeeded(),this._buildWidget(),this._updateTheme(),this._showSetupViewMode(),this.optionsStore.options.display.inline?this.optionsStore.element.appendChild(this.widget):((this.optionsStore.options?.container||document.body).appendChild(this.widget),this.createPopup(this.optionsStore.element,this.widget,{modifiers:[{name:\"eventListeners\",enabled:!0}],placement:\"rtl\"===document.documentElement.dir?\"bottom-end\":\"bottom-start\"}).then()),\"clock\"==this.optionsStore.options.display.viewMode&&this._eventEmitters.action.emit({e:null,action:T.showClock}),this.widget.querySelectorAll(\"[data-action]\").forEach(t=>t.addEventListener(\"click\",this._actionsClickEvent)),this._hasTime)&&this.optionsStore.options.display.sideBySide&&(this.timeDisplay._update(this.widget),this.widget.getElementsByClassName(m.css.clockContainer)[0].style.display=\"grid\"),this.widget.classList.add(m.css.show),this.optionsStore.options.display.inline||(this.updatePopup(),document.addEventListener(\"click\",this._documentClickEvent)),this._eventEmitters.triggerEvent.emit({type:m.events.show}),this._isVisible=!0}_showSetupViewMode(){var t=this._hasTime&&!this._hasDate;t?(this.optionsStore.currentView=\"clock\",this._eventEmitters.action.emit({e:null,action:T.showClock})):this.optionsStore.currentCalendarViewMode||(this.optionsStore.currentCalendarViewMode=this.optionsStore.minimumCalendarViewMode),t||\"clock\"===this.optionsStore.options.display.viewMode||(this._hasTime&&(this.optionsStore.options.display.sideBySide?L.show(this.timeContainer):L.hideImmediately(this.timeContainer)),L.show(this.dateContainer)),this._hasDate&&this._showMode()}_showSetDefaultIfNeeded(){if(0==this.dates.picked.length){if(this.optionsStore.options.useCurrent&&!this.optionsStore.options.defaultDate){var s=(new y).setLocalization(this.optionsStore.options.localization);if(!this.optionsStore.options.keepInvalid){let t=0,e=1;for(this.optionsStore.options.restrictions.maxDate?.isBefore(s)&&(e=-1);!this.validation.isValid(s)&&31<t;)s.manipulate(e,p.Unit.date),t++}this.dates.setValue(s)}this.optionsStore.options.defaultDate&&this.dates.setValue(this.optionsStore.options.defaultDate)}}async createPopup(t,e,s){let i;var a;(i=window?.Popper?window?.Popper?.createPopper:(a=(await import(\"@popperjs/core\"))[\"createPopper\"],a))&&(this._popperInstance=i(t,e,s))}updatePopup(){this._popperInstance?.update()}_showMode(t){if(this.widget){if(t){t=Math.max(this.optionsStore.minimumCalendarViewMode,Math.min(3,this.optionsStore.currentCalendarViewMode+t));if(this.optionsStore.currentCalendarViewMode==t)return;this.optionsStore.currentCalendarViewMode=t}this.widget.querySelectorAll(`.${m.css.dateContainer} > div:not(.${m.css.calendarHeader}), .${m.css.timeContainer} > div:not(.${m.css.clockContainer})`).forEach(t=>t.style.display=\"none\");var t=r[this.optionsStore.currentCalendarViewMode],e=this.widget.querySelector(\".\"+t.className);switch(t.className){case m.css.decadesContainer:this.decadeDisplay._update(this.widget,this.paint);break;case m.css.yearsContainer:this.yearDisplay._update(this.widget,this.paint);break;case m.css.monthsContainer:this.monthDisplay._update(this.widget,this.paint);break;case m.css.daysContainer:this.dateDisplay._update(this.widget,this.paint)}e.style.display=\"grid\",this.optionsStore.options.display.sideBySide&&(this.widget.querySelectorAll(\".\"+m.css.clockContainer)[0].style.display=\"grid\"),this._updateCalendarHeader(),this._eventEmitters.viewUpdate.emit()}}_updateTheme(t){if(this.widget){if(t){if(this.optionsStore.options.display.theme===t)return;this.optionsStore.options.display.theme=t}this.widget.classList.remove(\"light\",\"dark\"),this.widget.classList.add(this._getThemeClass()),\"auto\"===this.optionsStore.options.display.theme?window.matchMedia(m.css.isDarkPreferredQuery).addEventListener(\"change\",()=>this._updateTheme()):window.matchMedia(m.css.isDarkPreferredQuery).removeEventListener(\"change\",()=>this._updateTheme())}}_getThemeClass(){var t=this.optionsStore.options.display.theme||\"auto\",e=window.matchMedia&&window.matchMedia(m.css.isDarkPreferredQuery).matches;switch(t){case\"light\":return m.css.lightTheme;case\"dark\":return m.css.darkTheme;case\"auto\":return e?m.css.darkTheme:m.css.lightTheme}}_updateCalendarHeader(){if(this._hasDate){var t=[...this.widget.querySelector(`.${m.css.dateContainer} div[style*=\"display: grid\"]`).classList].find(t=>t.startsWith(m.css.dateContainer)),[e,s,i]=this.widget.getElementsByClassName(m.css.calendarHeader)[0].getElementsByTagName(\"div\");switch(t){case m.css.decadesContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousCentury),s.setAttribute(\"title\",\"\"),i.setAttribute(\"title\",this.optionsStore.options.localization.nextCentury);break;case m.css.yearsContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousDecade),s.setAttribute(\"title\",this.optionsStore.options.localization.selectDecade),i.setAttribute(\"title\",this.optionsStore.options.localization.nextDecade);break;case m.css.monthsContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousYear),s.setAttribute(\"title\",this.optionsStore.options.localization.selectYear),i.setAttribute(\"title\",this.optionsStore.options.localization.nextYear);break;case m.css.daysContainer:e.setAttribute(\"title\",this.optionsStore.options.localization.previousMonth),s.setAttribute(\"title\",this.optionsStore.options.localization.selectMonth),i.setAttribute(\"title\",this.optionsStore.options.localization.nextMonth),s.setAttribute(t,this.optionsStore.viewDate.format(this.optionsStore.options.localization.dayViewHeaderFormat))}s.innerText=s.getAttribute(t)}}hide(){this.widget&&this._isVisible&&(this.widget.classList.remove(m.css.show),this._isVisible&&(this._eventEmitters.triggerEvent.emit({type:m.events.hide,date:this.optionsStore.unset?null:this.dates.lastPicked?.clone}),this._isVisible=!1),document.removeEventListener(\"click\",this._documentClickEvent))}toggle(){return this._isVisible?this.hide():this.show()}_dispose(){document.removeEventListener(\"click\",this._documentClickEvent),this.widget&&(this.widget.querySelectorAll(\"[data-action]\").forEach(t=>t.removeEventListener(\"click\",this._actionsClickEvent)),this.widget.parentNode.removeChild(this.widget),this._widget=void 0)}_buildWidget(){const a=document.createElement(\"div\");a.classList.add(m.css.widget);var t,e=document.createElement(\"div\"),s=(e.classList.add(m.css.dateContainer),e.append(this.getHeadTemplate(),this.decadeDisplay.getPicker(),this.yearDisplay.getPicker(),this.monthDisplay.getPicker(),this.dateDisplay.getPicker()),document.createElement(\"div\")),i=(s.classList.add(m.css.timeContainer),s.appendChild(this.timeDisplay.getPicker(this._iconTag.bind(this))),s.appendChild(this.hourDisplay.getPicker()),s.appendChild(this.minuteDisplay.getPicker()),s.appendChild(this.secondDisplay.getPicker()),document.createElement(\"div\"));i.classList.add(m.css.toolbar),i.append(...this.getToolbarElements()),this.optionsStore.options.display.inline&&a.classList.add(m.css.inline),this.optionsStore.options.display.calendarWeeks&&a.classList.add(\"calendarWeeks\"),this.optionsStore.options.display.sideBySide&&this._hasDateAndTime?this._buildWidgetSideBySide(a,e,s,i):(\"top\"===this.optionsStore.options.display.toolbarPlacement&&a.appendChild(i),(t=(t,e,s,i)=>{t&&(e&&(s.classList.add(m.css.collapse),i)&&s.classList.add(m.css.show),a.appendChild(s))})(this._hasDate,this._hasTime,e,\"clock\"!==this.optionsStore.options.display.viewMode),t(this._hasTime,this._hasDate,s,\"clock\"===this.optionsStore.options.display.viewMode),\"bottom\"===this.optionsStore.options.display.toolbarPlacement&&a.appendChild(i),(e=document.createElement(\"div\")).classList.add(\"arrow\"),e.setAttribute(\"data-popper-arrow\",\"\"),a.appendChild(e),this._widget=a)}_buildWidgetSideBySide(t,e,s,i){t.classList.add(m.css.sideBySide),\"top\"===this.optionsStore.options.display.toolbarPlacement&&t.appendChild(i);var a=document.createElement(\"div\");a.classList.add(\"td-row\"),e.classList.add(\"td-half\"),s.classList.add(\"td-half\"),a.appendChild(e),a.appendChild(s),t.appendChild(a),\"bottom\"===this.optionsStore.options.display.toolbarPlacement&&t.appendChild(i),this._widget=t}get _hasTime(){return this.optionsStore.options.display.components.clock&&(this.optionsStore.options.display.components.hours||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.components.seconds)}get _hasDate(){return this.optionsStore.options.display.components.calendar&&(this.optionsStore.options.display.components.year||this.optionsStore.options.display.components.month||this.optionsStore.options.display.components.date)}get _hasDateAndTime(){return this._hasDate&&this._hasTime}getToolbarElements(){var s=[];if(this.optionsStore.options.display.buttons.today&&((i=document.createElement(\"div\")).setAttribute(\"data-action\",T.today),i.setAttribute(\"title\",this.optionsStore.options.localization.today),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.today)),s.push(i)),!this.optionsStore.options.display.sideBySide&&this._hasDate&&this._hasTime){let t,e;e=\"clock\"===this.optionsStore.options.display.viewMode?(t=this.optionsStore.options.localization.selectDate,this.optionsStore.options.display.icons.date):(t=this.optionsStore.options.localization.selectTime,this.optionsStore.options.display.icons.time);var i=document.createElement(\"div\");i.setAttribute(\"data-action\",T.togglePicker),i.setAttribute(\"title\",t),i.appendChild(this._iconTag(e)),s.push(i)}return this.optionsStore.options.display.buttons.clear&&((i=document.createElement(\"div\")).setAttribute(\"data-action\",T.clear),i.setAttribute(\"title\",this.optionsStore.options.localization.clear),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.clear)),s.push(i)),this.optionsStore.options.display.buttons.close&&((i=document.createElement(\"div\")).setAttribute(\"data-action\",T.close),i.setAttribute(\"title\",this.optionsStore.options.localization.close),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.close)),s.push(i)),s}getHeadTemplate(){var t=document.createElement(\"div\"),e=(t.classList.add(m.css.calendarHeader),document.createElement(\"div\")),s=(e.classList.add(m.css.previous),e.setAttribute(\"data-action\",T.previous),e.appendChild(this._iconTag(this.optionsStore.options.display.icons.previous)),document.createElement(\"div\")),i=(s.classList.add(m.css.switch),s.setAttribute(\"data-action\",T.changeCalendarView),document.createElement(\"div\"));return i.classList.add(m.css.next),i.setAttribute(\"data-action\",T.next),i.appendChild(this._iconTag(this.optionsStore.options.display.icons.next)),t.append(e,s,i),t}_iconTag(t){if(\"sprites\"===this.optionsStore.options.display.icons.type){var e=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");const s=document.createElementNS(\"http://www.w3.org/2000/svg\",\"use\");return s.setAttribute(\"xlink:href\",t),s.setAttribute(\"href\",t),e.appendChild(s),e}const s=document.createElement(\"i\");return s.classList.add(...t.split(\" \")),s}_rebuild(){var t=this._isVisible;this._dispose(),t&&this.show()}}class R{constructor(){this.optionsStore=s.locate(d),this.dates=s.locate(E),this.validation=s.locate(l),this.display=s.locate(U),this._eventEmitters=s.locate(h),this._eventEmitters.action.subscribe(t=>{this.do(t.e,t.action)})}do(e,t){var s=e?.currentTarget;if(s?.classList?.contains(m.css.disabled))return!1;t=t||s?.dataset?.action;var i=(this.dates.lastPicked||this.optionsStore.viewDate).clone;switch(t){case T.next:case T.previous:this.handleNextPrevious(t);break;case T.changeCalendarView:this.display._showMode(1),this.display._updateCalendarHeader();break;case T.selectMonth:case T.selectYear:case T.selectDecade:this.handleSelectCalendarMode(t,s);break;case T.selectDay:this.handleSelectDay(s);break;case T.selectHour:{let t=+s.dataset.value;12<=i.hours&&this.optionsStore.isTwelveHour&&(t+=12),i.hours=t,this.dates.setValue(i,this.dates.lastPickedIndex),this.hideOrClock(e);break}case T.selectMinute:i.minutes=+s.dataset.value,this.dates.setValue(i,this.dates.lastPickedIndex),this.hideOrClock(e);break;case T.selectSecond:i.seconds=+s.dataset.value,this.dates.setValue(i,this.dates.lastPickedIndex),this.hideOrClock(e);break;case T.incrementHours:this.manipulateAndSet(i,p.Unit.hours);break;case T.incrementMinutes:this.manipulateAndSet(i,p.Unit.minutes,this.optionsStore.options.stepping);break;case T.incrementSeconds:this.manipulateAndSet(i,p.Unit.seconds);break;case T.decrementHours:this.manipulateAndSet(i,p.Unit.hours,-1);break;case T.decrementMinutes:this.manipulateAndSet(i,p.Unit.minutes,-1*this.optionsStore.options.stepping);break;case T.decrementSeconds:this.manipulateAndSet(i,p.Unit.seconds,-1);break;case T.toggleMeridiem:this.manipulateAndSet(i,p.Unit.hours,12<=this.dates.lastPicked.hours?-12:12);break;case T.togglePicker:this.handleToggle(s);break;case T.showClock:case T.showHours:case T.showMinutes:case T.showSeconds:this.optionsStore.options.display.sideBySide||\"clock\"===this.optionsStore.currentView||(L.hideImmediately(this.display.dateContainer),L.showImmediately(this.display.timeContainer)),this.handleShowClockContainers(t);break;case T.clear:this.dates.setValue(null),this.display._updateCalendarHeader();break;case T.close:this.display.hide();break;case T.today:var a=(new y).setLocalization(this.optionsStore.options.localization);this._eventEmitters.updateViewDate.emit(a),this.validation.isValid(a,p.Unit.date)&&this.dates.setValue(a,this.dates.lastPickedIndex)}}handleShowClockContainers(e){if(this.display._hasTime){this.optionsStore.currentView=\"clock\",this.display.widget.querySelectorAll(`.${m.css.timeContainer} > div`).forEach(t=>t.style.display=\"none\");let t=\"\";switch(e){case T.showClock:t=m.css.clockContainer,this.display._update(\"clock\");break;case T.showHours:t=m.css.hourContainer,this.display._update(p.Unit.hours);break;case T.showMinutes:t=m.css.minuteContainer,this.display._update(p.Unit.minutes);break;case T.showSeconds:t=m.css.secondContainer,this.display._update(p.Unit.seconds)}this.display.widget.getElementsByClassName(t)[0].style.display=\"grid\"}else m.errorMessages.throwError(\"Cannot show clock containers when time is disabled.\")}handleNextPrevious(t){var{unit:e,step:s}=r[this.optionsStore.currentCalendarViewMode];t===T.next?this.optionsStore.viewDate.manipulate(s,e):this.optionsStore.viewDate.manipulate(-1*s,e),this._eventEmitters.viewUpdate.emit(),this.display._showMode()}hideOrClock(t){this.optionsStore.isTwelveHour||this.optionsStore.options.display.components.minutes||this.optionsStore.options.display.keepOpen||this.optionsStore.options.display.inline?this.do(t,T.showClock):this.display.hide()}manipulateAndSet(t,e,s=1){t=t.manipulate(s,e);this.validation.isValid(t,e)&&this.dates.setValue(t,this.dates.lastPickedIndex)}handleSelectCalendarMode(t,e){var s=+e.dataset.value;switch(t){case T.selectMonth:this.optionsStore.viewDate.month=s;break;case T.selectYear:case T.selectDecade:this.optionsStore.viewDate.year=s}this.optionsStore.currentCalendarViewMode===this.optionsStore.minimumCalendarViewMode?(this.dates.setValue(this.optionsStore.viewDate,this.dates.lastPickedIndex),this.optionsStore.options.display.inline||this.display.hide()):this.display._showMode(-1)}handleToggle(t){t.getAttribute(\"title\")===this.optionsStore.options.localization.selectDate?(t.setAttribute(\"title\",this.optionsStore.options.localization.selectTime),t.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.time).outerHTML,this.display._updateCalendarHeader(),this.optionsStore.refreshCurrentView()):(t.setAttribute(\"title\",this.optionsStore.options.localization.selectDate),t.innerHTML=this.display._iconTag(this.optionsStore.options.display.icons.date).outerHTML,this.display._hasTime&&(this.handleShowClockContainers(T.showClock),this.display._update(\"clock\"))),this.display.widget.querySelectorAll(`.${m.css.dateContainer}, .`+m.css.timeContainer).forEach(t=>L.toggle(t)),this._eventEmitters.viewUpdate.emit()}handleSelectDay(t){var e=this.optionsStore.viewDate.clone;t.classList.contains(m.css.old)&&e.manipulate(-1,p.Unit.month),t.classList.contains(m.css.new)&&e.manipulate(1,p.Unit.month),e.date=+t.dataset.day,this.optionsStore.options.dateRange?this.handleDateRange(e):this.optionsStore.options.multipleDates?this.handleMultiDate(e):this.dates.setValue(e,this.dates.lastPickedIndex),this.display._hasTime||this.optionsStore.options.display.keepOpen||this.optionsStore.options.display.inline||this.optionsStore.options.multipleDates||this.optionsStore.options.dateRange||this.display.hide()}handleMultiDate(t){let e=this.dates.pickedIndex(t,p.Unit.date);-1!==e?this.dates.setValue(null,e):(e=this.dates.lastPickedIndex+1,0===this.dates.picked.length&&(e=0),this.dates.setValue(t,e))}handleDateRange(t){switch(this.dates.picked.length){case 2:this.dates.clear();break;case 1:var e=this.dates.picked[0];return t.isBefore(e)?(this.dates.setValue(t,0),void this.dates.setValue(e,1)):void this.dates.setValue(t,1)}this.dates.setValue(t,0)}}class A{constructor(t,e={}){this._subscribers={},this._isDisabled=!1,this._inputChangeEvent=t=>{t=t?.detail;if(!t){var t=()=>{this.dates.lastPicked&&(this.optionsStore.viewDate=this.dates.lastPicked.clone)},e=this.optionsStore.input.value;if(this.optionsStore.options.multipleDates)try{var s=e.split(this.optionsStore.options.multipleDatesSeparator);for(let t=0;t<s.length;t++)this.dates.setFromInput(s[t],t);t()}catch{console.warn(\"TD: Something went wrong trying to set the multipleDates values from the input field.\")}else this.dates.setFromInput(e,0),t()}},this._toggleClickEvent=()=>{this.optionsStore.element?.disabled||this.optionsStore.input?.disabled||this.toggle()},s=new x,this._eventEmitters=s.locate(h),this.optionsStore=s.locate(d),this.display=s.locate(U),this.dates=s.locate(E),this.actions=s.locate(R),t||m.errorMessages.mustProvideElement(),this.optionsStore.element=t,this._initializeOptions(e,u,!0),this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.optionsStore.unset=!0,this._initializeInput(),this._initializeToggle(),this.optionsStore.options.display.inline&&this.display.show(),this._eventEmitters.triggerEvent.subscribe(t=>{this._triggerEvent(t)}),this._eventEmitters.viewUpdate.subscribe(()=>{this._viewUpdate()}),this._eventEmitters.updateViewDate.subscribe(t=>{this.viewDate=t})}get viewDate(){return this.optionsStore.viewDate}set viewDate(t){this.optionsStore.viewDate=t,this.optionsStore.viewDate.setLocalization(this.optionsStore.options.localization),this.display._update(\"clock\"===this.optionsStore.currentView?\"clock\":\"calendar\")}updateOptions(t,e=!1){e?this._initializeOptions(t,u):this._initializeOptions(t,this.optionsStore.options),this.display._rebuild()}toggle(){this._isDisabled||this.display.toggle()}show(){this._isDisabled||this.display.show()}hide(){this.display.hide()}disable(){this._isDisabled=!0,this.optionsStore.input?.setAttribute(\"disabled\",\"disabled\"),this.display.hide()}enable(){this._isDisabled=!1,this.optionsStore.input?.removeAttribute(\"disabled\")}clear(){this.optionsStore.input.value=\"\",this.dates.clear()}subscribe(e,t){\"string\"==typeof e&&(e=[e]);let s;s=Array.isArray(t)?t:[t],e.length!==s.length&&m.errorMessages.subscribeMismatch();var i=[];for(let t=0;t<e.length;t++){var a=e[t];if(Array.isArray(this._subscribers[a])||(this._subscribers[a]=[]),this._subscribers[a].push(s[t]),i.push({unsubscribe:this._unsubscribe.bind(this,a,this._subscribers[a].length-1)}),1===e.length)return i[0]}return i}dispose(){this.display.hide(),this.display._dispose(),this._eventEmitters.destroy(),this.optionsStore.input?.removeEventListener(\"change\",this._inputChangeEvent),this.optionsStore.options.allowInputToggle&&this.optionsStore.input?.removeEventListener(\"click\",this._toggleClickEvent),this._toggle?.removeEventListener(\"click\",this._toggleClickEvent),this._subscribers={}}locale(t){t=V[t];t&&this.updateOptions({localization:t})}_triggerEvent(t){t.viewMode=this.optionsStore.currentView;var e=t.type===m.events.change;if(e){var{date:s,oldDate:i,isClear:a}=t;if(s&&i&&s.isSame(i)||!a&&!s&&!i)return;this._handleAfterChangeEvent(t),this.optionsStore.input?.dispatchEvent(new CustomEvent(\"change\",{detail:t}))}this.optionsStore.element.dispatchEvent(new CustomEvent(t.type,{detail:t})),window.jQuery&&(a=window.jQuery,(e&&this.optionsStore.input?a(this.optionsStore.input):a(this.optionsStore.element)).trigger(t)),this._publish(t)}_publish(e){Array.isArray(this._subscribers[e.type])&&this._subscribers[e.type].forEach(t=>{t(e)})}_viewUpdate(){this._triggerEvent({type:m.events.update,viewDate:this.optionsStore.viewDate.clone})}_unsubscribe(t,e){this._subscribers[t].splice(e,1)}_initializeOptions(t,e,s=!1){let i=M.deepCopy(t);i=M._mergeOptions(i,e),s&&(i=M._dataToOptions(this.optionsStore.element,i)),M._validateConflicts(i),i.viewDate=i.viewDate.setLocalization(i.localization),this.optionsStore.viewDate.isSame(i.viewDate)||(this.optionsStore.viewDate=i.viewDate),i.display.components.year&&(this.optionsStore.minimumCalendarViewMode=2),i.display.components.month&&(this.optionsStore.minimumCalendarViewMode=1),i.display.components.date&&(this.optionsStore.minimumCalendarViewMode=0),this.optionsStore.currentCalendarViewMode=Math.max(this.optionsStore.minimumCalendarViewMode,this.optionsStore.currentCalendarViewMode),r[this.optionsStore.currentCalendarViewMode].name!==i.display.viewMode&&(this.optionsStore.currentCalendarViewMode=Math.max(r.findIndex(t=>t.name===i.display.viewMode),this.optionsStore.minimumCalendarViewMode)),this.display?.isVisible&&this.display._update(\"all\"),i.display.components.useTwentyfourHour&&void 0===i.localization.hourCycle?i.localization.hourCycle=\"h24\":void 0===i.localization.hourCycle&&(i.localization.hourCycle=o(i.localization.locale)),this.optionsStore.options=i}_initializeInput(){var t;\"INPUT\"==this.optionsStore.element.tagName?this.optionsStore.input=this.optionsStore.element:(t=this.optionsStore.element.dataset.tdTargetInput,this.optionsStore.input=null==t||\"nearest\"==t?this.optionsStore.element.querySelector(\"input\"):this.optionsStore.element.querySelector(t)),this.optionsStore.input&&(!this.optionsStore.input.value&&this.optionsStore.options.defaultDate&&(this.optionsStore.input.value=this.dates.formatInput(this.optionsStore.options.defaultDate)),this.optionsStore.input.addEventListener(\"change\",this._inputChangeEvent),this.optionsStore.options.allowInputToggle&&this.optionsStore.input.addEventListener(\"click\",this._toggleClickEvent),this.optionsStore.input.value)&&this._inputChangeEvent()}_initializeToggle(){if(!this.optionsStore.options.display.inline){let t=this.optionsStore.element.dataset.tdTargetToggle;\"nearest\"==t&&(t='[data-td-toggle=\"datetimepicker\"]'),this._toggle=null==t?this.optionsStore.element:this.optionsStore.element.querySelector(t),this._toggle.addEventListener(\"click\",this._toggleClickEvent)}}_handleAfterChangeEvent(t){!this.optionsStore.options.promptTimeOnDateChange||this.optionsStore.options.multipleDates||this.optionsStore.options.display.inline||this.optionsStore.options.display.sideBySide||!this.display._hasTime||this.display.widget?.getElementsByClassName(m.css.show)[0].classList.contains(m.css.timeContainer)||!t.oldDate&&this.optionsStore.options.useCurrent||t.oldDate&&t.date?.isSame(t.oldDate)||(clearTimeout(this._currentPromptTimeTimeout),this._currentPromptTimeTimeout=setTimeout(()=>{this.display.widget&&this._eventEmitters.action.emit({e:{currentTarget:this.display.widget.querySelector(\".\"+m.css.switch)},action:T.togglePicker})},this.optionsStore.options.promptTimeOnDateChangeTransitionDelay))}}const V={};function H(t,e=void 0){return t&&!t.installed&&(t(e,{TempusDominus:A,Dates:E,Display:U,DateTime:y,Namespace:m},Q),t.installed=!0),Q}var O=t=>{V[t.name]||(V[t.name]=t.localization)},z=t=>{t=V[t];t&&(u.localization=t)};const Q={TempusDominus:A,extend:H,loadLocale:O,locale:z,Namespace:m,DefaultOptions:u,DateTime:y,Unit:p.Unit,version:\"6.4.4\"};p.DateTime=y,p.DefaultOptions=u,p.Namespace=m,p.TempusDominus=A,p.extend=H,p.loadLocale=O,p.locale=z,p.version=\"6.4.4\",Object.defineProperty(p,\"__esModule\",{value:!0})});","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).Sweetalert2=t()}(this,function(){\"use strict\";var p={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};var e=e=>{var t={};for(const o in e)t[e[o]]=\"swal2-\"+e[o];return t};const m=e([\"container\",\"shown\",\"height-auto\",\"iosfix\",\"popup\",\"modal\",\"no-backdrop\",\"no-transition\",\"toast\",\"toast-shown\",\"show\",\"hide\",\"close\",\"title\",\"html-container\",\"actions\",\"confirm\",\"deny\",\"cancel\",\"default-outline\",\"footer\",\"icon\",\"icon-content\",\"image\",\"input\",\"file\",\"range\",\"select\",\"radio\",\"checkbox\",\"label\",\"textarea\",\"inputerror\",\"input-label\",\"validation-message\",\"progress-steps\",\"active-progress-step\",\"progress-step\",\"progress-step-line\",\"loader\",\"loading\",\"styled\",\"top\",\"top-start\",\"top-end\",\"top-left\",\"top-right\",\"center\",\"center-start\",\"center-end\",\"center-left\",\"center-right\",\"bottom\",\"bottom-start\",\"bottom-end\",\"bottom-left\",\"bottom-right\",\"grow-row\",\"grow-column\",\"grow-fullscreen\",\"rtl\",\"timer-progress-bar\",\"timer-progress-bar-container\",\"scrollbar-measure\",\"icon-success\",\"icon-warning\",\"icon-info\",\"icon-question\",\"icon-error\"]),n=e([\"success\",\"warning\",\"info\",\"question\",\"error\"]),I=\"SweetAlert2:\",D=e=>e.charAt(0).toUpperCase()+e.slice(1),r=e=>{console.warn(I+\" \"+(\"object\"==typeof e?e.join(\" \"):e))},c=e=>{console.error(I+\" \"+e)},q=[],V=(e,t)=>{e=`\"${e}\" is deprecated and will be removed in the next major release. Please use \"${t}\" instead.`,q.includes(e)||(q.push(e),r(e))},N=e=>\"function\"==typeof e?e():e,F=e=>e&&\"function\"==typeof e.toPromise,u=e=>F(e)?e.toPromise():Promise.resolve(e),R=e=>e&&Promise.resolve(e)===e,g=()=>document.body.querySelector(\".\"+m.container),t=e=>{var t=g();return t?t.querySelector(e):null},o=e=>t(\".\"+e),h=()=>o(m.popup),a=()=>o(m.icon);const U=()=>o(m.title),_=()=>o(m[\"html-container\"]),W=()=>o(m.image),z=()=>o(m[\"progress-steps\"]),K=()=>o(m[\"validation-message\"]),f=()=>t(`.${m.actions} .`+m.confirm),b=()=>t(`.${m.actions} .`+m.cancel),v=()=>t(`.${m.actions} .`+m.deny);const y=()=>t(\".\"+m.loader),Y=()=>o(m.actions),Z=()=>o(m.footer),J=()=>o(m[\"timer-progress-bar\"]),X=()=>o(m.close),G=()=>{var e=Array.from(h().querySelectorAll('[tabindex]:not([tabindex=\"-1\"]):not([tabindex=\"0\"])')).sort((e,t)=>{e=parseInt(e.getAttribute(\"tabindex\")),t=parseInt(t.getAttribute(\"tabindex\"));return t<e?1:e<t?-1:0}),t=Array.from(h().querySelectorAll(`\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex=\"0\"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n`)).filter(e=>\"-1\"!==e.getAttribute(\"tabindex\"));return(t=>{var o=[];for(let e=0;e<t.length;e++)-1===o.indexOf(t[e])&&o.push(t[e]);return o})(e.concat(t)).filter(e=>x(e))},Q=()=>s(document.body,m.shown)&&!s(document.body,m[\"toast-shown\"])&&!s(document.body,m[\"no-backdrop\"]),ee=()=>h()&&s(h(),m.toast);function te(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];const o=J();x(o)&&(t&&(o.style.transition=\"none\",o.style.width=\"100%\"),setTimeout(()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width=\"0%\"},10))}const i={previousBodyPadding:null},w=(t,e)=>{t.textContent=\"\",e&&(e=(new DOMParser).parseFromString(e,\"text/html\"),Array.from(e.querySelector(\"head\").childNodes).forEach(e=>{t.appendChild(e)}),Array.from(e.querySelector(\"body\").childNodes).forEach(e=>{e instanceof HTMLVideoElement||e instanceof HTMLAudioElement?t.appendChild(e.cloneNode(!0)):t.appendChild(e)}))},s=(t,e)=>{if(!e)return!1;var o=e.split(/\\s+/);for(let e=0;e<o.length;e++)if(!t.classList.contains(o[e]))return!1;return!0},oe=(t,o)=>{Array.from(t.classList).forEach(e=>{Object.values(m).includes(e)||Object.values(n).includes(e)||Object.values(o.showClass).includes(e)||t.classList.remove(e)})},C=(e,t,o)=>{oe(e,t),t.customClass&&t.customClass[o]&&(\"string\"==typeof t.customClass[o]||t.customClass[o].forEach?A(e,t.customClass[o]):r(`Invalid type of customClass.${o}! Expected string or iterable object, got \"${typeof t.customClass[o]}\"`))},ne=(e,t)=>{if(!t)return null;switch(t){case\"select\":case\"textarea\":case\"file\":return e.querySelector(`.${m.popup} > .`+m[t]);case\"checkbox\":return e.querySelector(`.${m.popup} > .${m.checkbox} input`);case\"radio\":return e.querySelector(`.${m.popup} > .${m.radio} input:checked`)||e.querySelector(`.${m.popup} > .${m.radio} input:first-child`);case\"range\":return e.querySelector(`.${m.popup} > .${m.range} input`);default:return e.querySelector(`.${m.popup} > .`+m.input)}},ie=e=>{var t;e.focus(),\"file\"!==e.type&&(t=e.value,e.value=\"\",e.value=t)},re=(e,t,o)=>{e&&t&&(t=\"string\"==typeof t?t.split(/\\s+/).filter(Boolean):t).forEach(t=>{Array.isArray(e)?e.forEach(e=>{o?e.classList.add(t):e.classList.remove(t)}):o?e.classList.add(t):e.classList.remove(t)})},A=(e,t)=>{re(e,t,!0)},k=(e,t)=>{re(e,t,!1)},d=(e,t)=>{var o=Array.from(e.children);for(let e=0;e<o.length;e++){var n=o[e];if(n instanceof HTMLElement&&s(n,t))return n}},l=(e,t,o)=>{(o=o===\"\"+parseInt(o)?parseInt(o):o)||0===parseInt(o)?e.style[t]=\"number\"==typeof o?o+\"px\":o:e.style.removeProperty(t)},B=function(e){e.style.display=1<arguments.length&&void 0!==arguments[1]?arguments[1]:\"flex\"},P=e=>{e.style.display=\"none\"},ae=(e,t,o,n)=>{e=e.querySelector(t);e&&(e.style[o]=n)},se=function(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:\"flex\";t?B(e,o):P(e)},x=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),le=()=>!x(f())&&!x(v())&&!x(b()),ce=e=>!!(e.scrollHeight>e.clientHeight),ue=e=>{var e=window.getComputedStyle(e),t=parseFloat(e.getPropertyValue(\"animation-duration\")||\"0\"),e=parseFloat(e.getPropertyValue(\"transition-duration\")||\"0\");return 0<t||0<e},de=100,E={},pe=()=>{E.previousActiveElement instanceof HTMLElement?(E.previousActiveElement.focus(),E.previousActiveElement=null):document.body&&document.body.focus()},me=n=>new Promise(e=>{if(!n)return e();var t=window.scrollX,o=window.scrollY;E.restoreFocusTimeout=setTimeout(()=>{pe(),e()},de),window.scrollTo(t,o)}),ge=()=>\"undefined\"==typeof window||\"undefined\"==typeof document,he=`\n <div aria-labelledby=\"${m.title}\" aria-describedby=\"${m[\"html-container\"]}\" class=\"${m.popup}\" tabindex=\"-1\">\n <button type=\"button\" class=\"${m.close}\"></button>\n <ul class=\"${m[\"progress-steps\"]}\"></ul>\n <div class=\"${m.icon}\"></div>\n <img class=\"${m.image}\" />\n <h2 class=\"${m.title}\" id=\"${m.title}\"></h2>\n <div class=\"${m[\"html-container\"]}\" id=\"${m[\"html-container\"]}\"></div>\n <input class=\"${m.input}\" />\n <input type=\"file\" class=\"${m.file}\" />\n <div class=\"${m.range}\">\n <input type=\"range\" />\n <output></output>\n </div>\n <select class=\"${m.select}\"></select>\n <div class=\"${m.radio}\"></div>\n <label for=\"${m.checkbox}\" class=\"${m.checkbox}\">\n <input type=\"checkbox\" />\n <span class=\"${m.label}\"></span>\n </label>\n <textarea class=\"${m.textarea}\"></textarea>\n <div class=\"${m[\"validation-message\"]}\" id=\"${m[\"validation-message\"]}\"></div>\n <div class=\"${m.actions}\">\n <div class=\"${m.loader}\"></div>\n <button type=\"button\" class=\"${m.confirm}\"></button>\n <button type=\"button\" class=\"${m.deny}\"></button>\n <button type=\"button\" class=\"${m.cancel}\"></button>\n </div>\n <div class=\"${m.footer}\"></div>\n <div class=\"${m[\"timer-progress-bar-container\"]}\">\n <div class=\"${m[\"timer-progress-bar\"]}\"></div>\n </div>\n </div>\n`.replace(/(^|\\n)\\s*/g,\"\"),fe=()=>{var e=g();return!!e&&(e.remove(),k([document.documentElement,document.body],[m[\"no-backdrop\"],m[\"toast-shown\"],m[\"has-column\"]]),!0)},T=()=>{E.currentInstance.resetValidationMessage()},be=()=>{var e=h(),t=d(e,m.input),o=d(e,m.file);const n=e.querySelector(`.${m.range} input`),i=e.querySelector(`.${m.range} output`);var r=d(e,m.select),a=e.querySelector(`.${m.checkbox} input`),e=d(e,m.textarea);t.oninput=T,o.onchange=T,r.onchange=T,a.onchange=T,e.oninput=T,n.oninput=()=>{T(),i.value=n.value},n.onchange=()=>{T(),i.value=n.value}},ve=e=>\"string\"==typeof e?document.querySelector(e):e,ye=e=>{var t=h();t.setAttribute(\"role\",e.toast?\"alert\":\"dialog\"),t.setAttribute(\"aria-live\",e.toast?\"polite\":\"assertive\"),e.toast||t.setAttribute(\"aria-modal\",\"true\")},we=e=>{\"rtl\"===window.getComputedStyle(e).direction&&A(g(),m.rtl)},Ce=(e,t)=>{if(e instanceof HTMLElement)t.appendChild(e);else if(\"object\"==typeof e){var o=e,n=t;if(o.jquery)Ae(n,o);else w(n,o.toString())}else e&&w(t,e)},Ae=(t,o)=>{if(t.textContent=\"\",0 in o)for(let e=0;e in o;e++)t.appendChild(o[e].cloneNode(!0));else t.appendChild(o.cloneNode(!0))},ke=(()=>{if(!ge()){var e=document.createElement(\"div\"),t={WebkitAnimation:\"webkitAnimationEnd\",animation:\"animationend\"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o]}return!1})(),Be=(e,t)=>{var o,n,i,r,a,s=Y(),l=y(),c=((t.showConfirmButton||t.showDenyButton||t.showCancelButton?B:P)(s),C(s,t,\"actions\"),s=s,o=l,n=t,i=f(),r=v(),a=b(),Pe(i,\"confirm\",n),Pe(r,\"deny\",n),Pe(a,\"cancel\",n),i),u=r,d=a,p=n;p.buttonsStyling?(A([c,u,d],m.styled),p.confirmButtonColor&&(c.style.backgroundColor=p.confirmButtonColor,A(c,m[\"default-outline\"])),p.denyButtonColor&&(u.style.backgroundColor=p.denyButtonColor,A(u,m[\"default-outline\"])),p.cancelButtonColor&&(d.style.backgroundColor=p.cancelButtonColor,A(d,m[\"default-outline\"]))):k([c,u,d],m.styled),n.reverseButtons&&(n.toast?(s.insertBefore(a,i),s.insertBefore(r,i)):(s.insertBefore(a,o),s.insertBefore(r,o),s.insertBefore(i,o))),w(l,t.loaderHtml),C(l,t,\"loader\")};function Pe(e,t,o){se(e,o[`show${D(t)}Button`],\"inline-block\"),w(e,o[t+\"ButtonText\"]),e.setAttribute(\"aria-label\",o[t+\"ButtonAriaLabel\"]),e.className=m[t],C(e,o,t+\"Button\"),A(e,o[t+\"ButtonClass\"])}const xe=(e,t)=>{var o=X();w(o,t.closeButtonHtml),C(o,t,\"closeButton\"),se(o,t.showCloseButton),o.setAttribute(\"aria-label\",t.closeButtonAriaLabel)},Ee=(e,t)=>{var o,n,i=g();i&&(n=i,\"string\"==typeof(o=t.backdrop)?n.style.background=o:o||A([document.documentElement,document.body],m[\"no-backdrop\"]),n=i,(o=t.position)in m?A(n,m[o]):(r('The \"position\" parameter is not valid, defaulting to \"center\"'),A(n,m.center)),o=i,(n=t.grow)&&\"string\"==typeof n&&(n=\"grow-\"+n)in m&&A(o,m[n]),C(i,t,\"container\"))};const Te=[\"input\",\"file\",\"range\",\"select\",\"radio\",\"checkbox\",\"textarea\"],Se=(e,a)=>{const s=h();e=p.innerParams.get(e);const l=!e||a.input!==e.input;if(Te.forEach(e=>{var t=d(s,m[e]);{var o=e,n=a.inputAttributes,i=ne(h(),o);if(i){Le(i);for(const r in n)i.setAttribute(r,n[r])}}t.className=m[e],l&&P(t)}),a.input){if(l){e=a;if(S[e.input]){var t=je(e.input);const o=S[e.input](t,e);B(t),e.inputAutoFocus&&setTimeout(()=>{ie(o)})}else c(`Unexpected type of input! Expected \"text\", \"email\", \"password\", \"number\", \"tel\", \"select\", \"radio\", \"checkbox\", \"textarea\", \"file\" or \"url\", got \"${e.input}\"`)}t=a,e=je(t.input);\"object\"==typeof t.customClass&&A(e,t.customClass.input)}},Le=t=>{for(let e=0;e<t.attributes.length;e++){var o=t.attributes[e].name;[\"type\",\"value\",\"style\"].includes(o)||t.removeAttribute(o)}},Oe=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},$e=(e,t,o)=>{var n,i;o.inputLabel&&(e.id=m.input,n=document.createElement(\"label\"),i=m[\"input-label\"],n.setAttribute(\"for\",e.id),n.className=i,\"object\"==typeof o.customClass&&A(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement(\"beforebegin\",n))},je=e=>d(h(),m[e]||m.input),Me=(e,t)=>{[\"string\",\"number\"].includes(typeof t)?e.value=\"\"+t:R(t)||r(`Unexpected type of inputValue! Expected \"string\", \"number\" or \"Promise\", got \"${typeof t}\"`)},S={},He=(S.text=S.email=S.password=S.number=S.tel=S.url=(e,t)=>(Me(e,t.inputValue),$e(e,e,t),Oe(e,t),e.type=t.input,e),S.file=(e,t)=>($e(e,e,t),Oe(e,t),e),S.range=(e,t)=>{var o=e.querySelector(\"input\"),n=e.querySelector(\"output\");return Me(o,t.inputValue),o.type=t.input,Me(n,t.inputValue),$e(o,e,t),e},S.select=(e,t)=>{var o;return e.textContent=\"\",t.inputPlaceholder&&(o=document.createElement(\"option\"),w(o,t.inputPlaceholder),o.value=\"\",o.disabled=!0,o.selected=!0,e.appendChild(o)),$e(e,e,t),e},S.radio=e=>(e.textContent=\"\",e),S.checkbox=(e,t)=>{var o=ne(h(),\"checkbox\"),e=(o.value=\"1\",o.id=m.checkbox,o.checked=Boolean(t.inputValue),e.querySelector(\"span\"));return w(e,t.inputPlaceholder),o},S.textarea=(o,e)=>{Me(o,e.inputValue),Oe(o,e),$e(o,o,e);return setTimeout(()=>{if(\"MutationObserver\"in window){const t=parseInt(window.getComputedStyle(h()).width);new MutationObserver(()=>{var e=o.offsetWidth+(e=o,parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight));e>t?h().style.width=e+\"px\":h().style.width=null}).observe(o,{attributes:!0,attributeFilter:[\"style\"]})}}),o},(e,t)=>{var o=_();C(o,t,\"htmlContainer\"),t.html?(Ce(t.html,o),B(o,\"block\")):t.text?(o.textContent=t.text,B(o,\"block\")):P(o),Se(e,t)}),Ie=(e,t)=>{var o=Z();se(o,t.footer),t.footer&&Ce(t.footer,o),C(o,t,\"footer\")},De=(e,t)=>{var e=p.innerParams.get(e),o=a();e&&t.icon===e.icon?(Re(o,t),qe(o,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(n).indexOf(t.icon)?(c(`Unknown icon! Expected \"success\", \"error\", \"warning\", \"info\" or \"question\", got \"${t.icon}\"`),P(o)):(B(o),Re(o,t),qe(o,t),A(o,t.showClass.icon)):P(o)},qe=(e,t)=>{for(const o in n)t.icon!==o&&k(e,n[o]);A(e,n[t.icon]),Ue(e,t),Ve(),C(e,t,\"icon\")},Ve=()=>{var e=h(),t=window.getComputedStyle(e).getPropertyValue(\"background-color\"),o=e.querySelectorAll(\"[class^=swal2-success-circular-line], .swal2-success-fix\");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},Ne=`\n <div class=\"swal2-success-circular-line-left\"></div>\n <span class=\"swal2-success-line-tip\"></span> <span class=\"swal2-success-line-long\"></span>\n <div class=\"swal2-success-ring\"></div> <div class=\"swal2-success-fix\"></div>\n <div class=\"swal2-success-circular-line-right\"></div>\n`,Fe=`\n <span class=\"swal2-x-mark\">\n <span class=\"swal2-x-mark-line-left\"></span>\n <span class=\"swal2-x-mark-line-right\"></span>\n </span>\n`,Re=(e,t)=>{let o=e.innerHTML,n;var i;t.iconHtml?n=_e(t.iconHtml):\"success\"===t.icon?(n=Ne,o=o.replace(/ style=\".*?\"/g,\"\")):n=\"error\"===t.icon?Fe:(i={question:\"?\",warning:\"!\",info:\"i\"},_e(i[t.icon])),o.trim()!==n.trim()&&w(e,n)},Ue=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[\".swal2-success-line-tip\",\".swal2-success-line-long\",\".swal2-x-mark-line-left\",\".swal2-x-mark-line-right\"])ae(e,o,\"backgroundColor\",t.iconColor);ae(e,\".swal2-success-ring\",\"borderColor\",t.iconColor)}},_e=e=>`<div class=\"${m[\"icon-content\"]}\">${e}</div>`,We=(e,t)=>{var o=W();t.imageUrl?(B(o,\"\"),o.setAttribute(\"src\",t.imageUrl),o.setAttribute(\"alt\",t.imageAlt),l(o,\"width\",t.imageWidth),l(o,\"height\",t.imageHeight),o.className=m.image,C(o,t,\"image\")):P(o)},ze=(e,t)=>{var o=g(),n=h(),o=(t.toast?(l(o,\"width\",t.width),n.style.width=\"100%\",n.insertBefore(y(),a())):l(n,\"width\",t.width),l(n,\"padding\",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),P(K()),n),n=t;(o.className=m.popup+\" \"+(x(o)?n.showClass.popup:\"\"),n.toast)?(A([document.documentElement,document.body],m[\"toast-shown\"]),A(o,m.toast)):A(o,m.modal);C(o,n,\"popup\"),\"string\"==typeof n.customClass&&A(o,n.customClass);n.icon&&A(o,m[\"icon-\"+n.icon])},Ke=(e,o)=>{const n=z();o.progressSteps&&0!==o.progressSteps.length?(B(n),n.textContent=\"\",o.currentProgressStep>=o.progressSteps.length&&r(\"Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)\"),o.progressSteps.forEach((e,t)=>{var e=(e=>{const t=document.createElement(\"li\");return A(t,m[\"progress-step\"]),w(t,e),t})(e);n.appendChild(e),t===o.currentProgressStep&&A(e,m[\"active-progress-step\"]),t!==o.progressSteps.length-1&&(e=(e=>{const t=document.createElement(\"li\");if(A(t,m[\"progress-step-line\"]),e.progressStepsDistance)l(t,\"width\",e.progressStepsDistance);return t})(o),n.appendChild(e))})):P(n)},Ye=(e,t)=>{var o=U();se(o,t.title||t.titleText,\"block\"),t.title&&Ce(t.title,o),t.titleText&&(o.innerText=t.titleText),C(o,t,\"title\")},Ze=(e,t)=>{ze(e,t),Ee(e,t),Ke(e,t),De(e,t),We(e,t),Ye(e,t),xe(e,t),He(e,t),Be(e,t),Ie(e,t),\"function\"==typeof t.didRender&&t.didRender(h())};function Je(){var e,t,o=p.innerParams.get(this);o&&(e=p.domCache.get(this),P(e.loader),ee()?o.icon&&B(a()):(t=(o=e).popup.getElementsByClassName(o.loader.getAttribute(\"data-button-to-replace\"))).length?B(t[0],\"inline-block\"):le()&&P(o.actions),k([e.popup,e.actions],m.loading),e.popup.removeAttribute(\"aria-busy\"),e.popup.removeAttribute(\"data-loading\"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1)}const Xe=()=>f()&&f().click();const L=Object.freeze({cancel:\"cancel\",backdrop:\"backdrop\",close:\"close\",esc:\"esc\",timer:\"timer\"}),Ge=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener(\"keydown\",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Qe=(e,t)=>{var o=G();(o.length?((e+=t)===o.length?e=0:-1===e&&(e=o.length-1),o[e]):h()).focus()},et=[\"ArrowRight\",\"ArrowDown\"],tt=[\"ArrowLeft\",\"ArrowUp\"],ot=(e,o,t)=>{var n=p.innerParams.get(e);if(n&&(!o.isComposing&&229!==o.keyCode))if(n.stopKeydownPropagation&&o.stopPropagation(),\"Enter\"===o.key)e=e,s=o,a=n,N(a.allowEnterKey)&&s.target&&e.getInput()&&s.target instanceof HTMLElement&&s.target.outerHTML===e.getInput().outerHTML&&([\"textarea\",\"file\"].includes(a.input)||(Xe(),s.preventDefault()));else if(\"Tab\"===o.key){e=o;var i=e.target,r=G();let t=-1;for(let e=0;e<r.length;e++)if(i===r[e]){t=e;break}e.shiftKey?Qe(t,-1):Qe(t,1);e.stopPropagation(),e.preventDefault()}else if([...et,...tt].includes(o.key)){var a=o.key,s=f(),e=v(),l=b(),e=[s,e,l];if(!(document.activeElement instanceof HTMLElement)||e.includes(document.activeElement)){var c=et.includes(a)?\"nextElementSibling\":\"previousElementSibling\";let t=document.activeElement;for(let e=0;e<Y().children.length;e++){if(!(t=t[c]))return;if(t instanceof HTMLButtonElement&&x(t))break}t instanceof HTMLButtonElement&&t.focus()}}else if(\"Escape\"===o.key){l=o,e=n,o=t;if(N(e.allowEscapeKey)){l.preventDefault();o(L.esc)}}};var nt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const it=()=>{Array.from(document.body.children).forEach(e=>{e===g()||e.contains(g())||(e.hasAttribute(\"aria-hidden\")&&e.setAttribute(\"data-previous-aria-hidden\",e.getAttribute(\"aria-hidden\")),e.setAttribute(\"aria-hidden\",\"true\"))})},rt=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute(\"data-previous-aria-hidden\")?(e.setAttribute(\"aria-hidden\",e.getAttribute(\"data-previous-aria-hidden\")),e.removeAttribute(\"data-previous-aria-hidden\")):e.removeAttribute(\"aria-hidden\")})},at=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||\"MacIntel\"===navigator.platform&&1<navigator.maxTouchPoints)&&!s(document.body,m.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+\"px\",A(document.body,m.iosfix);{e=g();let t;e.ontouchstart=e=>{t=st(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}}var e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);t&&o&&!e.match(/CriOS/i)&&h().scrollHeight>window.innerHeight-44&&(g().style.paddingBottom=\"44px\")}},st=e=>{var t,o=e.target,n=g();return!((t=e).touches&&t.touches.length&&\"stylus\"===t.touches[0].touchType||(t=e).touches&&1<t.touches.length||o!==n&&(ce(n)||!(o instanceof HTMLElement)||\"INPUT\"===o.tagName||\"TEXTAREA\"===o.tagName||ce(_())&&_().contains(o)))},lt=()=>{var e;s(document.body,m.iosfix)&&(e=parseInt(document.body.style.top,10),k(document.body,m.iosfix),document.body.style.top=\"\",document.body.scrollTop=-1*e)},ct=()=>{var e,t;null===i.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(i.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue(\"padding-right\")),document.body.style.paddingRight=i.previousBodyPadding+((e=document.createElement(\"div\")).className=m[\"scrollbar-measure\"],document.body.appendChild(e),t=e.getBoundingClientRect().width-e.clientWidth,document.body.removeChild(e),t)+\"px\")},ut=()=>{null!==i.previousBodyPadding&&(document.body.style.paddingRight=i.previousBodyPadding+\"px\",i.previousBodyPadding=null)};function dt(e,t,o,n){ee()?ht(e,n):(me(o).then(()=>ht(e,n)),Ge(E)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute(\"style\",\"display:none !important\"),t.removeAttribute(\"class\"),t.innerHTML=\"\"):t.remove(),Q()&&(ut(),lt(),rt()),k([document.documentElement,document.body],[m.shown,m[\"height-auto\"],m[\"no-backdrop\"],m[\"toast-shown\"]])}function pt(e){e=void 0!==(t=e)?Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t):{isConfirmed:!1,isDenied:!1,isDismissed:!0};var t=nt.swalPromiseResolve.get(this),o=(e=>{const t=h();if(!t)return false;const o=p.innerParams.get(e);if(!o||s(t,o.hideClass.popup))return false;k(t,o.showClass.popup),A(t,o.hideClass.popup);const n=g();return k(n,o.showClass.backdrop),A(n,o.hideClass.backdrop),gt(e,t,o),true})(this);this.isAwaitingPromise()?e.isDismissed||(mt(this),t(e)):o&&t(e)}const mt=e=>{e.isAwaitingPromise()&&(p.awaitingPromise.delete(e),p.innerParams.get(e)||e._destroy())},gt=(e,t,o)=>{var n,i,r,a=g(),s=ke&&ue(t);\"function\"==typeof o.willClose&&o.willClose(t),s?(s=e,n=t,t=a,i=o.returnFocus,r=o.didClose,E.swalCloseEventFinishedCallback=dt.bind(null,s,t,i,r),n.addEventListener(ke,function(e){e.target===n&&(E.swalCloseEventFinishedCallback(),delete E.swalCloseEventFinishedCallback)})):dt(e,a,o.returnFocus,o.didClose)},ht=(e,t)=>{setTimeout(()=>{\"function\"==typeof t&&t.bind(e.params)(),e._destroy()})};function ft(e,t,o){const n=p.domCache.get(e);t.forEach(e=>{n[e].disabled=o})}function bt(e,t){if(e)if(\"radio\"===e.type){var o=e.parentNode.parentNode.querySelectorAll(\"input\");for(let e=0;e<o.length;e++)o[e].disabled=t}else e.disabled=t}const O={title:\"\",titleText:\"\",text:\"\",html:\"\",footer:\"\",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:\"swal2-show\",backdrop:\"swal2-backdrop-show\",icon:\"swal2-icon-show\"},hideClass:{popup:\"swal2-hide\",backdrop:\"swal2-backdrop-hide\",icon:\"swal2-icon-hide\"},customClass:{},target:\"body\",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:\"OK\",confirmButtonAriaLabel:\"\",confirmButtonColor:void 0,denyButtonText:\"No\",denyButtonAriaLabel:\"\",denyButtonColor:void 0,cancelButtonText:\"Cancel\",cancelButtonAriaLabel:\"\",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:\"×\",closeButtonAriaLabel:\"Close this dialog\",loaderHtml:\"\",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:\"\",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:\"\",inputLabel:\"\",inputValue:\"\",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:\"center\",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},vt=[\"allowEscapeKey\",\"allowOutsideClick\",\"background\",\"buttonsStyling\",\"cancelButtonAriaLabel\",\"cancelButtonColor\",\"cancelButtonText\",\"closeButtonAriaLabel\",\"closeButtonHtml\",\"color\",\"confirmButtonAriaLabel\",\"confirmButtonColor\",\"confirmButtonText\",\"currentProgressStep\",\"customClass\",\"denyButtonAriaLabel\",\"denyButtonColor\",\"denyButtonText\",\"didClose\",\"didDestroy\",\"footer\",\"hideClass\",\"html\",\"icon\",\"iconColor\",\"iconHtml\",\"imageAlt\",\"imageHeight\",\"imageUrl\",\"imageWidth\",\"preConfirm\",\"preDeny\",\"progressSteps\",\"returnFocus\",\"reverseButtons\",\"showCancelButton\",\"showCloseButton\",\"showConfirmButton\",\"showDenyButton\",\"text\",\"title\",\"titleText\",\"willClose\"],yt={},wt=[\"allowOutsideClick\",\"allowEnterKey\",\"backdrop\",\"focusConfirm\",\"focusDeny\",\"focusCancel\",\"returnFocus\",\"heightAuto\",\"keydownListenerCapture\"],Ct=e=>Object.prototype.hasOwnProperty.call(O,e),At=e=>-1!==vt.indexOf(e),kt=e=>yt[e],Bt=e=>{!1===e.backdrop&&e.allowOutsideClick&&r('\"allowOutsideClick\" parameter requires `backdrop` parameter to be set to `true`');for(const o in e)t=o,Ct(t)||r(`Unknown parameter \"${t}\"`),e.toast&&(t=o,wt.includes(t))&&r(`The parameter \"${t}\" is incompatible with toasts`),t=o,kt(t)&&V(t,kt(t));var t};const Pt=e=>{e.isAwaitingPromise()?(xt(p,e),p.awaitingPromise.set(e,!0)):(xt(nt,e),xt(p,e))},xt=(e,t)=>{for(const o in e)e[o].delete(t)};e=Object.freeze({__proto__:null,_destroy:function(){var e=p.domCache.get(this),t=p.innerParams.get(this);t?(e.popup&&E.swalCloseEventFinishedCallback&&(E.swalCloseEventFinishedCallback(),delete E.swalCloseEventFinishedCallback),\"function\"==typeof t.didDestroy&&t.didDestroy(),e=this,Pt(e),delete e.params,delete E.keydownHandler,delete E.keydownTarget,delete E.currentInstance):Pt(this)},close:pt,closeModal:pt,closePopup:pt,closeToast:pt,disableButtons:function(){ft(this,[\"confirmButton\",\"denyButton\",\"cancelButton\"],!0)},disableInput:function(){bt(this.getInput(),!0)},disableLoading:Je,enableButtons:function(){ft(this,[\"confirmButton\",\"denyButton\",\"cancelButton\"],!1)},enableInput:function(){bt(this.getInput(),!1)},getInput:function(e){var t=p.innerParams.get(e||this);return(e=p.domCache.get(e||this))?ne(e.popup,t.input):null},handleAwaitingPromise:mt,hideLoading:Je,isAwaitingPromise:function(){return!!p.awaitingPromise.get(this)},rejectPromise:function(e){var t=nt.swalPromiseReject.get(this);mt(this),t&&t(e)},resetValidationMessage:function(){var e=p.domCache.get(this);e.validationMessage&&P(e.validationMessage),(e=this.getInput())&&(e.removeAttribute(\"aria-invalid\"),e.removeAttribute(\"aria-describedby\"),k(e,m.inputerror))},showValidationMessage:function(e){var t=p.domCache.get(this),o=p.innerParams.get(this);w(t.validationMessage,e),t.validationMessage.className=m[\"validation-message\"],o.customClass&&o.customClass.validationMessage&&A(t.validationMessage,o.customClass.validationMessage),B(t.validationMessage),(e=this.getInput())&&(e.setAttribute(\"aria-invalid\",!0),e.setAttribute(\"aria-describedby\",m[\"validation-message\"]),ie(e),A(e,m.inputerror))},update:function(e){var t=h(),o=p.innerParams.get(this);!t||s(t,o.hideClass.popup)?r(\"You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.\"):(t=(t=>{const o={};return Object.keys(t).forEach(e=>{if(At(e))o[e]=t[e];else r(`Invalid parameter to update: ${e}`)}),o})(e),o=Object.assign({},o,t),Ze(this,o),p.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}}))}});const $=e=>{var t,o,n,i=h(),r=(i||new ko,i=h(),y());ee()?P(a()):(t=i,e=e,o=Y(),n=y(),!e&&x(f())&&(e=f()),B(o),e&&(P(e),n.setAttribute(\"data-button-to-replace\",e.className)),n.parentNode.insertBefore(n,e),A([t,o],m.loading)),B(r),i.setAttribute(\"data-loading\",\"true\"),i.setAttribute(\"aria-busy\",\"true\"),i.focus()},Et=(t,o)=>{const n=h(),i=e=>{St[o.input](n,Lt(e),o)};F(o.inputOptions)||R(o.inputOptions)?($(f()),u(o.inputOptions).then(e=>{t.hideLoading(),i(e)})):\"object\"==typeof o.inputOptions?i(o.inputOptions):c(\"Unexpected type of inputOptions! Expected object, Map or Promise, got \"+typeof o.inputOptions)},Tt=(t,o)=>{const n=t.getInput();P(n),u(o.inputValue).then(e=>{n.value=\"number\"===o.input?\"\"+(parseFloat(e)||0):\"\"+e,B(n),n.focus(),t.hideLoading()}).catch(e=>{c(\"Error in inputValue promise: \"+e),n.value=\"\",B(n),n.focus(),t.hideLoading()})},St={select:(e,t,i)=>{const n=d(e,m.select),r=(e,t,o)=>{var n=document.createElement(\"option\");n.value=o,w(n,t),n.selected=Ot(o,i.inputValue),e.appendChild(n)};t.forEach(e=>{var t=e[0],e=e[1];if(Array.isArray(e)){const o=document.createElement(\"optgroup\");o.label=t,o.disabled=!1,n.appendChild(o),e.forEach(e=>r(o,e[1],e[0]))}else r(n,e,t)}),n.focus()},radio:(e,t,i)=>{const r=d(e,m.radio);t.forEach(e=>{var t=e[0],e=e[1],o=document.createElement(\"input\"),n=document.createElement(\"label\"),t=(o.type=\"radio\",o.name=m.radio,o.value=t,Ot(t,i.inputValue)&&(o.checked=!0),document.createElement(\"span\"));w(t,e),t.className=m.label,n.appendChild(o),n.appendChild(t),r.appendChild(n)});e=r.querySelectorAll(\"input\");e.length&&e[0].focus()}},Lt=o=>{const n=[];return\"undefined\"!=typeof Map&&o instanceof Map?o.forEach((e,t)=>{let o=e;\"object\"==typeof o&&(o=Lt(o)),n.push([t,o])}):Object.keys(o).forEach(e=>{let t=o[e];\"object\"==typeof t&&(t=Lt(t)),n.push([e,t])}),n},Ot=(e,t)=>t&&t.toString()===e.toString(),$t=(e,t)=>{var o=p.innerParams.get(e);if(o.input){var n=((e,t)=>{var o,n=e.getInput();if(!n)return null;switch(t.input){case\"checkbox\":return n.checked?1:0;case\"radio\":return(o=n).checked?o.value:null;case\"file\":return(o=n).files.length?null!==o.getAttribute(\"multiple\")?o.files:o.files[0]:null;default:return t.inputAutoTrim?n.value.trim():n.value}})(e,o);if(o.inputValidator){var i=e;var r=n;var a=t;const s=p.innerParams.get(i),l=(i.disableInput(),Promise.resolve().then(()=>u(s.inputValidator(r,s.validationMessage))));l.then(e=>{i.enableButtons(),i.enableInput(),e?i.showValidationMessage(e):(\"deny\"===a?jt:It)(i,r)})}else e.getInput().checkValidity()?(\"deny\"===t?jt:It)(e,n):(e.enableButtons(),e.showValidationMessage(o.validationMessage))}else c('The \"input\" parameter is needed to be set when using returnInputValueOn'+D(t))},jt=(t,o)=>{const e=p.innerParams.get(t||void 0);e.showLoaderOnDeny&&$(v()),e.preDeny?(p.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>u(e.preDeny(o,e.validationMessage))).then(e=>{!1===e?(t.hideLoading(),mt(t)):t.close({isDenied:!0,value:void 0===e?o:e})}).catch(e=>Ht(t||void 0,e))):t.close({isDenied:!0,value:o})},Mt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Ht=(e,t)=>{e.rejectPromise(t)},It=(t,o)=>{const e=p.innerParams.get(t||void 0);e.showLoaderOnConfirm&&$(),e.preConfirm?(t.resetValidationMessage(),p.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>u(e.preConfirm(o,e.validationMessage))).then(e=>{x(K())||!1===e?(t.hideLoading(),mt(t)):Mt(t,void 0===e?o:e)}).catch(e=>Ht(t||void 0,e))):Mt(t,o)},Dt=(o,e,n)=>{e.popup.onclick=()=>{var e,t=p.innerParams.get(o);t&&((e=t).showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||t.timer||t.input)||n(L.close)}};let qt=!1;const Vt=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(qt=!0)}}},Nt=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,e.target!==t.popup&&!t.popup.contains(e.target)||(qt=!0)}}},Ft=(o,n,i)=>{n.container.onclick=e=>{var t=p.innerParams.get(o);qt?qt=!1:e.target===n.container&&N(t.allowOutsideClick)&&i(L.backdrop)}},Rt=e=>\"object\"==typeof e&&e.jquery,Ut=e=>e instanceof Element||Rt(e);const _t=()=>{if(E.timeout)return e=J(),t=parseInt(window.getComputedStyle(e).width),e.style.removeProperty(\"transition\"),e.style.width=\"100%\",o=parseInt(window.getComputedStyle(e).width),e.style.width=t/o*100+\"%\",E.timeout.stop();var e,t,o},Wt=()=>{var e;if(E.timeout)return e=E.timeout.start(),te(e),e};let zt=!1;const Kt={};const Yt=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Kt){var o=e.getAttribute(n);if(o)return void Kt[n].fire({template:o})}};var Zt=Object.freeze({__proto__:null,argsToParams:o=>{const n={};return\"object\"!=typeof o[0]||Ut(o[0])?[\"title\",\"html\",\"icon\"].forEach((e,t)=>{t=o[t];\"string\"==typeof t||Ut(t)?n[e]=t:void 0!==t&&c(`Unexpected type of ${e}! Expected \"string\" or \"Element\", got `+typeof t)}):Object.assign(n,o[0]),n},bindClickHandler:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:\"data-swal-template\";Kt[e]=this,zt||(document.body.addEventListener(\"click\",Yt),zt=!0)},clickCancel:()=>b()&&b().click(),clickConfirm:Xe,clickDeny:()=>v()&&v().click(),enableLoading:$,fire:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new this(...t)},getActions:Y,getCancelButton:b,getCloseButton:X,getConfirmButton:f,getContainer:g,getDenyButton:v,getFocusableElements:G,getFooter:Z,getHtmlContainer:_,getIcon:a,getIconContent:()=>o(m[\"icon-content\"]),getImage:W,getInputLabel:()=>o(m[\"input-label\"]),getLoader:y,getPopup:h,getProgressSteps:z,getTimerLeft:()=>E.timeout&&E.timeout.getTimerLeft(),getTimerProgressBar:J,getTitle:U,getValidationMessage:K,increaseTimer:e=>{if(E.timeout)return e=E.timeout.increase(e),te(e,!0),e},isDeprecatedParameter:kt,isLoading:()=>h().hasAttribute(\"data-loading\"),isTimerRunning:()=>E.timeout&&E.timeout.isRunning(),isUpdatableParameter:At,isValidParameter:Ct,isVisible:()=>x(h()),mixin:function(o){class e extends this{_main(e,t){return super._main(e,Object.assign({},o,t))}}return e},resumeTimer:Wt,showLoading:$,stopTimer:_t,toggleTimer:()=>{var e=E.timeout;return e&&(e.running?_t:Wt)()}});class Jt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xt=[\"swal-title\",\"swal-html\",\"swal-footer\"],Gt=e=>{const o={};return Array.from(e.querySelectorAll(\"swal-param\")).forEach(e=>{j(e,[\"name\",\"value\"]);var t=e.getAttribute(\"name\"),e=e.getAttribute(\"value\");\"boolean\"==typeof O[t]?o[t]=\"false\"!==e:\"object\"==typeof O[t]?o[t]=JSON.parse(e):o[t]=e}),o},Qt=e=>{const o={};return Array.from(e.querySelectorAll(\"swal-function-param\")).forEach(e=>{var t=e.getAttribute(\"name\"),e=e.getAttribute(\"value\");o[t]=new Function(\"return \"+e)()}),o},eo=e=>{const o={};return Array.from(e.querySelectorAll(\"swal-button\")).forEach(e=>{j(e,[\"type\",\"color\",\"aria-label\"]);var t=e.getAttribute(\"type\");o[t+\"ButtonText\"]=e.innerHTML,o[`show${D(t)}Button`]=!0,e.hasAttribute(\"color\")&&(o[t+\"ButtonColor\"]=e.getAttribute(\"color\")),e.hasAttribute(\"aria-label\")&&(o[t+\"ButtonAriaLabel\"]=e.getAttribute(\"aria-label\"))}),o},to=e=>{var t={},e=e.querySelector(\"swal-image\");return e&&(j(e,[\"src\",\"width\",\"height\",\"alt\"]),e.hasAttribute(\"src\")&&(t.imageUrl=e.getAttribute(\"src\")),e.hasAttribute(\"width\")&&(t.imageWidth=e.getAttribute(\"width\")),e.hasAttribute(\"height\")&&(t.imageHeight=e.getAttribute(\"height\")),e.hasAttribute(\"alt\"))&&(t.imageAlt=e.getAttribute(\"alt\")),t},oo=e=>{var t={},e=e.querySelector(\"swal-icon\");return e&&(j(e,[\"type\",\"color\"]),e.hasAttribute(\"type\")&&(t.icon=e.getAttribute(\"type\")),e.hasAttribute(\"color\")&&(t.iconColor=e.getAttribute(\"color\")),t.iconHtml=e.innerHTML),t},no=e=>{const o={};var t=e.querySelector(\"swal-input\"),t=(t&&(j(t,[\"type\",\"label\",\"placeholder\",\"value\"]),o.input=t.getAttribute(\"type\")||\"text\",t.hasAttribute(\"label\")&&(o.inputLabel=t.getAttribute(\"label\")),t.hasAttribute(\"placeholder\")&&(o.inputPlaceholder=t.getAttribute(\"placeholder\")),t.hasAttribute(\"value\"))&&(o.inputValue=t.getAttribute(\"value\")),Array.from(e.querySelectorAll(\"swal-input-option\")));return t.length&&(o.inputOptions={},t.forEach(e=>{j(e,[\"value\"]);var t=e.getAttribute(\"value\"),e=e.innerHTML;o.inputOptions[t]=e})),o},io=(e,t)=>{var o={};for(const r in t){var n=t[r],i=e.querySelector(n);i&&(j(i,[]),o[n.replace(/^swal-/,\"\")]=i.innerHTML.trim())}return o},ro=e=>{const t=Xt.concat([\"swal-param\",\"swal-function-param\",\"swal-button\",\"swal-image\",\"swal-icon\",\"swal-input\",\"swal-input-option\"]);Array.from(e.children).forEach(e=>{e=e.tagName.toLowerCase();t.includes(e)||r(`Unrecognized element <${e}>`)})},j=(t,o)=>{Array.from(t.attributes).forEach(e=>{-1===o.indexOf(e.name)&&r([`Unrecognized attribute \"${e.name}\" on <${t.tagName.toLowerCase()}>.`,o.length?\"Allowed attributes are: \"+o.join(\", \"):\"To set the value, use HTML within the element.\"])})},ao=10,so=e=>{var t=h();e.target===t&&(e=g(),t.removeEventListener(ke,so),e.style.overflowY=\"auto\")},lo=(e,t)=>{ke&&ue(t)?(e.style.overflowY=\"hidden\",t.addEventListener(ke,so)):e.style.overflowY=\"auto\"},co=(e,t,o)=>{at(),t&&\"hidden\"!==o&&ct(),setTimeout(()=>{e.scrollTop=0})},uo=(e,t,o)=>{A(e,o.showClass.backdrop),t.style.setProperty(\"opacity\",\"0\",\"important\"),B(t,\"grid\"),setTimeout(()=>{A(t,o.showClass.popup),t.style.removeProperty(\"opacity\")},ao),A([document.documentElement,document.body],m.shown),o.heightAuto&&o.backdrop&&!o.toast&&A([document.documentElement,document.body],m[\"height-auto\"])};var po,mo,go={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||\"Invalid email address\"),url:(e,t)=>/^https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-z]{2,63}\\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||\"Invalid URL\")};function ho(e){var t,o,n;(t=e).inputValidator||Object.keys(go).forEach(e=>{t.input===e&&(t.inputValidator=go[e])}),e.showLoaderOnConfirm&&!e.preConfirm&&r(\"showLoaderOnConfirm is set to true, but preConfirm is not defined.\\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\\nhttps://sweetalert2.github.io/#ajax-request\"),(o=e).target&&(\"string\"!=typeof o.target||document.querySelector(o.target))&&(\"string\"==typeof o.target||o.target.appendChild)||(r('Target parameter is not valid, defaulting to \"body\"'),o.target=\"body\"),\"string\"==typeof e.title&&(e.title=e.title.split(\"\\n\").join(\"<br />\")),o=e,e=fe(),ge()?c(\"SweetAlert2 requires document to initialize\"):((n=document.createElement(\"div\")).className=m.container,e&&A(n,m[\"no-transition\"]),w(n,he),(e=ve(o.target)).appendChild(n),ye(o),we(e),be())}let M;class H{constructor(){if(\"undefined\"!=typeof window){M=this;for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var n=Object.freeze(this.constructor.argsToParams(t)),n=(Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}}),M._main(M.params));p.promise.set(this,n)}}_main(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=(Bt(Object.assign({},t,e)),E.currentInstance&&(E.currentInstance._destroy(),Q())&&rt(),E.currentInstance=M,bo(e,t)),t=(ho(e),Object.freeze(e),E.timeout&&(E.timeout.stop(),delete E.timeout),clearTimeout(E.restoreFocusTimeout),vo(M));return Ze(M,e),p.innerParams.set(M,e),fo(M,t,e)}then(e){return p.promise.get(this).then(e)}finally(e){return p.promise.get(this).finally(e)}}const fo=(c,u,d)=>new Promise((e,t)=>{const o=e=>{c.close({isDismissed:!0,dismiss:e})};var n,i,r;nt.swalPromiseResolve.set(c,e),nt.swalPromiseReject.set(c,t),u.confirmButton.onclick=()=>{var e,t;e=c,t=p.innerParams.get(e),e.disableButtons(),t.input?$t(e,\"confirm\"):It(e,!0)},u.denyButton.onclick=()=>{var e,t;e=c,t=p.innerParams.get(e),e.disableButtons(),t.returnInputValueOnDeny?$t(e,\"deny\"):jt(e,!1)},u.cancelButton.onclick=()=>{var e,t;e=c,t=o,e.disableButtons(),t(L.cancel)},u.closeButton.onclick=()=>{o(L.close)},e=c,t=u,r=o,(p.innerParams.get(e).toast?Dt:(Vt(t),Nt(t),Ft))(e,t,r),n=c,e=E,t=d,i=o,Ge(e),t.toast||(e.keydownHandler=e=>ot(n,e,i),e.keydownTarget=t.keydownListenerCapture?window:h(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener(\"keydown\",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0),r=c,\"select\"===(t=d).input||\"radio\"===t.input?Et(r,t):[\"text\",\"email\",\"number\",\"tel\",\"textarea\"].includes(t.input)&&(F(t.inputValue)||R(t.inputValue))&&($(f()),Tt(r,t));{var a=d;const s=g(),l=h();\"function\"==typeof a.willOpen&&a.willOpen(l),e=window.getComputedStyle(document.body).overflowY,uo(s,l,a),setTimeout(()=>{lo(s,l)},ao),Q()&&(co(s,a.scrollbarPadding,e),it()),ee()||E.previousActiveElement||(E.previousActiveElement=document.activeElement),\"function\"==typeof a.didOpen&&setTimeout(()=>a.didOpen(l)),k(s,m[\"no-transition\"])}yo(E,d,o),wo(u,d),setTimeout(()=>{u.container.scrollTop=0})}),bo=(e,t)=>{var o=(o=\"string\"==typeof(o=e).template?document.querySelector(o.template):o.template)?(o=o.content,ro(o),Object.assign(Gt(o),Qt(o),eo(o),to(o),oo(o),no(o),io(o,Xt))):{},t=Object.assign({},O,t,o,e);return t.showClass=Object.assign({},O.showClass,t.showClass),t.hideClass=Object.assign({},O.hideClass,t.hideClass),t},vo=e=>{var t={popup:h(),container:g(),actions:Y(),confirmButton:f(),denyButton:v(),cancelButton:b(),loader:y(),closeButton:X(),validationMessage:K(),progressSteps:z()};return p.domCache.set(e,t),t},yo=(e,t,o)=>{var n=J();P(n),t.timer&&(e.timeout=new Jt(()=>{o(\"timer\"),delete e.timeout},t.timer),t.timerProgressBar)&&(B(n),C(n,t,\"timerProgressBar\"),setTimeout(()=>{e.timeout&&e.timeout.running&&te(t.timer)}))},wo=(e,t)=>{t.toast||(N(t.allowEnterKey)?Co(e,t)||Qe(-1,1):Ao())},Co=(e,t)=>t.focusDeny&&x(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&x(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!x(e.confirmButton)||(e.confirmButton.focus(),0)),Ao=()=>{document.activeElement instanceof HTMLElement&&\"function\"==typeof document.activeElement.blur&&document.activeElement.blur()},ko=(\"undefined\"!=typeof window&&/^ru\\b/.test(navigator.language)&&location.host.match(/\\.(ru|su|xn--p1ai)$/)&&(po=new Date,(mo=localStorage.getItem(\"swal-initiation\"))?3<(po.getTime()-Date.parse(mo))/864e5&&setTimeout(()=>{document.body.style.pointerEvents=\"none\";const e=document.createElement(\"audio\");e.src=\"https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3\",e.loop=!0,document.body.appendChild(e),setTimeout(()=>{e.play().catch(()=>{})},2500)},500):localStorage.setItem(\"swal-initiation\",\"\"+po)),Object.assign(H.prototype,e),Object.assign(H,Zt),Object.keys(e).forEach(e=>{H[e]=function(){if(M)return M[e](...arguments)}}),H.DismissReason=L,H.version=\"11.7.3\",H);return ko.default=ko}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2);","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.Quill=e():t.Quill=e()}(\"undefined\"!=typeof self?self:this,function(){return n=[function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=n(17),r=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),f=n(12),h=n(32),p=n(33),d=n(31),n=n(1),n={Scope:n.Scope,create:n.create,find:n.find,query:n.query,register:n.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=n},function(t,o,e){\"use strict\";var r,n,i=this&&this.__extends||(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=(Object.defineProperty(o,\"__esModule\",{value:!0}),n=Error,i(a,n),a);function a(t){var e=this;return(e=n.call(this,t=\"[Parchment] \"+t)||this).message=t,e.name=e.constructor.name,e}o.ParchmentError=l;var s,u={},c={},f={},h={};function p(t,e){var n;if(void 0===e&&(e=s.ANY),\"string\"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if(\"number\"==typeof t)t&s.LEVEL&s.BLOCK?n=h.block:t&s.LEVEL&s.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var o,r=(t.getAttribute(\"class\")||\"\").split(/\\s+/);for(o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null!=n&&e&s.LEVEL&n.scope&&e&s.TYPE&n.scope?n:null}o.DATA_KEY=\"__blot\",(i=s=o.Scope||(o.Scope={}))[i.TYPE=3]=\"TYPE\",i[i.LEVEL=12]=\"LEVEL\",i[i.ATTRIBUTE=13]=\"ATTRIBUTE\",i[i.BLOT=14]=\"BLOT\",i[i.INLINE=7]=\"INLINE\",i[i.BLOCK=11]=\"BLOCK\",i[i.BLOCK_BLOT=10]=\"BLOCK_BLOT\",i[i.INLINE_BLOT=6]=\"INLINE_BLOT\",i[i.BLOCK_ATTRIBUTE=9]=\"BLOCK_ATTRIBUTE\",i[i.INLINE_ATTRIBUTE=5]=\"INLINE_ATTRIBUTE\",i[i.ANY=15]=\"ANY\",o.create=function(t,e){var n=p(t);if(null==n)throw new l(\"Unable to create \"+t+\" blot\");return t=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:n.create(e),new n(t,e)},o.find=function t(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[o.DATA_KEY]?e[o.DATA_KEY].blot:n?t(e.parentNode,n):null},o.query=p,o.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(1<t.length)return t.map(function(t){return e(t)});var o=t[0];if(\"string\"!=typeof o.blotName&&\"string\"!=typeof o.attrName)throw new l(\"Invalid definition\");if(\"abstract\"===o.blotName)throw new l(\"Cannot register abstract class\");return\"string\"==typeof(h[o.blotName||o.attrName]=o).keyName?u[o.keyName]=o:(null!=o.className&&(c[o.className]=o),null!=o.tagName&&(Array.isArray(o.tagName)?o.tagName=o.tagName.map(function(t){return t.toUpperCase()}):o.tagName=o.tagName.toUpperCase(),(Array.isArray(o.tagName)?o.tagName:[o.tagName]).forEach(function(t){null!=f[t]&&null!=o.className||(f[t]=o)}))),o}},function(t,e,n){function s(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}var u=n(51),c=n(11),o=n(3),f=n(20),r=String.fromCharCode(0);s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&\"object\"==typeof e&&0<Object.keys(e).length&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){return t<=0?this:(t={retain:t},null!=e&&\"object\"==typeof e&&0<Object.keys(e).length&&(t.attributes=e),this.push(t))},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),\"object\"==typeof n){if(\"number\"==typeof t.delete&&\"number\"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if(\"number\"==typeof n.delete&&null!=t.insert&&\"object\"!=typeof(n=this.ops[--e-1]))return this.ops.unshift(t),this;if(c(t.attributes,n.attributes)){if(\"string\"==typeof t.insert&&\"string\"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},\"object\"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if(\"number\"==typeof t.retain&&\"number\"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},\"object\"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(e){var n=[],o=[];return this.forEach(function(t){(e(t)?n:o).push(t)}),[n,o]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+f.length(e):e.delete?t-e.delete:t},0)},s.prototype.length=function(){return this.reduce(function(t,e){return t+f.length(e)},0)},s.prototype.slice=function(t,e){t=t||0,\"number\"!=typeof e&&(e=1/0);for(var n,o=[],r=f.iterator(this.ops),i=0;i<e&&r.hasNext();)i<t?n=r.next(t-i):(n=r.next(e-i),o.push(n)),i+=f.length(n);return new s(o)},s.prototype.compose=function(t){for(var e,n,o,r,i=f.iterator(this.ops),l=f.iterator(t.ops),a=new s;i.hasNext()||l.hasNext();)\"insert\"===l.peekType()?a.push(l.next()):\"delete\"===i.peekType()?a.push(i.next()):(r=Math.min(i.peekLength(),l.peekLength()),e=i.next(r),\"number\"==typeof(n=l.next(r)).retain?(o={},\"number\"==typeof e.retain?o.retain=r:o.insert=e.insert,(r=f.attributes.compose(e.attributes,n.attributes,\"number\"==typeof e.retain))&&(o.attributes=r),a.push(o)):\"number\"==typeof n.delete&&\"number\"==typeof e.retain&&a.push(n));return a.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return 0<t.ops.length&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(n,t){var i,e,l,a;return this.ops===n.ops?new s:(e=[this,n].map(function(e){return e.map(function(t){if(null!=t.insert)return\"string\"==typeof t.insert?t.insert:r;throw new Error(\"diff() called \"+(e===n?\"on\":\"with\")+\" non-document\")}).join(\"\")}),i=new s,e=u(e[0],e[1],t),l=f.iterator(this.ops),a=f.iterator(n.ops),e.forEach(function(t){for(var e=t[1].length;0<e;){var n=0;switch(t[0]){case u.INSERT:n=Math.min(a.peekLength(),e),i.push(a.next(n));break;case u.DELETE:n=Math.min(e,l.peekLength()),l.next(n),i.delete(n);break;case u.EQUAL:var n=Math.min(l.peekLength(),a.peekLength(),e),o=l.next(n),r=a.next(n);c(o.insert,r.insert)?i.retain(n,f.attributes.diff(o.attributes,r.attributes)):i.push(r).delete(n)}e-=n}}),i.chop())},s.prototype.eachLine=function(t,e){e=e||\"\\n\";for(var n=f.iterator(this.ops),o=new s,r=0;n.hasNext();){if(\"insert\"!==n.peekType())return;var i=n.peek(),l=f.length(i)-n.peekLength(),i=\"string\"==typeof i.insert?i.insert.indexOf(e,l)-l:-1;if(i<0)o.push(n.next());else if(0<i)o.push(n.next(i));else{if(!1===t(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}0<o.length()&&t(o,{},r)},s.prototype.transform=function(t,e){if(e=!!e,\"number\"==typeof t)return this.transformPosition(t,e);for(var n,o,r,i=f.iterator(this.ops),l=f.iterator(t.ops),a=new s;i.hasNext()||l.hasNext();)\"insert\"!==i.peekType()||!e&&\"insert\"===l.peekType()?\"insert\"===l.peekType()?a.push(l.next()):(n=Math.min(i.peekLength(),l.peekLength()),o=i.next(n),r=l.next(n),o.delete||(r.delete?a.push(r):a.retain(n,f.attributes.transform(o.attributes,r.attributes,e)))):a.retain(f.length(i.next()));return a.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=f.iterator(this.ops),o=0;n.hasNext()&&o<=t;){var r=n.peekLength(),i=n.peekType();n.next(),\"delete\"===i?t-=Math.min(r,t-o):(\"insert\"===i&&(o<t||!e)&&(t+=r),o+=r)}return t},t.exports=s},function(t,e){\"use strict\";function c(t){return\"function\"==typeof Array.isArray?Array.isArray(t):\"[object Array]\"===i.call(t)}function f(t){if(t&&\"[object Object]\"===i.call(t)){var e,n=r.call(t,\"constructor\"),o=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,\"isPrototypeOf\");if(!t.constructor||n||o){for(e in t);return void 0===e||r.call(t,e)}}}var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=function t(){var e,n,o,r,i,l=arguments[0],a=1,s=arguments.length,u=!1;for(\"boolean\"==typeof l&&(u=l,l=arguments[1]||{},a=2),(null==l||\"object\"!=typeof l&&\"function\"!=typeof l)&&(l={});a<s;++a)if(null!=(e=arguments[a]))for(n in e)i=l[n],l!==(o=e[n])&&(u&&o&&(f(o)||(r=c(o)))?(i=r?(r=!1,i&&c(i)?i:[]):i&&f(i)?i:{},l[n]=t(u,i,o)):void 0!==o&&(l[n]=o));return l}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=f(n(3)),a=f(n(2)),s=f(n(0)),u=f(n(16)),c=f(n(6)),n=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function p(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function d(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}d(v,s.default.Embed),o(v,[{key:\"attach\",value:function(){i(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),\"attach\",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:\"delta\",value:function(){return(new a.default).insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:\"format\",value:function(t,e){t=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=t&&this.attributes.attribute(t,e)}},{key:\"formatAt\",value:function(t,e,n,o){this.format(n,o)}},{key:\"insertAt\",value:function(t,e,n){var o;\"string\"==typeof e&&e.endsWith(\"\\n\")?(o=s.default.create(b.blotName),this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,e.slice(0,-1))):i(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),\"insertAt\",this).call(this,t,e,n)}}]);var y=v;function v(){return h(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}y.scope=s.default.Scope.BLOCK_BLOT;d(g,s.default.Block),o(g,[{key:\"delta\",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),m(e))},new a.default).insert(\"\\n\",m(this))),this.cache.delta}},{key:\"deleteAt\",value:function(t,e){i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"deleteAt\",this).call(this,t,e),this.cache={}}},{key:\"formatAt\",value:function(t,e,n,o){e<=0||(s.default.query(n,s.default.Scope.BLOCK)?t+e===this.length()&&this.format(n,o):i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"formatAt\",this).call(this,t,Math.min(e,this.length()-t-1),n,o),this.cache={})}},{key:\"insertAt\",value:function(t,e,n){if(null!=n)return i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"insertAt\",this).call(this,t,e,n);var o;0!==e.length&&(0<(e=(n=e.split(\"\\n\")).shift()).length&&(t<this.length()-1||null==this.children.tail?i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"insertAt\",this).call(this,Math.min(t,this.length()-1),e):this.children.tail.insertAt(this.children.tail.length(),e),this.cache={}),o=this,n.reduce(function(t,e){return(o=o.split(t,!0)).insertAt(0,e),e.length},t+e.length))}},{key:\"insertBefore\",value:function(t,e){var n=this.children.head;i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"insertBefore\",this).call(this,t,e),n instanceof u.default&&n.remove(),this.cache={}}},{key:\"length\",value:function(){return null==this.cache.length&&(this.cache.length=i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"length\",this).call(this)+1),this.cache.length}},{key:\"moveChildren\",value:function(t,e){i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"moveChildren\",this).call(this,t,e),this.cache={}}},{key:\"optimize\",value:function(t){i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"optimize\",this).call(this,t),this.cache={}}},{key:\"path\",value:function(t){return i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"path\",this).call(this,t,!0)}},{key:\"removeChild\",value:function(t){i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"removeChild\",this).call(this,t),this.cache={}}},{key:\"split\",value:function(t){var e,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return n&&(0===t||t>=this.length()-1)?(e=this.clone(),0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)):(e=i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),\"split\",this).call(this,t,n),this.cache={},e)}}]);var b=g;function g(t){h(this,g);t=p(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t));return t.cache={},t}function m(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==t||(\"function\"==typeof t.formats&&(e=(0,l.default)(e,t.formats())),null==t.parent)||\"scroll\"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:m(t.parent,e)}b.blotName=\"block\",b.tagName=\"P\",b.defaultChild=\"break\",b.allowedChildren=[c.default,s.default.Embed,n.default],e.bubbleFormats=m,e.BlockEmbed=y,e.default=b},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var l=\"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},a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}n(50);var s=b(n(2)),i=b(n(14)),u=b(n(8)),c=b(n(9)),f=b(n(0)),h=n(15),p=b(h),d=b(n(3)),y=b(n(10)),v=b(n(34));function b(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=(0,y.default)(\"quill\"),_=(o(O,null,[{key:\"debug\",value:function(t){y.default.level(t=!0===t?\"log\":t)}},{key:\"find\",value:function(t){return t.__quill||f.default.find(t)}},{key:\"import\",value:function(t){return null==this.imports[t]&&m.error(\"Cannot import \"+t+\". Are you sure it was registered?\"),this.imports[t]}},{key:\"register\",value:function(e,n){var t,o=this,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];\"string\"!=typeof e?\"string\"==typeof(t=e.attrName||e.blotName)?this.register(\"formats/\"+t,e,n):Object.keys(e).forEach(function(t){o.register(t,e[t],n)}):(null==this.imports[e]||r||m.warn(\"Overwriting \"+e+\" with\",n),this.imports[e]=n,(e.startsWith(\"blots/\")||e.startsWith(\"formats/\"))&&\"abstract\"!==n.blotName?f.default.register(n):e.startsWith(\"modules\")&&\"function\"==typeof n.register&&n.register())}}]),o(O,[{key:\"addContainer\",value:function(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return\"string\"==typeof t&&(e=t,(t=document.createElement(\"div\")).classList.add(e)),this.container.insertBefore(t,n),t}},{key:\"blur\",value:function(){this.selection.setRange(null)}},{key:\"deleteText\",value:function(t,e,n){var o=this,r=k(t,e,n),r=a(r,4);return t=r[0],e=r[1],n=r[3],x.call(this,function(){return o.editor.deleteText(t,e)},n,t,-1*e)}},{key:\"disable\",value:function(){this.enable(!1)}},{key:\"enable\",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle(\"ql-disabled\",!t)}},{key:\"focus\",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:\"format\",value:function(n,o){var r=this,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return x.call(this,function(){var t=r.getSelection(!0),e=new s.default;if(null!=t){if(f.default.query(n,f.default.Scope.BLOCK))e=r.editor.formatLine(t.index,t.length,g({},n,o));else{if(0===t.length)return r.selection.format(n,o),e;e=r.editor.formatText(t.index,t.length,g({},n,o))}r.setSelection(t,u.default.sources.SILENT)}return e},t)}},{key:\"formatLine\",value:function(t,e,n,o,r){var i,l=this,n=k(t,e,n,o,r),o=a(n,4);return t=o[0],e=o[1],i=o[2],r=o[3],x.call(this,function(){return l.editor.formatLine(t,e,i)},r,t,0)}},{key:\"formatText\",value:function(t,e,n,o,r){var i,l=this,n=k(t,e,n,o,r),o=a(n,4);return t=o[0],e=o[1],i=o[2],r=o[3],x.call(this,function(){return l.editor.formatText(t,e,i)},r,t,0)}},{key:\"getBounds\",value:function(t){var e=void 0,e=\"number\"==typeof t?this.selection.getBounds(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(t.index,t.length),t=this.container.getBoundingClientRect();return{bottom:e.bottom-t.top,height:e.height,left:e.left-t.left,right:e.right-t.left,top:e.top-t.top,width:e.width}}},{key:\"getContents\",value:function(){var t=k(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e),t=a(t,2),e=t[0],t=t[1];return this.editor.getContents(e,t)}},{key:\"getFormat\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return\"number\"==typeof t?this.editor.getFormat(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(t.index,t.length)}},{key:\"getIndex\",value:function(t){return t.offset(this.scroll)}},{key:\"getLength\",value:function(){return this.scroll.length()}},{key:\"getLeaf\",value:function(t){return this.scroll.leaf(t)}},{key:\"getLine\",value:function(t){return this.scroll.line(t)}},{key:\"getLines\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return\"number\"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:\"getModule\",value:function(t){return this.theme.modules[t]}},{key:\"getSelection\",value:function(){return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:\"getText\",value:function(){var t=k(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e),t=a(t,2),e=t[0],t=t[1];return this.editor.getText(e,t)}},{key:\"hasFocus\",value:function(){return this.selection.hasFocus()}},{key:\"insertEmbed\",value:function(t,e,n){var o=this,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:O.sources.API;return x.call(this,function(){return o.editor.insertEmbed(t,e,n)},r,t)}},{key:\"insertText\",value:function(t,e,n,o,r){var i,l=this,n=k(t,0,n,o,r),o=a(n,4);return t=o[0],i=o[2],r=o[3],x.call(this,function(){return l.editor.insertText(t,e,i)},r,t,e.length)}},{key:\"isEnabled\",value:function(){return!this.container.classList.contains(\"ql-disabled\")}},{key:\"off\",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:\"on\",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:\"once\",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:\"pasteHTML\",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:\"removeFormat\",value:function(t,e,n){var o=this,r=k(t,e,n),r=a(r,4);return t=r[0],e=r[1],n=r[3],x.call(this,function(){return o.editor.removeFormat(t,e)},n,t)}},{key:\"scrollIntoView\",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:\"setContents\",value:function(o){var r=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return x.call(this,function(){o=new s.default(o);var t=r.getLength(),t=r.editor.deleteText(0,t),e=r.editor.applyDelta(o),n=e.ops[e.ops.length-1];return null!=n&&\"string\"==typeof n.insert&&\"\\n\"===n.insert[n.insert.length-1]&&(r.editor.deleteText(r.getLength()-1,1),e.delete(1)),t.compose(e)},t)}},{key:\"setSelection\",value:function(t,e,n){var o;null==t?this.selection.setRange(null,e||O.sources.API):(o=k(t,e,n),t=(o=a(o,4))[0],e=o[1],n=o[3],this.selection.setRange(new h.Range(t,e),n),n!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:\"setText\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,t=(new s.default).insert(t);return this.setContents(t,e)}},{key:\"update\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:\"updateContents\",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return x.call(this,function(){return t=new s.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),O);function O(t){var r=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,o=O;if(!(n instanceof o))throw new TypeError(\"Cannot call a class as a function\");if(this.options=w(t,e),this.container=this.options.container,null==this.container)return m.error(\"Invalid Quill container\",t);this.options.debug&&O.debug(this.options.debug);n=this.container.innerHTML.trim(),this.container.classList.add(\"ql-container\"),this.container.innerHTML=\"\",(this.container.__quill=this).root=this.addContainer(\"ql-editor\"),this.root.classList.add(\"ql-blank\"),this.root.setAttribute(\"data-gramm\",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=f.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new i.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule(\"keyboard\"),this.clipboard=this.theme.addModule(\"clipboard\"),this.history=this.theme.addModule(\"history\"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,function(t){t===u.default.events.TEXT_CHANGE&&r.root.classList.toggle(\"ql-blank\",r.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(t,e){var n=r.selection.lastRange,o=n&&0===n.length?n.index:void 0;x.call(r,function(){return r.editor.update(null,e,o)},t)}),o=this.clipboard.convert(\"<div class='ql-editor' style=\\\"white-space: normal;\\\">\"+n+\"<p><br></p></div>\");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute(\"data-placeholder\",this.options.placeholder),this.options.readOnly&&this.disable()}function w(t,n){if((n=(0,d.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},n)).theme&&n.theme!==_.DEFAULTS.theme){if(n.theme=_.import(\"themes/\"+n.theme),null==n.theme)throw new Error(\"Invalid theme \"+n.theme+\". Did you register it?\")}else n.theme=v.default;t=(0,d.default)(!0,{},n.theme.DEFAULTS);[t,n].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var e=Object.keys(t.modules).concat(Object.keys(n.modules)).reduce(function(t,e){var n=_.import(\"modules/\"+e);return null==n?m.error(\"Cannot load \"+e+\" module. Are you sure you registered it?\"):t[e]=n.DEFAULTS||{},t},{});return null!=n.modules&&n.modules.toolbar&&n.modules.toolbar.constructor!==Object&&(n.modules.toolbar={container:n.modules.toolbar}),n=(0,d.default)(!0,{},_.DEFAULTS,{modules:e},t,n),[\"bounds\",\"container\",\"scrollingContainer\"].forEach(function(t){\"string\"==typeof n[t]&&(n[t]=document.querySelector(n[t]))}),n.modules=Object.keys(n.modules).reduce(function(t,e){return n.modules[e]&&(t[e]=n.modules[e]),t},{}),n}function x(t,e,n,o){var r,i;return this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER?new s.default:(i=null==n?null:this.getSelection(),r=this.editor.delta,t=t(),null!=i&&(!0===n&&(n=i.index),null==o?i=E(i,t,e):0!==o&&(i=E(i,n,o,e)),this.setSelection(i,u.default.sources.SILENT)),0<t.length()&&(n=[u.default.events.TEXT_CHANGE,t,r,e],(o=this.emitter).emit.apply(o,[u.default.events.EDITOR_CHANGE].concat(n)),e!==u.default.sources.SILENT)&&(i=this.emitter).emit.apply(i,n),t)}function k(t,e,n,o,r){var i={};return\"number\"==typeof t.index&&\"number\"==typeof t.length?t=(e=(\"number\"!=typeof e&&(r=o,o=n,n=e),t.length),t.index):\"number\"!=typeof e&&(r=o,o=n,n=e,e=0),\"object\"===(void 0===n?\"undefined\":l(n))?(i=n,r=o):\"string\"==typeof n&&(null!=o?i[n]=o:r=n),[t,e,i,r=r||u.default.sources.API]}function E(t,e,n,o){var r,i,l;return null==t?null:(i=r=void 0,i=(e instanceof s.default?(l=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,o!==u.default.sources.USER)}),r=(l=a(l,2))[0],l):(l=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&o===u.default.sources.USER?t:0<=n?t+n:Math.max(e,t+n)}),r=(t=a(l,2))[0],t))[1],new h.Range(r,i-r))}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:\"\",readOnly:!1,scrollingContainer:null,strict:!0,theme:\"default\"},_.events=u.default.events,_.sources=u.default.sources,_.version=\"1.3.6\",_.imports={delta:s.default,parchment:f.default,\"core/module\":c.default,\"core/theme\":v.default},e.expandConfig=w,e.overload=k,e.default=_},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?l(o,e,n):void 0}var i=s(n(7)),a=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}n=function(t){var e=i;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function i(){var t=this,e=i;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(i,[{key:\"formatAt\",value:function(t,e,n,o){var r;i.compare(this.statics.blotName,n)<0&&a.default.query(n,a.default.Scope.BLOT)?(r=this.isolate(t,e),o&&r.wrap(n,o)):l(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"formatAt\",this).call(this,t,e,n,o)}},{key:\"optimize\",value:function(t){l(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"optimize\",this).call(this,t),this.parent instanceof i&&0<i.compare(this.statics.blotName,this.parent.statics.blotName)&&(t=this.parent.isolate(this.offset(),this.length()),this.moveChildren(t),t.wrap(this))}}],[{key:\"compare\",value:function(t,e){var n=i.order.indexOf(t),o=i.order.indexOf(e);return 0<=n||0<=o?n-o:t===e?0:t<e?-1:1}}]),i}(a.default.Inline);n.allowedChildren=[n,a.default.Embed,i.default],n.order=[\"cursor\",\"inline\",\"underline\",\"strike\",\"italic\",\"bold\",\"script\",\"link\",\"code\"],e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var n=n(0);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),n}(((n=n)&&n.__esModule?n:{default:n}).default.Text);e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=a(n(54));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(10)).default)(\"quill:events\"),n=([\"selectionchange\",\"mousedown\",\"mouseup\",\"click\"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(\".ql-container\")).forEach(function(t){t.__quill&&t.__quill.emitter&&(t=t.__quill.emitter).handleDOM.apply(t,e)})})}),function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t;if(this instanceof n)return(t=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this))).listeners={},t.on(\"error\",s.error),t;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"emit\",value:function(){s.log.apply(s,arguments),i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"emit\",this).apply(this,arguments)}},{key:\"handleDOM\",value:function(n){for(var t=arguments.length,o=Array(1<t?t-1:0),e=1;e<t;e++)o[e-1]=arguments[e];(this.listeners[n.type]||[]).forEach(function(t){var e=t.node,t=t.handler;n.target!==e&&!e.contains(n.target)||t.apply(void 0,[n].concat(o))})}},{key:\"listenDOM\",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),n}(l.default));n.events={EDITOR_CHANGE:\"editor-change\",SCROLL_BEFORE_UPDATE:\"scroll-before-update\",SCROLL_OPTIMIZE:\"scroll-optimize\",SCROLL_UPDATE:\"scroll-update\",SELECTION_CHANGE:\"selection-change\",TEXT_CHANGE:\"text-change\"},n.sources={API:\"api\",SILENT:\"silent\",USER:\"user\"},e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});function r(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,o=r;if(!(n instanceof o))throw new TypeError(\"Cannot call a class as a function\");this.quill=t,this.options=e}r.DEFAULTS={},e.default=r},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=[\"error\",\"warn\",\"log\",\"info\"],l=\"warn\";function o(t){if(i.indexOf(t)<=i.indexOf(l)){for(var e,n=arguments.length,o=Array(1<n?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];(e=console)[t].apply(e,o)}}function r(n){return i.reduce(function(t,e){return t[e]=o.bind(console,e,n),t},{})}o.level=r.level=function(t){l=t},e.default=r},function(t,e,n){var c=Array.prototype.slice,f=n(52),h=n(53),p=t.exports=function(t,e,n){if(n=n||{},t===e)return!0;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(!t||!e||\"object\"!=typeof t&&\"object\"!=typeof e)return n.strict?t===e:t==e;var o,r,i=t,l=e,a=n;if(d(i)||d(l))return!1;if(i.prototype!==l.prototype)return!1;if(h(i))return!!h(l)&&(i=c.call(i),l=c.call(l),p(i,l,a));if(y(i)){if(!y(l))return!1;if(i.length!==l.length)return!1;for(o=0;o<i.length;o++)if(i[o]!==l[o])return!1;return!0}try{var s=f(i),u=f(l)}catch(t){return!1}if(s.length!=u.length)return!1;for(s.sort(),u.sort(),o=s.length-1;0<=o;o--)if(s[o]!=u[o])return!1;for(o=s.length-1;0<=o;o--)if(r=s[o],!p(i[r],l[r],a))return!1;return typeof i==typeof l};function d(t){return null==t}function y(t){return!(!t||\"object\"!=typeof t||\"number\"!=typeof t.length||\"function\"!=typeof t.copy||\"function\"!=typeof t.slice||0<t.length&&\"number\"!=typeof t[0])}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=n(1);function r(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;t=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|t:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}r.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},r.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},r.prototype.canAdd=function(t,e){return null!=o.query(t,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||(\"string\"==typeof e?-1<this.whitelist.indexOf(e.replace(/[\"']/g,\"\")):-1<this.whitelist.indexOf(e)))},r.prototype.remove=function(t){t.removeAttribute(this.keyName)},r.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:\"\"},e.default=r},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.Code=void 0;var o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},r=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?l(o,e,n):void 0}var a=h(n(2)),s=h(n(0)),u=h(n(4)),c=h(n(6)),f=h(n(7));function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function d(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function y(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}y(v,c.default);n=v;function v(){return p(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}n.blotName=\"code\",n.tagName=\"CODE\";y(b,u.default),r(b,[{key:\"delta\",value:function(){var n=this,t=this.domNode.textContent;return(t=t.endsWith(\"\\n\")?t.slice(0,-1):t).split(\"\\n\").reduce(function(t,e){return t.insert(e).insert(\"\\n\",n.formats())},new a.default)}},{key:\"format\",value:function(t,e){var n;t===this.statics.blotName&&e||(n=this.descendant(f.default,this.length()-1),null!=(n=o(n,1)[0])&&n.deleteAt(n.length()-1,1),l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),\"format\",this).call(this,t,e))}},{key:\"formatAt\",value:function(t,e,n,o){var r,i,l,a;0===e||null==s.default.query(n,s.default.Scope.BLOCK)||n===this.statics.blotName&&o===this.statics.formats(this.domNode)||(i=this.newlineIndex(t))<0||t+e<=i||(r=this.newlineIndex(t,!0)+1,a=(l=this.isolate(r,i=i-r+1)).next,l.format(n,o),a instanceof b&&a.formatAt(0,t-r+e-i,n,o))}},{key:\"insertAt\",value:function(t,e,n){null==n&&(n=this.descendant(f.default,t),n=(t=o(n,2))[0],t=t[1],n.insertAt(t,e))}},{key:\"length\",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith(\"\\n\")?t:t+1}},{key:\"newlineIndex\",value:function(t){var e;return 1<arguments.length&&void 0!==arguments[1]&&arguments[1]?this.domNode.textContent.slice(0,t).lastIndexOf(\"\\n\"):-1<(e=this.domNode.textContent.slice(t).indexOf(\"\\n\"))?t+e:-1}},{key:\"optimize\",value:function(t){this.domNode.textContent.endsWith(\"\\n\")||this.appendChild(s.default.create(\"text\",\"\\n\")),l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),\"optimize\",this).call(this,t);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===e.statics.formats(e.domNode)&&(e.optimize(t),e.moveChildren(this),e.remove())}},{key:\"replace\",value:function(t){l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),\"replace\",this).call(this,t),[].slice.call(this.domNode.querySelectorAll(\"*\")).forEach(function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()})}}],[{key:\"create\",value:function(t){t=l(b.__proto__||Object.getPrototypeOf(b),\"create\",this).call(this,t);return t.setAttribute(\"spellcheck\",!1),t}},{key:\"formats\",value:function(){return!0}}]);c=b;function b(){return p(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}c.blotName=\"code-block\",c.tagName=\"PRE\",c.TAB=\" \",e.Code=n,e.default=c},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var c=\"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},f=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var h=l(n(2)),p=l(n(20)),d=l(n(0)),u=l(n(13)),a=l(n(24)),y=n(4),v=l(y),i=l(n(16)),b=l(n(21)),s=l(n(11)),g=l(n(3));function l(t){return t&&t.__esModule?t:{default:t}}var m=/^[ -~]*$/,n=(o(_,[{key:\"applyDelta\",value:function(t){var a=this,s=!1,u=(this.scroll.update(),this.scroll.length());return this.scroll.batchStart(),(t=t.reduce(function(t,e){var n;return 1===e.insert?(delete(n=(0,b.default)(e.attributes)).image,t.insert({image:e.attributes.image},n)):(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,b.default)(e)).attributes.list?e.attributes.list=\"ordered\":(e.attributes.list=\"bullet\",delete e.attributes.bullet)),\"string\"==typeof e.insert?(n=e.insert.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\"),t.insert(n,e.attributes)):t.push(e))},new h.default)).reduce(function(e,t){var n=t.retain||t.delete||t.insert.length||1,o=t.attributes||{};if(null!=t.insert){if(\"string\"==typeof t.insert){var r=t.insert,r=(r.endsWith(\"\\n\")&&s&&(s=!1,r=r.slice(0,-1)),u<=e&&!r.endsWith(\"\\n\")&&(s=!0),a.scroll.insertAt(e,r),a.scroll.line(e)),r=f(r,2),i=r[0],r=r[1],l=(0,g.default)({},(0,y.bubbleFormats)(i));i instanceof v.default&&(i=i.descendant(d.default.Leaf,r),r=f(i,1)[0],l=(0,g.default)(l,(0,y.bubbleFormats)(r))),o=p.default.attributes.diff(l,o)||{}}else if(\"object\"===c(t.insert)){i=Object.keys(t.insert)[0];if(null==i)return e;a.scroll.insertAt(e,i,t.insert[i])}u+=n}return Object.keys(o).forEach(function(t){a.scroll.formatAt(e,n,t,o[t])}),e+n},0),t.reduce(function(t,e){return\"number\"==typeof e.delete?(a.scroll.deleteAt(t,e.delete),t):t+(e.retain||e.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:\"deleteText\",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new h.default).retain(t).delete(e))}},{key:\"formatLine\",value:function(l,e){var a=this,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(s).forEach(function(r){var t,i;null!=a.scroll.whitelist&&!a.scroll.whitelist[r]||(t=a.scroll.lines(l,Math.max(e,1)),i=e,t.forEach(function(t){var e,n,o=t.length();t instanceof u.default?(e=l-t.offset(a.scroll),n=t.newlineIndex(e+i)-e+1,t.formatAt(e,n,r,s[r])):t.format(r,s[r]),i-=o}))}),this.scroll.optimize(),this.update((new h.default).retain(l).retain(e,(0,b.default)(s)))}},{key:\"formatText\",value:function(e,n){var o=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(t){o.scroll.formatAt(e,n,t,r[t])}),this.update((new h.default).retain(e).retain(n,(0,b.default)(r)))}},{key:\"getContents\",value:function(t,e){return this.delta.slice(t,t+e)}},{key:\"getDelta\",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new h.default)}},{key:\"getFormat\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[],t=(0===e?this.scroll.path(t).forEach(function(t){t=f(t,1)[0];t instanceof v.default?n.push(t):t instanceof d.default.Leaf&&o.push(t)}):(n=this.scroll.lines(t,e),o=this.scroll.descendants(d.default.Leaf,t,e)),[n,o].map(function(t){if(0===t.length)return{};for(var e=(0,y.bubbleFormats)(t.shift());0<Object.keys(e).length;){var n=t.shift();if(null==n)return e;e=function(n,o){return Object.keys(o).reduce(function(t,e){return null!=n[e]&&(o[e]===n[e]?t[e]=o[e]:Array.isArray(o[e])?o[e].indexOf(n[e])<0&&(t[e]=o[e].concat([n[e]])):t[e]=[o[e],n[e]]),t},{})}((0,y.bubbleFormats)(n),e)}return e}));return g.default.apply(g.default,t)}},{key:\"getText\",value:function(t,e){return this.getContents(t,e).filter(function(t){return\"string\"==typeof t.insert}).map(function(t){return t.insert}).join(\"\")}},{key:\"insertEmbed\",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new h.default).retain(t).insert((t=n,(n=e)in(e={})?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e)))}},{key:\"insertText\",value:function(e,n){var o=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return n=n.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\"),this.scroll.insertAt(e,n),Object.keys(r).forEach(function(t){o.scroll.formatAt(e,n.length,t,r[t])}),this.update((new h.default).retain(e).insert(n,(0,b.default)(r)))}},{key:\"isBlank\",value:function(){var t;return 0==this.scroll.children.length||!(1<this.scroll.children.length||(t=this.scroll.children.head).statics.blotName!==v.default.blotName||1<t.children.length)&&t.children.head instanceof i.default}},{key:\"removeFormat\",value:function(t,e){var n=this.getText(t,e),o=this.scroll.line(t+e),o=f(o,2),r=o[0],o=o[1],i=0,l=new h.default;null!=r&&(i=r instanceof u.default?r.newlineIndex(o)-o+1:r.length()-o,l=r.delta().slice(o,o+i-1).insert(\"\\n\"));r=this.getContents(t,e+i).diff((new h.default).insert(n).concat(l)),o=(new h.default).retain(t).concat(r);return this.applyDelta(o)}},{key:\"update\",value:function(t){var n,e,o,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,l=this.delta;return 1===r.length&&\"characterData\"===r[0].type&&r[0].target.data.match(m)&&d.default.find(r[0].target)?(o=d.default.find(r[0].target),n=(0,y.bubbleFormats)(o),e=o.offset(this.scroll),r=r[0].oldValue.replace(a.default.CONTENTS,\"\"),r=(new h.default).insert(r),o=(new h.default).insert(o.value()),t=(new h.default).retain(e).concat(r.diff(o,i)).reduce(function(t,e){return e.insert?t.insert(e.insert,n):t.push(e)},new h.default),this.delta=l.compose(t)):(this.delta=this.getDelta(),t&&(0,s.default)(l.compose(t),this.delta)||(t=l.diff(this.delta,i))),t}}]),_);function _(t){if(!(this instanceof _))throw new TypeError(\"Cannot call a class as a function\");this.scroll=t,this.delta=this.getDelta()}e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.Range=void 0;var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var a=c(n(0)),i=c(n(21)),s=c(n(11)),u=c(n(8));function c(t){return t&&t.__esModule?t:{default:t}}function f(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function h(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function p(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;h(this,p),this.index=t,this.length=e}var d=(0,c(n(10)).default)(\"quill:selection\"),n=(o(y,[{key:\"handleComposition\",value:function(){var e=this;this.root.addEventListener(\"compositionstart\",function(){e.composing=!0}),this.root.addEventListener(\"compositionend\",function(){var t;e.composing=!1,e.cursor.parent&&(t=e.cursor.restore())&&setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)})}},{key:\"handleDragging\",value:function(){var t=this;this.emitter.listenDOM(\"mousedown\",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM(\"mouseup\",document.body,function(){t.mouseDown=!1,t.update(u.default.sources.USER)})}},{key:\"focus\",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:\"format\",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o,r=a.default.find(n.start.node,!1);if(null==r)return;r instanceof a.default.Leaf?(o=r.split(n.start.offset),r.parent.insertBefore(this.cursor,o)):r.insertBefore(this.cursor,n.start.node),this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:\"getBounds\",value:function(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,o=this.scroll.length(),o=(t=Math.min(t,o-1),n=Math.min(t+n,o-1)-t,void 0),r=this.scroll.leaf(t),r=l(r,2),i=r[0],r=r[1];return null==i?null:(e=i.position(r,!0),o=(e=l(e,2))[0],r=e[1],e=document.createRange(),0<n?(e.setStart(o,r),t=this.scroll.leaf(t+n),i=(n=l(t,2))[0],r=n[1],null==i?null:(t=i.position(r,!0),o=(n=l(t,2))[0],r=n[1],e.setEnd(o,r),e.getBoundingClientRect())):(t=\"left\",n=void 0,o instanceof Text?(r<o.data.length?(e.setStart(o,r),e.setEnd(o,r+1)):(e.setStart(o,r-1),e.setEnd(o,r),t=\"right\"),n=e.getBoundingClientRect()):(n=i.domNode.getBoundingClientRect(),0<r&&(t=\"right\")),{bottom:n.top+n.height,height:n.height,left:n[t],right:n[t],top:n.top,width:0}))}},{key:\"getNativeRange\",value:function(){var t=document.getSelection();return null==t||t.rangeCount<=0||null==(t=t.getRangeAt(0))?null:(t=this.normalizeNative(t),d.info(\"getNativeRange\",t),t)}},{key:\"getRange\",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:\"hasFocus\",value:function(){return document.activeElement===this.root}},{key:\"normalizedToRange\",value:function(t){var r=this,e=[[t.start.node,t.start.offset]],t=(t.native.collapsed||e.push([t.end.node,t.end.offset]),e.map(function(t){var t=l(t,2),e=t[0],t=t[1],n=a.default.find(e,!0),o=n.offset(r.scroll);return 0===t?o:n instanceof a.default.Container?o+n.length():o+n.index(e,t)})),e=Math.min(Math.max.apply(Math,f(t)),this.scroll.length()-1),t=Math.min.apply(Math,[e].concat(f(t)));return new p(t,e-t)}},{key:\"normalizeNative\",value:function(t){return v(this.root,t.startContainer)&&(t.collapsed||v(this.root,t.endContainer))?([(t={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t}).start,t.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&0<e.childNodes.length;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),t):null}},{key:\"rangeToNative\",value:function(t){var o=this,t=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],i=this.scroll.length();return t.forEach(function(t,e){t=Math.min(i-1,t);var t=o.scroll.leaf(t),t=l(t,2),n=t[0],t=t[1],n=n.position(t,0!==e),e=l(n,2),n=e[0],t=e[1];r.push(n,t)}),r=r.length<2?r.concat(r):r}},{key:\"scrollIntoView\",value:function(t){var e,n,o,r,i=this.lastRange;null!=i&&null!=(e=this.getBounds(i.index,i.length))&&(r=this.scroll.length()-1,n=this.scroll.line(Math.min(i.index,r)),o=n=l(n,1)[0],0<i.length&&(i=this.scroll.line(Math.min(i.index+i.length,r)),o=l(i,1)[0]),null!=n)&&null!=o&&(r=t.getBoundingClientRect(),e.top<r.top?t.scrollTop-=r.top-e.top:e.bottom>r.bottom&&(t.scrollTop+=e.bottom-r.bottom))}},{key:\"setNativeRange\",value:function(t,e){var n,o,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e,l=4<arguments.length&&void 0!==arguments[4]&&arguments[4];d.info(\"setNativeRange\",t,e,r,i),(null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=r.parentNode)&&null!=(n=document.getSelection())&&(null!=t?(this.hasFocus()||this.root.focus(),null!=(o=(this.getNativeRange()||{}).native)&&!l&&t===o.startContainer&&e===o.startOffset&&r===o.endContainer&&i===o.endOffset||(\"BR\"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),\"BR\"==r.tagName&&(i=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode),(l=document.createRange()).setStart(t,e),l.setEnd(r,i),n.removeAllRanges(),n.addRange(l))):(n.removeAllRanges(),this.root.blur(),document.body.focus()))}},{key:\"setRange\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;\"string\"==typeof e&&(n=e,e=!1),d.info(\"setRange\",t),null!=t?(t=this.rangeToNative(t),this.setNativeRange.apply(this,f(t).concat([e]))):this.setNativeRange(null),this.update(n)}},{key:\"update\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.lastRange,n=this.getRange(),n=l(n,2),o=n[0],n=n[1];this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),(0,s.default)(e,this.lastRange)||(!this.composing&&null!=n&&n.native.collapsed&&n.start.node!==this.cursor.textNode&&this.cursor.restore(),o=[u.default.events.SELECTION_CHANGE,(0,i.default)(this.lastRange),(0,i.default)(e),t],(n=this.emitter).emit.apply(n,[u.default.events.EDITOR_CHANGE].concat(o)),t!==u.default.sources.SILENT&&(e=this.emitter).emit.apply(e,o))}}]),y);function y(t,e){var i=this;h(this,y),this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create(\"cursor\",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM(\"selectionchange\",document,function(){i.mouseDown||setTimeout(i.update.bind(i,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(t,e){t===u.default.events.TEXT_CHANGE&&0<e.length()&&i.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){var t;i.hasFocus()&&null!=(t=i.getNativeRange())&&t.start.node!==i.cursor.textNode&&i.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{i.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(t,e){var n,o,r;e.range&&(n=(e=e.range).startNode,o=e.startOffset,r=e.endNode,e=e.endOffset,i.setNativeRange(n,o,r,e))}),this.update(u.default.sources.SILENT)}function v(t,e){try{e.parentNode}catch(t){return}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=p,e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(0);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"insertInto\",value:function(t,e){0===t.children.length?i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"insertInto\",this).call(this,t,e):this.remove()}},{key:\"length\",value:function(){return 0}},{key:\"value\",value:function(){return\"\"}}],[{key:\"value\",value:function(){}}]),n}(((n=n)&&n.__esModule?n:{default:n}).default.Embed);n.blotName=\"break\",n.tagName=\"BR\",e.default=n},function(t,e,n){\"use strict\";var o,r,i=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(44)),a=n(30),s=n(1),n=(r=a.default,i(u,r),u.prototype.appendChild=function(t){this.insertBefore(t)},u.prototype.attach=function(){r.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},u.prototype.build=function(){var n=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var e=c(t);n.insertBefore(e,n.children.head||void 0)}catch(t){if(!(t instanceof s.ParchmentError))throw t}})},u.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},u.prototype.descendant=function(t,e){var e=this.children.find(e),n=e[0],e=e[1];return null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t?[n,e]:n instanceof u?n.descendant(t,e):[null,-1]},u.prototype.descendants=function(o,t,e){void 0===t&&(t=0),void 0===e&&(e=Number.MAX_VALUE);var r=[],i=e;return this.children.forEachAt(t,e,function(t,e,n){(null==o.blotName&&o(t)||null!=o.blotName&&t instanceof o)&&r.push(t),t instanceof u&&(r=r.concat(t.descendants(o,e,i))),i-=n}),r},u.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),r.prototype.detach.call(this)},u.prototype.formatAt=function(t,e,o,r){this.children.forEachAt(t,e,function(t,e,n){t.formatAt(e,n,o,r)})},u.prototype.insertAt=function(t,e,n){var t=this.children.find(t),o=t[0],t=t[1];o?o.insertAt(t,e,n):(o=null==n?s.create(\"text\",e):s.create(e,n),this.appendChild(o))},u.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new s.ParchmentError(\"Cannot insert \"+e.statics.blotName+\" into \"+this.statics.blotName);e.insertInto(this,t)},u.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},u.prototype.moveChildren=function(e,n){this.children.forEach(function(t){e.insertBefore(t,n)})},u.prototype.optimize=function(t){var e;r.prototype.optimize.call(this,t),0===this.children.length&&(null!=this.statics.defaultChild?(e=s.create(this.statics.defaultChild),this.appendChild(e),e.optimize(t)):this.remove())},u.prototype.path=function(t,e){var n=this.children.find(t,e=void 0===e?!1:e),o=n[0],n=n[1],t=[[this,t]];return o instanceof u?t.concat(o.path(n,e)):(null!=o&&t.push([o,n]),t)},u.prototype.removeChild=function(t){this.children.remove(t)},u.prototype.replace=function(t){t instanceof u&&t.moveChildren(this),r.prototype.replace.call(this,t)},u.prototype.split=function(t,o){if(!(o=void 0===o?!1:o)){if(0===t)return this;if(t===this.length())return this.next}var r=this.clone();return this.parent.insertBefore(r,this.next),this.children.forEachAt(t,this.length(),function(t,e,n){t=t.split(e,o),r.appendChild(t)}),r},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(t,e){var n=this,o=[],r=[];t.forEach(function(t){t.target===n.domNode&&\"childList\"===t.type&&(o.push.apply(o,t.addedNodes),r.push.apply(r,t.removedNodes))}),r.forEach(function(t){null!=t.parentNode&&\"IFRAME\"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY||null==(t=s.find(t))||null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach()}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null,t=(null!=t.nextSibling&&(e=s.find(t.nextSibling)),c(t));t.next==e&&null!=t.next||(null!=t.parent&&t.parent.removeChild(n),n.insertBefore(t,e||void 0))})},u);function u(t){t=r.call(this,t)||this;return t.build(),t}function c(e){var n=s.find(e);if(null==n)try{n=s.create(e)}catch(t){n=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(t){n.domNode.appendChild(t)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach()}return n}e.default=n},function(t,e,n){\"use strict\";var o,r,i=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(12)),a=n(31),s=n(17),u=n(1),n=(r=s.default,i(c,r),c.formats=function(t){return\"string\"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},c.prototype.format=function(t,e){var n=u.query(t);n instanceof l.default?this.attributes.attribute(n,e):!e||null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e)},c.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},c.prototype.replaceWith=function(t,e){t=r.prototype.replaceWith.call(this,t,e);return this.attributes.copy(t),t},c.prototype.update=function(t,e){var n=this;r.prototype.update.call(this,t,e),t.some(function(t){return t.target===n.domNode&&\"attributes\"===t.type})&&this.attributes.build()},c.prototype.wrap=function(t,e){t=r.prototype.wrap.call(this,t,e);return t instanceof c&&t.statics.scope===this.statics.scope&&this.attributes.move(t),t},c);function c(t){t=r.call(this,t)||this;return t.attributes=new a.default(t.domNode),t}e.default=n},function(t,e,n){\"use strict\";var o,r,i=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(30)),n=n(1),l=(r=l.default,i(a,r),a.value=function(t){return!0},a.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},a.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return 0<t&&(n+=1),[this.parent.domNode,n]},a.prototype.value=function(){return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},a.scope=n.Scope.INLINE_BLOT,a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=l},function(t,e,n){var r=n(11),i=n(3),l={attributes:{compose:function(t,e,n){\"object\"!=typeof t&&(t={});var o,r=i(!0,{},e=\"object\"!=typeof e?{}:e);for(o in n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return 0<Object.keys(r).length?r:void 0},diff:function(n,o){\"object\"!=typeof n&&(n={}),\"object\"!=typeof o&&(o={});var t=Object.keys(n).concat(Object.keys(o)).reduce(function(t,e){return r(n[e],o[e])||(t[e]=void 0===o[e]?null:o[e]),t},{});return 0<Object.keys(t).length?t:void 0},transform:function(n,o,t){return\"object\"!=typeof n?o:\"object\"==typeof o?t?(t=Object.keys(o).reduce(function(t,e){return void 0===n[e]&&(t[e]=o[e]),t},{}),0<Object.keys(t).length?t:void 0):o:void 0}},iterator:function(t){return new o(t)},length:function(t){return\"number\"==typeof t.delete?t.delete:\"number\"==typeof t.retain?t.retain:\"string\"==typeof t.insert?t.insert.length:1}};function o(t){this.ops=t,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(t){t=t||1/0;var e,n,o=this.ops[this.index];return o?(e=this.offset,(n=l.length(o))-e<=t?(t=n-e,this.index+=1,this.offset=0):this.offset+=t,\"number\"==typeof o.delete?{delete:t}:(n={},o.attributes&&(n.attributes=o.attributes),\"number\"==typeof o.retain?n.retain=t:\"string\"==typeof o.insert?n.insert=o.insert.substr(e,t):n.insert=o.insert,n)):{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?\"number\"==typeof this.ops[this.index].delete?\"delete\":\"number\"==typeof this.ops[this.index].retain?\"retain\":\"insert\":\"retain\"},t.exports=l},function(t,e){var n=function(){\"use strict\";function m(t,e){return null!=e&&t instanceof e}var _,O,w;try{_=Map}catch(t){_=function(){}}try{O=Set}catch(t){O=function(){}}try{w=Promise}catch(t){w=function(){}}function x(t,p,e,d,y){\"object\"==typeof p&&(e=p.depth,d=p.prototype,y=p.includeNonEnumerable,p=p.circular);var v=[],b=[],g=\"undefined\"!=typeof Buffer;return void 0===p&&(p=!0),function o(t,r){if(null===t)return null;if(0===r)return t;var n,e,i;if(\"object\"!=typeof t)return t;if(m(t,_))n=new _;else if(m(t,O))n=new O;else if(m(t,w))n=new w(function(e,n){t.then(function(t){e(o(t,r-1))},function(t){n(o(t,r-1))})});else if(x.__isArray(t))n=[];else if(x.__isRegExp(t))n=new RegExp(t.source,k(t)),t.lastIndex&&(n.lastIndex=t.lastIndex);else if(x.__isDate(t))n=new Date(t.getTime());else{if(g&&Buffer.isBuffer(t))return n=new Buffer(t.length),t.copy(n),n;m(t,Error)?n=Object.create(t):void 0===d?(e=Object.getPrototypeOf(t),n=Object.create(e)):(n=Object.create(d),e=d)}if(p){var l=v.indexOf(t);if(-1!=l)return b[l];v.push(t),b.push(n)}for(s in m(t,_)&&t.forEach(function(t,e){e=o(e,r-1),t=o(t,r-1),n.set(e,t)}),m(t,O)&&t.forEach(function(t){t=o(t,r-1),n.add(t)}),t)(i=e?Object.getOwnPropertyDescriptor(e,s):i)&&null==i.set||(n[s]=o(t[s],r-1));if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(t),s=0;s<a.length;s++){var u=a[s];(f=Object.getOwnPropertyDescriptor(t,u))&&!f.enumerable&&!y||(n[u]=o(t[u],r-1),f.enumerable)||Object.defineProperty(n,u,{enumerable:!1})}if(y)for(var c=Object.getOwnPropertyNames(t),s=0;s<c.length;s++){var f,h=c[s];(f=Object.getOwnPropertyDescriptor(t,h))&&f.enumerable||(n[h]=o(t[h],r-1),Object.defineProperty(n,h,{enumerable:!1}))}return n}(t,e=void 0===e?1/0:e)}function e(t){return Object.prototype.toString.call(t)}function k(t){var e=\"\";return t.global&&(e+=\"g\"),t.ignoreCase&&(e+=\"i\"),t.multiline&&(e+=\"m\"),e}return x.clonePrototype=function(t){var e;return null===t?null:((e=function(){}).prototype=t,new e)},x.__objToStr=e,x.__isDate=function(t){return\"object\"==typeof t&&\"[object Date]\"===e(t)},x.__isArray=function(t){return\"object\"==typeof t&&\"[object Array]\"===e(t)},x.__isRegExp=function(t){return\"object\"==typeof t&&\"[object RegExp]\"===e(t)},x.__getRegExpFlags=k,x}();\"object\"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?a(o,e,n):void 0}var s=p(n(0)),u=p(n(8)),c=n(4),i=p(c),f=p(n(16)),h=p(n(13)),n=p(n(25));function p(t){return t&&t.__esModule?t:{default:t}}function d(t){return t instanceof i.default||t instanceof c.BlockEmbed}var y=function(t){var e=i;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function i(t,e){if(this instanceof i)return(t=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t))).emitter=e.emitter,Array.isArray(e.whitelist)&&(t.whitelist=e.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),t.domNode.addEventListener(\"DOMNodeInserted\",function(){}),t.optimize(),t.enable(),t;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(i,[{key:\"batchStart\",value:function(){this.batch=!0}},{key:\"batchEnd\",value:function(){this.batch=!1,this.optimize()}},{key:\"deleteAt\",value:function(t,e){var n=this.line(t),n=l(n,2),o=n[0],n=n[1],r=this.line(t+e),r=l(r,1)[0];if(a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"deleteAt\",this).call(this,t,e),null!=r&&o!==r&&0<n){if(o instanceof c.BlockEmbed||r instanceof c.BlockEmbed)return void this.optimize();if(o instanceof h.default){t=o.newlineIndex(o.length(),!0);if(-1<t&&(o=o.split(t+1))===r)return void this.optimize()}else r instanceof h.default&&-1<(e=r.newlineIndex(0))&&r.split(e+1);n=r.children.head instanceof f.default?null:r.children.head;o.moveChildren(r,n),o.remove()}this.optimize()}},{key:\"enable\",value:function(){this.domNode.setAttribute(\"contenteditable\",!(0<arguments.length&&void 0!==arguments[0])||arguments[0])}},{key:\"formatAt\",value:function(t,e,n,o){null!=this.whitelist&&!this.whitelist[n]||(a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"formatAt\",this).call(this,t,e,n,o),this.optimize())}},{key:\"insertAt\",value:function(t,e,n){var o;null!=n&&null!=this.whitelist&&!this.whitelist[e]||(t>=this.length()?null==n||null==s.default.query(e,s.default.Scope.BLOCK)?(o=s.default.create(this.statics.defaultChild),this.appendChild(o),null==n&&e.endsWith(\"\\n\")&&(e=e.slice(0,-1)),o.insertAt(0,e,n)):(o=s.default.create(e,n),this.appendChild(o)):a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"insertAt\",this).call(this,t,e,n),this.optimize())}},{key:\"insertBefore\",value:function(t,e){var n;t.statics.scope===s.default.Scope.INLINE_BLOT&&((n=s.default.create(this.statics.defaultChild)).appendChild(t),t=n),a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"insertBefore\",this).call(this,t,e)}},{key:\"leaf\",value:function(t){return this.path(t).pop()||[null,-1]}},{key:\"line\",value:function(t){return t===this.length()?this.line(t-1):this.descendant(d,t)}},{key:\"lines\",value:function(){return function o(t,e,n){var r=[],i=n;return t.children.forEachAt(e,n,function(t,e,n){d(t)?r.push(t):t instanceof s.default.Container&&(r=r.concat(o(t,e,i))),i-=n}),r}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:\"optimize\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"optimize\",this).call(this,t,e),0<t.length)&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,e)}},{key:\"path\",value:function(t){return a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"path\",this).call(this,t).slice(1)}},{key:\"update\",value:function(t){var e;!0!==this.batch&&(e=u.default.sources.USER,\"string\"==typeof t&&(e=t),0<(t=Array.isArray(t)?t:this.observer.takeRecords()).length&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,e,t),a(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"update\",this).call(this,t.concat([])),0<t.length)&&this.emitter.emit(u.default.events.SCROLL_UPDATE,e,t)}}]),i}(s.default.Scroll);y.blotName=\"scroll\",y.className=\"ql-editor\",y.tagName=\"DIV\",y.defaultChild=\"block\",y.allowedChildren=[i.default,c.BlockEmbed,n.default],e.default=y},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.SHORTKEY=e.default=void 0;var h=\"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},p=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var i=f(n(21)),d=f(n(11)),l=f(n(3)),a=f(n(2)),s=f(n(20)),y=f(n(0)),u=f(n(5)),c=f(n(10)),n=f(n(9));function f(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}var b=(0,c.default)(\"quill:keyboard\"),g=/Mac/i.test(navigator.platform)?\"metaKey\":\"ctrlKey\",m=function(t){var e=f;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function f(e,t){var n;if(this instanceof f)return(n=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,t))).bindings={},Object.keys(n.options.bindings).forEach(function(t){(\"list autofill\"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])}),n.addBinding({key:f.keys.ENTER,shiftKey:null},k),n.addBinding({key:f.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:f.keys.BACKSPACE},{collapsed:!0},O),n.addBinding({key:f.keys.DELETE},{collapsed:!0},w)):(n.addBinding({key:f.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},O),n.addBinding({key:f.keys.DELETE},{collapsed:!0,suffix:/^.?$/},w)),n.addBinding({key:f.keys.BACKSPACE},{collapsed:!1},x),n.addBinding({key:f.keys.DELETE},{collapsed:!1},x),n.addBinding({key:f.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},O),n.listen(),n;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(f,null,[{key:\"match\",value:function(e,n){return n=j(n),![\"altKey\",\"ctrlKey\",\"metaKey\",\"shiftKey\"].some(function(t){return!!n[t]!==e[t]&&null!==n[t]})&&n.key===(e.which||e.keyCode)}}]),o(f,[{key:\"addBinding\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=j(t);if(null==t||null==t.key)return b.warn(\"Attempted to add invalid keyboard binding\",t);t=(0,l.default)(t,e=\"function\"==typeof e?{handler:e}:e,n=\"function\"==typeof n?{handler:n}:n),this.bindings[t.key]=this.bindings[t.key]||[],this.bindings[t.key].push(t)}},{key:\"listen\",value:function(){var c=this;this.quill.root.addEventListener(\"keydown\",function(e){var t,n,o,r,i,l,a,s,u;e.defaultPrevented||(t=e.which||e.keyCode,0!==(t=(c.bindings[t]||[]).filter(function(t){return f.match(e,t)})).length&&null!=(n=c.quill.getSelection())&&c.quill.hasFocus()&&(r=c.quill.getLine(n.index),o=(r=p(r,2))[0],r=r[1],s=c.quill.getLeaf(n.index),a=(s=p(s,2))[0],s=s[1],l=0===n.length?[a,s]:c.quill.getLeaf(n.index+n.length),i=(l=p(l,2))[0],l=l[1],a=a instanceof y.default.Text?a.value().slice(0,s):\"\",s=i instanceof y.default.Text?i.value().slice(l):\"\",u={collapsed:0===n.length,empty:0===n.length&&o.length()<=1,format:c.quill.getFormat(n),offset:r,prefix:a,suffix:s},t.some(function(e){if(null!=e.collapsed&&e.collapsed!==u.collapsed)return!1;if(null!=e.empty&&e.empty!==u.empty)return!1;if(null!=e.offset&&e.offset!==u.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==u.format[t]}))return!1}else if(\"object\"===h(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=u.format[t]:!1===e.format[t]?null==u.format[t]:(0,d.default)(e.format[t],u.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(u.prefix)||null!=e.suffix&&!e.suffix.test(u.suffix)||!0===e.handler.call(c,n,u))}))&&e.preventDefault())})}}]),f}(n.default);function _(n,o){var t=n===m.keys.LEFT?\"prefix\":\"suffix\",e={key:n,shiftKey:o,altKey:null};return v(e,t,/^$/),v(e,\"handler\",function(t){var e=t.index,e=(n===m.keys.RIGHT&&(e+=t.length+1),this.quill.getLeaf(e));return!(p(e,1)[0]instanceof y.default.Embed&&(n===m.keys.LEFT?o?this.quill.setSelection(t.index-1,t.length+1,u.default.sources.USER):this.quill.setSelection(t.index-1,u.default.sources.USER):o?this.quill.setSelection(t.index,t.length+1,u.default.sources.USER):this.quill.setSelection(t.index+t.length+1,u.default.sources.USER),1))}),e}function O(t,e){var n,o,r;0===t.index||this.quill.getLength()<=1||(n=this.quill.getLine(t.index),n=p(n,1)[0],o={},0===e.offset&&(r=this.quill.getLine(t.index-1),null!=(r=p(r,1)[0]))&&1<r.length()&&(r=n.formats(),n=this.quill.getFormat(t.index-1,1),o=s.default.attributes.diff(r,n)||{}),r=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]$/.test(e.prefix)?2:1,this.quill.deleteText(t.index-r,r,u.default.sources.USER),0<Object.keys(o).length&&this.quill.formatLine(t.index-r,r,o,u.default.sources.USER),this.quill.focus())}function w(t,e){var n,o,r,i,l=/^[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/.test(e.suffix)?2:1;t.index>=this.quill.getLength()-l||(r={},i=0,n=this.quill.getLine(t.index),n=p(n,1)[0],e.offset>=n.length()-1&&(e=this.quill.getLine(t.index+1),e=p(e,1)[0])&&(n=n.formats(),o=this.quill.getFormat(t.index,1),r=s.default.attributes.diff(n,o)||{},i=e.length()),this.quill.deleteText(t.index,l,u.default.sources.USER),0<Object.keys(r).length&&this.quill.formatLine(t.index+i-1,l,r,u.default.sources.USER))}function x(t){var e,n=this.quill.getLines(t),o={};1<n.length&&(e=n[0].formats(),n=n[n.length-1].formats(),o=s.default.attributes.diff(n,e)||{}),this.quill.deleteText(t,u.default.sources.USER),0<Object.keys(o).length&&this.quill.formatLine(t.index,1,o,u.default.sources.USER),this.quill.setSelection(t.index,u.default.sources.SILENT),this.quill.focus()}function k(t,n){var e=this,o=(0<t.length&&this.quill.scroll.deleteAt(t.index,t.length),Object.keys(n.format).reduce(function(t,e){return y.default.query(e,y.default.Scope.BLOCK)&&!Array.isArray(n.format[e])&&(t[e]=n.format[e]),t},{}));this.quill.insertText(t.index,\"\\n\",o,u.default.sources.USER),this.quill.setSelection(t.index+1,u.default.sources.SILENT),this.quill.focus(),Object.keys(n.format).forEach(function(t){null!=o[t]||Array.isArray(n.format[t])||\"link\"!==t&&e.quill.format(t,n.format[t],u.default.sources.USER)})}function E(s){return{key:m.keys.TAB,shiftKey:!s,format:{\"code-block\":!0},handler:function(t){var n,o=y.default.query(\"code-block\"),r=t.index,i=t.length,t=this.quill.scroll.descendant(o,r),t=p(t,2),l=t[0],a=t[1];null!=l&&(t=this.quill.getIndex(l),n=l.newlineIndex(a,!0)+1,t=l.newlineIndex(t+a+i),t=l.domNode.textContent.slice(n,t).split(\"\\n\"),a=0,t.forEach(function(t,e){s?(l.insertAt(n+a,o.TAB),a+=o.TAB.length,0===e?r+=o.TAB.length:i+=o.TAB.length):t.startsWith(o.TAB)&&(l.deleteAt(n+a,o.TAB.length),a-=o.TAB.length,0===e?r-=o.TAB.length:i-=o.TAB.length),a+=t.length+1}),this.quill.update(u.default.sources.USER),this.quill.setSelection(r,i,u.default.sources.SILENT))}}}function N(n){return{key:n[0].toUpperCase(),shortKey:!0,handler:function(t,e){this.quill.format(n,!e.format[n],u.default.sources.USER)}}}function j(t){if(\"string\"==typeof t||\"number\"==typeof t)return j({key:t});if(\"string\"==typeof(t=\"object\"===(void 0===t?\"undefined\":h(t))?(0,i.default)(t,!1):t).key)if(null!=m.keys[t.key.toUpperCase()])t.key=m.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[g]=t.shortKey,delete t.shortKey),t}m.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},m.DEFAULTS={bindings:{bold:N(\"bold\"),italic:N(\"italic\"),underline:N(\"underline\"),indent:{key:m.keys.TAB,format:[\"blockquote\",\"indent\",\"list\"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format(\"indent\",\"+1\",u.default.sources.USER)}},outdent:{key:m.keys.TAB,shiftKey:!0,format:[\"blockquote\",\"indent\",\"list\"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format(\"indent\",\"-1\",u.default.sources.USER)}},\"outdent backspace\":{key:m.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:[\"indent\",\"list\"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format(\"indent\",\"-1\",u.default.sources.USER):null!=e.format.list&&this.quill.format(\"list\",!1,u.default.sources.USER)}},\"indent code-block\":E(!0),\"outdent code-block\":E(!1),\"remove tab\":{key:m.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,u.default.sources.USER)}},tab:{key:m.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new a.default).retain(t.index).delete(t.length).insert(\"\\t\");this.quill.updateContents(e,u.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,u.default.sources.SILENT)}},\"list empty enter\":{key:m.keys.ENTER,collapsed:!0,format:[\"list\"],empty:!0,handler:function(t,e){this.quill.format(\"list\",!1,u.default.sources.USER),e.format.indent&&this.quill.format(\"indent\",!1,u.default.sources.USER)}},\"checklist enter\":{key:m.keys.ENTER,collapsed:!0,format:{list:\"checked\"},handler:function(t){var e=this.quill.getLine(t.index),e=p(e,2),n=e[0],e=e[1],o=(0,l.default)({},n.formats(),{list:\"checked\"}),o=(new a.default).retain(t.index).insert(\"\\n\",o).retain(n.length()-e-1).retain(1,{list:\"unchecked\"});this.quill.updateContents(o,u.default.sources.USER),this.quill.setSelection(t.index+1,u.default.sources.SILENT),this.quill.scrollIntoView()}},\"header enter\":{key:m.keys.ENTER,collapsed:!0,format:[\"header\"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),n=p(n,2),o=n[0],n=n[1],e=(new a.default).retain(t.index).insert(\"\\n\",e.format).retain(o.length()-n-1).retain(1,{header:null});this.quill.updateContents(e,u.default.sources.USER),this.quill.setSelection(t.index+1,u.default.sources.SILENT),this.quill.scrollIntoView()}},\"list autofill\":{key:\" \",collapsed:!0,format:{list:!1},prefix:/^\\s*?(\\d+\\.|-|\\*|\\[ ?\\]|\\[x\\])$/,handler:function(t,e){var n=e.prefix.length,o=this.quill.getLine(t.index),o=p(o,2),r=o[0],o=o[1];if(n<o)return!0;var i=void 0;switch(e.prefix.trim()){case\"[]\":case\"[ ]\":i=\"unchecked\";break;case\"[x]\":i=\"checked\";break;case\"-\":case\"*\":i=\"bullet\";break;default:i=\"ordered\"}this.quill.insertText(t.index,\" \",u.default.sources.USER),this.quill.history.cutoff();e=(new a.default).retain(t.index-o).delete(n+1).retain(r.length()-2-o).retain(1,{list:i});this.quill.updateContents(e,u.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,u.default.sources.SILENT)}},\"code exit\":{key:m.keys.ENTER,collapsed:!0,format:[\"code-block\"],prefix:/\\n\\n$/,suffix:/^\\s+$/,handler:function(t){var e=this.quill.getLine(t.index),e=p(e,2),n=e[0],e=e[1],t=(new a.default).retain(t.index+n.length()-e-2).retain(1,{\"code-block\":null}).delete(1);this.quill.updateContents(t,u.default.sources.USER)}},\"embed left\":_(m.keys.LEFT,!1),\"embed left shift\":_(m.keys.LEFT,!0),\"embed right\":_(m.keys.RIGHT,!1),\"embed right shift\":_(m.keys.RIGHT,!0)}},e.default=m,e.SHORTKEY=g},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});function r(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?r(o,e,n):void 0}var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var a=u(n(0)),s=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}n=function(t){var e=i;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function i(t,e){if(this instanceof i)return(t=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t))).selection=e,t.textNode=document.createTextNode(i.CONTENTS),t.domNode.appendChild(t.textNode),t._length=0,t;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(i,null,[{key:\"value\",value:function(){}}]),o(i,[{key:\"detach\",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:\"format\",value:function(t,e){if(0!==this._length)return r(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"format\",this).call(this,t,e);for(var n=this,o=0;null!=n&&n.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=i.CONTENTS.length,n.optimize(),n.formatAt(o,i.CONTENTS.length,t,e),this._length=0)}},{key:\"index\",value:function(t,e){return t===this.textNode?0:r(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"index\",this).call(this,t,e)}},{key:\"length\",value:function(){return this._length}},{key:\"position\",value:function(){return[this.textNode,this.textNode.data.length]}},{key:\"remove\",value:function(){r(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),\"remove\",this).call(this),this.parent=null}},{key:\"restore\",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,e=this.selection.getNativeRange(),n=void 0,o=void 0,r=void 0;for(null!=e&&e.start.node===t&&e.end.node===t&&(t=[t,e.start.offset,e.end.offset],n=t[0],o=t[1],r=t[2]);null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);return this.textNode.data!==i.CONTENTS&&(e=this.textNode.data.split(i.CONTENTS).join(\"\"),this.next instanceof s.default?(n=this.next.domNode,this.next.insertAt(0,e),this.textNode.data=i.CONTENTS):(this.textNode.data=e,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))),this.remove(),null!=o?(t=[o,r].map(function(t){return Math.max(0,Math.min(n.data.length,t-1))}),o=(e=l(t,2))[0],r=e[1],{startNode:n,startOffset:o,endNode:n,endOffset:r}):void 0}}},{key:\"update\",value:function(t,e){var n=this;t.some(function(t){return\"characterData\"===t.type&&t.target===n.textNode})&&(t=this.restore())&&(e.range=t)}},{key:\"value\",value:function(){return\"\"}}]),i}(a.default.Embed);n.blotName=\"cursor\",n.className=\"ql-cursor\",n.tagName=\"span\",n.CONTENTS=\"\\ufeff\",e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=i(n(0)),n=n(4),r=i(n);function i(t){return t&&t.__esModule?t:{default:t}}o=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),n}(o.default.Container);o.allowedChildren=[r.default,n.BlockEmbed,o],e.default=o},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(0),n=(n=n)&&n.__esModule?n:{default:n};var l=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"value\",value:function(t){return(t=i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"value\",this).call(this,t)).startsWith(\"rgb(\")?\"#\"+(t=t.replace(/^[^\\d]+/,\"\").replace(/[^\\d]+$/,\"\")).split(\",\").map(function(t){return(\"00\"+parseInt(t).toString(16)).slice(-2)}).join(\"\"):t}}]),n}(n.default.Attributor.Style),a=new n.default.Attributor.Class(\"color\",\"ql-color\",{scope:n.default.Scope.INLINE}),n=new l(\"color\",\"color\",{scope:n.default.Scope.INLINE});e.ColorAttributor=l,e.ColorClass=a,e.ColorStyle=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.sanitize=e.default=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(6);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"format\",value:function(t,e){if(t!==this.statics.blotName||!e)return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"format\",this).call(this,t,e);e=this.constructor.sanitize(e),this.domNode.setAttribute(\"href\",e)}}],[{key:\"create\",value:function(t){var e=i(n.__proto__||Object.getPrototypeOf(n),\"create\",this).call(this,t);return t=this.sanitize(t),e.setAttribute(\"href\",t),e.setAttribute(\"target\",\"_blank\"),e}},{key:\"formats\",value:function(t){return t.getAttribute(\"href\")}},{key:\"sanitize\",value:function(t){return l(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),n}(((n=n)&&n.__esModule?n:{default:n}).default);function l(t,e){var n=document.createElement(\"a\"),t=(n.href=t,n.href.slice(0,n.href.indexOf(\":\")));return-1<e.indexOf(t)}n.blotName=\"link\",n.tagName=\"A\",n.SANITIZED_URL=\"about:blank\",n.PROTOCOL_WHITELIST=[\"http\",\"https\",\"mailto\",\"tel\"],e.default=n,e.sanitize=l},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=\"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},r=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var l=s(n(23)),a=s(n(107));function s(t){return t&&t.__esModule?t:{default:t}}var u=0;function c(t,e){t.setAttribute(e,!(\"true\"===t.getAttribute(e)))}r(f,[{key:\"togglePicker\",value:function(){this.container.classList.toggle(\"ql-expanded\"),c(this.label,\"aria-expanded\"),c(this.options,\"aria-hidden\")}},{key:\"buildItem\",value:function(t){var e=this,n=document.createElement(\"span\");return n.tabIndex=\"0\",n.setAttribute(\"role\",\"button\"),n.classList.add(\"ql-picker-item\"),t.hasAttribute(\"value\")&&n.setAttribute(\"data-value\",t.getAttribute(\"value\")),t.textContent&&n.setAttribute(\"data-label\",t.textContent),n.addEventListener(\"click\",function(){e.selectItem(n,!0)}),n.addEventListener(\"keydown\",function(t){switch(t.keyCode){case l.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case l.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),n}},{key:\"buildLabel\",value:function(){var t=document.createElement(\"span\");return t.classList.add(\"ql-picker-label\"),t.innerHTML=a.default,t.tabIndex=\"0\",t.setAttribute(\"role\",\"button\"),t.setAttribute(\"aria-expanded\",\"false\"),this.container.appendChild(t),t}},{key:\"buildOptions\",value:function(){var n=this,o=document.createElement(\"span\");o.classList.add(\"ql-picker-options\"),o.setAttribute(\"aria-hidden\",\"true\"),o.tabIndex=\"-1\",o.id=\"ql-picker-options-\"+u,u+=1,this.label.setAttribute(\"aria-controls\",o.id),this.options=o,[].slice.call(this.select.options).forEach(function(t){var e=n.buildItem(t);o.appendChild(e),!0===t.selected&&n.selectItem(e)}),this.container.appendChild(o)}},{key:\"buildPicker\",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add(\"ql-picker\"),this.label=this.buildLabel(),this.buildOptions()}},{key:\"escape\",value:function(){var t=this;this.close(),setTimeout(function(){return t.label.focus()},1)}},{key:\"close\",value:function(){this.container.classList.remove(\"ql-expanded\"),this.label.setAttribute(\"aria-expanded\",\"false\"),this.options.setAttribute(\"aria-hidden\",\"true\")}},{key:\"selectItem\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(\".ql-selected\");t!==n&&(null!=n&&n.classList.remove(\"ql-selected\"),null!=t)&&(t.classList.add(\"ql-selected\"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute(\"data-value\")?this.label.setAttribute(\"data-value\",t.getAttribute(\"data-value\")):this.label.removeAttribute(\"data-value\"),t.hasAttribute(\"data-label\")?this.label.setAttribute(\"data-label\",t.getAttribute(\"data-label\")):this.label.removeAttribute(\"data-label\"),e)&&(\"function\"==typeof Event?this.select.dispatchEvent(new Event(\"change\")):\"object\"===(\"undefined\"==typeof Event?\"undefined\":o(Event))&&((n=document.createEvent(\"Event\")).initEvent(\"change\",!0,!0),this.select.dispatchEvent(n)),this.close())}},{key:\"update\",value:function(){var t=void 0,e=(-1<this.select.selectedIndex?(e=this.container.querySelector(\".ql-picker-options\").children[this.select.selectedIndex],t=this.select.options[this.select.selectedIndex],this.selectItem(e)):this.selectItem(null),null!=t&&t!==this.select.querySelector(\"option[selected]\"));this.label.classList.toggle(\"ql-active\",e)}}]);n=f;function f(t){var e=this;if(!(this instanceof f))throw new TypeError(\"Cannot call a class as a function\");this.select=t,this.container=document.createElement(\"span\"),this.buildPicker(),this.select.style.display=\"none\",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener(\"mousedown\",function(){e.togglePicker()}),this.label.addEventListener(\"keydown\",function(t){switch(t.keyCode){case l.default.keys.ENTER:e.togglePicker();break;case l.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),this.select.addEventListener(\"change\",this.update.bind(this))}e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),l=v(i),a=v(n(16)),s=v(n(25)),u=v(n(24)),c=v(n(35)),f=v(n(6)),h=v(n(22)),p=v(n(7)),d=v(n(55)),y=v(n(42)),n=v(n(23));function v(t){return t&&t.__esModule?t:{default:t}}r.default.register({\"blots/block\":l.default,\"blots/block/embed\":i.BlockEmbed,\"blots/break\":a.default,\"blots/container\":s.default,\"blots/cursor\":u.default,\"blots/embed\":c.default,\"blots/inline\":f.default,\"blots/scroll\":h.default,\"blots/text\":p.default,\"modules/clipboard\":d.default,\"modules/history\":y.default,\"modules/keyboard\":n.default}),o.default.register(l.default,a.default,u.default,f.default,h.default,p.default),e.default=r.default},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(1);function o(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}Object.defineProperty(o.prototype,\"statics\",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),o.create=function(t){if(null==this.tagName)throw new r.ParchmentError(\"Blot definition missing tagName\");t=Array.isArray(this.tagName)?\"number\"==typeof(t=\"string\"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t)?parseInt(t):t)?document.createElement(this.tagName[t-1]):-1<this.tagName.indexOf(t)?document.createElement(t):document.createElement(this.tagName[0]):document.createElement(this.tagName);return this.className&&t.classList.add(this.className),t},o.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},o.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},o.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},o.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},o.prototype.formatAt=function(t,e,n,o){t=this.isolate(t,e);null!=r.query(n,r.Scope.BLOT)&&o?t.wrap(n,o):null!=r.query(n,r.Scope.ATTRIBUTE)&&(e=r.create(this.statics.scope),t.wrap(e),e.format(n,o))},o.prototype.insertAt=function(t,e,n){e=null==n?r.create(\"text\",e):r.create(e,n),n=this.split(t);this.parent.insertBefore(e,n)},o.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},o.prototype.isolate=function(t,e){t=this.split(t);return t.split(e),t},o.prototype.length=function(){return 1},o.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},o.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},o.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},o.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},o.prototype.replaceWith=function(t,e){e=\"string\"==typeof t?r.create(t,e):t;return e.replace(this),e},o.prototype.split=function(t,e){return 0===t?this:this.next},o.prototype.update=function(t,e){},o.prototype.wrap=function(t,e){e=\"string\"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(e,this.next),e.appendChild(this),e},o.blotName=\"abstract\",e.default=o},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(12),i=n(32),l=n(33),a=n(1);function o(t){this.attributes={},this.domNode=t,this.build()}o.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},o.prototype.build=function(){var e=this,t=(this.attributes={},r.default.keys(this.domNode)),n=i.default.keys(this.domNode),o=l.default.keys(this.domNode);t.concat(n).concat(o).forEach(function(t){t=a.query(t,a.Scope.ATTRIBUTE);t instanceof r.default&&(e.attributes[t.attrName]=t)})},o.prototype.copy=function(n){var o=this;Object.keys(this.attributes).forEach(function(t){var e=o.attributes[t].value(o.domNode);n.format(t,e)})},o.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},o.prototype.values=function(){var n=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=n.attributes[e].value(n.domNode),t},{})},e.default=o},function(t,e,n){\"use strict\";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(12));function i(t,e){return(t.getAttribute(\"class\")||\"\").split(/\\s+/).filter(function(t){return 0===t.indexOf(e+\"-\")})}l=n.default,r(a,l),a.keys=function(t){return(t.getAttribute(\"class\")||\"\").split(/\\s+/).map(function(t){return t.split(\"-\").slice(0,-1).join(\"-\")})},a.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+\"-\"+e),!0)},a.prototype.remove=function(e){i(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute(\"class\")},a.prototype.value=function(t){var e=(i(t,this.keyName)[0]||\"\").slice(this.keyName.length+1);return this.canAdd(t,e)?e:\"\"};var l,n=a;function a(){return null!==l&&l.apply(this,arguments)||this}e.default=n},function(t,e,n){\"use strict\";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(12));function i(t){var t=t.split(\"-\"),e=t.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join(\"\");return t[0]+e}l=n.default,r(a,l),a.keys=function(t){return(t.getAttribute(\"style\")||\"\").split(\";\").map(function(t){return t.split(\":\")[0].trim()})},a.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},a.prototype.remove=function(t){t.style[i(this.keyName)]=\"\",t.getAttribute(\"style\")||t.removeAttribute(\"style\")},a.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:\"\"};var l,n=a;function a(){return null!==l&&l.apply(this,arguments)||this}e.default=n},function(t,e,n){\"use strict\";function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}Object.defineProperty(e,\"__esModule\",{value:!0});(function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)})(i,[{key:\"init\",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:\"addModule\",value:function(t){var e=this.quill.constructor.import(\"modules/\"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]);var r=i;function i(t,e){if(!(this instanceof i))throw new TypeError(\"Cannot call a class as a function\");this.quill=t,this.options=e,this.modules={}}r.DEFAULTS={modules:{}},r.themes={default:r},e.default=r},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=s(n(0)),a=s(n(7));function s(t){return t&&t.__esModule?t:{default:t}}var u=\"\\ufeff\",n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(t){var e;if(this instanceof n)return(e=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t))).contentNode=document.createElement(\"span\"),e.contentNode.setAttribute(\"contenteditable\",!1),[].slice.call(e.domNode.childNodes).forEach(function(t){e.contentNode.appendChild(t)}),e.leftGuard=document.createTextNode(u),e.rightGuard=document.createTextNode(u),e.domNode.appendChild(e.leftGuard),e.domNode.appendChild(e.contentNode),e.domNode.appendChild(e.rightGuard),e;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"index\",value:function(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"index\",this).call(this,t,e)}},{key:\"restore\",value:function(t){var e,n=void 0,o=void 0,r=t.data.split(u).join(\"\");return t===this.leftGuard?n=this.prev instanceof a.default?(e=this.prev.length(),this.prev.insertAt(e,r),{startNode:this.prev.domNode,startOffset:e+r.length}):(o=document.createTextNode(r),this.parent.insertBefore(l.default.create(o),this),{startNode:o,startOffset:r.length}):t===this.rightGuard&&(n=this.next instanceof a.default?(this.next.insertAt(0,r),{startNode:this.next.domNode,startOffset:r.length}):(o=document.createTextNode(r),this.parent.insertBefore(l.default.create(o),this.next),{startNode:o,startOffset:r.length})),t.data=u,n}},{key:\"update\",value:function(t,e){var n=this;t.forEach(function(t){\"characterData\"!==t.type||t.target!==n.leftGuard&&t.target!==n.rightGuard||(t=n.restore(t.target))&&(e.range=t)})}}]),n}(l.default.Embed);e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var n=n(0),n=(n=n)&&n.__esModule?n:{default:n};var o={scope:n.default.Scope.BLOCK,whitelist:[\"right\",\"center\",\"justify\"]},r=new n.default.Attributor.Attribute(\"align\",\"align\",o),i=new n.default.Attributor.Class(\"align\",\"ql-align\",o),n=new n.default.Attributor.Style(\"align\",\"text-align\",o);e.AlignAttribute=r,e.AlignClass=i,e.AlignStyle=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var o=n(0),o=(o=o)&&o.__esModule?o:{default:o},n=n(26);var r=new o.default.Attributor.Class(\"background\",\"ql-bg\",{scope:o.default.Scope.INLINE}),n=new n.ColorAttributor(\"background\",\"background-color\",{scope:o.default.Scope.INLINE});e.BackgroundClass=r,e.BackgroundStyle=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var n=n(0),n=(n=n)&&n.__esModule?n:{default:n};var o={scope:n.default.Scope.BLOCK,whitelist:[\"rtl\"]},r=new n.default.Attributor.Attribute(\"direction\",\"dir\",o),i=new n.default.Attributor.Class(\"direction\",\"ql-direction\",o),n=new n.default.Attributor.Style(\"direction\",\"direction\",o);e.DirectionAttribute=r,e.DirectionClass=i,e.DirectionStyle=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.FontClass=e.FontStyle=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(0),n=(n=n)&&n.__esModule?n:{default:n};var l={scope:n.default.Scope.INLINE,whitelist:[\"serif\",\"monospace\"]},a=new n.default.Attributor.Class(\"font\",\"ql-font\",l),n=new(function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"value\",value:function(t){return i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"value\",this).call(this,t).replace(/[\"']/g,\"\")}}]),n}(n.default.Attributor.Style))(\"font\",\"font-family\",l);e.FontStyle=n,e.FontClass=a},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var n=n(0),n=(n=n)&&n.__esModule?n:{default:n};var o=new n.default.Attributor.Class(\"size\",\"ql-size\",{scope:n.default.Scope.INLINE,whitelist:[\"small\",\"large\",\"huge\"]}),n=new n.default.Attributor.Style(\"size\",\"font-size\",{scope:n.default.Scope.INLINE,whitelist:[\"10px\",\"18px\",\"32px\"]});e.SizeClass=o,e.SizeStyle=n},function(t,e,n){\"use strict\";t.exports={align:{\"\":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),\"code-block\":n(58),color:n(84),direction:{\"\":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{\"+1\":n(96),\"-1\":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.getLastChangeIndex=e.default=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var i=a(n(0)),l=a(n(5));function a(t){return t&&t.__esModule?t:{default:t}}n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(t,e){var r;if(this instanceof n)return(r=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e))).lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(l.default.events.EDITOR_CHANGE,function(t,e,n,o){t!==l.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==l.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:\"Z\",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:\"Z\",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:\"Y\",shortKey:!0},r.redo.bind(r)),r;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"change\",value:function(t,e){var n;0!==this.stack[t].length&&(n=this.stack[t].pop(),this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],l.default.sources.USER),this.ignoreChange=!1,e=s(n[t]),this.quill.setSelection(e))}},{key:\"clear\",value:function(){this.stack={undo:[],redo:[]}}},{key:\"cutoff\",value:function(){this.lastRecorded=0}},{key:\"record\",value:function(t,e){var n,o;0!==t.ops.length&&(this.stack.redo=[],e=this.quill.getContents().diff(e),n=Date.now(),this.lastRecorded+this.options.delay>n&&0<this.stack.undo.length?(o=this.stack.undo.pop(),e=e.compose(o.undo),t=o.redo.compose(t)):this.lastRecorded=n,this.stack.undo.push({redo:t,undo:e}),this.stack.undo.length>this.options.maxStack)&&this.stack.undo.shift()}},{key:\"redo\",value:function(){this.change(\"redo\",\"undo\")}},{key:\"transform\",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:\"undo\",value:function(){this.change(\"undo\",\"redo\")}}]),n}(a(n(9)).default);function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),e=t.length()-e;return null!=(t=(t=t).ops[t.ops.length-1])&&(null!=t.insert?\"string\"==typeof t.insert&&t.insert.endsWith(\"\\n\"):null!=t.attributes&&Object.keys(t.attributes).some(function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)}))&&--e,e}n.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=n,e.getLastChangeIndex=s},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.BaseTooltip=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=d(n(3)),a=d(n(2)),s=d(n(8)),u=d(n(23)),c=d(n(34)),f=d(n(59)),h=d(n(60)),p=d(n(28)),n=d(n(61));function d(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function v(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function b(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}var g=[!1,\"center\",\"right\",\"justify\"],m=[\"#000000\",\"#e60000\",\"#ff9900\",\"#ffff00\",\"#008a00\",\"#0066cc\",\"#9933ff\",\"#ffffff\",\"#facccc\",\"#ffebcc\",\"#ffffcc\",\"#cce8cc\",\"#cce0f5\",\"#ebd6ff\",\"#bbbbbb\",\"#f06666\",\"#ffc266\",\"#ffff66\",\"#66b966\",\"#66a3e0\",\"#c285ff\",\"#888888\",\"#a10000\",\"#b26b00\",\"#b2b200\",\"#006100\",\"#0047b2\",\"#6b24b2\",\"#444444\",\"#5c0000\",\"#663d00\",\"#666600\",\"#003700\",\"#002966\",\"#3d1466\"],_=[!1,\"serif\",\"monospace\"],O=[\"1\",\"2\",\"3\",!1],w=[\"small\",!1,\"large\",\"huge\"],x=(b(k,c.default),o(k,[{key:\"addModule\",value:function(t){var e=i(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),\"addModule\",this).call(this,t);return\"toolbar\"===t&&this.extendToolbar(e),e}},{key:\"buildButtons\",value:function(t,o){t.forEach(function(n){(n.getAttribute(\"class\")||\"\").split(/\\s+/).forEach(function(t){var e;t.startsWith(\"ql-\")&&(t=t.slice(\"ql-\".length),null!=o[t])&&(\"direction\"===t?n.innerHTML=o[t][\"\"]+o[t].rtl:\"string\"==typeof o[t]?n.innerHTML=o[t]:null!=(e=n.value||\"\")&&o[t][e]&&(n.innerHTML=o[t][e]))})})}},{key:\"buildPickers\",value:function(t,n){var e=this;this.pickers=t.map(function(t){var e;return t.classList.contains(\"ql-align\")?(null==t.querySelector(\"option\")&&N(t,g),new h.default(t,n.align)):t.classList.contains(\"ql-background\")||t.classList.contains(\"ql-color\")?(e=t.classList.contains(\"ql-background\")?\"background\":\"color\",null==t.querySelector(\"option\")&&N(t,m,\"background\"==e?\"#ffffff\":\"#000000\"),new f.default(t,n[e])):(null==t.querySelector(\"option\")&&(t.classList.contains(\"ql-font\")?N(t,_):t.classList.contains(\"ql-header\")?N(t,O):t.classList.contains(\"ql-size\")&&N(t,w)),new p.default(t))});this.quill.on(s.default.events.EDITOR_CHANGE,function(){e.pickers.forEach(function(t){t.update()})})}}]),k);function k(n,t){y(this,k);var o=v(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,n,t));return n.emitter.listenDOM(\"click\",document.body,function t(e){if(!document.body.contains(n.root))return document.body.removeEventListener(\"click\",t);null==o.tooltip||o.tooltip.root.contains(e.target)||document.activeElement===o.tooltip.textbox||o.quill.hasFocus()||o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach(function(t){t.container.contains(e.target)||t.close()})}),o}x.DEFAULTS=(0,l.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit(\"formula\")},image:function(){var n=this,o=this.container.querySelector(\"input.ql-image[type=file]\");null==o&&((o=document.createElement(\"input\")).setAttribute(\"type\",\"file\"),o.setAttribute(\"accept\",\"image/png, image/gif, image/jpeg, image/bmp, image/x-icon\"),o.classList.add(\"ql-image\"),o.addEventListener(\"change\",function(){var t;null!=o.files&&null!=o.files[0]&&((t=new FileReader).onload=function(t){var e=n.quill.getSelection(!0);n.quill.updateContents((new a.default).retain(e.index).delete(e.length).insert({image:t.target.result}),s.default.sources.USER),n.quill.setSelection(e.index+1,s.default.sources.SILENT),o.value=\"\"},t.readAsDataURL(o.files[0]))}),this.container.appendChild(o)),o.click()},video:function(){this.quill.theme.tooltip.edit(\"video\")}}}}});b(E,n.default),o(E,[{key:\"listen\",value:function(){var e=this;this.textbox.addEventListener(\"keydown\",function(t){u.default.match(t,\"enter\")?(e.save(),t.preventDefault()):u.default.match(t,\"escape\")&&(e.cancel(),t.preventDefault())})}},{key:\"cancel\",value:function(){this.hide()}},{key:\"edit\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:\"link\",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove(\"ql-hidden\"),this.root.classList.add(\"ql-editing\"),null!=e?this.textbox.value=e:t!==this.root.getAttribute(\"data-mode\")&&(this.textbox.value=\"\"),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute(\"placeholder\",this.textbox.getAttribute(\"data-\"+t)||\"\"),this.root.setAttribute(\"data-mode\",t)}},{key:\"restoreFocus\",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:\"save\",value:function(){var t=this.textbox.value;switch(this.root.getAttribute(\"data-mode\")){case\"link\":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,\"link\",t,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format(\"link\",t,s.default.sources.USER)),this.quill.root.scrollTop=e;break;case\"video\":t=function(t){var e=t.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtube\\.com\\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtu\\.be\\/([a-zA-Z0-9_-]+)/);if(e)return(e[1]||\"https\")+\"://www.youtube.com/embed/\"+e[2]+\"?showinfo=0\";if(e=t.match(/^(?:(https?):\\/\\/)?(?:www\\.)?vimeo\\.com\\/(\\d+)/))return(e[1]||\"https\")+\"://player.vimeo.com/video/\"+e[2]+\"/\";return t}(t);case\"formula\":t&&null!=(e=this.quill.getSelection(!0))&&(e=e.index+e.length,this.quill.insertEmbed(e,this.root.getAttribute(\"data-mode\"),t,s.default.sources.USER),\"formula\"===this.root.getAttribute(\"data-mode\")&&this.quill.insertText(e+1,\" \",s.default.sources.USER),this.quill.setSelection(e+2,s.default.sources.USER))}this.textbox.value=\"\",this.hide()}}]);l=E;function E(t,e){y(this,E);t=v(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,t,e));return t.textbox=t.root.querySelector('input[type=\"text\"]'),t.listen(),t}function N(n,t,e){var o=2<arguments.length&&void 0!==e&&e;t.forEach(function(t){var e=document.createElement(\"option\");t===o?e.setAttribute(\"selected\",\"selected\"):e.setAttribute(\"value\",t),n.appendChild(e)})}e.BaseTooltip=l,e.default=x},function(t,e,n){\"use strict\";function o(){this.head=this.tail=null,this.length=0}Object.defineProperty(e,\"__esModule\",{value:!0}),o.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),1<t.length&&this.append.apply(this,t.slice(1))},o.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},o.prototype.insertBefore=function(t,e){t&&(null!=(t.next=e)?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?((this.tail.next=t).prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},o.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},o.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),--this.length)},o.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},o.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(t<r||e&&t===r&&(null==n.next||0!==n.next.length()))return[n,t];t-=r}return[null,0]},o.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},o.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var o,r=this.find(t),i=r[0],l=t-r[1],a=this.iterator(i);(o=a())&&l<t+e;){var s=o.length();l<t?n(o,t-l,Math.min(e,l+s-t)):n(o,0,Math.min(s,t+e-l)),l+=s}},o.prototype.map=function(n){return this.reduce(function(t,e){return t.push(n(e)),t},[])},o.prototype.reduce=function(t,e){for(var n,o=this.iterator();n=o();)e=t(e,n);return e},e.default=o},function(t,e,n){\"use strict\";var o,s,r=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(17)),c=n(1),i={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},n=(s=u.default,r(l,s),l.prototype.detach=function(){s.prototype.detach.call(this),this.observer.disconnect()},l.prototype.deleteAt=function(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(function(t){t.remove()}):s.prototype.deleteAt.call(this,t,e)},l.prototype.formatAt=function(t,e,n,o){this.update(),s.prototype.formatAt.call(this,t,e,n,o)},l.prototype.insertAt=function(t,e,n){this.update(),s.prototype.insertAt.call(this,t,e,n)},l.prototype.optimize=function(t,e){for(var n=this,o=(void 0===t&&(t=[]),void 0===e&&(e={}),s.prototype.optimize.call(this,e),[].slice.call(this.observer.takeRecords()));0<o.length;)t.push(o.pop());for(var r=function(t,e){void 0===e&&(e=!0),null!=t&&t!==n&&null!=t.domNode.parentNode&&(null==t.domNode[c.DATA_KEY].mutations&&(t.domNode[c.DATA_KEY].mutations=[]),e)&&r(t.parent)},i=function(t){null!=t.domNode[c.DATA_KEY]&&null!=t.domNode[c.DATA_KEY].mutations&&(t instanceof u.default&&t.children.forEach(i),t.optimize(e))},l=t,a=0;0<l.length;a+=1){if(100<=a)throw new Error(\"[Parchment] Maximum optimize iterations reached\");for(l.forEach(function(t){var e=c.find(t.target,!0);null!=e&&(e.domNode===t.target&&(\"childList\"===t.type?(r(c.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){t=c.find(t,!1);r(t,!1),t instanceof u.default&&t.children.forEach(function(t){r(t,!1)})})):\"attributes\"===t.type&&r(e.prev)),r(e))}),this.children.forEach(i),o=(l=[].slice.call(this.observer.takeRecords())).slice();0<o.length;)t.push(o.pop())}},l.prototype.update=function(t,e){var n=this;void 0===e&&(e={}),(t=t||this.observer.takeRecords()).map(function(t){var e=c.find(t.target,!0);return null==e?null:null==e.domNode[c.DATA_KEY].mutations?(e.domNode[c.DATA_KEY].mutations=[t],e):(e.domNode[c.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==n&&null!=t.domNode[c.DATA_KEY]&&t.update(t.domNode[c.DATA_KEY].mutations||[],e)}),null!=this.domNode[c.DATA_KEY].mutations&&s.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,e),this.optimize(t,e)},l.blotName=\"scroll\",l.defaultChild=\"block\",l.scope=c.Scope.BLOCK_BLOT,l.tagName=\"DIV\",l);function l(t){var e=s.call(this,t)||this;return(e.scroll=e).observer=new MutationObserver(function(t){e.update(t)}),e.observer.observe(e.domNode,i),e.attach(),e}e.default=n},function(t,e,n){\"use strict\";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(18)),l=n(1);a=i.default,r(s,a),s.formats=function(t){if(t.tagName!==s.tagName)return a.formats.call(this,t)},s.prototype.format=function(t,e){var n=this;t!==this.statics.blotName||e?a.prototype.format.call(this,t,e):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(s.blotName,!0)),n.attributes.copy(t)}),this.unwrap())},s.prototype.formatAt=function(t,e,n,o){null!=this.formats()[n]||l.query(n,l.Scope.ATTRIBUTE)?this.isolate(t,e).format(n,o):a.prototype.formatAt.call(this,t,e,n,o)},s.prototype.optimize=function(t){a.prototype.optimize.call(this,t);t=this.formats();if(0===Object.keys(t).length)return this.unwrap();var e=this.next;e instanceof s&&e.prev===this&&function(t,e){if(Object.keys(t).length===Object.keys(e).length){for(var n in t)if(t[n]!==e[n])return;return 1}}(t,e.formats())&&(e.moveChildren(this),e.remove())},s.blotName=\"inline\",s.scope=l.Scope.INLINE_BLOT,s.tagName=\"SPAN\";var a,n=s;function s(){return null!==a&&a.apply(this,arguments)||this}e.default=n},function(t,e,n){\"use strict\";var o,r,i=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(18)),a=n(1),n=(r=l.default,i(s,r),s.formats=function(t){var e=a.query(s.blotName).tagName;if(t.tagName!==e)return r.formats.call(this,t)},s.prototype.format=function(t,e){null!=a.query(t,a.Scope.BLOCK)&&(t!==this.statics.blotName||e?r.prototype.format.call(this,t,e):this.replaceWith(s.blotName))},s.prototype.formatAt=function(t,e,n,o){null!=a.query(n,a.Scope.BLOCK)?this.format(n,o):r.prototype.formatAt.call(this,t,e,n,o)},s.prototype.insertAt=function(t,e,n){null==n||null!=a.query(e,a.Scope.INLINE)?r.prototype.insertAt.call(this,t,e,n):(t=this.split(t),e=a.create(e,n),t.parent.insertBefore(e,t))},s.prototype.update=function(t,e){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,t,e)},s.blotName=\"block\",s.scope=a.Scope.BLOCK_BLOT,s.tagName=\"P\",s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=n},function(t,e,n){\"use strict\";var o,r,i=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),n=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(19)),n=(r=n.default,i(l,r),l.formats=function(t){},l.prototype.format=function(t,e){r.prototype.formatAt.call(this,0,this.length(),t,e)},l.prototype.formatAt=function(t,e,n,o){0===t&&e===this.length()?this.format(n,o):r.prototype.formatAt.call(this,t,e,n,o)},l.prototype.formats=function(){return this.statics.formats(this.domNode)},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=n},function(t,e,n){\"use strict\";var o,r,i=this&&this.__extends||(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}),function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=(Object.defineProperty(e,\"__esModule\",{value:!0}),n(19)),a=n(1),n=(r=l.default,i(s,r),s.create=function(t){return document.createTextNode(t)},s.value=function(t){t=t.data;return t=t.normalize?t.normalize():t},s.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},s.prototype.index=function(t,e){return this.domNode===t?e:-1},s.prototype.insertAt=function(t,e,n){null==n?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):r.prototype.insertAt.call(this,t,e,n)},s.prototype.length=function(){return this.text.length},s.prototype.optimize=function(t){r.prototype.optimize.call(this,t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof s&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},s.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},s.prototype.split=function(t,e){if(!(e=void 0===e?!1:e)){if(0===t)return this;if(t===this.length())return this.next}e=a.create(this.domNode.splitText(t));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},s.prototype.update=function(t,e){var n=this;t.some(function(t){return\"characterData\"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},s.prototype.value=function(){return this.text},s.blotName=\"text\",s.scope=a.Scope.INLINE_BLOT,s);function s(t){t=r.call(this,t)||this;return t.text=t.statics.value(t.domNode),t}e.default=n},function(t,e,n){\"use strict\";var o,r=document.createElement(\"div\");r.classList.toggle(\"test-class\",!1),r.classList.contains(\"test-class\")&&(o=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(t,e){return 1<arguments.length&&!this.contains(t)==!e?e:o.call(this,t)}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return this.substr(e=e||0,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString(),n=((\"number\"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length,n.indexOf(t,e));return-1!==n&&n===e}),Array.prototype.find||Object.defineProperty(Array.prototype,\"find\",{value:function(t){if(null===this)throw new TypeError(\"Array.prototype.find called on null or undefined\");if(\"function\"!=typeof t)throw new TypeError(\"predicate must be a function\");for(var e,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(e=n[i],t.call(r,e,i,n))return e}}),document.addEventListener(\"DOMContentLoaded\",function(){document.execCommand(\"enableObjectResizing\",!1,!1),document.execCommand(\"autoUrlDetect\",!1,!1)})},function(t,e){var E=-1,N=1,u=0;function a(t,e,n){if(t==e)return t?[[u,t]]:[];(n<0||t.length<n)&&(n=null);var o=h(t,e),r=t.substring(0,o),i=(o=p(t=t.substring(o),e=e.substring(o)),t.substring(t.length-o)),t=function(t,e){if(!t)return[[N,e]];if(!e)return[[E,t]];var n=t.length>e.length?t:e,o=t.length>e.length?e:t,r=n.indexOf(o);if(-1!=r)return n=[[N,n.substring(0,r)],[u,o],[N,n.substring(r+o.length)]],t.length>e.length&&(n[0][0]=n[2][0]=E),n;if(1==o.length)return[[E,t],[N,e]];r=function(t,e){var n=t.length>e.length?t:e,o=t.length>e.length?e:t;if(n.length<4||2*o.length<n.length)return null;function r(t,e,n){for(var o,r,i,l,a=t.substring(n,n+Math.floor(t.length/4)),s=-1,u=\"\";-1!=(s=e.indexOf(a,s+1));){var c=h(t.substring(n),e.substring(s)),f=p(t.substring(0,n),e.substring(0,s));u.length<f+c&&(u=e.substring(s-f,s)+e.substring(s,s+c),o=t.substring(0,n-f),r=t.substring(n+c),i=e.substring(0,s-f),l=e.substring(s+c))}return 2*u.length>=t.length?[o,r,i,l,u]:null}var i,l,a,s,u=r(n,o,Math.ceil(n.length/4)),o=r(n,o,Math.ceil(n.length/2));{if(!u&&!o)return null;n=!o||u&&u[4].length>o[4].length?u:o}t.length>e.length?(i=n[0],l=n[1],a=n[2],s=n[3]):(a=n[0],s=n[1],i=n[2],l=n[3]);u=n[4];return[i,l,a,s,u]}(t,e);{var i,l;if(r)return n=r[0],o=r[1],l=r[2],i=r[3],r=r[4],n=a(n,l),l=a(o,i),n.concat([[u,r]],l)}return function(t,e){for(var n=t.length,o=e.length,r=Math.ceil((n+o)/2),i=r,l=2*r,a=new Array(l),s=new Array(l),u=0;u<l;u++)a[u]=-1,s[u]=-1;a[i+1]=0,s[i+1]=0;for(var c=n-o,f=c%2!=0,h=0,p=0,d=0,y=0,v=0;v<r;v++){for(var b=-v+h;b<=v-p;b+=2){for(var g=i+b,m=(k=b==-v||b!=v&&a[g-1]<a[g+1]?a[g+1]:a[g-1]+1)-b;k<n&&m<o&&t.charAt(k)==e.charAt(m);)k++,m++;if(a[g]=k,n<k)p+=2;else if(o<m)h+=2;else if(f){var _,O=i+c-b;if(0<=O&&O<l&&-1!=s[O])if((_=n-s[O])<=k)return j(t,e,k,m)}}for(var w=-v+d;w<=v-y;w+=2){for(var O=i+w,x=(_=w==-v||w!=v&&s[O-1]<s[O+1]?s[O+1]:s[O-1]+1)-w;_<n&&x<o&&t.charAt(n-_-1)==e.charAt(o-x-1);)_++,x++;if(s[O]=_,n<_)y+=2;else if(o<x)d+=2;else if(!f)if(0<=(g=i+c-w)&&g<l&&-1!=a[g]){var k=a[g],m=i+k-g;if((_=n-_)<=k)return j(t,e,k,m)}}}return[[E,t],[N,e]]}(t,e)}(t=t.substring(0,t.length-o),e=e.substring(0,e.length-o));return r&&t.unshift([u,r]),i&&t.push([u,i]),function t(e){e.push([u,\"\"]);var n=0;var o=0;var r=0;var i=\"\";var l=\"\";var a;for(;n<e.length;)switch(e[n][0]){case N:r++,l+=e[n][1],n++;break;case E:o++,i+=e[n][1],n++;break;case u:1<o+r?(0!==o&&0!==r&&(0!==(a=h(l,i))&&(0<n-o-r&&e[n-o-r-1][0]==u?e[n-o-r-1][1]+=l.substring(0,a):(e.splice(0,0,[u,l.substring(0,a)]),n++),l=l.substring(a),i=i.substring(a)),0!==(a=p(l,i)))&&(e[n][1]=l.substring(l.length-a)+e[n][1],l=l.substring(0,l.length-a),i=i.substring(0,i.length-a)),0===o?e.splice(n-r,o+r,[N,l]):0===r?e.splice(n-o,o+r,[E,i]):e.splice(n-o-r,o+r,[E,i],[N,l]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&e[n-1][0]==u?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=r=0,l=i=\"\"}\"\"===e[e.length-1][1]&&e.pop();var s=!1;n=1;for(;n<e.length-1;)e[n-1][0]==u&&e[n+1][0]==u&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),s=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),s=!0)),n++;s&&t(e)}(t),null!=n&&(e=function(t,e){if(0===e)return[u,t];for(var n=0,o=0;o<t.length;o++){var r=t[o];if(r[0]===E||r[0]===u){var i,l,a=n+r[1].length;if(e===a)return[o+1,t];if(e<a)return t=t.slice(),i=e-n,l=[r[0],r[1].slice(0,i)],r=[r[0],r[1].slice(i)],t.splice(o,1,l,r),[o+1,t];n=a}}throw new Error(\"cursor_pos is out of bounds!\")}(o=t,e=n),r=e[1],e=e[0],i=r[e],n=r[e+1],t=null==i||i[0]!==u?o:null!=n&&i[1]+n[1]===n[1]+i[1]?(r.splice(e,2,n,i),l(r,e,2)):null!=n&&0===n[1].indexOf(i[1])?(r.splice(e,2,[n[0],i[1]],[0,i[1]]),0<(i=n[1].slice(i[1].length)).length&&r.splice(e+2,0,[n[0],i]),l(r,e,3)):o),t=function(t){function e(t){return 56320<=t.charCodeAt(0)&&t.charCodeAt(0)<=57343}for(var n=!1,o=2;o<t.length;o+=1)t[o-2][0]===u&&function(t){return 55296<=t.charCodeAt(t.length-1)&&t.charCodeAt(t.length-1)<=56319}(t[o-2][1])&&t[o-1][0]===E&&e(t[o-1][1])&&t[o][0]===N&&e(t[o][1])&&(n=!0,t[o-1][1]=t[o-2][1].slice(-1)+t[o-1][1],t[o][1]=t[o-2][1].slice(-1)+t[o][1],t[o-2][1]=t[o-2][1].slice(0,-1));if(!n)return t;for(var r=[],o=0;o<t.length;o+=1)0<t[o][1].length&&r.push(t[o]);return r}(t)}function j(t,e,n,o){var r=t.substring(0,n),i=e.substring(0,o),t=t.substring(n),n=e.substring(o),e=a(r,i),o=a(t,n);return e.concat(o)}function h(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,o=Math.min(t.length,e.length),r=o,i=0;n<r;)t.substring(i,r)==e.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function p(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,o=Math.min(t.length,e.length),r=o,i=0;n<r;)t.substring(t.length-r,t.length-i)==e.substring(e.length-r,e.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}var n=a;function l(t,e,n){for(var o,r,i=e+n-1;0<=i&&e-1<=i;i--)i+1<t.length&&(o=t[i],r=t[i+1],o[0]===r[1])&&t.splice(i,2,[o[0],o[1]+r[1]]);return t}n.INSERT=N,n.DELETE=E,n.EQUAL=u,t.exports=n},function(t,e){function n(t){var e,n=[];for(e in t)n.push(e);return n}(t.exports=\"function\"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n=\"[object Arguments]\"==function(){return Object.prototype.toString.call(arguments)}();function o(t){return\"[object Arguments]\"==Object.prototype.toString.call(t)}function r(t){return t&&\"object\"==typeof t&&\"number\"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,\"callee\")&&!Object.prototype.propertyIsEnumerable.call(t,\"callee\")||!1}(e=t.exports=n?o:r).supported=o,e.unsupported=r},function(t,e){\"use strict\";var o=Object.prototype.hasOwnProperty,p=\"~\";function s(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function n(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(p=!1)),n.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)o.call(t,e)&&n.push(p?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},n.prototype.listeners=function(t,e){var t=p?p+t:t,n=this._events[t];if(e)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var o=0,r=n.length,i=new Array(r);o<r;o++)i[o]=n[o].fn;return i},n.prototype.emit=function(t,e,n,o,r,i){var l=p?p+t:t;if(!this._events[l])return!1;var a,s=this._events[l],u=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),u){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,r),!0;case 6:return s.fn.call(s.context,e,n,o,r,i),!0}for(h=1,a=new Array(u-1);h<u;h++)a[h-1]=arguments[h];s.fn.apply(s.context,a)}else for(var c,f=s.length,h=0;h<f;h++)switch(s[h].once&&this.removeListener(t,s[h].fn,void 0,!0),u){case 1:s[h].fn.call(s[h].context);break;case 2:s[h].fn.call(s[h].context,e);break;case 3:s[h].fn.call(s[h].context,e,n);break;case 4:s[h].fn.call(s[h].context,e,n,o);break;default:if(!a)for(c=1,a=new Array(u-1);c<u;c++)a[c-1]=arguments[c];s[h].fn.apply(s[h].context,a)}return!0},n.prototype.on=function(t,e,n){e=new r(e,n||this),n=p?p+t:t;return this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],e]:this._events[n].push(e):(this._events[n]=e,this._eventsCount++),this},n.prototype.once=function(t,e,n){e=new r(e,n||this,!0),n=p?p+t:t;return this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],e]:this._events[n].push(e):(this._events[n]=e,this._eventsCount++),this},n.prototype.removeListener=function(t,e,n,o){t=p?p+t:t;if(this._events[t])if(e){var r=this._events[t];if(r.fn)r.fn!==e||o&&!r.once||n&&r.context!==n||(0==--this._eventsCount?this._events=new s:delete this._events[t]);else{for(var i=0,l=[],a=r.length;i<a;i++)(r[i].fn!==e||o&&!r[i].once||n&&r[i].context!==n)&&l.push(r[i]);l.length?this._events[t]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new s:delete this._events[t]}}else 0==--this._eventsCount?this._events=new s:delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return t?(t=p?p+t:t,this._events[t]&&(0==--this._eventsCount?this._events=new s:delete this._events[t])):(this._events=new s,this._eventsCount=0),this},n.prototype.off=n.prototype.removeListener,n.prototype.addListener=n.prototype.on,n.prototype.setMaxListeners=function(){return this},n.prefixed=p,n.EventEmitter=n,void 0!==t&&(t.exports=n)},function(M,t,e){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r=\"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},l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},n=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var i=g(e(3)),a=g(e(2)),s=g(e(0)),u=g(e(5)),c=g(e(10)),f=g(e(9)),h=e(36),p=e(37),d=g(e(13)),y=e(26),v=e(38),b=e(39),e=e(40);function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,c.default)(\"quill:clipboard\"),O=\"__ql-matcher\",w=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,S],[\"br\",function(t,e){j(e,\"\\n\")||e.insert(\"\\n\");return e}],[Node.ELEMENT_NODE,S],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,C],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,function(t,e){var n={},o=t.style||{};o.fontStyle&&\"italic\"===N(t).fontStyle&&(n.italic=!0);o.fontWeight&&(N(t).fontWeight.startsWith(\"bold\")||700<=parseInt(N(t).fontWeight))&&(n.bold=!0);0<Object.keys(n).length&&(e=E(e,n));0<parseFloat(o.textIndent||0)&&(e=(new a.default).insert(\"\\t\").concat(e));return e}],[\"li\",function(t,e){var n=s.default.query(t);if(null==n||\"list-item\"!==n.blotName||!j(e,\"\\n\"))return e;var o=-1,r=t.parentNode;for(;!r.classList.contains(\"ql-clipboard\");)\"list\"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?e:e.compose((new a.default).retain(e.length()-1).retain(1,{indent:o}))}],[\"b\",q.bind(q,\"bold\")],[\"i\",q.bind(q,\"italic\")],[\"style\",function(){return new a.default}]],x=[h.AlignAttribute,v.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),k=[h.AlignStyle,p.BackgroundStyle,y.ColorStyle,v.DirectionStyle,b.FontStyle,e.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),c=function(t){var e=r;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function r(t,n){var o;if(this instanceof r)return(o=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t,n))).quill.root.addEventListener(\"paste\",o.onPaste.bind(o)),o.container=o.quill.addContainer(\"ql-clipboard\"),o.container.setAttribute(\"contenteditable\",!0),o.container.setAttribute(\"tabindex\",-1),o.matchers=[],w.concat(o.options.matchers).forEach(function(t){var t=l(t,2),e=t[0],t=t[1];!n.matchVisual&&t===C||o.addMatcher(e,t)}),o;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),n(r,[{key:\"addMatcher\",value:function(t,e){this.matchers.push([t,e])}},{key:\"convert\",value:function(t){var e;return\"string\"==typeof t?(this.container.innerHTML=t.replace(/\\>\\r?\\n +\\</g,\"><\"),this.convert()):(t=this.quill.getFormat(this.quill.selection.savedRange.index))[d.default.blotName]?(e=this.container.innerText,this.container.innerHTML=\"\",(new a.default).insert(e,m({},d.default.blotName,t[d.default.blotName]))):(e=this.prepareMatching(),e=(t=l(e,2))[0],t=t[1],j(e=function o(r,i,l){return r.nodeType===r.TEXT_NODE?l.reduce(function(t,e){return e(r,t)},new a.default):r.nodeType===r.ELEMENT_NODE?[].reduce.call(r.childNodes||[],function(t,n){var e=o(n,i,l);return n.nodeType===r.ELEMENT_NODE&&(e=i.reduce(function(t,e){return e(n,t)},e),e=(n[O]||[]).reduce(function(t,e){return e(n,t)},e)),t.concat(e)},new a.default):new a.default}(this.container,e,t),\"\\n\")&&null==e.ops[e.ops.length-1].attributes&&(e=e.compose((new a.default).retain(e.length()-1).delete(1))),_.log(\"convert\",this.container.innerHTML,e),this.container.innerHTML=\"\",e)}},{key:\"dangerouslyPasteHTML\",value:function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;\"string\"==typeof t?(this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,u.default.sources.SILENT)):(e=this.convert(e),this.quill.updateContents((new a.default).retain(t).concat(e),n),this.quill.setSelection(t+e.length(),u.default.sources.SILENT))}},{key:\"onPaste\",value:function(t){var e,n,o,r=this;!t.defaultPrevented&&this.quill.isEnabled()&&(e=this.quill.getSelection(),n=(new a.default).retain(e.index),o=this.quill.scrollingContainer.scrollTop,this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){n=n.concat(r.convert()).delete(e.length),r.quill.updateContents(n,u.default.sources.USER),r.quill.setSelection(n.length()-e.length,u.default.sources.SILENT),r.quill.scrollingContainer.scrollTop=o,r.quill.focus()},1))}},{key:\"prepareMatching\",value:function(){var o=this,r=[],i=[];return this.matchers.forEach(function(t){var t=l(t,2),e=t[0],n=t[1];switch(e){case Node.TEXT_NODE:i.push(n);break;case Node.ELEMENT_NODE:r.push(n);break;default:[].forEach.call(o.container.querySelectorAll(e),function(t){t[O]=t[O]||[],t[O].push(n)})}}),[r,i]}}]),r}(f.default);function E(t,n,o){return\"object\"===(void 0===n?\"undefined\":r(n))?Object.keys(n).reduce(function(t,e){return E(t,e,n[e])},t):t.reduce(function(t,e){return e.attributes&&e.attributes[n]?t.push(e):t.insert(e.insert,(0,i.default)({},m({},n,o),e.attributes))},new a.default)}function N(t){var e;return t.nodeType!==Node.ELEMENT_NODE?{}:t[e=\"__ql-computed-style\"]||(t[e]=window.getComputedStyle(t))}function j(t,e){for(var n=\"\",o=t.ops.length-1;0<=o&&n.length<e.length;--o){var r=t.ops[o];if(\"string\"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*e.length)===e}function A(t){if(0!==t.childNodes.length)return t=N(t),-1<[\"block\",\"list-item\"].indexOf(t.display)}function q(t,e,n){return E(n,t,!0)}function T(n,t){var e=s.default.Attributor.Attribute.keys(n),o=s.default.Attributor.Class.keys(n),r=s.default.Attributor.Style.keys(n),i={};return e.concat(o).concat(r).forEach(function(t){var e=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=e&&(i[e.attrName]=e.value(n),i[e.attrName])||(null==(e=x[t])||e.attrName!==t&&e.keyName!==t||(i[e.attrName]=e.value(n)||void 0),null==(e=k[t]))||e.attrName!==t&&e.keyName!==t||(e=k[t],i[e.attrName]=e.value(n)||void 0)}),t=0<Object.keys(i).length?E(t,i):t}function P(t,e){var n,o,r=s.default.query(t);return null!=r&&(r.prototype instanceof s.default.Embed?(n={},null!=(o=r.value(t))&&(n[r.blotName]=o,e=(new a.default).insert(n,r.formats(t)))):\"function\"==typeof r.formats&&(e=E(e,r.blotName,r.formats(t)))),e}function S(t,e){return j(e,\"\\n\")||(A(t)||0<e.length()&&t.nextSibling&&A(t.nextSibling))&&e.insert(\"\\n\"),e}function C(t,e){var n;return A(t)&&null!=t.nextElementSibling&&!j(e,\"\\n\\n\")&&(n=t.offsetHeight+parseFloat(N(t).marginTop)+parseFloat(N(t).marginBottom),t.nextElementSibling.offsetTop>t.offsetTop+1.5*n)&&e.insert(\"\\n\"),e}function L(t,e){var n,o=t.data;return\"O:P\"===t.parentNode.tagName?e.insert(o.trim()):0===o.trim().length&&t.parentNode.classList.contains(\"ql-clipboard\")?e:(!N(t.parentNode).whiteSpace.startsWith(\"pre\")&&(n=function(t,e){return(e=e.replace(/[^\\u00a0]/g,\"\")).length<1&&t?\" \":e},o=(o=o.replace(/\\r\\n/g,\" \").replace(/\\n/g,\" \")).replace(/\\s\\s+/g,n.bind(n,!0)),(null==t.previousSibling&&A(t.parentNode)||null!=t.previousSibling&&A(t.previousSibling))&&(o=o.replace(/^\\s+/,n.bind(n,!1))),null==t.nextSibling&&A(t.parentNode)||null!=t.nextSibling&&A(t.nextSibling))&&(o=o.replace(/\\s+$/,n.bind(n,!1))),e.insert(o))}c.DEFAULTS={matchers:[],matchVisual:!0},t.default=c,t.matchAttributor=T,t.matchBlot=P,t.matchNewline=S,t.matchSpacing=C,t.matchText=L},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(6);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"optimize\",value:function(t){i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"optimize\",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:\"create\",value:function(){return i(n.__proto__||Object.getPrototypeOf(n),\"create\",this).call(this)}},{key:\"formats\",value:function(){return!0}}]),n}(((n=n)&&n.__esModule?n:{default:n}).default);n.blotName=\"bold\",n.tagName=[\"STRONG\",\"B\"],e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.addControls=e.default=void 0;var s=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var u=l(n(2)),c=l(n(0)),f=l(n(5)),i=l(n(10)),n=l(n(9));function l(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}var h=(0,i.default)(\"quill:toolbar\"),i=function(t){var e=o;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function o(t,e){var n;if(this instanceof o)return n=a(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,t,e)),Array.isArray(n.options.container)?(d(e=document.createElement(\"div\"),n.options.container),t.container.parentNode.insertBefore(e,t.container),n.container=e):\"string\"==typeof n.options.container?n.container=document.querySelector(n.options.container):n.container=n.options.container,n.container instanceof HTMLElement?(n.container.classList.add(\"ql-toolbar\"),n.controls=[],n.handlers={},Object.keys(n.options.handlers).forEach(function(t){n.addHandler(t,n.options.handlers[t])}),[].forEach.call(n.container.querySelectorAll(\"button, select\"),function(t){n.attach(t)}),n.quill.on(f.default.events.EDITOR_CHANGE,function(t,e){t===f.default.events.SELECTION_CHANGE&&n.update(e)}),n.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var t=n.quill.selection.getRange(),t=s(t,1)[0];n.update(t)}),n):(t=h.error(\"Container required for toolbar\",n.options),a(n,t));throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),r(o,[{key:\"addHandler\",value:function(t,e){this.handlers[t]=e}},{key:\"attach\",value:function(i){var l=this,a=[].find.call(i.classList,function(t){return 0===t.indexOf(\"ql-\")});if(a){if(a=a.slice(\"ql-\".length),\"BUTTON\"===i.tagName&&i.setAttribute(\"type\",\"button\"),null==this.handlers[a]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[a])return void h.warn(\"ignoring attaching to disabled format\",a,i);if(null==c.default.query(a))return void h.warn(\"ignoring attaching to nonexistent format\",a,i)}var t=\"SELECT\"===i.tagName?\"change\":\"click\";i.addEventListener(t,function(t){var e=void 0;if(\"SELECT\"===i.tagName){if(i.selectedIndex<0)return;var n=i.options[i.selectedIndex],e=!n.hasAttribute(\"selected\")&&n.value||!1}else e=!i.classList.contains(\"ql-active\")&&(i.value||!i.hasAttribute(\"value\")),t.preventDefault();l.quill.focus();var o,r,n=l.quill.selection.getRange(),t=s(n,1)[0];if(null!=l.handlers[a])l.handlers[a].call(l,e);else if(c.default.query(a).prototype instanceof c.default.Embed){if(!(e=prompt(\"Enter \"+a)))return;l.quill.updateContents((new u.default).retain(t.index).delete(t.length).insert((n=e,(r=a)in(o={})?Object.defineProperty(o,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[r]=n,o)),f.default.sources.USER)}else l.quill.format(a,e,f.default.sources.USER);l.update(t)}),this.controls.push([a,i])}}},{key:\"update\",value:function(r){var i=null==r?{}:this.quill.getFormat(r);this.controls.forEach(function(t){var e,n,t=s(t,2),o=t[0],t=t[1];\"SELECT\"===t.tagName?(e=void 0,null==r?e=null:null==i[o]?e=t.querySelector(\"option[selected]\"):Array.isArray(i[o])||(\"string\"==typeof(n=i[o])&&(n=n.replace(/\\\"/g,'\\\\\"')),e=t.querySelector('option[value=\"'+n+'\"]')),null==e?(t.value=\"\",t.selectedIndex=-1):e.selected=!0):null==r?t.classList.remove(\"ql-active\"):t.hasAttribute(\"value\")?(n=i[o]===t.getAttribute(\"value\")||null!=i[o]&&i[o].toString()===t.getAttribute(\"value\")||null==i[o]&&!t.getAttribute(\"value\"),t.classList.toggle(\"ql-active\",n)):t.classList.toggle(\"ql-active\",null!=i[o])})}}]),o}(n.default);function p(t,e,n){var o=document.createElement(\"button\");o.setAttribute(\"type\",\"button\"),o.classList.add(\"ql-\"+e),null!=n&&(o.value=n),t.appendChild(o)}function d(e,t){(t=Array.isArray(t[0])?t:[t]).forEach(function(t){var l=document.createElement(\"span\");l.classList.add(\"ql-formats\"),t.forEach(function(t){var e,n,o,r,i;\"string\"==typeof t?p(l,t):(e=t[t=Object.keys(t)[0]],Array.isArray(e)?(n=l,o=t,r=e,(i=document.createElement(\"select\")).classList.add(\"ql-\"+o),r.forEach(function(t){var e=document.createElement(\"option\");!1!==t?e.setAttribute(\"value\",t):e.setAttribute(\"selected\",\"selected\"),i.appendChild(e)}),n.appendChild(i)):p(l,t,e))}),e.appendChild(l)})}i.DEFAULTS={},i.DEFAULTS={container:null,handlers:{clean:function(){var t,e=this,n=this.quill.getSelection();null!=n&&(0==n.length?(t=this.quill.getFormat(),Object.keys(t).forEach(function(t){null!=c.default.query(t,c.default.Scope.INLINE)&&e.quill.format(t,!1)})):this.quill.removeFormat(n,f.default.sources.USER))},direction:function(t){var e=this.quill.getFormat().align;\"rtl\"===t&&null==e?this.quill.format(\"align\",\"right\",f.default.sources.USER):t||\"right\"!==e||this.quill.format(\"align\",!1,f.default.sources.USER),this.quill.format(\"direction\",t,f.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),e=this.quill.getFormat(e),n=parseInt(e.indent||0);\"+1\"!==t&&\"-1\"!==t||(t=\"+1\"===t?1:-1,\"rtl\"===e.direction&&(t*=-1),this.quill.format(\"indent\",n+t,f.default.sources.USER))},link:function(t){!0===t&&(t=prompt(\"Enter link URL:\")),this.quill.format(\"link\",t,f.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),e=this.quill.getFormat(e);\"check\"===t?\"checked\"===e.list||\"unchecked\"===e.list?this.quill.format(\"list\",!1,f.default.sources.USER):this.quill.format(\"list\",\"unchecked\",f.default.sources.USER):this.quill.format(\"list\",t,f.default.sources.USER)}}},e.default=i,e.addControls=d},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <polyline class=\"ql-even ql-stroke\" points=\"5 7 3 9 5 11\"></polyline> <polyline class=\"ql-even ql-stroke\" points=\"13 7 15 9 13 11\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(28);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(t,e){if(this instanceof n)return(t=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t))).label.innerHTML=e,t.container.classList.add(\"ql-color-picker\"),[].slice.call(t.container.querySelectorAll(\".ql-picker-item\"),0,7).forEach(function(t){t.classList.add(\"ql-primary\")}),t;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"buildItem\",value:function(t){var e=i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"buildItem\",this).call(this,t);return e.style.backgroundColor=t.getAttribute(\"value\")||\"\",e}},{key:\"selectItem\",value:function(t,e){i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"selectItem\",this).call(this,t,e);e=this.label.querySelector(\".ql-color-label\"),t=t&&t.getAttribute(\"data-value\")||\"\";e&&(\"line\"===e.tagName?e.style.stroke=t:e.style.fill=t)}}]),n}(((n=n)&&n.__esModule?n:{default:n}).default);e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(28);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(t,e){if(this instanceof n)return(t=function(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t))).container.classList.add(\"ql-icon-picker\"),[].forEach.call(t.container.querySelectorAll(\".ql-picker-item\"),function(t){t.innerHTML=e[t.getAttribute(\"data-value\")||\"\"]}),t.defaultItem=t.container.querySelector(\".ql-selected\"),t.selectItem(t.defaultItem),t;throw new TypeError(\"Cannot call a class as a function\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"selectItem\",value:function(t,e){i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"selectItem\",this).call(this,t,e),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),n}(((n=n)&&n.__esModule?n:{default:n}).default);e.default=n},function(t,e,n){\"use strict\";function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function r(t,e){var n=this;if(!(this instanceof r))throw new TypeError(\"Cannot call a class as a function\");this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer(\"ql-tooltip\"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener(\"scroll\",function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+\"px\"}),this.hide()}Object.defineProperty(e,\"__esModule\",{value:!0}),function(t,e,n){e&&o(t.prototype,e),n&&o(t,n)}(r,[{key:\"hide\",value:function(){this.root.classList.add(\"ql-hidden\")}},{key:\"position\",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop,o=(this.root.style.left=e+\"px\",this.root.style.top=n+\"px\",this.root.classList.remove(\"ql-flip\"),this.boundsContainer.getBoundingClientRect()),r=this.root.getBoundingClientRect(),i=0;return r.right>o.right&&(i=o.right-r.right,this.root.style.left=e+i+\"px\"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=e+i+\"px\"),r.bottom>o.bottom&&(e=r.bottom-r.top,o=t.bottom-t.top+e,this.root.style.top=n-o+\"px\",this.root.classList.add(\"ql-flip\")),i}},{key:\"show\",value:function(){this.root.classList.remove(\"ql-editing\"),this.root.classList.remove(\"ql-hidden\")}}]),e.default=r},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,o=[],r=!0,e=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(o.push(l.value),!n||o.length!==n);r=!0);}catch(t){e=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(e)throw i}}return o}throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var a=d(n(3)),s=d(n(8)),u=n(43),c=d(u),f=d(n(27)),h=n(15),p=d(n(41));function d(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function v(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function b(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}var g=[[{header:[\"1\",\"2\",\"3\",!1]}],[\"bold\",\"italic\",\"underline\",\"link\"],[{list:\"ordered\"},{list:\"bullet\"}],[\"clean\"]],n=(b(m,c.default),o(m,[{key:\"extendToolbar\",value:function(n){n.container.classList.add(\"ql-snow\"),this.buildButtons([].slice.call(n.container.querySelectorAll(\"button\")),p.default),this.buildPickers([].slice.call(n.container.querySelectorAll(\"select\")),p.default),this.tooltip=new _(this.quill,this.options.bounds),n.container.querySelector(\".ql-link\")&&this.quill.keyboard.addBinding({key:\"K\",shortKey:!0},function(t,e){n.handlers.link.call(n,!e.format.link)})}}]),m);function m(t,e){y(this,m),null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=g);t=v(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,t,e));return t.quill.container.classList.add(\"ql-snow\"),t}n.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?null!=(t=this.quill.getSelection())&&0!=t.length&&(t=this.quill.getText(t),/^\\S+@\\S+\\.\\S+$/.test(t)&&0!==t.indexOf(\"mailto:\")&&(t=\"mailto:\"+t),this.quill.theme.tooltip.edit(\"link\",t)):this.quill.format(\"link\",!1)}}}}});b(O,u.BaseTooltip),o(O,[{key:\"listen\",value:function(){var r=this;i(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),\"listen\",this).call(this),this.root.querySelector(\"a.ql-action\").addEventListener(\"click\",function(t){r.root.classList.contains(\"ql-editing\")?r.save():r.edit(\"link\",r.preview.textContent),t.preventDefault()}),this.root.querySelector(\"a.ql-remove\").addEventListener(\"click\",function(t){var e;null!=r.linkRange&&(e=r.linkRange,r.restoreFocus(),r.quill.formatText(e,\"link\",!1,s.default.sources.USER),delete r.linkRange),t.preventDefault(),r.hide()}),this.quill.on(s.default.events.SELECTION_CHANGE,function(t,e,n){if(null!=t){if(0===t.length&&n===s.default.sources.USER){var n=r.quill.scroll.descendant(f.default,t.index),n=l(n,2),o=n[0],n=n[1];if(null!=o)return r.linkRange=new h.Range(t.index-n,o.length()),t=f.default.formats(o.domNode),r.preview.textContent=t,r.preview.setAttribute(\"href\",t),r.show(),void r.position(r.quill.getBounds(r.linkRange))}else delete r.linkRange;r.hide()}})}},{key:\"show\",value:function(){i(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),\"show\",this).call(this),this.root.removeAttribute(\"data-mode\")}}]);var _=O;function O(t,e){y(this,O);t=v(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,t,e));return t.preview=t.root.querySelector(\"a.ql-preview\"),t}_.TEMPLATE=['<a class=\"ql-preview\" target=\"_blank\" href=\"about:blank\"></a>','<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">','<a class=\"ql-action\"></a>','<a class=\"ql-remove\"></a>'].join(\"\"),e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=L(n(29)),r=n(36),i=n(38),l=n(64),a=L(n(65)),s=L(n(66)),u=n(67),c=L(u),f=n(37),h=n(26),p=n(39),d=n(40),y=L(n(56)),v=L(n(68)),b=L(n(27)),g=L(n(69)),m=L(n(70)),_=L(n(71)),O=L(n(72)),w=L(n(73)),x=n(13),k=L(x),E=L(n(74)),N=L(n(75)),j=L(n(57)),A=L(n(41)),q=L(n(28)),T=L(n(59)),P=L(n(60)),S=L(n(61)),C=L(n(108)),n=L(n(62));function L(t){return t&&t.__esModule?t:{default:t}}o.default.register({\"attributors/attribute/direction\":i.DirectionAttribute,\"attributors/class/align\":r.AlignClass,\"attributors/class/background\":f.BackgroundClass,\"attributors/class/color\":h.ColorClass,\"attributors/class/direction\":i.DirectionClass,\"attributors/class/font\":p.FontClass,\"attributors/class/size\":d.SizeClass,\"attributors/style/align\":r.AlignStyle,\"attributors/style/background\":f.BackgroundStyle,\"attributors/style/color\":h.ColorStyle,\"attributors/style/direction\":i.DirectionStyle,\"attributors/style/font\":p.FontStyle,\"attributors/style/size\":d.SizeStyle},!0),o.default.register({\"formats/align\":r.AlignClass,\"formats/direction\":i.DirectionClass,\"formats/indent\":l.IndentClass,\"formats/background\":f.BackgroundStyle,\"formats/color\":h.ColorStyle,\"formats/font\":p.FontClass,\"formats/size\":d.SizeClass,\"formats/blockquote\":a.default,\"formats/code-block\":k.default,\"formats/header\":s.default,\"formats/list\":c.default,\"formats/bold\":y.default,\"formats/code\":x.Code,\"formats/italic\":v.default,\"formats/link\":b.default,\"formats/script\":g.default,\"formats/strike\":m.default,\"formats/underline\":_.default,\"formats/image\":O.default,\"formats/video\":w.default,\"formats/list/item\":u.ListItem,\"modules/formula\":E.default,\"modules/syntax\":N.default,\"modules/toolbar\":j.default,\"themes/bubble\":C.default,\"themes/snow\":n.default,\"ui/icons\":A.default,\"ui/picker\":q.default,\"ui/icon-picker\":P.default,\"ui/color-picker\":T.default,\"ui/tooltip\":S.default},!0),e.default=o.default},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.IndentClass=void 0;var r=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(0),n=(n=n)&&n.__esModule?n:{default:n};n=new(function(t){var e=o;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function o(){var t=this,e=o;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),r(o,[{key:\"add\",value:function(t,e){var n;return\"+1\"!==e&&\"-1\"!==e||(n=this.value(t)||0,e=\"+1\"===e?n+1:n-1),0===e?(this.remove(t),!0):i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),\"add\",this).call(this,t,e)}},{key:\"canAdd\",value:function(t,e){return i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),\"canAdd\",this).call(this,t,e)||i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),\"canAdd\",this).call(this,t,parseInt(e))}},{key:\"value\",value:function(t){return parseInt(i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),\"value\",this).call(this,t))||void 0}}]),o}(n.default.Attributor.Class))(\"indent\",\"ql-indent\",{scope:n.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var n=n(4);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),n}(((n=n)&&n.__esModule?n:{default:n}).default);n.blotName=\"blockquote\",n.tagName=\"blockquote\",e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var n=n(4);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,null,[{key:\"formats\",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),n}(((n=n)&&n.__esModule?n:{default:n}).default);n.blotName=\"header\",n.tagName=[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\"],e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.ListItem=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=s(n(0)),a=s(n(4)),n=s(n(25));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function c(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function f(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}f(p,a.default),o(p,[{key:\"format\",value:function(t,e){t!==d.blotName||e?i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),\"format\",this).call(this,t,e):this.replaceWith(l.default.create(this.statics.scope))}},{key:\"remove\",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),\"remove\",this).call(this)}},{key:\"replaceWith\",value:function(t,e){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,e),this):(this.parent.unwrap(),i(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),\"replaceWith\",this).call(this,t,e))}}],[{key:\"formats\",value:function(t){return t.tagName===this.tagName?void 0:i(p.__proto__||Object.getPrototypeOf(p),\"formats\",this).call(this,t)}}]);var h=p;function p(){return u(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}h.blotName=\"list-item\",h.tagName=\"LI\";f(y,n.default),o(y,null,[{key:\"create\",value:function(t){var e=\"ordered\"===t?\"OL\":\"UL\",e=i(y.__proto__||Object.getPrototypeOf(y),\"create\",this).call(this,e);return\"checked\"!==t&&\"unchecked\"!==t||e.setAttribute(\"data-checked\",\"checked\"===t),e}},{key:\"formats\",value:function(t){return\"OL\"===t.tagName?\"ordered\":\"UL\"===t.tagName?t.hasAttribute(\"data-checked\")?\"true\"===t.getAttribute(\"data-checked\")?\"checked\":\"unchecked\":\"bullet\":void 0}}]),o(y,[{key:\"format\",value:function(t,e){0<this.children.length&&this.children.tail.format(t,e)}},{key:\"formats\",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:\"insertBefore\",value:function(t,e){t instanceof h?i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),\"insertBefore\",this).call(this,t,e):(e=null==e?this.length():e.offset(this),(e=this.split(e)).parent.insertBefore(t,e))}},{key:\"optimize\",value:function(t){i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),\"optimize\",this).call(this,t);t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute(\"data-checked\")===this.domNode.getAttribute(\"data-checked\")&&(t.moveChildren(this),t.remove())}},{key:\"replace\",value:function(t){var e;t.statics.blotName!==this.statics.blotName&&(e=l.default.create(this.statics.defaultChild),t.moveChildren(e),this.appendChild(e)),i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),\"replace\",this).call(this,t)}}]);var d=y;function y(n){u(this,y);function t(t){var e;t.target.parentNode===n&&(e=o.statics.formats(n),t=l.default.find(t.target),\"checked\"===e?t.format(\"list\",\"unchecked\"):\"unchecked\"===e&&t.format(\"list\",\"checked\"))}var o=c(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,n));return n.addEventListener(\"touchstart\",t),n.addEventListener(\"mousedown\",t),o}d.blotName=\"list\",d.scope=l.default.Scope.BLOCK_BLOT,d.tagName=[\"OL\",\"UL\"],d.defaultChild=\"list-item\",d.allowedChildren=[h],e.ListItem=h,e.default=d},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var n=n(56);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),n}(((n=n)&&n.__esModule?n:{default:n}).default);n.blotName=\"italic\",n.tagName=[\"EM\",\"I\"],e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var n=n(6);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,null,[{key:\"create\",value:function(t){return\"super\"===t?document.createElement(\"sup\"):\"sub\"===t?document.createElement(\"sub\"):i(n.__proto__||Object.getPrototypeOf(n),\"create\",this).call(this,t)}},{key:\"formats\",value:function(t){return\"SUB\"===t.tagName?\"sub\":\"SUP\"===t.tagName?\"super\":void 0}}]),n}(((n=n)&&n.__esModule?n:{default:n}).default);n.blotName=\"script\",n.tagName=[\"SUB\",\"SUP\"],e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var n=n(6);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),n}(((n=n)&&n.__esModule?n:{default:n}).default);n.blotName=\"strike\",n.tagName=\"S\",e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var n=n(6);n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),n}(((n=n)&&n.__esModule?n:{default:n}).default);n.blotName=\"underline\",n.tagName=\"U\",e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=n(0),l=(l=l)&&l.__esModule?l:{default:l},a=n(27);var s=[\"alt\",\"height\",\"width\"],n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"format\",value:function(t,e){-1<s.indexOf(t)?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"format\",this).call(this,t,e)}}],[{key:\"create\",value:function(t){var e=i(n.__proto__||Object.getPrototypeOf(n),\"create\",this).call(this,t);return\"string\"==typeof t&&e.setAttribute(\"src\",this.sanitize(t)),e}},{key:\"formats\",value:function(n){return s.reduce(function(t,e){return n.hasAttribute(e)&&(t[e]=n.getAttribute(e)),t},{})}},{key:\"match\",value:function(t){return/\\.(jpe?g|gif|png)$/.test(t)||/^data:image\\/.+;base64/.test(t)}},{key:\"sanitize\",value:function(t){return(0,a.sanitize)(t,[\"http\",\"https\",\"data\"])?t:\"//:0\"}},{key:\"value\",value:function(t){return t.getAttribute(\"src\")}}]),n}(l.default.Embed);n.blotName=\"image\",n.tagName=\"IMG\",e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=n(4),n=n(27),a=(n=n)&&n.__esModule?n:{default:n};var s=[\"height\",\"width\"],n=function(t){var e=n;if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);function n(){var t=this,e=n;if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\");t=this,e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),o(n,[{key:\"format\",value:function(t,e){-1<s.indexOf(t)?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):i(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"format\",this).call(this,t,e)}}],[{key:\"create\",value:function(t){var e=i(n.__proto__||Object.getPrototypeOf(n),\"create\",this).call(this,t);return e.setAttribute(\"frameborder\",\"0\"),e.setAttribute(\"allowfullscreen\",!0),e.setAttribute(\"src\",this.sanitize(t)),e}},{key:\"formats\",value:function(n){return s.reduce(function(t,e){return n.hasAttribute(e)&&(t[e]=n.getAttribute(e)),t},{})}},{key:\"sanitize\",value:function(t){return a.default.sanitize(t)}},{key:\"value\",value:function(t){return t.getAttribute(\"src\")}}]),n}(l.BlockEmbed);n.blotName=\"video\",n.className=\"ql-video\",n.tagName=\"IFRAME\",e.default=n},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.FormulaBlot=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=s(n(35)),a=s(n(5)),n=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function c(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function f(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}f(p,l.default),o(p,null,[{key:\"create\",value:function(t){var e=i(p.__proto__||Object.getPrototypeOf(p),\"create\",this).call(this,t);return\"string\"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:\"#f00\"}),e.setAttribute(\"data-value\",t)),e}},{key:\"value\",value:function(t){return t.getAttribute(\"data-value\")}}]);var h=p;function p(){return u(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}h.blotName=\"formula\",h.className=\"ql-formula\",h.tagName=\"SPAN\";f(d,n.default),o(d,null,[{key:\"register\",value:function(){a.default.register(h,!0)}}]);l=d;function d(){u(this,d);var t=c(this,(d.__proto__||Object.getPrototypeOf(d)).call(this));if(null==window.katex)throw new Error(\"Formula module requires KaTeX.\");return t}e.FormulaBlot=h,e.default=l},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var o=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?i(o,e,n):void 0}var l=u(n(0)),a=u(n(5)),s=u(n(9));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function f(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function h(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}h(d,u(n(13)).default),o(d,[{key:\"replaceWith\",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),i(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),\"replaceWith\",this).call(this,t)}},{key:\"highlight\",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((0<e.trim().length||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]);var p=d;function d(){return c(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}p.className=\"ql-syntax\";var y=new l.default.Attributor.Class(\"token\",\"hljs\",{scope:l.default.Scope.INLINE}),n=(h(v,s.default),o(v,null,[{key:\"register\",value:function(){a.default.register(y,!0),a.default.register(p,!0)}}]),o(v,[{key:\"highlight\",value:function(){var t,e=this;this.quill.selection.composing||(this.quill.update(a.default.sources.USER),t=this.quill.getSelection(),this.quill.scroll.descendants(p).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT))}}]),v);function v(t,e){c(this,v);var n=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,t,e));if(\"function\"!=typeof n.options.highlight)throw new Error(\"Syntax module requires highlight.js. Please include the library on the page before Quill.\");var o=null;return n.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(o),o=setTimeout(function(){n.highlight(),o=null},n.options.interval)}),n.highlight(),n}n.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=p,e.CodeToken=y,e.default=n},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <g class=\"ql-fill ql-color-label\"> <polygon points=\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\"6.817 5 6 5 6 6 6.38 6 6.817 5\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\"4.63 10 4 10 4 11 4.192 11 4.63 10\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\"12 6.868 12 6 11.62 6 12 6.868\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\"12.933 9 13 9 13 8 12.495 8 12.933 9\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\"5.5 13 9 5 12.5 13\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=4 y=5></rect> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=11 y=5></rect> <path class=\"ql-even ql-fill ql-stroke\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\"ql-even ql-fill ql-stroke\" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=\"ql-color-label ql-stroke ql-transparent\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\"5.5 11 9 3 12.5 11\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"3 11 5 9 3 7 3 11\"></polygon> <line class=\"ql-stroke ql-fill\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"15 12 13 10 15 8 15 12\"></polygon> <line class=\"ql-stroke ql-fill\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\"translate(24 18) rotate(-180)\"/> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\"ql-even ql-fill\" points=\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\"ql-fill ql-stroke\" points=\"3 7 3 11 5 9 3 7\"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"5 7 5 11 3 9 5 7\"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\"ql-even ql-stroke\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\"ql-even ql-stroke\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\"ql-stroke ql-thin\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\"ql-stroke ql-thin\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\"ql-stroke ql-thin\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\"3 4 4 5 6 3\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\"3 14 4 15 6 13\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"3 9 4 10 6 8\"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <line class=\"ql-stroke ql-thin\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox=\"0 0 18 18\"> <polygon class=ql-stroke points=\"7 11 9 13 11 11 7 11\"></polygon> <polygon class=ql-stroke points=\"7 7 9 5 11 7 7 7\"></polygon> </svg>'},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.BubbleTooltip=void 0;function r(t,e,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,e);return void 0!==o?\"value\"in o?o.value:void 0!==(o=o.get)?o.call(n):void 0:null!==(o=Object.getPrototypeOf(t))?r(o,e,n):void 0}var o=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var l=h(n(3)),a=h(n(8)),s=n(43),u=h(s),c=n(15),f=h(n(41));function h(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function d(t,e){if(t)return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e;throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}function y(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof 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)}var v=[[\"bold\",\"italic\",\"link\"],[{header:1},{header:2},\"blockquote\"]],n=(y(b,u.default),o(b,[{key:\"extendToolbar\",value:function(t){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll(\"button\")),f.default),this.buildPickers([].slice.call(t.container.querySelectorAll(\"select\")),f.default)}}]),b);function b(t,e){p(this,b),null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=v);t=d(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,t,e));return t.quill.container.classList.add(\"ql-bubble\"),t}n.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format(\"link\",!1)}}}}});y(m,s.BaseTooltip),o(m,[{key:\"listen\",value:function(){var e=this;r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),\"listen\",this).call(this),this.root.querySelector(\".ql-close\").addEventListener(\"click\",function(){e.root.classList.remove(\"ql-editing\")}),this.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){var t;e.root.classList.contains(\"ql-hidden\")||null!=(t=e.quill.getSelection())&&e.position(e.quill.getBounds(t))},1)})}},{key:\"cancel\",value:function(){this.show()}},{key:\"position\",value:function(t){var t=r(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),\"position\",this).call(this,t),e=this.root.querySelector(\".ql-tooltip-arrow\");if(e.style.marginLeft=\"\",0===t)return t;e.style.marginLeft=-1*t-e.offsetWidth/2+\"px\"}}]);var g=m;function m(t,e){p(this,m);var r=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,t,e));return r.quill.on(a.default.events.EDITOR_CHANGE,function(t,e,n,o){t===a.default.events.SELECTION_CHANGE&&(null!=e&&0<e.length&&o===a.default.sources.USER?(r.show(),r.root.style.left=\"0px\",r.root.style.width=\"\",r.root.style.width=r.root.offsetWidth+\"px\",1===(t=r.quill.getLines(e.index,e.length)).length?r.position(r.quill.getBounds(e)):(o=t[t.length-1],t=r.quill.getIndex(o),o=Math.min(o.length()-1,e.index+e.length-t),e=r.quill.getBounds(new c.Range(t,o)),r.position(e))):document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide())}),r}g.TEMPLATE=['<span class=\"ql-tooltip-arrow\"></span>','<div class=\"ql-tooltip-editor\">','<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">','<a class=\"ql-close\"></a>',\"</div>\"].join(\"\"),e.BubbleTooltip=g,e.default=n},function(t,e,n){t.exports=n(63)}],r={},o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,\"a\",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p=\"\",o(o.s=109).default;function o(t){var e;return(r[t]||(e=r[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,o),e.l=!0,e)).exports}var n,r});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).Tagify=e()}(this,function(){\"use strict\";function e(e,t){var i,s=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)),s}function n(s){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e(Object(a),!0).forEach(function(t){var e,i;e=s,i=a[t=t],(t=function(t){t=function(t,e){if(\"object\"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return(\"string\"===e?String:Number)(t);i=i.call(t,e||\"default\");if(\"object\"!=typeof i)return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}(t,\"string\");return\"symbol\"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(a,t))})}return s}const o=(t,e,i,s)=>(t=\"\"+t,e=\"\"+e,s&&(t=t.trim(),e=e.trim()),i?t==e:t.toLowerCase()==e.toLowerCase()),i=(t,e)=>t&&Array.isArray(t)&&t.map(t=>r(t,e));function r(t,e){var i,s={};for(i in t)e.indexOf(i)<0&&(s[i]=t[i]);return s}function g(t){var e=document.createElement(\"div\");t.replace(/\\&#?[0-9a-z]+;/gi,function(t){return e.innerHTML=t,e.innerText})}function s(t){return(new DOMParser).parseFromString(t.trim(),\"text/html\").body.firstElementChild}function p(t,e){for(e=e||\"previous\";t=t[e+\"Sibling\"];)if(3==t.nodeType)return t}function l(t){return\"string\"==typeof t?t.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/\"/g,\""\").replace(/`|'/g,\"'\"):t}function u(t){var e=Object.prototype.toString.call(t).split(\" \")[1].slice(0,-1);return t===Object(t)&&\"Array\"!=e&&\"Function\"!=e&&\"RegExp\"!=e&&\"HTMLUnknownElement\"!=e}function h(t,e,i){function s(t,e){for(var i in e)if(e.hasOwnProperty(i)){if(u(e[i])){u(t[i])?s(t[i],e[i]):t[i]=Object.assign({},e[i]);continue}if(Array.isArray(e[i])){t[i]=Object.assign([],e[i]);continue}t[i]=e[i]}}return s(t=t instanceof Object?t:{},e),i&&s(t,i),t}function a(){var t,e=[],i={};for(t of arguments)for(var s of t)u(s)?i[s.value]||(e.push(s),i[s.value]=1):e.includes(s)||e.push(s);return e}function m(t){return String.prototype.normalize?\"string\"==typeof t?t.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\"):void 0:t}var c=()=>/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);function d(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function v(t){return t&&t.classList&&t.classList.contains(this.settings.classNames.tag)}function f(t,e){var i=window.getSelection();return e=e||i.getRangeAt(0),\"string\"==typeof t&&(t=document.createTextNode(t)),e&&(e.deleteContents(),e.insertNode(t)),t}function T(t,e,i){return t?(e&&(t.__tagifyTagData=i?e:h({},t.__tagifyTagData||{},e)),t.__tagifyTagData):(console.warn(\"tag element doesn't exist\",t,e),e)}var w={delimiters:\",\",pattern:null,tagTextProp:\"value\",maxTags:1/0,callbacks:{},addTagOnBlur:!0,onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\\.|\\:|\\s/,mixTagsInterpolator:[\"[[\",\"]]\"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:()=>{},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:\" \"},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:\"tagify\",mixMode:\"tagify--mix\",selectMode:\"tagify--select\",input:\"tagify__input\",focus:\"tagify--focus\",tagNoAnimation:\"tagify--noAnim\",tagInvalid:\"tagify--invalid\",tagNotAllowed:\"tagify--notAllowed\",scopeLoading:\"tagify--loading\",hasMaxTags:\"tagify--hasMaxTags\",hasNoTags:\"tagify--noTags\",empty:\"tagify--empty\",inputInvalid:\"tagify__input--invalid\",dropdown:\"tagify__dropdown\",dropdownWrapper:\"tagify__dropdown__wrapper\",dropdownHeader:\"tagify__dropdown__header\",dropdownFooter:\"tagify__dropdown__footer\",dropdownItem:\"tagify__dropdown__item\",dropdownItemActive:\"tagify__dropdown__item--active\",dropdownItemHidden:\"tagify__dropdown__item--hidden\",dropdownInital:\"tagify__dropdown--initial\",tag:\"tagify__tag\",tagText:\"tagify__tag-text\",tagX:\"tagify__tag__removeBtn\",tagLoading:\"tagify__tag--loading\",tagEditing:\"tagify__tag--editable\",tagFlash:\"tagify__tag--flash\",tagHide:\"tagify__tag--hide\"},dropdown:{classname:\"\",enabled:2,maxItems:10,searchKeys:[\"value\",\"searchBy\"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:\"all\",appendTarget:null},hooks:{beforeRemoveTag:()=>Promise.resolve(),beforePaste:()=>Promise.resolve(),suggestionClick:()=>Promise.resolve()}};const b=1,y=\"@yaireo/tagify/\";var x,O={empty:\"empty\",exceed:\"number of tags exceeded\",pattern:\"pattern mismatch\",duplicate:\"already exists\",notAllowed:\"not allowed\"};var t={customBinding(){this.customEventsList.forEach(t=>{this.on(t,this.settings.callbacks[t])})},binding(){var t,e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],i=this.events.callbacks,s=e?\"addEventListener\":\"removeEventListener\";if(!this.state.mainEvents||!e){for(var a in(this.state.mainEvents=e)&&!this.listeners.main&&(this.events.bindGlobal.call(this),this.settings.isJQueryPlugin)&&jQuery(this.DOM.originalInput).on(\"tagify.removeAllTags\",this.removeAllTags.bind(this)),t=this.listeners.main=this.listeners.main||{focus:[\"input\",i.onFocusBlur.bind(this)],keydown:[\"input\",i.onKeydown.bind(this)],click:[\"scope\",i.onClickScope.bind(this)],dblclick:[\"scope\",i.onDoubleClickScope.bind(this)],paste:[\"input\",i.onPaste.bind(this)],drop:[\"input\",i.onDrop.bind(this)],compositionstart:[\"input\",i.onCompositionStart.bind(this)],compositionend:[\"input\",i.onCompositionEnd.bind(this)]})this.DOM[t[a][0]][s](a,t[a][1]);clearInterval(this.listeners.main.originalInputValueObserverInterval),this.listeners.main.originalInputValueObserverInterval=setInterval(i.observeOriginalInputValue.bind(this),500);e=this.listeners.main.inputMutationObserver||new MutationObserver(i.onInputDOMChange.bind(this));e.disconnect(),\"mix\"==this.settings.mode&&e.observe(this.DOM.input,{childList:!0})}},bindGlobal(t){var e,i=this.events.callbacks,s=t?\"removeEventListener\":\"addEventListener\";if(this.listeners&&(t||!this.listeners.global)){this.listeners.global=this.listeners.global||[{type:this.isIE?\"keydown\":\"input\",target:this.DOM.input,cb:i[this.isIE?\"onInputIE\":\"onInput\"].bind(this)},{type:\"keydown\",target:window,cb:i.onWindowKeyDown.bind(this)},{type:\"blur\",target:this.DOM.input,cb:i.onFocusBlur.bind(this)},{type:\"click\",target:document,cb:i.onClickAnywhere.bind(this)}];for(e of this.listeners.global)e.target[s](e.type,e.cb)}},unbindGlobal(){this.events.bindGlobal.call(this,!0)},callbacks:{onFocusBlur(t){var e=this.settings,i=t.target?this.trim(t.target.textContent):\"\",s=this.value?.[0]?.[e.tagTextProp],a=t.type,n=0<=e.dropdown.enabled,o={relatedTarget:t.relatedTarget},r=this.state.actions.selectOption&&(n||!e.dropdown.closeOnSelect),n=this.state.actions.addNew&&n,l=t.relatedTarget&&v.call(this,t.relatedTarget)&&this.DOM.scope.contains(t.relatedTarget);if(\"blur\"==a){if(t.relatedTarget===this.DOM.scope)return this.dropdown.hide(),void this.DOM.input.focus();this.postUpdate(),e.onChangeAfterBlur&&this.triggerChangeEvent()}r||n||(this.state.hasFocus=\"focus\"==a&&+new Date,this.toggleFocusClass(this.state.hasFocus),\"mix\"==e.mode?\"focus\"==a?this.trigger(\"focus\",o):\"blur\"==t.type&&(this.trigger(\"blur\",o),this.loading(!1),this.dropdown.hide(),this.state.dropdown.visible=void 0,this.setStateSelection()):\"focus\"==a?(this.trigger(\"focus\",o),0!==e.dropdown.enabled&&e.userInput||this.dropdown.show(this.value.length?\"\":void 0)):(\"blur\"==a&&(this.trigger(\"blur\",o),this.loading(!1),(i=\"select\"==e.mode&&(l&&(this.removeTags(),i=\"\"),s===i)?\"\":i)&&!this.state.actions.selectOption&&e.addTagOnBlur)&&this.addTags(i,!0),this.DOM.input.removeAttribute(\"style\"),this.dropdown.hide()))},onCompositionStart(t){this.state.composing=!0},onCompositionEnd(t){this.state.composing=!1},onWindowKeyDown(t){var e,i=document.activeElement,s=v.call(this,i)&&this.DOM.scope.contains(document.activeElement),a=s&&i.hasAttribute(\"readonly\");if(s&&!a)switch(e=i.nextElementSibling,t.key){case\"Backspace\":this.settings.readonly||(this.removeTags(i),(e||this.DOM.input).focus());break;case\"Enter\":setTimeout(this.editTag.bind(this),0,i)}},onKeydown(t){var e=this.settings;if(!this.state.composing&&e.userInput){\"select\"==e.mode&&e.enforceWhitelist&&this.value.length&&\"Tab\"!=t.key&&t.preventDefault();var i=this.trim(t.target.textContent);if(this.trigger(\"keydown\",{event:t}),\"mix\"==e.mode){switch(t.key){case\"Left\":case\"ArrowLeft\":this.state.actions.ArrowLeft=!0;break;case\"Delete\":case\"Backspace\":if(this.state.editing)return;var s,a,n,o=document.getSelection(),r=\"Delete\"==t.key&&o.anchorOffset==(o.anchorNode.length||0),l=o.anchorNode.previousSibling,l=1==o.anchorNode.nodeType||!o.anchorOffset&&l&&1==l.nodeType&&o.anchorNode.previousSibling,d=(g(this.DOM.input.innerHTML),this.getTagElms());if(\"edit\"==e.backspace&&l)return s=1==o.anchorNode.nodeType?null:o.anchorNode.previousElementSibling,setTimeout(this.editTag.bind(this),0,s),void t.preventDefault();if(c()&&l instanceof Element)return n=p(l),l.hasAttribute(\"readonly\")||l.remove(),this.DOM.input.focus(),void setTimeout(()=>{this.placeCaretAfterNode(n),this.DOM.input.click()});if(\"BR\"==o.anchorNode.nodeName)return;if((r||l)&&1==o.anchorNode.nodeType?a=0==o.anchorOffset?r?d[0]:null:d[Math.min(d.length,o.anchorOffset)-1]:r?a=o.anchorNode.nextElementSibling:l instanceof Element&&(a=l),3==o.anchorNode.nodeType&&!o.anchorNode.nodeValue&&o.anchorNode.previousElementSibling&&t.preventDefault(),(l||r)&&!e.backspace)return void t.preventDefault();if(\"Range\"!=o.type&&!o.anchorOffset&&o.anchorNode==this.DOM.input&&\"Delete\"!=t.key)return void t.preventDefault();if(\"Range\"!=o.type&&a&&a.hasAttribute(\"readonly\"))return void this.placeCaretAfterNode(p(a));clearTimeout(x),x=setTimeout(()=>{var t=document.getSelection();g(this.DOM.input.innerHTML),r||t.anchorNode.previousSibling,this.value=[].map.call(d,(t,e)=>{var i=T(t);if(t.parentNode||i.readonly)return i;this.trigger(\"remove\",{tag:t,index:e,data:i})}).filter(t=>t)},20)}return!0}switch(t.key){case\"Backspace\":\"select\"==e.mode&&e.enforceWhitelist&&this.value.length?this.removeTags():this.state.dropdown.visible&&\"manual\"!=e.dropdown.position||\"\"!=t.target.textContent&&8203!=i.charCodeAt(0)||(!0===e.backspace?this.removeTags():\"edit\"==e.backspace&&setTimeout(this.editTag.bind(this),0));break;case\"Esc\":case\"Escape\":this.state.dropdown.visible||t.target.blur();break;case\"Down\":case\"ArrowDown\":this.state.dropdown.visible||this.dropdown.show();break;case\"ArrowRight\":var h=this.state.inputSuggestion||this.state.ddItemData;if(h&&e.autoComplete.rightKey)return void this.addTags([h],!0);break;case\"Tab\":h=\"select\"==e.mode;if(!i||h)return!0;t.preventDefault();case\"Enter\":if(this.state.dropdown.visible&&\"manual\"!=e.dropdown.position)return;t.preventDefault(),setTimeout(()=>{this.state.dropdown.visible||this.state.actions.selectOption||this.addTags(i,!0)})}}},onInput(t){this.postUpdate();var e=this.settings;if(\"mix\"==e.mode)return this.events.callbacks.onMixTagsInput.call(this,t);var t=this.input.normalize.call(this),i=t.length>=e.dropdown.enabled,s={value:t,inputElm:this.DOM.input},a=this.validateTag({value:t});\"select\"==e.mode&&this.toggleScopeValidation(a),s.isValid=a,this.state.inputText!=t&&(this.input.set.call(this,t,!1),-1!=t.search(e.delimiters)?this.addTags(t)&&this.input.set.call(this):0<=e.dropdown.enabled&&this.dropdown[i?\"show\":\"hide\"](t),this.trigger(\"input\",s))},onMixTagsInput(t){var e,i,s,a=this.settings,n=this.value.length,o=this.getTagElms(),r=document.createDocumentFragment(),l=window.getSelection().getRangeAt(0),d=[].map.call(o,t=>T(t).value);if(\"deleteContentBackward\"==t.inputType&&c()&&this.events.callbacks.onKeydown.call(this,{target:t.target,key:\"Backspace\"}),this.value.slice().forEach(t=>{t.readonly&&!d.includes(t.value)&&r.appendChild(this.createTagElem(t))}),r.childNodes.length&&(l.insertNode(r),this.setRangeAtStartEnd(!1,r.lastChild)),o.length!=n)this.value=[].map.call(this.getTagElms(),t=>T(t)),this.update({withoutChangeEvent:!0});else{if(this.hasMaxTags())return!0;if(window.getSelection&&0<(t=window.getSelection()).rangeCount&&3==t.anchorNode.nodeType){if((l=t.getRangeAt(0).cloneRange()).collapse(!0),l.setStart(t.focusNode,0),n=(o=l.toString().slice(0,l.endOffset)).split(a.pattern).length-1,e=(l=o.match(a.pattern))?o.slice(o.lastIndexOf(l[l.length-1])):e){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:e.match(a.pattern)[0],value:e.replace(a.pattern,\"\")},this.state.tag.baseOffset=t.baseOffset-this.state.tag.value.length,o=this.state.tag.value.match(a.delimiters))return this.state.tag.value=this.state.tag.value.replace(a.delimiters,\"\"),this.state.tag.delimiters=o[0],this.addTags(this.state.tag.value,a.dropdown.clearOnSelect),void this.dropdown.hide();i=this.state.tag.value.length>=a.dropdown.enabled;try{s=(s=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&s.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(t){}(s||n<this.state.mixMode.matchedPatternCount)&&(i=!1)}else this.state.flaggedTags={};this.state.mixMode.matchedPatternCount=n}setTimeout(()=>{this.update({withoutChangeEvent:!0}),this.trigger(\"input\",h({},this.state.tag,{textContent:this.DOM.input.textContent})),this.state.tag&&this.dropdown[i?\"show\":\"hide\"](this.state.tag.value)},10)}},onInputIE(t){var e=this;setTimeout(function(){e.events.callbacks.onInput.call(e,t)})},observeOriginalInputValue(){this.DOM.originalInput.parentNode||this.destroy(),this.DOM.originalInput.value!=this.DOM.originalInput.tagifyValue&&this.loadOriginalValues()},onClickAnywhere(t){t.target==this.DOM.scope||this.DOM.scope.contains(t.target)||(this.toggleFocusClass(!1),this.state.hasFocus=!1)},onClickScope(t){var e=this.settings,i=t.target.closest(\".\"+e.classNames.tag),s=+new Date-this.state.hasFocus;t.target==this.DOM.scope?this.DOM.input.focus():t.target.classList.contains(e.classNames.tagX)?this.removeTags(t.target.parentNode):i?(this.trigger(\"click\",{tag:i,index:this.getNodeIndex(i),data:T(i),event:t}),1!==e.editTags&&1!==e.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,t)):t.target==this.DOM.input&&(\"mix\"==e.mode&&this.fixFirefoxLastTagNoCaret(),500<s)?this.state.dropdown.visible?this.dropdown.hide():0===e.dropdown.enabled&&\"mix\"!=e.mode&&this.dropdown.show(this.value.length?\"\":void 0):\"select\"!=e.mode||0!==e.dropdown.enabled||this.state.dropdown.visible||this.dropdown.show()},onPaste(e){e.preventDefault();var t,i,s=this.settings;if(\"select\"==s.mode&&s.enforceWhitelist||!s.userInput)return!1;s.readonly||(t=e.clipboardData||window.clipboardData,i=t.getData(\"Text\"),s.hooks.beforePaste(e,{tagify:this,pastedText:i,clipboardData:t}).then(t=>{(t=void 0===t?i:t)&&(this.injectAtCaret(t,window.getSelection().getRangeAt(0)),\"mix\"==this.settings.mode?this.events.callbacks.onMixTagsInput.call(this,e):this.settings.pasteAsTags?this.addTags(this.state.inputText+t,!0):this.state.inputText=t)}).catch(t=>t))},onDrop(t){t.preventDefault()},onEditTagInput(t,e){var i=t.closest(\".\"+this.settings.classNames.tag),s=this.getNodeIndex(i),a=T(i),n=this.input.normalize.call(this,t),o={[this.settings.tagTextProp]:n,__tagId:a.__tagId},r=this.validateTag(o);this.editTagChangeDetected(h(a,o))||!0!==t.originalIsValid||(r=!0),i.classList.toggle(this.settings.classNames.tagInvalid,!0!==r),a.__isValid=r,i.title=!0===r?a.title||a.value:r,n.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=n),this.dropdown.show(n)),this.trigger(\"edit:input\",{tag:i,index:s,data:h({},this.value[s],{newValue:n}),event:e})},onEditTagPaste(t,e){var i=(e.clipboardData||window.clipboardData).getData(\"Text\"),e=(e.preventDefault(),f(i));this.setRangeAtStartEnd(!1,e)},onEditTagFocus(t){this.state.editing={scope:t,input:t.querySelector(\"[contenteditable]\")}},onEditTagBlur(t){if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(t)){var e=this.settings,i=t.closest(\".\"+e.classNames.tag),s=T(i),t=this.input.normalize.call(this,t),a={[e.tagTextProp]:t,__tagId:s.__tagId},n=s.__originalData,s=this.editTagChangeDetected(h(s,a)),a=this.validateTag(a);if(t)if(s){if(s=this.hasMaxTags(),t=h({},n,{[e.tagTextProp]:this.trim(t),__isValid:a}),e.transformTag.call(this,t,n),!0!==(a=(!s||!0===n.__isValid)&&this.validateTag(t))){if(this.trigger(\"invalid\",{data:t,tag:i,message:a}),e.editTags.keepInvalid)return;e.keepInvalidTags?t.__isValid=a:t=n}else e.keepInvalidTags&&(delete t.title,delete t[\"aria-invalid\"],delete t.class);this.onEditTagDone(i,t)}else this.onEditTagDone(i,n);else this.onEditTagDone(i)}},onEditTagkeydown(t,e){if(!this.state.composing)switch(this.trigger(\"edit:keydown\",{event:t}),t.key){case\"Esc\":case\"Escape\":e.parentNode.replaceChild(e.__tagifyTagData.__originalHTML,e),this.state.editing=!1;case\"Enter\":case\"Tab\":t.preventDefault(),t.target.blur()}},onDoubleClickScope(t){var e,t=t.target.closest(\".\"+this.settings.classNames.tag),i=T(t),s=this.settings;t&&s.userInput&&!1!==i.editable&&(i=t.classList.contains(this.settings.classNames.tagEditing),e=t.hasAttribute(\"readonly\"),\"select\"==s.mode||s.readonly||i||e||!this.settings.editTags||this.editTag(t),this.toggleFocusClass(!0),this.trigger(\"dblclick\",{tag:t,index:this.getNodeIndex(t),data:T(t)}))},onInputDOMChange(t){t.forEach(t=>{t.addedNodes.forEach(i=>{if(\"<div><br></div>\"==i.outerHTML)i.replaceWith(document.createElement(\"br\"));else if(1==i.nodeType&&i.querySelector(this.settings.classNames.tagSelector)){let t=document.createTextNode(\"\");3==i.childNodes[0].nodeType&&\"BR\"!=i.previousSibling.nodeName&&(t=document.createTextNode(\"\\n\")),i.replaceWith(t,...[...i.childNodes].slice(0,-1)),this.placeCaretAfterNode(t)}else if(v.call(this,i)&&(3!=i.previousSibling?.nodeType||i.previousSibling.textContent||i.previousSibling.remove(),i.previousSibling)&&\"BR\"==i.previousSibling.nodeName){i.previousSibling.replaceWith(\"\\n​\");let t=i.nextSibling,e=\"\";for(;t;)e+=t.textContent,t=t.nextSibling;e.trim()&&this.placeCaretAfterNode(i.previousSibling)}}),t.removedNodes.forEach(t=>{t&&\"BR\"==t.nodeName&&v.call(this,e)&&(this.removeTags(e),this.fixFirefoxLastTagNoCaret())})});var e=this.DOM.input.lastChild;e&&\"\"==e.nodeValue&&e.remove(),e&&\"BR\"==e.nodeName||this.DOM.input.appendChild(document.createElement(\"br\"))}}};function D(t,e){if(!t){console.warn(\"Tagify:\",\"input element not found\",t);const l=new Proxy(this,{get(){return()=>l}});return l}if(t.__tagify)return console.warn(\"Tagify: \",\"input element is already Tagified - Same instance is returned.\",t),t.__tagify;function i(e,t,i){i&&t.split(/\\s+/g).forEach(t=>r[e+\"EventListener\"].call(r,t,i))}var o,r,a,n,s;h(this,(o=this,r=document.createTextNode(\"\"),{off(t,e){return i(\"remove\",t,e),this},on(t,e){return e&&\"function\"==typeof e&&i(\"add\",t,e),this},trigger(t,e,i){var s;if(i=i||{cloneData:!0},t)if(o.settings.isJQueryPlugin)\"remove\"==t&&(t=\"removeTag\"),jQuery(o.DOM.originalInput).triggerHandler(t,[e]);else{try{var a=\"object\"==typeof e?e:{value:e};if((a=i.cloneData?h({},a):a).tagify=this,e.event&&(a.event=this.cloneEvent(e.event)),e instanceof Object)for(var n in e)e[n]instanceof HTMLElement&&(a[n]=e[n]);s=new CustomEvent(t,{detail:a})}catch(t){console.warn(t)}r.dispatchEvent(s)}}})),this.isFirefox=/firefox|fxios/i.test(navigator.userAgent)&&!/seamonkey/i.test(navigator.userAgent),this.isIE=window.document.documentMode,e=e||{},this.getPersistedData=(a=e.id,t=>{let e=\"/\"+t,i,s=localStorage.getItem(y+a+\"/v\",b)==b;if(s)try{i=JSON.parse(localStorage[y+a+e])}catch(t){}return i}),this.setPersistedData=(n=e.id)?(localStorage.setItem(y+n+\"/v\",b),(t,e)=>{var i=\"/\"+e,s=JSON.stringify(t);t&&e&&(localStorage.setItem(y+n+i,s),dispatchEvent(new Event(\"storage\")))}):()=>{},this.clearPersistedData=(s=e.id,t=>{var e=y+\"/\"+s+\"/\";if(t)localStorage.removeItem(e+t);else for(var i in localStorage)i.includes(e)&&localStorage.removeItem(i)}),this.applySettings(t,e),this.state={inputText:\"\",editing:!1,composing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(t),function(){for(var t in this.dropdown={},this._dropdown)this.dropdown[t]=\"function\"==typeof this._dropdown[t]?this._dropdown[t].bind(this):this._dropdown[t];this.dropdown.refs()}.call(this),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),t.autofocus&&this.DOM.input.focus(),t.__tagify=this}return(D.prototype={_dropdown:{refs(){this.DOM.dropdown=this.parseTemplate(\"dropdown\",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector(\"[data-selector='tagify-suggestions-wrapper']\")},getHeaderRef(){return this.DOM.dropdown.querySelector(\"[data-selector='tagify-suggestions-header']\")},getFooterRef(){return this.DOM.dropdown.querySelector(\"[data-selector='tagify-suggestions-footer']\")},getAllSuggestionsRefs(){return[...this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector)]},show(t){var e,i=this.settings,s=\"mix\"==i.mode&&!i.enforceWhitelist,a=!i.whitelist||!i.whitelist.length,n=\"manual\"==i.dropdown.position;if(t=void 0===t?this.state.inputText:t,!(a&&!s&&!i.templates.dropdownItemNoMatch||!1===i.dropdown.enable||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(t),!(e=t&&!this.suggestedListItems.length&&(this.trigger(\"dropdown:noMatch\",t),i.templates.dropdownItemNoMatch)?i.templates.dropdownItemNoMatch.call(this,{value:t}):e)){if(this.suggestedListItems.length)t&&s&&!this.state.editing.scope&&!o(this.suggestedListItems[0].value,t)&&this.suggestedListItems.unshift({value:t});else{if(!t||!s||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:t}]}s=\"\"+(u(a=this.suggestedListItems[0])?a.value:a),i.autoComplete&&s&&0==s.indexOf(t)&&this.input.autocomplete.suggest.call(this,a)}this.dropdown.fill(e),i.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(i.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=t||!0,this.state.dropdown.query=t,this.setStateSelection(),n||setTimeout(()=>{this.dropdown.position(),this.dropdown.render()}),setTimeout(()=>{this.trigger(\"dropdown:show\",this.DOM.dropdown)})}},hide(t){var e=this.DOM,i=e.scope,e=e.dropdown,t=\"manual\"==this.settings.dropdown.position&&!t;if(e&&document.body.contains(e)&&!t)return window.removeEventListener(\"resize\",this.dropdown.position),this.dropdown.events.binding.call(this,!1),i.setAttribute(\"aria-expanded\",!1),e.parentNode.removeChild(e),setTimeout(()=>{this.state.dropdown.visible=!1},100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger(\"dropdown:hide\",e),this},toggle(t){this.dropdown[this.state.dropdown.visible&&!t?\"hide\":\"show\"]()},render(){(e=(e=this.DOM.dropdown).cloneNode(!0)).style.cssText=\"position:fixed; top:-9999px; opacity:0\",document.body.appendChild(e),t=e.clientHeight,e.parentNode.removeChild(e);var t,e=t,i=this.settings;return\"number\"==typeof i.dropdown.enabled&&0<=i.dropdown.enabled&&(this.DOM.scope.setAttribute(\"aria-expanded\",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(i.classNames.dropdownInital),this.dropdown.position(e),i.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout(()=>this.DOM.dropdown.classList.remove(i.classNames.dropdownInital)))),this},fill(t){t=\"string\"==typeof t?t:this.dropdown.createListHTML(t||this.suggestedListItems);var t=this.settings.templates.dropdownContent.call(this,t);this.DOM.dropdown.content.innerHTML=(t=t)?t.replace(/\\>[\\r\\n ]+\\</g,\"><\").replace(/(<.*?>)|\\s+/g,(t,e)=>e||\" \"):\"\"},fillHeaderFooter(){var t=this.dropdown.filterListItems(this.state.dropdown.query),e=this.parseTemplate(\"dropdownHeader\",[t]),t=this.parseTemplate(\"dropdownFooter\",[t]),i=this.dropdown.getHeaderRef(),s=this.dropdown.getFooterRef();e&&i?.parentNode.replaceChild(e,i),t&&s?.parentNode.replaceChild(t,s)},refilter(t){t=t||this.state.dropdown.query||\"\",this.suggestedListItems=this.dropdown.filterListItems(t),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger(\"dropdown:updated\",this.DOM.dropdown)},position(t){var e,i,s,a,n,o,r,l,d,h,g,p,c,u=this.settings.dropdown;\"manual\"!=u.position&&(n=this.DOM.dropdown,o=u.placeAbove,l=(r=u.appendTarget===document.body)?window.pageYOffset:u.appendTarget.scrollTop,h=(d=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement).clientHeight,g=480<Math.max(d.clientWidth||0,window.innerWidth||0)?u.position:\"all\",c=this.DOM[\"input\"==g?\"input\":\"scope\"],t=t||n.clientHeight,this.state.dropdown.visible)&&(c=\"text\"==g?(s=(e=function(){if((e=document.getSelection()).rangeCount){var t,e=e.getRangeAt(0),i=e.startContainer,e=e.startOffset;if(0<e)return(t=document.createRange()).setStart(i,e-1),t.setEnd(i,e),{left:(e=t.getBoundingClientRect()).right,top:e.top,bottom:e.bottom};if(i.getBoundingClientRect)return i.getBoundingClientRect()}return{left:-9999,top:-9999}}()).bottom,i=e.top,a=e.left,\"auto\"):(p=function(t){for(var e=0,i=0;t&&t!=d;)e+=t.offsetLeft||0,i+=t.offsetTop||0,t=t.parentNode;return{left:e,top:i}}(u.appendTarget),i=(e=c.getBoundingClientRect()).top-p.top,s=e.bottom-1-p.top,a=e.left-p.left,e.width+\"px\"),r||(i+=p=function(){for(var t=0,e=u.appendTarget.parentNode;e;)t+=e.scrollTop||0,e=e.parentNode;return t}(),s+=p),i=Math.floor(i),s=Math.ceil(s),o=void 0===o?h-e.bottom<t:o,n.style.cssText=\"left:\"+(a+window.pageXOffset)+\"px; width:\"+c+\";\"+(o?\"top: \"+(i+l)+\"px\":\"top: \"+(s+l)+\"px\"),n.setAttribute(\"placement\",o?\"top\":\"bottom\"),n.setAttribute(\"position\",g))},events:{binding(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=this.dropdown.events.callbacks,e=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this,null),onKeyDown:e.onKeyDown.bind(this),onMouseOver:e.onMouseOver.bind(this),onMouseLeave:e.onMouseLeave.bind(this),onClick:e.onClick.bind(this),onScroll:e.onScroll.bind(this)},t=t?\"addEventListener\":\"removeEventListener\";\"manual\"!=this.settings.dropdown.position&&(document[t](\"scroll\",e.position,!0),window[t](\"resize\",e.position),window[t](\"keydown\",e.onKeyDown)),this.DOM.dropdown[t](\"mouseover\",e.onMouseOver),this.DOM.dropdown[t](\"mouseleave\",e.onMouseLeave),this.DOM.dropdown[t](\"mousedown\",e.onClick),this.DOM.dropdown.content[t](\"scroll\",e.onScroll)},callbacks:{onKeyDown(t){if(this.state.hasFocus&&!this.state.composing){var e,i=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownItemActiveSelector),s=this.dropdown.getSuggestionDataByNode(i);switch(t.key){case\"ArrowDown\":case\"ArrowUp\":case\"Down\":case\"Up\":t.preventDefault();var a=this.dropdown.getAllSuggestionsRefs(),n=\"ArrowUp\"==t.key||\"Up\"==t.key;(i=i&&this.dropdown.getNextOrPrevOption(i,!n))&&i.matches(this.settings.classNames.dropdownItemSelector)||(i=a[n?a.length-1:0]),this.dropdown.highlightOption(i,!0);break;case\"Escape\":case\"Esc\":this.dropdown.hide();break;case\"ArrowRight\":if(this.state.actions.ArrowLeft)return;case\"Tab\":return\"mix\"==this.settings.mode||!i||this.settings.autoComplete.rightKey||this.state.editing?!0:(t.preventDefault(),e=this.dropdown.getMappedValue(s),this.input.autocomplete.set.call(this,e),!1);case\"Enter\":t.preventDefault(),this.settings.hooks.suggestionClick(t,{tagify:this,tagData:s,suggestionElm:i}).then(()=>{i?(this.dropdown.selectOption(i),i=this.dropdown.getNextOrPrevOption(i,!n),this.dropdown.highlightOption(i)):(this.dropdown.hide(),\"mix\"!=this.settings.mode&&this.addTags(this.state.inputText.trim(),!0))}).catch(t=>t);break;case\"Backspace\":if(\"mix\"!=this.settings.mode&&!this.state.editing.scope){const e=this.input.raw.call(this);\"\"!=e&&8203!=e.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():\"edit\"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}}}},onMouseOver(t){t=t.target.closest(this.settings.classNames.dropdownItemSelector);t&&this.dropdown.highlightOption(t)},onMouseLeave(t){this.dropdown.highlightOption()},onClick(t){var e,i;0==t.button&&t.target!=this.DOM.dropdown&&t.target!=this.DOM.dropdown.content&&(e=t.target.closest(this.settings.classNames.dropdownItemSelector),i=this.dropdown.getSuggestionDataByNode(e),this.state.actions.selectOption=!0,setTimeout(()=>this.state.actions.selectOption=!1,50),this.settings.hooks.suggestionClick(t,{tagify:this,tagData:i,suggestionElm:e}).then(()=>{e?this.dropdown.selectOption(e,t):this.dropdown.hide()}).catch(t=>console.warn(t)))},onScroll(t){t=t.target,t=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger(\"dropdown:scroll\",{percentage:Math.round(t)})}}},getSuggestionDataByNode(t){var e=t&&t.getAttribute(\"value\");return this.suggestedListItems.find(t=>t.value==e)||null},getNextOrPrevOption(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=this.dropdown.getAllSuggestionsRefs(),s=i.findIndex(t=>t===e);return t?i[s+1]:i[s-1]},highlightOption(t,e){var i,s=this.settings.classNames.dropdownItemActive;this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(s),this.state.ddItemElm.removeAttribute(\"aria-selected\")),t?(i=this.dropdown.getSuggestionDataByNode(t),this.state.ddItemData=i,(this.state.ddItemElm=t).classList.add(s),t.setAttribute(\"aria-selected\",!0),e&&(t.parentNode.scrollTop=t.clientHeight+t.offsetTop-t.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,i),this.dropdown.position())):(this.state.ddItemData=null,this.state.ddItemElm=null,this.input.autocomplete.suggest.call(this))},selectOption(t,e){var i,s,a,n=this.settings.dropdown,o=n.clearOnSelect,n=n.closeOnSelect;t?(e=e||{},s=\"noMatch\"==(i=t.getAttribute(\"value\")),a=this.suggestedListItems.find(t=>(t.value??t)==i),this.trigger(\"dropdown:select\",{data:a,elm:t,event:e}),i&&(a||s)?(this.state.editing?this.onEditTagDone(null,h({__isValid:!0},this.normalizeTags([a])[0])):this[\"mix\"==this.settings.mode?\"addMixTags\":\"addTags\"]([a||this.input.raw.call(this)],o),this.DOM.input.parentNode&&(setTimeout(()=>{this.DOM.input.focus(),this.toggleFocusClass(!0)}),n&&setTimeout(this.dropdown.hide.bind(this)),t.addEventListener(\"transitionend\",()=>{this.dropdown.fillHeaderFooter(),setTimeout(()=>t.remove(),100)},{once:!0}),t.classList.add(this.settings.classNames.dropdownItemHidden))):n&&setTimeout(this.dropdown.hide.bind(this))):(this.addTags(this.state.inputText,!0),n&&this.dropdown.hide())},selectAll(t){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems(\"\");var e=this.dropdown.filterListItems(\"\");return t||(e=this.state.dropdown.suggestions),this.addTags(e,!0),this},filterListItems(t,i){var s,e=this.settings,a=e.dropdown,i=i||{},n=[],o=[],r=e.whitelist,l=0<=a.maxItems?a.maxItems:1/0,d=a.searchKeys,h=0;if(!(t=\"select\"==e.mode&&this.value.length&&this.value[0][e.tagTextProp]==t?\"\":t)||!d.length)return n=a.includeSelectedTags?r:r.filter(t=>!this.isTagDuplicate(u(t)?t.value:t)),(this.state.dropdown.suggestions=n).slice(0,l);for(s=a.caseSensitive?\"\"+t:(\"\"+t).toLowerCase();h<r.length;h++){let t,e;var g=r[h]instanceof Object?r[h]:{value:r[h]},p=!Object.keys(g).some(t=>d.includes(t))?[\"value\"]:d,c=a.fuzzySearch&&!i.exact?(c=p.reduce((t,e)=>t+\" \"+(g[e]||\"\"),\"\").toLowerCase().trim(),a.accentedSearch&&(c=m(c),s=m(s)),t=0==c.indexOf(s),e=c===s,function(e,t){return t.toLowerCase().split(\" \").every(t=>e.includes(t.toLowerCase()))}(c,s)):(t=!0,p.some(t=>{t=\"\"+(g[t]||\"\");return a.accentedSearch&&(t=m(t),s=m(s)),a.caseSensitive||(t=t.toLowerCase()),e=t===s,i.exact?t===s:0==t.indexOf(s)})),p=!a.includeSelectedTags&&this.isTagDuplicate(u(g)?g.value:g);c&&!p&&(e&&t?o.push(g):\"startsWith\"==a.sortby&&t?n.unshift(g):n.push(g))}return this.state.dropdown.suggestions=o.concat(n),\"function\"==typeof a.sortby?a.sortby(o.concat(n),s):o.concat(n).slice(0,l)},getMappedValue(t){var e=this.settings.dropdown.mapValueTo;return e?\"function\"==typeof e?e(t):t[e]||t.value:t.value},createListHTML(t){return h([],t).map((t,e)=>{var i=\"string\"==typeof(i=this.dropdown.getMappedValue(t=\"string\"!=typeof t&&\"number\"!=typeof t?t:{value:t}))?l(i):i;return this.settings.templates.dropdownItem.apply(this,[n(n({},t),{},{mappedValue:i}),this])}).join(\"\")}},getSetTagData:T,helpers:{sameStr:o,removeCollectionProp:i,omit:r,isObject:u,parseHTML:s,escapeHTML:l,extend:h,concatWithoutDups:a,getUID:d,isNodeTag:v},customEventsList:[\"change\",\"add\",\"remove\",\"invalid\",\"input\",\"click\",\"keydown\",\"focus\",\"blur\",\"edit:input\",\"edit:beforeUpdate\",\"edit:updated\",\"edit:start\",\"edit:keydown\",\"dropdown:show\",\"dropdown:hide\",\"dropdown:select\",\"dropdown:updated\",\"dropdown:noMatch\",\"dropdown:scroll\"],dataProps:[\"__isValid\",\"__removed\",\"__originalData\",\"__originalHTML\",\"__tagId\"],trim(t){return this.settings.trim&&t&&\"string\"==typeof t?t.trim():t},parseHTML:s,templates:{wrapper(t,e){return`<tags class=\"${e.classNames.namespace} ${e.mode?\"\"+e.classNames[e.mode+\"Mode\"]:\"\"} ${t.className}\"\n ${e.readonly?\"readonly\":\"\"}\n ${e.disabled?\"disabled\":\"\"}\n ${e.required?\"required\":\"\"}\n ${\"select\"===e.mode?\"spellcheck='false'\":\"\"}\n tabIndex=\"-1\">\n <span ${!e.readonly&&e.userInput?\"contenteditable\":\"\"} tabIndex=\"0\" data-placeholder=\"${e.placeholder||\"​\"}\" aria-placeholder=\"${e.placeholder||\"\"}\"\n class=\"${e.classNames.input}\"\n role=\"textbox\"\n aria-autocomplete=\"both\"\n aria-multiline=\"${\"mix\"==e.mode}\"></span>\n ​\n </tags>`},tag(t,e){e=e.settings;return`<tag title=\"${t.title||t.value}\"\n contenteditable='false'\n spellcheck='false'\n tabIndex=\"${e.a11y.focusableTags?0:-1}\"\n class=\"${e.classNames.tag} ${t.class||\"\"}\"\n ${this.getAttributes(t)}>\n <x title='' class=\"${e.classNames.tagX}\" role='button' aria-label='remove tag'></x>\n <div>\n <span class=\"${e.classNames.tagText}\">${t[e.tagTextProp]||t.value}</span>\n </div>\n </tag>`},dropdown(t){var e=t.dropdown,i=\"manual\"==e.position,s=\"\"+t.classNames.dropdown;return`<div class=\"${i?\"\":s} ${e.classname}\" role=\"listbox\" aria-labelledby=\"dropdown\">\n <div data-selector='tagify-suggestions-wrapper' class=\"${t.classNames.dropdownWrapper}\"></div>\n </div>`},dropdownContent(t){var e=this.settings,i=this.state.dropdown.suggestions;return`\n ${e.templates.dropdownHeader.call(this,i)}\n ${t}\n ${e.templates.dropdownFooter.call(this,i)}\n `},dropdownItem(t){return`<div ${this.getAttributes(t)}\n class='${this.settings.classNames.dropdownItem} ${t.class||\"\"}'\n tabindex=\"0\"\n role=\"option\">${t.mappedValue||t.value}</div>`},dropdownHeader(t){return`<header data-selector='tagify-suggestions-header' class=\"${this.settings.classNames.dropdownHeader}\"></header>`},dropdownFooter(t){t=t.length-this.settings.dropdown.maxItems;return 0<t?`<footer data-selector='tagify-suggestions-footer' class=\"${this.settings.classNames.dropdownFooter}\">\n ${t} more items. Refine your search.\n </footer>`:\"\"},dropdownItemNoMatch:null},parseTemplate(t,e){return s((t=this.settings.templates[t]||t).apply(this,e))},set whitelist(t){var e=t&&Array.isArray(t);this.settings.whitelist=e?t:[],this.setPersistedData(e?t:[],\"whitelist\")},get whitelist(){return this.settings.whitelist},generateClassSelectors(e){for(var i in e){let t=i;Object.defineProperty(e,t+\"Selector\",{get(){return\".\"+this[t].split(\" \")[0]}})}},applySettings(i,t){w.templates=this.templates;var e=h({},w,\"mix\"==t.mode?{dropdown:{position:\"text\"}}:{}),s=this.settings=h({},e,t);if(s.disabled=i.hasAttribute(\"disabled\"),s.readonly=s.readonly||i.hasAttribute(\"readonly\"),s.placeholder=l(i.getAttribute(\"placeholder\")||s.placeholder||\"\"),s.required=i.hasAttribute(\"required\"),this.generateClassSelectors(s.classNames),void 0===s.dropdown.includeSelectedTags&&(s.dropdown.includeSelectedTags=s.duplicates),this.isIE&&(s.autoComplete=!1),[\"whitelist\",\"blacklist\"].forEach(t=>{var e=i.getAttribute(\"data-\"+t);e&&(e=e.split(s.delimiters))instanceof Array&&(s[t]=e)}),\"autoComplete\"in t&&!u(t.autoComplete)&&(s.autoComplete=w.autoComplete,s.autoComplete.enabled=t.autoComplete),\"mix\"==s.mode&&(s.pattern=s.pattern||/@/,s.autoComplete.rightKey=!0,s.delimiters=t.delimiters||null,s.tagTextProp)&&!s.dropdown.searchKeys.includes(s.tagTextProp)&&s.dropdown.searchKeys.push(s.tagTextProp),i.pattern)try{s.pattern=new RegExp(i.pattern)}catch(t){}if(s.delimiters){s._delimiters=s.delimiters;try{s.delimiters=new RegExp(this.settings.delimiters,\"g\")}catch(t){}}s.disabled&&(s.userInput=!1),this.TEXTS=n(n({},O),s.texts||{}),(\"select\"!=s.mode||t.dropdown?.enabled)&&s.userInput||(s.dropdown.enabled=0),s.dropdown.appendTarget=t.dropdown?.appendTarget||document.body;e=this.getPersistedData(\"whitelist\");Array.isArray(e)&&(this.whitelist=Array.isArray(s.whitelist)?a(s.whitelist,e):e)},getAttributes(t){var e,i=this.getCustomAttributes(t),s=\"\";for(e in i)s+=\" \"+e+(void 0!==t[e]?`=\"${i[e]}\"`:\"\");return s},getCustomAttributes(t){if(!u(t))return\"\";var e,i={};for(e in t)\"__\"!=e.slice(0,2)&&\"class\"!=e&&t.hasOwnProperty(e)&&void 0!==t[e]&&(i[e]=l(t[e]));return i},setStateSelection(){var t=window.getSelection(),t={anchorOffset:t.anchorOffset,anchorNode:t.anchorNode,range:t.getRangeAt&&t.rangeCount&&t.getRangeAt(0)};return this.state.selection=t},getCSSVars(){var t,e=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(e=e.getPropertyValue(\"--tag-hide-transition\"),e=e?(t=(e=e.trim().split(\" \")[0]).split(/\\d+/g).filter(t=>t).pop().trim(),{value:+e.split(t).filter(t=>t)[0].trim(),unit:t}):{},t=e.value,\"s\"==e.unit?1e3*t:t)}},build(t){var e=this.DOM;this.settings.mixMode.integrated?(e.originalInput=null,e.scope=t,e.input=t):(e.originalInput=t,e.originalInput_tabIndex=t.tabIndex,e.scope=this.parseTemplate(\"wrapper\",[t,this.settings]),e.input=e.scope.querySelector(this.settings.classNames.inputSelector),t.parentNode.insertBefore(e.scope,t),t.tabIndex=-1)},destroy(){this.events.unbindGlobal.call(this),this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.DOM.originalInput.tabIndex=this.DOM.originalInput_tabIndex,delete this.DOM.originalInput.__tagify,this.dropdown.hide(!0),clearTimeout(this.dropdownHide__bindEventsTimeout),clearInterval(this.listeners.main.originalInputValueObserverInterval)},loadOriginalValues(t){var e,i=this.settings;if(this.state.blockChangeEvent=!0,void 0===t&&(t=(e=this.getPersistedData(\"value\"))&&!this.DOM.originalInput.value?e:i.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value),this.removeAllTags(),t)if(\"mix\"==i.mode)this.parseMixTags(t),(e=this.DOM.input.lastChild)&&\"BR\"==e.tagName||this.DOM.input.insertAdjacentHTML(\"beforeend\",\"<br>\");else{try{JSON.parse(t)instanceof Array&&(t=JSON.parse(t))}catch(t){}this.addTags(t,!0).forEach(t=>t&&t.classList.add(i.classNames.tagNoAnimation))}else this.postUpdate();this.state.lastOriginalValueReported=i.mixMode.integrated?\"\":this.DOM.originalInput.value},cloneEvent(t){var e,i={};for(e in t)\"path\"!=e&&(i[e]=t[e]);return i},loading(t){return this.state.isLoading=t,this.DOM.scope.classList[t?\"add\":\"remove\"](this.settings.classNames.scopeLoading),this},tagLoading(t,e){return t&&t.classList[e?\"add\":\"remove\"](this.settings.classNames.tagLoading),this},toggleClass(t,e){\"string\"==typeof t&&this.DOM.scope.classList.toggle(t,e)},toggleScopeValidation(t){var e=!0===t||void 0===t;!this.settings.required&&t&&t===this.TEXTS.empty&&(e=!0),this.toggleClass(this.settings.classNames.tagInvalid,!e),this.DOM.scope.title=e?\"\":t},toggleFocusClass(t){this.toggleClass(this.settings.classNames.focus,!!t)},triggerChangeEvent:function(){var t,e,i;this.settings.mixMode.integrated||(t=this.DOM.originalInput,e=this.state.lastOriginalValueReported!==t.value,i=new CustomEvent(\"change\",{bubbles:!0}),e&&(this.state.lastOriginalValueReported=t.value,i.simulated=!0,t._valueTracker&&t._valueTracker.setValue(Math.random()),t.dispatchEvent(i),this.trigger(\"change\",this.state.lastOriginalValueReported),t.value=this.state.lastOriginalValueReported))},events:t,fixFirefoxLastTagNoCaret(){},setRangeAtStartEnd(e,i){if(i){e=\"number\"==typeof e?e:!!e,i=i.lastChild||i;var s=document.getSelection();if(s.focusNode instanceof Element&&!this.DOM.input.contains(s.focusNode))return!0;try{1<=s.rangeCount&&[\"Start\",\"End\"].forEach(t=>s.getRangeAt(0)[\"set\"+t](i,e||i.length))}catch(t){}}},placeCaretAfterNode(t){var e,i;t&&t.parentNode&&(t=t,i=(e=window.getSelection()).getRangeAt(0),e.rangeCount)&&(i.setStartAfter(t),i.collapse(!0),e.removeAllRanges(),e.addRange(i))},insertAfterTag(t,e){if(e=e||this.settings.mixMode.insertAfterTag,t&&t.parentNode&&e)return e=\"string\"==typeof e?document.createTextNode(e):e,t.parentNode.insertBefore(e,t.nextSibling),e},editTagChangeDetected(t){var e,i=t.__originalData;for(e in i)if(!this.dataProps.includes(e)&&t[e]!=i[e])return!0;return!1},getTagTextNode(t){return t.querySelector(this.settings.classNames.tagTextSelector)},setTagTextNode(t,e){this.getTagTextNode(t).innerHTML=l(e)},editTag(e,t){e=e||this.getLastTag(),t=t||{},this.dropdown.hide();var i=this.settings,s=this.getTagTextNode(e),a=this.getNodeIndex(e),n=T(e),o=this.events.callbacks,r=this,l=!0;if(s){if(!(n instanceof Object&&\"editable\"in n)||n.editable)return n=T(e,{__originalData:h({},n),__originalHTML:e.cloneNode(!0)}),T(n.__originalHTML,n.__originalData),s.setAttribute(\"contenteditable\",!0),e.classList.add(i.classNames.tagEditing),s.addEventListener(\"focus\",o.onEditTagFocus.bind(this,e)),s.addEventListener(\"blur\",function(){setTimeout(()=>o.onEditTagBlur.call(r,r.getTagTextNode(e)))}),s.addEventListener(\"input\",o.onEditTagInput.bind(this,s)),s.addEventListener(\"paste\",o.onEditTagPaste.bind(this,s)),s.addEventListener(\"keydown\",t=>o.onEditTagkeydown.call(this,t,e)),s.addEventListener(\"compositionstart\",o.onCompositionStart.bind(this)),s.addEventListener(\"compositionend\",o.onCompositionEnd.bind(this)),t.skipValidation||(l=this.editTagToggleValidity(e)),s.originalIsValid=l,this.trigger(\"edit:start\",{tag:e,index:a,data:n,isValid:l}),s.focus(),this.setRangeAtStartEnd(!1,s),this}else console.warn(\"Cannot find element in Tag template: .\",i.classNames.tagTextSelector)},editTagToggleValidity(t,e){var i;if(e=e||T(t))return(i=!(\"__isValid\"in e)||!0===e.__isValid)||this.removeTagsFromValue(t),this.update(),t.classList.toggle(this.settings.classNames.tagNotAllowed,!i),e.__isValid;console.warn(\"tag has no data: \",t,e)},onEditTagDone(t,e){e=e||{};var i={tag:t=t||this.state.editing.scope,index:this.getNodeIndex(t),previousData:T(t),data:e};this.trigger(\"edit:beforeUpdate\",i,{cloneData:!1}),this.state.editing=!1,delete e.__originalData,delete e.__originalHTML,t&&e[this.settings.tagTextProp]?(t=this.replaceTag(t,e),this.editTagToggleValidity(t,e),this.settings.a11y.focusableTags?t.focus():this.placeCaretAfterNode(t)):t&&this.removeTags(t),this.trigger(\"edit:updated\",i),this.dropdown.hide(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag(t,e){(e=e&&e.value?e:t.__tagifyTagData).__isValid&&1!=e.__isValid&&h(e,this.getInvalidTagAttrs(e,e.__isValid));e=this.createTagElem(e);return t.parentNode.replaceChild(e,t),this.updateValueByDOMTags(),e},updateValueByDOMTags(){this.value.length=0,[].forEach.call(this.getTagElms(),t=>{t.classList.contains(this.settings.classNames.tagNotAllowed.split(\" \")[0])||this.value.push(T(t))}),this.update()},injectAtCaret(t,e){return!(e=e||this.state.selection?.range)&&t?this.appendMixTags(t):(f(t,e),this.setRangeAtStartEnd(!1,t),this.updateValueByDOMTags(),this.update()),this},input:{set(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:\"\",e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=this.settings.dropdown.closeOnSelect;this.state.inputText=t,e&&(this.DOM.input.innerHTML=l(\"\"+t)),!t&&i&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},raw(){return this.DOM.input.textContent},validate(){var t=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!t),t},normalize(t){var t=t||this.DOM.input,e=[];t.childNodes.forEach(t=>3==t.nodeType&&e.push(t.nodeValue)),e=e.join(\"\\n\");try{e=e.replace(/(?:\\r\\n|\\r|\\n)/g,this.settings.delimiters.source.charAt(0))}catch(t){}return e=e.replace(/\\s/g,\" \"),this.trim(e)},autocomplete:{suggest(t){var e,i,s;this.settings.autoComplete.enabled&&\"number\"!=typeof(e=this.dropdown.getMappedValue(t=\"string\"==typeof(t=t||{value:\"\"})?{value:t}:t))&&(i=e.substr(0,this.state.inputText.length).toLowerCase(),s=e.substring(this.state.inputText.length),e&&this.state.inputText&&i==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute(\"data-suggest\",s),this.state.inputSuggestion=t):(this.DOM.input.removeAttribute(\"data-suggest\"),delete this.state.inputSuggestion))},set(t){var e=this.DOM.input.getAttribute(\"data-suggest\"),t=t||(e?this.state.inputText+e:null);return!!t&&(\"mix\"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+t)):(this.input.set.call(this,t),this.setRangeAtStartEnd(!1,this.DOM.input)),this.input.autocomplete.suggest.call(this),this.dropdown.hide(),!0)}}},getTagIdx(e){return this.value.findIndex(t=>t.__tagId==(e||{}).__tagId)},getNodeIndex(t){var e=0;if(t)for(;t=t.previousElementSibling;)e++;return e},getTagElms(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=\".\"+[...this.settings.classNames.tag.split(\" \"),...e].join(\".\");return[].slice.call(this.DOM.scope.querySelectorAll(s))},getLastTag(){var t=this.DOM.scope.querySelectorAll(`${this.settings.classNames.tagSelector}:not(.${this.settings.classNames.tagHide}):not([readonly])`);return t[t.length-1]},isTagDuplicate(t,e,i){var s,a=0;if(\"select\"==this.settings.mode)return!1;for(s of this.value)o(this.trim(\"\"+t),s.value,e)&&i!=s.__tagId&&a++;return a},getTagIndexByValue(i){var s=[];return this.getTagElms().forEach((t,e)=>{o(this.trim(t.textContent),i,this.settings.dropdown.caseSensitive)&&s.push(e)}),s},getTagElmByValue(t){t=this.getTagIndexByValue(t)[0];return this.getTagElms()[t]},flashTag(t){t&&(t.classList.add(this.settings.classNames.tagFlash),setTimeout(()=>{t.classList.remove(this.settings.classNames.tagFlash)},100))},isTagBlacklisted(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter(t=>(\"\"+t).toLowerCase()==e).length},isTagWhitelisted(t){return!!this.getWhitelistItem(t)},getWhitelistItem(i,s,t){var a,s=s||\"value\",n=this.settings;return(t=t||n.whitelist).some(t=>{var e=\"string\"==typeof t?t:t[s]||t.value;if(o(e,i,n.dropdown.caseSensitive,n.trim))return a=\"string\"==typeof t?{value:t}:t,!0}),a=a||\"value\"!=s||\"value\"==n.tagTextProp?a:this.getWhitelistItem(i,n.tagTextProp,t)},validateTag(t){var e=this.settings,i=\"value\"in t?\"value\":e.tagTextProp,s=this.trim(t[i]+\"\");return(t[i]+\"\").trim()?e.pattern&&e.pattern instanceof RegExp&&!e.pattern.test(s)?this.TEXTS.pattern:!e.duplicates&&this.isTagDuplicate(s,e.dropdown.caseSensitive,t.__tagId)?this.TEXTS.duplicate:this.isTagBlacklisted(s)||e.enforceWhitelist&&!this.isTagWhitelisted(s)?this.TEXTS.notAllowed:!e.validate||e.validate(t):this.TEXTS.empty},getInvalidTagAttrs(t,e){return{\"aria-invalid\":!0,class:(`${t.class||\"\"} `+this.settings.classNames.tagNotAllowed).trim(),title:e}},hasMaxTags(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly(t,e){var i=this.settings;document.activeElement.blur(),i[e||\"readonly\"]=t,this.DOM.scope[(t?\"set\":\"remove\")+\"Attribute\"](e||\"readonly\",!0),this.setContentEditable(!t)},setContentEditable(t){this.settings.userInput&&(this.DOM.input.contentEditable=t,this.DOM.input.tabIndex=t?0:-1)},setDisabled(t){this.setReadonly(t,\"disabled\")},normalizeTags(t){var e=this.settings,i=e.whitelist,s=e.delimiters,a=e.mode,n=e.tagTextProp,o=[],e=!!i&&i[0]instanceof Object,i=Array.isArray(t),r=i&&t[0].value,l=t=>(t+\"\").split(s).filter(t=>t).map(t=>({[n]:this.trim(t),value:this.trim(t)}));if(\"string\"==typeof(t=\"number\"==typeof t?t.toString():t)){if(!t.trim())return[];t=l(t)}else i&&(t=[].concat(...t.map(t=>null!=t.value?t:l(t))));return t=e&&!r&&(t.forEach(t=>{var e=o.map(t=>t.value),i=this.dropdown.filterListItems.call(this,t[n],{exact:!0}),i=1<(i=this.settings.duplicates?i:i.filter(t=>!e.includes(t.value))).length?this.getWhitelistItem(t[n],n,i):i[0];i&&i instanceof Object?o.push(i):\"mix\"!=a&&(null==t.value&&(t.value=t[n]),o.push(t))}),o.length)?o:t},parseMixTags(t){var e=this.settings,o=e.mixTagsInterpolator,r=e.duplicates,l=e.transformTag,d=e.enforceWhitelist,h=e.maxTags,g=e.tagTextProp,p=[];return t=t.split(o[0]).map((t,e)=>{var i,s=t.split(o[1]),a=s[0],n=p.length==h;try{if(a==+a)throw Error;i=JSON.parse(a)}catch(t){i=this.normalizeTags(a)[0]||{value:a}}if(l.call(this,i),n||!(1<s.length)||d&&!this.isTagWhitelisted(i.value)||!r&&this.isTagDuplicate(i.value)){if(t)return e?o[0]+t:t}else i[a=i[g]?g:\"value\"]=this.trim(i[a]),n=this.createTagElem(i),p.push(i),n.classList.add(this.settings.classNames.tagNoAnimation),s[0]=n.outerHTML,this.value.push(i);return s.join(\"\")}).join(\"\"),this.DOM.input.innerHTML=t,this.DOM.input.appendChild(document.createTextNode(\"\")),this.DOM.input.normalize(),this.getTagElms().forEach((t,e)=>T(t,p[e])),this.update({withoutChangeEvent:!0}),t},replaceTextWithNode(t,e){var i,s,a;if(this.state.tag||e)return e=e||this.state.tag.prefix+this.state.tag.value,s=(i=this.state.selection||window.getSelection()).anchorNode,a=this.state.tag.delimiters?this.state.tag.delimiters.length:0,s.splitText(i.anchorOffset-a),-1!=(i=s.nodeValue.lastIndexOf(e))&&(a=s.splitText(i),t)&&s.parentNode.replaceChild(t,a),!0},selectTag(t,e){var i=this.settings;if(!i.enforceWhitelist||this.isTagWhitelisted(e.value))return this.input.set.call(this,e[i.tagTextProp]||e.value,!0),this.state.actions.selectOption&&setTimeout(()=>this.setRangeAtStartEnd(!1,this.DOM.input)),(i=this.getLastTag())?this.replaceTag(i,e):this.appendTag(t),this.value[0]=e,this.update(),this.trigger(\"add\",{tag:t,data:e}),[t]},addEmptyTag(t){var t=h({value:\"\"},t||{}),e=this.createTagElem(t);T(e,t),this.appendTag(e),this.editTag(e,{skipValidation:!0})},addTags(t,e,a){var n=[],o=this.settings,r=[],l=document.createDocumentFragment();if(a=a||o.skipInvalid,t&&0!=t.length){switch(t=this.normalizeTags(t),o.mode){case\"mix\":return this.addMixTags(t);case\"select\":e=!1,this.removeAllTags()}this.DOM.input.removeAttribute(\"style\"),t.forEach(t=>{var e,i={},s=Object.assign({},t,{value:t.value+\"\"});if(t=Object.assign({},s),o.transformTag.call(this,t),t.__isValid=this.hasMaxTags()||this.validateTag(t),!0!==t.__isValid){if(a)return;if(h(i,this.getInvalidTagAttrs(t,t.__isValid),{__preInvalidData:s}),t.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(t.value)),!o.createInvalidTags)return void r.push(t.value)}if(\"readonly\"in t&&(t.readonly?i[\"aria-readonly\"]=!0:delete t.readonly),e=this.createTagElem(t,i),n.push(e),\"select\"==o.mode)return this.selectTag(e,t);l.appendChild(e),t.__isValid&&!0===t.__isValid?(this.value.push(t),this.trigger(\"add\",{tag:e,index:this.value.length-1,data:t})):(this.trigger(\"invalid\",{data:t,index:this.value.length,tag:e,message:t.__isValid}),o.keepInvalidTags||setTimeout(()=>this.removeTags(e,!0),1e3)),this.dropdown.position()}),this.appendTag(l),this.update(),t.length&&e&&(this.input.set.call(this,o.createInvalidTags?\"\":r.join(o._delimiters)),this.setRangeAtStartEnd(!1,this.DOM.input)),o.dropdown.enabled&&this.dropdown.refilter()}return n},addMixTags(t){var e;return(t=this.normalizeTags(t))[0].prefix||this.state.tag?this.prefixedTextToTag(t[0]):(e=document.createDocumentFragment(),t.forEach(t=>{t=this.createTagElem(t);e.appendChild(t)}),this.appendMixTags(e),e)},appendMixTags(t){var e=!!this.state.selection;e?this.injectAtCaret(t):(this.DOM.input.focus(),(e=this.setStateSelection()).range.setStart(this.DOM.input,e.range.endOffset),e.range.setEnd(this.DOM.input,e.range.endOffset),this.DOM.input.appendChild(t),this.updateValueByDOMTags(),this.update())},prefixedTextToTag(t){var e,i=this.settings,s=this.state.tag.delimiters;return i.transformTag.call(this,t),t.prefix=t.prefix||this.state.tag?this.state.tag.prefix:(i.pattern.source||i.pattern)[0],e=this.createTagElem(t),this.replaceTextWithNode(e)||this.DOM.input.appendChild(e),setTimeout(()=>e.classList.add(this.settings.classNames.tagNoAnimation),300),this.value.push(t),this.update(),s||(i=this.insertAfterTag(e)||e,setTimeout(this.placeCaretAfterNode,0,i)),this.state.tag=null,this.trigger(\"add\",h({},{tag:e},{data:t})),e},appendTag(t){var e=this.DOM,i=e.input;e.scope.insertBefore(t,i)},createTagElem(t,e){t.__tagId=d();for(var i,e=h({},t,n({value:l(t.value+\"\")},e)),e=this.parseTemplate(\"tag\",[e,this]),s=e,a=document.createNodeIterator(s,NodeFilter.SHOW_TEXT,null,!1);i=a.nextNode();)i.textContent.trim()||i.parentNode.removeChild(i);return T(e,t),e},reCheckInvalidTags(){var o=this.settings;this.getTagElms(o.classNames.tagNotAllowed).forEach((t,e)=>{var i=T(t),s=this.hasMaxTags(),a=this.validateTag(i),n=!0===a&&!s;if(\"select\"==o.mode&&this.toggleScopeValidation(a),n)return i=i.__preInvalidData||{value:i.value},this.replaceTag(t,i);t.title=s||a})},removeTags(t,i,s){var a,n=this.settings;if(t=t&&t instanceof HTMLElement?[t]:t instanceof Array?t:t?[t]:[this.getLastTag()],a=t.reduce((t,e)=>{var i=T(e=e&&\"string\"==typeof e?this.getTagElmByValue(e):e);return e&&i&&!i.readonly&&t.push({node:e,idx:this.getTagIdx(i),data:T(e,{__removed:!0})}),t},[]),s=\"number\"==typeof s?s:this.CSSVars.tagHideTransition,\"select\"==n.mode&&(s=0,this.input.set.call(this)),1==a.length&&\"select\"!=n.mode&&a[0].node.classList.contains(n.classNames.tagNotAllowed)&&(i=!0),a.length)return n.hooks.beforeRemoveTag(a,{tagify:this}).then(()=>{function e(t){t.node.parentNode&&(t.node.parentNode.removeChild(t.node),i?n.keepInvalidTags&&this.trigger(\"remove\",{tag:t.node,index:t.idx}):(this.trigger(\"remove\",{tag:t.node,index:t.idx,data:t.data}),this.dropdown.refilter(),this.dropdown.position(),this.DOM.input.normalize(),n.keepInvalidTags&&this.reCheckInvalidTags()))}s&&10<s&&1==a.length?function(t){t.node.style.width=parseFloat(window.getComputedStyle(t.node).width)+\"px\",document.body.clientTop,t.node.classList.add(n.classNames.tagHide),setTimeout(e.bind(this),s,t)}.call(this,a[0]):a.forEach(e.bind(this)),i||(this.removeTagsFromValue(a.map(t=>t.node)),this.update(),\"select\"==n.mode&&this.setContentEditable(!0))}).catch(t=>{})},removeTagsFromDOM(){[].slice.call(this.getTagElms()).forEach(t=>t.parentNode.removeChild(t))},removeTagsFromValue(t){(t=Array.isArray(t)?t:[t]).forEach(t=>{t=T(t),t=this.getTagIdx(t);-1<t&&this.value.splice(t,1)})},removeAllTags(t){t=t||{},this.value=[],\"mix\"==this.settings.mode?this.DOM.input.innerHTML=\"\":this.removeTagsFromDOM(),this.dropdown.refilter(),this.dropdown.position(),this.state.dropdown.visible&&setTimeout(()=>{this.DOM.input.focus()}),\"select\"==this.settings.mode&&(this.input.set.call(this),this.setContentEditable(!0)),this.update(t)},postUpdate(){this.state.blockChangeEvent=!1;var t=this.settings,e=t.classNames,i=\"mix\"==t.mode?t.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value.trim():this.value.length+this.input.raw.call(this).length;this.toggleClass(e.hasMaxTags,this.value.length>=t.maxTags),this.toggleClass(e.hasNoTags,!this.value.length),this.toggleClass(e.empty,!i),\"select\"==t.mode&&this.toggleScopeValidation(this.value?.[0]?.__isValid)},setOriginalInputValue(t){var e=this.DOM.originalInput;this.settings.mixMode.integrated||(e.value=t,e.tagifyValue=e.value,this.setPersistedData(t,\"value\"))},update(e){clearTimeout(this.debouncedUpdateTimeout),this.debouncedUpdateTimeout=setTimeout(function(){var t=this.getInputValue();this.setOriginalInputValue(t),this.settings.onChangeAfterBlur&&(e||{}).withoutChangeEvent||this.state.blockChangeEvent||this.triggerChangeEvent();this.postUpdate()}.bind(this),100)},getInputValue(){var t=this.getCleanValue();return\"mix\"==this.settings.mode?this.getMixedTagsAsString(t):t.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(t):JSON.stringify(t):\"\"},getCleanValue(t){return i(t||this.value,this.dataProps)},getMixedTagsAsString(){var s=\"\",a=this,t=this.settings,n=t.originalInputValueFormat||JSON.stringify,o=t.mixTagsInterpolator;return function i(t){t.childNodes.forEach(t=>{var e;1==t.nodeType?(e=T(t),\"BR\"==t.tagName&&(s+=\"\\r\\n\"),e&&v.call(a,t)?e.__removed||(s+=o[0]+n(r(e,a.dataProps))+o[1]):t.getAttribute(\"style\")||[\"B\",\"I\",\"U\"].includes(t.tagName)?s+=t.textContent:\"DIV\"!=t.tagName&&\"P\"!=t.tagName||(s+=\"\\r\\n\",i(t))):s+=t.textContent})}(this.DOM.input),s}}).removeTag=D.prototype.removeTags,D});","var hljs=function(){\"use strict\";var n={exports:{}};function t(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error(\"map is read-only\")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error(\"set is read-only\")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(function(e){e=n[e];\"object\"!=typeof e||Object.isFrozen(e)||t(e)}),n}n.exports=t,n.exports.default=t;class R{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(e){return e.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}function l(e,...n){const t=Object.create(null);for(const i in e)t[i]=e[i];return n.forEach(function(e){for(const n in e)t[n]=e[n]}),t}const r=e=>!!e.scope||e.sublanguage&&e.language;class M{constructor(e,n){this.buffer=\"\",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(n){if(r(n)){let e=\"\";var t,i;e=n.sublanguage?\"language-\"+n.language:([n,t]=[n.scope,{prefix:this.classPrefix}[\"prefix\"]],n.includes(\".\")?[\"\"+t+(i=n.split(\".\")).shift(),...i.map((e,n)=>\"\"+e+\"_\".repeat(n+1))].join(\" \"):\"\"+t+n),this.span(e)}}closeNode(e){r(e)&&(this.buffer+=\"</span>\")}value(){return this.buffer}span(e){this.buffer+=`<span class=\"${e}\">`}}const o=(e={})=>{var n={children:[]};return Object.assign(n,e),n};class a{constructor(){this.rootNode=o(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){e=o({scope:e});this.add(e),this.stack.push(e)}closeNode(){if(1<this.stack.length)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(n,e){return\"string\"==typeof e?n.addText(e):e.children&&(n.openNode(e),e.children.forEach(e=>this._walk(n,e)),n.closeNode(e)),n}static _collapse(e){\"string\"!=typeof e&&e.children&&(e.children.every(e=>\"string\"==typeof e)?e.children=[e.children.join(\"\")]:e.children.forEach(e=>{a._collapse(e)}))}}class P extends a{constructor(e){super(),this.options=e}addKeyword(e,n){\"\"!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){\"\"!==e&&this.add(e)}addSublanguage(e,n){e=e.root;e.sublanguage=!0,e.language=n,this.add(e)}toHTML(){return new M(this,this.options).value()}finalize(){return!0}}function c(e){return e?\"string\"==typeof e?e:e.source:null}function s(e){return g(\"(?=\",e,\")\")}function C(e){return g(\"(?:\",e,\")*\")}function U(e){return g(\"(?:\",e,\")?\")}function g(...e){return e.map(e=>c(e)).join(\"\")}function u(...e){var n,t=\"object\"==typeof(n=(t=e)[t.length-1])&&n.constructor===Object?(t.splice(t.length-1,1),n):{};return\"(\"+(t.capture?\"\":\"?:\")+e.map(e=>c(e)).join(\"|\")+\")\"}function d(e){return new RegExp(e.toString()+\"|\").exec(\"\").length-1}const S=/\\[(?:[^\\\\\\]]|\\\\.)*\\]|\\(\\??|\\\\([1-9][0-9]*)|\\\\./;function h(e,{joinWith:n}){let o=0;return e.map(e=>{var n=o+=1;let t=c(e),i=\"\";for(;0<t.length;){var r=S.exec(t);if(!r){i+=t;break}i+=t.substring(0,r.index),t=t.substring(r.index+r[0].length),\"\\\\\"===r[0][0]&&r[1]?i+=\"\\\\\"+String(Number(r[1])+n):(i+=r[0],\"(\"===r[0]&&o++)}return i}).map(e=>`(${e})`).join(n)}function e(e,n,t={}){return(e=l({scope:\"comment\",begin:e,end:n,contains:[]},t)).contains.push({scope:\"doctag\",begin:\"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)\",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0}),n=u(\"I\",\"a\",\"is\",\"so\",\"us\",\"to\",\"at\",\"if\",\"in\",\"it\",\"on\",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/),e.contains.push({begin:g(/[ ]+/,\"(\",n,/[.]?[:]?([.][ ]|[ ])/,\"){3}\")}),e}var f=\"[a-zA-Z]\\\\w*\",p=\"[a-zA-Z_]\\\\w*\",z=\"\\\\b\\\\d+(\\\\.\\\\d+)?\",K=\"(-?)(\\\\b0[xX][a-fA-F0-9]+|(\\\\b\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)([eE][-+]?\\\\d+)?)\",W=\"\\\\b(0b[01]+)\",b={begin:\"\\\\\\\\[\\\\s\\\\S]\",relevance:0},$={scope:\"string\",begin:\"'\",end:\"'\",illegal:\"\\\\n\",contains:[b]},X={scope:\"string\",begin:'\"',end:'\"',illegal:\"\\\\n\",contains:[b]},G=e(\"//\",\"$\"),F=e(\"/\\\\*\",\"\\\\*/\"),Z=e(\"#\",\"$\"),m=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\\b\\B/,IDENT_RE:f,UNDERSCORE_IDENT_RE:p,NUMBER_RE:z,C_NUMBER_RE:K,BINARY_NUMBER_RE:W,RE_STARTERS_RE:\"!|!=|!==|%|%=|&|&&|&=|\\\\*|\\\\*=|\\\\+|\\\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\\\?|\\\\[|\\\\{|\\\\(|\\\\^|\\\\^=|\\\\||\\\\|=|\\\\|\\\\||~\",SHEBANG:(e={})=>{var n=/^#![ ]*\\//;return e.binary&&(e.begin=g(n,/.*\\b/,e.binary,/\\b.*/)),l({scope:\"meta\",begin:n,end:/$/,relevance:0,\"on:begin\":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:b,APOS_STRING_MODE:$,QUOTE_STRING_MODE:X,PHRASAL_WORDS_MODE:{begin:/\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b/},COMMENT:e,C_LINE_COMMENT_MODE:G,C_BLOCK_COMMENT_MODE:F,HASH_COMMENT_MODE:Z,NUMBER_MODE:{scope:\"number\",begin:z,relevance:0},C_NUMBER_MODE:{scope:\"number\",begin:K,relevance:0},BINARY_NUMBER_MODE:{scope:\"number\",begin:W,relevance:0},REGEXP_MODE:{begin:/(?=\\/[^/\\n]*\\/)/,contains:[{scope:\"regexp\",begin:/\\//,end:/\\/[gimuy]*/,illegal:/\\n/,contains:[b,{begin:/\\[/,end:/\\]/,relevance:0,contains:[b]}]}]},TITLE_MODE:{scope:\"title\",begin:f,relevance:0},UNDERSCORE_TITLE_MODE:{scope:\"title\",begin:p,relevance:0},METHOD_GUARD:{begin:\"\\\\.\\\\s*\"+p,relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{\"on:begin\":(e,n)=>{n.data._beginMatch=e[1]},\"on:end\":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function V(e,n){\".\"===e.input[e.index-1]&&n.ignoreMatch()}function q(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function J(e,n){n&&e.beginKeywords&&(e.begin=\"\\\\b(\"+e.beginKeywords.split(\" \").join(\"|\")+\")(?!\\\\.)(?=\\\\b|\\\\s)\",e.__beforeBegin=V,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance)&&(e.relevance=0)}function Y(e,n){Array.isArray(e.illegal)&&(e.illegal=u(...e.illegal))}function Q(e,n){if(e.match){if(e.begin||e.end)throw new Error(\"begin & end are not supported with match\");e.begin=e.match,delete e.match}}function ee(e,n){void 0===e.relevance&&(e.relevance=1)}const ne=(n,e)=>{if(n.beforeMatch){if(n.starts)throw new Error(\"beforeMatch cannot be used with starts\");var t=Object.assign({},n);Object.keys(n).forEach(e=>{delete n[e]}),n.keywords=t.keywords,n.begin=g(t.beforeMatch,s(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch}},te=[\"of\",\"and\",\"for\",\"in\",\"not\",\"or\",\"if\",\"then\",\"parent\",\"list\",\"value\"],ie=\"keyword\";function re(n,t,e=ie){const i=Object.create(null);return\"string\"==typeof n?r(e,n.split(\" \")):Array.isArray(n)?r(e,n):Object.keys(n).forEach(function(e){Object.assign(i,re(n[e],t,e))}),i;function r(n,e){(e=t?e.map(e=>e.toLowerCase()):e).forEach(function(e){e=e.split(\"|\");i[e[0]]=[n,function(e,n){if(n)return Number(n);return function(e){return te.includes(e.toLowerCase())}(e)?0:1}(e[0],e[1])]})}}const oe={},j=e=>{console.error(e)},ae=(e,...n)=>{console.log(\"WARN: \"+e,...n)},w=(e,n)=>{oe[e+\"/\"+n]||(console.log(`Deprecated as of ${e}. `+n),oe[e+\"/\"+n]=!0)},E=new Error;function se(e,n,{key:t}){let i=0;var r=e[t],o={},a={};for(let e=1;e<=n.length;e++)a[e+i]=r[e],o[e+i]=!0,i+=d(n[e-1]);e[t]=a,e[t]._emit=o,e[t]._multi=!0}function le(e){(n=e).scope&&\"object\"==typeof n.scope&&null!==n.scope&&(n.beginScope=n.scope,delete n.scope),\"string\"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),\"string\"==typeof e.endScope&&(e.endScope={_wrap:e.endScope});var n=e;if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw j(\"skip, excludeBegin, returnBegin not compatible with beginScope: {}\"),E;if(\"object\"!=typeof n.beginScope||null===n.beginScope)throw j(\"beginScope must be object\"),E;se(n,n.begin,{key:\"beginScope\"}),n.begin=h(n.begin,{joinWith:\"\"})}n=e;if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw j(\"skip, excludeEnd, returnEnd not compatible with endScope: {}\"),E;if(\"object\"!=typeof n.endScope||null===n.endScope)throw j(\"endScope must be object\"),E;se(n,n.end,{key:\"endScope\"}),n.end=h(n.end,{joinWith:\"\"})}}function ce(o){function a(e,n){return new RegExp(c(e),\"m\"+(o.case_insensitive?\"i\":\"\")+(o.unicodeRegex?\"u\":\"\")+(n?\"g\":\"\"))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=d(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);var e=this.regexes.map(e=>e[1]);this.matcherRe=a(h(e,{joinWith:\"|\"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;var n,t,e=this.matcherRe.exec(e);return e?(n=e.findIndex((e,n)=>0<n&&void 0!==e),t=this.matchIndexes[n],e.splice(0,n),Object.assign(e,t)):null}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),\"begin\"===n.type&&this.count++}exec(e){var n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let t=n.exec(e);return!this.resumingScanAtSamePosition()||t&&t.index===this.lastIndex||((n=this.getMatcher(0)).lastIndex=this.lastIndex+1,t=n.exec(e)),t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count)&&this.considerAll(),t}}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes(\"self\"))throw new Error(\"ERR: contains `self` is not supported at the top-level of a language. See documentation.\");return o.classNameAliases=l(o.classNameAliases||{}),function n(t,i){const r=t;if(!t.isCompiled){[q,Q,le,ne].forEach(e=>e(t,i)),o.compilerExtensions.forEach(e=>e(t,i)),t.__beforeBegin=null,[J,Y,ee].forEach(e=>e(t,i)),t.isCompiled=!0;let e=null;\"object\"==typeof t.keywords&&t.keywords.$pattern&&(t.keywords=Object.assign({},t.keywords),e=t.keywords.$pattern,delete t.keywords.$pattern),e=e||/\\w+/,t.keywords&&(t.keywords=re(t.keywords,o.case_insensitive)),r.keywordPatternRe=a(e,!0),i&&(t.begin||(t.begin=/\\B|\\b/),r.beginRe=a(r.begin),t.end||t.endsWithParent||(t.end=/\\B|\\b/),t.end&&(r.endRe=a(r.end)),r.terminatorEnd=c(r.end)||\"\",t.endsWithParent)&&i.terminatorEnd&&(r.terminatorEnd+=(t.end?\"|\":\"\")+i.terminatorEnd),t.illegal&&(r.illegalRe=a(t.illegal)),t.contains||(t.contains=[]),t.contains=[].concat(...t.contains.map(function(e){var n=\"self\"===e?t:e;return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return l(n,{variants:null},e)})),n.cachedVariants||(function e(n){return!!n&&(n.endsWithParent||e(n.starts))}(n)?l(n,{starts:n.starts?l(n.starts):null}):Object.isFrozen(n)?l(n):n)})),t.contains.forEach(function(e){n(e,r)}),t.starts&&n(t.starts,i),r.matcher=function(e){const n=new s;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:\"begin\"})),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:\"end\"}),e.illegal&&n.addRule(e.illegal,{type:\"illegal\"}),n}(r)}return r}(o)}class ge extends Error{constructor(e,n){super(e),this.name=\"HTMLInjectionError\",this.html=n}}const A=i,ue=l,de=Symbol(\"nomatch\");{var x={};const B=Object.create(null),O=Object.create(null),N=[];let M=!0;const D=\"Could not find the language '{}', did you forget to load/include a language module?\",k={disableAutodetect:!0,name:\"Plain text\",contains:[]};let S={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\\blang(?:uage)?-([\\w-]+)\\b/i,classPrefix:\"hljs-\",cssSelector:\"pre code\",languages:null,__emitter:P};function he(e){return S.noHighlightRe.test(e)}function fe(e,n,t){let i=\"\",r=\"\";\"object\"==typeof n?(i=e,t=n.ignoreIllegals,r=n.language):(w(\"10.7.0\",\"highlight(lang, code, ...args) has been deprecated.\"),w(\"10.7.0\",\"Please use highlight(code, options) instead.\\nhttps://github.com/highlightjs/highlight.js/issues/2277\"),r=e,i=n),void 0===t&&(t=!0);e={code:i,language:r},_(\"before:highlight\",e),n=e.result||I(e.language,e.code,t);return n.code=e.code,_(\"after:highlight\",n),n}function I(i,r,o,e){const a=Object.create(null);function s(){if(b.keywords){let e=0,n=(b.keywordPatternRe.lastIndex=0,b.keywordPatternRe.exec(x)),t=\"\";for(;n;){t+=x.substring(e,n.index);var i,r=f.case_insensitive?n[0].toLowerCase():n[0],o=b.keywords[r];!o||([o,i]=o,w.addText(t),t=\"\",a[r]=(a[r]||0)+1,a[r]<=7&&(y+=i),o.startsWith(\"_\"))?t+=n[0]:(r=f.classNameAliases[o]||o,w.addKeyword(n[0],r)),e=b.keywordPatternRe.lastIndex,n=b.keywordPatternRe.exec(x)}t+=x.substring(e),w.addText(t)}else w.addText(x)}function l(){(null!=b.subLanguage?function(){if(\"\"!==x){let e=null;if(\"string\"==typeof b.subLanguage){if(!B[b.subLanguage])return w.addText(x);e=I(b.subLanguage,x,!0,m[b.subLanguage]),m[b.subLanguage]=e._top}else e=T(x,b.subLanguage.length?b.subLanguage:null);0<b.relevance&&(y+=e.relevance),w.addSublanguage(e._emitter,e.language)}}:s)(),x=\"\"}function c(e,n){let t=1;for(var i,r,o=n.length-1;t<=o;)e._emit[t]&&(i=f.classNameAliases[e[t]]||e[t],r=n[t],i?w.addKeyword(r,i):(x=r,s(),x=\"\")),t++}function g(e,n){e.scope&&\"string\"==typeof e.scope&&w.openNode(f.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(w.addKeyword(x,f.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),x=\"\"):e.beginScope._multi&&(c(e.beginScope,n),x=\"\")),b=Object.create(e,{parent:{value:b}})}function u(e){var n,t=e[0],i=e.rule,r=new R(i);for(const o of[i.__beforeBegin,i[\"on:begin\"]])if(o&&(o(e,r),r.isMatchIgnored))return n=t,0===b.matcher.regexIndex?(x+=n[0],1):(O=!0,0);return i.skip?x+=t:(i.excludeBegin&&(x+=t),l(),i.returnBegin||i.excludeBegin||(x=t)),g(i,e),i.returnBegin?0:t.length}function d(e){var n=e[0],t=r.substring(e.index),i=function e(n,t,i){o=n.endRe,a=i;let r=(o=o&&o.exec(a))&&0===o.index;var o,a;if(r=r&&(!n[\"on:end\"]||(a=new R(n),n[\"on:end\"](t,a),!a.isMatchIgnored))&&r){for(;n.endsParent&&n.parent;)n=n.parent;return n}if(n.endsWithParent)return e(n.parent,t,i)}(b,e,t);if(!i)return de;t=b;for(b.endScope&&b.endScope._wrap?(l(),w.addKeyword(n,b.endScope._wrap)):b.endScope&&b.endScope._multi?(l(),c(b.endScope,e)):t.skip?x+=n:(t.returnEnd||t.excludeEnd||(x+=n),l(),t.excludeEnd&&(x=n));b.scope&&w.closeNode(),b.skip||b.subLanguage||(y+=b.relevance),(b=b.parent)!==i.parent;);return i.starts&&g(i.starts,e),t.returnEnd?0:n.length}let h={};function n(e,n){var t=n&&n[0];if(x+=e,null==t)return l(),0;if(\"begin\"===h.type&&\"end\"===n.type&&h.index===n.index&&\"\"===t){if(x+=r.slice(n.index,n.index+1),M)return 1;throw(e=new Error(`0 width match regex (${i})`)).languageName=i,e.badRule=h.rule,e}if(\"begin\"===(h=n).type)return u(n);if(\"illegal\"===n.type&&!o)throw(e=new Error('Illegal lexeme \"'+t+'\" for mode \"'+(b.scope||\"<unnamed>\")+'\"')).mode=b,e;if(\"end\"===n.type){e=d(n);if(e!==de)return e}if(\"illegal\"===n.type&&\"\"===t)return 1;if(1e5<_&&_>3*n.index)throw new Error(\"potential infinite loop, way more iterations than matches\");return x+=t,t.length}const f=L(i);if(!f)throw j(D.replace(\"{}\",i)),new Error('Unknown language: \"'+i+'\"');var t=ce(f);let p=\"\",b=e||t;const m={},w=new S.__emitter(S);var E=[];for(let e=b;e!==f;e=e.parent)e.scope&&E.unshift(e.scope);E.forEach(e=>w.openNode(e));let x=\"\",y=0,v=0,_=0,O=!1;try{for(b.matcher.considerAll();;){_++,O?O=!1:b.matcher.considerAll(),b.matcher.lastIndex=v;var N=b.matcher.exec(r);if(!N)break;var k=n(r.substring(v,N.index),N);v=N.index+k}return n(r.substring(v)),w.closeAllNodes(),w.finalize(),p=w.toHTML(),{language:i,value:p,relevance:y,illegal:!1,_emitter:w,_top:b}}catch(e){if(e.message&&e.message.includes(\"Illegal\"))return{language:i,value:A(r),illegal:!0,relevance:0,_illegalBy:{message:e.message,index:v,context:r.slice(v-100,v+100),mode:e.mode,resultSoFar:p},_emitter:w};if(M)return{language:i,value:A(r),illegal:!1,relevance:0,errorRaised:e,_emitter:w,_top:b};throw e}}function T(n,e){e=e||S.languages||Object.keys(B);t=n,(i={value:A(t),illegal:!1,relevance:0,_top:k,_emitter:new S.__emitter(S)})._emitter.addText(t);var t=i,i=e.filter(L).filter(be).map(e=>I(e,n,!1)),e=(i.unshift(t),i.sort((e,n)=>{if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(L(e.language).supersetOf===n.language)return 1;if(L(n.language).supersetOf===e.language)return-1}return 0})),[t,i]=e,e=t;return e.secondBest=i,e}function y(e){t=(n=e).className+\" \",t+=n.parentNode?n.parentNode.className:\"\";var n=(o=S.languageDetectRe.exec(t))?((r=L(o[1]))||(ae(D.replace(\"{}\",o[1])),ae(\"Falling back to no-highlight mode for this block.\",n)),r?o[1]:\"no-highlight\"):t.split(/\\s+/).find(e=>he(e)||L(e));if(!he(n)){if(_(\"before:highlightElement\",{el:e,language:n}),0<e.children.length)if(S.ignoreUnescapedHTML||(console.warn(\"One of your code blocks includes unescaped HTML. This is a potentially serious security risk.\"),console.warn(\"https://github.com/highlightjs/highlight.js/wiki/security\"),console.warn(\"The element with unescaped HTML:\"),console.warn(e)),S.throwUnescapedHTML)throw new ge(\"One of your code blocks includes unescaped HTML.\",e.innerHTML);var t,i,r=e.textContent,o=n?fe(r,{language:n,ignoreIllegals:!0}):T(r);e.innerHTML=o.value,t=e,n=n,i=o.language,n=n&&O[n]||i,t.classList.add(\"hljs\"),t.classList.add(\"language-\"+n),e.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(e.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),_(\"after:highlightElement\",{el:e,result:o,text:r})}}let e=!1;function v(){\"loading\"===document.readyState?e=!0:document.querySelectorAll(S.cssSelector).forEach(y)}function L(e){return e=(e||\"\").toLowerCase(),B[e]||B[O[e]]}function pe(e,{languageName:n}){(e=\"string\"==typeof e?[e]:e).forEach(e=>{O[e.toLowerCase()]=n})}function be(e){e=L(e);return e&&!e.disableAutodetect}function _(e,n){const t=e;N.forEach(function(e){e[t]&&e[t](n)})}\"undefined\"!=typeof window&&window.addEventListener&&window.addEventListener(\"DOMContentLoaded\",function(){e&&v()},!1),Object.assign(x,{highlight:fe,highlightAuto:T,highlightAll:v,highlightElement:y,highlightBlock:function(e){return w(\"10.7.0\",\"highlightBlock will be removed entirely in v12.0\"),w(\"10.7.0\",\"Please use highlightElement now.\"),y(e)},configure:function(e){S=ue(S,e)},initHighlighting:()=>{v(),w(\"10.6.0\",\"initHighlighting() deprecated. Use highlightAll() now.\")},initHighlightingOnLoad:function(){v(),w(\"10.6.0\",\"initHighlightingOnLoad() deprecated. Use highlightAll() now.\")},registerLanguage:function(n,e){let t=null;try{t=e(x)}catch(e){if(j(\"Language definition for '{}' could not be registered.\".replace(\"{}\",n)),!M)throw e;j(e),t=k}t.name||(t.name=n),(B[n]=t).rawDefinition=e.bind(null,x),t.aliases&&pe(t.aliases,{languageName:n})},unregisterLanguage:function(e){delete B[e];for(const n of Object.keys(O))O[n]===e&&delete O[n]},listLanguages:function(){return Object.keys(B)},getLanguage:L,registerAliases:pe,autoDetection:be,inherit:ue,addPlugin:function(e){var n;(n=e)[\"before:highlightBlock\"]&&!n[\"before:highlightElement\"]&&(n[\"before:highlightElement\"]=e=>{n[\"before:highlightBlock\"](Object.assign({block:e.el},e))}),n[\"after:highlightBlock\"]&&!n[\"after:highlightElement\"]&&(n[\"after:highlightElement\"]=e=>{n[\"after:highlightBlock\"](Object.assign({block:e.el},e))}),N.push(e)}}),x.debugMode=function(){M=!1},x.safeMode=function(){M=!0},x.versionString=\"11.7.0\",x.regex={concat:g,lookahead:s,either:u,optional:U,anyNumberOfTimes:C};for(const H in m)\"object\"==typeof m[H]&&n.exports(m[H]);return Object.assign(x,m),x}}();\"object\"==typeof exports&&\"undefined\"!=typeof module&&(module.exports=hljs);","var EventCalendar=function(){\"use strict\";function s(t){try{return!!t()}catch(t){return!0}}function a(t){return J(q(t),8,-1)}function c(t){return null==t}function u(t){if(et(t))throw nt(\"Can't call method on \"+t);return t}function d(t){return rt(ot(t))}function f(t){return t&&t.Math==Math&&t}function h(t){return pt?ht.createElement(t):{}}function v(t){if(vt(t))return t;throw yt($t(t)+\" is not an object\")}function $(t){return xt(t)?t:void 0}function y(t,e){return arguments.length<2?$(_t[t])||$(Tt[t]):_t[t]&&_t[t][e]||Tt[t]&&Tt[t][e]}function w(t){if(It(t))return t;throw Ft(function(t){try{return jt(t)}catch(t){return\"Object\"}}(t)+\" is not a function\")}function k(t){return oe(re(t))}function _(t){return\"Symbol(\"+(void 0===t?\"\":t)+\")_\"+ce(++le+ae,36)}function T(t){var e;return ue(pe,t)&&(fe||\"string\"==typeof pe[t])||(e=\"Symbol.\"+t,fe&&ue(ge,t)?pe[t]=ge[t]:pe[t]=(he&&me?me:ve)(e)),pe[t]}function x(t){return t=function(t,e){if(!ye(t)||we(t))return t;var n=be(t,Te);if(n){if(n=$e(n,t,e=void 0===e?\"default\":e),!ye(n)||we(n))return n;throw _e(\"Can't convert object to primitive value\")}return ke(t,e=void 0===e?\"number\":e)}(t,\"string\"),xe(t)?t:t+\"\"}var C=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{},D={},S={get exports(){return D},set exports(t){D=t}},M={},H={get exports(){return M},set exports(t){M=t}},Y=!s(function(){var t=function(){}.bind();return\"function\"!=typeof t||t.hasOwnProperty(\"prototype\")}),W=Y,V=Function.prototype,X=V.call,V=W&&V.bind.bind(X,X),W=W?V:function(t){return function(){return X.apply(t,arguments)}},V=W,q=V({}.toString),J=V(\"\".slice),V=s,Q=a,Z=Object,tt=W(\"\".split),V=V(function(){return!Z(\"z\").propertyIsEnumerable(0)})?function(t){return\"String\"==Q(t)?tt(t,\"\"):Z(t)}:Z,et=c,nt=TypeError,rt=V,ot=u,V={},C=f(\"object\"==typeof globalThis&&globalThis)||f(\"object\"==typeof window&&window)||f(\"object\"==typeof self&&self)||f(\"object\"==typeof C&&C)||function(){return this}()||Function(\"return this\")(),t=\"object\"==typeof document&&document.all,t={all:t,IS_HTMLDDA:void 0===t&&void 0!==t},it=t.all,st=t.IS_HTMLDDA?function(t){return\"function\"==typeof t||t===it}:function(t){return\"function\"==typeof t},lt=st,at=C.WeakMap,lt=lt(at)&&/native code/.test(String(at)),ct=st,ut=t.all,at=t.IS_HTMLDDA?function(t){return\"object\"==typeof t?null!==t:ct(t)||t===ut}:function(t){return\"object\"==typeof t?null!==t:ct(t)},t=!s(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),dt={},ft=at,ht=C.document,pt=ft(ht)&&ft(ht.createElement),gt=h,ft=!t&&!s(function(){return 7!=Object.defineProperty(gt(\"div\"),\"a\",{get:function(){return 7}}).a}),mt=t&&s(function(){return 42!=Object.defineProperty(function(){},\"prototype\",{value:42,writable:!1}).prototype}),vt=at,$t=String,yt=TypeError,wt=Function.prototype.call,bt=Y?wt.bind(wt):function(){return wt.apply(wt,arguments)},kt={},_t=kt,Tt=C,xt=st,e=W({}.isPrototypeOf),Ct=C,Dt=y(\"navigator\",\"userAgent\")||\"\",n=Ct.process,Ct=Ct.Deno,n=n&&n.versions||Ct&&Ct.version,Ct=n&&n.v8,St=r=!(r=Ct?0<(Pt=Ct.split(\".\"))[0]&&Pt[0]<4?1:+(Pt[0]+Pt[1]):r)&&Dt&&(!(Pt=Dt.match(/Edge\\/(\\d+)/))||74<=Pt[1])&&(Pt=Dt.match(/Chrome\\/(\\d+)/))?+Pt[1]:r,n=s,Ct=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&St&&St<41}),Dt=Ct&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,Et=y,Mt=st,Ot=e,Lt=Object,Pt=Dt?function(t){return\"symbol\"==typeof t}:function(t){var e=Et(\"Symbol\");return Mt(e)&&Ot(e.prototype,Lt(t))},jt=String,It=st,Ft=TypeError,Rt=w,Ut=c,qt=bt,Jt=st,Kt=at,Qt=TypeError,Zt={},r={get exports(){return Zt},set exports(t){Zt=t}},te=C,ee=Object.defineProperty,n=\"__core-js_shared__\",e=C[n]||function(e,n){try{ee(te,e,{value:n,configurable:!0,writable:!0})}catch(t){te[e]=n}return n}(n,{}),ne=e,re=((r.exports=function(t,e){return ne[t]||(ne[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.27.1\",mode:\"pure\",copyright:\"© 2014-2022 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE\",source:\"https://github.com/zloirock/core-js\"}),u),oe=Object,ie=k,se=W({}.hasOwnProperty),n=Object.hasOwn||function(t,e){return se(ie(t),e)},r=W,le=0,ae=Math.random(),ce=r(1..toString),r=C,ue=n,de=_,fe=Ct,he=Dt,pe=Zt(\"wks\"),ge=r.Symbol,me=ge&&ge.for,ve=he?ge:ge&&ge.withoutSetter||de,$e=bt,ye=at,we=Pt,be=function(t,e){t=t[e];return Ut(t)?void 0:Rt(t)},ke=function(t,e){var n,r;if(\"string\"===e&&Jt(n=t.toString)&&!Kt(r=qt(n,t)))return r;if(Jt(n=t.valueOf)&&!Kt(r=qt(n,t)))return r;if(\"string\"!==e&&Jt(n=t.toString)&&!Kt(r=qt(n,t)))return r;throw Qt(\"Can't convert object to primitive value\")},_e=TypeError,Te=T(\"toPrimitive\"),xe=Pt,Ce=ft,De=v,Se=x,Ee=TypeError,Me=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Le=\"enumerable\",Pe=\"configurable\",je=\"writable\";dt.f=t?mt?function(t,e,n){var r;return De(t),e=Se(e),De(n),\"function\"==typeof t&&\"prototype\"===e&&\"value\"in n&&je in n&&!n[je]&&(r=Oe(t,e))&&r[je]&&(t[e]=n.value,n={configurable:(Pe in n?n:r)[Pe],enumerable:(Le in n?n:r)[Le],writable:!1}),Me(t,e,n)}:Me:function(t,e,n){if(De(t),e=Se(e),De(n),Ce)try{return Me(t,e,n)}catch(t){}if(\"get\"in n||\"set\"in n)throw Ee(\"Accessors not supported\");return\"value\"in n&&(t[e]=n.value),t};function Ie(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function Fe(t){return Xe[t]||(Xe[t]=Ve(t))}function Re(t){if(\"Function\"===rn(t))return on(t)}function Ue(t,e){return(t=wn[yn(t)])==kn||t!=bn&&(vn(e)?mn(e):!!e)}function ze(t){return(t=+t)!=t||0==t?0:zn(t)}function Be(l){return function(t,e,n){var r,o=Wn(t),i=Yn(o.length),s=function(t,e){t=Bn(t);return t<0?Gn(t+e,0):Hn(t,e)}(n,i);if(l&&e!=e){for(;s<i;)if((r=o[s++])!=r)return!0}else for(;s<i;s++)if((l||s in o)&&o[s]===e)return l||s||0;return!l&&-1}}var Ge,He,Ne,Ae,Ye=dt,We=Ie,Ct=t?function(t,e,n){return Ye.f(t,e,We(1,n))}:function(t,e,n){return t[e]=n,t},Ve=_,Xe=Zt(\"keys\"),Dt={},qe=at,Je=Ct,Ke=n,r=e,de=Fe,Pt=Dt,Qe=\"Object already initialized\",Ze=C.TypeError,e=C.WeakMap,tn=lt||r.state?((Ne=r.state||(r.state=new e)).get=Ne.get,Ne.has=Ne.has,Ne.set=Ne.set,Ge=function(t,e){if(Ne.has(t))throw Ze(Qe);return e.facade=t,Ne.set(t,e),e},He=function(t){return Ne.get(t)||{}},function(t){return Ne.has(t)}):(Pt[Ae=de(\"state\")]=!0,Ge=function(t,e){if(Ke(t,Ae))throw Ze(Qe);return e.facade=t,Je(t,Ae,e),e},He=function(t){return Ke(t,Ae)?t[Ae]:{}},function(t){return Ke(t,Ae)}),lt={set:Ge,get:He,has:tn,enforce:function(t){return tn(t)?He(t):Ge(t,{})},getterFor:function(e){return function(t){if(qe(t)&&(t=He(t)).type===e)return t;throw Ze(\"Incompatible receiver, \"+e+\" required\")}}},r=Function.prototype,en=r.apply,nn=r.call,e=\"object\"==typeof Reflect&&Reflect.apply||(Y?nn.bind(en):function(){return nn.apply(en,arguments)}),rn=a,on=W,Pt={},de={},r={}.propertyIsEnumerable,sn=Object.getOwnPropertyDescriptor,ln=sn&&!r.call({1:2},1),ln=(de.f=ln?function(t){t=sn(this,t);return!!t&&t.enumerable}:r,t),an=bt,cn=de,un=Ie,dn=d,fn=x,hn=n,pn=ft,gn=Object.getOwnPropertyDescriptor,mn=(Pt.f=ln?gn:function(t,e){if(t=dn(t),e=fn(e),pn)try{return gn(t,e)}catch(t){}if(hn(t,e))return un(!an(cn.f,t,e),t[e])},s),vn=st,$n=/#|\\.prototype\\./,yn=Ue.normalize=function(t){return String(t).replace($n,\".\").toLowerCase()},wn=Ue.data={},bn=Ue.NATIVE=\"N\",kn=Ue.POLYFILL=\"P\",r=Ue,_n=w,Tn=Y,xn=Re(Re.bind),Cn=C,Dn=e,Sn=Re,En=st,Mn=Pt.f,On=r,Ln=kt,Pn=function(t,e){return _n(t),void 0===e?t:Tn?xn(t,e):function(){return t.apply(e,arguments)}},jn=Ct,In=n,Fn=function(r){function o(t,e,n){if(this instanceof o){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return Dn(r,this,arguments)}return o.prototype=r.prototype,o},de=t,ft=n,ln=Function.prototype,Y=de&&Object.getOwnPropertyDescriptor,e=ft(ln,\"name\"),Pt={EXISTS:e,PROPER:e&&\"something\"===function(){}.name,CONFIGURABLE:e&&(!de||Y(ln,\"name\").configurable)},r={},Rn=Math.ceil,Un=Math.floor,zn=Math.trunc||function(t){t=+t;return(0<t?Un:Rn)(t)},Bn=ze,Gn=Math.max,Hn=Math.min,Nn=ze,An=Math.min,Yn=function(t){return 0<t?An(Nn(t),9007199254740991):0},Wn=d,kt={includes:Be(!0),indexOf:Be(!1)},Vn=n,Xn=d,qn=kt.indexOf,Jn=Dt,Kn=W([].push),ft=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],Qn=ft,e=Object.keys||function(t){var e,n=Qn,r=Xn(t),o=0,i=[];for(e in r)!Vn(Jn,e)&&Vn(r,e)&&Kn(i,e);for(;n.length>o;)!Vn(r,e=n[o++])||~qn(i,e)||Kn(i,e);return i},Zn=dt,tr=v,er=d,nr=e;r.f=t&&!mt?Object.defineProperties:function(t,e){tr(t);for(var n,r=er(e),o=nr(e),i=o.length,s=0;s<i;)Zn.f(t,n=o[s++],r[n]);return t};function rr(){}function or(t){t.write(pr(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e}var ir,de=y(\"document\",\"documentElement\"),sr=v,lr=r,ar=ft,Y=Dt,cr=de,ur=h,dr=\"prototype\",fr=\"script\",hr=Fe(\"IE_PROTO\"),pr=function(t){return\"<\"+fr+\">\"+t+\"</\"+fr+\">\"},gr=function(){try{ir=new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,n;gr=\"undefined\"==typeof document||document.domain&&ir?or(ir):(e=ur(\"iframe\"),n=\"java\"+fr+\":\",e.style.display=\"none\",cr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(pr(\"document.F=Object\")),t.close(),t.F);for(var r=ar.length;r--;)delete gr[dr][ar[r]];return gr()};Y[hr]=!0;function mr(t,e,n,r){return r&&r.enumerable?t[e]=n:Tr(t,e,n),t}var vr,ln=Object.create||function(t,e){var n;return null!==t?(rr[dr]=sr(t),n=new rr,rr[dr]=null,n[hr]=t):n=gr(),void 0===e?n:lr.f(n,e)},kt=!s(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),$r=n,yr=st,wr=k,e=kt,br=Fe(\"IE_PROTO\"),kr=Object,_r=kr.prototype,t=e?kr.getPrototypeOf:function(t){var e,t=wr(t);return $r(t,br)?t[br]:(e=t.constructor,yr(e)&&t instanceof e?e.prototype:t instanceof kr?_r:null)},Tr=Ct,mt=s,r=st,ft=at,Dt=ln,de=t,Y=mr,xr=T(\"iterator\"),kt=!1;[].keys&&(\"next\"in(e=[].keys())?(at=de(de(e)))!==Object.prototype&&(vr=at):kt=!0);function Cr(t,e,n,r){t&&(n=n?t:t.prototype,Hr(n,Ar)||Br(n,Ar,{configurable:!0,value:e}),r)&&!zr&&Gr(n,\"toString\",Nr)}function Dr(){return this}function Sr(t,e,n,r,o,i,s){var l=n,a=e,c=void 0;function u(t){if(t===o&&m)return m;if(!ro&&t in p)return p[t];switch(t){case\"keys\":case io:case so:return function(){return new n(this,t)}}return function(){return new n(this)}}a+=\" Iterator\",l.prototype=Wr(Yr,{next:Vr(+!c,r)}),Xr(l,a,!1,!0),qr[a]=Jr;var d,f,c=e+\" Iterator\",h=!1,p=t.prototype,g=p[oo]||p[\"@@iterator\"]||o&&p[o],m=!ro&&g||u(o);if((r=\"Array\"==e&&p.entries||g)&&(l=Qr(r.call(new t)))!==Object.prototype&&l.next&&(Zr(l,c,!0,!0),eo[c]=Dr),no&&o==io&&g&&g.name!==io&&(h=!0,m=function(){return Kr(g,this)}),o)if(d={values:u(io),keys:i?m:u(\"keys\"),entries:u(so)},s)for(f in d)!ro&&!h&&f in p||to(p,f,d[f]);else{var v={target:e,proto:!0,forced:ro||h};var $=d;var y,w,b,k,_,T,x=v.target,C=v.global,D=v.stat,S=v.proto,E=C?Cn:D?Cn[x]:(Cn[x]||{}).prototype,M=C?Ln:Ln[x]||jn(Ln,x,{})[x],O=M.prototype;for(w in $)_=!(y=On(C?w:x+(D?\".\":\"#\")+w,v.forced))&&E&&In(E,w),k=M[w],_&&(T=v.dontCallGetSet?(T=Mn(E,w))&&T.value:E[w]),b=_&&T?T:$[w],_&&typeof k==typeof b||(_=v.bind&&_?Pn(b,Cn):v.wrap&&_?Fn(b):S&&En(b)?Sn(b):b,(v.sham||b&&b.sham||k&&k.sham)&&jn(_,\"sham\",!0),jn(M,w,_),S&&(In(Ln,k=x+\"Prototype\")||jn(Ln,k,{}),jn(Ln[k],w,b),v.real)&&O&&(y||!O[w])&&jn(O,w,b))}return s&&p[oo]!==m&&to(p,oo,m,{name:o}),eo[e]=m,d}function Er(t,e){return{value:t,done:e}}function Mr(t){if(\"Symbol\"===ho(t))throw TypeError(\"Cannot convert a Symbol value to a string\");return po(t)}function Or(o){return function(t,e){var n,t=mo(vo(t)),e=go(e),r=t.length;return e<0||r<=e?o?\"\":void 0:(n=yo(t,e))<55296||56319<n||e+1===r||(r=yo(t,e+1))<56320||57343<r?o?$o(t,e):n:o?wo(t,e,e+2):r-56320+(n-55296<<10)+65536}}r((vr=!ft(vr)||mt(function(){var t={};return vr[xr].call(t)!==t})?{}:Dt(vr))[xr])||Y(vr,xr,function(){return this});var Lr,de={IteratorPrototype:vr,BUGGY_SAFARI_ITERATORS:kt},e={},at=(e[T(\"toStringTag\")]=\"z\",\"[object z]\"===String(e)),r=at,Pr=st,jr=a,Ir=T(\"toStringTag\"),Fr=Object,Rr=\"Arguments\"==jr(function(){return arguments}()),ft=r?jr:function(t){var e;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=Fr(t),Ir))?e:Rr?jr(t):\"Object\"==(e=jr(t))&&Pr(t.callee)?\"Arguments\":e},Ur=ft,zr=at,Br=dt.f,Gr=Ct,Hr=n,Nr=at?{}.toString:function(){return\"[object \"+Ur(this)+\"]\"},Ar=T(\"toStringTag\"),Yr=de.IteratorPrototype,Wr=ln,Vr=Ie,Xr=Cr,qr=V,Jr=function(){return this},Kr=bt,Qr=t,Zr=Cr,to=mr,eo=V,no=Pt.PROPER,ro=de.BUGGY_SAFARI_ITERATORS,oo=T(\"iterator\"),io=\"values\",so=\"entries\",lo=d,mt=V,Dt=lt,Y=Sr,ao=Er,co=\"Array Iterator\",uo=Dt.set,fo=Dt.getterFor(co),ho=(Y(Array,\"Array\",function(t,e){uo(this,{type:co,target:lo(t),index:0,kind:e})},function(){var t=fo(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,ao(void 0,!0)):ao(\"keys\"==n?r:\"values\"==n?e[r]:[r,e[r]],!1)},\"values\"),mt.Arguments=mt.Array,ft),po=String,kt=W,go=ze,mo=Mr,vo=u,$o=kt(\"\".charAt),yo=kt(\"\".charCodeAt),wo=kt(\"\".slice),bo=(Or(!1),Or(!0)),ko=Mr,e=lt,st=Sr,_o=Er,To=\"String Iterator\",xo=e.set,Co=e.getterFor(To),Do=(st(String,\"String\",function(t){xo(this,{type:To,string:ko(t),index:0})},function(){var t=Co(this),e=t.string,n=t.index;return n>=e.length?_o(void 0,!0):(e=bo(e,n),t.index+=e.length,_o(e,!1))}),ft),So=n,Eo=c,Mo=V,Oo=T(\"iterator\"),Lo=Object,Po=C,jo=ft,Io=Ct,Fo=V,Ro=T(\"toStringTag\");for(Lr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Uo=Po[Lr],Uo=Uo&&Uo.prototype;Uo&&jo(Uo)!==Ro&&Io(Uo,Ro,Lr),Fo[Lr]=Fo.Array}function zt(){}H.exports=function(t){return!Eo(t)&&(void 0!==(t=Lo(t))[Oo]||\"@@iterator\"in t||So(Mo,Do(t)))},S.exports=M;const zo=t=>t;function Bo(t){return t()}function Go(){return Object.create(null)}function Bt(t){t.forEach(Bo)}function Gt(t){return\"function\"==typeof t}function l(t,e){return t!=t?e==e:t!==e||t&&\"object\"==typeof t||\"function\"==typeof t}function Ho(t){if(null==t)return zt;for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const o=t.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}function No(t){let e;return Ho(t,t=>e=t)(),e}function Ht(t,e,n){t.$$.on_destroy.push(Ho(e,n))}function Ao(t,e,n,r){if(t)return e=Yo(t,e,n,r),t[0](e)}function Yo(t,e,n,r){if(t[1]&&r){var o=n.ctx.slice(),i=t[1](r(e));for(const s in i)o[s]=i[s];return o}return n.ctx}function Wo(e,n,r,t){if(e[2]&&t){var o=e[2](t(r));if(void 0===n.dirty)return o;if(\"object\"!=typeof o)return n.dirty|o;{const e=[],r=Math.max(n.dirty.length,o.length);for(let t=0;t<r;t+=1)e[t]=n.dirty[t]|o[t];return e}}return n.dirty}function Vo(t,e,n,r,o,i){o&&(e=Yo(e,n,r,i),t.p(e,o))}function Xo(t){if(32<t.ctx.length){var e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function Nt(t,e,n){return t.set(n),e}function qo(t){return t&&Gt(t.destroy)?t.destroy:zt}function L(t,e){t.appendChild(e)}function P(t,e,n){t.insertBefore(e,n||null)}function j(t){t.parentNode&&t.parentNode.removeChild(t)}function E(e,n){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function I(t){return document.createElement(t)}function Jo(t){return document.createTextNode(t)}function F(){return Jo(\" \")}function b(){return Jo(\"\")}function At(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Ko(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function R(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Qo(t,e){t.wholeText!==(e=\"\"+e)&&(t.data=e)}function Zo(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?\"important\":\"\")}function ti(t,e){return new t(e)}let ei;function ni(t){ei=t}function ri(){if(ei)return ei;throw new Error(\"Function called outside component initialization\")}function oi(t){ri().$$.on_mount.push(t)}function ii(t){ri().$$.after_update.push(t)}function si(t,e){ri().$$.context.set(t,e)}function Yt(t){return ri().$$.context.get(t)}function li(t,e){t=t.$$.callbacks[e.type];t&&t.slice().forEach(t=>t.call(this,e))}const ai=[],K=[],ci=[],ui=[],di=Promise.resolve();let fi=!1;function hi(){fi||(fi=!0,di.then($i))}function pi(){return hi(),di}function gi(t){ci.push(t)}const mi=new Set;let vi=0;function $i(){if(0===vi){const r=ei;do{try{for(;vi<ai.length;){const r=ai[vi];vi++,ni(r),t=e=void 0;var t,e=r.$$;null!==e.fragment&&(e.update(),Bt(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(gi))}}catch(r){throw ai.length=0,vi=0,r}for(ni(null),ai.length=0,vi=0;K.length;)K.pop()();for(let t=0;t<ci.length;t+=1){var n=ci[t];mi.has(n)||(mi.add(n),n())}}while(ci.length=0,ai.length);for(;ui.length;)ui.pop()();fi=!1,mi.clear(),ni(r)}}const yi=new Set;let wi;function U(){wi={r:0,c:[],p:wi}}function z(){wi.r||Bt(wi.c),wi=wi.p}function B(t,e){t&&t.i&&(yi.delete(t),t.i(e))}function G(t,e,n,r){t&&t.o?yi.has(t)||(yi.add(t),wi.c.push(()=>{yi.delete(t),r&&(n&&t.d(1),r())}),t.o(e)):r&&r()}r=\"undefined\"!=typeof window?window:\"undefined\"!=typeof globalThis?globalThis:global;function bi(t,e){G(t,1,1,()=>{e.delete(t.key)})}function ki(e,n,r,o,i,s,l,a,t,c,u,d){let f=e.length,h=s.length,p=f;for(var g={};p--;)g[e[p].key]=p;var m=[],v=new Map,$=new Map;for(p=h;p--;){const e=d(i,s,p),a=r(e);let t=l.get(a);t?o&&t.p(e,n):(t=c(a,e)).c(),v.set(a,m[p]=t),a in g&&$.set(a,Math.abs(p-g[a]))}var y=new Set,w=new Set;function b(t){B(t,1),t.m(a,u),l.set(t.key,t),u=t.first,h--}for(;f&&h;){const n=m[h-1],r=e[f-1],o=n.key,i=r.key;n===r?(u=n.first,f--,h--):v.has(i)?!l.has(o)||y.has(o)?b(n):w.has(i)?f--:$.get(o)>$.get(i)?(w.add(o),b(n)):(y.add(i),f--):(t(r,l),f--)}for(;f--;){const n=e[f];v.has(n.key)||t(n,l)}for(;h;)b(m[h-1]);return m}function p(t){t&&t.c()}function g(e,t,n,r){var{fragment:o,after_update:i}=e.$$;o&&o.m(t,n),r||gi(()=>{var t=e.$$.on_mount.map(Bo).filter(Gt);e.$$.on_destroy?e.$$.on_destroy.push(...t):Bt(t),e.$$.on_mount=[]}),i.forEach(gi)}function O(t,e){t=t.$$;null!==t.fragment&&(Bt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function o(r,t,e,n,o,i,s,l){var l=7<arguments.length&&void 0!==l?l:[-1],a=ei;ni(r);const c=r.$$={fragment:null,ctx:[],props:i,update:zt,not_equal:o,bound:Go(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:Go(),dirty:l,skip_bound:!1,root:t.target||a.$$.root};s&&s(c.root);let u=!1;if(c.ctx=e?e(r,t.props||{},function(t,e){var n=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:e;return c.ctx&&o(c.ctx[t],c.ctx[t]=n)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](n),u)&&(n=t,-1===(t=r).$$.dirty[0]&&(ai.push(t),hi(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31),e}):[],c.update(),u=!0,Bt(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){i=t.target;const r=Array.from(i.childNodes);c.fragment&&c.fragment.l(r),r.forEach(j)}else c.fragment&&c.fragment.c();t.intro&&B(r.$$.fragment),g(r,t.target,t.anchor,t.customElement),$i()}ni(a)}class i{$destroy(){O(this,1),this.$destroy=zt}$on(t,e){if(!Gt(e))return zt;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _i=[];function Ti(t,e){return{subscribe:m(t,e).subscribe}}function m(n,t){let r,o=1<arguments.length&&void 0!==t?t:zt;const i=new Set;function s(t){if(l(n,t)&&(n=t,r)){const r=!_i.length;for(const r of i)r[1](),_i.push(r,n);if(r){for(let t=0;t<_i.length;t+=2)_i[t][0](_i[t+1]);_i.length=0}}}return{set:s,update:function(t){s(t(n))},subscribe:function(t){const e=[t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:zt];return i.add(e),1===i.size&&(r=o(s)||zt),t(n),()=>{i.delete(e),0===i.size&&(r(),r=null)}}}}function xi(t,l,e){const a=!Array.isArray(t),c=a?[t]:t,u=l.length<2;return Ti(e,e=>{let n=!1;const r=[];let o=0,i=zt;const s=()=>{var t;o||(i(),t=l(a?r[0]:r,e),u?e(t):i=Gt(t)?t:zt)},t=c.map((t,e)=>Ho(t,t=>{r[e]=t,o&=~(1<<e),n&&s()},()=>{o|=1<<e}));return n=!0,s(),function(){Bt(t),i()}})}function Ci(){return Object.assign(...arguments)}function Di(){return Symbol(\"ec\")}function Si(n,t){var e={update(t){for(;n.firstChild;)n.removeChild(n.lastChild);if(\"object\"==typeof t&&null!==t)if(t.domNodes)for(var e of t.domNodes)n.appendChild(e);else t.html&&(n.innerHTML=t.html);else n.innerText=t}};return e.update(t),e}function Ei(t){return void 0!==t?t instanceof Date?Ri(t):(t=t.match(/\\d+/g),new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))):Ri(new Date)}function Mi(n){if(\"number\"==typeof n)n={seconds:n};else if(\"string\"==typeof n){let t=0,e=2;for(var r of n.split(\":\",3))t+=parseInt(r,10)*Math.pow(60,e--);n={seconds:t}}else n instanceof Date&&(n={hours:n.getUTCHours(),minutes:n.getUTCMinutes(),seconds:n.getUTCSeconds()});var t=n.weeks||n.week||0;return{years:n.years||n.year||0,months:n.months||n.month||0,days:7*t+(n.days||n.day||0),seconds:60*(n.hours||n.hour||0)*60+60*(n.minutes||n.minute||0)+(n.seconds||n.second||0),inWeeks:!!t}}function Wt(t){return new Date(t.getTime())}function Vt(t,e,n){void 0===n&&(n=1),t.setUTCFullYear(t.getUTCFullYear()+n*e.years);let r=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(r),(r%=12)<0&&(r+=12);t.getUTCMonth()!==r;)Li(t);return t.setUTCDate(t.getUTCDate()+n*e.days),t.setUTCSeconds(t.getUTCSeconds()+n*e.seconds),t}function Oi(t,e){return t.setUTCDate(t.getUTCDate()+(void 0===e?1:e)),t}function Li(t,e){return Oi(t,void 0===e?-1:-e)}function Pi(t){return t.setUTCHours(0,0,0,0),t}function N(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function ji(t){return t.toISOString().substring(0,19)}function A(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.every(t=>e.getTime()===t.getTime())}function Ii(t,e){e-=t.getUTCDay();t.setUTCDate(t.getUTCDate()+(e<=0?e:e-7))}function Fi(t){return\"string\"==typeof t&&t.length<=10}function Ri(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Ui(t,e,n){n=t.indexOf(e,n);return 0<=n?[e=n+e.length,{head:t.substr(0,n),tail:t.substr(e)}]:[-1,null]}function zi(e,n,t){t.update(t=>t.set(n,e))}function Bi(t,e,n,r){t=document.createElement(t);return t.className=e,n?t.innerHTML=n:r&&(t.innerText=r),t}function Gi(t){return t.scrollHeight>t.clientHeight}function Hi(t){return t.getBoundingClientRect()}function Ni(t,e){for(;e--;)t=t.parentElement;return t}function Ai(t){return Hi(t).height}let Yi=Di();function Wi(t,e){t[Yi]=e}function Xt(t){return(t=Ci({},t)).currentStart=N(t.currentStart),t.currentEnd=N(t.currentEnd),t.activeStart=N(t.activeStart),t.activeEnd=N(t.activeEnd),t}const Vi=[\"background\"];let Xi=1;function qi(t){return t.map(t=>({id:\"id\"in t?String(t.id):`{generated-${Xi++}}`,resourceIds:Array.isArray(t.resourceIds)?t.resourceIds.map(String):\"resourceId\"in t?[String(t.resourceId)]:[],allDay:t.allDay??(Fi(t.start)&&Fi(t.end)),start:Ei(t.start),end:Ei(t.end),title:t.title||\"\",titleHTML:t.titleHTML||\"\",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:Vi.includes(t.display)?t.display:\"auto\",extendedProps:t.extendedProps||{},backgroundColor:t.backgroundColor||t.color}))}function Ji(t){return t.map(t=>({events:t.events,url:t.url&&t.url.trimEnd(\"&\")||\"\",method:t.method&&t.method.toUpperCase()||\"GET\",extraParams:t.extraParams||{}}))}function Ki(t,e,n){return{start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t}}function Qi(t){t.sort((t,e)=>t.start<e.start?-1:t.start>e.start?1:0)}function Zi(e,n){var r={};if(e.length){let t;Qi(e);for(var o of e){for(var i,s=[],l=Pi(Wt(o.start));o.end>l;)!n.includes(l.getUTCDay())&&(s.push(Wt(l)),1<s.length)&&(r[i=l.getTime()]?r[i].chunks.push(o):r[i]={sorted:!1,chunks:[o]}),Oi(l);s.length?(o.date=s[0],o.days=s.length,o.dates=s,o.start<s[0]&&(o.start=s[0]),Pi(Wt(o.end))>s[s.length-1]&&(o.end=s[s.length-1])):(o.date=Pi(Wt(o.start)),o.days=1,o.dates=[o.date]),t&&A(t.date,o.date)&&(o.prev=t),t=o}}return r}function ts(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let r=1,o=t.date.getTime();if(e[o]){e[o].sorted||(e[o].chunks.sort((t,e)=>t.top-e.top),e[o].sorted=!0);for(var i of e[o].chunks)t.top<i.bottom&&t.bottom>i.top&&(i=i.bottom-t.top+1,r+=i,t.top+=i,t.bottom+=i)}return r}function es(t,e,n,r,o,i){let s,l=o.format(t.start);if(e&&\"pointer\"!==t.event.display&&(l+=\" - \"+o.format(t.end)),n)s=Gt(n)?n({event:ns(t.event),timeText:l,view:Xt(i)}):n;else switch(t.event.display){case\"background\":s=\"\";break;case\"pointer\":s={domNodes:[Bi(\"div\",r.eventTime,null,l)]};break;default:s={domNodes:[Bi(\"div\",r.eventTime,null,l),Bi(\"div\",r.eventTitle,t.event.titleHTML,t.event.title)]}}return[l,s]}function ns(t){return os(t,N)}function rs(t){return os(t,Wt)}function os(t,e){return(t=Ci({},t)).start=e(t.start),t.end=e(t.end),t}function is(t,e,n,r,o){return(t.start<n&&t.end>e||!o&&A(t.start,t.end,e))&&(void 0===r||t.resourceIds.includes(r.id))}let ss,ls=Di();function as(t){t[ls]=!0}function cs(e){return t=>{t[ls]||(e&&e(t),as(t))}}function us(t,n,e){let r=e,o=!1,i=n.length<2,s=xi(t,(t,e)=>(o=!0,i?(r=n(t,e),e(r)):n(t,t=>{r=t,e(t)}),()=>{o=!1}),r);return{...s,get:()=>o?r:No(s)}}function ds(t,e){return xi([t,e],t=>{let[e,n]=t,r=Gt(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>r.format(N(t))}})}class fs{constructor(r,t){var e,n,o,i,s,l,a,c=function(t){var e,n={allDayContent:void 0,allDaySlot:!0,buttonText:{today:\"today\"},date:new Date,dateClick:void 0,datesSet:void 0,dayHeaderFormat:{weekday:\"short\",month:\"numeric\",day:\"numeric\"},displayEventEnd:!0,duration:{weeks:1},events:[],eventBackgroundColor:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventSources:[],eventTimeFormat:{hour:\"numeric\",minute:\"2-digit\"},firstDay:0,flexibleSlotTimeLimits:!1,headerToolbar:{start:\"title\",center:\"\",end:\"today prev,next\"},height:\"auto\",hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,monthMode:!1,nowIndicator:!1,selectable:!1,scrollTime:\"06:00:00\",slotDuration:\"00:30:00\",slotEventOverlap:!0,slotHeight:24,slotLabelFormat:{hour:\"numeric\",minute:\"2-digit\"},slotMaxTime:\"24:00:00\",slotMinTime:\"00:00:00\",theme:{allDay:\"ec-all-day\",active:\"ec-active\",bgEvent:\"ec-bg-event\",bgEvents:\"ec-bg-events\",body:\"ec-body\",button:\"ec-button\",buttonGroup:\"ec-button-group\",calendar:\"ec\",compact:\"ec-compact\",content:\"ec-content\",day:\"ec-day\",dayHead:\"ec-day-head\",days:\"ec-days\",event:\"ec-event\",eventBody:\"ec-event-body\",eventTime:\"ec-event-time\",eventTitle:\"ec-event-title\",events:\"ec-events\",extra:\"ec-extra\",handle:\"ec-handle\",header:\"ec-header\",hiddenScroll:\"ec-hidden-scroll\",hiddenTimes:\"ec-hidden-times\",highlight:\"ec-highlight\",icon:\"ec-icon\",line:\"ec-line\",lines:\"ec-lines\",nowIndicator:\"ec-now-indicator\",otherMonth:\"ec-other-month\",sidebar:\"ec-sidebar\",sidebarTitle:\"ec-sidebar-title\",today:\"ec-today\",time:\"ec-time\",title:\"ec-title\",toolbar:\"ec-toolbar\",week:\"ec-week\",withScroll:\"ec-with-scroll\"},titleFormat:{year:\"numeric\",month:\"short\",day:\"numeric\"},view:void 0,viewDidMount:void 0,views:{}};for(e of t)\"createOptions\"in e&&e.createOptions(n);return n}(r=r||[]),u=function(e){var t,n={buttonText:t=>Gt(t)?t(e.buttonText):t,date:t=>Pi(Ei(t)),duration:Mi,events:qi,eventSources:Ji,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map(Ei),scrollTime:Mi,slotDuration:Mi,slotMaxTime:Mi,slotMinTime:Mi,theme:t=>Gt(t)?t(e.theme):t};for(t of r)\"createParsers\"in t&&t.createParsers(n,e);return n}(c);for([e,n]of Object.entries(c))this[e]=(o=n,i=u[e],s=void 0,{...m(i?i(o):o,s),parse:i});this._queue=m(new Map),this._auxiliary=m([]),this._currentRange=xi([this.date,this.duration,this.monthMode,this.firstDay],t=>{var[t,e,n,r]=t,t=Wt(t);return n?t.setUTCDate(1):e.inWeeks&&Ii(t,r),{start:t,end:Vt(Wt(t),e)}}),this._activeRange=xi([(f=this)._currentRange,f.firstDay,f.monthMode,f.slotMinTime,f.slotMaxTime],t=>{let[e,n,r,,o]=t,i=Wt(e.start),s=Wt(e.end);var l;return r?(Ii(i,n),l=n-(t=s).getUTCDay(),t.setUTCDate(t.getUTCDate()+(0<=l?l:7+l))):(o.days||86400<o.seconds)&&(Vt(Li(s),o),(t=Li(Wt(s)))<i)&&(i=t),{start:i,end:s}}),this._fetchedRange=m({start:void 0,end:void 0}),this._events=function(t){let p,e=m([]),g=0,r={};return xi([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],(n,h)=>zi(()=>{let[t,r,a,c,e,u]=n;if(r.length){if(!c.start||c.start>a.start||c.end<a.end||!e){p&&p.abort(),p=new AbortController,Gt(u)&&!g&&u(!0);let e=()=>{0==--g&&Gt(u)&&u(!1)},n=[],o=t=>e(),i=t=>{n=n.concat(qi(t)),h(n),e()},s=ji(a.start),l=ji(a.end);for(var d of r){if(Gt(d.events)){var f=d.events({start:N(a.start),end:N(a.end),startStr:s,endStr:l},i,o);void 0!==f&&Promise.resolve(f).then(i,o)}else{let t=Gt(d.extraParams)?d.extraParams():Ci({},d.extraParams);t.start=s,t.end=l,t=new URLSearchParams(t);let e,n=d.url,r={};[\"GET\",\"HEAD\"].includes(d.method)?n+=(n.includes(\"?\")?\"&\":\"?\")+t:(r[\"content-type\"]=\"application/x-www-form-urlencoded;charset=UTF-8\",e=String(t)),fetch(n,{method:d.method,headers:r,body:e,signal:p.signal,credentials:\"same-origin\"}).then(t=>t.json()).then(i).catch(o)}++g}c.start=a.start,c.end=a.end}}else h(t)},r,t._queue),[]).subscribe(e.set),e}(this),this._now=Ti(Ei(),t=>{let e=setInterval(()=>{t(Ei())},1e3);return()=>clearInterval(e)}),this._today=xi(this._now,t=>Pi(Wt(t))),this._ignoreClick=m(!1),this._intlEventTime=ds(this.locale,this.eventTimeFormat),this._intlSlotLabel=ds(this.locale,this.slotLabelFormat),this._intlDayHeader=ds(this.locale,this.dayHeaderFormat),this._titleIntlRange=xi([this.locale,this.titleFormat],t=>{let[e,n]=t;if(Gt(n))return{format:(t,e)=>n(N(t),N(e))};let a=new Intl.DateTimeFormat(e,n);return{format:(t,e)=>{var t=N(t),e=N(e),n=a;if(t.getFullYear()!==e.getFullYear())return n.format(t)+\" - \"+n.format(e);var r=[];if(t.getMonth()!==e.getMonth()&&r.push(\"month\"),t.getDate()!==e.getDate()&&r.push(\"day\"),!r.length)return n.format(t);var o,i=n.resolvedOptions(),s={};for(o of r)s[o]=i[o];var r=new Intl.DateTimeFormat(i.locale,s),l=n.format(t),n=n.format(e),t=r.format(t),r=r.format(e);return(e=function(e,n,r,o){let i=0;for(;i<e.length;){var s,l;if([i,s]=Ui(e,n,i),!s)break;let t=0;for(;t<r.length;){if([t,l]=Ui(r,o,t),!l)break;if(s.head===l.head&&s.tail===l.tail)return s}}return null}(l,t,n,r))?e.head+t+\" - \"+r+e.tail:l+\" - \"+n}}}),this._scrollable=m(!1),this._viewTitle=xi([(f=this).date,f._activeRange,f._titleIntlRange,f.monthMode],t=>{var[t,e,n,r]=t;return r?n.format(t,t):n.format(e.start,Li(Wt(e.end)))}),this._viewDates=us([(l=this)._activeRange,l.hiddenDays],t=>{let[e,n]=t,r=[],o=Pi(Wt(e.start)),i=Pi(Wt(e.end));for(;o<i;)n.includes(o.getUTCDay())||r.push(Wt(o)),Oi(o);return!r.length&&n.length&&n.length<7&&(l.date.update(t=>{for(;n.includes(t.getUTCDay());)Oi(t);return t}),r=l._viewDates.get()),r}),this._view=us([(f=this).view,f._viewTitle,f._currentRange,f._activeRange],t=>{return[t,e,n,r]=[...t],{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0};var e,n,r}),this._viewComponent=m(void 0),this._viewClass=m(void 0),this._resBgColor=m(zt),this._interaction=m({}),this._iEvents=m([null,null]),this._draggable=m(zt),this._resizable=m(zt),this._classes=m(zo),this._iClass=m(void 0),this._scroll=m(void 0);for(a of r)\"createStores\"in a&&a.createStores(this);t.view&&this.view.set(t.view);var d=Ci({},c,t),f=(hs(d,this),new Set([...Object.keys(c.views),...Object.keys(t.views||{})]));for(let i of f){var h=Ci({},c.views[i]||{},t.views&&t.views[i]||{});hs(h,this);let o=Ci({},d,h);this.view.subscribe(t=>{t===i&&(this._viewComponent.set(o.component),Gt(o.viewDidMount))&&pi().then(()=>o.viewDidMount(this._view.get()))});for(let r of Object.keys(o))if(this.hasOwnProperty(r)&&\"_\"!==r[0]){let{set:e,_set:n,...t}=this[r];n=n||e,this[r]={set:t=>{o[r]=t,e(t)},_set:n,...t},this.view.subscribe(t=>{t===i&&n(o[r])})}}}}function hs(t,e){for(var n of Object.keys(t))e.hasOwnProperty(n)&&\"_\"!==n[0]&&e[n].parse&&(t[n]=e[n].parse(t[n]))}function ps(t,e,n){t=t.slice();return t[23]=e[n],t}function gs(n){let r,o,i,s,l,a=n[5][n[23]]+\"\";function c(){return n[20](n[23])}return{c(){r=I(\"button\"),o=Jo(a),R(r,\"class\",i=n[3].button+(n[6]===n[23]?\" \"+n[3].active:\"\")+\" ec-\"+n[23])},m(t,e){P(t,r,e),L(r,o),s||(l=At(r,\"click\",c),s=!0)},p(t,e){n=t,33&e&&a!==(a=n[5][n[23]]+\"\")&&Qo(o,a),73&e&&i!==(i=n[3].button+(n[6]===n[23]?\" \"+n[3].active:\"\")+\" ec-\"+n[23])&&R(r,\"class\",i)},d(t){t&&j(r),s=!1,l()}}}function ms(n){let r,o,i,s,l,a=n[5][n[23]]+\"\";return{c(){r=I(\"button\"),o=Jo(a),R(r,\"class\",i=n[3].button+\" ec-\"+n[23]),r.disabled=n[1]},m(t,e){P(t,r,e),L(r,o),s||(l=At(r,\"click\",n[19]),s=!0)},p(t,e){33&e&&a!==(a=t[5][t[23]]+\"\")&&Qo(o,a),9&e&&i!==(i=t[3].button+\" ec-\"+t[23])&&R(r,\"class\",i),2&e&&(r.disabled=t[1])},d(t){t&&j(r),s=!1,l()}}}function vs(n){let r,o,i,s,l,a;return{c(){r=I(\"button\"),R(o=I(\"i\"),\"class\",i=n[3].icon+\" ec-\"+n[23]),R(r,\"class\",s=n[3].button+\" ec-\"+n[23])},m(t,e){P(t,r,e),L(r,o),l||(a=At(r,\"click\",n[17]),l=!0)},p(t,e){9&e&&i!==(i=t[3].icon+\" ec-\"+t[23])&&R(o,\"class\",i),9&e&&s!==(s=t[3].button+\" ec-\"+t[23])&&R(r,\"class\",s)},d(t){t&&j(r),l=!1,a()}}}function $s(n){let r,o,i,s,l,a;return{c(){r=I(\"button\"),R(o=I(\"i\"),\"class\",i=n[3].icon+\" ec-\"+n[23]),R(r,\"class\",s=n[3].button+\" ec-\"+n[23])},m(t,e){P(t,r,e),L(r,o),l||(a=At(r,\"click\",n[16]),l=!0)},p(t,e){9&e&&i!==(i=t[3].icon+\" ec-\"+t[23])&&R(o,\"class\",i),9&e&&s!==(s=t[3].button+\" ec-\"+t[23])&&R(r,\"class\",s)},d(t){t&&j(r),l=!1,a()}}}function ys(t){let n,r,o;return{c(){n=I(\"h2\"),r=Jo(t[4]),R(n,\"class\",o=t[3].title)},m(t,e){P(t,n,e),L(n,r)},p(t,e){16&e&&Qo(r,t[4]),8&e&&o!==(o=t[3].title)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function ws(t){return{c:zt,m:zt,p:zt,d:zt}}function bs(t){let n;function r(t){return\"\"==t[23]?ws:\"title\"==t[23]?ys:\"prev\"==t[23]?$s:\"next\"===t[23]?vs:\"today\"===t[23]?ms:gs}let o=r(t),i=o(t);return{c(){i.c(),n=b()},m(t,e){i.m(t,e),P(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),(i=o(t))&&(i.c(),i.m(n.parentNode,n)))},d(t){i.d(t),t&&j(n)}}}function ks(e){let o,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=bs(ps(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n)},p(e,t){var[n]=t;if(229503&n){let t;for(i=e[0],t=0;t<i.length;t+=1){var r=ps(e,i,t);s[t]?s[t].p(r,n):(s[t]=bs(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},i:zt,o:zt,d(t){E(s,t),t&&j(o)}}}function _s(t,e,n){let r,o,i,s,l,a,c,u,d=e[\"buttons\"],{_currentRange:f,_viewTitle:h,buttonText:p,date:g,duration:m,hiddenDays:v,theme:$,view:y}=Yt(\"state\");Ht(t,f,t=>n(18,s=t)),Ht(t,h,t=>n(4,a=t)),Ht(t,p,t=>n(5,c=t)),Ht(t,g,t=>n(2,o=t)),Ht(t,m,t=>n(21,r=t)),Ht(t,v,t=>n(22,i=t)),Ht(t,$,t=>n(3,l=t)),Ht(t,y,t=>n(6,u=t));let w,b=Pi(Ei());return t.$$set=t=>{\"buttons\"in t&&n(0,d=t.buttons)},t.$$.update=()=>{262144&t.$$.dirty&&n(1,w=b>=s.start&&b<s.end||null)},[d,w,o,l,a,c,u,f,h,p,g,m,v,$,y,b,function(){var t=Vt(o,r,-1);if(i.length&&i.length<7)for(;i.includes(t.getUTCDay());)Li(t);Nt(g,o=t,o)},function(){Nt(g,o=Vt(o,r),o)},s,()=>Nt(g,o=Wt(b),o),t=>Nt(y,u=t,u)]}class Ts extends i{constructor(t){super(),o(this,t,_s,ks,l,{buttons:0})}}function xs(t,e,n){t=t.slice();return t[5]=e[n],t}function Cs(t,e,n){t=t.slice();return t[8]=e[n],t}function Ds(t){let r,n;return r=new Ts({props:{buttons:t[8]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.buttons=t[8]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Ss(t){let r,o,i,s;return o=new Ts({props:{buttons:t[8]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[1].buttonGroup)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};1&e&&(n.buttons=t[8]),o.$set(n),(!s||2&e&&i!==(i=t[1].buttonGroup))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function Es(t){let r,o,i,n;const s=[Ss,Ds],l=[];function a(t){return 1<t[8].length?0:1}return r=a(t),o=l[r]=s[r](t),{c(){o.c(),i=b()},m(t,e){l[r].m(t,e),P(t,i,e),n=!0},p(t,e){let n=r;(r=a(t))===n?l[r].p(t,e):(U(),G(l[n],1,1,()=>{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function Ms(e){let o,i,n,s=e[0][e[5]],l=[];for(let t=0;t<s.length;t+=1)l[t]=Es(Cs(e,s,t));return{c(){o=I(\"div\");for(let t=0;t<l.length;t+=1)l[t].c();i=F()},m(t,e){P(t,o,e);for(let t=0;t<l.length;t+=1)l[t].m(o,null);L(o,i),n=!0},p(e,n){if(3&n){let t;for(s=e[0][e[5]],t=0;t<s.length;t+=1){const r=Cs(e,s,t);l[t]?(l[t].p(r,n),B(l[t],1)):(l[t]=Es(r),l[t].c(),B(l[t],1),l[t].m(o,i))}for(U(),t=s.length;t<l.length;t+=1)(t=>G(l[t],1,1,()=>{l[t]=null}))(t);z()}},i(t){if(!n){for(let t=0;t<s.length;t+=1)B(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)G(l[t]);n=!1},d(t){t&&j(o),E(l,t)}}}function Os(e){let r,o,i,s=Object.keys(e[0]),l=[];for(let t=0;t<s.length;t+=1)l[t]=Ms(xs(e,s,t));return{c(){r=I(\"div\");for(let t=0;t<l.length;t+=1)l[t].c();R(r,\"class\",o=e[1].toolbar)},m(t,e){P(t,r,e);for(let t=0;t<l.length;t+=1)l[t].m(r,null);i=!0},p(e,t){var[n]=t;if(3&n){let t;for(s=Object.keys(e[0]),t=0;t<s.length;t+=1){const i=xs(e,s,t);l[t]?(l[t].p(i,n),B(l[t],1)):(l[t]=Ms(i),l[t].c(),B(l[t],1),l[t].m(r,null))}for(U(),t=s.length;t<l.length;t+=1)(t=>G(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||2&n&&o!==(o=e[1].toolbar))&&R(r,\"class\",o)},i(t){if(!i){for(let t=0;t<s.length;t+=1)B(l[t]);i=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)G(l[t]);i=!1},d(t){t&&j(r),E(l,t)}}}function Ls(e,t,n){let r,o,{headerToolbar:i,theme:s}=Yt(\"state\"),l=(Ht(e,i,t=>n(4,r=t)),Ht(e,s,t=>n(1,o=t)),{start:[],center:[],end:[]});return e.$$.update=()=>{if(17&e.$$.dirty)for(var t of Object.keys(l))n(0,l[t]=r[t].split(\" \").map(t=>t.split(\",\")),l)},[l,o,i,s,r]}class Ps extends i{constructor(t){super(),o(this,t,Ls,Os,l,{})}}function js(t,e,n){t=t.slice();return t[11]=e[n],t}function Is(t){let n,r,o;var i=t[11];return i&&(n=ti(i,{})),{c(){n&&p(n.$$.fragment),r=b()},m(t,e){n&&g(n,t,e),P(t,r,e),o=!0},p(t,e){if(i!==(i=t[11])){if(n){U();const t=n;G(t.$$.fragment,1,0,()=>{O(t,1)}),z()}i?(p((n=ti(i,{})).$$.fragment),B(n.$$.fragment,1),g(n,r.parentNode,r)):n=null}},i(t){o||(n&&B(n.$$.fragment,t),o=!0)},o(t){n&&G(n.$$.fragment,t),o=!1},d(t){t&&j(r),n&&O(n,t)}}}function Fs(e){let o,r,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=Is(js(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,t){var[n]=t;if(1&n){let t;for(i=e[0],t=0;t<i.length;t+=1){const r=js(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=Is(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function Rs(e,t,n){let r,o,i,s,{datesSet:l,_auxiliary:a,_activeRange:c,_queue:u,_view:d}=Yt(\"state\"),f=(Ht(e,l,t=>n(7,o=t)),Ht(e,a,t=>n(0,s=t)),Ht(e,c,t=>n(5,i=t)),Ht(e,d,t=>n(6,r=t)),{});return e.$$.update=()=>{var t;32&e.$$.dirty&&(t=i,Gt(o))&&zi(()=>o({start:N(t.start),end:N(t.end),startStr:ji(t.start),endStr:ji(t.end),view:Xt(r)}),f,u)},[s,l,a,c,d,i]}class Us extends i{constructor(t){super(),o(this,t,Rs,Fs,l,{})}}function zs(n){let r,o,i,s,l,a,c,u,d,f;o=new Ps({});var h=n[4];return h&&(s=ti(h,{})),c=new Us({}),{c(){r=I(\"div\"),p(o.$$.fragment),i=F(),s&&p(s.$$.fragment),a=F(),p(c.$$.fragment),R(r,\"class\",l=n[0].calendar+(n[1]?\" \"+n[0][n[1]]:\"\")+(n[2]?\" \"+n[0][n[2]]:\"\")),Zo(r,\"height\",n[3])},m(t,e){P(t,r,e),g(o,r,null),L(r,i),s&&g(s,r,null),P(t,a,e),g(c,t,e),u=!0,d||(f=At(window,\"click\",n[16],!0),d=!0)},p(t,e){if(h!==(h=t[4])){if(s){U();const t=s;G(t.$$.fragment,1,0,()=>{O(t,1)}),z()}h?(p((s=ti(h,{})).$$.fragment),B(s.$$.fragment,1),g(s,r,null)):s=null}(!u||7&e[0]&&l!==(l=t[0].calendar+(t[1]?\" \"+t[0][t[1]]:\"\")+(t[2]?\" \"+t[0][t[2]]:\"\")))&&R(r,\"class\",l),(!u||8&e[0])&&Zo(r,\"height\",t[3])},i(t){u||(B(o.$$.fragment,t),s&&B(s.$$.fragment,t),B(c.$$.fragment,t),u=!0)},o(t){G(o.$$.fragment,t),s&&G(s.$$.fragment,t),G(c.$$.fragment,t),u=!1},d(t){t&&j(r),O(o),s&&O(s),t&&j(a),O(c,t),d=!1,f()}}}function Bs(n,t,e){let r,o,i,s,l,a,c,u,d,f,h,{plugins:p=[]}=t,{options:g={}}=t,m=ri(),v=new fs(p,g),{_viewComponent:$,_viewClass:y,_ignoreClick:w,_interaction:b,_iClass:k,_events:_,_queue:T,events:x,eventSources:C,height:D,theme:S}=(si(\"state\",v),v);function E(t,e){return v.hasOwnProperty(t)&&(v[t].parse&&(e=v[t].parse(e)),v[t].set(e)),this}function M(t){l.length?Nt(_,s=t(s),s):Nt(x,i=t(i),i)}return Ht(n,$,t=>e(4,h=t)),Ht(n,y,t=>e(1,u=t)),Ht(n,w,t=>e(32,o=t)),Ht(n,b,t=>e(36,a=t)),Ht(n,k,t=>e(2,d=t)),Ht(n,_,t=>e(34,s=t)),Ht(n,T,t=>e(31,r=t)),Ht(n,x,t=>e(33,i=t)),Ht(n,C,t=>e(35,l=t)),Ht(n,D,t=>e(3,f=t)),Ht(n,S,t=>e(0,c=t)),t=()=>{var t;Bt(t=r),t.clear()},ri().$$.before_update.push(t),n.$$set=t=>{\"plugins\"in t&&e(17,p=t.plugins),\"options\"in t&&e(18,g=t.options)},n.$$.update=()=>{if(262144&n.$$.dirty[0])for(var[t,e]of function(t){var e=[];if(ss)for(var n of Object.keys(t))t[n]!==ss[n]&&e.push([n,t[n]]);return ss=Ci({},t),e}(g))E(t,e)},[c,u,d,f,h,$,y,w,b,k,_,T,x,C,D,S,function(t){o&&(as(t),Nt(w,o=!1,o))},p,g,E,function(t){t=v.hasOwnProperty(t)?No(v[t]):void 0;return t instanceof Date?N(t):t},function(){return v._fetchedRange.set({start:void 0,end:void 0}),this},function(){return s.map(ns)},function(t){for(var e of s)if(e.id==t)return ns(e);return null},function(e){return M(t=>t.concat(v.events.parse([e]))),this},function(n){return M(t=>{for(var e of t)if(e.id==n.id){Ci(e,v.events.parse([n])[0]);break}return t}),this},function(e){return M(t=>t.filter(t=>t.id!=e)),this},function(){return Xt(v._view.get())},function(){return a.action&&a.action.unselect(),this},function(e,n){for(let t of document.elementsFromPoint(e,n)){var r;if(t[Yi])return(r=function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t[Yi](...n)}(t,n))?N(r):null}return null},function(){O(m,!0)}]}class Gs extends i{constructor(t){super(),o(this,t,Bs,zs,l,{plugins:17,options:18,setOption:19,getOption:20,refetchEvents:21,getEvents:22,getEventById:23,addEvent:24,updateEvent:25,removeEventById:26,getView:27,unselect:28,dateFromPoint:29,destroy:30},null,[-1,-1])}get setOption(){return this.$$.ctx[19]}get getOption(){return this.$$.ctx[20]}get refetchEvents(){return this.$$.ctx[21]}get getEvents(){return this.$$.ctx[22]}get getEventById(){return this.$$.ctx[23]}get addEvent(){return this.$$.ctx[24]}get updateEvent(){return this.$$.ctx[25]}get removeEventById(){return this.$$.ctx[26]}get getView(){return this.$$.ctx[27]}get unselect(){return this.$$.ctx[28]}get dateFromPoint(){return this.$$.ctx[29]}get destroy(){return this.$$.ctx[30]}}class Hs{constructor(t){this._days=xi([t.date,t.firstDay,t.hiddenDays],t=>{let[e,n,r]=t,o=[],i=Wt(e),s=7;for(;i.getUTCDay()!==n&&s;)Li(i),--s;for(let t=0;t<7;++t)r.includes(i.getUTCDay())||o.push(Wt(i)),Oi(i);return o}),this._hiddenEvents=m({}),this._popupDate=m(null),this._popupChunks=m([])}}function Ns(t,e,n){t=t.slice();return t[8]=e[n],t}function As(t){let n,r,o,i=t[3].format(t[8])+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[0].day)},m(t,e){P(t,n,e),L(n,r)},p(t,e){12&e&&i!==(i=t[3].format(t[8])+\"\")&&Qo(r,i),1&e&&o!==(o=t[0].day)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function Ys(e){let r,o,i,n,s,l,a,c=e[2],u=[];for(let t=0;t<c.length;t+=1)u[t]=As(Ns(e,c,t));return{c(){r=I(\"div\"),o=I(\"div\");for(let t=0;t<u.length;t+=1)u[t].c();n=F(),s=I(\"div\"),R(o,\"class\",i=e[0].days),R(s,\"class\",l=e[0].hiddenScroll),R(r,\"class\",a=e[0].header+(e[1]?\" \"+e[0].withScroll:\"\"))},m(t,e){P(t,r,e),L(r,o);for(let t=0;t<u.length;t+=1)u[t].m(o,null);L(r,n),L(r,s)},p(e,t){var[n]=t;if(13&n){let t;for(c=e[2],t=0;t<c.length;t+=1){const i=Ns(e,c,t);u[t]?u[t].p(i,n):(u[t]=As(i),u[t].c(),u[t].m(o,null))}for(;t<u.length;t+=1)u[t].d(1);u.length=c.length}1&n&&i!==(i=e[0].days)&&R(o,\"class\",i),1&n&&l!==(l=e[0].hiddenScroll)&&R(s,\"class\",l),3&n&&a!==(a=e[0].header+(e[1]?\" \"+e[0].withScroll:\"\"))&&R(r,\"class\",a)},i:zt,o:zt,d(t){t&&j(r),E(u,t)}}}function Ws(t,e,n){let r,o,i,s,{theme:l,_intlDayHeader:a,_scrollable:c}=Yt(\"state\");Ht(t,l,t=>n(0,r=t)),Ht(t,a,t=>n(3,s=t)),Ht(t,c,t=>n(1,o=t));var u=Yt(\"view-state\")[\"_days\"];return Ht(t,u,t=>n(2,i=t)),[r,o,i,s,l,a,c,u]}class Vs extends i{constructor(t){super(),o(this,t,Ws,Ys,l,{})}}function Xs(n){let r,o,i,s,l,a,c;const u=n[12].default,d=Ao(u,n,n[11],null);return{c(){r=I(\"div\"),o=I(\"div\"),d&&d.c(),R(o,\"class\",i=n[1].content),R(r,\"class\",s=n[1].body+(!0===n[2]?\" \"+n[1].uniform:\"\"))},m(t,e){P(t,r,e),L(r,o),d&&d.m(o,null),n[13](r),l=!0,a||(c=[At(window,\"resize\",n[9]),At(r,\"scroll\",function(){Gt(n[3])&&n[3].apply(this,arguments)})],a=!0)},p(t,e){var[e]=e;n=t,d&&d.p&&(!l||2048&e)&&Vo(d,u,n,n[11],l?Wo(u,n[11],e,null):Xo(n[11]),null),(!l||2&e&&i!==(i=n[1].content))&&R(o,\"class\",i),(!l||6&e&&s!==(s=n[1].body+(!0===n[2]?\" \"+n[1].uniform:\"\")))&&R(r,\"class\",s)},i(t){l||(B(d,t),l=!0)},o(t){G(d,t),l=!1},d(t){t&&j(r),d&&d.d(t),n[13](null),a=!1,Bt(c)}}}function qs(t,e,n){let r,o,i,s,l,a,{$$slots:c={},$$scope:u}=e,{dayMaxEvents:d,_events:f,_scrollable:h,_scroll:p,theme:g}=Yt(\"state\");function m(){Nt(h,r=Gi(a),r)}return Ht(t,d,t=>n(2,s=t)),Ht(t,f,t=>n(10,o=t)),Ht(t,h,t=>n(14,r=t)),Ht(t,p,t=>n(3,l=t)),Ht(t,g,t=>n(1,i=t)),t.$$set=t=>{\"$$scope\"in t&&n(11,u=t.$$scope)},t.$$.update=()=>{1025&t.$$.dirty&&a&&o&&setTimeout(m)},[a,i,s,l,d,f,h,p,g,m,o,u,c,function(t){K[t?\"unshift\":\"push\"](()=>{a=t,n(0,a)})}]}class Js extends i{constructor(t){super(),o(this,t,qs,Xs,l,{})}}function Ks(n){let r,o,i,s,l,a,c,u,d;var f=n[7].resizer;function h(t){return{props:{event:t[0]}}}return f&&(a=ti(f,h(n))).$on(\"pointerdown\",n[30](!0)),{c(){r=I(\"div\"),o=I(\"div\"),l=F(),a&&p(a.$$.fragment),R(o,\"class\",i=n[1].eventBody),R(r,\"class\",n[3]),R(r,\"style\",n[4])},m(t,e){P(t,r,e),L(r,o),L(r,l),a&&g(a,r,null),n[45](r),c=!0,u||(d=[qo(s=Si.call(null,o,n[5])),At(r,\"click\",function(){Gt(cs(n[29](n[8],n[6])))&&cs(n[29](n[8],n[6])).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[29](n[9],n[6]))&&n[29](n[9],n[6]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[29](n[10],n[6]))&&n[29](n[10],n[6]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(\"auto\"===n[6]&&n[11](n[0])?n[30]():void 0)&&(\"auto\"===n[6]&&n[11](n[0])?n[30]():void 0).apply(this,arguments)})],u=!0)},p(t,e){n=t,(!c||2&e[0]&&i!==(i=n[1].eventBody))&&R(o,\"class\",i),s&&Gt(s.update)&&32&e[0]&&s.update.call(null,n[5]);t={};if(1&e[0]&&(t.event=n[0]),f!==(f=n[7].resizer)){if(a){U();const n=a;G(n.$$.fragment,1,0,()=>{O(n,1)}),z()}f?((a=ti(f,h(n))).$on(\"pointerdown\",n[30](!0)),p(a.$$.fragment),B(a.$$.fragment,1),g(a,r,null)):a=null}else f&&a.$set(t);(!c||8&e[0])&&R(r,\"class\",n[3]),(!c||16&e[0])&&R(r,\"style\",n[4])},i(t){c||(a&&B(a.$$.fragment,t),c=!0)},o(t){a&&G(a.$$.fragment,t),c=!1},d(t){t&&j(r),a&&O(a),n[45](null),u=!1,Bt(d)}}}function Qs(e,t,i){let s,l,n,r,o,a,c,u,d,f,h,p,g,m,v,$,y,w=t[\"chunk\"],{longChunks:b={}}=t,{inPopup:k=!1}=t,{dayMaxEvents:_,displayEventEnd:T,eventBackgroundColor:x,eventClick:C,eventColor:D,eventContent:F,eventDidMount:R,eventMouseEnter:U,eventMouseLeave:z,theme:B,_view:G,_intlEventTime:H,_interaction:N,_classes:A,_draggable:Y,_resBgColor:W}=Yt(\"state\");Ht(e,_,t=>i(48,l=t)),Ht(e,T,t=>i(40,d=t)),Ht(e,x,t=>i(43,p=t)),Ht(e,C,t=>i(8,m=t)),Ht(e,D,t=>i(42,h=t)),Ht(e,F,t=>i(39,u=t)),Ht(e,R,t=>i(49,o=t)),Ht(e,U,t=>i(9,v=t)),Ht(e,z,t=>i(10,$=t)),Ht(e,B,t=>i(1,c=t)),Ht(e,G,t=>i(37,r=t)),Ht(e,H,t=>i(38,a=t)),Ht(e,N,t=>i(7,n=t)),Ht(e,A,t=>i(41,f=t)),Ht(e,Y,t=>i(11,y=t)),Ht(e,W,t=>i(44,g=t));let S,E,V,M,O,X,L=Yt(\"view-state\")[\"_hiddenEvents\"];Ht(e,L,t=>i(47,s=t));let P,j=1,I=!1;return oi(()=>{Gt(o)&&o({event:ns(E),timeText:X,el:S,view:Xt(r)})}),e.$$set=t=>{\"chunk\"in t&&i(31,w=t.chunk),\"longChunks\"in t&&i(32,b=t.longChunks),\"inPopup\"in t&&i(33,k=t.inPopup)},e.$$.update=()=>{var t;1&e.$$.dirty[1]&&i(0,E=w.event),19&e.$$.dirty[0]|15409&e.$$.dirty[1]&&(i(6,P=E.display),t=E.backgroundColor||g(E)||p||h,i(4,M=`width:calc(${100*w.days}% + ${7*(w.days-1)}px);margin-top:${j}px;`),t&&i(4,M+=`background-color:${t};`),I&&i(4,M+=\"visibility:hidden;\"),i(3,V=f(c.event,E))),2&e.$$.dirty[0]|961&e.$$.dirty[1]&&i(5,[X,O]=es(w,d,u,c,a,r),O)},[E,c,S,V,M,O,P,n,m,v,$,y,_,T,x,C,D,F,R,U,z,B,G,H,N,A,Y,W,L,function(e,t){return\"preview\"!==t&&Gt(e)?t=>e({event:ns(E),el:S,jsEvent:t,view:Xt(r)}):void 0},function(e){return t=>n.action.dragDayGrid(E,S,t,k,e)},w,b,k,function(){if(S&&\"preview\"!==P&&!k)if(i(35,j=ts(w,b,Ai(S))),!0!==l)i(36,I=!1);else{var e,n=Ai(n=Ni(S,2))-Ai(n.firstElementChild)-function(e){let n=0;for(let t=0;t<w.days&&(n=Math.max(n,Ai(e.lastElementChild)),e=e.nextElementSibling);++t);return n}(n);i(36,I=w.bottom>n);let t=!1;for(e of w.dates){var r,o=s[e.getTime()];o&&(r=o.size,I?o.add(w.event):o.delete(w.event),r!==o.size)&&(t=!0)}t&&L.set(s)}},j,I,r,a,u,d,f,h,p,g,function(t){K[t?\"unshift\":\"push\"](()=>{S=t,i(2,S)})}]}class Zs extends i{constructor(t){super(),o(this,t,Qs,Ks,l,{chunk:31,longChunks:32,inPopup:33,reposition:34},null,[-1,-1])}get reposition(){return this.$$.ctx[34]}}function tl(t,e,n){t=t.slice();return t[18]=e[n],t}function el(t,n){let r,o,i;return o=new Zs({props:{chunk:n[18],inPopup:!0}}),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){n=t;t={};1&e&&(t.chunk=n[18]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),O(o,t)}}}function nl(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m=n[5].format(n[3])+\"\",v=[],$=new Map,y=n[0];const w=t=>t[18].event;for(let t=0;t<y.length;t+=1){var e=tl(n,y,t),b=w(e);$.set(b,v[t]=el(b,e))}return{c(){r=I(\"div\"),o=I(\"div\"),i=Jo(m),s=F(),(l=I(\"a\")).textContent=\"×\",c=F(),u=I(\"div\");for(let t=0;t<v.length;t+=1)v[t].c();R(o,\"class\",a=n[4].dayHead),R(u,\"class\",d=n[4].events),R(r,\"class\",f=n[4].popup),R(r,\"style\",n[2])},m(t,e){P(t,r,e),L(r,o),L(o,i),L(o,s),L(o,l),L(r,c),L(r,u);for(let t=0;t<v.length;t+=1)v[t].m(u,null);n[14](r),h=!0,p||(g=[At(l,\"click\",Ko(n[11])),qo(function(e,n){const t=t=>{e&&!e.contains(t.target)&&e.dispatchEvent(new CustomEvent(n+\"outside\",{detail:{jsEvent:t}}))};return document.addEventListener(n,t,!0),{destroy(){document.removeEventListener(n,t,!0)}}}.call(null,r,\"pointerdown\")),At(r,\"pointerdown\",Ko(n[13])),At(r,\"pointerdownoutside\",n[12])],p=!0)},p(t,e){var[e]=e;(!h||40&e)&&m!==(m=t[5].format(t[3])+\"\")&&Qo(i,m),(!h||16&e&&a!==(a=t[4].dayHead))&&R(o,\"class\",a),1&e&&(y=t[0],U(),v=ki(v,e,w,1,t,y,$,u,bi,el,null,tl),z()),(!h||16&e&&d!==(d=t[4].events))&&R(u,\"class\",d),(!h||16&e&&f!==(f=t[4].popup))&&R(r,\"class\",f),(!h||4&e)&&R(r,\"style\",t[2])},i(t){if(!h){for(let t=0;t<y.length;t+=1)B(v[t]);h=!0}},o(t){for(let t=0;t<v.length;t+=1)G(v[t]);h=!1},d(t){t&&j(r);for(let t=0;t<v.length;t+=1)v[t].d();n[14](null),p=!1,Bt(g)}}}function rl(e,t,l){let n,r,o,i,s,{theme:a,_ignoreClick:c,_intlDayPopover:u}=Yt(\"state\");Ht(e,a,t=>l(4,i=t)),Ht(e,c,t=>l(15,n=t)),Ht(e,u,t=>l(5,s=t));let d,{_popupDate:f,_popupChunks:h}=Yt(\"view-state\"),p=(Ht(e,f,t=>l(3,r=t)),Ht(e,h,t=>l(0,o=t)),\"\");function g(t){Nt(f,r=null,r)}return e.$$.update=()=>{1&e.$$.dirty&&o&&d&&(l(2,p=\"\"),pi().then(()=>{(o.length?function(){let t,e=Ni(d,1),n=Ni(e,3),r=Hi(d),o=Hi(e),i=Hi(n);var s;e.previousElementSibling?e.nextElementSibling?(s=(e.offsetWidth-r.width)/2,l(2,p=`left:${s}px;`)):l(2,p=\"right:0;\"):l(2,p=\"left:0;\"),r.height>=i.height?(t=i.top-o.top,s=o.bottom-i.bottom,l(2,p+=`bottom:${s}px;`)):(t=(o.height-r.height)/2,o.top+t<i.top?t=i.top-o.top:o.top+t+r.height>i.bottom&&(t=i.bottom-o.top-r.height)),l(2,p+=`top:${t}px;`)}:g)()}))},[o,d,p,r,i,s,a,c,u,f,h,g,function(t){g(),Nt(c,n=!0,n)},function(t){li.call(this,e,t)},function(t){K[t?\"unshift\":\"push\"](()=>{d=t,l(1,d)})}]}class ol extends i{constructor(t){super(),o(this,t,rl,nl,l,{})}}function il(t,e,n){t=t.slice();return t[48]=e[n],t[49]=e,t[50]=n,t}function sl(t){let r,o,i,s;return o=new Zs({props:{chunk:t[2][1]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[12].events)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};4&e[0]&&(n.chunk=t[2][1]),o.$set(n),(!s||4096&e[0]&&i!==(i=t[12].events))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function ll(t){let r,o,i,s;return o=new Zs({props:{chunk:t[2][0]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[12].events+\" \"+t[12].preview)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};4&e[0]&&(n.chunk=t[2][0]),o.$set(n),(!s||4096&e[0]&&i!==(i=t[12].events+\" \"+t[12].preview))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function al(t,n){let r,o,i,s=n[50];const l=()=>n[39](o,s),a=()=>n[39](null,s);var e={chunk:n[48],longChunks:n[1]};return o=new Zs({props:e}),l(),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){s!==(n=t)[50]&&(a(),s=n[50],l());t={};16&e[0]&&(t.chunk=n[48]),2&e[0]&&(t.longChunks=n[1]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),a(),O(o,t)}}}function cl(){let n,r;return n=new ol({}),{c(){p(n.$$.fragment)},m(t,e){g(n,t,e),r=!0},i(t){r||(B(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){O(n,t)}}}function ul(n){let r,o,i,s;return{c(){r=I(\"a\")},m(t,e){P(t,r,e),i||(s=[At(r,\"click\",Ko(n[29])),At(r,\"pointerdown\",Ko(n[38])),qo(o=Si.call(null,r,n[6]))],i=!0)},p(t,e){o&&Gt(o.update)&&64&e[0]&&o.update.call(null,t[6])},d(t){t&&j(r),i=!1,Bt(s)}}}function dl(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$,y,w=n[0].getUTCDate()+\"\",b=n[2][1]&&A(n[2][1].date,n[0]),k=n[2][0]&&A(n[2][0].date,n[0]),_=[],T=new Map,x=b&&sl(n),C=k&&ll(n),D=n[4];const S=t=>t[48].event;for(let t=0;t<D.length;t+=1){var e=il(n,D,t),E=S(e);T.set(E,_[t]=al(E,e))}let M=n[7]&&cl(),O=n[5].size&&ul(n);return{c(){r=I(\"div\"),o=I(\"div\"),i=Jo(w),l=F(),x&&x.c(),a=F(),C&&C.c(),c=F(),u=I(\"div\");for(let t=0;t<_.length;t+=1)_[t].c();f=F(),M&&M.c(),h=F(),p=I(\"div\"),O&&O.c(),R(o,\"class\",s=n[12].dayHead),R(u,\"class\",d=n[12].events),R(p,\"class\",g=n[12].dayFoot),R(r,\"class\",m=n[12].day+(n[8]?\" \"+n[12].today:\"\")+(n[9]?\" \"+n[12].otherMonth:\"\")+(n[10]?\" \"+n[12].highlight:\"\"))},m(t,e){P(t,r,e),L(r,o),L(o,i),L(r,l),x&&x.m(r,null),L(r,a),C&&C.m(r,null),L(r,c),L(r,u);for(let t=0;t<_.length;t+=1)_[t].m(u,null);L(r,f),M&&M.m(r,null),L(r,h),L(r,p),O&&O.m(p,null),n[40](r),v=!0,$||(y=[At(window,\"resize\",n[31]),At(r,\"click\",function(){Gt(cs(n[27](n[13])))&&cs(n[27](n[13])).apply(this,arguments)}),At(r,\"pointerenter\",function(){Gt(n[28](n[14]))&&n[28](n[14]).apply(this,arguments)}),At(r,\"pointerleave\",function(){Gt(fl(n[14]))&&fl(n[14]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(n[30](n[14],n[15]))&&n[30](n[14],n[15]).apply(this,arguments)})],$=!0)},p(t,e){n=t,(!v||1&e[0])&&w!==(w=n[0].getUTCDate()+\"\")&&Qo(i,w),(!v||4096&e[0]&&s!==(s=n[12].dayHead))&&R(o,\"class\",s),(b=5&e[0]?n[2][1]&&A(n[2][1].date,n[0]):b)?x?(x.p(n,e),5&e[0]&&B(x,1)):((x=sl(n)).c(),B(x,1),x.m(r,a)):x&&(U(),G(x,1,1,()=>{x=null}),z()),(k=5&e[0]?n[2][0]&&A(n[2][0].date,n[0]):k)?C?(C.p(n,e),5&e[0]&&B(C,1)):((C=ll(n)).c(),B(C,1),C.m(r,c)):C&&(U(),G(C,1,1,()=>{C=null}),z()),2066&e[0]&&(D=n[4],U(),_=ki(_,e,S,1,n,D,T,u,bi,al,null,il),z()),(!v||4096&e[0]&&d!==(d=n[12].events))&&R(u,\"class\",d),n[7]?M?128&e[0]&&B(M,1):((M=cl()).c(),B(M,1),M.m(r,h)):M&&(U(),G(M,1,1,()=>{M=null}),z()),n[5].size?O?O.p(n,e):((O=ul(n)).c(),O.m(p,null)):O&&(O.d(1),O=null),(!v||4096&e[0]&&g!==(g=n[12].dayFoot))&&R(p,\"class\",g),(!v||5888&e[0]&&m!==(m=n[12].day+(n[8]?\" \"+n[12].today:\"\")+(n[9]?\" \"+n[12].otherMonth:\"\")+(n[10]?\" \"+n[12].highlight:\"\")))&&R(r,\"class\",m)},i(t){if(!v){B(x),B(C);for(let t=0;t<D.length;t+=1)B(_[t]);B(M),v=!0}},o(t){G(x),G(C);for(let t=0;t<_.length;t+=1)G(_[t]);G(M),v=!1},d(t){t&&j(r),x&&x.d(),C&&C.d();for(let t=0;t<_.length;t+=1)_[t].d();M&&M.d(),O&&O.d(),n[40](null),$=!1,Bt(y)}}}function fl(t){return t.pointer?t.pointer.leave:void 0}function hl(n,t,r){let o,i,s,l,a,c,u,e,d,f,h,p=t[\"date\"],g=t[\"chunks\"],m=t[\"longChunks\"],{iChunks:v=[]}=t,{date:$,dateClick:y,highlightedDates:w,moreLinkContent:b,theme:k,_view:_,_interaction:T,selectable:x,_queue:F}=Yt(\"state\");Ht(n,$,t=>r(37,u=t)),Ht(n,y,t=>r(13,d=t)),Ht(n,w,t=>r(36,c=t)),Ht(n,b,t=>r(35,a=t)),Ht(n,k,t=>r(12,e=t)),Ht(n,_,t=>r(42,l=t)),Ht(n,T,t=>r(14,f=t)),Ht(n,x,t=>r(15,h=t));let C,D,{_hiddenEvents:S,_popupDate:E,_popupChunks:M}=Yt(\"view-state\");Ht(n,S,t=>r(33,o=t)),Ht(n,E,t=>r(34,s=t)),Ht(n,M,t=>r(41,i=t));let R,U,z,O,B=Pi(Ei()),L=new Set,P=\"\",j=[];function G(){let e=Oi(Wt(p)),t=D.concat(m[p.getTime()]?.chunks||[]);Nt(M,i=t.map(t=>Ci({},t,Ki(t.event,p,e),{days:1,dates:[p]})).sort((t,e)=>t.top-e.top),i)}function I(){r(11,j.length=D.length,j);for(var t of j)t&&t.reposition&&t.reposition()}ii(I);let H={};return n.$$set=t=>{\"date\"in t&&r(0,p=t.date),\"chunks\"in t&&r(32,g=t.chunks),\"longChunks\"in t&&r(1,m=t.longChunks),\"iChunks\"in t&&r(2,v=t.iChunks)},n.$$.update=()=>{if(49&n.$$.dirty[0]|2&n.$$.dirty[1]){r(4,D=[]),L.clear(),r(5,L),r(32,g),r(0,p),r(4,D);for(var t of g)A(t.date,p)&&D.push(t)}var e;33&n.$$.dirty[0]&&Nt(S,o[p.getTime()]=L,o),1&n.$$.dirty[0]|96&n.$$.dirty[1]&&(r(8,R=A(p,B)),r(9,U=p.getUTCMonth()!==u.getUTCMonth()),r(10,z=c.some(t=>A(t,p)))),96&n.$$.dirty[0]|20&n.$$.dirty[1]&&o&&L.size&&(e=\"+\"+L.size+\" more\",a?(r(6,P=Gt(a)?a({num:L.size,text:e}):a),\"string\"==typeof P&&r(6,P={html:P})):r(6,P={html:e})),1&n.$$.dirty[0]|8&n.$$.dirty[1]&&r(7,O=s&&A(p,s)),146&n.$$.dirty[0]&&O&&m&&D&&pi().then(G),9&n.$$.dirty[0]&&C&&Wi(C,()=>p),4&n.$$.dirty[1]&&o&&zi(I,H,F)},[p,m,v,C,D,L,P,O,R,U,z,j,e,d,f,h,$,y,w,b,k,_,T,x,S,E,M,function(e){return Gt(e)?t=>e({allDay:!0,date:N(p),dateStr:ji(p),dayEl:C,jsEvent:t,view:Xt(l)}):void 0},function(e){return e.pointer?t=>e.pointer.enterDayGrid(p,t):void 0},function(){Nt(E,s=p,s)},function(e,t){return t&&e.action?t=>e.action.selectDayGrid(p,C,t):void 0},I,g,o,s,a,c,u,function(t){li.call(this,n,t)},function(t,e){K[t?\"unshift\":\"push\"](()=>{j[e]=t,r(11,j)})},function(t){K[t?\"unshift\":\"push\"](()=>{C=t,r(3,C)})}]}class pl extends i{constructor(t){super(),o(this,t,hl,dl,l,{date:0,chunks:32,longChunks:1,iChunks:2},null,[-1,-1])}}function gl(t,e,n){t=t.slice();return t[14]=e[n],t}function ml(t){let r,n;return r=new pl({props:{date:t[14],chunks:t[1],longChunks:t[2],iChunks:t[3]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.date=t[14]),2&e&&(n.chunks=t[1]),4&e&&(n.longChunks=t[2]),8&e&&(n.iChunks=t[3]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function vl(e){let r,o,i,s=e[0],l=[];for(let t=0;t<s.length;t+=1)l[t]=ml(gl(e,s,t));return{c(){r=I(\"div\");for(let t=0;t<l.length;t+=1)l[t].c();R(r,\"class\",o=e[4].days)},m(t,e){P(t,r,e);for(let t=0;t<l.length;t+=1)l[t].m(r,null);i=!0},p(e,t){var[n]=t;if(15&n){let t;for(s=e[0],t=0;t<s.length;t+=1){const i=gl(e,s,t);l[t]?(l[t].p(i,n),B(l[t],1)):(l[t]=ml(i),l[t].c(),B(l[t],1),l[t].m(r,null))}for(U(),t=s.length;t<l.length;t+=1)(t=>G(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||16&n&&o!==(o=e[4].days))&&R(r,\"class\",o)},i(t){if(!i){for(let t=0;t<s.length;t+=1)B(l[t]);i=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)G(l[t]);i=!1},d(t){t&&j(r),E(l,t)}}}function $l(e,t,n){let r,o,i,s,l=t[\"dates\"],{_events:a,_iEvents:c,hiddenDays:u,theme:d}=Yt(\"state\");Ht(e,a,t=>n(13,i=t)),Ht(e,c,t=>n(12,o=t)),Ht(e,u,t=>n(11,r=t)),Ht(e,d,t=>n(4,s=t));let f,h,p,g,m=[];return e.$$set=t=>{\"dates\"in t&&n(0,l=t.dates)},e.$$.update=()=>{if(1&e.$$.dirty&&(n(9,p=l[0]),n(10,g=Oi(Wt(l[l.length-1])))),11778&e.$$.dirty){n(1,f=[]);for(var t of i)\"background\"!==t.display&&is(t,p,g)&&(t=Ki(t,p,g),f.push(t));n(2,h=Zi(f,r))}7680&e.$$.dirty&&n(3,m=o.map(t=>{let e;return t&&is(t,p,g)?Zi([e=Ki(t,p,g)],r):e=null,e}))},[l,f,h,m,s,a,c,u,d,p,g,r,o,i]}class yl extends i{constructor(t){super(),o(this,t,$l,vl,l,{dates:0})}}function wl(t,e,n){t=t.slice();return t[14]=e[n],t}function bl(t){let r,n;return r=new yl({props:{dates:t[14]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.dates=t[14]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function kl(e){let o,r,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=bl(wl(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,n){if(1&n){let t;for(i=e[0],t=0;t<i.length;t+=1){const r=wl(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=bl(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function _l(t){let n,r,o,i;return n=new Vs({}),o=new Js({props:{$$slots:{default:[kl]},$$scope:{ctx:t}}}),{c(){p(n.$$.fragment),r=F(),p(o.$$.fragment)},m(t,e){g(n,t,e),P(t,r,e),g(o,t,e),i=!0},p(t,e){var[e]=e,n={};131073&e&&(n.$$scope={dirty:e,ctx:t}),o.$set(n)},i(t){i||(B(n.$$.fragment,t),B(o.$$.fragment,t),i=!0)},o(t){G(n.$$.fragment,t),G(o.$$.fragment,t),i=!1},d(t){O(n,t),t&&j(r),O(o,t)}}}function Tl(t,e,r){let o,n,i,s,l,{_viewDates:a,_viewClass:c,dayMaxEvents:u,hiddenDays:d}=Yt(\"state\");Ht(t,a,t=>r(7,o=t)),Ht(t,c,t=>r(11,l=t)),Ht(t,u,t=>r(8,n=t)),Ht(t,d,t=>r(9,s=t));var f=new Hs(Yt(\"state\"));si(\"view-state\",f);let h,p,g=f[\"_hiddenEvents\"];return Ht(t,g,t=>r(10,i=t)),Nt(c,l=\"month\",l),t.$$.update=()=>{if(961&t.$$.dirty){r(0,h=[]),r(6,p=7-s.length),Nt(g,i={},i);for(let e=0;e<o.length/p;++e){var n=[];for(let t=0;t<p;++t)n.push(o[e*p+t]);h.push(n)}}},[h,a,c,u,d,g,p,o,n,s]}class xl extends i{constructor(t){super(),o(this,t,Tl,_l,l,{})}}var Cl={createOptions(t){t.dayMaxEvents=!1,t.dayPopoverFormat={month:\"long\",day:\"numeric\",year:\"numeric\"},t.moreLinkContent=void 0,t.buttonText.dayGridMonth=\"month\",t.theme.uniform=\"ec-uniform\",t.theme.dayFoot=\"ec-day-foot\",t.theme.month=\"ec-month\",t.theme.popup=\"ec-popup\",t.view=\"dayGridMonth\",t.views.dayGridMonth={component:xl,dayHeaderFormat:{weekday:\"short\"},displayEventEnd:!1,duration:{months:1},monthMode:!0,titleFormat:{year:\"numeric\",month:\"long\"}}},createStores(t){t._intlDayPopover=ds(t.locale,t.dayPopoverFormat)}};function Dl(t){let n,r,o,i,s;const l=t[3].default,a=Ao(l,t,t[2],null);return{c(){n=I(\"div\"),r=I(\"div\"),a&&a.c(),R(r,\"class\",o=t[0].content),R(n,\"class\",i=t[0].body)},m(t,e){P(t,n,e),L(n,r),a&&a.m(r,null),s=!0},p(t,e){var[e]=e;a&&a.p&&(!s||4&e)&&Vo(a,l,t,t[2],s?Wo(l,t[2],e,null):Xo(t[2]),null),(!s||1&e&&o!==(o=t[0].content))&&R(r,\"class\",o),(!s||1&e&&i!==(i=t[0].body))&&R(n,\"class\",i)},i(t){s||(B(a,t),s=!0)},o(t){G(a,t),s=!1},d(t){t&&j(n),a&&a.d(t)}}}function Sl(t,e,n){let r,{$$slots:o={},$$scope:i}=e,s=Yt(\"state\")[\"theme\"];return Ht(t,s,t=>n(0,r=t)),t.$$set=t=>{\"$$scope\"in t&&n(2,i=t.$$scope)},[r,s,i,o]}class El extends i{constructor(t){super(),o(this,t,Sl,Dl,l,{})}}function Ml(n){let r,o,i,s,l,a,c,u,d,f;return{c(){r=I(\"div\"),o=I(\"div\"),s=F(),l=I(\"div\"),R(o,\"class\",i=n[0].eventTag),R(o,\"style\",n[2]),R(l,\"class\",a=n[0].eventBody),R(r,\"class\",u=n[0].event)},m(t,e){P(t,r,e),L(r,o),L(r,s),L(r,l),n[29](r),d||(f=[qo(c=Si.call(null,l,n[3])),At(r,\"click\",function(){Gt(n[19](n[4]))&&n[19](n[4]).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[19](n[5]))&&n[19](n[5]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[19](n[6]))&&n[19](n[6]).apply(this,arguments)})],d=!0)},p(t,e){n=t,1&e[0]&&i!==(i=n[0].eventTag)&&R(o,\"class\",i),4&e[0]&&R(o,\"style\",n[2]),1&e[0]&&a!==(a=n[0].eventBody)&&R(l,\"class\",a),c&&Gt(c.update)&&8&e[0]&&c.update.call(null,n[3]),1&e[0]&&u!==(u=n[0].event)&&R(r,\"class\",u)},i:zt,o:zt,d(t){t&&j(r),n[29](null),d=!1,Bt(f)}}}function Ol(e,t,n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$,y,w=t[\"chunk\"],{displayEventEnd:b,eventBackgroundColor:k,eventColor:_,eventContent:T,eventClick:x,eventDidMount:C,eventMouseEnter:D,eventMouseLeave:S,theme:E,_view:M,_intlEventTime:O,_resBgColor:L}=Yt(\"state\");return Ht(e,b,t=>n(25,a=t)),Ht(e,k,t=>n(27,u=t)),Ht(e,_,t=>n(26,c=t)),Ht(e,T,t=>n(24,l=t)),Ht(e,x,t=>n(4,f=t)),Ht(e,C,t=>n(31,o=t)),Ht(e,D,t=>n(5,h=t)),Ht(e,S,t=>n(6,p=t)),Ht(e,E,t=>n(0,s=t)),Ht(e,M,t=>n(22,r=t)),Ht(e,O,t=>n(23,i=t)),Ht(e,L,t=>n(28,d=t)),oi(()=>{Gt(o)&&o({event:ns(m),timeText:y,el:g,view:Xt(r)})}),e.$$set=t=>{\"chunk\"in t&&n(20,w=t.chunk)},e.$$.update=()=>{var t;1048576&e.$$.dirty[0]&&n(21,m=w.event),471859200&e.$$.dirty[0]&&(t=m.backgroundColor||d(m)||u||c)&&n(2,v=`background-color:${t};`),63963137&e.$$.dirty[0]&&n(3,[y,$]=es(w,a,l,s,i,r),$)},[s,g,v,$,f,h,p,b,k,_,T,x,C,D,S,E,M,O,L,function(e){return t=>{Gt(e)&&e({event:ns(m),el:g,jsEvent:t,view:Xt(r)})}},w,m,r,i,l,a,c,u,d,function(t){K[t?\"unshift\":\"push\"](()=>{g=t,n(1,g)})}]}class Ll extends i{constructor(t){super(),o(this,t,Ol,Ml,l,{chunk:20},null,[-1,-1])}}function Pl(t,e,n){t=t.slice();return t[24]=e[n],t}function jl(r){let o,i,t,s,l,n,a,c,u,d,f,h,p=r[7].format(r[0])+\"\",g=r[8].format(r[0])+\"\",m=[],v=new Map,$=r[2];const y=t=>t[24].event;for(let t=0;t<$.length;t+=1){var e=Pl(r,$,t),w=y(e);v.set(w,m[t]=Il(w,e))}return{c(){o=I(\"div\"),i=Jo(p),t=F(),s=I(\"span\"),l=Jo(g),c=F();for(let t=0;t<m.length;t+=1)m[t].c();u=b(),R(s,\"class\",n=r[5].daySide),R(o,\"class\",a=r[5].day+(r[3]?\" \"+r[5].today:\"\")+(r[4]?\" \"+r[5].highlight:\"\"))},m(e,n){P(e,o,n),L(o,i),L(o,t),L(o,s),L(s,l),r[19](o),P(e,c,n);for(let t=0;t<m.length;t+=1)m[t].m(e,n);P(e,u,n),d=!0,f||(h=At(o,\"click\",function(){Gt(r[16](r[6]))&&r[16](r[6]).apply(this,arguments)}),f=!0)},p(t,e){r=t,(!d||129&e)&&p!==(p=r[7].format(r[0])+\"\")&&Qo(i,p),(!d||257&e)&&g!==(g=r[8].format(r[0])+\"\")&&Qo(l,g),(!d||32&e&&n!==(n=r[5].daySide))&&R(s,\"class\",n),(!d||56&e&&a!==(a=r[5].day+(r[3]?\" \"+r[5].today:\"\")+(r[4]?\" \"+r[5].highlight:\"\")))&&R(o,\"class\",a),4&e&&($=r[2],U(),m=ki(m,e,y,1,r,$,v,u.parentNode,bi,Il,u,Pl),z())},i(t){if(!d){for(let t=0;t<$.length;t+=1)B(m[t]);d=!0}},o(t){for(let t=0;t<m.length;t+=1)G(m[t]);d=!1},d(e){e&&j(o),r[19](null),e&&j(c);for(let t=0;t<m.length;t+=1)m[t].d(e);e&&j(u),f=!1,h()}}}function Il(t,n){let r,o,i;return o=new Ll({props:{chunk:n[24]}}),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){n=t;t={};4&e&&(t.chunk=n[24]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),O(o,t)}}}function Fl(t){let n,r,o=t[2].length&&jl(t);return{c(){o&&o.c(),n=b()},m(t,e){o&&o.m(t,e),P(t,n,e),r=!0},p(t,e){var[e]=e;t[2].length?o?(o.p(t,e),4&e&&B(o,1)):((o=jl(t)).c(),B(o,1),o.m(n.parentNode,n)):o&&(U(),G(o,1,1,()=>{o=null}),z())},i(t){r||(B(o),r=!0)},o(t){G(o),r=!1},d(t){o&&o.d(t),t&&j(n)}}}function Rl(o,t,i){let n,s,l,e,r,a,c,u=t[\"date\"],{_events:d,_view:f,dateClick:h,highlightedDates:p,theme:g}=Yt(\"state\");Ht(o,d,t=>i(18,l=t)),Ht(o,f,t=>i(20,n=t)),Ht(o,h,t=>i(6,r=t)),Ht(o,p,t=>i(17,s=t)),Ht(o,g,t=>i(5,e=t));let m,v,{_intlListDayFormat:$,_intlListDaySideFormat:y}=Yt(\"view-state\");Ht(o,$,t=>i(7,a=t)),Ht(o,y,t=>i(8,c=t));let w,b,k=Pi(Ei());return o.$$set=t=>{\"date\"in t&&i(0,u=t.date)},o.$$.update=()=>{if(262149&o.$$.dirty){i(2,v=[]);var t,e,n=u,r=Oi(Wt(u));for(t of l)\"auto\"===t.display&&is(t,n,r)&&(e=Ki(t,n,r),v.push(e));Qi(v)}131073&o.$$.dirty&&(i(3,w=A(u,k)),i(4,b=s.some(t=>A(t,u)))),3&o.$$.dirty&&m&&Wi(m,()=>u)},[u,m,v,w,b,e,r,a,c,d,f,h,p,g,$,y,function(e){return Gt(e)?t=>{e({allDay:!0,date:N(u),dateStr:ji(u),dayEl:m,jsEvent:t,view:Xt(n)})}:void 0},s,l,function(t){K[t?\"unshift\":\"push\"](()=>{m=t,i(1,m)})}]}class Ul extends i{constructor(t){super(),o(this,t,Rl,Fl,l,{date:0})}}class zl{constructor(t){this._intlListDayFormat=ds(t.locale,t.listDayFormat),this._intlListDaySideFormat=ds(t.locale,t.listDaySideFormat)}}function Bl(t,e,n){t=t.slice();return t[18]=e[n],t}function Gl(e){let o,r,i=e[1],s=[];for(let t=0;t<i.length;t+=1)s[t]=Nl(Bl(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,n){if(2&n){let t;for(i=e[1],t=0;t<i.length;t+=1){const r=Bl(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=Nl(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function Hl(n){let r,o,i,s,l;return{c(){R(r=I(\"div\"),\"class\",o=n[3].noEvents)},m(t,e){P(t,r,e),s||(l=[qo(i=Si.call(null,r,n[0])),At(r,\"click\",n[11])],s=!0)},p(t,e){8&e&&o!==(o=t[3].noEvents)&&R(r,\"class\",o),i&&Gt(i.update)&&1&e&&i.update.call(null,t[0])},i:zt,o:zt,d(t){t&&j(r),s=!1,Bt(l)}}}function Nl(t){let r,n;return r=new Ul({props:{date:t[18]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};2&e&&(n.date=t[18]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Al(t){let r,o,i,n;const s=[Hl,Gl],l=[];function a(t){return t[2]?0:1}return r=a(t),o=l[r]=s[r](t),{c(){o.c(),i=b()},m(t,e){l[r].m(t,e),P(t,i,e),n=!0},p(t,e){let n=r;(r=a(t))===n?l[r].p(t,e):(U(),G(l[n],1,1,()=>{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function Yl(t){let r,n;return r=new El({props:{$$slots:{default:[Al]},$$scope:{ctx:t}}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var[e]=e,n={};2097167&e&&(n.$$scope={dirty:e,ctx:t}),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Wl(r,t,o){let e,n,i,s,l,a,c,u,d,{_events:f,_view:h,_viewDates:p,_viewClass:g,noEventsClick:m,noEventsContent:v,theme:$}=Yt(\"state\");return Ht(r,f,t=>o(13,s=t)),Ht(r,h,t=>o(14,e=t)),Ht(r,p,t=>o(1,l=t)),Ht(r,g,t=>o(16,a=t)),Ht(r,m,t=>o(15,n=t)),Ht(r,v,t=>o(12,i=t)),Ht(r,$,t=>o(3,c=t)),si(\"view-state\",new zl(Yt(\"state\"))),Nt(g,a=\"list\",a),r.$$.update=()=>{if(8194&r.$$.dirty&&(o(2,u=!0),l.length)){var t,e=l[0],n=Oi(Wt(l[l.length-1]));for(t of s)if(\"auto\"===t.display&&t.start<n&&t.end>e){o(2,u=!1);break}}4097&r.$$.dirty&&(o(0,d=Gt(i)?i():i),\"string\"==typeof d)&&o(0,d={html:d})},[d,l,u,c,f,h,p,g,m,v,$,function(t){Gt(n)&&n({jsEvent:t,view:Xt(e)})},i,s]}class Vl extends i{constructor(t){super(),o(this,t,Wl,Yl,l,{})}}var Xl={createOptions(t){t.buttonText.listDay=\"list\",t.buttonText.listWeek=\"list\",t.buttonText.listMonth=\"list\",t.buttonText.listYear=\"list\",t.listDayFormat={weekday:\"long\"},t.listDaySideFormat={year:\"numeric\",month:\"long\",day:\"numeric\"},t.noEventsClick=void 0,t.noEventsContent=\"No events\",t.theme.daySide=\"ec-day-side\",t.theme.eventTag=\"ec-event-tag\",t.theme.list=\"ec-list\",t.theme.noEvents=\"ec-no-events\",t.view=\"listWeek\",t.views.listDay={component:Vl,duration:{days:1}},t.views.listWeek={component:Vl,duration:{weeks:1}},t.views.listMonth={component:Vl,duration:{months:1}},t.views.listYear={component:Vl,duration:{years:1}}}};class ql{constructor(t){this._slotTimeLimits=xi([t._events,t._viewDates,t.flexibleSlotTimeLimits,t.slotMinTime,t.slotMaxTime],t=>{var[e,n,t,r,o]=t,i=Mi(r),s=Mi(o);if(t){var l=Mi(Math.min(i.seconds,Math.max(0,s.seconds-86400))),a=Mi(Math.max(s.seconds,l.seconds+86400));t:for(var c of n){var u,d,f=Vt(Wt(c),i),h=Vt(Wt(c),s),p=Vt(Wt(c),l),g=Vt(Wt(c),a);for(u of e)if(\"auto\"===u.display&&u.start<g&&u.end>p)if(u.start<f&&(d=Math.max((u.start-c)/1e3,l.seconds))<i.seconds&&(i.seconds=d),u.end>h&&(d=Math.min((u.end-c)/1e3,a.seconds))>s.seconds&&(s.seconds=d),i.seconds===l.seconds&&s.seconds===a.seconds)break t}}return{min:i,max:s}}),this._times=xi([this._slotTimeLimits,t._intlSlotLabel,t.slotDuration],t=>{let[e,n,r]=t,o=3600<=r.seconds,i=[],s=Ei(\"2020-01-01\"),l=Wt(s),a=1;for(Vt(s,e.min),Vt(l,e.max);s<l;)i.push(i.length&&(a||o)?n.format(s):\"\"),Vt(s,r),a=1-a;return i})}}function Jl(t){let e,n=\"all-day\";return t?\"string\"==typeof(e=Gt(t)?t({text:n}):t)&&(e={html:e}):e={html:n},e}function Kl(t,e,n){t=t.slice();return t[12]=e[n],t}function Ql(t){let n,r,o,i=t[12]+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[2].time)},m(t,e){P(t,n,e),L(n,r)},p(t,e){16&e&&i!==(i=t[12]+\"\")&&Qo(r,i),4&e&&o!==(o=t[2].time)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function Zl(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$,y,w,b,k,_,T,x=n[4],C=[];for(let t=0;t<x.length;t+=1)C[t]=Ql(Kl(n,x,t));const D=n[11].default,S=Ao(D,n,n[10],null);return{c(){r=I(\"div\"),o=I(\"div\"),i=I(\"div\"),a=F(),c=I(\"div\");for(let t=0;t<C.length;t+=1)C[t].c();f=F(),h=I(\"div\"),p=I(\"div\"),m=F(),S&&S.c(),$=F(),y=I(\"div\"),R(i,\"class\",s=n[2].sidebarTitle),R(c,\"class\",u=n[2].hiddenTimes),R(o,\"class\",d=n[2].sidebar),R(p,\"class\",g=n[2].lines),R(h,\"class\",v=n[2].days),R(y,\"class\",w=n[2].hiddenScroll),R(r,\"class\",b=(n[0]?n[2].allDay:n[2].header)+(n[3]?\" \"+n[2].withScroll:\"\"))},m(t,e){P(t,r,e),L(r,o),L(o,i),L(o,a),L(o,c);for(let t=0;t<C.length;t+=1)C[t].m(c,null);L(r,f),L(r,h),L(h,p),L(h,m),S&&S.m(h,null),L(r,$),L(r,y),k=!0,_||(T=qo(l=Si.call(null,i,n[1])),_=!0)},p(e,t){var[n]=t;if((!k||4&n&&s!==(s=e[2].sidebarTitle))&&R(i,\"class\",s),l&&Gt(l.update)&&2&n&&l.update.call(null,e[1]),20&n){let t;for(x=e[4],t=0;t<x.length;t+=1){const o=Kl(e,x,t);C[t]?C[t].p(o,n):(C[t]=Ql(o),C[t].c(),C[t].m(c,null))}for(;t<C.length;t+=1)C[t].d(1);C.length=x.length}(!k||4&n&&u!==(u=e[2].hiddenTimes))&&R(c,\"class\",u),(!k||4&n&&d!==(d=e[2].sidebar))&&R(o,\"class\",d),(!k||4&n&&g!==(g=e[2].lines))&&R(p,\"class\",g),S&&S.p&&(!k||1024&n)&&Vo(S,D,e,e[10],k?Wo(D,e[10],n,null):Xo(e[10]),null),(!k||4&n&&v!==(v=e[2].days))&&R(h,\"class\",v),(!k||4&n&&w!==(w=e[2].hiddenScroll))&&R(y,\"class\",w),(!k||13&n&&b!==(b=(e[0]?e[2].allDay:e[2].header)+(e[3]?\" \"+e[2].withScroll:\"\")))&&R(r,\"class\",b)},i(t){k||(B(S,t),k=!0)},o(t){G(S,t),k=!1},d(t){t&&j(r),E(C,t),S&&S.d(t),_=!1,T()}}}function ta(t,e,n){let r,o,i,s,{$$slots:l={},$$scope:a}=e,{allDay:c=!1}=e,{_scrollable:u,allDayContent:d,theme:f}=Yt(\"state\");Ht(t,u,t=>n(3,i=t)),Ht(t,d,t=>n(9,r=t)),Ht(t,f,t=>n(2,o=t));let h,p=Yt(\"view-state\")[\"_times\"];return Ht(t,p,t=>n(4,s=t)),t.$$set=t=>{\"allDay\"in t&&n(0,c=t.allDay),\"$$scope\"in t&&n(10,a=t.$$scope)},t.$$.update=()=>{512&t.$$.dirty&&n(1,h=Jl(r))},[c,h,o,i,s,u,d,f,p,r,a,l]}class ea extends i{constructor(t){super(),o(this,t,ta,Zl,l,{allDay:0})}}function na(t,e,n){t=t.slice();return t[30]=e[n],t}function ra(t,e,n){t=t.slice();return t[33]=e[n],t}function oa(t){let n,r,o,i=t[33]+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[5].time)},m(t,e){P(t,n,e),L(n,r)},p(t,e){2&e[0]&&i!==(i=t[33]+\"\")&&Qo(r,i),32&e[0]&&o!==(o=t[5].time)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function ia(t){let n,r;return{c(){R(n=I(\"div\"),\"class\",r=t[5].line)},m(t,e){P(t,n,e)},p(t,e){32&e[0]&&r!==(r=t[5].line)&&R(n,\"class\",r)},d(t){t&&j(n)}}}function sa(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$,y,w,b,k=n[1],_=[];for(let t=0;t<k.length;t+=1)_[t]=oa(ra(n,k,t));let T=n[3],x=[];for(let t=0;t<T.length;t+=1)x[t]=ia(na(n,T,t));const C=n[26].default,D=Ao(C,n,n[25],null);return{c(){r=I(\"div\"),o=I(\"div\"),i=I(\"div\"),s=I(\"div\"),c=F();for(let t=0;t<_.length;t+=1)_[t].c();d=F(),f=I(\"div\"),h=I(\"div\");for(let t=0;t<x.length;t+=1)x[t].c();g=F(),D&&D.c(),R(s,\"class\",l=n[5].sidebarTitle),R(i,\"class\",u=n[5].sidebar),R(h,\"class\",p=n[5].lines),R(f,\"class\",m=n[5].days),R(o,\"class\",v=n[5].content),R(r,\"class\",$=n[5].body+(n[2]?\" \"+n[5].compact:\"\"))},m(t,e){P(t,r,e),L(r,o),L(o,i),L(i,s),L(i,c);for(let t=0;t<_.length;t+=1)_[t].m(i,null);L(o,d),L(o,f),L(f,h);for(let t=0;t<x.length;t+=1)x[t].m(h,null);L(f,g),D&&D.m(f,null),n[27](r),y=!0,w||(b=[At(window,\"resize\",n[17]),qo(a=Si.call(null,s,n[4])),At(r,\"scroll\",function(){Gt(n[6])&&n[6].apply(this,arguments)})],w=!0)},p(t,e){if(n=t,(!y||32&e[0]&&l!==(l=n[5].sidebarTitle))&&R(s,\"class\",l),a&&Gt(a.update)&&16&e[0]&&a.update.call(null,n[4]),34&e[0]){let t;for(k=n[1],t=0;t<k.length;t+=1){const o=ra(n,k,t);_[t]?_[t].p(o,e):(_[t]=oa(o),_[t].c(),_[t].m(i,null))}for(;t<_.length;t+=1)_[t].d(1);_.length=k.length}if((!y||32&e[0]&&u!==(u=n[5].sidebar))&&R(i,\"class\",u),40&e[0]){let t;for(T=n[3],t=0;t<T.length;t+=1){const o=na(n,T,t);x[t]?x[t].p(o,e):(x[t]=ia(o),x[t].c(),x[t].m(h,null))}for(;t<x.length;t+=1)x[t].d(1);x.length=T.length}(!y||32&e[0]&&p!==(p=n[5].lines))&&R(h,\"class\",p),D&&D.p&&(!y||33554432&e[0])&&Vo(D,C,n,n[25],y?Wo(C,n[25],e,null):Xo(n[25]),null),(!y||32&e[0]&&m!==(m=n[5].days))&&R(f,\"class\",m),(!y||32&e[0]&&v!==(v=n[5].content))&&R(o,\"class\",v),(!y||36&e[0]&&$!==($=n[5].body+(n[2]?\" \"+n[5].compact:\"\")))&&R(r,\"class\",$)},i(t){y||(B(D,t),y=!0)},o(t){G(D,t),y=!1},d(t){t&&j(r),E(_,t),E(x,t),D&&D.d(t),n[27](null),w=!1,Bt(b)}}}function la(t,e,n){let r,o,i,s,l,a,c,u,d,f,{$$slots:h={},$$scope:p}=e,{_viewDates:g,scrollTime:m,_scrollable:v,_scroll:$,allDayContent:y,slotDuration:w,slotHeight:b,theme:k}=Yt(\"state\");Ht(t,g,t=>n(22,a=t)),Ht(t,m,t=>n(21,l=t)),Ht(t,v,t=>n(28,r=t)),Ht(t,$,t=>n(6,f=t)),Ht(t,y,t=>n(23,c=t)),Ht(t,w,t=>n(19,o=t)),Ht(t,b,t=>n(20,s=t)),Ht(t,k,t=>n(5,d=t));let _,T,{_slotTimeLimits:x,_times:C}=Yt(\"view-state\");Ht(t,x,t=>n(24,u=t)),Ht(t,C,t=>n(1,i=t));let D,S,E=[];function M(){Nt(v,r=Gi(_),r)}return t.$$set=t=>{\"$$scope\"in t&&n(25,p=t.$$scope)},t.$$.update=()=>{17301506&t.$$.dirty[0]&&(n(2,T=3600<=o.seconds),n(3,E.length=i.length,E),n(18,D=u.min.seconds)),8388608&t.$$.dirty[0]&&n(4,S=Jl(c)),8126465&t.$$.dirty[0]&&_&&a&&n(0,_.scrollTop=((l.seconds-D)/o.seconds-.5)*s,_),524291&t.$$.dirty[0]&&_&&i&&o&&setTimeout(M)},[_,i,T,E,S,d,f,g,m,v,$,y,w,b,k,x,C,M,D,o,s,l,a,c,u,p,h,function(t){K[t?\"unshift\":\"push\"](()=>{_=t,n(0,_),n(22,a),n(21,l),n(18,D),n(19,o),n(20,s),n(1,i),n(24,u)})}]}class aa extends i{constructor(t){super(),o(this,t,la,sa,l,{},null,[-1,-1])}}function ca(n){let r,o,i,s,l,a,c,u,d;var f=n[7].resizer;function h(t){return{props:{event:t[0]}}}return f&&(a=ti(f,h(n))).$on(\"pointerdown\",n[32](!0)),{c(){r=I(\"div\"),o=I(\"div\"),l=F(),a&&p(a.$$.fragment),R(o,\"class\",i=n[2].eventBody),R(r,\"class\",n[4]),R(r,\"style\",n[5])},m(t,e){P(t,r,e),L(r,o),L(r,l),a&&g(a,r,null),n[47](r),c=!0,u||(d=[qo(s=Si.call(null,o,n[6])),At(r,\"click\",function(){Gt(cs(n[31](n[8],n[1])))&&cs(n[31](n[8],n[1])).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[31](n[9],n[1]))&&n[31](n[9],n[1]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[31](n[10],n[1]))&&n[31](n[10],n[1]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(\"auto\"===n[1]&&n[11](n[0])?n[32]():void 0)&&(\"auto\"===n[1]&&n[11](n[0])?n[32]():void 0).apply(this,arguments)})],u=!0)},p(t,e){n=t,(!c||4&e[0]&&i!==(i=n[2].eventBody))&&R(o,\"class\",i),s&&Gt(s.update)&&64&e[0]&&s.update.call(null,n[6]);t={};if(1&e[0]&&(t.event=n[0]),f!==(f=n[7].resizer)){if(a){U();const n=a;G(n.$$.fragment,1,0,()=>{O(n,1)}),z()}f?((a=ti(f,h(n))).$on(\"pointerdown\",n[32](!0)),p(a.$$.fragment),B(a.$$.fragment,1),g(a,r,null)):a=null}else f&&a.$set(t);(!c||16&e[0])&&R(r,\"class\",n[4]),(!c||32&e[0])&&R(r,\"style\",n[5])},i(t){c||(a&&B(a.$$.fragment,t),c=!0)},o(t){a&&G(a.$$.fragment,t),c=!1},d(t){t&&j(r),a&&O(a),n[47](null),u=!1,Bt(d)}}}function ua(o,t,i){let n,s,e,l,a,c,u,d,f,h,p,g,m,v,$,r,y,w,b,k=t[\"date\"],_=t[\"chunk\"],{displayEventEnd:T,eventBackgroundColor:x,eventColor:C,eventContent:D,eventClick:S,eventDidMount:E,eventMouseEnter:M,eventMouseLeave:F,slotEventOverlap:R,slotDuration:U,slotHeight:z,theme:B,_view:G,_intlEventTime:H,_interaction:N,_classes:A,_draggable:Y,_resBgColor:W}=Yt(\"state\");Ht(o,T,t=>i(38,u=t)),Ht(o,x,t=>i(42,p=t)),Ht(o,C,t=>i(41,h=t)),Ht(o,D,t=>i(37,c=t)),Ht(o,S,t=>i(8,r=t)),Ht(o,E,t=>i(49,e=t)),Ht(o,M,t=>i(9,y=t)),Ht(o,F,t=>i(10,w=t)),Ht(o,R,t=>i(40,f=t)),Ht(o,U,t=>i(46,$=t)),Ht(o,z,t=>i(44,m=t)),Ht(o,B,t=>i(2,a=t)),Ht(o,G,t=>i(35,s=t)),Ht(o,H,t=>i(36,l=t)),Ht(o,N,t=>i(7,n=t)),Ht(o,A,t=>i(39,d=t)),Ht(o,Y,t=>i(11,b=t)),Ht(o,W,t=>i(43,g=t));let O,L,P,V,j,I,X,{_slotTimeLimits:q,_viewResources:J}=Yt(\"view-state\");return Ht(o,q,t=>i(45,v=t)),oi(()=>{Gt(e)&&e({event:ns(L),timeText:X,el:O,view:Xt(s)})}),o.$$set=t=>{\"date\"in t&&i(33,k=t.date),\"chunk\"in t&&i(34,_=t.chunk)},o.$$.update=()=>{var t,e,n,r;8&o.$$.dirty[1]&&i(0,L=_.event),39&o.$$.dirty[0]|65292&o.$$.dirty[1]&&(i(1,P=L.display),r=$.seconds/60,t=v.min.seconds/60,n=(_.start-k)/1e3/60,e=(_.end-k)/1e3/60,t=(n-t)/r*m,e=(e-n)/r*m,n=(v.max.seconds/60-n)/r*m,r=L.backgroundColor||g(L)||p||h,i(5,j=`top:${t}px;min-height:${e}px;height:${e}px;max-height:${n}px;`),r&&i(5,j+=`background-color:${r};`),\"auto\"!==P&&\"ghost\"!==P||i(5,j+=`z-index:${_.column+1};left:${100/_.group.columns.length*_.column}%;width:${100/_.group.columns.length*(f?.5*(1+_.group.columns.length-_.column):1)}%;`),i(4,V=d(\"background\"===P?a.bgEvent:a.event,L))),4&o.$$.dirty[0]|248&o.$$.dirty[1]&&i(6,[X,I]=es(_,u,c,a,l,s),I)},[L,P,a,O,V,j,I,n,r,y,w,b,T,x,C,D,S,E,M,F,R,U,z,B,G,H,N,A,Y,W,q,function(e,t){return\"preview\"!==t&&Gt(e)?t=>e({event:ns(L),el:O,jsEvent:t,view:Xt(s)}):void 0},function(e){return t=>n.action.dragTimeGrid(L,O,t,J,!1,e)},k,_,s,l,c,u,d,f,h,p,g,m,v,$,function(t){K[t?\"unshift\":\"push\"](()=>{O=t,i(3,O)})}]}class da extends i{constructor(t){super(),o(this,t,ua,ca,l,{date:33,chunk:34},null,[-1,-1])}}function fa(t){let n,r;return{c(){R(n=I(\"div\"),\"class\",r=t[1].nowIndicator),Zo(n,\"top\",t[0]+\"px\")},m(t,e){P(t,n,e)},p(t,e){var[e]=e;2&e&&r!==(r=t[1].nowIndicator)&&R(n,\"class\",r),1&e&&Zo(n,\"top\",t[0]+\"px\")},i:zt,o:zt,d(t){t&&j(n)}}}function ha(n,t,r){let o,i,s,l,a,e,{slotDuration:c,slotHeight:u,theme:d,_now:f,_today:h}=Yt(\"state\");Ht(n,c,t=>r(11,s=t)),Ht(n,u,t=>r(9,o=t)),Ht(n,d,t=>r(1,e=t)),Ht(n,f,t=>r(13,a=t)),Ht(n,h,t=>r(12,l=t));let p,g=Yt(\"view-state\")[\"_slotTimeLimits\"],m=(Ht(n,g,t=>r(10,i=t)),0);return n.$$.update=()=>{var t,e;12288&n.$$.dirty&&r(8,p=(a-l)/1e3/60),3840&n.$$.dirty&&(t=s.seconds/60,e=i.min.seconds/60,r(0,m=(p-e)/t*o))},[m,e,c,u,d,f,h,g,p,o,i,s,l,a]}class pa extends i{constructor(t){super(),o(this,t,ha,fa,l,{})}}function ga(t,e,n){t=t.slice();return t[42]=e[n],t}function ma(t,e,n){t=t.slice();return t[42]=e[n],t}function va(t,n){let r,o,i;return o=new da({props:{date:n[0],chunk:n[42]}}),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){n=t;t={};1&e[0]&&(t.date=n[0]),8&e[0]&&(t.chunk=n[42]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),O(o,t)}}}function $a(t){let r,n;return r=new da({props:{date:t[0],chunk:t[4][1]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e[0]&&(n.date=t[0]),16&e[0]&&(n.chunk=t[4][1]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function ya(t,n){let r,o,i;return o=new da({props:{date:n[0],chunk:n[42]}}),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){n=t;t={};1&e[0]&&(t.date=n[0]),4&e[0]&&(t.chunk=n[42]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),O(o,t)}}}function wa(t){let r,n;return r=new da({props:{date:t[0],chunk:t[4][0]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e[0]&&(n.date=t[0]),16&e[0]&&(n.chunk=t[4][0]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function ba(){let n,r;return n=new pa({}),{c(){p(n.$$.fragment)},m(t,e){g(n,t,e),r=!0},i(t){r||(B(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){O(n,t)}}}function ka(n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v,$=[],y=new Map,w=[],b=new Map,k=n[3];const _=t=>t[42].event;for(let t=0;t<k.length;t+=1){var e=ma(n,k,t),T=_(e);y.set(T,$[t]=va(T,e))}let x=n[4][1]&&$a(n),C=n[2];const D=t=>t[42].event;for(let t=0;t<C.length;t+=1){var S=ga(n,C,t),E=D(S);b.set(E,w[t]=ya(E,S))}let M=n[4][0]&&!n[4][0].event.allDay&&wa(n),O=n[11]&&n[5]&&ba();return{c(){r=I(\"div\"),o=I(\"div\");for(let t=0;t<$.length;t+=1)$[t].c();s=F(),l=I(\"div\"),x&&x.c(),a=F();for(let t=0;t<w.length;t+=1)w[t].c();c=F(),M&&M.c(),d=F(),f=I(\"div\"),O&&O.c(),R(o,\"class\",i=n[7].bgEvents),R(l,\"class\",u=n[7].events),R(f,\"class\",h=n[7].extra),R(r,\"class\",p=n[7].day+(n[5]?\" \"+n[7].today:\"\")+(n[6]?\" \"+n[7].highlight:\"\"))},m(t,e){P(t,r,e),L(r,o);for(let t=0;t<$.length;t+=1)$[t].m(o,null);L(r,s),L(r,l),x&&x.m(l,null),L(l,a);for(let t=0;t<w.length;t+=1)w[t].m(l,null);L(l,c),M&&M.m(l,null),L(r,d),L(r,f),O&&O.m(f,null),n[36](r),g=!0,m||(v=[At(r,\"click\",function(){Gt(cs(n[25](n[8])))&&cs(n[25](n[8])).apply(this,arguments)}),At(r,\"pointerenter\",function(){Gt(n[26](n[9]))&&n[26](n[9]).apply(this,arguments)}),At(r,\"pointerleave\",function(){Gt(_a(n[9]))&&_a(n[9]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(n[27](n[9],n[10]))&&n[27](n[9],n[10]).apply(this,arguments)})],m=!0)},p(t,e){n=t,9&e[0]&&(k=n[3],U(),$=ki($,e,_,1,n,k,y,o,bi,va,null,ma),z()),(!g||128&e[0]&&i!==(i=n[7].bgEvents))&&R(o,\"class\",i),n[4][1]?x?(x.p(n,e),16&e[0]&&B(x,1)):((x=$a(n)).c(),B(x,1),x.m(l,a)):x&&(U(),G(x,1,1,()=>{x=null}),z()),5&e[0]&&(C=n[2],U(),w=ki(w,e,D,1,n,C,b,l,bi,ya,c,ga),z()),n[4][0]&&!n[4][0].event.allDay?M?(M.p(n,e),16&e[0]&&B(M,1)):((M=wa(n)).c(),B(M,1),M.m(l,null)):M&&(U(),G(M,1,1,()=>{M=null}),z()),(!g||128&e[0]&&u!==(u=n[7].events))&&R(l,\"class\",u),n[11]&&n[5]?O?2080&e[0]&&B(O,1):((O=ba()).c(),B(O,1),O.m(f,null)):O&&(U(),G(O,1,1,()=>{O=null}),z()),(!g||128&e[0]&&h!==(h=n[7].extra))&&R(f,\"class\",h),(!g||224&e[0]&&p!==(p=n[7].day+(n[5]?\" \"+n[7].today:\"\")+(n[6]?\" \"+n[7].highlight:\"\")))&&R(r,\"class\",p)},i(t){if(!g){for(let t=0;t<k.length;t+=1)B($[t]);B(x);for(let t=0;t<C.length;t+=1)B(w[t]);B(M),B(O),g=!0}},o(t){for(let t=0;t<$.length;t+=1)G($[t]);G(x);for(let t=0;t<w.length;t+=1)G(w[t]);G(M),G(O),g=!1},d(t){t&&j(r);for(let t=0;t<$.length;t+=1)$[t].d();x&&x.d();for(let t=0;t<w.length;t+=1)w[t].d();M&&M.d(),O&&O.d(),n[36](null),m=!1,Bt(v)}}}function _a(t){return t.pointer?t.pointer.leave:void 0}function Ta(o,t,i){let s,r,e,n,l,a,c,u,d,f,h,p,g,m=t[\"date\"],v=t[\"resource\"],{_events:$,_iEvents:y,dateClick:w,highlightedDates:b,nowIndicator:k,slotDuration:_,slotHeight:T,selectable:x,theme:C,_interaction:D,_today:S,_view:E}=Yt(\"state\");Ht(o,$,t=>i(35,u=t)),Ht(o,y,t=>i(34,c=t)),Ht(o,w,t=>i(8,f=t)),Ht(o,b,t=>i(32,l=t)),Ht(o,k,t=>i(11,g=t)),Ht(o,_,t=>i(38,e=t)),Ht(o,T,t=>i(39,n=t)),Ht(o,x,t=>i(10,p=t)),Ht(o,C,t=>i(7,d=t)),Ht(o,D,t=>i(9,h=t)),Ht(o,S,t=>i(33,a=t)),Ht(o,E,t=>i(37,r=t));let M,{_slotTimeLimits:O,_viewResources:F}=Yt(\"view-state\");Ht(o,O,t=>i(31,s=t));let L,P,R,U,j,I,z=[];function B(t){return t-=Hi(M).top,Vt(Wt(m),e,Math.floor(t/n+s.min.seconds/e.seconds))}return o.$$set=t=>{\"date\"in t&&i(0,m=t.date),\"resource\"in t&&i(28,v=t.resource)},o.$$.update=()=>{if(1&o.$$.dirty[0]|1&o.$$.dirty[1]&&(i(29,j=Vt(Wt(m),s.min)),i(30,I=Vt(Wt(m),s.max))),1879048204&o.$$.dirty[0]|16&o.$$.dirty[1]){i(2,L=[]),i(3,P=[]);for(var t of u){var e;!t.allDay&&is(t,j,I,v,!0)&&(e=Ki(t,j,I),(\"background\"===t.display?P:L).push(e))}var n=L;if(n.length){Qi(n);let e={columns:[],end:n[0].end};for(var r of n){let t=0;if(r.start<e.end){for(;t<e.columns.length&&!(e.columns[t][e.columns[t].length-1].end<=r.start);++t);r.end>e.end&&(e.end=r.end)}else e={columns:[],end:r.end};e.columns.length<t+1&&e.columns.push([]),e.columns[t].push(r),r.group=e,r.column=t}}}1879048192&o.$$.dirty[0]|8&o.$$.dirty[1]&&i(4,z=c.map(t=>t&&is(t,j,I,v,!0)?Ki(t,j,I):null)),1&o.$$.dirty[0]|4&o.$$.dirty[1]&&i(5,R=A(m,a)),1&o.$$.dirty[0]|2&o.$$.dirty[1]&&i(6,U=l.some(t=>A(t,m))),2&o.$$.dirty[0]&&M&&Wi(M,B)},[m,M,L,P,z,R,U,d,f,h,p,g,$,y,w,b,k,_,T,x,C,D,S,E,O,function(n){return Gt(n)?t=>{var e=B(t.clientY);n({allDay:!1,date:N(e),dateStr:ji(e),dayEl:M,jsEvent:t,view:Xt(r),resource:v})}:void 0},function(e){return e.pointer?t=>e.pointer.enterTimeGrid(m,M,t,O,v):void 0},function(e,t){return t&&e.action?t=>e.action.selectTimeGrid(m,M,t,F,s,!1):void 0},v,j,I,s,l,a,c,u,function(t){K[t?\"unshift\":\"push\"](()=>{M=t,i(1,M)})}]}class xa extends i{constructor(t){super(),o(this,t,Ta,ka,l,{date:0,resource:28},null,[-1,-1])}}function Ca(n){let r,o,i,s,l,a,c,u,d;var f=n[7].resizer;function h(t){return{props:{event:t[0]}}}return f&&(a=ti(f,h(n))).$on(\"pointerdown\",n[27](!0)),{c(){r=I(\"div\"),o=I(\"div\"),l=F(),a&&p(a.$$.fragment),R(o,\"class\",i=n[1].eventBody),R(r,\"class\",n[3]),R(r,\"style\",n[4])},m(t,e){P(t,r,e),L(r,o),L(r,l),a&&g(a,r,null),n[39](r),c=!0,u||(d=[qo(s=Si.call(null,o,n[5])),At(r,\"click\",function(){Gt(cs(n[26](n[8],n[6])))&&cs(n[26](n[8],n[6])).apply(this,arguments)}),At(r,\"mouseenter\",function(){Gt(n[26](n[9],n[6]))&&n[26](n[9],n[6]).apply(this,arguments)}),At(r,\"mouseleave\",function(){Gt(n[26](n[10],n[6]))&&n[26](n[10],n[6]).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(\"auto\"===n[6]&&n[11](n[0])?n[27]():void 0)&&(\"auto\"===n[6]&&n[11](n[0])?n[27]():void 0).apply(this,arguments)})],u=!0)},p(t,e){n=t,(!c||2&e[0]&&i!==(i=n[1].eventBody))&&R(o,\"class\",i),s&&Gt(s.update)&&32&e[0]&&s.update.call(null,n[5]);t={};if(1&e[0]&&(t.event=n[0]),f!==(f=n[7].resizer)){if(a){U();const n=a;G(n.$$.fragment,1,0,()=>{O(n,1)}),z()}f?((a=ti(f,h(n))).$on(\"pointerdown\",n[27](!0)),p(a.$$.fragment),B(a.$$.fragment,1),g(a,r,null)):a=null}else f&&a.$set(t);(!c||8&e[0])&&R(r,\"class\",n[3]),(!c||16&e[0])&&R(r,\"style\",n[4])},i(t){c||(a&&B(a.$$.fragment,t),c=!0)},o(t){a&&G(a.$$.fragment,t),c=!1},d(t){t&&j(r),a&&O(a),n[39](null),u=!1,Bt(d)}}}function Da(e,t,n){let r,o,i,s,l,a,c,u,d,f,h,p,g,m,v=t[\"chunk\"],{longChunks:$={}}=t,{displayEventEnd:y,eventBackgroundColor:w,eventClick:b,eventColor:k,eventContent:_,eventDidMount:T,eventMouseEnter:x,eventMouseLeave:C,theme:D,_view:S,_intlEventTime:E,_interaction:F,_classes:R,_draggable:U}=Yt(\"state\");Ht(e,y,t=>n(35,c=t)),Ht(e,w,t=>n(38,f=t)),Ht(e,b,t=>n(8,h=t)),Ht(e,k,t=>n(37,d=t)),Ht(e,_,t=>n(34,a=t)),Ht(e,T,t=>n(41,i=t)),Ht(e,x,t=>n(9,p=t)),Ht(e,C,t=>n(10,g=t)),Ht(e,D,t=>n(1,l=t)),Ht(e,S,t=>n(32,o=t)),Ht(e,E,t=>n(33,s=t)),Ht(e,F,t=>n(7,r=t)),Ht(e,R,t=>n(36,u=t)),Ht(e,U,t=>n(11,m=t));let M,O,z,L,P,B,G=Yt(\"view-state\")[\"_viewResources\"];ri();let j,I=1;return oi(()=>{Gt(i)&&i({event:ns(O),timeText:B,el:M,view:Xt(o)})}),e.$$set=t=>{\"chunk\"in t&&n(28,v=t.chunk),\"longChunks\"in t&&n(29,$=t.longChunks)},e.$$.update=()=>{var t;268435456&e.$$.dirty[0]&&n(0,O=v.event),268435475&e.$$.dirty[0]|225&e.$$.dirty[1]&&(n(6,j=O.display),t=O.backgroundColor||f||d,n(4,L=`width:calc(${100*v.days}% + ${7*(v.days-1)}px);margin-top:${I}px;`),t&&n(4,L+=`background-color:${t};`),n(3,z=u(l.event,O))),268435458&e.$$.dirty[0]|30&e.$$.dirty[1]&&n(5,[B,P]=es(v,c,a,l,s,o),P)},[O,l,M,z,L,P,j,r,h,p,g,m,y,w,b,k,_,T,x,C,D,S,E,F,R,U,function(e,t){return\"preview\"!==t&&Gt(e)?t=>e({event:ns(O),el:M,jsEvent:t,view:Xt(o)}):void 0},function(e){return t=>r.action.dragTimeGrid(O,M,t,G,!0,e)},v,$,function(){M&&\"preview\"!==j&&n(31,I=ts(v,$,Ai(M)))},I,o,s,a,c,u,d,f,function(t){K[t?\"unshift\":\"push\"](()=>{M=t,n(2,M)})}]}class Sa extends i{constructor(t){super(),o(this,t,Da,Ca,l,{chunk:28,longChunks:29,reposition:30},null,[-1,-1])}get reposition(){return this.$$.ctx[30]}}function Ea(t,e,n){t=t.slice();return t[32]=e[n],t[33]=e,t[34]=n,t}function Ma(t){let r,o,i,s;return o=new Sa({props:{chunk:t[2][0]}}),{c(){r=I(\"div\"),p(o.$$.fragment),R(r,\"class\",i=t[8].events+\" \"+t[8].preview)},m(t,e){P(t,r,e),g(o,r,null),s=!0},p(t,e){var n={};4&e[0]&&(n.chunk=t[2][0]),o.$set(n),(!s||256&e[0]&&i!==(i=t[8].events+\" \"+t[8].preview))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function Oa(t,n){let r,o,i,s=n[34];const l=()=>n[25](o,s),a=()=>n[25](null,s);var e={chunk:n[32],longChunks:n[1]};return o=new Sa({props:e}),l(),{key:t,first:null,c(){r=b(),p(o.$$.fragment),this.first=r},m(t,e){P(t,r,e),g(o,t,e),i=!0},p(t,e){s!==(n=t)[34]&&(a(),s=n[34],l());t={};16&e[0]&&(t.chunk=n[32]),2&e[0]&&(t.longChunks=n[1]),o.$set(t)},i(t){i||(B(o.$$.fragment,t),i=!0)},o(t){G(o.$$.fragment,t),i=!1},d(t){t&&j(r),a(),O(o,t)}}}function La(n){let r,o,i,s,l,a,c,u,d=n[2][0]&&A(n[2][0].date,n[0]),f=[],h=new Map,p=d&&Ma(n),g=n[4];const m=t=>t[32].event;for(let t=0;t<g.length;t+=1){var e=Ea(n,g,t),v=m(e);h.set(v,f[t]=Oa(v,e))}return{c(){r=I(\"div\"),p&&p.c(),o=F(),i=I(\"div\");for(let t=0;t<f.length;t+=1)f[t].c();R(i,\"class\",s=n[8].events),R(r,\"class\",l=n[8].day+(n[5]?\" \"+n[8].today:\"\")+(n[6]?\" \"+n[8].highlight:\"\"))},m(t,e){P(t,r,e),p&&p.m(r,null),L(r,o),L(r,i);for(let t=0;t<f.length;t+=1)f[t].m(i,null);n[26](r),a=!0,c||(u=[At(window,\"resize\",n[21]),At(r,\"click\",function(){Gt(cs(n[19](n[9])))&&cs(n[19](n[9])).apply(this,arguments)}),At(r,\"pointerdown\",function(){Gt(n[20](n[10],n[11]))&&n[20](n[10],n[11]).apply(this,arguments)})],c=!0)},p(t,e){n=t,(d=5&e[0]?n[2][0]&&A(n[2][0].date,n[0]):d)?p?(p.p(n,e),5&e[0]&&B(p,1)):((p=Ma(n)).c(),B(p,1),p.m(r,o)):p&&(U(),G(p,1,1,()=>{p=null}),z()),146&e[0]&&(g=n[4],U(),f=ki(f,e,m,1,n,g,h,i,bi,Oa,null,Ea),z()),(!a||256&e[0]&&s!==(s=n[8].events))&&R(i,\"class\",s),(!a||352&e[0]&&l!==(l=n[8].day+(n[5]?\" \"+n[8].today:\"\")+(n[6]?\" \"+n[8].highlight:\"\")))&&R(r,\"class\",l)},i(t){if(!a){B(p);for(let t=0;t<g.length;t+=1)B(f[t]);a=!0}},o(t){G(p);for(let t=0;t<f.length;t+=1)G(f[t]);a=!1},d(t){t&&j(r),p&&p.d();for(let t=0;t<f.length;t+=1)f[t].d();n[26](null),c=!1,Bt(u)}}}function Pa(e,t,n){let r,o,i,s,l,a,c,u=t[\"date\"],d=t[\"chunks\"],f=t[\"longChunks\"],{iChunks:h=[]}=t,p=t[\"resource\"],{dateClick:g,highlightedDates:m,theme:v,_view:$,_interaction:y,selectable:w}=Yt(\"state\");Ht(e,g,t=>n(9,l=t)),Ht(e,m,t=>n(24,i=t)),Ht(e,v,t=>n(8,s=t)),Ht(e,$,t=>n(28,o=t)),Ht(e,y,t=>n(10,a=t)),Ht(e,w,t=>n(11,c=t));let b,k,{_slotTimeLimits:_,_viewResources:T}=Yt(\"view-state\");Ht(e,_,t=>n(27,r=t));let x,C,D=Pi(Ei()),S=[];function E(){n(7,S.length=k.length,S);for(var t of S)t&&t.reposition&&t.reposition()}return ii(E),e.$$set=t=>{\"date\"in t&&n(0,u=t.date),\"chunks\"in t&&n(22,d=t.chunks),\"longChunks\"in t&&n(1,f=t.longChunks),\"iChunks\"in t&&n(2,h=t.iChunks),\"resource\"in t&&n(23,p=t.resource)},e.$$.update=()=>{if(4194321&e.$$.dirty[0]){n(4,k=[]);for(var t of d)A(t.date,u)&&k.push(t)}16777217&e.$$.dirty[0]&&(n(5,x=A(u,D)),n(6,C=i.some(t=>A(t,u)))),9&e.$$.dirty[0]&&b&&Wi(b,()=>u)},[u,f,h,b,k,x,C,S,s,l,a,c,g,m,v,$,y,w,_,function(e){return Gt(e)?t=>{e({allDay:!0,date:N(u),dateStr:ji(u),dayEl:b,jsEvent:t,view:Xt(o),resource:p})}:void 0},function(e,t){return t&&e.action?t=>e.action.selectTimeGrid(u,b,t,T,r,!0):void 0},E,d,p,i,function(t,e){K[t?\"unshift\":\"push\"](()=>{S[e]=t,n(7,S)})},function(t){K[t?\"unshift\":\"push\"](()=>{b=t,n(3,b)})}]}class ja extends i{constructor(t){super(),o(this,t,Pa,La,l,{date:0,chunks:22,longChunks:1,iChunks:2,resource:23},null,[-1,-1])}}function Ia(t,e,n){t=t.slice();return t[14]=e[n],t}function Fa(t){let r,n;return r=new ja({props:{date:t[14],chunks:t[2],longChunks:t[3],iChunks:t[4],resource:t[1]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.date=t[14]),4&e&&(n.chunks=t[2]),8&e&&(n.longChunks=t[3]),16&e&&(n.iChunks=t[4]),2&e&&(n.resource=t[1]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Ra(e){let o,r,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=Fa(Ia(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,t){var[n]=t;if(31&n){let t;for(i=e[0],t=0;t<i.length;t+=1){const r=Ia(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=Fa(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function Ua(e,t,n){let r,o,i,s=t[\"dates\"],l=t[\"resource\"],{_events:a,_iEvents:c,hiddenDays:u}=Yt(\"state\");Ht(e,a,t=>n(12,i=t)),Ht(e,c,t=>n(11,o=t)),Ht(e,u,t=>n(10,r=t));let d,f,h,p,g=[];return e.$$set=t=>{\"dates\"in t&&n(0,s=t.dates),\"resource\"in t&&n(1,l=t.resource)},e.$$.update=()=>{if(1&e.$$.dirty&&(n(8,h=s[0]),n(9,p=Oi(Wt(s[s.length-1])))),5894&e.$$.dirty){n(2,d=[]);for(var t of i)t.allDay&&\"background\"!==t.display&&is(t,h,p,l)&&(t=Ki(t,h,p),d.push(t));n(3,f=Zi(d,r))}3842&e.$$.dirty&&n(4,g=o.map(t=>{let e;return t&&t.allDay&&is(t,h,p,l)?Zi([e=Ki(t,h,p)],r):e=null,e}))},[s,l,d,f,g,a,c,u,h,p,r,o,i]}class za extends i{constructor(t){super(),o(this,t,Ua,Ra,l,{dates:0,resource:1})}}function Ba(t,e,n){t=t.slice();return t[11]=e[n],t}function Ga(t,e,n){t=t.slice();return t[11]=e[n],t}function Ha(t){let n,r,o,i=t[2].format(t[11])+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[1].day)},m(t,e){P(t,n,e),L(n,r)},p(t,e){5&e&&i!==(i=t[2].format(t[11])+\"\")&&Qo(r,i),2&e&&o!==(o=t[1].day)&&R(n,\"class\",o)},d(t){t&&j(n)}}}function Na(e){let o,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=Ha(Ga(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n)},p(e,n){if(7&n){let t;for(i=e[0],t=0;t<i.length;t+=1){var r=Ga(e,i,t);s[t]?s[t].p(r,n):(s[t]=Ha(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&j(o)}}}function Aa(t){let r,n;return r=new ea({props:{allDay:!0,$$slots:{default:[Ya]},$$scope:{ctx:t}}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};65537&e&&(n.$$scope={dirty:e,ctx:t}),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Ya(t){let r,n;return r=new za({props:{dates:t[0]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.dates=t[0]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Wa(t){let r,n;return r=new xa({props:{date:t[11]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e&&(n.date=t[11]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Va(e){let o,r,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=Wa(Ba(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,n){if(1&n){let t;for(i=e[0],t=0;t<i.length;t+=1){const r=Ba(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=Wa(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function Xa(t){let r,n,o,i,s,l=(r=new ea({props:{$$slots:{default:[Na]},$$scope:{ctx:t}}}),t[3]&&Aa(t));return i=new aa({props:{$$slots:{default:[Va]},$$scope:{ctx:t}}}),{c(){p(r.$$.fragment),n=F(),l&&l.c(),o=F(),p(i.$$.fragment)},m(t,e){g(r,t,e),P(t,n,e),l&&l.m(t,e),P(t,o,e),g(i,t,e),s=!0},p(t,e){var[e]=e,n={},n=(65543&e&&(n.$$scope={dirty:e,ctx:t}),r.$set(n),t[3]?l?(l.p(t,e),8&e&&B(l,1)):((l=Aa(t)).c(),B(l,1),l.m(o.parentNode,o)):l&&(U(),G(l,1,1,()=>{l=null}),z()),{});65537&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n)},i(t){s||(B(r.$$.fragment,t),B(l),B(i.$$.fragment,t),s=!0)},o(t){G(r.$$.fragment,t),G(l),G(i.$$.fragment,t),s=!1},d(t){O(r,t),t&&j(n),l&&l.d(t),t&&j(o),O(i,t)}}}function qa(t,e,n){let r,o,i,s,l,a=Yt(\"state\"),{_viewDates:c,_intlDayHeader:u,_viewClass:d,allDaySlot:f,theme:h}=a;return Ht(t,c,t=>n(0,o=t)),Ht(t,u,t=>n(2,s=t)),Ht(t,d,t=>n(9,r=t)),Ht(t,f,t=>n(3,l=t)),Ht(t,h,t=>n(1,i=t)),si(\"view-state\",new ql(a)),Nt(d,r=\"week\",r),[o,i,s,l,c,u,d,f,h]}class Ja extends i{constructor(t){super(),o(this,t,qa,Xa,l,{})}}var Ka={createOptions(t){t.buttonText.timeGridDay=\"day\",t.buttonText.timeGridWeek=\"week\",t.view=\"timeGridWeek\",t.views.timeGridDay={component:Ja,dayHeaderFormat:{weekday:\"long\"},duration:{days:1},titleFormat:{year:\"numeric\",month:\"long\",day:\"numeric\"}},t.views.timeGridWeek={component:Ja,duration:{weeks:1}}}};class Qa extends ql{constructor(t){var s;super(t),this._viewResources=xi([(s=t).resources,s.filterResourcesWithEvents,s._events,s._activeRange],t=>{let[e,n,r,o]=t,i=e;return i=(i=n?e.filter(t=>{for(var e of r)if(\"background\"!==e.display&&e.resourceIds.includes(t.id)&&e.start<o.end&&e.end>o.start)return!0;return!1}):i).length?i:s.resources.parse([{}])})}}function Za(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function tc(n){let r,o,i,s,l;return{c(){R(r=I(\"div\"),\"class\",o=n[2].day)},m(t,e){P(t,r,e),n[9](r),s||(l=qo(i=function(n,t){var e={update(t){for(;n.firstChild;)n.removeChild(n.lastChild);if(\"object\"==typeof t&&null!==t)if(t.domNodes)for(var e of t.domNodes)n.appendChild(e);else t.html&&(n.innerHTML=t.html);else n.innerText=t}};return e.update(t),e}.call(null,r,n[1])),s=!0)},p(t,e){var[e]=e;4&e&&o!==(o=t[2].day)&&R(r,\"class\",o),i&&Gt(i.update)&&2&e&&i.update.call(null,t[1])},i:zt,o:zt,d(t){t&&j(r),n[9](null),s=!1,l()}}}function ec(t,e,n){let r,o,i,s,l,a=e[\"resource\"],c=e[\"date\"],{resourceLabelContent:u,resourceLabelDidMount:d,theme:f}=Yt(\"state\");return Ht(t,u,t=>n(8,o=t)),Ht(t,d,t=>n(10,r=t)),Ht(t,f,t=>n(2,i=t)),oi(()=>{Gt(r)&&r({resource:a,date:c?Za(c):void 0,el:s})}),t.$$set=t=>{\"resource\"in t&&n(6,a=t.resource),\"date\"in t&&n(7,c=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,l=o?Gt(o)?o({resource:a,date:c?Za(c):void 0}):o:a.titleHTML?{html:a.titleHTML}:a.title)},[s,l,i,u,d,f,a,c,o,function(t){K[t?\"unshift\":\"push\"](()=>{s=t,n(0,s)})}]}class nc extends i{constructor(t){super(),o(this,t,ec,tc,l,{resource:6,date:7})}}function rc(t,e,n){t=t.slice();return t[17]=e[n],t}function oc(t,e,n){t=t.slice();return t[20]=e[n],t}function ic(t,e,n){t=t.slice();return t[26]=e[n],t}function sc(t,e,n){t=t.slice();return t[23]=e[n],t}function lc(t,e,n){t=t.slice();return t[26]=e[n],t}function ac(t,e,n){t=t.slice();return t[17]=e[n],t}function cc(t,e,n){t=t.slice();return t[20]=e[n],t}function uc(t){let r,n;return r=new nc({props:{resource:t[17]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};8&e[0]&&(n.resource=t[17]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function dc(t){let n,r,o,i=t[5].format(t[17])+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[4].day)},m(t,e){P(t,n,e),L(n,r)},p(t,e){40&e[0]&&i!==(i=t[5].format(t[17])+\"\")&&Qo(r,i),16&e[0]&&o!==(o=t[4].day)&&R(n,\"class\",o)},i:zt,o:zt,d(t){t&&j(n)}}}function fc(e){let r,t,o,i=e[3][1],s=[];for(let t=0;t<i.length;t+=1)s[t]=gc(cc(e,i,t));return{c(){r=I(\"div\");for(let t=0;t<s.length;t+=1)s[t].c();R(r,\"class\",t=e[4].days)},m(t,e){P(t,r,e);for(let t=0;t<s.length;t+=1)s[t].m(r,null);o=!0},p(e,n){if(60&n[0]){let t;for(i=e[3][1],t=0;t<i.length;t+=1){const o=cc(e,i,t);s[t]?(s[t].p(o,n),B(s[t],1)):(s[t]=gc(o),s[t].c(),B(s[t],1),s[t].m(r,null))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}(!o||16&n[0]&&t!==(t=e[4].days))&&R(r,\"class\",t)},i(t){if(!o){for(let t=0;t<i.length;t+=1)B(s[t]);o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);o=!1},d(t){t&&j(r),E(s,t)}}}function hc(t){let n,r,o,i=t[5].format(t[20])+\"\";return{c(){n=I(\"div\"),r=Jo(i),R(n,\"class\",o=t[4].day)},m(t,e){P(t,n,e),L(n,r)},p(t,e){40&e[0]&&i!==(i=t[5].format(t[20])+\"\")&&Qo(r,i),16&e[0]&&o!==(o=t[4].day)&&R(n,\"class\",o)},i:zt,o:zt,d(t){t&&j(n)}}}function pc(t){let r,n;return r=new nc({props:{resource:t[20],date:t[17]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};8&e[0]&&(n.resource=t[20]),8&e[0]&&(n.date=t[17]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function gc(t){let r,o,i,n;const s=[pc,hc],l=[];function a(t){return t[2]?0:1}return r=a(t),o=l[r]=s[r](t),{c(){o.c(),i=b()},m(t,e){l[r].m(t,e),P(t,i,e),n=!0},p(t,e){let n=r;(r=a(t))===n?l[r].p(t,e):(U(),G(l[n],1,1,()=>{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function mc(t){let r,o,i,s,l,a,c;const u=[dc,uc],d=[];function f(t){return t[2]?0:1}o=f(t),i=d[o]=u[o](t);let h=1<t[3][1].length&&fc(t);return{c(){r=I(\"div\"),i.c(),s=F(),h&&h.c(),l=F(),R(r,\"class\",a=t[4].resource)},m(t,e){P(t,r,e),d[o].m(r,null),L(r,s),h&&h.m(r,null),L(r,l),c=!0},p(t,e){let n=o;(o=f(t))===n?d[o].p(t,e):(U(),G(d[n],1,1,()=>{d[n]=null}),z(),(i=d[o])?i.p(t,e):(i=d[o]=u[o](t)).c(),B(i,1),i.m(r,s)),1<t[3][1].length?h?(h.p(t,e),8&e[0]&&B(h,1)):((h=fc(t)).c(),B(h,1),h.m(r,l)):h&&(U(),G(h,1,1,()=>{h=null}),z()),(!c||16&e[0]&&a!==(a=t[4].resource))&&R(r,\"class\",a)},i(t){c||(B(i),B(h),c=!0)},o(t){G(i),G(h),c=!1},d(t){t&&j(r),d[o].d(),h&&h.d()}}}function vc(e){let o,r,i=e[3][0],s=[];for(let t=0;t<i.length;t+=1)s[t]=mc(ac(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,n){if(60&n[0]){let t;for(i=e[3][0],t=0;t<i.length;t+=1){const r=ac(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=mc(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function $c(t){let r,n;return r=new ea({props:{allDay:!0,$$slots:{default:[Tc]},$$scope:{ctx:t}}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};23&e[0]|16&e[1]&&(n.$$scope={dirty:e,ctx:t}),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function yc(e){let o,r,i=e[1],s=[];for(let t=0;t<i.length;t+=1)s[t]=bc(ic(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,n){if(19&n[0]){let t;for(i=e[1],t=0;t<i.length;t+=1){const r=ic(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=bc(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function wc(e){let o,r,i=e[0],s=[];for(let t=0;t<i.length;t+=1)s[t]=_c(sc(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,n){if(19&n[0]){let t;for(i=e[0],t=0;t<i.length;t+=1){const r=sc(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=_c(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function bc(t){let r,o,n,i,s;return o=new za({props:{dates:t[0],resource:t[26]}}),{c(){r=I(\"div\"),p(o.$$.fragment),n=F(),R(r,\"class\",i=t[4].resource)},m(t,e){P(t,r,e),g(o,r,null),L(r,n),s=!0},p(t,e){var n={};1&e[0]&&(n.dates=t[0]),2&e[0]&&(n.resource=t[26]),o.$set(n),(!s||16&e[0]&&i!==(i=t[4].resource))&&R(r,\"class\",i)},i(t){s||(B(o.$$.fragment,t),s=!0)},o(t){G(o.$$.fragment,t),s=!1},d(t){t&&j(r),O(o)}}}function kc(t){let r,n;return r=new za({props:{dates:[t[23]],resource:t[26]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};1&e[0]&&(n.dates=[t[23]]),2&e[0]&&(n.resource=t[26]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function _c(e){let r,o,t,i,s=e[1],l=[];for(let t=0;t<s.length;t+=1)l[t]=kc(lc(e,s,t));return{c(){r=I(\"div\");for(let t=0;t<l.length;t+=1)l[t].c();o=F(),R(r,\"class\",t=e[4].resource)},m(t,e){P(t,r,e);for(let t=0;t<l.length;t+=1)l[t].m(r,null);L(r,o),i=!0},p(e,n){if(3&n[0]){let t;for(s=e[1],t=0;t<s.length;t+=1){const i=lc(e,s,t);l[t]?(l[t].p(i,n),B(l[t],1)):(l[t]=kc(i),l[t].c(),B(l[t],1),l[t].m(r,o))}for(U(),t=s.length;t<l.length;t+=1)(t=>G(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||16&n[0]&&t!==(t=e[4].resource))&&R(r,\"class\",t)},i(t){if(!i){for(let t=0;t<s.length;t+=1)B(l[t]);i=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)G(l[t]);i=!1},d(t){t&&j(r),E(l,t)}}}function Tc(t){let r,o,i,n;const s=[wc,yc],l=[];function a(t){return t[2]?0:1}return r=a(t),o=l[r]=s[r](t),{c(){o.c(),i=b()},m(t,e){l[r].m(t,e),P(t,i,e),n=!0},p(t,e){let n=r;(r=a(t))===n?l[r].p(t,e):(U(),G(l[n],1,1,()=>{l[n]=null}),z(),(o=l[r])?o.p(t,e):(o=l[r]=s[r](t)).c(),B(o,1),o.m(i.parentNode,i))},i(t){n||(B(o),n=!0)},o(t){G(o),n=!1},d(t){l[r].d(t),t&&j(i)}}}function xc(t){let r,n;return r=new xa({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){p(r.$$.fragment)},m(t,e){g(r,t,e),n=!0},p(t,e){var n={};12&e[0]&&(n.date=t[2]?t[17]:t[20]),12&e[0]&&(n.resource=t[2]?t[20]:t[17]),r.$set(n)},i(t){n||(B(r.$$.fragment,t),n=!0)},o(t){G(r.$$.fragment,t),n=!1},d(t){O(r,t)}}}function Cc(e){let r,o,t,i,s=e[3][1],l=[];for(let t=0;t<s.length;t+=1)l[t]=xc(oc(e,s,t));return{c(){r=I(\"div\");for(let t=0;t<l.length;t+=1)l[t].c();o=F(),R(r,\"class\",t=e[4].resource)},m(t,e){P(t,r,e);for(let t=0;t<l.length;t+=1)l[t].m(r,null);L(r,o),i=!0},p(e,n){if(12&n[0]){let t;for(s=e[3][1],t=0;t<s.length;t+=1){const i=oc(e,s,t);l[t]?(l[t].p(i,n),B(l[t],1)):(l[t]=xc(i),l[t].c(),B(l[t],1),l[t].m(r,o))}for(U(),t=s.length;t<l.length;t+=1)(t=>G(l[t],1,1,()=>{l[t]=null}))(t);z()}(!i||16&n[0]&&t!==(t=e[4].resource))&&R(r,\"class\",t)},i(t){if(!i){for(let t=0;t<s.length;t+=1)B(l[t]);i=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)G(l[t]);i=!1},d(t){t&&j(r),E(l,t)}}}function Dc(e){let o,r,i=e[3][0],s=[];for(let t=0;t<i.length;t+=1)s[t]=Cc(rc(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=b()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n),r=!0},p(e,n){if(28&n[0]){let t;for(i=e[3][0],t=0;t<i.length;t+=1){const r=rc(e,i,t);s[t]?(s[t].p(r,n),B(s[t],1)):(s[t]=Cc(r),s[t].c(),B(s[t],1),s[t].m(o.parentNode,o))}for(U(),t=i.length;t<s.length;t+=1)(t=>G(s[t],1,1,()=>{s[t]=null}))(t);z()}},i(t){if(!r){for(let t=0;t<i.length;t+=1)B(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)G(s[t]);r=!1},d(t){E(s,t),t&&j(o)}}}function Sc(t){let r,n,o,i,s,l=(r=new ea({props:{$$slots:{default:[vc]},$$scope:{ctx:t}}}),t[6]&&$c(t));return i=new aa({props:{$$slots:{default:[Dc]},$$scope:{ctx:t}}}),{c(){p(r.$$.fragment),n=F(),l&&l.c(),o=F(),p(i.$$.fragment)},m(t,e){g(r,t,e),P(t,n,e),l&&l.m(t,e),P(t,o,e),g(i,t,e),s=!0},p(t,e){var n={},n=(60&e[0]|16&e[1]&&(n.$$scope={dirty:e,ctx:t}),r.$set(n),t[6]?l?(l.p(t,e),64&e[0]&&B(l,1)):((l=$c(t)).c(),B(l,1),l.m(o.parentNode,o)):l&&(U(),G(l,1,1,()=>{l=null}),z()),{});28&e[0]|16&e[1]&&(n.$$scope={dirty:e,ctx:t}),i.$set(n)},i(t){s||(B(r.$$.fragment,t),B(l),B(i.$$.fragment,t),s=!0)},o(t){G(r.$$.fragment,t),G(l),G(i.$$.fragment,t),s=!1},d(t){O(r,t),t&&j(n),l&&l.d(t),t&&j(o),O(i,t)}}}function Ec(t,e,n){let r,o,i,s,l,a,c,u=Yt(\"state\"),{datesAboveResources:d,_viewDates:f,_intlDayHeader:h,_viewClass:p,allDaySlot:g,theme:m}=u;Ht(t,d,t=>n(2,i=t)),Ht(t,f,t=>n(0,r=t)),Ht(t,h,t=>n(5,a=t)),Ht(t,p,t=>n(14,s=t)),Ht(t,g,t=>n(6,c=t)),Ht(t,m,t=>n(4,l=t));var v=new Qa(u);si(\"view-state\",v);let $,y=v[\"_viewResources\"];return Ht(t,y,t=>n(1,o=t)),Nt(p,s=\"week\",s),t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,$=i?[r,o]:[o,r])},[r,o,i,$,l,a,c,d,f,h,p,g,m,y]}class Mc extends i{constructor(t){super(),o(this,t,Ec,Sc,l,{},null,[-1,-1])}}function Oc(t,e,n){let r,o,{resources:i,_resBgColor:s}=Yt(\"state\");return Ht(t,i,t=>n(2,r=t)),Ht(t,s,t=>n(3,o=t)),Nt(s,o=e=>r.find(t=>e.resourceIds.includes(t.id))?.eventBackgroundColor,o),[i,s]}class Lc extends i{constructor(t){super(),o(this,t,Oc,null,l,{})}}var Pc={createOptions(t){t.resources=[],t.datesAboveResources=!1,t.filterResourcesWithEvents=!1,t.resourceLabelContent=void 0,t.resourceLabelDidMount=void 0,t.buttonText.resourceTimeGridDay=\"day\",t.buttonText.resourceTimeGridWeek=\"week\",t.theme.resource=\"ec-resource\",t.theme.resourceTitle=\"ec-resource-title\",t.view=\"resourceTimeGridWeek\",t.views.resourceTimeGridDay={component:Mc,duration:{days:1}},t.views.resourceTimeGridWeek={component:Mc,duration:{weeks:1}}},createParsers(t,e){t.resources=jc},createStores(t){t._auxiliary.update(t=>[...t,Lc])}};function jc(t){return t.map(t=>({id:String(t.id),title:t.title||\"\",titleHTML:t.titleHTML||\"\",eventBackgroundColor:t.eventBackgroundColor}))}function Ic(t){return[Uc(Ni(t,1),1),Ni(t,3),zc(t)-1]}function Fc(t,e){var n=Uc(Uc(Ni(t,2),1),0),r=Ni(t,1),o=Ni(r,3),t=zc(t),r=zc(r)-1;return e?[n,o,r,t]:[n,o,t,r]}function Rc(t){var e=Ni(t,1),n=Ni(e,1);return[Uc(Uc(n,0),0),Ni(n,1),zc(t),zc(e),n.children]}function Uc(t,e){return t.children[e]}function zc(t){let e=0;for(;t=t.previousElementSibling;)++e;return e}let Bc=!1;function Gc(t,e){return Math.max(0,Math.min(e,t))}function Hc(t){return Math.floor(t)}const Nc=r[\"window\"];function Ac(n){let r,o;return{c:zt,m(t,e){r||(o=[At(Nc,\"pointermove\",n[31]),At(Nc,\"pointerup\",n[32]),At(Nc,\"pointercancel\",n[32]),At(Nc,\"scroll\",n[0]),At(Nc,\"selectstart\",function(){Gt(Yc(n[40]))&&Yc(n[40]).apply(this,arguments)}),At(Nc,\"contextmenu\",function(){Gt(Yc(n[41]))&&Yc(n[41]).apply(this,arguments)}),At(Nc,\"touchstart\",n[33]),At(Nc,\"touchmove\",n[39],{passive:!1})],r=!0)},p(t,e){n=t},i:zt,o:zt,d(t){r=!1,Bt(o)}}}function Yc(e){return t=>{e()&&t.preventDefault()}}function Wc(e,t,s){let i,r,z,l,B,a,c,o,G,H,N,A,Y,W,V,X,q,u,J,d,f,h,K,Q,Z,tt,et,nt,rt=zt,ot=()=>(rt(),rt=Ho(E,t=>s(71,c=t)),E);e.$$.on_destroy.push(()=>rt());let p,g,m,v,$,it,y,w,st,lt,b,k,_,T,x,C,D,S,E,M,O,{_iEvents:L,_iClass:at,_ignoreClick:ct,_events:ut,_viewDates:dt,_view:ft,datesAboveResources:ht,dragScroll:pt,eventDragMinDistance:gt,eventDragStart:mt,eventDragStop:vt,eventDrop:$t,eventLongPressDelay:yt,eventResizeStart:wt,eventResizeStop:bt,eventResize:kt,longPressDelay:_t,select:Tt,selectBackgroundColor:xt,selectLongPressDelay:Ct,selectMinDistance:Dt,slotDuration:St,slotHeight:Et,hiddenDays:Mt,unselect:Ot,unselectAuto:Lt,unselectCancel:Pt}=Yt(\"state\");Ht(e,L,t=>s(68,l=t)),Ht(e,at,t=>s(70,a=t)),Ht(e,ct,t=>s(87,K=t)),Ht(e,ut,t=>s(67,z=t)),Ht(e,dt,t=>s(82,u=t)),Ht(e,ft,t=>s(65,i=t)),Ht(e,ht,t=>s(86,h=t)),Ht(e,pt,t=>s(79,V=t)),Ht(e,gt,t=>s(88,Q=t)),Ht(e,mt,t=>s(80,X=t)),Ht(e,vt,t=>s(74,H=t)),Ht(e,$t,t=>s(72,o=t)),Ht(e,yt,t=>s(91,et=t)),Ht(e,wt,t=>s(81,q=t)),Ht(e,bt,t=>s(75,N=t)),Ht(e,kt,t=>s(73,G=t)),Ht(e,_t,t=>s(90,tt=t)),Ht(e,Tt,t=>s(76,A=t)),Ht(e,xt,t=>s(69,B=t)),Ht(e,Ct,t=>s(92,nt=t)),Ht(e,Dt,t=>s(89,Z=t)),Ht(e,St,t=>s(84,d=t)),Ht(e,Et,t=>s(85,f=t)),Ht(e,Mt,t=>s(83,J=t)),Ht(e,Ot,t=>s(66,r=t)),Ht(e,Lt,t=>s(78,W=t)),Ht(e,Pt,t=>s(77,Y=t));let P,j,jt,n,I=!1;function It(t){window.getSelection().removeAllRanges(),D=Hi(T),S=Hi(C),st=b=t.clientX,lt=k=t.clientY,\"mouse\"!==t.pointerType&&s(3,n=setTimeout(()=>{p&&(m=!0,F(t))},(U()?nt:et)??tt))}function F(t){let n=b-D.left,r=k-D.top;if(m||t&&\"mouse\"===t.pointerType&&Math.sqrt(Math.pow(b-st,2)+Math.pow(k-lt,2))>=(U()?Z:Q)){m=!0,Ut(t),Nt(at,a=P,a),Nt(ct,K=!0,K);let e=Hc(n/D.width);if(1===g)E&&(1===p?h?(o=Gc(Hc(e/c.length),u.length-1),O=Gc(e-o*c.length,c.length-1),e=o):(O=Gc(Hc(e/u.length),c.length-1),e-=O*u.length):h?e=Hc(e/c.length):e-=M*u.length),e=Gc(e,u.length-1),_=Mi({days:(u[e]-u[$])/1e3/60/60/24-y,seconds:I?0:(Hc(r/f)-w)*d.seconds});else{var o=7-J.length;e=Gc(e,o-1);let t=-1;for(;++t,0<(r-=x[t].offsetHeight)&&t<x.length-1;);_=Mi({days:(u[t*o+e]-u[it*o+$])/1e3/60/60/24-y})}l[0]||(U()?Nt(L,l[0]={id:\"{select}\",allDay:v.allDay,start:v.start,title:\"\",display:\"preview\",extendedProps:{},backgroundColor:B,resourceIds:v.resourceIds},l):(o=t,Gt(t=R()?q:X)&&t({event:ns(v),jsEvent:o,view:Xt(i)}),v.display=\"preview\",Nt(L,l[0]=rs(v),l),v.display=\"ghost\",ut.set(z))),Nt(L,l[0].end=Vt(Wt(v.end),_),l),R()?l[0].end<j&&(Nt(L,l[0].end=j,l),_=Mi((l[0].end-v.end)/1e3)):U()?l[0].end<v.end?(Nt(L,l[0].end=v.end,l),Nt(L,l[0].start=Vt(Wt(v.start),_),l)):Nt(L,l[0].start=v.start,l):(Nt(L,l[0].start=Vt(Wt(v.start),_),l),E&&(Nt(L,l[0].resourceIds=v.resourceIds.filter(t=>t!==c[M].id),l),l[0].resourceIds.push(c[O].id)))}var e;V&&(e=()=>{k<0&&window.scrollBy(0,Math.max(-10,k/3)),k<S.top&&(C.scrollTop+=Math.max(-10,(k-S.top)/3)),k>window.innerHeight&&window.scrollBy(0,Math.min(10,(k-window.innerHeight)/3)),k>S.bottom&&(C.scrollTop+=Math.min(10,(k-S.bottom)/3))},Bc||(Bc=!0,window.requestAnimationFrame(()=>{e(),Bc=!1})))}function Ft(){Nt(L,l[0]=null,l)}function Rt(t,e){t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,ut.set(z)}function R(){return 2===p}function U(){return 3===p}function Ut(t){jt&&(jt=!1,Ft(),Gt(r))&&r({jsEvent:t,view:Xt(i)})}return ft.subscribe(Ut),[function(){p&&(D=Hi(T),S=Hi(C),F())},p,E,n,L,at,ct,ut,dt,ft,ht,pt,gt,mt,vt,$t,yt,wt,bt,kt,_t,Tt,xt,Ct,Dt,St,Et,Mt,Ot,Lt,Pt,function(t){p&&t.isPrimary&&(b=t.clientX,k=t.clientY,F(t))},function(r){if(!jt||!W||Y&&r.target.closest(Y)||Ut(r),p&&r.isPrimary){if(m)if(U()){var t,e;jt=!0,Gt(A)&&({start:t,end:e}=ns(l[0]),A({start:t,end:e,startStr:ji(l[0].start),endStr:ji(l[0].end),allDay:I,jsEvent:r,view:Xt(i),resource:void 0!==M?c[M]:void 0}))}else{v.display=\"auto\";let e=R()?N:H,n=(Gt(e)&&e({event:ns(v),jsEvent:r,view:Xt(i)}),rs(v));if(Rt(v,l[0]),Ft(),Gt(e=R()?G:o)){let t=v;e(Ci(R()?{endDelta:_}:{delta:_,oldResource:M!==O?c[M]:void 0,newResource:M!==O?c[O]:void 0},{event:ns(v),oldEvent:ns(n),jsEvent:r,view:Xt(i),revert(){Rt(t,n)}}))}}T=x=C=null,M=O=void 0,s(1,p=g=m=!1),I=!1,Nt(at,a=void 0,a),ot(s(2,E=void 0)),n&&(clearTimeout(n),s(3,n=void 0))}},function(r){if(p){let t=r.target,e=[],n=()=>Bt(e);e.push(At(t,\"touchmove\",Yc(()=>m))),e.push(At(t,\"touchend\",n)),e.push(At(t,\"touchcancel\",n))}},function(t,e,n,r,o,i){!p&&n.isPrimary&&(s(1,p=i?2:1),g=1,v=t,ot(s(2,E=r)),I=o,P=i?o?\"resizingX\":\"resizingY\":\"dragging\",t=Ni(e,2),r?[T,C,$,M]=Fc(t,h):[T,C,$]=Ic(t),It(n),w=Hc((n.clientY-D.top)/f),y=0,!o||r&&h||(y=Hc((n.clientX-D.left)/D.width)-$-(M||0)*u.length),i&&(j=Vt(Wt(v.start),d)),F(n))},function(t,e,n,r,o){!p&&n.isPrimary&&(s(1,p=o?2:1),g=2,v=t,P=o?\"resizingX\":\"dragging\",t=Ni(e,r?3:2),[T,C,$,it,x]=Rc(t),It(n),y=r?0:Hc((n.clientX-D.left)/D.width)-$,o&&((j=Wt(v.start)).setUTCHours(v.end.getUTCHours(),v.end.getUTCMinutes(),v.end.getUTCSeconds()),j<v.start)&&Oi(j),F(n))},function(t,e,n,r,o,i){!p&&n.isPrimary&&(s(1,p=3),g=1,ot(s(2,E=r)),I=i,P=\"selecting\",r?[T,C,$,M]=Fc(e,h):[T,C,$]=Ic(e),It(n),w=Hc((n.clientY-D.top)/f),y=0,!i||r&&h||(y=Hc((n.clientX-D.left)/D.width)-$-(M||0)*u.length),e=Wt(t),i||Vt(e,d,w+o.min.seconds/d.seconds),v={allDay:i,start:e,end:i?Oi(Wt(e)):Vt(Wt(e),d),resourceIds:E?[c[M].id]:[]},F(n))},function(t,e,n){!p&&n.isPrimary&&(s(1,p=3),g=2,P=\"selecting\",[T,C,$,it,x]=Rc(e),It(n),y=Hc((n.clientX-D.left)/D.width)-$,e=Wt(t),v={allDay:!1,start:e,end:Oi(Wt(e)),resourceIds:[]},F(n))},Ut,function(t){li.call(this,e,t)},()=>p,()=>n]}class Vc extends i{constructor(t){super(),o(this,t,Wc,Ac,l,{dragTimeGrid:34,dragDayGrid:35,selectTimeGrid:36,selectDayGrid:37,handleScroll:0,unselect:38},null,[-1,-1,-1,-1])}get dragTimeGrid(){return this.$$.ctx[34]}get dragDayGrid(){return this.$$.ctx[35]}get selectTimeGrid(){return this.$$.ctx[36]}get selectDayGrid(){return this.$$.ctx[37]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[38]}}function Xc(n){let r,o;return{c:zt,m(t,e){r||(o=[At(window,\"pointermove\",n[5]),At(window,\"scroll\",n[0])],r=!0)},p:zt,i:zt,o:zt,d(t){r=!1,Bt(o)}}}function qc(t){return t.isPrimary&&\"mouse\"===t.pointerType}function Jc(t,e,i){let n,r,o,s,l=zt,a=()=>(l(),l=Ho(p,t=>i(17,o=t)),p);t.$$.on_destroy.push(()=>l());let c,u,d,f,h,p,g,{_iEvents:m,slotDuration:v,slotHeight:$}=Yt(\"state\");function y(){var t;u&&(g=d?(t=c-f.top,Vt(Wt(u),r,Hc(t/s+o.min.seconds/r.seconds))):u,n[1]||Nt(m,n[1]={id:\"{pointer}\",title:\"\",display:\"pointer\",extendedProps:{},backgroundColor:\"transparent\"},n),Nt(m,n[1].start=g,n),Nt(m,n[1].end=Vt(Wt(g),r),n),Nt(m,n[1].resourceIds=h?[h.id]:[],n))}function w(){u=d=Nt(m,n[1]=null,n)}return Ht(t,m,t=>i(9,n=t)),Ht(t,v,t=>i(16,r=t)),Ht(t,$,t=>i(18,s=t)),t.$$.update=()=>{512&t.$$.dirty&&n[0]&&w()},[function(){d&&(f=Hi(d),y())},p,m,v,$,function(t){qc(t)&&(c=t.clientY,y())},function(t,e,n,r,o){qc(n)&&(u=t,d=e,f=Hi(d),c=n.clientY,a(i(1,p=r)),h=o)},function(t,e){qc(e)&&(u=t,d=null,c=a(i(1,p=h=void 0)))},function(t){qc(t)&&w()},n]}class Kc extends i{constructor(t){super(),o(this,t,Jc,Xc,l,{enterTimeGrid:6,enterDayGrid:7,leave:8,handleScroll:0})}get enterTimeGrid(){return this.$$.ctx[6]}get enterDayGrid(){return this.$$.ctx[7]}get leave(){return this.$$.ctx[8]}get handleScroll(){return this.$$.ctx[0]}}function Qc(n){let r,o,i,s;return{c(){R(r=I(\"div\"),\"class\",o=n[2].resizer)},m(t,e){P(t,r,e),i||(s=At(r,\"pointerdown\",n[5]),i=!0)},p(t,e){4&e&&o!==(o=t[2].resizer)&&R(r,\"class\",o)},d(t){t&&j(r),i=!1,s()}}}function Zc(t){let n,r=\"auto\"===t[0].display&&t[1](t[0]),o=r&&Qc(t);return{c(){o&&o.c(),n=b()},m(t,e){o&&o.m(t,e),P(t,n,e)},p(t,e){var[e]=e;(r=3&e?\"auto\"===t[0].display&&t[1](t[0]):r)?o?o.p(t,e):((o=Qc(t)).c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:zt,o:zt,d(t){o&&o.d(t),t&&j(n)}}}function tu(e,t,n){let r,o,i=t[\"event\"],{theme:s,_resizable:l}=Yt(\"state\");return Ht(e,s,t=>n(2,o=t)),Ht(e,l,t=>n(1,r=t)),e.$$set=t=>{\"event\"in t&&n(0,i=t.event)},[i,r,o,s,l,function(t){li.call(this,e,t)}]}class eu extends i{constructor(t){super(),o(this,t,tu,Zc,l,{event:0})}}function nu(e){let n,r;return n=new Kc({props:{}}),e[18](n),{c(){p(n.$$.fragment)},m(t,e){g(n,t,e),r=!0},p(t,e){n.$set({})},i(t){r||(B(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){e[18](null),O(n,t)}}}function ru(e){let n,r,o,i,s=(n=new Vc({props:{}}),e[17](n),e[1]&&nu(e));return{c(){p(n.$$.fragment),r=F(),s&&s.c(),o=b()},m(t,e){g(n,t,e),P(t,r,e),s&&s.m(t,e),P(t,o,e),i=!0},p(t,e){var[e]=e;n.$set({}),t[1]?s?(s.p(t,e),2&e&&B(s,1)):((s=nu(t)).c(),B(s,1),s.m(o.parentNode,o)):s&&(U(),G(s,1,1,()=>{s=null}),z())},i(t){i||(B(n.$$.fragment,t),B(s),i=!0)},o(t){G(n.$$.fragment,t),G(s),i=!1},d(t){e[17](null),O(n,t),t&&j(r),s&&s.d(t),t&&j(o)}}}function ou(t,e,n){let r,o,i,s,l,a,c,u,d,f,{theme:h,editable:p,eventStartEditable:g,eventDurationEditable:m,pointer:v,_interaction:$,_classes:y,_draggable:w,_resizable:b,_scroll:k}=Yt(\"state\");return Ht(t,h,t=>n(16,u=t)),Ht(t,p,t=>n(12,i=t)),Ht(t,g,t=>n(14,a=t)),Ht(t,m,t=>n(13,s=t)),Ht(t,v,t=>n(1,f=t)),Ht(t,$,t=>n(0,r=t)),Ht(t,y,t=>n(21,d=t)),Ht(t,w,t=>n(15,c=t)),Ht(t,b,t=>n(20,l=t)),Ht(t,k,t=>n(19,o=t)),Nt($,r.resizer=eu,r),Nt(k,o=()=>{for(var t of Object.values(r))t?.handleScroll?.()},o),t.$$.update=()=>{20480&t.$$.dirty&&Nt(w,c=t=>(t.startEditable??a)||(t.editable??i),c),98304&t.$$.dirty&&Nt(y,d=(t,e)=>{switch(e.display){case\"auto\":return t+(c(e)?\" \"+u.draggable:\"\");case\"ghost\":return u.event+\" \"+u.ghost;case\"preview\":return u.event+\" \"+u.preview;case\"pointer\":return u.event+\" \"+u.pointer;default:return t}},d),12288&t.$$.dirty&&Nt(b,l=t=>(t.durationEditable??s)||(t.editable??i),l)},[r,f,h,p,g,m,v,$,y,w,b,k,i,s,a,c,u,function(t){K[t?\"unshift\":\"push\"](()=>{r.action=t,$.set(r)})},function(t){K[t?\"unshift\":\"push\"](()=>{r.pointer=t,$.set(r)})}]}class iu extends i{constructor(t){super(),o(this,t,ou,ru,l,{})}}var su={createOptions(t){t.dragScroll=!0,t.editable=!1,t.eventDragMinDistance=5,t.eventDragStart=void 0,t.eventDragStop=void 0,t.eventDrop=void 0,t.eventDurationEditable=!0,t.eventLongPressDelay=void 0,t.eventResizeStart=void 0,t.eventResizeStop=void 0,t.eventResize=void 0,t.eventStartEditable=!0,t.longPressDelay=1e3,t.pointer=!1,t.select=void 0,t.selectBackgroundColor=void 0,t.selectLongPressDelay=void 0,t.selectMinDistance=5,t.unselect=void 0,t.unselectAuto=!0,t.unselectCancel=\"\",t.theme.draggable=\"ec-draggable\",t.theme.ghost=\"ec-ghost\",t.theme.preview=\"ec-preview\",t.theme.pointer=\"ec-pointer\",t.theme.resizer=\"ec-resizer\",t.theme.dragging=\"ec-dragging\",t.theme.resizingY=\"ec-resizing-y\",t.theme.resizingX=\"ec-resizing-x\",t.theme.selecting=\"ec-selecting\"},createStores(t){t._auxiliary.update(t=>[...t,iu])}};return class extends Gs{constructor(t,e){super({target:t,props:{plugins:[Cl,Xl,Ka,Pc,su],options:e}})}get view(){return this.getView()}}}();","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e(require(\"@popperjs/core\")):\"function\"==typeof define&&define.amd?define([\"@popperjs/core\"],e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,function(t){\"use strict\";function j(t){var e,i=Object.create(null,{[Symbol.toStringTag]:{value:\"Module\"}});if(t)for(const s in t)\"default\"!==s&&(e=Object.getOwnPropertyDescriptor(t,s),Object.defineProperty(i,s,e.get?e:{enumerable:!0,get:()=>t[s]}));return i.default=t,Object.freeze(i)}const i=j(t),F=1e3,z=\"transitionend\",H=t=>t=t&&window.CSS&&window.CSS.escape?t.replace(/#([^\\s\"#']+)/g,(t,e)=>\"#\"+CSS.escape(e)):t,B=t=>{t.dispatchEvent(new Event(z))},o=t=>!(!t||\"object\"!=typeof t)&&void 0!==(t=void 0!==t.jquery?t[0]:t).nodeType,s=t=>o(t)?t.jquery?t[0]:t:\"string\"==typeof t&&0<t.length?document.querySelector(H(t)):null,n=t=>{if(!o(t)||0===t.getClientRects().length)return!1;var e=\"visible\"===getComputedStyle(t).getPropertyValue(\"visibility\"),i=t.closest(\"details:not([open])\");if(i&&i!==t){t=t.closest(\"summary\");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return e},r=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains(\"disabled\")||(void 0!==t.disabled?t.disabled:t.hasAttribute(\"disabled\")&&\"false\"!==t.getAttribute(\"disabled\")),q=t=>{var e;return document.documentElement.attachShadow?\"function\"==typeof t.getRootNode?(e=t.getRootNode())instanceof ShadowRoot?e:null:t instanceof ShadowRoot?t:t.parentNode?q(t.parentNode):null:null},a=()=>{},c=t=>{t.offsetHeight},W=()=>window.jQuery&&!document.body.hasAttribute(\"data-bs-no-jquery\")?window.jQuery:null,$=[],l=()=>\"rtl\"===document.documentElement.dir;t=s=>{var t;t=()=>{const t=W();if(t){const e=s.NAME,i=t.fn[e];t.fn[e]=s.jQueryInterface,t.fn[e].Constructor=s,t.fn[e].noConflict=()=>(t.fn[e]=i,s.jQueryInterface)}},\"loading\"===document.readyState?($.length||document.addEventListener(\"DOMContentLoaded\",()=>{for(const t of $)t()}),$.push(t)):t()};const h=(t,e=[],i=t)=>\"function\"==typeof t?t(...e):i,R=(i,s,t=!0)=>{if(t){t=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);var t=Number.parseFloat(e),s=Number.parseFloat(i);return t||s?(e=e.split(\",\")[0],i=i.split(\",\")[0],(Number.parseFloat(e)+Number.parseFloat(i))*F):0})(s)+5;let e=!1;const n=({target:t})=>{t===s&&(e=!0,s.removeEventListener(z,n),h(i))};s.addEventListener(z,n),setTimeout(()=>{e||B(s)},t)}else h(i)},V=(t,e,i,s)=>{var n=t.length;let o=t.indexOf(e);return-1===o?!i&&s?t[n-1]:t[0]:(o+=i?1:-1,s&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},K=/[^.]*(?=\\..*)\\.|.*/,Q=/\\..*/,X=/::\\d+$/,Y={};let U=1;const G={mouseenter:\"mouseover\",mouseleave:\"mouseout\"},J=new Set([\"click\",\"dblclick\",\"mouseup\",\"mousedown\",\"contextmenu\",\"mousewheel\",\"DOMMouseScroll\",\"mouseover\",\"mouseout\",\"mousemove\",\"selectstart\",\"selectend\",\"keydown\",\"keypress\",\"keyup\",\"orientationchange\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\",\"pointerdown\",\"pointermove\",\"pointerup\",\"pointerleave\",\"pointercancel\",\"gesturestart\",\"gesturechange\",\"gestureend\",\"focus\",\"blur\",\"change\",\"reset\",\"select\",\"submit\",\"focusin\",\"focusout\",\"load\",\"unload\",\"beforeunload\",\"resize\",\"move\",\"DOMContentLoaded\",\"readystatechange\",\"error\",\"abort\",\"scroll\"]);function Z(t,e){return e&&e+\"::\"+U++||t.uidEvent||U++}function tt(t){var e=Z(t);return t.uidEvent=e,Y[e]=Y[e]||{},Y[e]}function et(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function it(t,e,i){var s=\"string\"==typeof e,e=!s&&e||i;let n=ot(t);return[s,e,n=J.has(n)?n:t]}function st(s,n,o,r,a){if(\"string\"==typeof n&&s){let[t,e,i]=it(n,o,r);n in G&&(e=(l=e,function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return l.call(this,t)}));var l,c,h,d,u,_,r=tt(s),r=r[i]||(r[i]={}),g=et(r,e,t?o:null);g?g.oneOff=g.oneOff&&a:(g=Z(e,n.replace(K,\"\")),(n=t?(d=s,u=o,_=e,function e(i){var s=d.querySelectorAll(u);for(let t=i[\"target\"];t&&t!==this;t=t.parentNode)for(const n of s)if(n===t)return rt(i,{delegateTarget:t}),e.oneOff&&p.off(d,i.type,u,_),_.apply(t,[i])}):(c=s,h=e,function t(e){return rt(e,{delegateTarget:c}),t.oneOff&&p.off(c,e.type,h),h.apply(c,[e])})).delegationSelector=t?o:null,n.callable=e,n.oneOff=a,r[n.uidEvent=g]=n,s.addEventListener(i,n,t))}}function nt(t,e,i,s,n){s=et(e[i],s,n);s&&(t.removeEventListener(i,s,Boolean(n)),delete e[i][s.uidEvent])}function ot(t){return t=t.replace(Q,\"\"),G[t]||t}const p={on(t,e,i,s){st(t,e,i,s,!1)},one(t,e,i,s){st(t,e,i,s,!0)},off(t,e,i,s){if(\"string\"==typeof e&&t){var n,o,[s,r,a]=it(e,i,s),l=a!==e,c=tt(t),h=c[a]||{},d=e.startsWith(\".\");if(void 0!==r)return Object.keys(h).length?void nt(t,c,a,r,s?i:null):void 0;if(d)for(const y of Object.keys(c)){_=u=b=f=m=p=g=void 0;var u,_,g=t,p=c,m=y,f=e.slice(1),b=p[m]||{};for([u,_]of Object.entries(b))u.includes(f)&&nt(g,p,m,_.callable,_.delegationSelector)}for([n,o]of Object.entries(h)){var v=n.replace(X,\"\");l&&!e.includes(v)||nt(t,c,a,o.callable,o.delegationSelector)}}},trigger(t,e,i){if(\"string\"!=typeof e||!t)return null;var s=W();let n=null,o=!0,r=!0,a=!1;e!==ot(e)&&s&&(n=s.Event(e,i),s(t).trigger(n),o=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());s=rt(s=new Event(e,{bubbles:o,cancelable:!0}),i);return a&&s.preventDefault(),r&&t.dispatchEvent(s),s.defaultPrevented&&n&&n.preventDefault(),s}};function rt(e,t={}){for(const[i,s]of Object.entries(t))try{e[i]=s}catch(t){Object.defineProperty(e,i,{configurable:!0,get(){return s}})}return e}const d=new Map,at={set(t,e,i){d.has(t)||d.set(t,new Map);t=d.get(t);t.has(e)||0===t.size?t.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(t.keys())[0]}.`)},get(t,e){return d.has(t)&&d.get(t).get(e)||null},remove(t,e){var i;d.has(t)&&((i=d.get(t)).delete(e),0===i.size)&&d.delete(t)}};function lt(e){if(\"true\"===e)return!0;if(\"false\"===e)return!1;if(e===Number(e).toString())return Number(e);if(\"\"===e||\"null\"===e)return null;if(\"string\"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function ct(t){return t.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}const u={setDataAttribute(t,e,i){t.setAttribute(\"data-bs-\"+ct(e),i)},removeDataAttribute(t,e){t.removeAttribute(\"data-bs-\"+ct(e))},getDataAttributes(e){if(!e)return{};var i={};for(const s of Object.keys(e.dataset).filter(t=>t.startsWith(\"bs\")&&!t.startsWith(\"bsConfig\"))){let t=s.replace(/^bs/,\"\");i[t=t.charAt(0).toLowerCase()+t.slice(1,t.length)]=lt(e.dataset[s])}return i},getDataAttribute(t,e){return lt(t.getAttribute(\"data-bs-\"+ct(e)))}};class e{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method \"NAME\", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){var i=o(e)?u.getDataAttribute(e,\"config\"):{};return{...this.constructor.Default,...\"object\"==typeof i?i:{},...o(e)?u.getDataAttributes(e):{},...\"object\"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(var[i,s]of Object.entries(e)){var n=t[i],n=o(n)?\"element\":null==(n=n)?\"\"+n:Object.prototype.toString.call(n).match(/\\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option \"${i}\" provided type \"${n}\" but expected type \"${s}\".`)}}}class _ extends e{constructor(t,e){super(),(t=s(t))&&(this._element=t,this._config=this._getConfig(e),at.set(this._element,this.constructor.DATA_KEY,this))}dispose(){at.remove(this._element,this.constructor.DATA_KEY),p.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){R(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return at.get(s(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,\"object\"==typeof e?e:null)}static get VERSION(){return\"5.3.0-alpha1\"}static get DATA_KEY(){return\"bs.\"+this.NAME}static get EVENT_KEY(){return\".\"+this.DATA_KEY}static eventName(t){return\"\"+t+this.EVENT_KEY}}const ht=e=>{let i=e.getAttribute(\"data-bs-target\");if(!i||\"#\"===i){let t=e.getAttribute(\"href\");if(!t||!t.includes(\"#\")&&!t.startsWith(\".\"))return null;t.includes(\"#\")&&!t.startsWith(\"#\")&&(t=\"#\"+t.split(\"#\")[1]),i=t&&\"#\"!==t?t.trim():null}return H(i)},g={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(t=>t.matches(e))},parents(t,e){var i=[];let s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){var e=[\"a\",\"button\",\"input\",\"textarea\",\"select\",\"details\",\"[tabindex]\",'[contenteditable=\"true\"]'].map(t=>t+':not([tabindex^=\"-\"])').join(\",\");return this.find(e,t).filter(t=>!r(t)&&n(t))},getSelectorFromElement(t){t=ht(t);return t&&g.findOne(t)?t:null},getElementFromSelector(t){t=ht(t);return t?g.findOne(t):null},getMultipleElementsFromSelector(t){t=ht(t);return t?g.find(t):[]}};var dt=(e,i=\"hide\")=>{var t=\"click.dismiss\"+e.EVENT_KEY;const s=e.NAME;p.on(document,t,`[data-bs-dismiss=\"${s}\"]`,function(t){[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),r(this)||(t=g.getElementFromSelector(this)||this.closest(\".\"+s),e.getOrCreateInstance(t)[i]())})};class ut extends _{static get NAME(){return\"alert\"}close(){var t;p.trigger(this._element,\"close.bs.alert\").defaultPrevented||(this._element.classList.remove(\"show\"),t=this._element.classList.contains(\"fade\"),this._queueCallback(()=>this._destroyElement(),this._element,t))}_destroyElement(){this._element.remove(),p.trigger(this._element,\"closed.bs.alert\"),this.dispose()}static jQueryInterface(e){return this.each(function(){var t=ut.getOrCreateInstance(this);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e](this)}})}}dt(ut,\"close\"),t(ut);const _t='[data-bs-toggle=\"button\"]';class gt extends _{static get NAME(){return\"button\"}toggle(){this._element.setAttribute(\"aria-pressed\",this._element.classList.toggle(\"active\"))}static jQueryInterface(e){return this.each(function(){var t=gt.getOrCreateInstance(this);\"toggle\"===e&&t[e]()})}}p.on(document,\"click.bs.button.data-api\",_t,t=>{t.preventDefault();t=t.target.closest(_t);gt.getOrCreateInstance(t).toggle()}),t(gt);const m=\".bs.swipe\",pt=(m,m,m,m,m,{endCallback:null,leftCallback:null,rightCallback:null}),mt={endCallback:\"(function|null)\",leftCallback:\"(function|null)\",rightCallback:\"(function|null)\"};class ft extends e{constructor(t,e){super(),(this._element=t)&&ft.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return pt}static get DefaultType(){return mt}static get NAME(){return\"swipe\"}dispose(){p.off(this._element,m)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),h(this._config.endCallback)}_move(t){this._deltaX=t.touches&&1<t.touches.length?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){var t=Math.abs(this._deltaX);t<=40||(t=t/this._deltaX,this._deltaX=0,t&&h(0<t?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(p.on(this._element,\"pointerdown.bs.swipe\",t=>this._start(t)),p.on(this._element,\"pointerup.bs.swipe\",t=>this._end(t)),this._element.classList.add(\"pointer-event\")):(p.on(this._element,\"touchstart.bs.swipe\",t=>this._start(t)),p.on(this._element,\"touchmove.bs.swipe\",t=>this._move(t)),p.on(this._element,\"touchend.bs.swipe\",t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(\"pen\"===t.pointerType||\"touch\"===t.pointerType)}static isSupported(){return\"ontouchstart\"in document.documentElement||0<navigator.maxTouchPoints}}var f=\".bs.carousel\";const b=\"next\",v=\"prev\",y=\"left\",bt=\"right\",vt=\"slid\"+f;const yt=\"carousel\",wt=\"active\",At=\".active\",Et=\".carousel-item\";At,Et;const Tt={ArrowLeft:bt,ArrowRight:y},Ct={interval:5e3,keyboard:!0,pause:\"hover\",ride:!1,touch:!0,wrap:!0},kt={interval:\"(number|boolean)\",keyboard:\"boolean\",pause:\"(string|boolean)\",ride:\"(boolean|string)\",touch:\"boolean\",wrap:\"boolean\"};class w extends _{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=g.findOne(\".carousel-indicators\",this._element),this._addEventListeners(),this._config.ride===yt&&this.cycle()}static get Default(){return Ct}static get DefaultType(){return kt}static get NAME(){return\"carousel\"}next(){this._slide(b)}nextWhenVisible(){!document.hidden&&n(this._element)&&this.next()}prev(){this._slide(v)}pause(){this._isSliding&&B(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?p.one(this._element,vt,()=>this.cycle()):this.cycle())}to(t){var e,i=this._getItems();t>i.length-1||t<0||(this._isSliding?p.one(this._element,vt,()=>this.to(t)):(e=this._getItemIndex(this._getActive()))!==t&&(e=e<t?b:v,this._slide(e,i[t])))}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&p.on(this._element,\"keydown.bs.carousel\",t=>this._keydown(t)),\"hover\"===this._config.pause&&(p.on(this._element,\"mouseenter.bs.carousel\",()=>this.pause()),p.on(this._element,\"mouseleave.bs.carousel\",()=>this._maybeEnableCycle())),this._config.touch&&ft.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of g.find(\".carousel-item img\",this._element))p.on(e,\"dragstart.bs.carousel\",t=>t.preventDefault());var t={leftCallback:()=>this._slide(this._directionToOrder(y)),rightCallback:()=>this._slide(this._directionToOrder(bt)),endCallback:()=>{\"hover\"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ft(this._element,t)}_keydown(t){var e;/input|textarea/i.test(t.target.tagName)||(e=Tt[t.key])&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){var e;this._indicatorsElement&&((e=g.findOne(At,this._indicatorsElement)).classList.remove(wt),e.removeAttribute(\"aria-current\"),e=g.findOne(`[data-bs-slide-to=\"${t}\"]`,this._indicatorsElement))&&(e.classList.add(wt),e.setAttribute(\"aria-current\",\"true\"))}_updateInterval(){var t=this._activeElement||this._getActive();t&&(t=Number.parseInt(t.getAttribute(\"data-bs-interval\"),10),this._config.interval=t||this._config.defaultInterval)}_slide(e,t=null){if(!this._isSliding){const s=this._getActive();var i=e===b;const n=t||V(this._getItems(),s,i,this._config.wrap);if(n!==s){const o=this._getItemIndex(n),r=t=>p.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(s),to:o});t=r(\"slide.bs.carousel\");if(!t.defaultPrevented&&s&&n){t=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=n;const a=i?\"carousel-item-start\":\"carousel-item-end\",l=i?\"carousel-item-next\":\"carousel-item-prev\";n.classList.add(l),c(n),s.classList.add(a),n.classList.add(a);this._queueCallback(()=>{n.classList.remove(a,l),n.classList.add(wt),s.classList.remove(wt,l,a),this._isSliding=!1,r(vt)},s,this._isAnimated()),t&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains(\"slide\")}_getActive(){return g.findOne(\".active.carousel-item\",this._element)}_getItems(){return g.find(Et,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return l()?t===y?v:b:t===y?b:v}_orderToDirection(t){return l()?t===v?y:bt:t===v?bt:y}static jQueryInterface(e){return this.each(function(){var t=w.getOrCreateInstance(this,e);if(\"number\"==typeof e)t.to(e);else if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(document,\"click.bs.carousel.data-api\",\"[data-bs-slide], [data-bs-slide-to]\",function(t){var e=g.getElementFromSelector(this);e&&e.classList.contains(yt)&&(t.preventDefault(),t=w.getOrCreateInstance(e),(e=this.getAttribute(\"data-bs-slide-to\"))?t.to(e):\"next\"===u.getDataAttribute(this,\"slide\")?t.next():t.prev(),t._maybeEnableCycle())}),p.on(window,\"load.bs.carousel.data-api\",()=>{for(const t of g.find('[data-bs-ride=\"carousel\"]'))w.getOrCreateInstance(t)}),t(w);const St=\"show\",A=\"collapse\",Lt=\"collapsing\",Ot=(A,A,'[data-bs-toggle=\"collapse\"]'),It={parent:null,toggle:!0},Dt={parent:\"(null|element)\",toggle:\"boolean\"};class E extends _{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];for(const n of g.find(Ot)){var i=g.getSelectorFromElement(n),s=g.find(i).filter(t=>t===this._element);null!==i&&s.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return It}static get DefaultType(){return Dt}static get NAME(){return\"collapse\"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let t=[];if(!(t=this._config.parent?this._getFirstLevelChildren(\".collapse.show, .collapse.collapsing\").filter(t=>t!==this._element).map(t=>E.getOrCreateInstance(t,{toggle:!1})):t).length||!t[0]._isTransitioning){var e=p.trigger(this._element,\"show.bs.collapse\");if(!e.defaultPrevented){for(const s of t)s.hide();const i=this._getDimension();this._element.classList.remove(A),this._element.classList.add(Lt),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;e=\"scroll\"+(i[0].toUpperCase()+i.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Lt),this._element.classList.add(A,St),this._element.style[i]=\"\",p.trigger(this._element,\"shown.bs.collapse\")},this._element,!0),this._element.style[i]=this._element[e]+\"px\"}}}}hide(){if(!this._isTransitioning&&this._isShown()){var t=p.trigger(this._element,\"hide.bs.collapse\");if(!t.defaultPrevented){t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+\"px\",c(this._element),this._element.classList.add(Lt),this._element.classList.remove(A,St);for(const i of this._triggerArray){var e=g.getElementFromSelector(i);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;this._element.style[t]=\"\",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Lt),this._element.classList.add(A),p.trigger(this._element,\"hidden.bs.collapse\")},this._element,!0)}}}_isShown(t=this._element){return t.classList.contains(St)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=s(t.parent),t}_getDimension(){return this._element.classList.contains(\"collapse-horizontal\")?\"width\":\"height\"}_initializeChildren(){if(this._config.parent)for(const e of this._getFirstLevelChildren(Ot)){var t=g.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=g.find(\":scope .collapse .collapse\",this._config.parent);return g.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(\"collapsed\",!e),i.setAttribute(\"aria-expanded\",e)}static jQueryInterface(e){const i={};return\"string\"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),this.each(function(){var t=E.getOrCreateInstance(this,i);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(document,\"click.bs.collapse.data-api\",Ot,function(t){(\"A\"===t.target.tagName||t.delegateTarget&&\"A\"===t.delegateTarget.tagName)&&t.preventDefault();for(const e of g.getMultipleElementsFromSelector(this))E.getOrCreateInstance(e,{toggle:!1}).toggle()}),t(E);const Nt=\"dropdown\";var f=\".bs.dropdown\",T=\".data-api\";const Pt=\"ArrowDown\";var xt=\"click\"+f+T,f=\"keydown\"+f+T;const C=\"show\",k='[data-bs-toggle=\"dropdown\"]:not(.disabled):not(:disabled)',Mt=(k,\".dropdown-menu\"),jt=l()?\"top-end\":\"top-start\",Ft=l()?\"top-start\":\"top-end\",zt=l()?\"bottom-end\":\"bottom-start\",Ht=l()?\"bottom-start\":\"bottom-end\",Bt=l()?\"left-start\":\"right-start\",qt=l()?\"right-start\":\"left-start\",Wt={autoClose:!0,boundary:\"clippingParents\",display:\"dynamic\",offset:[0,2],popperConfig:null,reference:\"toggle\"},$t={autoClose:\"(boolean|string)\",boundary:\"(string|element)\",display:\"string\",offset:\"(array|string|function)\",popperConfig:\"(null|object|function)\",reference:\"(string|element|object)\"};class S extends _{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=g.next(this._element,Mt)[0]||g.prev(this._element,Mt)[0]||g.findOne(Mt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wt}static get DefaultType(){return $t}static get NAME(){return Nt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!r(this._element)&&!this._isShown()){var t={relatedTarget:this._element},e=p.trigger(this._element,\"show.bs.dropdown\",t);if(!e.defaultPrevented){if(this._createPopper(),\"ontouchstart\"in document.documentElement&&!this._parent.closest(\".navbar-nav\"))for(const i of[].concat(...document.body.children))p.on(i,\"mouseover\",a);this._element.focus(),this._element.setAttribute(\"aria-expanded\",!0),this._menu.classList.add(C),this._element.classList.add(C),p.trigger(this._element,\"shown.bs.dropdown\",t)}}}hide(){var t;!r(this._element)&&this._isShown()&&(t={relatedTarget:this._element},this._completeHide(t))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){var e=p.trigger(this._element,\"hide.bs.dropdown\",t);if(!e.defaultPrevented){if(\"ontouchstart\"in document.documentElement)for(const i of[].concat(...document.body.children))p.off(i,\"mouseover\",a);this._popper&&this._popper.destroy(),this._menu.classList.remove(C),this._element.classList.remove(C),this._element.setAttribute(\"aria-expanded\",\"false\"),u.removeDataAttribute(this._menu,\"popper\"),p.trigger(this._element,\"hidden.bs.dropdown\",t)}}_getConfig(t){if(\"object\"!=typeof(t=super._getConfig(t)).reference||o(t.reference)||\"function\"==typeof t.reference.getBoundingClientRect)return t;throw new TypeError(Nt.toUpperCase()+': Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.')}_createPopper(){if(void 0===i)throw new TypeError(\"Bootstrap's dropdowns require Popper (https://popper.js.org)\");let t=this._element;\"parent\"===this._config.reference?t=this._parent:o(this._config.reference)?t=s(this._config.reference):\"object\"==typeof this._config.reference&&(t=this._config.reference);var e=this._getPopperConfig();this._popper=i.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(C)}_getPlacement(){var t,e=this._parent;return e.classList.contains(\"dropend\")?Bt:e.classList.contains(\"dropstart\")?qt:e.classList.contains(\"dropup-center\")?\"top\":e.classList.contains(\"dropdown-center\")?\"bottom\":(t=\"end\"===getComputedStyle(this._menu).getPropertyValue(\"--bs-position\").trim(),e.classList.contains(\"dropup\")?t?Ft:jt:t?Ht:zt)}_detectNavbar(){return null!==this._element.closest(\".navbar\")}_getOffset(){const e=this._config[\"offset\"];return\"string\"==typeof e?e.split(\",\").map(t=>Number.parseInt(t,10)):\"function\"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){var t={placement:this._getPlacement(),modifiers:[{name:\"preventOverflow\",options:{boundary:this._config.boundary}},{name:\"offset\",options:{offset:this._getOffset()}}]};return!this._inNavbar&&\"static\"!==this._config.display||(u.setDataAttribute(this._menu,\"popper\",\"static\"),t.modifiers=[{name:\"applyStyles\",enabled:!1}]),{...t,...h(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){var i=g.find(\".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)\",this._menu).filter(t=>n(t));i.length&&V(i,e,t===Pt,!i.includes(e)).focus()}static jQueryInterface(e){return this.each(function(){var t=S.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}static clearMenus(t){if(2!==t.button&&(\"keyup\"!==t.type||\"Tab\"===t.key))for(const n of g.find('[data-bs-toggle=\"dropdown\"]:not(.disabled):not(:disabled).show')){var e,i,s=S.getInstance(n);s&&!1!==s._config.autoClose&&(e=(i=t.composedPath()).includes(s._menu),i.includes(s._element)||\"inside\"===s._config.autoClose&&!e||\"outside\"===s._config.autoClose&&e||s._menu.contains(t.target)&&(\"keyup\"===t.type&&\"Tab\"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName))||(i={relatedTarget:s._element},\"click\"===t.type&&(i.clickEvent=t),s._completeHide(i)))}}static dataApiKeydownHandler(t){var e=/input|textarea/i.test(t.target.tagName),i=\"Escape\"===t.key,s=[\"ArrowUp\",Pt].includes(t.key);!s&&!i||e&&!i||(t.preventDefault(),e=this.matches(k)?this:g.prev(this,k)[0]||g.next(this,k)[0]||g.findOne(k,t.delegateTarget.parentNode),i=S.getOrCreateInstance(e),s?(t.stopPropagation(),i.show(),i._selectMenuItem(t)):i._isShown()&&(t.stopPropagation(),i.hide(),e.focus()))}}p.on(document,f,k,S.dataApiKeydownHandler),p.on(document,f,Mt,S.dataApiKeydownHandler),p.on(document,xt,S.clearMenus),p.on(document,\"keyup.bs.dropdown.data-api\",S.clearMenus),p.on(document,xt,k,function(t){t.preventDefault(),S.getOrCreateInstance(this).toggle()}),t(S);const Rt=\".fixed-top, .fixed-bottom, .is-fixed, .sticky-top\",Vt=\".sticky-top\",Kt=\"padding-right\",Qt=\"margin-right\";class Xt{constructor(){this._element=document.body}getWidth(){var t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Kt,t=>t+e),this._setElementAttributes(Rt,Kt,t=>t+e),this._setElementAttributes(Vt,Qt,t=>t-e)}reset(){this._resetElementAttributes(this._element,\"overflow\"),this._resetElementAttributes(this._element,Kt),this._resetElementAttributes(Rt,Kt),this._resetElementAttributes(Vt,Qt)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,\"overflow\"),this._element.style.overflow=\"hidden\"}_setElementAttributes(t,i,s){const n=this.getWidth();this._applyManipulationCallback(t,t=>{var e;t!==this._element&&window.innerWidth>t.clientWidth+n||(this._saveInitialAttribute(t,i),e=window.getComputedStyle(t).getPropertyValue(i),t.style.setProperty(i,s(Number.parseFloat(e))+\"px\"))})}_saveInitialAttribute(t,e){var i=t.style.getPropertyValue(e);i&&u.setDataAttribute(t,e,i)}_resetElementAttributes(t,i){this._applyManipulationCallback(t,t=>{var e=u.getDataAttribute(t,i);null===e?t.style.removeProperty(i):(u.removeDataAttribute(t,i),t.style.setProperty(i,e))})}_applyManipulationCallback(t,e){if(o(t))e(t);else for(const i of g.find(t,this._element))e(i)}}const Yt=\"backdrop\",Ut=\"mousedown.bs.\"+Yt,Gt={className:\"modal-backdrop\",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:\"body\"},Jt={className:\"string\",clickCallback:\"(function|null)\",isAnimated:\"boolean\",isVisible:\"boolean\",rootElement:\"(element|string)\"};class Zt extends e{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Gt}static get DefaultType(){return Jt}static get NAME(){return Yt}show(t){var e;this._config.isVisible?(this._append(),e=this._getElement(),this._config.isAnimated&&c(e),e.classList.add(\"show\"),this._emulateAnimation(()=>{h(t)})):h(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(\"show\"),this._emulateAnimation(()=>{this.dispose(),h(t)})):h(t)}dispose(){this._isAppended&&(p.off(this._element,Ut),this._element.remove(),this._isAppended=!1)}_getElement(){var t;return this._element||((t=document.createElement(\"div\")).className=this._config.className,this._config.isAnimated&&t.classList.add(\"fade\"),this._element=t),this._element}_configAfterMerge(t){return t.rootElement=s(t.rootElement),t}_append(){var t;this._isAppended||(t=this._getElement(),this._config.rootElement.append(t),p.on(t,Ut,()=>{h(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(t){R(t,this._getElement(),this._config.isAnimated)}}const te=\".bs.focustrap\",ee=(te,te,\"backward\"),ie={autofocus:!0,trapElement:null},se={autofocus:\"boolean\",trapElement:\"element\"};class ne extends e{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ie}static get DefaultType(){return se}static get NAME(){return\"focustrap\"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),p.off(document,te),p.on(document,\"focusin.bs.focustrap\",t=>this._handleFocusin(t)),p.on(document,\"keydown.tab.bs.focustrap\",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,p.off(document,te))}_handleFocusin(t){var e=this._config[\"trapElement\"];t.target===document||t.target===e||e.contains(t.target)||(0===(t=g.focusableChildren(e)).length?e:this._lastTabNavDirection===ee?t[t.length-1]:t[0]).focus()}_handleKeydown(t){\"Tab\"===t.key&&(this._lastTabNavDirection=t.shiftKey?ee:\"forward\")}}const L=\".bs.modal\";L,L;const oe=\"hidden\"+L,re=\"show\"+L;L,L,L,L,L;L;const ae=\"modal-open\",le=\"modal-static\";const ce={backdrop:!0,focus:!0,keyboard:!0},he={backdrop:\"(boolean|string)\",focus:\"boolean\",keyboard:\"boolean\"};class O extends _{constructor(t,e){super(t,e),this._dialog=g.findOne(\".modal-dialog\",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Xt,this._addEventListeners()}static get Default(){return ce}static get DefaultType(){return he}static get NAME(){return\"modal\"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||p.trigger(this._element,re,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ae),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||p.trigger(this._element,\"hide.bs.modal\").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(\"show\"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])p.off(t,L);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ne({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=\"block\",this._element.removeAttribute(\"aria-hidden\"),this._element.setAttribute(\"aria-modal\",!0),this._element.setAttribute(\"role\",\"dialog\"),this._element.scrollTop=0;var e=g.findOne(\".modal-body\",this._dialog);e&&(e.scrollTop=0),c(this._element),this._element.classList.add(\"show\");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,p.trigger(this._element,\"shown.bs.modal\",{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){p.on(this._element,\"keydown.dismiss.bs.modal\",t=>{\"Escape\"===t.key&&(this._config.keyboard?(t.preventDefault(),this.hide()):this._triggerBackdropTransition())}),p.on(window,\"resize.bs.modal\",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),p.on(this._element,\"mousedown.dismiss.bs.modal\",e=>{p.one(this._element,\"click.dismiss.bs.modal\",t=>{this._element===e.target&&this._element===t.target&&(\"static\"===this._config.backdrop?this._triggerBackdropTransition():this._config.backdrop&&this.hide())})})}_hideModal(){this._element.style.display=\"none\",this._element.setAttribute(\"aria-hidden\",!0),this._element.removeAttribute(\"aria-modal\"),this._element.removeAttribute(\"role\"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ae),this._resetAdjustments(),this._scrollBar.reset(),p.trigger(this._element,oe)})}_isAnimated(){return this._element.classList.contains(\"fade\")}_triggerBackdropTransition(){var t=p.trigger(this._element,\"hidePrevented.bs.modal\");if(!t.defaultPrevented){t=this._element.scrollHeight>document.documentElement.clientHeight;const e=this._element.style.overflowY;\"hidden\"===e||this._element.classList.contains(le)||(t||(this._element.style.overflowY=\"hidden\"),this._element.classList.add(le),this._queueCallback(()=>{this._element.classList.remove(le),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var t,e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),s=0<i;s&&!e&&(t=l()?\"paddingLeft\":\"paddingRight\",this._element.style[t]=i+\"px\"),!s&&e&&(t=l()?\"paddingRight\":\"paddingLeft\",this._element.style[t]=i+\"px\")}_resetAdjustments(){this._element.style.paddingLeft=\"\",this._element.style.paddingRight=\"\"}static jQueryInterface(e,i){return this.each(function(){var t=O.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e](i)}})}}p.on(document,\"click.bs.modal.data-api\",'[data-bs-toggle=\"modal\"]',function(t){const e=g.getElementFromSelector(this);[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),p.one(e,re,t=>{t.defaultPrevented||p.one(e,oe,()=>{n(this)&&this.focus()})});t=g.findOne(\".modal.show\");t&&O.getInstance(t).hide(),O.getOrCreateInstance(e).toggle(this)}),dt(O),t(O);T=\".bs.offcanvas\";const de=\"showing\",ue=\".offcanvas.show\",_e=\"hidePrevented\"+T,ge=\"hidden\"+T;const pe={backdrop:!0,keyboard:!0,scroll:!1},me={backdrop:\"(boolean|string)\",keyboard:\"boolean\",scroll:\"boolean\"};class I extends _{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return pe}static get DefaultType(){return me}static get NAME(){return\"offcanvas\"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||p.trigger(this._element,\"show.bs.offcanvas\",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Xt).hide(),this._element.setAttribute(\"aria-modal\",!0),this._element.setAttribute(\"role\",\"dialog\"),this._element.classList.add(de),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(\"show\"),this._element.classList.remove(de),p.trigger(this._element,\"shown.bs.offcanvas\",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&!p.trigger(this._element,\"hide.bs.offcanvas\").defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(\"hiding\"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(\"show\",\"hiding\"),this._element.removeAttribute(\"aria-modal\"),this._element.removeAttribute(\"role\"),this._config.scroll||(new Xt).reset(),p.trigger(this._element,ge)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var t=Boolean(this._config.backdrop);return new Zt({className:\"offcanvas-backdrop\",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{\"static\"===this._config.backdrop?p.trigger(this._element,_e):this.hide()}:null})}_initializeFocusTrap(){return new ne({trapElement:this._element})}_addEventListeners(){p.on(this._element,\"keydown.dismiss.bs.offcanvas\",t=>{\"Escape\"===t.key&&(this._config.keyboard?this.hide():p.trigger(this._element,_e))})}static jQueryInterface(e){return this.each(function(){var t=I.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e](this)}})}}p.on(document,\"click.bs.offcanvas.data-api\",'[data-bs-toggle=\"offcanvas\"]',function(t){var e=g.getElementFromSelector(this);[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),r(this)||(p.one(e,ge,()=>{n(this)&&this.focus()}),(t=g.findOne(ue))&&t!==e&&I.getInstance(t).hide(),I.getOrCreateInstance(e).toggle(this))}),p.on(window,\"load.bs.offcanvas.data-api\",()=>{for(const t of g.find(ue))I.getOrCreateInstance(t).show()}),p.on(window,\"resize.bs.offcanvas\",()=>{for(const t of g.find(\"[aria-modal][class*=show][class*=offcanvas-]\"))\"fixed\"!==getComputedStyle(t).position&&I.getOrCreateInstance(t).hide()}),dt(I),t(I);const fe=new Set([\"background\",\"cite\",\"href\",\"itemtype\",\"longdesc\",\"poster\",\"src\",\"xlink:href\"]);const be=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ve=/^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[\\d+/a-z]+=*$/i;f={\"*\":[\"class\",\"dir\",\"id\",\"lang\",\"role\",/^aria-[\\w-]*$/i],a:[\"target\",\"href\",\"title\",\"rel\"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[\"src\",\"srcset\",\"alt\",\"title\",\"width\",\"height\"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function ye(t,e,i){if(!t.length)return t;if(i&&\"function\"==typeof i)return i(t);i=(new window.DOMParser).parseFromString(t,\"text/html\");for(const r of[].concat(...i.body.querySelectorAll(\"*\"))){var s=r.nodeName.toLowerCase();if(Object.keys(e).includes(s)){var n=[].concat(...r.attributes),o=[].concat(e[\"*\"]||[],e[s]||[]);for(const a of n)((t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!fe.has(i)||Boolean(be.test(t.nodeValue)||ve.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))})(a,o)||r.removeAttribute(a.nodeName)}else r.remove()}return i.body.innerHTML}const we={allowList:f,content:{},extraClass:\"\",html:!1,sanitize:!0,sanitizeFn:null,template:\"<div></div>\"},Ae={allowList:\"object\",content:\"object\",extraClass:\"(string|function)\",html:\"boolean\",sanitize:\"boolean\",sanitizeFn:\"(null|function)\",template:\"string\"},Ee={entry:\"(string|element|function|null)\",selector:\"(string|element)\"};class Te extends e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return we}static get DefaultType(){return Ae}static get NAME(){return\"TemplateFactory\"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){var t,e,i=document.createElement(\"div\");i.innerHTML=this._maybeSanitize(this._config.template);for([t,e]of Object.entries(this._config.content))this._setContent(i,e,t);var s=i.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&s.classList.add(...n.split(\" \")),s}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(var[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Ee)}_setContent(t,e,i){i=g.findOne(i,t);i&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(s(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?ye(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return h(t,[this])}_putElementInTemplate(t,e){this._config.html?(e.innerHTML=\"\",e.append(t)):e.textContent=t.textContent}}const Ce=new Set([\"sanitize\",\"allowList\",\"sanitizeFn\"]),ke=\"fade\";const Se=\"show\",Le=\"hide.bs.modal\",D=\"hover\",Oe=\"focus\",Ie={AUTO:\"auto\",TOP:\"top\",RIGHT:l()?\"left\":\"right\",BOTTOM:\"bottom\",LEFT:l()?\"right\":\"left\"},De={allowList:f,animation:!0,boundary:\"clippingParents\",container:!1,customClass:\"\",delay:0,fallbackPlacements:[\"top\",\"right\",\"bottom\",\"left\"],html:!1,offset:[0,0],placement:\"top\",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class=\"tooltip\" role=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>',title:\"\",trigger:\"hover focus\"},Ne={allowList:\"object\",animation:\"boolean\",boundary:\"(string|element)\",container:\"(string|element|boolean)\",customClass:\"(string|function)\",delay:\"(number|object)\",fallbackPlacements:\"array\",html:\"boolean\",offset:\"(array|string|function)\",placement:\"(string|function)\",popperConfig:\"(null|object|function)\",sanitize:\"boolean\",sanitizeFn:\"(null|function)\",selector:\"(string|boolean)\",template:\"string\",title:\"(string|element|function)\",trigger:\"string\"};class N extends _{constructor(t,e){if(void 0===i)throw new TypeError(\"Bootstrap's tooltips require Popper (https://popper.js.org)\");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return De}static get DefaultType(){return Ne}static get NAME(){return\"tooltip\"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),p.off(this._element.closest(\".modal\"),Le,this._hideModalHandler),this._element.getAttribute(\"data-bs-original-title\")&&this._element.setAttribute(\"title\",this._element.getAttribute(\"data-bs-original-title\")),this._disposePopper(),super.dispose()}show(){if(\"none\"===this._element.style.display)throw new Error(\"Please use show on visible elements\");if(this._isWithContent()&&this._isEnabled){var t=p.trigger(this._element,this.constructor.eventName(\"show\")),e=(q(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!t.defaultPrevented&&e){this._disposePopper();t=this._getTipElement(),e=(this._element.setAttribute(\"aria-describedby\",t.getAttribute(\"id\")),this._config)[\"container\"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(e.append(t),p.trigger(this._element,this.constructor.eventName(\"inserted\"))),this._popper=this._createPopper(t),t.classList.add(Se),\"ontouchstart\"in document.documentElement)for(const i of[].concat(...document.body.children))p.on(i,\"mouseover\",a);this._queueCallback(()=>{p.trigger(this._element,this.constructor.eventName(\"shown\")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()){var t=p.trigger(this._element,this.constructor.eventName(\"hide\"));if(!t.defaultPrevented){if(this._getTipElement().classList.remove(Se),\"ontouchstart\"in document.documentElement)for(const e of[].concat(...document.body.children))p.off(e,\"mouseover\",a);this._activeTrigger.click=!1,this._activeTrigger[Oe]=!1,this._activeTrigger[D]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(\"aria-describedby\"),p.trigger(this._element,this.constructor.eventName(\"hidden\")))},this.tip,this._isAnimated())}}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){t=this._getTemplateFactory(t).toHtml();if(!t)return null;t.classList.remove(ke,Se),t.classList.add(`bs-${this.constructor.NAME}-auto`);var e=(t=>{for(;t+=Math.floor(1e6*Math.random()),document.getElementById(t););return t})(this.constructor.NAME).toString();return t.setAttribute(\"id\",e),this._isAnimated()&&t.classList.add(ke),t}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Te({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{\".tooltip-inner\":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(\"data-bs-original-title\")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ke)}_isShown(){return this.tip&&this.tip.classList.contains(Se)}_createPopper(t){var e=h(this._config.placement,[this,t,this._element]),e=Ie[e.toUpperCase()];return i.createPopper(this._element,t,this._getPopperConfig(e))}_getOffset(){const e=this._config[\"offset\"];return\"string\"==typeof e?e.split(\",\").map(t=>Number.parseInt(t,10)):\"function\"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(t){return h(t,[this._element])}_getPopperConfig(t){t={placement:t,modifiers:[{name:\"flip\",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:\"offset\",options:{offset:this._getOffset()}},{name:\"preventOverflow\",options:{boundary:this._config.boundary}},{name:\"arrow\",options:{element:`.${this.constructor.NAME}-arrow`}},{name:\"preSetPlacement\",enabled:!0,phase:\"beforeMain\",fn:t=>{this._getTipElement().setAttribute(\"data-popper-placement\",t.state.placement)}}]};return{...t,...h(this._config.popperConfig,[t])}}_setListeners(){var t,e;for(const i of this._config.trigger.split(\" \"))\"click\"===i?p.on(this._element,this.constructor.eventName(\"click\"),this._config.selector,t=>{this._initializeOnDelegatedTarget(t).toggle()}):\"manual\"!==i&&(t=i===D?this.constructor.eventName(\"mouseenter\"):this.constructor.eventName(\"focusin\"),e=i===D?this.constructor.eventName(\"mouseleave\"):this.constructor.eventName(\"focusout\"),p.on(this._element,t,this._config.selector,t=>{var e=this._initializeOnDelegatedTarget(t);e._activeTrigger[\"focusin\"===t.type?Oe:D]=!0,e._enter()}),p.on(this._element,e,this._config.selector,t=>{var e=this._initializeOnDelegatedTarget(t);e._activeTrigger[\"focusout\"===t.type?Oe:D]=e._element.contains(t.relatedTarget),e._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},p.on(this._element.closest(\".modal\"),Le,this._hideModalHandler)}_fixTitle(){var t=this._element.getAttribute(\"title\");t&&(this._element.getAttribute(\"aria-label\")||this._element.textContent.trim()||this._element.setAttribute(\"aria-label\",t),this._element.setAttribute(\"data-bs-original-title\",t),this._element.removeAttribute(\"title\"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){var e=u.getDataAttributes(this._element);for(const i of Object.keys(e))Ce.has(i)&&delete e[i];return t={...e,...\"object\"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:s(t.container),\"number\"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),\"number\"==typeof t.title&&(t.title=t.title.toString()),\"number\"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){var t,e,i={};for([t,e]of Object.entries(this._config))this.constructor.Default[t]!==e&&(i[t]=e);return i.selector=!1,i.trigger=\"manual\",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){var t=N.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}t(N);const Pe={...N.Default,content:\"\",offset:[0,8],placement:\"right\",template:'<div class=\"popover\" role=\"tooltip\"><div class=\"popover-arrow\"></div><h3 class=\"popover-header\"></h3><div class=\"popover-body\"></div></div>',trigger:\"click\"},xe={...N.DefaultType,content:\"(null|string|element|function)\"};class Me extends N{static get Default(){return Pe}static get DefaultType(){return xe}static get NAME(){return\"popover\"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{\".popover-header\":this._getTitle(),\".popover-body\":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){var t=Me.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}t(Me);xt=\".bs.scrollspy\";const je=\"click\"+xt;const P=\"active\",Fe=\"[href]\";const ze={offset:null,rootMargin:\"0px 0px -25%\",smoothScroll:!1,target:null,threshold:[.1,.5,1]},He={offset:\"(number|null)\",rootMargin:\"string\",smoothScroll:\"boolean\",target:\"element\",threshold:\"array\"};class Be extends _{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=\"visible\"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ze}static get DefaultType(){return He}static get NAME(){return\"scrollspy\"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=s(t.target)||document.body,t.rootMargin=t.offset?t.offset+\"px 0px -30%\":t.rootMargin,\"string\"==typeof t.threshold&&(t.threshold=t.threshold.split(\",\").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(p.off(this._config.target,je),p.on(this._config.target,je,Fe,t=>{var e=this._observableSections.get(t.target.hash);e&&(t.preventDefault(),t=this._rootElement||window,e=e.offsetTop-this._element.offsetTop,t.scrollTo?t.scrollTo({top:e,behavior:\"smooth\"}):t.scrollTop=e)}))}_getNewObserver(){var t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(\"#\"+t.target.id);var i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of t)if(r.isIntersecting){var o=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&o){if(i(r),s)continue;return}n||o||i(r)}else this._activeTarget=null,this._clearActiveClass(e(r))}_initializeTargetsAndObservables(){var t;this._targetLinks=new Map,this._observableSections=new Map;for(const e of g.find(Fe,this._config.target))e.hash&&!r(e)&&(t=g.findOne(e.hash,this._element),n(t))&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),(this._activeTarget=t).classList.add(P),this._activateParents(t),p.trigger(this._element,\"activate.bs.scrollspy\",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(\"dropdown-item\"))g.findOne(\".dropdown-toggle\",t.closest(\".dropdown\")).classList.add(P);else for(const e of g.parents(t,\".nav, .list-group\"))for(const i of g.prev(e,\".nav-link, .nav-item > .nav-link, .list-group-item\"))i.classList.add(P)}_clearActiveClass(t){t.classList.remove(P);for(const e of g.find(Fe+\".\"+P,t))e.classList.remove(P)}static jQueryInterface(e){return this.each(function(){var t=Be.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(window,\"load.bs.scrollspy.data-api\",()=>{for(const t of g.find('[data-bs-spy=\"scroll\"]'))Be.getOrCreateInstance(t)}),t(Be);const qe=\"ArrowRight\",We=\"ArrowDown\",x=\"active\",$e=\"show\";T='[data-bs-toggle=\"tab\"], [data-bs-toggle=\"pill\"], [data-bs-toggle=\"list\"]';const Re='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role=\"tab\"]:not(.dropdown-toggle), '+T;x,x,x;class M extends _{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role=\"tablist\"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),p.on(this._element,\"keydown.bs.tab\",t=>this._keydown(t)))}static get NAME(){return\"tab\"}show(){var t,e,i=this._element;this._elemIsActive(i)||(e=(t=this._getActiveElem())?p.trigger(t,\"hide.bs.tab\",{relatedTarget:i}):null,p.trigger(i,\"show.bs.tab\",{relatedTarget:t}).defaultPrevented)||e&&e.defaultPrevented||(this._deactivate(t,i),this._activate(i,t))}_activate(t,e){t&&(t.classList.add(x),this._activate(g.getElementFromSelector(t)),this._queueCallback(()=>{\"tab\"!==t.getAttribute(\"role\")?t.classList.add($e):(t.removeAttribute(\"tabindex\"),t.setAttribute(\"aria-selected\",!0),this._toggleDropDown(t,!0),p.trigger(t,\"shown.bs.tab\",{relatedTarget:e}))},t,t.classList.contains(\"fade\")))}_deactivate(t,e){t&&(t.classList.remove(x),t.blur(),this._deactivate(g.getElementFromSelector(t)),this._queueCallback(()=>{\"tab\"!==t.getAttribute(\"role\")?t.classList.remove($e):(t.setAttribute(\"aria-selected\",!1),t.setAttribute(\"tabindex\",\"-1\"),this._toggleDropDown(t,!1),p.trigger(t,\"hidden.bs.tab\",{relatedTarget:e}))},t,t.classList.contains(\"fade\")))}_keydown(t){var e;[\"ArrowLeft\",qe,\"ArrowUp\",We].includes(t.key)&&(t.stopPropagation(),t.preventDefault(),e=[qe,We].includes(t.key),t=V(this._getChildren().filter(t=>!r(t)),t.target,e,!0))&&(t.focus({preventScroll:!0}),M.getOrCreateInstance(t).show())}_getChildren(){return g.find(Re,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,\"role\",\"tablist\");for(const i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);var e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute(\"aria-selected\",e),i!==t&&this._setAttributeIfNotExists(i,\"role\",\"presentation\"),e||t.setAttribute(\"tabindex\",\"-1\"),this._setAttributeIfNotExists(t,\"role\",\"tab\"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){var e=g.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,\"role\",\"tabpanel\"),t.id)&&this._setAttributeIfNotExists(e,\"aria-labelledby\",\"#\"+t.id)}_toggleDropDown(t,i){const s=this._getOuterElement(t);s.classList.contains(\"dropdown\")&&((t=(t,e)=>{t=g.findOne(t,s);t&&t.classList.toggle(e,i)})(\".dropdown-toggle\",x),t(\".dropdown-menu\",$e),s.setAttribute(\"aria-expanded\",i))}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(x)}_getInnerElement(t){return t.matches(Re)?t:g.findOne(Re,t)}_getOuterElement(t){return t.closest(\".nav-item, .list-group-item\")||t}static jQueryInterface(e){return this.each(function(){var t=M.getOrCreateInstance(this);if(\"string\"==typeof e){if(void 0===t[e]||e.startsWith(\"_\")||\"constructor\"===e)throw new TypeError(`No method named \"${e}\"`);t[e]()}})}}p.on(document,\"click.bs.tab\",T,function(t){[\"A\",\"AREA\"].includes(this.tagName)&&t.preventDefault(),r(this)||M.getOrCreateInstance(this).show()}),p.on(window,\"load.bs.tab\",()=>{for(const t of g.find('.active[data-bs-toggle=\"tab\"], .active[data-bs-toggle=\"pill\"], .active[data-bs-toggle=\"list\"]'))M.getOrCreateInstance(t)}),t(M);const Ve=\"show\",Ke=\"showing\",Qe={animation:\"boolean\",autohide:\"boolean\",delay:\"number\"},Xe={animation:!0,autohide:!0,delay:5e3};class Ye extends _{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Xe}static get DefaultType(){return Qe}static get NAME(){return\"toast\"}show(){p.trigger(this._element,\"show.bs.toast\").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(\"fade\"),this._element.classList.remove(\"hide\"),c(this._element),this._element.classList.add(Ve,Ke),this._queueCallback(()=>{this._element.classList.remove(Ke),p.trigger(this._element,\"shown.bs.toast\"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!p.trigger(this._element,\"hide.bs.toast\").defaultPrevented&&(this._element.classList.add(Ke),this._queueCallback(()=>{this._element.classList.add(\"hide\"),this._element.classList.remove(Ke,Ve),p.trigger(this._element,\"hidden.bs.toast\")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ve),super.dispose()}isShown(){return this._element.classList.contains(Ve)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,e){switch(t.type){case\"mouseover\":case\"mouseout\":this._hasMouseInteraction=e;break;case\"focusin\":case\"focusout\":this._hasKeyboardInteraction=e}e?this._clearTimeout():(t=t.relatedTarget,this._element===t||this._element.contains(t)||this._maybeScheduleHide())}_setListeners(){p.on(this._element,\"mouseover.bs.toast\",t=>this._onInteraction(t,!0)),p.on(this._element,\"mouseout.bs.toast\",t=>this._onInteraction(t,!1)),p.on(this._element,\"focusin.bs.toast\",t=>this._onInteraction(t,!0)),p.on(this._element,\"focusout.bs.toast\",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){var t=Ye.getOrCreateInstance(this,e);if(\"string\"==typeof e){if(void 0===t[e])throw new TypeError(`No method named \"${e}\"`);t[e](this)}})}}return dt(Ye),t(Ye),{Alert:ut,Button:gt,Carousel:w,Collapse:E,Dropdown:S,Modal:O,Offcanvas:I,Popover:Me,ScrollSpy:Be,Tab:M,Toast:Ye,Tooltip:N}});","!function(e,t){if(\"object\"==typeof exports&&\"object\"==typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var n,o=t();for(n in o)(\"object\"==typeof exports?exports:e)[n]=o[n]}}(window,function(){return n=[function(C,e,t){\"use strict\";t.r(e);var ce=\"fslightbox-\",t=\"\".concat(ce,\"styles\"),c=\"\".concat(ce,\"cursor-grabbing\"),ae=\"\".concat(ce,\"full-dimension\"),le=\"\".concat(ce,\"flex-centered\"),b=\"\".concat(ce,\"open\"),ue=\"\".concat(ce,\"transform-transition\"),de=\"\".concat(ce,\"absoluted\"),r=\"\".concat(ce,\"slide-btn\"),a=\"\".concat(r,\"-container\"),pe=\"\".concat(ce,\"fade-in\"),fe=\"\".concat(ce,\"fade-out\"),he=pe+\"-strong\",d=fe+\"-strong\",e=\"\".concat(ce,\"opacity-\"),u=\"\".concat(e,\"1\"),l=\"\".concat(ce,\"source\");function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function me(e){var s,t=e.props,r=0,c={},n=(this.getSourceTypeFromLocalStorageByUrl=function(e){return s[e]||n(e)},this.handleReceivedSourceTypeForUrl=function(e,t){if(!1===c[t]&&(r--,\"invalid\"!==e?c[t]=e:delete c[t],0===r)){var n,o=s,i=c;for(n in i)o[n]=i[n];try{localStorage.setItem(\"fslightbox-types\",JSON.stringify(s))}catch(e){}}},function(e){r++,c[e]=!1});if(t.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{s=JSON.parse(localStorage.getItem(\"fslightbox-types\"))}catch(e){}s||(s={},this.getSourceTypeFromLocalStorageByUrl=n)}}function p(e,t,n,o){var i=e.data,s=e.elements.sources,r=n/o,c=0,a=(this.adjustSize=function(){if((c=i.maxSourceWidth/r)<i.maxSourceHeight)return n<i.maxSourceWidth&&(c=o),a();c=o>i.maxSourceHeight?i.maxSourceHeight:o,a()},function(){s[t].style.width=c*r+\"px\",s[t].style.height=c+\"px\"})}function f(e,n){var o=this,i=e.collections.sourceSizers,t=e.elements,s=t.sourceAnimationWrappers,r=t.sources,c=e.isl,a=e.resolve;function l(e,t){i[n]=a(p,[n,e,t]),i[n].adjustSize()}this.runActions=function(e,t){c[n]=!0,r[n].classList.add(u),s[n].classList.add(he),s[n].removeChild(s[n].firstChild),l(e,t),o.runActions=l}}function h(e,n){var o,i=this,s=e.elements.sources,r=e.props,c=(0,e.resolve)(f,[n]);this.handleImageLoad=function(e){var e=e.target,t=e.naturalWidth,e=e.naturalHeight;c.runActions(t,e)},this.handleVideoLoad=function(e){var e=e.target,t=e.videoWidth,e=e.videoHeight;o=!0,c.runActions(t,e)},this.handleNotMetaDatedVideoLoad=function(){o||i.handleYoutubeLoad()},this.handleYoutubeLoad=function(){var e=1920,t=1080;r.maxYoutubeDimensions&&(e=r.maxYoutubeDimensions.width,t=r.maxYoutubeDimensions.height),c.runActions(e,t)},this.handleCustomLoad=function(){var e=s[n],t=e.offsetWidth,e=e.offsetHeight;t&&e?c.runActions(t,e):setTimeout(i.handleCustomLoad)}}function m(e,t,n){var o=e.elements.sources,e=e.props.customClasses,e=e[t]||\"\";o[t].className=n+\" \"+e}function g(e,t){var n,o=e.elements.sources,i=e.props.customAttributes;for(n in i[t])o[t].setAttribute(n,i[t][n])}function v(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props.sources;i[t]=document.createElement(\"img\"),m(e,t,l),i[t].src=s[t],i[t].onload=n[t].handleImageLoad,g(e,t),o[t].appendChild(i[t])}function x(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props,r=s.sources,s=s.videosPosters,e=(i[t]=document.createElement(\"video\"),m(e,t,l),i[t].src=r[t],i[t].onloadedmetadata=function(e){n[t].handleVideoLoad(e)},i[t].controls=!0,g(e,t),s[t]&&(i[t].poster=s[t]),document.createElement(\"source\"));e.src=r[t],i[t].appendChild(e),setTimeout(n[t].handleNotMetaDatedVideoLoad,3e3),o[t].appendChild(i[t])}function y(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props.sources,s=(i[t]=document.createElement(\"iframe\"),m(e,t,\"\".concat(l,\" \").concat(ce,\"youtube-iframe\")),s[t]),r=s.split(\"?\")[1];i[t].src=\"https://www.youtube.com/embed/\".concat(s.match(/^.*(youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/)[2],\"?\").concat(r||\"\"),i[t].allowFullscreen=!0,g(e,t),o[t].appendChild(i[t]),n[t].handleYoutubeLoad()}function E(e,t){var n=e.collections.sourceLoadHandlers,o=e.elements,i=o.sources,o=o.sourceAnimationWrappers,s=e.props.sources;i[t]=s[t],m(e,t,\"\".concat(i[t].className,\" \").concat(l)),o[t].appendChild(i[t]),n[t].handleCustomLoad()}function F(e,t){var n=e.elements,o=n.sources,n=n.sourceAnimationWrappers;e.props.sources,o[t]=document.createElement(\"div\"),o[t].className=\"\".concat(ce,\"invalid-file-wrapper \").concat(le),o[t].innerHTML=\"Invalid source\",n[t].classList.add(he),n[t].removeChild(n[t].firstChild),n[t].appendChild(o[t])}function ve(o){var e=o.collections,i=e.sourceLoadHandlers,s=e.sourcesRenderFunctions,r=o.core.sourceDisplayFacade,c=o.resolve;this.runActionsForSourceTypeAndIndex=function(e,t){var n;switch(\"invalid\"!==e&&(i[t]=c(h,[t])),e){case\"image\":n=v;break;case\"video\":n=x;break;case\"youtube\":n=y;break;case\"custom\":n=E;break;default:n=F}s[t]=function(){return n(o,t)},r.displaySourcesWhichShouldBeDisplayed()}}function I(){var t,n,o,i=function(e){var t=document.createElement(\"a\");return t.href=e,\"www.youtube.com\"===t.hostname||\"youtu.be\"===t.hostname},s=function(e){return e.slice(0,e.indexOf(\"/\"))};function r(){if(4!==o.readyState){if(2===o.readyState){var e;switch(s(o.getResponseHeader(\"content-type\"))){case\"image\":e=\"image\";break;case\"video\":e=\"video\";break;default:e=\"invalid\"}o.onreadystatechange=null,o.abort(),n(e)}}else n(\"invalid\")}this.setUrlToCheck=function(e){t=e},this.getSourceType=function(e){if(i(t))return e(\"youtube\");n=e,(o=new XMLHttpRequest).onreadystatechange=r,o.open(\"GET\",t,!0),o.send()}}function xe(e,n,o){var t=e.props,i=t.types,s=t.type,r=t.sources,c=e.resolve;this.getTypeSetByClientForIndex=function(e){var t;return i&&i[e]?t=i[e]:s&&(t=s),t},this.retrieveTypeWithXhrForIndex=function(t){var e=c(I);e.setUrlToCheck(r[t]),e.getSourceType(function(e){n.handleReceivedSourceTypeForUrl(e,r[t]),o.runActionsForSourceTypeAndIndex(e,t)})}}function w(e,t,n,o){var i=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),t=(i.setAttributeNS(null,\"width\",t),i.setAttributeNS(null,\"height\",t),i.setAttributeNS(null,\"viewBox\",n),document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\"));return t.setAttributeNS(null,\"class\",\"\".concat(ce,\"svg-path\")),t.setAttributeNS(null,\"d\",o),i.appendChild(t),e.appendChild(i),i}function S(e,t){var n=document.createElement(\"div\");return n.className=\"\".concat(ce,\"toolbar-button \").concat(le),n.title=t,e.appendChild(n),n}function ye(e){var t,n,o,i,s,r,c,a,l,u,d=e.props.sources,p=e.elements.container,f=document.createElement(\"div\");f.className=\"\".concat(ce,\"nav\"),p.appendChild(f),p=e,i=f,(u=document.createElement(\"div\")).className=\"\".concat(ce,\"toolbar\"),i.appendChild(u),i=p.componentsServices,s=p.data,r=p.fs,c=\"M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z\",(a=S(u)).title=\"Enter fullscreen\",l=w(a,\"20px\",\"0 0 18 18\",c),i.ofs=function(){s.ifs=!0,a.title=\"Exit fullscreen\",l.setAttributeNS(null,\"width\",\"24px\"),l.setAttributeNS(null,\"height\",\"24px\"),l.setAttributeNS(null,\"viewBox\",\"0 0 950 1024\"),l.firstChild.setAttributeNS(null,\"d\",\"M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z\")},i.xfs=function(){s.ifs=!1,a.title=\"Enter fullscreen\",l.setAttributeNS(null,\"width\",\"20px\"),l.setAttributeNS(null,\"height\",\"20px\"),l.setAttributeNS(null,\"viewBox\",\"0 0 18 18\"),l.firstChild.setAttributeNS(null,\"d\",c)},a.onclick=r.t,i=p,(r=S(u,\"Close\")).onclick=i.core.lightboxCloser.closeLightbox,w(r,\"20px\",\"0 0 24 24\",\"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z\"),1<d.length&&(p=f,u=e.componentsServices,i=e.props.sources,e.stageIndexes,(t=document.createElement(\"div\")).className=\"\".concat(ce,\"slide-number-container\"),(n=document.createElement(\"div\")).className=le,o=document.createElement(\"span\"),u.setSlideNumber=function(e){return o.innerHTML=e},(u=document.createElement(\"span\")).className=\"\".concat(ce,\"slash\"),(r=document.createElement(\"div\")).innerHTML=i.length,t.appendChild(n),n.appendChild(o),n.appendChild(u),n.appendChild(r),p.appendChild(t),setTimeout(function(){55<n.offsetWidth&&(t.style.justifyContent=\"flex-start\")}))}function ge(e,t,n,o){var e=e.elements.container,i=n.charAt(0).toUpperCase()+n.slice(1),s=document.createElement(\"div\");s.className=\"\".concat(a,\" \").concat(a,\"-\").concat(n),s.title=\"\".concat(i,\" slide\"),s.onclick=t,n=s,i=o,(t=document.createElement(\"div\")).className=\"\".concat(r,\" \").concat(le),w(t,\"20px\",\"0 0 20 20\",i),n.appendChild(t),e.appendChild(s)}function we(e){var t=e.core,n=t.lightboxCloser,o=t.slideChangeFacade,i=e.fs;this.listener=function(e){switch(e.key){case\"Escape\":n.closeLightbox();break;case\"ArrowLeft\":o.changeToPrevious();break;case\"ArrowRight\":o.changeToNext();break;case\"F11\":e.preventDefault(),i.t()}}}function N(e){var o=e.elements,i=e.sourcePointerProps,s=e.stageIndexes;function r(e,t){o.smw[e].v(i.swipedX)[t]()}this.runActionsForEvent=function(e){o.container.contains(o.slideSwipingHoverer)||o.container.appendChild(o.slideSwipingHoverer),(t=o.container.classList).contains(n=c)||t.add(n),i.swipedX=e.screenX-i.downScreenX;var t=s.previous,n=s.next;r(s.current,\"z\"),void 0!==t&&0<i.swipedX?r(t,\"ne\"):void 0!==n&&i.swipedX<0&&r(n,\"p\")}}function Se(e){var t=e.props.sources,n=e.resolve,o=e.sourcePointerProps,i=n(N);1===t.length?this.listener=function(){o.swipedX=1}:this.listener=function(e){o.isPointering&&i.runActionsForEvent(e)}}function T(e){var n=e.core.slideIndexChanger,o=e.elements.smw,i=e.stageIndexes,s=e.sws;function r(e){var t=o[i.current];t.a(),t[e]()}function c(e,t){void 0!==e&&(o[e].s(),o[e][t]())}this.runPositiveSwipedXActions=function(){var e,t=i.previous;void 0===t?r(\"z\"):(r(\"p\"),e=i.next,n.changeTo(t),t=i.previous,s.d(t),s.b(e),r(\"z\"),c(t,\"ne\"))},this.runNegativeSwipedXActions=function(){var e,t=i.next;void 0===t?r(\"z\"):(r(\"ne\"),e=i.previous,n.changeTo(t),t=i.next,s.d(t),s.b(e),r(\"z\"),c(t,\"p\"))}}function L(e,t){e.contains(t)&&e.removeChild(t)}function z(e){var t=e.core.lightboxCloser,n=e.elements,o=e.resolve,i=e.sourcePointerProps,s=o(T);this.runNoSwipeActions=function(){L(n.container,n.slideSwipingHoverer),i.isSourceDownEventTarget||t.closeLightbox(),i.isPointering=!1},this.runActions=function(){0<i.swipedX?s.runPositiveSwipedXActions():s.runNegativeSwipedXActions(),L(n.container,n.slideSwipingHoverer),n.container.classList.remove(c),i.isPointering=!1}}function Le(e){var t=e.resolve,n=e.sourcePointerProps,o=t(z);this.listener=function(){n.isPointering&&(n.swipedX?o.runActions():o.runNoSwipeActions())}}function Ae(e){var t=this,n=e.core,o=n.eventsDispatcher,i=n.globalEventsController,s=n.scrollbarRecompensor,r=e.data,c=e.elements,a=e.fs,l=e.props,u=e.sourcePointerProps;this.isLightboxFadingOut=!1,this.runActions=function(){t.isLightboxFadingOut=!0,c.container.classList.add(d),i.removeListeners(),l.exitFullscreenOnClose&&r.ifs&&a.x(),setTimeout(function(){t.isLightboxFadingOut=!1,u.isPointering=!1,c.container.classList.remove(d),document.documentElement.classList.remove(b),s.removeRecompense(),document.body.removeChild(c.container),o.dispatch(\"onClose\")},270)}}function be(e,t){e=e.classList;e.contains(t)&&e.remove(t)}function P(oe){var a=oe.componentsServices,e=oe.core,ie=e.eventsDispatcher,l=e.globalEventsController,u=e.scrollbarRecompensor,d=e.sourceDisplayFacade,p=e.stageManager,f=e.windowResizeActioner,se=oe.data,re=oe.elements,h=(oe.props,oe.stageIndexes),m=oe.sws;function g(){se.i=!0,se.scrollbarWidth=(T=document.createElement(\"div\"),P=T.style,z=document.createElement(\"div\"),P.visibility=\"hidden\",P.width=\"100px\",P.msOverflowStyle=\"scrollbar\",P.overflow=\"scroll\",z.style.width=\"100%\",document.body.appendChild(T),P=T.offsetWidth,T.appendChild(z),z=z.offsetWidth,document.body.removeChild(T),P-z),P=(T=oe).core.eventsDispatcher,t=T.props,P.dispatch=function(e){t[e]&&t[e]()},F=T.componentsServices,_=T.data,I=T.fs,Y=[\"fullscreenchange\",\"webkitfullscreenchange\",\"mozfullscreenchange\",\"MSFullscreenChange\"],I.o=function(){F.ofs();var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},I.x=function(){F.xfs(),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},I.t=function(){_.ifs?I.x():I.o()},I.l=function(){te(\"addEventListener\")},I.q=function(){te(\"removeEventListener\")},P=T.core,z=P.globalEventsController,L=P.windowResizeActioner,A=T.fs,P=T.resolve,C=P(we),E=P(Se),V=P(Le),z.attachListeners=function(){document.addEventListener(\"pointermove\",E.listener),document.addEventListener(\"pointerup\",V.listener),addEventListener(\"resize\",L.runActions),document.addEventListener(\"keydown\",C.listener),A.l()},z.removeListeners=function(){document.removeEventListener(\"pointermove\",E.listener),document.removeEventListener(\"pointerup\",V.listener),removeEventListener(\"resize\",L.runActions),document.removeEventListener(\"keydown\",C.listener),A.q()},P=T.core.lightboxCloser,S=(0,T.resolve)(Ae),P.closeLightbox=function(){S.isLightboxFadingOut||S.runActions()},U=T.data,(w=T.core.scrollbarRecompensor).addRecompense=function(){\"complete\"===document.readyState?ee():addEventListener(\"load\",function(){ee(),w.addRecompense=ee})},w.removeRecompense=function(){document.body.style.removeProperty(\"margin-right\")},z=T.core,P=z.slideChangeFacade,e=z.slideIndexChanger,y=z.stageManager,1<T.props.sources.length?(P.changeToPrevious=function(){e.jumpTo(y.getPreviousSlideIndex())},P.changeToNext=function(){e.jumpTo(y.getNextSlideIndex())}):(P.changeToPrevious=function(){},P.changeToNext=function(){}),B=T.componentsServices,z=T.core,f=z.slideIndexChanger,q=z.sourceDisplayFacade,h=z.stageManager,z=T.elements,m=z.smw,g=z.sourceAnimationWrappers,b=T.isl,v=T.stageIndexes,x=T.sws,f.changeTo=function(e){v.current=e,h.updateStageIndexes(),B.setSlideNumber(e+1),q.displaySourcesWhichShouldBeDisplayed()},f.jumpTo=function(e){var o=v.previous,i=v.current,s=v.next,r=b[i],c=b[e];f.changeTo(e);for(var t=0;t<m.length;t++)m[t].d();x.d(i),x.c(),requestAnimationFrame(function(){requestAnimationFrame(function(){var e=v.previous,t=v.next;function n(){h.i(i)?i===v.previous?m[i].ne():i===v.next&&m[i].p():(m[i].h(),m[i].n())}r&&g[i].classList.add(fe),c&&g[v.current].classList.add(pe),x.a(),void 0!==e&&e!==i&&m[e].ne(),m[v.current].n(),void 0!==t&&t!==i&&m[t].p(),x.b(o),x.b(s),b[i]?setTimeout(n,260):n()})})},P=T.core.sourcesPointerDown,z=T.elements,d=z.smw,j=z.sources,p=T.sourcePointerProps,X=T.stageIndexes,P.listener=function(e){\"VIDEO\"!==e.target.tagName&&e.preventDefault(),p.isPointering=!0,p.downScreenX=e.screenX,p.swipedX=0;var t=j[X.current];t&&t.contains(e.target)?p.isSourceDownEventTarget=!0:p.isSourceDownEventTarget=!1;for(var n=0;n<d.length;n++)d[n].d()},l=T.collections.sourcesRenderFunctions,z=T.core.sourceDisplayFacade,O=T.props,u=T.stageIndexes,z.displaySourcesWhichShouldBeDisplayed=function(){if(O.loadOnlyCurrentSource)Z(u.current);else for(var e in u)Z(u[e])},R=T.core.stageManager,P=T.elements,n=P.smw,D=P.sourceAnimationWrappers,M=T.isl,c=T.stageIndexes,(a=T.sws).a=function(){for(var e in c)n[c[e]].s()},a.b=function(e){void 0===e||R.i(e)||(n[e].h(),n[e].n())},a.c=function(){for(var e in c)a.d(c[e])},a.d=function(e){M[e]&&(be(e=D[e],he),be(e,pe),be(e,fe))},o=T.collections.sourceSizers,z=T.core.windowResizeActioner,i=T.data,s=T.elements.smw,r=T.stageIndexes,z.runActions=function(){innerWidth<992?i.maxSourceWidth=innerWidth:i.maxSourceWidth=.9*innerWidth,i.maxSourceHeight=.9*innerHeight;for(var e=0;e<s.length;e++)s[e].d(),o[e]&&o[e].adjustSize();var t=r.previous,n=r.next;void 0!==t&&s[t].ne(),void 0!==n&&s[n].p()},re.container=document.createElement(\"div\"),re.container.className=\"\".concat(ce,\"container \").concat(ae,\" \").concat(he),(P=oe.elements).slideSwipingHoverer=document.createElement(\"div\"),P.slideSwipingHoverer.className=\"\".concat(ce,\"slide-swiping-hoverer \").concat(ae,\" \").concat(de),ye(oe);var t,o,i,s,r,R,n,D,M,c,a,l,O,u,d,j,p,X,B,f,q,h,m,g,b,v,x,e,y,U,w,S,L,A,C,E,V,F,_,I,Y,N=oe,T=N.core.sourcesPointerDown,z=N.elements,J=N.props.sources,P=document.createElement(\"div\");P.className=\"\".concat(de,\" \").concat(ae),z.container.appendChild(P),P.addEventListener(\"pointerdown\",T.listener),z.sourceWrappersContainer=P;for(var G=0;G<J.length;G++)!function(e,t){var n=e.core.stageManager,o=(i=e.elements).smw,i=i.sourceWrappersContainer,s=e.props,r=0,c=document.createElement(\"div\");function a(e){c.style.transform=\"translateX(\".concat(e+r,\"px)\"),r=0}function l(){return(1+s.slideDistance)*innerWidth}c.className=\"\".concat(de,\" \").concat(ae,\" \").concat(le),c.s=function(){c.style.display=\"flex\"},c.h=function(){c.style.display=\"none\"},c.a=function(){c.classList.add(ue)},c.d=function(){c.classList.remove(ue)},c.n=function(){c.style.removeProperty(\"transform\")},c.v=function(e){return r=e,c},c.ne=function(){a(-l())},c.z=function(){a(0)},c.p=function(){a(l())},n.i(t)||c.h(),o[t]=c,i.appendChild(c);var n=t,i=(o=e.elements).smw,o=o.sourceAnimationWrappers,t=document.createElement(\"div\"),u=document.createElement(\"div\");u.className=\"fslightboxl\";for(var d=0;d<3;d++){var p=document.createElement(\"div\");u.appendChild(p)}t.appendChild(u),i[n].appendChild(t),o[n]=t}(N,G);1<oe.props.sources.length&&(z=(T=oe).core.slideChangeFacade,ge(T,z.changeToPrevious,\"previous\",\"M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z\"),ge(T,z.changeToNext,\"next\",\"M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z\"));for(var k,$=oe.props.sources,P=oe.resolve,K=P(me),H=P(ve),Q=P(xe,[K,H]),W=0;W<$.length;W++)\"string\"==typeof $[W]?(k=Q.getTypeSetByClientForIndex(W))?H.runActionsForSourceTypeAndIndex(k,W):(k=K.getSourceTypeFromLocalStorageByUrl($[W]))?H.runActionsForSourceTypeAndIndex(k,W):Q.retrieveTypeWithXhrForIndex(W):H.runActionsForSourceTypeAndIndex(\"custom\",W);function Z(e){l[e]&&(l[e](),delete l[e])}function ee(){document.body.offsetHeight>innerHeight&&(document.body.style.marginRight=U.scrollbarWidth+\"px\")}function te(e){for(var t=0;t<Y.length;t++)document[e](Y[t],ne)}function ne(){document.fullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement?F.ofs():F.xfs()}ie.dispatch(\"onInit\")}oe.open=function(){var e,n,t,o,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,s=h.previous,r=h.current,c=h.next;h.current=i,se.i||(n=(e=oe).stageIndexes,t=e.core.stageManager,o=e.props.sources.length-1,t.getPreviousSlideIndex=function(){return 0===n.current?o:n.current-1},t.getNextSlideIndex=function(){return n.current===o?0:n.current+1},t.updateStageIndexes=0==o?function(){}:1==o?function(){0===n.current?(n.next=1,delete n.previous):(n.previous=0,delete n.next)}:function(){n.previous=t.getPreviousSlideIndex(),n.next=t.getNextSlideIndex()},t.i=o<=2?function(){return!0}:function(e){var t=n.current;return 0===t&&e===o||t===o&&0===e||-1==(t=t-e)||0==t||1==t}),p.updateStageIndexes(),se.i?(m.c(),m.a(),m.b(s),m.b(r),m.b(c),ie.dispatch(\"onShow\")):g(),d.displaySourcesWhichShouldBeDisplayed(),a.setSlideNumber(i+1),document.body.appendChild(re.container),document.documentElement.classList.add(b),u.addRecompense(),l.attachListeners(),f.runActions(),re.smw[h.current].n(),ie.dispatch(\"onOpen\")}}function i(e,t,n){return(i=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if(\"function\"==typeof Proxy)return 1;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),1}catch(e){}}()?Reflect.construct.bind():function(e,t,n){var o=[null],t=(o.push.apply(o,t),new(Function.bind.apply(e,o)));return n&&s(t,n.prototype),t}).apply(null,arguments)}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function o(){for(var d=document.getElementsByTagName(\"a\"),e=0;e<d.length;e++)!function(n){if(!d[n].hasAttribute(\"data-fslightbox\"))return;var e=d[n].hasAttribute(\"data-href\")?d[n].getAttribute(\"data-href\"):d[n].getAttribute(\"href\");if(!e)return console.warn('The \"data-fslightbox\" attribute was set without the \"href\" attribute.');var o=d[n].getAttribute(\"data-fslightbox\"),t=(fsLightboxInstances[o]||(fsLightboxInstances[o]=new FsLightbox),null),i=(\"#\"===e.charAt(0)?(t=document.getElementById(e.substring(1)).cloneNode(!0)).removeAttribute(\"id\"):t=e,fsLightboxInstances[o].props.sources.push(t),fsLightboxInstances[o].elements.a.push(d[n]),fsLightboxInstances[o].props.sources.length-1);d[n].onclick=function(e){e.preventDefault(),fsLightboxInstances[o].open(i)},u(\"types\",\"data-type\"),u(\"videosPosters\",\"data-video-poster\"),u(\"customClasses\",\"data-class\"),u(\"customClasses\",\"data-custom-class\");for(var s,r=[\"href\",\"data-fslightbox\",\"data-href\",\"data-type\",\"data-video-poster\",\"data-class\",\"data-custom-class\"],c=d[n].attributes,a=fsLightboxInstances[o].props.customAttributes,l=0;l<c.length;l++)-1===r.indexOf(c[l].name)&&\"data-\"===c[l].name.substr(0,5)&&(a[i]||(a[i]={}),s=c[l].name.substr(5),a[i][s]=c[l].value);function u(e,t){d[n].hasAttribute(t)&&(fsLightboxInstances[o].props[e][i]=d[n].getAttribute(t))}}(e);var t=Object.keys(fsLightboxInstances);window.fsLightbox=fsLightboxInstances[t[t.length-1]]}\"object\"===(\"undefined\"==typeof document?\"undefined\":n(document))&&((e=document.createElement(\"style\")).className=t,e.appendChild(document.createTextNode(\".fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightbox-slide-number-container{display:flex;justify-content:center;align-items:center;position:relative;height:100%;font-size:15px;color:#d7d7d7;z-index:0;max-width:55px;text-align:left}.fslightbox-slide-number-container .fslightbox-flex-centered{height:100%}.fslightbox-slash{display:block;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:#fff}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container-next{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}\")),document.head.appendChild(e)),window.FsLightbox=function(){var o=this;this.props={sources:[],customAttributes:[],customClasses:[],types:[],videosPosters:[],slideDistance:.3},this.data={isFullscreenOpen:!1,maxSourceWidth:0,maxSourceHeight:0,scrollbarWidth:0},this.isl=[],this.sourcePointerProps={downScreenX:null,isPointering:!1,isSourceDownEventTarget:!1,swipedX:0},this.stageIndexes={},this.elements={a:[],container:null,slideSwipingHoverer:null,smw:[],sourceWrappersContainer:null,sources:[],sourceAnimationWrappers:[]},this.componentsServices={setSlideNumber:function(){}},this.resolve=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return n.unshift(o),i(e,function(e){if(Array.isArray(e))return A(e)}(t=n)||function(){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}()||function(e){var t;if(e)return\"string\"==typeof e?A(e,void 0):\"Map\"===(t=\"Object\"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||\"Set\"===t?Array.from(e):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,void 0):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.\")}())},this.collections={sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={eventsDispatcher:{},globalEventsController:{},lightboxCloser:{},lightboxUpdater:{},scrollbarRecompensor:{},slideChangeFacade:{},slideIndexChanger:{},sourcesPointerDown:{},sourceDisplayFacade:{},stageManager:{},windowResizeActioner:{}},this.fs={},this.sws={},P(this),this.close=function(){return o.core.lightboxCloser.closeLightbox()}},window.fsLightboxInstances={},o(),window.refreshFsLightbox=function(){for(var e in fsLightboxInstances){var t=fsLightboxInstances[e].props;fsLightboxInstances[e]=new FsLightbox,fsLightboxInstances[e].props=t,fsLightboxInstances[e].props.sources=[],fsLightboxInstances[e].elements.a=[]}o()}}],o={},i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,\"a\",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p=\"\",i(i.s=0);function i(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,o});","!function o(i,r,a){function c(t,e){if(!r[t]){if(!i[t]){var n=\"function\"==typeof require&&require;if(!e&&n)return n(t,!0);if(d)return d(t,!0);throw(e=new Error(\"Cannot find module '\"+t+\"'\")).code=\"MODULE_NOT_FOUND\",e}n=r[t]={exports:{}},i[t][0].call(n.exports,function(e){return c(i[t][1][e]||e)},n,n.exports,o,i,r,a)}return r[t].exports}for(var d=\"function\"==typeof require&&require,e=0;e<a.length;e++)c(a[e]);return c}({1:[function(e,t,n){var o=e(\"dragula\");!function(){this.jKanban=function(){var y=this,e={enabled:!1},t={enabled:!1},t=(this._disallowedItemProperties=[\"id\",\"title\",\"click\",\"context\",\"drag\",\"dragend\",\"drop\",\"order\"],this.element=\"\",this.container=\"\",this.boardContainer=[],this.handlers=[],this.dragula=o,this.drake=\"\",{element:this.drakeBoard=\"\",gutter:\"15px\",widthBoard:\"250px\",responsive:\"700\",responsivePercentage:!1,boards:[],dragBoards:!0,dragItems:!0,itemAddOptions:this.itemAddOptions=t,itemHandleOptions:this.itemHandleOptions=e,dragEl:function(e,t){},dragendEl:function(e){},dropEl:function(e,t,n,o){},dragBoard:function(e,t){},dragendBoard:function(e){},dropBoard:function(e,t,n,o){},click:function(e){},context:function(e,t){},buttonClick:function(e,t){},propagationHandlers:[]});function b(e){e.addEventListener(\"click\",function(e){y.options.propagationHandlers.includes(\"click\")||e.preventDefault(),y.options.click(this),\"function\"==typeof this.clickfn&&this.clickfn(this)})}function w(e){e.addEventListener?e.addEventListener(\"contextmenu\",function(e){y.options.propagationHandlers.includes(\"context\")||e.preventDefault(),y.options.context(this,e),\"function\"==typeof this.contextfn&&this.contextfn(this,e)},!1):e.attachEvent(\"oncontextmenu\",function(){y.options.context(this),\"function\"==typeof this.contextfn&&this.contextfn(this),y.options.propagationHandlers.includes(\"context\")||(window.event.returnValue=!1)})}function r(t){var n=[];return y.options.boards.map(function(e){if(e.id===t)return n.push(e)}),n[0]}function E(e,t){for(var n in t)-1<y._disallowedItemProperties.indexOf(n)||e.setAttribute(\"data-\"+n,t[n])}function T(n){var e=\"title\"in n?n.title:\"\";if(y.options.itemHandleOptions.enabled){if(void 0!==(y.options.itemHandleOptions.customHandler||void 0))return e=\"<div> \"+y.options.itemHandleOptions.customHandler.replace(/%([^%]+)%/g,function(e,t){return void 0!==n[t]?n[t]:\"\"})+\" </div>\";var t=y.options.itemHandleOptions.customCssHandler,o=y.options.itemHandleOptions.customCssIconHandler,e=(y.options.itemHandleOptions.customItemLayout,\"<div class='item_handle \"+(t=void 0===(t||void 0)?\"drag_handler\":t)+\"'><i class='item_handle \"+(o=void 0===(o||void 0)?t+\"_icon\":o)+\"'></i></div><div>\"+e+\"</div>\")}return e}arguments[0]&&\"object\"==typeof arguments[0]&&(this.options=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(t,arguments[0])),this.__getCanMove=function(e){return y.options.itemHandleOptions.enabled?y.options.itemHandleOptions.handleClass?e.classList.contains(y.options.itemHandleOptions.handleClass):e.classList.contains(\"item_handle\"):!!y.options.dragItems},this.init=function(){y.element=document.querySelector(y.options.element);var e=document.createElement(\"div\");e.classList.add(\"kanban-container\"),y.container=e,document.querySelector(y.options.element).dataset.hasOwnProperty(\"board\")?(url=document.querySelector(y.options.element).dataset.board,window.fetch(url,{method:\"GET\",headers:{\"Content-Type\":\"application/json\"}}).then(function(e){e.json().then(function(e){y.options.boards=e,y.addBoards(y.options.boards,!0)})}).catch(function(e){console.log(\"Error: \",e)})):y.addBoards(y.options.boards,!0),y.element.appendChild(y.container),window.innerWidth>y.options.responsive&&(y.drakeBoard=y.dragula([y.container],{moves:function(e,t,n,o){return!!y.options.dragBoards&&(n.classList.contains(\"kanban-board-header\")||n.classList.contains(\"kanban-title-board\"))},accepts:function(e,t,n,o){return t.classList.contains(\"kanban-container\")},revertOnSpill:!0,direction:\"horizontal\"}).on(\"drag\",function(e,t){e.classList.add(\"is-moving\"),y.options.dragBoard(e,t),\"function\"==typeof e.dragfn&&e.dragfn(e,t)}).on(\"dragend\",function(e){for(var t=1,n=0;n<y.container.childNodes.length;n++)y.container.childNodes[n].dataset.order=t++;e.classList.remove(\"is-moving\"),y.options.dragendBoard(e),\"function\"==typeof e.dragendfn&&e.dragendfn(e)}).on(\"drop\",function(e,t,n,o){e.classList.remove(\"is-moving\"),y.options.dropBoard(e,t,n,o),\"function\"==typeof e.dropfn&&e.dropfn(e,t,n,o)}),y.drake=y.dragula(y.boardContainer,{moves:function(e,t,n,o){return y.__getCanMove(n)},revertOnSpill:!0}).on(\"cancel\",function(e,t,n){y.enableAllBoards()}).on(\"drag\",function(e,t){var n,o=e.getAttribute(\"class\");\"\"!==o&&-1<o.indexOf(\"not-draggable\")?y.drake.cancel(!0):(e.classList.add(\"is-moving\"),y.options.dragEl(e,t),void 0!==(n=r(t.parentNode.dataset.id)).dragTo&&y.options.boards.map(function(e){-1===n.dragTo.indexOf(e.id)&&e.id!==t.parentNode.dataset.id&&y.findBoard(e.id).classList.add(\"disabled-board\")}),null!==e&&\"function\"==typeof e.dragfn&&e.dragfn(e,t))}).on(\"dragend\",function(e){y.options.dragendEl(e),null!==e&&\"function\"==typeof e.dragendfn&&e.dragendfn(e)}).on(\"drop\",function(e,t,n,o){y.enableAllBoards();var i=r(n.parentNode.dataset.id);void 0!==i.dragTo&&-1===i.dragTo.indexOf(t.parentNode.dataset.id)&&t.parentNode.dataset.id!==n.parentNode.dataset.id&&y.drake.cancel(!0),null!==e&&(!1===y.options.dropEl(e,t,n,o)&&y.drake.cancel(!0),e.classList.remove(\"is-moving\"),\"function\"==typeof e.dropfn)&&e.dropfn(e,t,n,o)}))},this.enableAllBoards=function(){var e=document.querySelectorAll(\".kanban-board\");if(0<e.length&&void 0!==e)for(var t=0;t<e.length;t++)e[t].classList.remove(\"disabled-board\")},this.addElement=function(e,t,n){void 0===n&&(n=-1);var e=y.element.querySelector('[data-id=\"'+e+'\"] .kanban-drag'),n=e.childNodes[n],o=document.createElement(\"div\");return o.classList.add(\"kanban-item\"),void 0!==t.id&&\"\"!==t.id&&o.setAttribute(\"data-eid\",t.id),t.class&&Array.isArray(t.class)&&t.class.forEach(function(e){o.classList.add(e)}),o.innerHTML=T(t),o.clickfn=t.click,o.contextfn=t.context,o.dragfn=t.drag,o.dragendfn=t.dragend,o.dropfn=t.drop,E(o,t),b(o),w(o),y.options.itemHandleOptions.enabled&&(o.style.cursor=\"default\"),e.insertBefore(o,n),y},this.addForm=function(e,t){var e=y.element.querySelector('[data-id=\"'+e+'\"] .kanban-drag'),n=t.getAttribute(\"class\");return t.setAttribute(\"class\",n+\" not-draggable\"),e.appendChild(t),y},this.addBoards=function(e,t){n=y.options.responsivePercentage?(y.container.style.width=\"100%\",y.options.gutter=\"1%\",window.innerWidth>y.options.responsive?(100-2*e.length)/e.length:100-2*e.length):y.options.widthBoard;var n,o,i=y.options.itemAddOptions.enabled,r=y.options.itemAddOptions.content,a=y.options.itemAddOptions.class,c=y.options.itemAddOptions.footer;for(o in e){var d,s=e[o],l=(t||y.options.boards.push(s),y.options.responsivePercentage||(\"\"===y.container.style.width?y.container.style.width=parseInt(n)+2*parseInt(y.options.gutter)+\"px\":y.container.style.width=parseInt(y.container.style.width)+parseInt(n)+2*parseInt(y.options.gutter)+\"px\"),document.createElement(\"div\")),u=(l.dataset.id=s.id,l.dataset.order=y.container.childNodes.length+1,l.classList.add(\"kanban-board\"),y.options.responsivePercentage?l.style.width=n+\"%\":l.style.width=n,l.style.marginLeft=y.options.gutter,l.style.marginRight=y.options.gutter,document.createElement(\"header\")),f=\"\"!==s.class&&void 0!==s.class?s.class.split(\",\"):[],p=(u.classList.add(\"kanban-board-header\"),f.map(function(e){e=e.replace(/^[ ]+/g,\"\"),u.classList.add(e)}),u.innerHTML='<div class=\"kanban-title-board\">'+s.title+\"</div>\",document.createElement(\"main\"));for(d in p.classList.add(\"kanban-drag\"),(\"\"!==s.bodyClass&&void 0!==s.bodyClass?s.bodyClass.split(\",\"):[]).map(function(e){p.classList.add(e)}),y.boardContainer.push(p),s.item){var m=s.item[d],v=document.createElement(\"div\");v.classList.add(\"kanban-item\"),m.id&&(v.dataset.eid=m.id),m.class&&Array.isArray(m.class)&&m.class.forEach(function(e){v.classList.add(e)}),v.innerHTML=T(m),v.clickfn=m.click,v.contextfn=m.context,v.dragfn=m.drag,v.dragendfn=m.dragend,v.dropfn=m.drop,E(v,m),b(v),w(v),y.options.itemHandleOptions.enabled&&(v.style.cursor=\"default\"),p.appendChild(v)}var h,g,f=document.createElement(\"footer\");i&&(h=document.createElement(\"BUTTON\"),g=document.createTextNode(r||\"+\"),h.setAttribute(\"class\",a||\"kanban-title-button btn btn-default btn-xs\"),h.appendChild(g),(c?f:u).appendChild(h),function(e,t){e.addEventListener(\"click\",function(e){e.preventDefault(),y.options.buttonClick(this,t)})}(h,s.id)),l.appendChild(u),l.appendChild(p),l.appendChild(f),y.container.appendChild(l)}return y},this.findBoard=function(e){return y.element.querySelector('[data-id=\"'+e+'\"]')},this.getParentBoardID=function(e){return null===(e=\"string\"==typeof e?y.element.querySelector('[data-eid=\"'+e+'\"]'):e)?null:e.parentNode.parentNode.dataset.id},this.moveElement=function(e,t,n){if(e!==this.getParentBoardID(t))return this.removeElement(t),this.addElement(e,n)},this.replaceElement=function(e,t){var n=e;return(n=\"string\"==typeof n?y.element.querySelector('[data-eid=\"'+e+'\"]'):n).innerHTML=T(t),n.clickfn=t.click,n.contextfn=t.context,n.dragfn=t.drag,n.dragendfn=t.dragend,n.dropfn=t.drop,E(n,t),b(n),w(n),y},this.findElement=function(e){return y.element.querySelector('[data-eid=\"'+e+'\"]')},this.getBoardElements=function(e){return y.element.querySelector('[data-id=\"'+e+'\"] .kanban-drag').childNodes},this.removeElement=function(e){return null!==(e=\"string\"==typeof e?y.element.querySelector('[data-eid=\"'+e+'\"]'):e)&&(\"function\"==typeof e.remove?e.remove():e.parentNode.removeChild(e)),y},this.removeBoard=function(e){var t=null;null!==(t=\"string\"==typeof e?y.element.querySelector('[data-id=\"'+e+'\"]'):t)&&(\"function\"==typeof t.remove?t.remove():t.parentNode.removeChild(t));for(var n=0;n<y.options.boards.length;n++)if(y.options.boards[n].id===e){y.options.boards.splice(n,1);break}return y},this.onButtonClick=function(e){},this.init()}}()},{dragula:9}],2:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],3:[function(e,t,n){\"use strict\";var o=e(\"ticky\");t.exports=function(e,t,n){e&&o(function(){e.apply(n||null,t||[])})}},{ticky:11}],4:[function(e,t,n){\"use strict\";var c=e(\"atoa\"),d=e(\"./debounce\");t.exports=function(i,e){var r=e||{},a={};return(i=void 0===i?{}:i).on=function(e,t){return a[e]?a[e].push(t):a[e]=[t],i},i.once=function(e,t){return t._once=!0,i.on(e,t),i},i.off=function(e,t){var n=arguments.length;if(1===n)delete a[e];else if(0===n)a={};else{n=a[e];if(!n)return i;n.splice(n.indexOf(t),1)}return i},i.emit=function(){var e=c(arguments);return i.emitterSnapshot(e.shift()).apply(this,e)},i.emitterSnapshot=function(o){var e=(a[o]||[]).slice(0);return function(){var t=c(arguments),n=this||i;if(\"error\"!==o||!1===r.throws||e.length)return e.forEach(function(e){r.async?d(e,t,n):e.apply(n,t),e._once&&i.off(o,e)}),i;throw 1===t.length?t[0]:t}},i}},{\"./debounce\":3,atoa:2}],5:[function(n,s,e){!function(d){!function(){\"use strict\";var o=n(\"custom-event\"),i=n(\"./eventmap\"),r=d.document,e=function(e,t,n,o){return e.addEventListener(t,n,o)},t=function(e,t,n,o){return e.removeEventListener(t,n,o)},a=[];function c(e,t,n){e=function(e,t,n){var o,i;for(o=0;o<a.length;o++)if((i=a[o]).element===e&&i.type===t&&i.fn===n)return o}(e,t,n);if(e)return t=a[e].wrapper,a.splice(e,1),t}d.addEventListener||(e=function(e,t,n){return e.attachEvent(\"on\"+t,function(e,t,n){var o=c(e,t,n)||function(n,o){return function(e){var t=e||d.event;t.target=t.target||t.srcElement,t.preventDefault=t.preventDefault||function(){t.returnValue=!1},t.stopPropagation=t.stopPropagation||function(){t.cancelBubble=!0},t.which=t.which||t.keyCode,o.call(n,t)}}(e,n);return a.push({wrapper:o,element:e,type:t,fn:n}),o}(e,t,n))},t=function(e,t,n){n=c(e,t,n);if(n)return e.detachEvent(\"on\"+t,n)}),s.exports={add:e,remove:t,fabricate:function(e,t,n){n=-1===i.indexOf(t)?new o(t,{detail:n}):function(){var e;r.createEvent?(e=r.createEvent(\"Event\")).initEvent(t,!0,!0):r.createEventObject&&(e=r.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(\"on\"+t,n)}}}.call(this)}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./eventmap\":6,\"custom-event\":7}],6:[function(e,i,t){!function(o){!function(){\"use strict\";var e=[],t=\"\",n=/^on/;for(t in o)n.test(t)&&e.push(t.slice(2));i.exports=e}.call(this)}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],7:[function(e,n,t){!function(e){!function(){var t=e.CustomEvent;n.exports=function(){try{var e=new t(\"cat\",{detail:{foo:\"bar\"}});return\"cat\"===e.type&&\"bar\"===e.detail.foo}catch(e){}}()?t:\"undefined\"!=typeof document&&\"function\"==typeof document.createEvent?function(e,t){var n=document.createEvent(\"CustomEvent\");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}.call(this)}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],8:[function(e,t,n){\"use strict\";var o={},i=\"(?:^|\\\\s)\",r=\"(?:\\\\s|$)\";function a(e){var t=o[e];return t?t.lastIndex=0:o[e]=t=new RegExp(i+e+r,\"g\"),t}t.exports={add:function(e,t){var n=e.className;n.length?a(t).test(n)||(e.className+=\" \"+t):e.className=t},rm:function(e,t){e.className=e.className.replace(a(t),\" \").trim()}}},{}],9:[function(e,t,n){!function(i){!function(){\"use strict\";var D=e(\"contra/emitter\"),X=e(\"crossvent\"),Y=e(\"./classes\"),j=document,F=j.documentElement;function R(e,t,n,o){i.navigator.pointerEnabled?X[t](e,{mouseup:\"pointerup\",mousedown:\"pointerdown\",mousemove:\"pointermove\"}[n],o):i.navigator.msPointerEnabled?X[t](e,{mouseup:\"MSPointerUp\",mousedown:\"MSPointerDown\",mousemove:\"MSPointerMove\"}[n],o):(X[t](e,{mouseup:\"touchend\",mousedown:\"touchstart\",mousemove:\"touchmove\"}[n],o),X[t](e,n,o))}function U(e){return void 0!==e.touches?e.touches.length:void 0!==e.which&&0!==e.which?e.which:void 0!==e.buttons?e.buttons:void 0!==(e=e.button)?1&e?1:2&e?3:4&e?2:0:void 0}function K(e,t){return void 0!==i[t]?i[t]:(F.clientHeight?F:j.body)[e]}function z(e,t,n){var o=(e=e||{}).className||\"\";return e.className+=\" gu-hide\",t=j.elementFromPoint(t,n),e.className=o,t}function V(){return!1}function W(){return!0}function G(e){return e.width||e.right-e.left}function $(e){return e.height||e.bottom-e.top}function J(e){return e.parentNode===j?null:e.parentNode}function Q(e){return\"INPUT\"===e.tagName||\"TEXTAREA\"===e.tagName||\"SELECT\"===e.tagName||function e(t){if(!t)return!1;if(\"false\"===t.contentEditable)return!1;if(\"true\"===t.contentEditable)return!0;return e(J(t))}(e)}function Z(t){return t.nextElementSibling||function(){var e=t;for(;e=e.nextSibling,e&&1!==e.nodeType;);return e}()}function ee(e,t){var t=(t=t).targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,n={pageX:\"clientX\",pageY:\"clientY\"};return t[e=e in n&&!(e in t)&&n[e]in t?n[e]:e]}t.exports=function(e,t){1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var s,l,u,f,p,o,i,m,v,h,n,r,g=null,y=t||{},b=(void 0===y.moves&&(y.moves=W),void 0===y.accepts&&(y.accepts=W),void 0===y.invalid&&(y.invalid=function(){return!1}),void 0===y.containers&&(y.containers=e||[]),void 0===y.isContainer&&(y.isContainer=V),void 0===y.copy&&(y.copy=!1),void 0===y.copySortSource&&(y.copySortSource=!1),void 0===y.revertOnSpill&&(y.revertOnSpill=!1),void 0===y.removeOnSpill&&(y.removeOnSpill=!1),void 0===y.direction&&(y.direction=\"vertical\"),void 0===y.ignoreInputTextSelection&&(y.ignoreInputTextSelection=!0),void 0===y.mirrorContainer&&(y.mirrorContainer=j.body),D({containers:y.containers,start:function(e){e=T(e);e&&x(e)},end:C,cancel:B,remove:L,destroy:function(){c(!0),k({})},canMove:function(e){return!!T(e)},dragging:!1}));return!0===y.removeOnSpill&&b.on(\"over\",function(e){Y.rm(e,\"gu-hide\")}).on(\"out\",function(e){b.dragging&&Y.add(e,\"gu-hide\")}),c(),b;function a(e){return-1!==b.containers.indexOf(e)||y.isContainer(e)}function c(e){e=e?\"remove\":\"add\";R(F,e,\"mousedown\",q),R(F,e,\"mouseup\",k)}function d(e){R(F,e?\"remove\":\"add\",\"mousemove\",M)}function w(e){e=e?\"remove\":\"add\";X[e](F,\"selectstart\",E),X[e](F,\"click\",E)}function E(e){r&&e.preventDefault()}function q(e){var t,n;o=e.clientX,i=e.clientY,1!==U(e)||e.metaKey||e.ctrlKey||(n=T(t=e.target))&&(r=n,d(),\"mousedown\"===e.type)&&(Q(t)?t.focus():e.preventDefault())}function M(e){if(r)if(0===U(e))k({});else if(!(void 0!==e.clientX&&Math.abs(e.clientX-o)<=(y.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-i)<=(y.slideFactorY||0))){if(y.ignoreInputTextSelection){var t=ee(\"clientX\",e)||0,n=ee(\"clientY\",e)||0;if(Q(j.elementFromPoint(t,n)))return}var t=r,n=(d(!0),w(),C(),x(t),function(e){e=e.getBoundingClientRect();return{left:e.left+K(\"scrollLeft\",\"pageXOffset\"),top:e.top+K(\"scrollTop\",\"pageYOffset\")}}(u));f=ee(\"pageX\",e)-n.left,p=ee(\"pageY\",e)-n.top,Y.add(h||u,\"gu-transit\"),s||(t=u.getBoundingClientRect(),(s=u.cloneNode(!0)).style.width=G(t)+\"px\",s.style.height=$(t)+\"px\",Y.rm(s,\"gu-transit\"),Y.add(s,\"gu-mirror\"),y.mirrorContainer.appendChild(s),R(F,\"add\",\"mousemove\",_),Y.add(y.mirrorContainer,\"gu-unselectable\"),b.emit(\"cloned\",s,u,\"mirror\")),_(e)}}function T(e){if(!(b.dragging&&s||a(e))){for(var t=e;J(e)&&!1===a(J(e));){if(y.invalid(e,t))return;if(!(e=J(e)))return}var n=J(e);if(n)if(!y.invalid(e,t))if(y.moves(e,n,t,Z(e)))return{item:e,source:n}}}function x(e){var t,n;t=e.item,n=e.source,(\"boolean\"==typeof y.copy?y.copy:y.copy(t,n))&&(h=e.item.cloneNode(!0),b.emit(\"cloned\",h,e.item,\"copy\")),l=e.source,u=e.item,m=v=Z(e.item),b.dragging=!0,b.emit(\"drag\",u,l)}function C(){var e;b.dragging&&S(e=h||u,J(e))}function O(){d(!(r=!1)),w(!0)}function k(e){var t,n;O(),b.dragging&&(t=h||u,n=ee(\"clientX\",e)||0,e=ee(\"clientY\",e)||0,(n=A(z(s,n,e),n,e))&&(h&&y.copySortSource||!h||n!==l)?S(t,n):(y.removeOnSpill?L:B)())}function S(e,t){var n=J(e);h&&y.copySortSource&&t===l&&n.removeChild(u),I(t)?b.emit(\"cancel\",e,l,l):b.emit(\"drop\",e,t,l,v),N()}function L(){var e,t;b.dragging&&((t=J(e=h||u))&&t.removeChild(e),b.emit(h?\"cancel\":\"remove\",e,t,l),N())}function B(e){var t,n,o;b.dragging&&(e=0<arguments.length?e:y.revertOnSpill,!1===(o=I(n=J(t=h||u)))&&e&&(h?n&&n.removeChild(h):l.insertBefore(t,m)),o||e?b.emit(\"cancel\",t,l,l):b.emit(\"drop\",t,n,l,v),N())}function N(){var e=h||u;O(),s&&(Y.rm(y.mirrorContainer,\"gu-unselectable\"),R(F,\"remove\",\"mousemove\",_),J(s).removeChild(s),s=null),e&&Y.rm(e,\"gu-transit\"),n&&clearTimeout(n),b.dragging=!1,g&&b.emit(\"out\",e,g,l),b.emit(\"dragend\",e),l=u=h=m=v=n=g=null}function I(e,t){t=void 0!==t?t:s?v:Z(h||u);return e===l&&t===m}function A(t,n,o){for(var i=t;i&&!function(){if(!1===a(i))return;var e=H(i,t),e=P(i,e,n,o);if(I(i,e))return 1;return y.accepts(u,i,l,e)}();)i=J(i);return i}function _(e){if(s){e.preventDefault();var t=ee(\"clientX\",e)||0,e=ee(\"clientY\",e)||0,n=t-f,o=e-p,i=(s.style.left=n+\"px\",s.style.top=o+\"px\",h||u),n=z(s,t,e),o=A(n,t,e),r=null!==o&&o!==g,a=((r||null===o)&&(g&&d(\"out\"),g=o,r)&&d(\"over\"),J(i));if(o===l&&h&&!y.copySortSource)a&&a.removeChild(i);else{var c,n=H(o,n);if(null!==n)c=P(o,n,t,e);else{if(!0!==y.revertOnSpill||h)return void(h&&a&&a.removeChild(i));c=m,o=l}(null===c&&r||c!==i&&c!==Z(i))&&(v=c,o.insertBefore(i,c),b.emit(\"shadow\",i,o,l))}}function d(e){b.emit(e,i,g,l)}}function H(e,t){for(var n=t;n!==e&&J(n)!==e;)n=J(n);return n===F?null:n}function P(i,t,r,a){var c=\"horizontal\"===y.direction;return(t!==i?function(){var e=t.getBoundingClientRect();if(c)return n(r>e.left+G(e)/2);return n(a>e.top+$(e)/2)}:function(){var e,t,n,o=i.children.length;for(e=0;e<o;e++){if(t=i.children[e],n=t.getBoundingClientRect(),c&&n.left+n.width/2>r)return t;if(!c&&n.top+n.height/2>a)return t}return null})();function n(e){return e?Z(t):t}}}}.call(this)}.call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"./classes\":8,\"contra/emitter\":4,crossvent:5}],10:[function(e,t,n){var o,i,t=t.exports={};function r(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}try{o=\"function\"==typeof setTimeout?setTimeout:r}catch(e){o=r}try{i=\"function\"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}function c(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return(o=setTimeout)(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}var d,s=[],l=!1,u=-1;function f(){l&&d&&(l=!1,d.length?s=d.concat(s):u=-1,s.length)&&p()}function p(){if(!l){for(var e=c(f),t=(l=!0,s.length);t;){for(d=s,s=[];++u<t;)d&&d[u].run();u=-1,t=s.length}d=null,l=!1,!function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return(i=clearTimeout)(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||l||c(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},t.title=\"browser\",t.browser=!0,t.env={},t.argv=[],t.version=\"\",t.versions={},t.on=v,t.addListener=v,t.once=v,t.off=v,t.removeListener=v,t.removeAllListeners=v,t.emit=v,t.prependListener=v,t.prependOnceListener=v,t.listeners=function(e){return[]},t.binding=function(e){throw new Error(\"process.binding is not supported\")},t.cwd=function(){return\"/\"},t.chdir=function(e){throw new Error(\"process.chdir is not supported\")},t.umask=function(){return 0}},{}],11:[function(e,n,t){!function(t){!function(){var e=\"function\"==typeof t?function(e){t(e)}:function(e){setTimeout(e,0)};n.exports=e}.call(this)}.call(this,e(\"timers\").setImmediate)},{timers:12}],12:[function(d,e,s){!function(n,c){!function(){var o=d(\"process/browser.js\").nextTick,e=Function.prototype.apply,i=Array.prototype.slice,r={},a=0;function t(e,t){this._id=e,this._clearFn=t}s.setTimeout=function(){return new t(e.call(setTimeout,window,arguments),clearTimeout)},s.setInterval=function(){return new t(e.call(setInterval,window,arguments),clearInterval)},s.clearTimeout=s.clearInterval=function(e){e.close()},t.prototype.unref=t.prototype.ref=function(){},t.prototype.close=function(){this._clearFn.call(window,this._id)},s.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},s.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},s._unrefActive=s.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},s.setImmediate=\"function\"==typeof n?n:function(e){var t=a++,n=!(arguments.length<2)&&i.call(arguments,1);return r[t]=!0,o(function(){r[t]&&(n?e.apply(null,n):e.call(null),s.clearImmediate(t))}),t},s.clearImmediate=\"function\"==typeof c?c:function(e){delete r[e]}}.call(this)}.call(this,d(\"timers\").setImmediate,d(\"timers\").clearImmediate)},{\"process/browser.js\":10,timers:12}]},{},[1]);","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=\"undefined\"!=typeof globalThis?globalThis:t||self).noUiSlider={})}(this,function(ut){\"use strict\";function n(t){return\"object\"==typeof t&&\"function\"==typeof t.to}function ct(t){t.parentElement.removeChild(t)}function pt(t){return null!=t}function ft(t){t.preventDefault()}function i(t){return\"number\"==typeof t&&!isNaN(t)&&isFinite(t)}function dt(t,e,r){0<r&&(gt(t,e),setTimeout(function(){bt(t,e)},r))}function ht(t){return Math.max(Math.min(t,100),0)}function mt(t){return Array.isArray(t)?t:[t]}function e(t){t=(t=String(t)).split(\".\");return 1<t.length?t[1].length:0}function gt(t,e){t.classList&&!/\\s/.test(e)?t.classList.add(e):t.className+=\" \"+e}function bt(t,e){t.classList&&!/\\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp(\"(^|\\\\b)\"+e.split(\" \").join(\"|\")+\"(\\\\b|$)\",\"gi\"),\" \")}function vt(t){var e=void 0!==window.pageXOffset,r=\"CSS1Compat\"===(t.compatMode||\"\");return{x:e?window.pageXOffset:(r?t.documentElement:t.body).scrollLeft,y:e?window.pageYOffset:(r?t.documentElement:t.body).scrollTop}}function s(t,e){return 100/(e-t)}function a(t,e,r){return 100*e/(t[r+1]-t[r])}function l(t,e){for(var r=1;t>=e[r];)r+=1;return r}function r(t,e,r){var n,i,o;return r>=t.slice(-1)[0]?100:(o=l(r,t),n=t[o-1],t=t[o],i=e[o-1],e=e[o],i+(o=r,a(r=[n,t],r[0]<0?o+Math.abs(r[0]):o-r[0],0)/s(i,e)))}function o(t,e,r,n){var i,o,s;return 100===n?n:(o=t[(i=l(n,t))-1],s=t[i],r?(s-o)/2<n-o?s:o:e[i-1]?t[i-1]+(r=n-t[i-1],s=e[i-1],Math.round(r/s)*s):n)}ut.PipsMode=void 0,(E=ut.PipsMode||(ut.PipsMode={})).Range=\"range\",E.Steps=\"steps\",E.Positions=\"positions\",E.Count=\"count\",E.Values=\"values\",ut.PipsType=void 0,(E=ut.PipsType||(ut.PipsType={}))[E.None=-1]=\"None\",E[E.NoValue=0]=\"NoValue\",E[E.LargeValue=1]=\"LargeValue\",E[E.SmallValue=2]=\"SmallValue\";t.prototype.getDistance=function(t){for(var e=[],r=0;r<this.xNumSteps.length-1;r++)e[r]=a(this.xVal,t,r);return e},t.prototype.getAbsoluteDistance=function(t,e,r){var n=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[n+1];)n++;else t===this.xPct[this.xPct.length-1]&&(n=this.xPct.length-2);r||t!==this.xPct[n+1]||n++;for(var i,o=1,s=(e=null===e?[]:e)[n],a=0,l=0,u=0,c=r?(t-this.xPct[n])/(this.xPct[n+1]-this.xPct[n]):(this.xPct[n+1]-t)/(this.xPct[n+1]-this.xPct[n]);0<s;)i=this.xPct[n+1+u]-this.xPct[n+u],100<e[n+u]*o+100-100*c?(a=i*c,o=(s-100*c)/e[n+u],c=1):(a=e[n+u]*i/100*o,o=0),r?(l-=a,1<=this.xPct.length+u&&u--):(l+=a,1<=this.xPct.length-u&&u++),s=e[n+u]*o;return t+l},t.prototype.toStepping=function(t){return t=r(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return e=this.xVal,r=this.xPct,100<=(t=t)?e.slice(-1)[0]:(o=l(t,r),n=e[o-1],e=e[o],i=r[o-1],r=r[o],(t-i)*s(i,r)*((o=[n,e])[1]-o[0])/100+o[0]);var e,r,n,i,o},t.prototype.getStep=function(t){return t=o(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,r){var n=l(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/r},t.prototype.getNearbySteps=function(t){t=l(t,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(e);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){t=\"min\"===t?0:\"max\"===t?100:parseFloat(t);if(!i(t)||!i(e[0]))throw new Error(\"noUiSlider: 'range' value isn't numeric.\");this.xPct.push(t),this.xVal.push(e[0]);e=Number(e[1]);t?this.xSteps.push(!isNaN(e)&&e):isNaN(e)||(this.xSteps[0]=e),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){e&&(this.xVal[t]===this.xVal[t+1]?this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t]:(this.xSteps[t]=a([this.xVal[t],this.xVal[t+1]],e,0)/s(this.xPct[t],this.xPct[t+1]),e=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],e=Math.ceil(Number(e.toFixed(3))-1),e=this.xVal[t]+this.xNumSteps[t]*e,this.xHighestCompleteStep[t]=e))};var u=t;function t(e,t,r){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=t;var n,i=[];for(Object.keys(e).forEach(function(t){i.push([mt(e[t]),t])}),i.sort(function(t,e){return t[0][0]-e[0][0]}),n=0;n<i.length;n++)this.handleEntryPoint(i[n][1],i[n][0]);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)this.handleStepPoint(n,this.xNumSteps[n])}var c={to:function(t){return void 0===t?\"\":t.toFixed(2)},from:Number},p={target:\"target\",base:\"base\",origin:\"origin\",handle:\"handle\",handleLower:\"handle-lower\",handleUpper:\"handle-upper\",touchArea:\"touch-area\",horizontal:\"horizontal\",vertical:\"vertical\",background:\"background\",connect:\"connect\",connects:\"connects\",ltr:\"ltr\",rtl:\"rtl\",textDirectionLtr:\"txt-dir-ltr\",textDirectionRtl:\"txt-dir-rtl\",draggable:\"draggable\",drag:\"state-drag\",tap:\"state-tap\",active:\"active\",tooltip:\"tooltip\",pips:\"pips\",pipsHorizontal:\"pips-horizontal\",pipsVertical:\"pips-vertical\",marker:\"marker\",markerHorizontal:\"marker-horizontal\",markerVertical:\"marker-vertical\",markerNormal:\"marker-normal\",markerLarge:\"marker-large\",markerSub:\"marker-sub\",value:\"value\",valueHorizontal:\"value-horizontal\",valueVertical:\"value-vertical\",valueNormal:\"value-normal\",valueLarge:\"value-large\",valueSub:\"value-sub\"},St={tooltips:\".__tooltips\",aria:\".__aria\"};function f(t,e){if(!i(e))throw new Error(\"noUiSlider: 'step' is not numeric.\");t.singleStep=e}function d(t,e){if(!i(e))throw new Error(\"noUiSlider: 'keyboardPageMultiplier' is not numeric.\");t.keyboardPageMultiplier=e}function h(t,e){if(!i(e))throw new Error(\"noUiSlider: 'keyboardMultiplier' is not numeric.\");t.keyboardMultiplier=e}function m(t,e){if(!i(e))throw new Error(\"noUiSlider: 'keyboardDefaultStep' is not numeric.\");t.keyboardDefaultStep=e}function g(t,e){if(\"object\"!=typeof e||Array.isArray(e))throw new Error(\"noUiSlider: 'range' is not an object.\");if(void 0===e.min||void 0===e.max)throw new Error(\"noUiSlider: Missing 'min' or 'max' in 'range'.\");t.spectrum=new u(e,t.snap||!1,t.singleStep)}function b(t,e){if(e=mt(e),!Array.isArray(e)||!e.length)throw new Error(\"noUiSlider: 'start' option is incorrect.\");t.handles=e.length,t.start=e}function v(t,e){if(\"boolean\"!=typeof e)throw new Error(\"noUiSlider: 'snap' option must be a boolean.\");t.snap=e}function S(t,e){if(\"boolean\"!=typeof e)throw new Error(\"noUiSlider: 'animate' option must be a boolean.\");t.animate=e}function x(t,e){if(\"number\"!=typeof e)throw new Error(\"noUiSlider: 'animationDuration' option must be a number.\");t.animationDuration=e}function P(t,e){var r,n=[!1];if(\"lower\"===e?e=[!0,!1]:\"upper\"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error(\"noUiSlider: 'connect' option doesn't match handle count.\");n=e}t.connect=n}function C(t,e){switch(e){case\"horizontal\":t.ort=0;break;case\"vertical\":t.ort=1;break;default:throw new Error(\"noUiSlider: 'orientation' option is invalid.\")}}function y(t,e){if(!i(e))throw new Error(\"noUiSlider: 'margin' option must be numeric.\");0!==e&&(t.margin=t.spectrum.getDistance(e))}function N(t,e){if(!i(e))throw new Error(\"noUiSlider: 'limit' option must be numeric.\");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error(\"noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.\")}function V(t,e){var r;if(!i(e)&&!Array.isArray(e))throw new Error(\"noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.\");if(Array.isArray(e)&&2!==e.length&&!i(e[0])&&!i(e[1]))throw new Error(\"noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.\");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],r=0;r<t.spectrum.xNumSteps.length-1;r++)if(t.padding[0][r]<0||t.padding[1][r]<0)throw new Error(\"noUiSlider: 'padding' option must be a positive number(s).\");var e=e[0]+e[1],n=t.spectrum.xVal[0];if(1<e/(t.spectrum.xVal[t.spectrum.xVal.length-1]-n))throw new Error(\"noUiSlider: 'padding' option must not exceed 100% of the range.\")}}function A(t,e){switch(e){case\"ltr\":t.dir=0;break;case\"rtl\":t.dir=1;break;default:throw new Error(\"noUiSlider: 'direction' option was not recognized.\")}}function k(t,e){if(\"string\"!=typeof e)throw new Error(\"noUiSlider: 'behaviour' must be a string containing options.\");var r=0<=e.indexOf(\"tap\"),n=0<=e.indexOf(\"drag\"),i=0<=e.indexOf(\"fixed\"),o=0<=e.indexOf(\"snap\"),s=0<=e.indexOf(\"hover\"),a=0<=e.indexOf(\"unconstrained\"),l=0<=e.indexOf(\"drag-all\"),e=0<=e.indexOf(\"smooth-steps\");if(i){if(2!==t.handles)throw new Error(\"noUiSlider: 'fixed' behaviour must be used with 2 handles\");y(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error(\"noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit\");t.events={tap:r||o,drag:n,dragAll:l,smoothSteps:e,fixed:i,snap:o,hover:s,unconstrained:a}}function M(t,e){if(!1!==e)if(!0===e||n(e)){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(e)}else{if((e=mt(e)).length!==t.handles)throw new Error(\"noUiSlider: must pass a formatter for all handles.\");e.forEach(function(t){if(\"boolean\"!=typeof t&&!n(t))throw new Error(\"noUiSlider: 'tooltips' must be passed a formatter or 'false'.\")}),t.tooltips=e}}function U(t,e){if(e.length!==t.handles)throw new Error(\"noUiSlider: must pass a attributes for all handles.\");t.handleAttributes=e}function D(t,e){if(!n(e))throw new Error(\"noUiSlider: 'ariaFormat' requires 'to' method.\");t.ariaFormat=e}function O(t,e){if(!n(r=e)||\"function\"!=typeof r.from)throw new Error(\"noUiSlider: 'format' requires 'to' and 'from' methods.\");var r;t.format=e}function L(t,e){if(\"boolean\"!=typeof e)throw new Error(\"noUiSlider: 'keyboardSupport' option must be a boolean.\");t.keyboardSupport=e}function T(t,e){t.documentElement=e}function j(t,e){if(\"string\"!=typeof e&&!1!==e)throw new Error(\"noUiSlider: 'cssPrefix' must be a string or `false`.\");t.cssPrefix=e}function z(e,r){if(\"object\"!=typeof r)throw new Error(\"noUiSlider: 'cssClasses' must be an object.\");\"string\"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(r).forEach(function(t){e.cssClasses[t]=e.cssPrefix+r[t]})):e.cssClasses=r}function xt(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:c,format:c},n={step:{r:!1,t:f},keyboardPageMultiplier:{r:!1,t:d},keyboardMultiplier:{r:!1,t:h},keyboardDefaultStep:{r:!1,t:m},start:{r:!0,t:b},connect:{r:!0,t:P},direction:{r:!0,t:A},snap:{r:!1,t:v},animate:{r:!1,t:S},animationDuration:{r:!1,t:x},range:{r:!0,t:g},orientation:{r:!1,t:C},margin:{r:!1,t:y},limit:{r:!1,t:N},padding:{r:!1,t:V},behaviour:{r:!0,t:k},ariaFormat:{r:!1,t:D},format:{r:!1,t:O},tooltips:{r:!1,t:M},keyboardSupport:{r:!0,t:L},documentElement:{r:!1,t:T},cssPrefix:{r:!0,t:j},cssClasses:{r:!0,t:z},handleAttributes:{r:!1,t:U}},i={connect:!1,direction:\"ltr\",behaviour:\"tap\",orientation:\"horizontal\",keyboardSupport:!0,cssPrefix:\"noUi-\",cssClasses:p,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10},t=(e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(t){if(pt(e[t])||void 0!==i[t])n[t].t(r,(pt(e[t])?e:i)[t]);else if(n[t].r)throw new Error(\"noUiSlider: '\"+t+\"' is required.\")}),r.pips=e.pips,document.createElement(\"div\")),o=void 0!==t.style.msTransform,t=void 0!==t.style.transform;r.transformRule=t?\"transform\":o?\"msTransform\":\"webkitTransform\";return r.style=[[\"left\",\"top\"],[\"right\",\"bottom\"]][r.dir][r.ort],r}function H(t,f,o){var i,l,a,n,s,u=window.navigator.pointerEnabled?{start:\"pointerdown\",move:\"pointermove\",end:\"pointerup\"}:window.navigator.msPointerEnabled?{start:\"MSPointerDown\",move:\"MSPointerMove\",end:\"MSPointerUp\"}:{start:\"mousedown touchstart\",move:\"mousemove touchmove\",end:\"mouseup touchend\"},j=window.CSS&&CSS.supports&&CSS.supports(\"touch-action\",\"none\")&&function(){var t=!1;try{var e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"test\",null,e)}catch(t){}return t}(),c=t,S=f.spectrum,p=[],d=[],h=[],m=0,g={},b=t.ownerDocument,v=f.documentElement||b.documentElement,x=b.body,z=\"rtl\"===b.dir||1===f.ort?0:100;function y(t,e){var r=b.createElement(\"div\");return e&>(r,e),t.appendChild(r),r}function H(t,c){var e,t=y(t,f.cssClasses.origin),r=y(t,f.cssClasses.handle);return y(r,f.cssClasses.touchArea),r.setAttribute(\"data-handle\",String(c)),f.keyboardSupport&&(r.setAttribute(\"tabindex\",\"0\"),r.addEventListener(\"keydown\",function(t){var e=c;if(!_()&&!w(e)){var r,n=[\"Left\",\"Right\"],i=[\"Down\",\"Up\"],o=[\"PageDown\",\"PageUp\"],s=[\"Home\",\"End\"],a=(f.dir&&!f.ort?n.reverse():f.ort&&!f.dir&&(i.reverse(),o.reverse()),t.key.replace(\"Arrow\",\"\")),l=a===o[0],o=a===o[1],u=a===i[0]||a===n[0]||l,i=a===i[1]||a===n[1]||o,n=a===s[0],a=a===s[1];if(!(u||i||n||a))return!0;if(t.preventDefault(),i||u){s=u?0:1,n=ot(e)[s];if(null===n)return!1;!1===n&&(n=S.getDefaultStep(d[e],u,f.keyboardDefaultStep)),n*=o||l?f.keyboardPageMultiplier:f.keyboardMultiplier,n=Math.max(n,1e-7),n*=u?-1:1,r=p[e]+n}else r=a?f.spectrum.xVal[f.spectrum.xVal.length-1]:f.spectrum.xVal[0];U(e,S.toStepping(r),!0,!0),k(\"slide\",e),k(\"update\",e),k(\"change\",e),k(\"set\",e)}return!1})),void 0!==f.handleAttributes&&(e=f.handleAttributes[c],Object.keys(e).forEach(function(t){r.setAttribute(t,e[t])})),r.setAttribute(\"role\",\"slider\"),r.setAttribute(\"aria-orientation\",f.ort?\"vertical\":\"horizontal\"),0===c?gt(r,f.cssClasses.handleLower):c===f.handles-1&>(r,f.cssClasses.handleUpper),t.handle=r,t}function F(t,e){return!!e&&y(t,f.cssClasses.connect)}function R(t,e){return!(!f.tooltips||!f.tooltips[e])&&y(t.firstChild,f.cssClasses.tooltip)}function _(){return c.hasAttribute(\"disabled\")}function w(t){return l[t].hasAttribute(\"disabled\")}function E(){s&&(r(\"update\"+St.tooltips),s.forEach(function(t){t&&ct(t)}),s=null)}function B(){E(),s=l.map(R),e(\"update\"+St.tooltips,function(t,e,r){s&&f.tooltips&&!1!==s[e]&&(t=t[e],!0!==f.tooltips[e]&&(t=f.tooltips[e].to(r[e])),s[e].innerHTML=t)})}function q(t,e){return t.map(function(t){return S.fromStepping(e?S.getStep(t):t)})}function X(d){var h=function(t){if(t.mode===ut.PipsMode.Range||t.mode===ut.PipsMode.Steps)return S.xVal;if(t.mode!==ut.PipsMode.Count)return t.mode===ut.PipsMode.Positions?q(t.values,t.stepped):t.mode===ut.PipsMode.Values?t.stepped?t.values.map(function(t){return S.fromStepping(S.getStep(S.toStepping(t)))}):t.values:[];if(t.values<2)throw new Error(\"noUiSlider: 'values' (>= 2) required for mode 'count'.\");for(var e=t.values-1,r=100/e,n=[];e--;)n[e]=e*r;return n.push(100),q(n,t.stepped)}(d),m={},t=S.xVal[0],e=S.xVal[S.xVal.length-1],g=!1,b=!1,v=0;return(h=h.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==t&&(h.unshift(t),g=!0),h[h.length-1]!==e&&(h.push(e),b=!0),h.forEach(function(t,e){var r,n,i,o,s,a,l,u,c=h[e+1],p=d.mode===ut.PipsMode.Steps,f=(f=p?S.xNumSteps[e]:f)||c-t;for(void 0===c&&(c=t),f=Math.max(f,1e-7),r=t;r<=c;r=Number((r+f).toFixed(7))){for(a=(s=(i=S.toStepping(r))-v)/(d.density||1),u=s/(l=Math.round(a)),n=1;n<=l;n+=1)m[(o=v+n*u).toFixed(5)]=[S.fromStepping(o),0];s=-1<h.indexOf(r)?ut.PipsType.LargeValue:p?ut.PipsType.SmallValue:ut.PipsType.NoValue,!e&&g&&r!==c&&(s=0),r===c&&b||(m[i.toFixed(5)]=[r,s]),v=i}}),m}function Y(i,o,s){var t,a=b.createElement(\"div\"),n=((t={})[ut.PipsType.None]=\"\",t[ut.PipsType.NoValue]=f.cssClasses.valueNormal,t[ut.PipsType.LargeValue]=f.cssClasses.valueLarge,t[ut.PipsType.SmallValue]=f.cssClasses.valueSub,t),l=((t={})[ut.PipsType.None]=\"\",t[ut.PipsType.NoValue]=f.cssClasses.markerNormal,t[ut.PipsType.LargeValue]=f.cssClasses.markerLarge,t[ut.PipsType.SmallValue]=f.cssClasses.markerSub,t),u=[f.cssClasses.valueHorizontal,f.cssClasses.valueVertical],c=[f.cssClasses.markerHorizontal,f.cssClasses.markerVertical];function p(t,e){var r=e===f.cssClasses.value;return e+\" \"+(r?u:c)[f.ort]+\" \"+(r?n:l)[t]}return gt(a,f.cssClasses.pips),gt(a,0===f.ort?f.cssClasses.pipsHorizontal:f.cssClasses.pipsVertical),Object.keys(i).forEach(function(t){var e,r,n;r=i[e=t][0],t=i[t][1],(t=o?o(r,t):t)!==ut.PipsType.None&&((n=y(a,!1)).className=p(t,f.cssClasses.marker),n.style[f.style]=e+\"%\",t>ut.PipsType.NoValue)&&((n=y(a,!1)).className=p(t,f.cssClasses.value),n.setAttribute(\"data-value\",String(r)),n.style[f.style]=e+\"%\",n.innerHTML=String(s.to(r)))}),a}function P(){n&&(ct(n),n=null)}function C(t){P();var e=X(t),r=t.filter,t=t.format||{to:function(t){return String(Math.round(t))}};return n=c.appendChild(Y(e,r,t))}function I(){var t=i.getBoundingClientRect(),e=\"offset\"+[\"Width\",\"Height\"][f.ort];return 0===f.ort?t.width||i[e]:t.height||i[e]}function N(n,i,o,s){function e(t){var e,r;return!!(t=function(e,t,r){var n=0===e.type.indexOf(\"touch\"),i=0===e.type.indexOf(\"mouse\"),o=0===e.type.indexOf(\"pointer\"),s=0,a=0;0===e.type.indexOf(\"MSPointer\")&&(o=!0);if(\"mousedown\"===e.type&&!e.buttons&&!e.touches)return!1;if(n){n=function(t){t=t.target;return t===r||r.contains(t)||e.composed&&e.composedPath().shift()===r};if(\"touchstart\"===e.type){var l=Array.prototype.filter.call(e.touches,n);if(1<l.length)return!1;s=l[0].pageX,a=l[0].pageY}else{l=Array.prototype.find.call(e.changedTouches,n);if(!l)return!1;s=l.pageX,a=l.pageY}}t=t||vt(b),(i||o)&&(s=e.clientX+t.x,a=e.clientY+t.y);return e.pageOffset=t,e.points=[s,a],e.cursor=i||o,e}(t,s.pageOffset,s.target||i))&&!(_()&&!s.doNotReject||(e=c,r=f.cssClasses.tap,(e.classList?e.classList.contains(r):new RegExp(\"\\\\b\"+r+\"\\\\b\").test(e.className))&&!s.doNotReject)||n===u.start&&void 0!==t.buttons&&1<t.buttons||s.hover&&t.buttons)&&(j||t.preventDefault(),t.calcPoint=t.points[f.ort],void o(t,s))}var r=[];return n.split(\" \").forEach(function(t){i.addEventListener(t,e,!!j&&{passive:!0}),r.push([t,e])}),r}function W(t){var e,r,n=ht(100*(t-(t=i,n=f.ort,e=t.getBoundingClientRect(),r=(t=t.ownerDocument).documentElement,t=vt(t),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),n?e.top+t.y-r.clientTop:e.left+t.x-r.clientLeft))/I());return f.dir?100-n:n}function $(t,e){\"mouseout\"===t.type&&\"HTML\"===t.target.nodeName&&null===t.relatedTarget&&V(t,e)}function G(t,e){if(-1===navigator.appVersion.indexOf(\"MSIE 9\")&&0===t.buttons&&0!==e.buttonsProperty)return V(t,e);t=(f.dir?-1:1)*(t.calcPoint-e.startCalcPoint);Z(0<t,100*t/e.baseSize,e.locations,e.handleNumbers,e.connect)}function V(t,e){e.handle&&(bt(e.handle,f.cssClasses.active),--m),e.listeners.forEach(function(t){v.removeEventListener(t[0],t[1])}),0===m&&(bt(c,f.cssClasses.drag),et(),t.cursor)&&(x.style.cursor=\"\",x.removeEventListener(\"selectstart\",ft)),f.events.smoothSteps&&(e.handleNumbers.forEach(function(t){U(t,d[t],!0,!0,!1,!1)}),e.handleNumbers.forEach(function(t){k(\"update\",t)})),e.handleNumbers.forEach(function(t){k(\"change\",t),k(\"set\",t),k(\"end\",t)})}function A(t,e){var r,n,i,o;e.handleNumbers.some(w)||(1===e.handleNumbers.length&&(o=l[e.handleNumbers[0]].children[0],m+=1,gt(o,f.cssClasses.active)),t.stopPropagation(),n=N(u.move,v,G,{target:t.target,handle:o,connect:e.connect,listeners:r=[],startCalcPoint:t.calcPoint,baseSize:I(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:d.slice()}),i=N(u.end,v,V,{target:t.target,handle:o,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),o=N(\"mouseout\",v,$,{target:t.target,handle:o,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),r.push.apply(r,n.concat(i,o)),t.cursor&&(x.style.cursor=getComputedStyle(t.target).cursor,1<l.length&>(c,f.cssClasses.drag),x.addEventListener(\"selectstart\",ft,!1)),e.handleNumbers.forEach(function(t){k(\"start\",t)}))}function J(t){t.stopPropagation();var i,o,s,e=W(t.calcPoint),r=(i=e,s=!(o=100),l.forEach(function(t,e){var r,n;!w(e)&&(r=d[e],(n=Math.abs(r-i))<o||n<=o&&r<i||100===n&&100===o)&&(s=e,o=n)}),s);!1!==r&&(f.events.snap||dt(c,f.cssClasses.tap,f.animationDuration),U(r,e,!0,!0),et(),k(\"slide\",r,!0),k(\"update\",r,!0),f.events.snap?A(t,{handleNumbers:[r]}):(k(\"change\",r,!0),k(\"set\",r,!0)))}function K(t){var t=W(t.calcPoint),t=S.getStep(t),e=S.fromStepping(t);Object.keys(g).forEach(function(t){\"hover\"===t.split(\".\")[0]&&g[t].forEach(function(t){t.call(T,e)})})}function e(t,e){g[t]=g[t]||[],g[t].push(e),\"update\"===t.split(\".\")[0]&&l.forEach(function(t,e){k(\"update\",e)})}function r(t){var n=t&&t.split(\".\")[0],i=n?t.substring(n.length):t;Object.keys(g).forEach(function(t){var e=t.split(\".\")[0],r=t.substring(e.length);n&&n!==e||i&&i!==r||((e=r)!==St.aria&&e!==St.tooltips||i===r)&&delete g[t]})}function k(r,n,i){Object.keys(g).forEach(function(t){var e=t.split(\".\")[0];r===e&&g[t].forEach(function(t){t.call(T,p.map(f.format.to),n,p.slice(),i||!1,d.slice(),T)})})}function M(t,e,r,n,i,o,s){var a;return 1<l.length&&!f.events.unconstrained&&(n&&0<e&&(a=S.getAbsoluteDistance(t[e-1],f.margin,!1),r=Math.max(r,a)),i)&&e<l.length-1&&(a=S.getAbsoluteDistance(t[e+1],f.margin,!0),r=Math.min(r,a)),1<l.length&&f.limit&&(n&&0<e&&(a=S.getAbsoluteDistance(t[e-1],f.limit,!1),r=Math.min(r,a)),i)&&e<l.length-1&&(a=S.getAbsoluteDistance(t[e+1],f.limit,!0),r=Math.max(r,a)),f.padding&&(0===e&&(a=S.getAbsoluteDistance(0,f.padding[0],!1),r=Math.max(r,a)),e===l.length-1)&&(a=S.getAbsoluteDistance(100,f.padding[1],!0),r=Math.min(r,a)),!((r=ht(r=s?r:S.getStep(r)))===t[e]&&!o)&&r}function Q(t,e){var r=f.ort;return(r?e:t)+\", \"+(r?t:e)}function Z(t,r,n,e,i){var o=n.slice(),s=e[0],a=f.events.smoothSteps,l=[!t,t],u=[t,!t],c=(e=e.slice(),t&&e.reverse(),1<e.length?e.forEach(function(t,e){e=M(o,t,o[t]+r,l[e],u[e],!1,a);!1===e?r=0:(r=e-o[t],o[t]=e)}):l=u=[!0],!1);e.forEach(function(t,e){c=U(t,n[t]+r,l[e],u[e],!1,a)||c}),c&&(e.forEach(function(t){k(\"update\",t),k(\"slide\",t)}),null!=i)&&k(\"drag\",s)}function tt(t,e){return f.dir?100-t-e:t}function et(){h.forEach(function(t){var e=50<d[t]?-1:1,e=3+(l.length+e*t);l[t].style.zIndex=String(e)})}function U(t,e,r,n,i,o){return!1!==(e=i?e:M(d,t,e,r,n,!1,o))&&(i=e,d[r=t]=i,p[r]=S.fromStepping(i),i=\"translate(\"+Q(tt(i,0)-z+\"%\",\"0\")+\")\",l[r].style[f.transformRule]=i,rt(r),rt(r+1),!0)}function rt(t){var e,r;a[t]&&(r=100,e=\"translate(\"+Q(tt(e=(e=0)!==t?d[t-1]:e,r=(r=t!==a.length-1?d[t]:r)-e)+\"%\",\"0\")+\")\",r=\"scale(\"+Q(r/100,\"1\")+\")\",a[t].style[f.transformRule]=e+\" \"+r)}function nt(t,e){return null===t||!1===t||void 0===t||(\"number\"==typeof t&&(t=String(t)),!1===(t=!1!==(t=f.format.from(t))?S.toStepping(t):t))||isNaN(t)?d[e]:t}function D(t,e,r){var n,i=mt(t),t=void 0===d[0],o=(e=void 0===e||e,f.animate&&!t&&dt(c,f.cssClasses.tap,f.animationDuration),h.forEach(function(t){U(t,nt(i[t],t),!0,!1,r)}),1===h.length?0:1);for(t&&S.hasNoSize()&&(r=!0,d[0]=0,1<h.length)&&(n=100/(h.length-1),h.forEach(function(t){d[t]=t*n}));o<h.length;++o)h.forEach(function(t){U(t,d[t],!0,!0,r)});et(),h.forEach(function(t){k(\"update\",t),null!==i[t]&&e&&k(\"set\",t)})}function it(t){return(t=void 0!==t&&t)?1===p.length?p[0]:p.slice(0):1===(t=p.map(f.format.to)).length?t[0]:t}function ot(t){var e=d[t],r=S.getNearbySteps(e),t=p[t],n=r.thisStep.step,i=null;if(f.snap)return[t-r.stepBefore.startValue||null,r.stepAfter.startValue-t||null];!1!==n&&t+n>r.stepAfter.startValue&&(n=r.stepAfter.startValue-t),i=t>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&t-r.stepBefore.highestStep,100===e?n=null:0===e&&(i=null);t=S.countStepDecimals();return null!==n&&!1!==n&&(n=Number(n.toFixed(t))),[i=null!==i&&!1!==i?Number(i.toFixed(t)):i,n]}gt(t=c,f.cssClasses.target),0===f.dir?gt(t,f.cssClasses.ltr):gt(t,f.cssClasses.rtl),0===f.ort?gt(t,f.cssClasses.horizontal):gt(t,f.cssClasses.vertical),gt(t,\"rtl\"===getComputedStyle(t).direction?f.cssClasses.textDirectionRtl:f.cssClasses.textDirectionLtr),i=y(t,f.cssClasses.base);var O,st=f.connect,at=i,lt=y(at,f.cssClasses.connects);l=[],(a=[]).push(F(lt,st[0]));for(var L=0;L<f.handles;L++)l.push(H(at,L)),h[L]=L,a.push(F(lt,st[L+1]));(O=f.events).fixed||l.forEach(function(t,e){N(u.start,t.children[0],A,{handleNumbers:[e]})}),O.tap&&N(u.start,i,J,{}),O.hover&&N(u.move,i,K,{hover:!0}),O.drag&&a.forEach(function(e,t){var r,n,i,o,s;!1!==e&&0!==t&&t!==a.length-1&&(r=l[t-1],n=l[t],i=[e],o=[r,n],s=[t-1,t],gt(e,f.cssClasses.draggable),O.fixed&&(i.push(r.children[0]),i.push(n.children[0])),O.dragAll&&(o=l,s=h),i.forEach(function(t){N(u.start,t,A,{handles:o,handleNumbers:s,connect:e})}))}),D(f.start),f.pips&&C(f.pips),f.tooltips&&B(),r(\"update\"+St.aria),e(\"update\"+St.aria,function(t,e,o,r,s){h.forEach(function(t){var e=l[t],r=M(d,t,0,!0,!0,!0),n=M(d,t,100,!0,!0,!0),i=s[t],t=String(f.ariaFormat.to(o[t])),r=S.fromStepping(r).toFixed(1),n=S.fromStepping(n).toFixed(1),i=S.fromStepping(i).toFixed(1);e.children[0].setAttribute(\"aria-valuemin\",r),e.children[0].setAttribute(\"aria-valuemax\",n),e.children[0].setAttribute(\"aria-valuenow\",i),e.children[0].setAttribute(\"aria-valuetext\",t)})});var T={destroy:function(){for(r(St.aria),r(St.tooltips),Object.keys(f.cssClasses).forEach(function(t){bt(c,f.cssClasses[t])});c.firstChild;)c.removeChild(c.firstChild);delete c.noUiSlider},steps:function(){return h.map(ot)},on:e,off:r,get:it,set:D,setHandle:function(t,e,r,n){if(!(0<=(t=Number(t))&&t<h.length))throw new Error(\"noUiSlider: invalid handle number, got: \"+t);U(t,nt(e,t),!0,!0,n),k(\"update\",t),r&&k(\"set\",t)},reset:function(t){D(f.start,t)},disable:function(t){null!=t?(l[t].setAttribute(\"disabled\",\"\"),l[t].handle.removeAttribute(\"tabindex\")):(c.setAttribute(\"disabled\",\"\"),l.forEach(function(t){t.handle.removeAttribute(\"tabindex\")}))},enable:function(t){null!=t?(l[t].removeAttribute(\"disabled\"),l[t].handle.setAttribute(\"tabindex\",\"0\")):(c.removeAttribute(\"disabled\"),l.forEach(function(t){t.removeAttribute(\"disabled\"),t.handle.setAttribute(\"tabindex\",\"0\")}))},__moveHandles:function(t,e,r){Z(t,e,d,r)},options:o,updateOptions:function(e,t){var r=it(),n=[\"margin\",\"limit\",\"padding\",\"range\",\"animate\",\"snap\",\"step\",\"format\",\"pips\",\"tooltips\"],i=(n.forEach(function(t){void 0!==e[t]&&(o[t]=e[t])}),xt(o));n.forEach(function(t){void 0!==e[t]&&(f[t]=i[t])}),S=i.spectrum,f.margin=i.margin,f.limit=i.limit,f.padding=i.padding,f.pips?C(f.pips):P(),(f.tooltips?B:E)(),d=[],D(pt(e.start)?e.start:r,t)},target:c,removePips:P,removeTooltips:E,getPositions:function(){return d.slice()},getTooltips:function(){return s},getOrigins:function(){return l},pips:C};return T}function w(t,e){if(!t||!t.nodeName)throw new Error(\"noUiSlider: create requires a single element, got: \"+t);if(t.noUiSlider)throw new Error(\"noUiSlider: Slider was already initialized.\");e=H(t,xt(e),e);return t.noUiSlider=e}var E={__spectrum:u,cssClasses:p,create:w};ut.create=w,ut.cssClasses=p,ut.default=E,Object.defineProperty(ut,\"__esModule\",{value:!0})});","!function(e,n){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=n():\"function\"==typeof define&&define.amd?define([],n):\"object\"==typeof exports?exports.feather=n():e.feather=n()}(\"undefined\"!=typeof self?self:this,function(){return o={\"./dist/icons.json\":function(e){e.exports={activity:'<polyline points=\"22 12 18 12 15 21 9 3 6 12 2 12\"></polyline>',airplay:'<path d=\"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1\"></path><polygon points=\"12 15 17 21 7 21 12 15\"></polygon>',\"alert-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"></line><line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"></line>',\"alert-octagon\":'<polygon points=\"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2\"></polygon><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"></line><line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"></line>',\"alert-triangle\":'<path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"></path><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"></line><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"></line>',\"align-center\":'<line x1=\"18\" y1=\"10\" x2=\"6\" y2=\"10\"></line><line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"></line><line x1=\"21\" y1=\"14\" x2=\"3\" y2=\"14\"></line><line x1=\"18\" y1=\"18\" x2=\"6\" y2=\"18\"></line>',\"align-justify\":'<line x1=\"21\" y1=\"10\" x2=\"3\" y2=\"10\"></line><line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"></line><line x1=\"21\" y1=\"14\" x2=\"3\" y2=\"14\"></line><line x1=\"21\" y1=\"18\" x2=\"3\" y2=\"18\"></line>',\"align-left\":'<line x1=\"17\" y1=\"10\" x2=\"3\" y2=\"10\"></line><line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"></line><line x1=\"21\" y1=\"14\" x2=\"3\" y2=\"14\"></line><line x1=\"17\" y1=\"18\" x2=\"3\" y2=\"18\"></line>',\"align-right\":'<line x1=\"21\" y1=\"10\" x2=\"7\" y2=\"10\"></line><line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"></line><line x1=\"21\" y1=\"14\" x2=\"3\" y2=\"14\"></line><line x1=\"21\" y1=\"18\" x2=\"7\" y2=\"18\"></line>',anchor:'<circle cx=\"12\" cy=\"5\" r=\"3\"></circle><line x1=\"12\" y1=\"22\" x2=\"12\" y2=\"8\"></line><path d=\"M5 12H2a10 10 0 0 0 20 0h-3\"></path>',aperture:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"14.31\" y1=\"8\" x2=\"20.05\" y2=\"17.94\"></line><line x1=\"9.69\" y1=\"8\" x2=\"21.17\" y2=\"8\"></line><line x1=\"7.38\" y1=\"12\" x2=\"13.12\" y2=\"2.06\"></line><line x1=\"9.69\" y1=\"16\" x2=\"3.95\" y2=\"6.06\"></line><line x1=\"14.31\" y1=\"16\" x2=\"2.83\" y2=\"16\"></line><line x1=\"16.62\" y1=\"12\" x2=\"10.88\" y2=\"21.94\"></line>',archive:'<polyline points=\"21 8 21 21 3 21 3 8\"></polyline><rect x=\"1\" y=\"3\" width=\"22\" height=\"5\"></rect><line x1=\"10\" y1=\"12\" x2=\"14\" y2=\"12\"></line>',\"arrow-down-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><polyline points=\"8 12 12 16 16 12\"></polyline><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"16\"></line>',\"arrow-down-left\":'<line x1=\"17\" y1=\"7\" x2=\"7\" y2=\"17\"></line><polyline points=\"17 17 7 17 7 7\"></polyline>',\"arrow-down-right\":'<line x1=\"7\" y1=\"7\" x2=\"17\" y2=\"17\"></line><polyline points=\"17 7 17 17 7 17\"></polyline>',\"arrow-down\":'<line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><polyline points=\"19 12 12 19 5 12\"></polyline>',\"arrow-left-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><polyline points=\"12 8 8 12 12 16\"></polyline><line x1=\"16\" y1=\"12\" x2=\"8\" y2=\"12\"></line>',\"arrow-left\":'<line x1=\"19\" y1=\"12\" x2=\"5\" y2=\"12\"></line><polyline points=\"12 19 5 12 12 5\"></polyline>',\"arrow-right-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><polyline points=\"12 16 16 12 12 8\"></polyline><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line>',\"arrow-right\":'<line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line><polyline points=\"12 5 19 12 12 19\"></polyline>',\"arrow-up-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><polyline points=\"16 12 12 8 8 12\"></polyline><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"8\"></line>',\"arrow-up-left\":'<line x1=\"17\" y1=\"17\" x2=\"7\" y2=\"7\"></line><polyline points=\"7 17 7 7 17 7\"></polyline>',\"arrow-up-right\":'<line x1=\"7\" y1=\"17\" x2=\"17\" y2=\"7\"></line><polyline points=\"7 7 17 7 17 17\"></polyline>',\"arrow-up\":'<line x1=\"12\" y1=\"19\" x2=\"12\" y2=\"5\"></line><polyline points=\"5 12 12 5 19 12\"></polyline>',\"at-sign\":'<circle cx=\"12\" cy=\"12\" r=\"4\"></circle><path d=\"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94\"></path>',award:'<circle cx=\"12\" cy=\"8\" r=\"7\"></circle><polyline points=\"8.21 13.89 7 23 12 20 17 23 15.79 13.88\"></polyline>',\"bar-chart-2\":'<line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\"></line><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\"></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\"></line>',\"bar-chart\":'<line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"10\"></line><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"4\"></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"16\"></line>',\"battery-charging\":'<path d=\"M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19\"></path><line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"11\"></line><polyline points=\"11 6 7 12 13 12 9 18\"></polyline>',battery:'<rect x=\"1\" y=\"6\" width=\"18\" height=\"12\" rx=\"2\" ry=\"2\"></rect><line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"11\"></line>',\"bell-off\":'<path d=\"M13.73 21a2 2 0 0 1-3.46 0\"></path><path d=\"M18.63 13A17.89 17.89 0 0 1 18 8\"></path><path d=\"M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14\"></path><path d=\"M18 8a6 6 0 0 0-9.33-5\"></path><line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line>',bell:'<path d=\"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9\"></path><path d=\"M13.73 21a2 2 0 0 1-3.46 0\"></path>',bluetooth:'<polyline points=\"6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5\"></polyline>',bold:'<path d=\"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z\"></path><path d=\"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z\"></path>',\"book-open\":'<path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\"></path><path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\"></path>',book:'<path d=\"M4 19.5A2.5 2.5 0 0 1 6.5 17H20\"></path><path d=\"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z\"></path>',bookmark:'<path d=\"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z\"></path>',box:'<path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\"></path><polyline points=\"3.27 6.96 12 12.01 20.73 6.96\"></polyline><line x1=\"12\" y1=\"22.08\" x2=\"12\" y2=\"12\"></line>',briefcase:'<rect x=\"2\" y=\"7\" width=\"20\" height=\"14\" rx=\"2\" ry=\"2\"></rect><path d=\"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16\"></path>',calendar:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"></line><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"></line><line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"></line>',\"camera-off\":'<line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line><path d=\"M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56\"></path>',camera:'<path d=\"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z\"></path><circle cx=\"12\" cy=\"13\" r=\"4\"></circle>',cast:'<path d=\"M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6\"></path><line x1=\"2\" y1=\"20\" x2=\"2.01\" y2=\"20\"></line>',\"check-circle\":'<path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"></path><polyline points=\"22 4 12 14.01 9 11.01\"></polyline>',\"check-square\":'<polyline points=\"9 11 12 14 22 4\"></polyline><path d=\"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11\"></path>',check:'<polyline points=\"20 6 9 17 4 12\"></polyline>',\"chevron-down\":'<polyline points=\"6 9 12 15 18 9\"></polyline>',\"chevron-left\":'<polyline points=\"15 18 9 12 15 6\"></polyline>',\"chevron-right\":'<polyline points=\"9 18 15 12 9 6\"></polyline>',\"chevron-up\":'<polyline points=\"18 15 12 9 6 15\"></polyline>',\"chevrons-down\":'<polyline points=\"7 13 12 18 17 13\"></polyline><polyline points=\"7 6 12 11 17 6\"></polyline>',\"chevrons-left\":'<polyline points=\"11 17 6 12 11 7\"></polyline><polyline points=\"18 17 13 12 18 7\"></polyline>',\"chevrons-right\":'<polyline points=\"13 17 18 12 13 7\"></polyline><polyline points=\"6 17 11 12 6 7\"></polyline>',\"chevrons-up\":'<polyline points=\"17 11 12 6 7 11\"></polyline><polyline points=\"17 18 12 13 7 18\"></polyline>',chrome:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><circle cx=\"12\" cy=\"12\" r=\"4\"></circle><line x1=\"21.17\" y1=\"8\" x2=\"12\" y2=\"8\"></line><line x1=\"3.95\" y1=\"6.06\" x2=\"8.54\" y2=\"14\"></line><line x1=\"10.88\" y1=\"21.94\" x2=\"15.46\" y2=\"14\"></line>',circle:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle>',clipboard:'<path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"></path><rect x=\"8\" y=\"2\" width=\"8\" height=\"4\" rx=\"1\" ry=\"1\"></rect>',clock:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><polyline points=\"12 6 12 12 16 14\"></polyline>',\"cloud-drizzle\":'<line x1=\"8\" y1=\"19\" x2=\"8\" y2=\"21\"></line><line x1=\"8\" y1=\"13\" x2=\"8\" y2=\"15\"></line><line x1=\"16\" y1=\"19\" x2=\"16\" y2=\"21\"></line><line x1=\"16\" y1=\"13\" x2=\"16\" y2=\"15\"></line><line x1=\"12\" y1=\"21\" x2=\"12\" y2=\"23\"></line><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"17\"></line><path d=\"M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25\"></path>',\"cloud-lightning\":'<path d=\"M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9\"></path><polyline points=\"13 11 9 17 15 17 11 23\"></polyline>',\"cloud-off\":'<path d=\"M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3\"></path><line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line>',\"cloud-rain\":'<line x1=\"16\" y1=\"13\" x2=\"16\" y2=\"21\"></line><line x1=\"8\" y1=\"13\" x2=\"8\" y2=\"21\"></line><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"23\"></line><path d=\"M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25\"></path>',\"cloud-snow\":'<path d=\"M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25\"></path><line x1=\"8\" y1=\"16\" x2=\"8.01\" y2=\"16\"></line><line x1=\"8\" y1=\"20\" x2=\"8.01\" y2=\"20\"></line><line x1=\"12\" y1=\"18\" x2=\"12.01\" y2=\"18\"></line><line x1=\"12\" y1=\"22\" x2=\"12.01\" y2=\"22\"></line><line x1=\"16\" y1=\"16\" x2=\"16.01\" y2=\"16\"></line><line x1=\"16\" y1=\"20\" x2=\"16.01\" y2=\"20\"></line>',cloud:'<path d=\"M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z\"></path>',code:'<polyline points=\"16 18 22 12 16 6\"></polyline><polyline points=\"8 6 2 12 8 18\"></polyline>',codepen:'<polygon points=\"12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2\"></polygon><line x1=\"12\" y1=\"22\" x2=\"12\" y2=\"15.5\"></line><polyline points=\"22 8.5 12 15.5 2 8.5\"></polyline><polyline points=\"2 15.5 12 8.5 22 15.5\"></polyline><line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"8.5\"></line>',codesandbox:'<path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\"></path><polyline points=\"7.5 4.21 12 6.81 16.5 4.21\"></polyline><polyline points=\"7.5 19.79 7.5 14.6 3 12\"></polyline><polyline points=\"21 12 16.5 14.6 16.5 19.79\"></polyline><polyline points=\"3.27 6.96 12 12.01 20.73 6.96\"></polyline><line x1=\"12\" y1=\"22.08\" x2=\"12\" y2=\"12\"></line>',coffee:'<path d=\"M18 8h1a4 4 0 0 1 0 8h-1\"></path><path d=\"M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z\"></path><line x1=\"6\" y1=\"1\" x2=\"6\" y2=\"4\"></line><line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\"></line><line x1=\"14\" y1=\"1\" x2=\"14\" y2=\"4\"></line>',columns:'<path d=\"M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18\"></path>',command:'<path d=\"M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z\"></path>',compass:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><polygon points=\"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76\"></polygon>',copy:'<rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\"></rect><path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"></path>',\"corner-down-left\":'<polyline points=\"9 10 4 15 9 20\"></polyline><path d=\"M20 4v7a4 4 0 0 1-4 4H4\"></path>',\"corner-down-right\":'<polyline points=\"15 10 20 15 15 20\"></polyline><path d=\"M4 4v7a4 4 0 0 0 4 4h12\"></path>',\"corner-left-down\":'<polyline points=\"14 15 9 20 4 15\"></polyline><path d=\"M20 4h-7a4 4 0 0 0-4 4v12\"></path>',\"corner-left-up\":'<polyline points=\"14 9 9 4 4 9\"></polyline><path d=\"M20 20h-7a4 4 0 0 1-4-4V4\"></path>',\"corner-right-down\":'<polyline points=\"10 15 15 20 20 15\"></polyline><path d=\"M4 4h7a4 4 0 0 1 4 4v12\"></path>',\"corner-right-up\":'<polyline points=\"10 9 15 4 20 9\"></polyline><path d=\"M4 20h7a4 4 0 0 0 4-4V4\"></path>',\"corner-up-left\":'<polyline points=\"9 14 4 9 9 4\"></polyline><path d=\"M20 20v-7a4 4 0 0 0-4-4H4\"></path>',\"corner-up-right\":'<polyline points=\"15 14 20 9 15 4\"></polyline><path d=\"M4 20v-7a4 4 0 0 1 4-4h12\"></path>',cpu:'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" ry=\"2\"></rect><rect x=\"9\" y=\"9\" width=\"6\" height=\"6\"></rect><line x1=\"9\" y1=\"1\" x2=\"9\" y2=\"4\"></line><line x1=\"15\" y1=\"1\" x2=\"15\" y2=\"4\"></line><line x1=\"9\" y1=\"20\" x2=\"9\" y2=\"23\"></line><line x1=\"15\" y1=\"20\" x2=\"15\" y2=\"23\"></line><line x1=\"20\" y1=\"9\" x2=\"23\" y2=\"9\"></line><line x1=\"20\" y1=\"14\" x2=\"23\" y2=\"14\"></line><line x1=\"1\" y1=\"9\" x2=\"4\" y2=\"9\"></line><line x1=\"1\" y1=\"14\" x2=\"4\" y2=\"14\"></line>',\"credit-card\":'<rect x=\"1\" y=\"4\" width=\"22\" height=\"16\" rx=\"2\" ry=\"2\"></rect><line x1=\"1\" y1=\"10\" x2=\"23\" y2=\"10\"></line>',crop:'<path d=\"M6.13 1L6 16a2 2 0 0 0 2 2h15\"></path><path d=\"M1 6.13L16 6a2 2 0 0 1 2 2v15\"></path>',crosshair:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"22\" y1=\"12\" x2=\"18\" y2=\"12\"></line><line x1=\"6\" y1=\"12\" x2=\"2\" y2=\"12\"></line><line x1=\"12\" y1=\"6\" x2=\"12\" y2=\"2\"></line><line x1=\"12\" y1=\"22\" x2=\"12\" y2=\"18\"></line>',database:'<ellipse cx=\"12\" cy=\"5\" rx=\"9\" ry=\"3\"></ellipse><path d=\"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3\"></path><path d=\"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5\"></path>',delete:'<path d=\"M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z\"></path><line x1=\"18\" y1=\"9\" x2=\"12\" y2=\"15\"></line><line x1=\"12\" y1=\"9\" x2=\"18\" y2=\"15\"></line>',disc:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><circle cx=\"12\" cy=\"12\" r=\"3\"></circle>',\"divide-circle\":'<line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"16\"></line><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"8\"></line><circle cx=\"12\" cy=\"12\" r=\"10\"></circle>',\"divide-square\":'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"16\"></line><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"8\"></line>',divide:'<circle cx=\"12\" cy=\"6\" r=\"2\"></circle><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line><circle cx=\"12\" cy=\"18\" r=\"2\"></circle>',\"dollar-sign\":'<line x1=\"12\" y1=\"1\" x2=\"12\" y2=\"23\"></line><path d=\"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6\"></path>',\"download-cloud\":'<polyline points=\"8 17 12 21 16 17\"></polyline><line x1=\"12\" y1=\"12\" x2=\"12\" y2=\"21\"></line><path d=\"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29\"></path>',download:'<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"7 10 12 15 17 10\"></polyline><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"></line>',dribbble:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><path d=\"M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32\"></path>',droplet:'<path d=\"M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z\"></path>',\"edit-2\":'<path d=\"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z\"></path>',\"edit-3\":'<path d=\"M12 20h9\"></path><path d=\"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z\"></path>',edit:'<path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"></path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"></path>',\"external-link\":'<path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path><polyline points=\"15 3 21 3 21 9\"></polyline><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\"></line>',\"eye-off\":'<path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24\"></path><line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line>',eye:'<path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"></path><circle cx=\"12\" cy=\"12\" r=\"3\"></circle>',facebook:'<path d=\"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z\"></path>',\"fast-forward\":'<polygon points=\"13 19 22 12 13 5 13 19\"></polygon><polygon points=\"2 19 11 12 2 5 2 19\"></polygon>',feather:'<path d=\"M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z\"></path><line x1=\"16\" y1=\"8\" x2=\"2\" y2=\"22\"></line><line x1=\"17.5\" y1=\"15\" x2=\"9\" y2=\"15\"></line>',figma:'<path d=\"M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z\"></path><path d=\"M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z\"></path><path d=\"M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z\"></path><path d=\"M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z\"></path><path d=\"M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z\"></path>',\"file-minus\":'<path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"></path><polyline points=\"14 2 14 8 20 8\"></polyline><line x1=\"9\" y1=\"15\" x2=\"15\" y2=\"15\"></line>',\"file-plus\":'<path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"></path><polyline points=\"14 2 14 8 20 8\"></polyline><line x1=\"12\" y1=\"18\" x2=\"12\" y2=\"12\"></line><line x1=\"9\" y1=\"15\" x2=\"15\" y2=\"15\"></line>',\"file-text\":'<path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"></path><polyline points=\"14 2 14 8 20 8\"></polyline><line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"></line><line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"></line><polyline points=\"10 9 9 9 8 9\"></polyline>',file:'<path d=\"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z\"></path><polyline points=\"13 2 13 9 20 9\"></polyline>',film:'<rect x=\"2\" y=\"2\" width=\"20\" height=\"20\" rx=\"2.18\" ry=\"2.18\"></rect><line x1=\"7\" y1=\"2\" x2=\"7\" y2=\"22\"></line><line x1=\"17\" y1=\"2\" x2=\"17\" y2=\"22\"></line><line x1=\"2\" y1=\"12\" x2=\"22\" y2=\"12\"></line><line x1=\"2\" y1=\"7\" x2=\"7\" y2=\"7\"></line><line x1=\"2\" y1=\"17\" x2=\"7\" y2=\"17\"></line><line x1=\"17\" y1=\"17\" x2=\"22\" y2=\"17\"></line><line x1=\"17\" y1=\"7\" x2=\"22\" y2=\"7\"></line>',filter:'<polygon points=\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\"></polygon>',flag:'<path d=\"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z\"></path><line x1=\"4\" y1=\"22\" x2=\"4\" y2=\"15\"></line>',\"folder-minus\":'<path d=\"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z\"></path><line x1=\"9\" y1=\"14\" x2=\"15\" y2=\"14\"></line>',\"folder-plus\":'<path d=\"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z\"></path><line x1=\"12\" y1=\"11\" x2=\"12\" y2=\"17\"></line><line x1=\"9\" y1=\"14\" x2=\"15\" y2=\"14\"></line>',folder:'<path d=\"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z\"></path>',framer:'<path d=\"M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7\"></path>',frown:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><path d=\"M16 16s-1.5-2-4-2-4 2-4 2\"></path><line x1=\"9\" y1=\"9\" x2=\"9.01\" y2=\"9\"></line><line x1=\"15\" y1=\"9\" x2=\"15.01\" y2=\"9\"></line>',gift:'<polyline points=\"20 12 20 22 4 22 4 12\"></polyline><rect x=\"2\" y=\"7\" width=\"20\" height=\"5\"></rect><line x1=\"12\" y1=\"22\" x2=\"12\" y2=\"7\"></line><path d=\"M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z\"></path><path d=\"M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z\"></path>',\"git-branch\":'<line x1=\"6\" y1=\"3\" x2=\"6\" y2=\"15\"></line><circle cx=\"18\" cy=\"6\" r=\"3\"></circle><circle cx=\"6\" cy=\"18\" r=\"3\"></circle><path d=\"M18 9a9 9 0 0 1-9 9\"></path>',\"git-commit\":'<circle cx=\"12\" cy=\"12\" r=\"4\"></circle><line x1=\"1.05\" y1=\"12\" x2=\"7\" y2=\"12\"></line><line x1=\"17.01\" y1=\"12\" x2=\"22.96\" y2=\"12\"></line>',\"git-merge\":'<circle cx=\"18\" cy=\"18\" r=\"3\"></circle><circle cx=\"6\" cy=\"6\" r=\"3\"></circle><path d=\"M6 21V9a9 9 0 0 0 9 9\"></path>',\"git-pull-request\":'<circle cx=\"18\" cy=\"18\" r=\"3\"></circle><circle cx=\"6\" cy=\"6\" r=\"3\"></circle><path d=\"M13 6h3a2 2 0 0 1 2 2v7\"></path><line x1=\"6\" y1=\"9\" x2=\"6\" y2=\"21\"></line>',github:'<path d=\"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22\"></path>',gitlab:'<path d=\"M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z\"></path>',globe:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"2\" y1=\"12\" x2=\"22\" y2=\"12\"></line><path d=\"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z\"></path>',grid:'<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\"></rect><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\"></rect><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\"></rect><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\"></rect>',\"hard-drive\":'<line x1=\"22\" y1=\"12\" x2=\"2\" y2=\"12\"></line><path d=\"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\"></path><line x1=\"6\" y1=\"16\" x2=\"6.01\" y2=\"16\"></line><line x1=\"10\" y1=\"16\" x2=\"10.01\" y2=\"16\"></line>',hash:'<line x1=\"4\" y1=\"9\" x2=\"20\" y2=\"9\"></line><line x1=\"4\" y1=\"15\" x2=\"20\" y2=\"15\"></line><line x1=\"10\" y1=\"3\" x2=\"8\" y2=\"21\"></line><line x1=\"16\" y1=\"3\" x2=\"14\" y2=\"21\"></line>',headphones:'<path d=\"M3 18v-6a9 9 0 0 1 18 0v6\"></path><path d=\"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z\"></path>',heart:'<path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\"></path>',\"help-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\"></path><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"></line>',hexagon:'<path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\"></path>',home:'<path d=\"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"></path><polyline points=\"9 22 9 12 15 12 15 22\"></polyline>',image:'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"></circle><polyline points=\"21 15 16 10 5 21\"></polyline>',inbox:'<polyline points=\"22 12 16 12 14 15 10 15 8 12 2 12\"></polyline><path d=\"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\"></path>',info:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"></line><line x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"></line>',instagram:'<rect x=\"2\" y=\"2\" width=\"20\" height=\"20\" rx=\"5\" ry=\"5\"></rect><path d=\"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z\"></path><line x1=\"17.5\" y1=\"6.5\" x2=\"17.51\" y2=\"6.5\"></line>',italic:'<line x1=\"19\" y1=\"4\" x2=\"10\" y2=\"4\"></line><line x1=\"14\" y1=\"20\" x2=\"5\" y2=\"20\"></line><line x1=\"15\" y1=\"4\" x2=\"9\" y2=\"20\"></line>',key:'<path d=\"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4\"></path>',layers:'<polygon points=\"12 2 2 7 12 12 22 7 12 2\"></polygon><polyline points=\"2 17 12 22 22 17\"></polyline><polyline points=\"2 12 12 17 22 12\"></polyline>',layout:'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><line x1=\"3\" y1=\"9\" x2=\"21\" y2=\"9\"></line><line x1=\"9\" y1=\"21\" x2=\"9\" y2=\"9\"></line>',\"life-buoy\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><circle cx=\"12\" cy=\"12\" r=\"4\"></circle><line x1=\"4.93\" y1=\"4.93\" x2=\"9.17\" y2=\"9.17\"></line><line x1=\"14.83\" y1=\"14.83\" x2=\"19.07\" y2=\"19.07\"></line><line x1=\"14.83\" y1=\"9.17\" x2=\"19.07\" y2=\"4.93\"></line><line x1=\"14.83\" y1=\"9.17\" x2=\"18.36\" y2=\"5.64\"></line><line x1=\"4.93\" y1=\"19.07\" x2=\"9.17\" y2=\"14.83\"></line>',\"link-2\":'<path d=\"M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3\"></path><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line>',link:'<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"></path><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"></path>',linkedin:'<path d=\"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z\"></path><rect x=\"2\" y=\"9\" width=\"4\" height=\"12\"></rect><circle cx=\"4\" cy=\"4\" r=\"2\"></circle>',list:'<line x1=\"8\" y1=\"6\" x2=\"21\" y2=\"6\"></line><line x1=\"8\" y1=\"12\" x2=\"21\" y2=\"12\"></line><line x1=\"8\" y1=\"18\" x2=\"21\" y2=\"18\"></line><line x1=\"3\" y1=\"6\" x2=\"3.01\" y2=\"6\"></line><line x1=\"3\" y1=\"12\" x2=\"3.01\" y2=\"12\"></line><line x1=\"3\" y1=\"18\" x2=\"3.01\" y2=\"18\"></line>',loader:'<line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"6\"></line><line x1=\"12\" y1=\"18\" x2=\"12\" y2=\"22\"></line><line x1=\"4.93\" y1=\"4.93\" x2=\"7.76\" y2=\"7.76\"></line><line x1=\"16.24\" y1=\"16.24\" x2=\"19.07\" y2=\"19.07\"></line><line x1=\"2\" y1=\"12\" x2=\"6\" y2=\"12\"></line><line x1=\"18\" y1=\"12\" x2=\"22\" y2=\"12\"></line><line x1=\"4.93\" y1=\"19.07\" x2=\"7.76\" y2=\"16.24\"></line><line x1=\"16.24\" y1=\"7.76\" x2=\"19.07\" y2=\"4.93\"></line>',lock:'<rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"></rect><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"></path>',\"log-in\":'<path d=\"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4\"></path><polyline points=\"10 17 15 12 10 7\"></polyline><line x1=\"15\" y1=\"12\" x2=\"3\" y2=\"12\"></line>',\"log-out\":'<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\"></path><polyline points=\"16 17 21 12 16 7\"></polyline><line x1=\"21\" y1=\"12\" x2=\"9\" y2=\"12\"></line>',mail:'<path d=\"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z\"></path><polyline points=\"22,6 12,13 2,6\"></polyline>',\"map-pin\":'<path d=\"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z\"></path><circle cx=\"12\" cy=\"10\" r=\"3\"></circle>',map:'<polygon points=\"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6\"></polygon><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"18\"></line><line x1=\"16\" y1=\"6\" x2=\"16\" y2=\"22\"></line>',\"maximize-2\":'<polyline points=\"15 3 21 3 21 9\"></polyline><polyline points=\"9 21 3 21 3 15\"></polyline><line x1=\"21\" y1=\"3\" x2=\"14\" y2=\"10\"></line><line x1=\"3\" y1=\"21\" x2=\"10\" y2=\"14\"></line>',maximize:'<path d=\"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3\"></path>',meh:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"8\" y1=\"15\" x2=\"16\" y2=\"15\"></line><line x1=\"9\" y1=\"9\" x2=\"9.01\" y2=\"9\"></line><line x1=\"15\" y1=\"9\" x2=\"15.01\" y2=\"9\"></line>',menu:'<line x1=\"3\" y1=\"12\" x2=\"21\" y2=\"12\"></line><line x1=\"3\" y1=\"6\" x2=\"21\" y2=\"6\"></line><line x1=\"3\" y1=\"18\" x2=\"21\" y2=\"18\"></line>',\"message-circle\":'<path d=\"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z\"></path>',\"message-square\":'<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"></path>',\"mic-off\":'<line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line><path d=\"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6\"></path><path d=\"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23\"></path><line x1=\"12\" y1=\"19\" x2=\"12\" y2=\"23\"></line><line x1=\"8\" y1=\"23\" x2=\"16\" y2=\"23\"></line>',mic:'<path d=\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z\"></path><path d=\"M19 10v2a7 7 0 0 1-14 0v-2\"></path><line x1=\"12\" y1=\"19\" x2=\"12\" y2=\"23\"></line><line x1=\"8\" y1=\"23\" x2=\"16\" y2=\"23\"></line>',\"minimize-2\":'<polyline points=\"4 14 10 14 10 20\"></polyline><polyline points=\"20 10 14 10 14 4\"></polyline><line x1=\"14\" y1=\"10\" x2=\"21\" y2=\"3\"></line><line x1=\"3\" y1=\"21\" x2=\"10\" y2=\"14\"></line>',minimize:'<path d=\"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3\"></path>',\"minus-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line>',\"minus-square\":'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line>',minus:'<line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line>',monitor:'<rect x=\"2\" y=\"3\" width=\"20\" height=\"14\" rx=\"2\" ry=\"2\"></rect><line x1=\"8\" y1=\"21\" x2=\"16\" y2=\"21\"></line><line x1=\"12\" y1=\"17\" x2=\"12\" y2=\"21\"></line>',moon:'<path d=\"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z\"></path>',\"more-horizontal\":'<circle cx=\"12\" cy=\"12\" r=\"1\"></circle><circle cx=\"19\" cy=\"12\" r=\"1\"></circle><circle cx=\"5\" cy=\"12\" r=\"1\"></circle>',\"more-vertical\":'<circle cx=\"12\" cy=\"12\" r=\"1\"></circle><circle cx=\"12\" cy=\"5\" r=\"1\"></circle><circle cx=\"12\" cy=\"19\" r=\"1\"></circle>',\"mouse-pointer\":'<path d=\"M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z\"></path><path d=\"M13 13l6 6\"></path>',move:'<polyline points=\"5 9 2 12 5 15\"></polyline><polyline points=\"9 5 12 2 15 5\"></polyline><polyline points=\"15 19 12 22 9 19\"></polyline><polyline points=\"19 9 22 12 19 15\"></polyline><line x1=\"2\" y1=\"12\" x2=\"22\" y2=\"12\"></line><line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"22\"></line>',music:'<path d=\"M9 18V5l12-2v13\"></path><circle cx=\"6\" cy=\"18\" r=\"3\"></circle><circle cx=\"18\" cy=\"16\" r=\"3\"></circle>',\"navigation-2\":'<polygon points=\"12 2 19 21 12 17 5 21 12 2\"></polygon>',navigation:'<polygon points=\"3 11 22 2 13 21 11 13 3 11\"></polygon>',octagon:'<polygon points=\"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2\"></polygon>',package:'<line x1=\"16.5\" y1=\"9.4\" x2=\"7.5\" y2=\"4.21\"></line><path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\"></path><polyline points=\"3.27 6.96 12 12.01 20.73 6.96\"></polyline><line x1=\"12\" y1=\"22.08\" x2=\"12\" y2=\"12\"></line>',paperclip:'<path d=\"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48\"></path>',\"pause-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"10\" y1=\"15\" x2=\"10\" y2=\"9\"></line><line x1=\"14\" y1=\"15\" x2=\"14\" y2=\"9\"></line>',pause:'<rect x=\"6\" y=\"4\" width=\"4\" height=\"16\"></rect><rect x=\"14\" y=\"4\" width=\"4\" height=\"16\"></rect>',\"pen-tool\":'<path d=\"M12 19l7-7 3 3-7 7-3-3z\"></path><path d=\"M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z\"></path><path d=\"M2 2l7.586 7.586\"></path><circle cx=\"11\" cy=\"11\" r=\"2\"></circle>',percent:'<line x1=\"19\" y1=\"5\" x2=\"5\" y2=\"19\"></line><circle cx=\"6.5\" cy=\"6.5\" r=\"2.5\"></circle><circle cx=\"17.5\" cy=\"17.5\" r=\"2.5\"></circle>',\"phone-call\":'<path d=\"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"></path>',\"phone-forwarded\":'<polyline points=\"19 1 23 5 19 9\"></polyline><line x1=\"15\" y1=\"5\" x2=\"23\" y2=\"5\"></line><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"></path>',\"phone-incoming\":'<polyline points=\"16 2 16 8 22 8\"></polyline><line x1=\"23\" y1=\"1\" x2=\"16\" y2=\"8\"></line><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"></path>',\"phone-missed\":'<line x1=\"23\" y1=\"1\" x2=\"17\" y2=\"7\"></line><line x1=\"17\" y1=\"1\" x2=\"23\" y2=\"7\"></line><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"></path>',\"phone-off\":'<path d=\"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91\"></path><line x1=\"23\" y1=\"1\" x2=\"1\" y2=\"23\"></line>',\"phone-outgoing\":'<polyline points=\"23 7 23 1 17 1\"></polyline><line x1=\"16\" y1=\"8\" x2=\"23\" y2=\"1\"></line><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"></path>',phone:'<path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"></path>',\"pie-chart\":'<path d=\"M21.21 15.89A10 10 0 1 1 8 2.83\"></path><path d=\"M22 12A10 10 0 0 0 12 2v10z\"></path>',\"play-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><polygon points=\"10 8 16 12 10 16 10 8\"></polygon>',play:'<polygon points=\"5 3 19 12 5 21 5 3\"></polygon>',\"plus-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"16\"></line><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line>',\"plus-square\":'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"16\"></line><line x1=\"8\" y1=\"12\" x2=\"16\" y2=\"12\"></line>',plus:'<line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line>',pocket:'<path d=\"M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z\"></path><polyline points=\"8 10 12 14 16 10\"></polyline>',power:'<path d=\"M18.36 6.64a9 9 0 1 1-12.73 0\"></path><line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"12\"></line>',printer:'<polyline points=\"6 9 6 2 18 2 18 9\"></polyline><path d=\"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2\"></path><rect x=\"6\" y=\"14\" width=\"12\" height=\"8\"></rect>',radio:'<circle cx=\"12\" cy=\"12\" r=\"2\"></circle><path d=\"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14\"></path>',\"refresh-ccw\":'<polyline points=\"1 4 1 10 7 10\"></polyline><polyline points=\"23 20 23 14 17 14\"></polyline><path d=\"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15\"></path>',\"refresh-cw\":'<polyline points=\"23 4 23 10 17 10\"></polyline><polyline points=\"1 20 1 14 7 14\"></polyline><path d=\"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15\"></path>',repeat:'<polyline points=\"17 1 21 5 17 9\"></polyline><path d=\"M3 11V9a4 4 0 0 1 4-4h14\"></path><polyline points=\"7 23 3 19 7 15\"></polyline><path d=\"M21 13v2a4 4 0 0 1-4 4H3\"></path>',rewind:'<polygon points=\"11 19 2 12 11 5 11 19\"></polygon><polygon points=\"22 19 13 12 22 5 22 19\"></polygon>',\"rotate-ccw\":'<polyline points=\"1 4 1 10 7 10\"></polyline><path d=\"M3.51 15a9 9 0 1 0 2.13-9.36L1 10\"></path>',\"rotate-cw\":'<polyline points=\"23 4 23 10 17 10\"></polyline><path d=\"M20.49 15a9 9 0 1 1-2.12-9.36L23 10\"></path>',rss:'<path d=\"M4 11a9 9 0 0 1 9 9\"></path><path d=\"M4 4a16 16 0 0 1 16 16\"></path><circle cx=\"5\" cy=\"19\" r=\"1\"></circle>',save:'<path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\"></path><polyline points=\"17 21 17 13 7 13 7 21\"></polyline><polyline points=\"7 3 7 8 15 8\"></polyline>',scissors:'<circle cx=\"6\" cy=\"6\" r=\"3\"></circle><circle cx=\"6\" cy=\"18\" r=\"3\"></circle><line x1=\"20\" y1=\"4\" x2=\"8.12\" y2=\"15.88\"></line><line x1=\"14.47\" y1=\"14.48\" x2=\"20\" y2=\"20\"></line><line x1=\"8.12\" y1=\"8.12\" x2=\"12\" y2=\"12\"></line>',search:'<circle cx=\"11\" cy=\"11\" r=\"8\"></circle><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"></line>',send:'<line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"13\"></line><polygon points=\"22 2 15 22 11 13 2 9 22 2\"></polygon>',server:'<rect x=\"2\" y=\"2\" width=\"20\" height=\"8\" rx=\"2\" ry=\"2\"></rect><rect x=\"2\" y=\"14\" width=\"20\" height=\"8\" rx=\"2\" ry=\"2\"></rect><line x1=\"6\" y1=\"6\" x2=\"6.01\" y2=\"6\"></line><line x1=\"6\" y1=\"18\" x2=\"6.01\" y2=\"18\"></line>',settings:'<circle cx=\"12\" cy=\"12\" r=\"3\"></circle><path d=\"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z\"></path>',\"share-2\":'<circle cx=\"18\" cy=\"5\" r=\"3\"></circle><circle cx=\"6\" cy=\"12\" r=\"3\"></circle><circle cx=\"18\" cy=\"19\" r=\"3\"></circle><line x1=\"8.59\" y1=\"13.51\" x2=\"15.42\" y2=\"17.49\"></line><line x1=\"15.41\" y1=\"6.51\" x2=\"8.59\" y2=\"10.49\"></line>',share:'<path d=\"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8\"></path><polyline points=\"16 6 12 2 8 6\"></polyline><line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"15\"></line>',\"shield-off\":'<path d=\"M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18\"></path><path d=\"M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38\"></path><line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line>',shield:'<path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"></path>',\"shopping-bag\":'<path d=\"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z\"></path><line x1=\"3\" y1=\"6\" x2=\"21\" y2=\"6\"></line><path d=\"M16 10a4 4 0 0 1-8 0\"></path>',\"shopping-cart\":'<circle cx=\"9\" cy=\"21\" r=\"1\"></circle><circle cx=\"20\" cy=\"21\" r=\"1\"></circle><path d=\"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6\"></path>',shuffle:'<polyline points=\"16 3 21 3 21 8\"></polyline><line x1=\"4\" y1=\"20\" x2=\"21\" y2=\"3\"></line><polyline points=\"21 16 21 21 16 21\"></polyline><line x1=\"15\" y1=\"15\" x2=\"21\" y2=\"21\"></line><line x1=\"4\" y1=\"4\" x2=\"9\" y2=\"9\"></line>',sidebar:'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><line x1=\"9\" y1=\"3\" x2=\"9\" y2=\"21\"></line>',\"skip-back\":'<polygon points=\"19 20 9 12 19 4 19 20\"></polygon><line x1=\"5\" y1=\"19\" x2=\"5\" y2=\"5\"></line>',\"skip-forward\":'<polygon points=\"5 4 15 12 5 20 5 4\"></polygon><line x1=\"19\" y1=\"5\" x2=\"19\" y2=\"19\"></line>',slack:'<path d=\"M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z\"></path><path d=\"M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z\"></path><path d=\"M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z\"></path><path d=\"M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z\"></path><path d=\"M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z\"></path><path d=\"M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z\"></path><path d=\"M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z\"></path><path d=\"M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z\"></path>',slash:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"4.93\" y1=\"4.93\" x2=\"19.07\" y2=\"19.07\"></line>',sliders:'<line x1=\"4\" y1=\"21\" x2=\"4\" y2=\"14\"></line><line x1=\"4\" y1=\"10\" x2=\"4\" y2=\"3\"></line><line x1=\"12\" y1=\"21\" x2=\"12\" y2=\"12\"></line><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"3\"></line><line x1=\"20\" y1=\"21\" x2=\"20\" y2=\"16\"></line><line x1=\"20\" y1=\"12\" x2=\"20\" y2=\"3\"></line><line x1=\"1\" y1=\"14\" x2=\"7\" y2=\"14\"></line><line x1=\"9\" y1=\"8\" x2=\"15\" y2=\"8\"></line><line x1=\"17\" y1=\"16\" x2=\"23\" y2=\"16\"></line>',smartphone:'<rect x=\"5\" y=\"2\" width=\"14\" height=\"20\" rx=\"2\" ry=\"2\"></rect><line x1=\"12\" y1=\"18\" x2=\"12.01\" y2=\"18\"></line>',smile:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><path d=\"M8 14s1.5 2 4 2 4-2 4-2\"></path><line x1=\"9\" y1=\"9\" x2=\"9.01\" y2=\"9\"></line><line x1=\"15\" y1=\"9\" x2=\"15.01\" y2=\"9\"></line>',speaker:'<rect x=\"4\" y=\"2\" width=\"16\" height=\"20\" rx=\"2\" ry=\"2\"></rect><circle cx=\"12\" cy=\"14\" r=\"4\"></circle><line x1=\"12\" y1=\"6\" x2=\"12.01\" y2=\"6\"></line>',square:'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect>',star:'<polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\"></polygon>',\"stop-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><rect x=\"9\" y=\"9\" width=\"6\" height=\"6\"></rect>',sun:'<circle cx=\"12\" cy=\"12\" r=\"5\"></circle><line x1=\"12\" y1=\"1\" x2=\"12\" y2=\"3\"></line><line x1=\"12\" y1=\"21\" x2=\"12\" y2=\"23\"></line><line x1=\"4.22\" y1=\"4.22\" x2=\"5.64\" y2=\"5.64\"></line><line x1=\"18.36\" y1=\"18.36\" x2=\"19.78\" y2=\"19.78\"></line><line x1=\"1\" y1=\"12\" x2=\"3\" y2=\"12\"></line><line x1=\"21\" y1=\"12\" x2=\"23\" y2=\"12\"></line><line x1=\"4.22\" y1=\"19.78\" x2=\"5.64\" y2=\"18.36\"></line><line x1=\"18.36\" y1=\"5.64\" x2=\"19.78\" y2=\"4.22\"></line>',sunrise:'<path d=\"M17 18a5 5 0 0 0-10 0\"></path><line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"9\"></line><line x1=\"4.22\" y1=\"10.22\" x2=\"5.64\" y2=\"11.64\"></line><line x1=\"1\" y1=\"18\" x2=\"3\" y2=\"18\"></line><line x1=\"21\" y1=\"18\" x2=\"23\" y2=\"18\"></line><line x1=\"18.36\" y1=\"11.64\" x2=\"19.78\" y2=\"10.22\"></line><line x1=\"23\" y1=\"22\" x2=\"1\" y2=\"22\"></line><polyline points=\"8 6 12 2 16 6\"></polyline>',sunset:'<path d=\"M17 18a5 5 0 0 0-10 0\"></path><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"2\"></line><line x1=\"4.22\" y1=\"10.22\" x2=\"5.64\" y2=\"11.64\"></line><line x1=\"1\" y1=\"18\" x2=\"3\" y2=\"18\"></line><line x1=\"21\" y1=\"18\" x2=\"23\" y2=\"18\"></line><line x1=\"18.36\" y1=\"11.64\" x2=\"19.78\" y2=\"10.22\"></line><line x1=\"23\" y1=\"22\" x2=\"1\" y2=\"22\"></line><polyline points=\"16 5 12 9 8 5\"></polyline>',table:'<path d=\"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18\"></path>',tablet:'<rect x=\"4\" y=\"2\" width=\"16\" height=\"20\" rx=\"2\" ry=\"2\"></rect><line x1=\"12\" y1=\"18\" x2=\"12.01\" y2=\"18\"></line>',tag:'<path d=\"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z\"></path><line x1=\"7\" y1=\"7\" x2=\"7.01\" y2=\"7\"></line>',target:'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><circle cx=\"12\" cy=\"12\" r=\"6\"></circle><circle cx=\"12\" cy=\"12\" r=\"2\"></circle>',terminal:'<polyline points=\"4 17 10 11 4 5\"></polyline><line x1=\"12\" y1=\"19\" x2=\"20\" y2=\"19\"></line>',thermometer:'<path d=\"M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z\"></path>',\"thumbs-down\":'<path d=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"></path>',\"thumbs-up\":'<path d=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"></path>',\"toggle-left\":'<rect x=\"1\" y=\"5\" width=\"22\" height=\"14\" rx=\"7\" ry=\"7\"></rect><circle cx=\"8\" cy=\"12\" r=\"3\"></circle>',\"toggle-right\":'<rect x=\"1\" y=\"5\" width=\"22\" height=\"14\" rx=\"7\" ry=\"7\"></rect><circle cx=\"16\" cy=\"12\" r=\"3\"></circle>',tool:'<path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z\"></path>',\"trash-2\":'<polyline points=\"3 6 5 6 21 6\"></polyline><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"></path><line x1=\"10\" y1=\"11\" x2=\"10\" y2=\"17\"></line><line x1=\"14\" y1=\"11\" x2=\"14\" y2=\"17\"></line>',trash:'<polyline points=\"3 6 5 6 21 6\"></polyline><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"></path>',trello:'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><rect x=\"7\" y=\"7\" width=\"3\" height=\"9\"></rect><rect x=\"14\" y=\"7\" width=\"3\" height=\"5\"></rect>',\"trending-down\":'<polyline points=\"23 18 13.5 8.5 8.5 13.5 1 6\"></polyline><polyline points=\"17 18 23 18 23 12\"></polyline>',\"trending-up\":'<polyline points=\"23 6 13.5 15.5 8.5 10.5 1 18\"></polyline><polyline points=\"17 6 23 6 23 12\"></polyline>',triangle:'<path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"></path>',truck:'<rect x=\"1\" y=\"3\" width=\"15\" height=\"13\"></rect><polygon points=\"16 8 20 8 23 11 23 16 16 16 16 8\"></polygon><circle cx=\"5.5\" cy=\"18.5\" r=\"2.5\"></circle><circle cx=\"18.5\" cy=\"18.5\" r=\"2.5\"></circle>',tv:'<rect x=\"2\" y=\"7\" width=\"20\" height=\"15\" rx=\"2\" ry=\"2\"></rect><polyline points=\"17 2 12 7 7 2\"></polyline>',twitch:'<path d=\"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7\"></path>',twitter:'<path d=\"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z\"></path>',type:'<polyline points=\"4 7 4 4 20 4 20 7\"></polyline><line x1=\"9\" y1=\"20\" x2=\"15\" y2=\"20\"></line><line x1=\"12\" y1=\"4\" x2=\"12\" y2=\"20\"></line>',umbrella:'<path d=\"M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7\"></path>',underline:'<path d=\"M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3\"></path><line x1=\"4\" y1=\"21\" x2=\"20\" y2=\"21\"></line>',unlock:'<rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"></rect><path d=\"M7 11V7a5 5 0 0 1 9.9-1\"></path>',\"upload-cloud\":'<polyline points=\"16 16 12 12 8 16\"></polyline><line x1=\"12\" y1=\"12\" x2=\"12\" y2=\"21\"></line><path d=\"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3\"></path><polyline points=\"16 16 12 12 8 16\"></polyline>',upload:'<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"17 8 12 3 7 8\"></polyline><line x1=\"12\" y1=\"3\" x2=\"12\" y2=\"15\"></line>',\"user-check\":'<path d=\"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"></path><circle cx=\"8.5\" cy=\"7\" r=\"4\"></circle><polyline points=\"17 11 19 13 23 9\"></polyline>',\"user-minus\":'<path d=\"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"></path><circle cx=\"8.5\" cy=\"7\" r=\"4\"></circle><line x1=\"23\" y1=\"11\" x2=\"17\" y2=\"11\"></line>',\"user-plus\":'<path d=\"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"></path><circle cx=\"8.5\" cy=\"7\" r=\"4\"></circle><line x1=\"20\" y1=\"8\" x2=\"20\" y2=\"14\"></line><line x1=\"23\" y1=\"11\" x2=\"17\" y2=\"11\"></line>',\"user-x\":'<path d=\"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"></path><circle cx=\"8.5\" cy=\"7\" r=\"4\"></circle><line x1=\"18\" y1=\"8\" x2=\"23\" y2=\"13\"></line><line x1=\"23\" y1=\"8\" x2=\"18\" y2=\"13\"></line>',user:'<path d=\"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2\"></path><circle cx=\"12\" cy=\"7\" r=\"4\"></circle>',users:'<path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"></path><circle cx=\"9\" cy=\"7\" r=\"4\"></circle><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"></path><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"></path>',\"video-off\":'<path d=\"M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10\"></path><line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line>',video:'<polygon points=\"23 7 16 12 23 17 23 7\"></polygon><rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\"></rect>',voicemail:'<circle cx=\"5.5\" cy=\"11.5\" r=\"4.5\"></circle><circle cx=\"18.5\" cy=\"11.5\" r=\"4.5\"></circle><line x1=\"5.5\" y1=\"16\" x2=\"18.5\" y2=\"16\"></line>',\"volume-1\":'<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\"></polygon><path d=\"M15.54 8.46a5 5 0 0 1 0 7.07\"></path>',\"volume-2\":'<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\"></polygon><path d=\"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07\"></path>',\"volume-x\":'<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\"></polygon><line x1=\"23\" y1=\"9\" x2=\"17\" y2=\"15\"></line><line x1=\"17\" y1=\"9\" x2=\"23\" y2=\"15\"></line>',volume:'<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\"></polygon>',watch:'<circle cx=\"12\" cy=\"12\" r=\"7\"></circle><polyline points=\"12 9 12 12 13.5 13.5\"></polyline><path d=\"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83\"></path>',\"wifi-off\":'<line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line><path d=\"M16.72 11.06A10.94 10.94 0 0 1 19 12.55\"></path><path d=\"M5 12.55a10.94 10.94 0 0 1 5.17-2.39\"></path><path d=\"M10.71 5.05A16 16 0 0 1 22.58 9\"></path><path d=\"M1.42 9a15.91 15.91 0 0 1 4.7-2.88\"></path><path d=\"M8.53 16.11a6 6 0 0 1 6.95 0\"></path><line x1=\"12\" y1=\"20\" x2=\"12.01\" y2=\"20\"></line>',wifi:'<path d=\"M5 12.55a11 11 0 0 1 14.08 0\"></path><path d=\"M1.42 9a16 16 0 0 1 21.16 0\"></path><path d=\"M8.53 16.11a6 6 0 0 1 6.95 0\"></path><line x1=\"12\" y1=\"20\" x2=\"12.01\" y2=\"20\"></line>',wind:'<path d=\"M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2\"></path>',\"x-circle\":'<circle cx=\"12\" cy=\"12\" r=\"10\"></circle><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"></line><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"></line>',\"x-octagon\":'<polygon points=\"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2\"></polygon><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"></line><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"></line>',\"x-square\":'<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"></line><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"></line>',x:'<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line>',youtube:'<path d=\"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z\"></path><polygon points=\"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02\"></polygon>',\"zap-off\":'<polyline points=\"12.41 6.75 13 2 10.57 4.92\"></polyline><polyline points=\"18.57 12.91 21 10 15.66 10\"></polyline><polyline points=\"8 8 3 14 12 14 11 22 16 16\"></polyline><line x1=\"1\" y1=\"1\" x2=\"23\" y2=\"23\"></line>',zap:'<polygon points=\"13 2 3 14 12 14 11 22 21 10 12 10 13 2\"></polygon>',\"zoom-in\":'<circle cx=\"11\" cy=\"11\" r=\"8\"></circle><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"></line><line x1=\"11\" y1=\"8\" x2=\"11\" y2=\"14\"></line><line x1=\"8\" y1=\"11\" x2=\"14\" y2=\"11\"></line>',\"zoom-out\":'<circle cx=\"11\" cy=\"11\" r=\"8\"></circle><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"></line><line x1=\"8\" y1=\"11\" x2=\"14\" y2=\"11\"></line>'}},\"./node_modules/classnames/dedupe.js\":function(n,o,e){var t;!function(){\"use strict\";function e(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var t,i=new r,l=(m(i,n),[]);for(t in i)i[t]&&l.push(t);return l.join(\" \")}var u,x;r.prototype=Object.create(null),u={}.hasOwnProperty,x=/\\s+/;function r(){}function m(e,n){for(var o=n.length,t=0;t<o;++t){y=h=d=p=c=s=a=i=r=l=void 0;var i,l=e,r=n[t];if(r)if(\"string\"==(i=typeof r))for(var a=l,s=r.split(x),c=s.length,p=0;p<c;++p)a[s[p]]=!0;else if(Array.isArray(r))m(l,r);else if(\"object\"!=i)\"number\"==i&&(l[r]=!0);else{var y,d=l,h=r;for(y in h)u.call(h,y)&&(d[y]=!!h[y])}}}void 0!==n&&n.exports?n.exports=e:void 0!==(t=function(){return e}.apply(o,[]))&&(n.exports=t)}()},\"./node_modules/core-js/es/array/from.js\":function(e,n,o){o(\"./node_modules/core-js/modules/es.string.iterator.js\"),o(\"./node_modules/core-js/modules/es.array.from.js\");o=o(\"./node_modules/core-js/internals/path.js\");e.exports=o.Array.from},\"./node_modules/core-js/internals/a-function.js\":function(e,n){e.exports=function(e){if(\"function\"!=typeof e)throw TypeError(String(e)+\" is not a function\");return e}},\"./node_modules/core-js/internals/an-object.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/is-object.js\");e.exports=function(e){if(t(e))return e;throw TypeError(String(e)+\" is not an object\")}},\"./node_modules/core-js/internals/array-from.js\":function(e,n,o){\"use strict\";var y=o(\"./node_modules/core-js/internals/bind-context.js\"),d=o(\"./node_modules/core-js/internals/to-object.js\"),h=o(\"./node_modules/core-js/internals/call-with-safe-iteration-closing.js\"),u=o(\"./node_modules/core-js/internals/is-array-iterator-method.js\"),x=o(\"./node_modules/core-js/internals/to-length.js\"),m=o(\"./node_modules/core-js/internals/create-property.js\"),f=o(\"./node_modules/core-js/internals/get-iterator-method.js\");e.exports=function(e){var n,o,t,i,l=d(e),e=\"function\"==typeof this?this:Array,r=arguments.length,a=1<r?arguments[1]:void 0,s=void 0!==a,c=0,p=f(l);if(s&&(a=y(a,2<r?arguments[2]:void 0,2)),null==p||e==Array&&u(p))for(o=new e(n=x(l.length));c<n;c++)m(o,c,s?a(l[c],c):l[c]);else for(i=p.call(l),o=new e;!(t=i.next()).done;c++)m(o,c,s?h(i,a,[t.value,c],!0):t.value);return o.length=c,o}},\"./node_modules/core-js/internals/array-includes.js\":function(e,n,o){var s=o(\"./node_modules/core-js/internals/to-indexed-object.js\"),c=o(\"./node_modules/core-js/internals/to-length.js\"),p=o(\"./node_modules/core-js/internals/to-absolute-index.js\");e.exports=function(a){return function(e,n,o){var t,i=s(e),l=c(i.length),r=p(o,l);if(a&&n!=n){for(;r<l;)if((t=i[r++])!=t)return!0}else for(;r<l;r++)if((a||r in i)&&i[r]===n)return a||r||0;return!a&&-1}}},\"./node_modules/core-js/internals/bind-context.js\":function(e,n,o){var l=o(\"./node_modules/core-js/internals/a-function.js\");e.exports=function(t,i,e){if(l(t),void 0===i)return t;switch(e){case 0:return function(){return t.call(i)};case 1:return function(e){return t.call(i,e)};case 2:return function(e,n){return t.call(i,e,n)};case 3:return function(e,n,o){return t.call(i,e,n,o)}}return function(){return t.apply(i,arguments)}}},\"./node_modules/core-js/internals/call-with-safe-iteration-closing.js\":function(e,n,o){var i=o(\"./node_modules/core-js/internals/an-object.js\");e.exports=function(n,e,o,t){try{return t?e(i(o)[0],o[1]):e(o)}catch(e){t=n.return;throw void 0!==t&&i(t.call(n)),e}}},\"./node_modules/core-js/internals/check-correctness-of-iteration.js\":function(e,n,o){var i=o(\"./node_modules/core-js/internals/well-known-symbol.js\")(\"iterator\"),l=!1;try{var t=0,r={next:function(){return{done:!!t++}},return:function(){l=!0}};r[i]=function(){return this},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,n){if(!n&&!l)return!1;var o=!1;try{var t={};t[i]=function(){return{next:function(){return{done:o=!0}}}},e(t)}catch(e){}return o}},\"./node_modules/core-js/internals/classof-raw.js\":function(e,n){var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},\"./node_modules/core-js/internals/classof.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/classof-raw.js\"),i=o(\"./node_modules/core-js/internals/well-known-symbol.js\")(\"toStringTag\"),l=\"Arguments\"==t(function(){return arguments}());e.exports=function(e){var n;return void 0===e?\"Undefined\":null===e?\"Null\":\"string\"==typeof(n=function(e,n){try{return e[n]}catch(e){}}(e=Object(e),i))?n:l?t(e):\"Object\"==(n=t(e))&&\"function\"==typeof e.callee?\"Arguments\":n}},\"./node_modules/core-js/internals/copy-constructor-properties.js\":function(e,n,o){var a=o(\"./node_modules/core-js/internals/has.js\"),s=o(\"./node_modules/core-js/internals/own-keys.js\"),c=o(\"./node_modules/core-js/internals/object-get-own-property-descriptor.js\"),p=o(\"./node_modules/core-js/internals/object-define-property.js\");e.exports=function(e,n){for(var o=s(n),t=p.f,i=c.f,l=0;l<o.length;l++){var r=o[l];a(e,r)||t(e,r,i(n,r))}}},\"./node_modules/core-js/internals/correct-prototype-getter.js\":function(e,n,o){o=o(\"./node_modules/core-js/internals/fails.js\");e.exports=!o(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},\"./node_modules/core-js/internals/create-iterator-constructor.js\":function(e,n,o){\"use strict\";function t(){return this}var i=o(\"./node_modules/core-js/internals/iterators-core.js\").IteratorPrototype,l=o(\"./node_modules/core-js/internals/object-create.js\"),r=o(\"./node_modules/core-js/internals/create-property-descriptor.js\"),a=o(\"./node_modules/core-js/internals/set-to-string-tag.js\"),s=o(\"./node_modules/core-js/internals/iterators.js\");e.exports=function(e,n,o){n+=\" Iterator\";return e.prototype=l(i,{next:r(1,o)}),a(e,n,!1,!0),s[n]=t,e}},\"./node_modules/core-js/internals/create-property-descriptor.js\":function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},\"./node_modules/core-js/internals/create-property.js\":function(e,n,o){\"use strict\";var t=o(\"./node_modules/core-js/internals/to-primitive.js\"),i=o(\"./node_modules/core-js/internals/object-define-property.js\"),l=o(\"./node_modules/core-js/internals/create-property-descriptor.js\");e.exports=function(e,n,o){n=t(n);n in e?i.f(e,n,l(0,o)):e[n]=o}},\"./node_modules/core-js/internals/define-iterator.js\":function(e,n,o){\"use strict\";function x(){return this}var m=o(\"./node_modules/core-js/internals/export.js\"),f=o(\"./node_modules/core-js/internals/create-iterator-constructor.js\"),j=o(\"./node_modules/core-js/internals/object-get-prototype-of.js\"),g=o(\"./node_modules/core-js/internals/object-set-prototype-of.js\"),v=o(\"./node_modules/core-js/internals/set-to-string-tag.js\"),b=o(\"./node_modules/core-js/internals/hide.js\"),_=o(\"./node_modules/core-js/internals/redefine.js\"),t=o(\"./node_modules/core-js/internals/well-known-symbol.js\"),w=o(\"./node_modules/core-js/internals/is-pure.js\"),M=o(\"./node_modules/core-js/internals/iterators.js\"),o=o(\"./node_modules/core-js/internals/iterators-core.js\"),k=o.IteratorPrototype,z=o.BUGGY_SAFARI_ITERATORS,A=t(\"iterator\"),H=\"values\",V=\"entries\";e.exports=function(e,n,o,t,i,l,r){f(o,n,t);function a(e){if(e===i&&h)return h;if(!z&&e in y)return y[e];switch(e){case\"keys\":case H:case V:return function(){return new o(this,e)}}return function(){return new o(this)}}var s,c,t=n+\" Iterator\",p=!1,y=e.prototype,d=y[A]||y[\"@@iterator\"]||i&&y[i],h=!z&&d||a(i),u=\"Array\"==n&&y.entries||d;if(u&&(u=j(u.call(new e)),k!==Object.prototype)&&u.next&&(w||j(u)===k||(g?g(u,k):\"function\"!=typeof u[A]&&b(u,A,x)),v(u,t,!0,!0),w)&&(M[t]=x),i==H&&d&&d.name!==H&&(p=!0,h=function(){return d.call(this)}),w&&!r||y[A]===h||b(y,A,h),M[n]=h,i)if(s={values:a(H),keys:l?h:a(\"keys\"),entries:a(V)},r)for(c in s)!z&&!p&&c in y||_(y,c,s[c]);else m({target:n,proto:!0,forced:z||p},s);return s}},\"./node_modules/core-js/internals/descriptors.js\":function(e,n,o){o=o(\"./node_modules/core-js/internals/fails.js\");e.exports=!o(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},\"./node_modules/core-js/internals/document-create-element.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),o=o(\"./node_modules/core-js/internals/is-object.js\"),i=t.document,l=o(i)&&o(i.createElement);e.exports=function(e){return l?i.createElement(e):{}}},\"./node_modules/core-js/internals/enum-bug-keys.js\":function(e,n){e.exports=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"]},\"./node_modules/core-js/internals/export.js\":function(e,n,o){var c=o(\"./node_modules/core-js/internals/global.js\"),p=o(\"./node_modules/core-js/internals/object-get-own-property-descriptor.js\").f,y=o(\"./node_modules/core-js/internals/hide.js\"),d=o(\"./node_modules/core-js/internals/redefine.js\"),h=o(\"./node_modules/core-js/internals/set-global.js\"),u=o(\"./node_modules/core-js/internals/copy-constructor-properties.js\"),x=o(\"./node_modules/core-js/internals/is-forced.js\");e.exports=function(e,n){var o,t,i,l=e.target,r=e.global,a=e.stat,s=r?c:a?c[l]||h(l,{}):(c[l]||{}).prototype;if(s)for(o in n){if(t=n[o],i=e.noTargetGet?(i=p(s,o))&&i.value:s[o],!x(r?o:l+(a?\".\":\"#\")+o,e.forced)&&void 0!==i){if(typeof t==typeof i)continue;u(t,i)}(e.sham||i&&i.sham)&&y(t,\"sham\",!0),d(s,o,t,e)}}},\"./node_modules/core-js/internals/fails.js\":function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},\"./node_modules/core-js/internals/function-to-string.js\":function(e,n,o){o=o(\"./node_modules/core-js/internals/shared.js\");e.exports=o(\"native-function-to-string\",Function.toString)},\"./node_modules/core-js/internals/get-iterator-method.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/classof.js\"),i=o(\"./node_modules/core-js/internals/iterators.js\"),l=o(\"./node_modules/core-js/internals/well-known-symbol.js\")(\"iterator\");e.exports=function(e){if(null!=e)return e[l]||e[\"@@iterator\"]||i[t(e)]}},\"./node_modules/core-js/internals/global.js\":function(t,e,n){!function(e){function n(e){return e&&e.Math==Math&&e}var o=\"object\";t.exports=n(typeof globalThis==o&&globalThis)||n(typeof window==o&&window)||n(typeof self==o&&self)||n(typeof e==o&&e)||Function(\"return this\")()}.call(this,n(\"./node_modules/webpack/buildin/global.js\"))},\"./node_modules/core-js/internals/has.js\":function(e,n){var o={}.hasOwnProperty;e.exports=function(e,n){return o.call(e,n)}},\"./node_modules/core-js/internals/hidden-keys.js\":function(e,n){e.exports={}},\"./node_modules/core-js/internals/hide.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/descriptors.js\"),i=o(\"./node_modules/core-js/internals/object-define-property.js\"),l=o(\"./node_modules/core-js/internals/create-property-descriptor.js\");e.exports=t?function(e,n,o){return i.f(e,n,l(1,o))}:function(e,n,o){return e[n]=o,e}},\"./node_modules/core-js/internals/html.js\":function(e,n,o){o=o(\"./node_modules/core-js/internals/global.js\").document;e.exports=o&&o.documentElement},\"./node_modules/core-js/internals/ie8-dom-define.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/descriptors.js\"),i=o(\"./node_modules/core-js/internals/fails.js\"),l=o(\"./node_modules/core-js/internals/document-create-element.js\");e.exports=!t&&!i(function(){return 7!=Object.defineProperty(l(\"div\"),\"a\",{get:function(){return 7}}).a})},\"./node_modules/core-js/internals/indexed-object.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/fails.js\"),i=o(\"./node_modules/core-js/internals/classof-raw.js\"),l=\"\".split;e.exports=t(function(){return!Object(\"z\").propertyIsEnumerable(0)})?function(e){return\"String\"==i(e)?l.call(e,\"\"):Object(e)}:Object},\"./node_modules/core-js/internals/internal-state.js\":function(e,n,o){var t,i,l,r,a,s,c,p,y=o(\"./node_modules/core-js/internals/native-weak-map.js\"),d=o(\"./node_modules/core-js/internals/global.js\"),h=o(\"./node_modules/core-js/internals/is-object.js\"),u=o(\"./node_modules/core-js/internals/hide.js\"),x=o(\"./node_modules/core-js/internals/has.js\"),m=o(\"./node_modules/core-js/internals/shared-key.js\"),o=o(\"./node_modules/core-js/internals/hidden-keys.js\"),d=d.WeakMap;c=y?(t=new d,i=t.get,l=t.has,r=t.set,a=function(e,n){return r.call(t,e,n),n},s=function(e){return i.call(t,e)||{}},function(e){return l.call(t,e)}):(o[p=m(\"state\")]=!0,a=function(e,n){return u(e,p,n),n},s=function(e){return x(e,p)?e[p]:{}},function(e){return x(e,p)}),e.exports={set:a,get:s,has:c,enforce:function(e){return c(e)?s(e):a(e,{})},getterFor:function(n){return function(e){if(h(e)&&(e=s(e)).type===n)return e;throw TypeError(\"Incompatible receiver, \"+n+\" required\")}}}},\"./node_modules/core-js/internals/is-array-iterator-method.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/well-known-symbol.js\"),i=o(\"./node_modules/core-js/internals/iterators.js\"),l=t(\"iterator\"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[l]===e)}},\"./node_modules/core-js/internals/is-forced.js\":function(e,n,o){function t(e,n){return(e=a[r(e)])==c||e!=s&&(\"function\"==typeof n?i(n):!!n)}var i=o(\"./node_modules/core-js/internals/fails.js\"),l=/#|\\.prototype\\./,r=t.normalize=function(e){return String(e).replace(l,\".\").toLowerCase()},a=t.data={},s=t.NATIVE=\"N\",c=t.POLYFILL=\"P\";e.exports=t},\"./node_modules/core-js/internals/is-object.js\":function(e,n){e.exports=function(e){return\"object\"==typeof e?null!==e:\"function\"==typeof e}},\"./node_modules/core-js/internals/is-pure.js\":function(e,n){e.exports=!1},\"./node_modules/core-js/internals/iterators-core.js\":function(e,n,o){\"use strict\";var t,i,l=o(\"./node_modules/core-js/internals/object-get-prototype-of.js\"),r=o(\"./node_modules/core-js/internals/hide.js\"),a=o(\"./node_modules/core-js/internals/has.js\"),s=o(\"./node_modules/core-js/internals/well-known-symbol.js\"),o=o(\"./node_modules/core-js/internals/is-pure.js\"),s=s(\"iterator\"),c=!1;[].keys&&(\"next\"in(i=[].keys())?(l=l(l(i)))!==Object.prototype&&(t=l):c=!0),null==t&&(t={}),o||a(t,s)||r(t,s,function(){return this}),e.exports={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:c}},\"./node_modules/core-js/internals/iterators.js\":function(e,n){e.exports={}},\"./node_modules/core-js/internals/native-symbol.js\":function(e,n,o){o=o(\"./node_modules/core-js/internals/fails.js\");e.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},\"./node_modules/core-js/internals/native-weak-map.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),o=o(\"./node_modules/core-js/internals/function-to-string.js\"),t=t.WeakMap;e.exports=\"function\"==typeof t&&/native code/.test(o.call(t))},\"./node_modules/core-js/internals/object-create.js\":function(e,n,o){function t(){}var i=o(\"./node_modules/core-js/internals/an-object.js\"),l=o(\"./node_modules/core-js/internals/object-define-properties.js\"),r=o(\"./node_modules/core-js/internals/enum-bug-keys.js\"),a=o(\"./node_modules/core-js/internals/hidden-keys.js\"),s=o(\"./node_modules/core-js/internals/html.js\"),c=o(\"./node_modules/core-js/internals/document-create-element.js\"),p=o(\"./node_modules/core-js/internals/shared-key.js\")(\"IE_PROTO\"),y=\"prototype\",d=function(){var e=c(\"iframe\"),n=r.length;for(e.style.display=\"none\",s.appendChild(e),e.src=String(\"javascript:\"),(e=e.contentWindow.document).open(),e.write(\"<script>document.F=Object<\\/script>\"),e.close(),d=e.F;n--;)delete d[y][r[n]];return d()};e.exports=Object.create||function(e,n){var o;return null!==e?(t[y]=i(e),o=new t,t[y]=null,o[p]=e):o=d(),void 0===n?o:l(o,n)},a[p]=!0},\"./node_modules/core-js/internals/object-define-properties.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/descriptors.js\"),r=o(\"./node_modules/core-js/internals/object-define-property.js\"),a=o(\"./node_modules/core-js/internals/an-object.js\"),s=o(\"./node_modules/core-js/internals/object-keys.js\");e.exports=t?Object.defineProperties:function(e,n){a(e);for(var o,t=s(n),i=t.length,l=0;l<i;)r.f(e,o=t[l++],n[o]);return e}},\"./node_modules/core-js/internals/object-define-property.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/descriptors.js\"),i=o(\"./node_modules/core-js/internals/ie8-dom-define.js\"),l=o(\"./node_modules/core-js/internals/an-object.js\"),r=o(\"./node_modules/core-js/internals/to-primitive.js\"),a=Object.defineProperty;n.f=t?a:function(e,n,o){if(l(e),n=r(n,!0),l(o),i)try{return a(e,n,o)}catch(e){}if(\"get\"in o||\"set\"in o)throw TypeError(\"Accessors not supported\");return\"value\"in o&&(e[n]=o.value),e}},\"./node_modules/core-js/internals/object-get-own-property-descriptor.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/descriptors.js\"),i=o(\"./node_modules/core-js/internals/object-property-is-enumerable.js\"),l=o(\"./node_modules/core-js/internals/create-property-descriptor.js\"),r=o(\"./node_modules/core-js/internals/to-indexed-object.js\"),a=o(\"./node_modules/core-js/internals/to-primitive.js\"),s=o(\"./node_modules/core-js/internals/has.js\"),c=o(\"./node_modules/core-js/internals/ie8-dom-define.js\"),p=Object.getOwnPropertyDescriptor;n.f=t?p:function(e,n){if(e=r(e),n=a(n,!0),c)try{return p(e,n)}catch(e){}if(s(e,n))return l(!i.f.call(e,n),e[n])}},\"./node_modules/core-js/internals/object-get-own-property-names.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/object-keys-internal.js\"),i=o(\"./node_modules/core-js/internals/enum-bug-keys.js\").concat(\"length\",\"prototype\");n.f=Object.getOwnPropertyNames||function(e){return t(e,i)}},\"./node_modules/core-js/internals/object-get-own-property-symbols.js\":function(e,n){n.f=Object.getOwnPropertySymbols},\"./node_modules/core-js/internals/object-get-prototype-of.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/has.js\"),i=o(\"./node_modules/core-js/internals/to-object.js\"),l=o(\"./node_modules/core-js/internals/shared-key.js\"),o=o(\"./node_modules/core-js/internals/correct-prototype-getter.js\"),r=l(\"IE_PROTO\"),a=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),t(e,r)?e[r]:\"function\"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},\"./node_modules/core-js/internals/object-keys-internal.js\":function(e,n,o){var r=o(\"./node_modules/core-js/internals/has.js\"),a=o(\"./node_modules/core-js/internals/to-indexed-object.js\"),t=o(\"./node_modules/core-js/internals/array-includes.js\"),s=o(\"./node_modules/core-js/internals/hidden-keys.js\"),c=t(!1);e.exports=function(e,n){var o,t=a(e),i=0,l=[];for(o in t)!r(s,o)&&r(t,o)&&l.push(o);for(;n.length>i;)!r(t,o=n[i++])||~c(l,o)||l.push(o);return l}},\"./node_modules/core-js/internals/object-keys.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/object-keys-internal.js\"),i=o(\"./node_modules/core-js/internals/enum-bug-keys.js\");e.exports=Object.keys||function(e){return t(e,i)}},\"./node_modules/core-js/internals/object-property-is-enumerable.js\":function(e,n,o){\"use strict\";var t={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,l=i&&!t.call({1:2},1);n.f=l?function(e){e=i(this,e);return!!e&&e.enumerable}:t},\"./node_modules/core-js/internals/object-set-prototype-of.js\":function(e,n,o){var i=o(\"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js\");e.exports=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var o,t=!1,e={};try{(o=Object.getOwnPropertyDescriptor(Object.prototype,\"__proto__\").set).call(e,[]),t=e instanceof Array}catch(e){}return function(e,n){return i(e,n),t?o.call(e,n):e.__proto__=n,e}}():void 0)},\"./node_modules/core-js/internals/own-keys.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),i=o(\"./node_modules/core-js/internals/object-get-own-property-names.js\"),l=o(\"./node_modules/core-js/internals/object-get-own-property-symbols.js\"),r=o(\"./node_modules/core-js/internals/an-object.js\"),o=t.Reflect;e.exports=o&&o.ownKeys||function(e){var n=i.f(r(e)),o=l.f;return o?n.concat(o(e)):n}},\"./node_modules/core-js/internals/path.js\":function(e,n,o){e.exports=o(\"./node_modules/core-js/internals/global.js\")},\"./node_modules/core-js/internals/redefine.js\":function(e,n,o){var r=o(\"./node_modules/core-js/internals/global.js\"),t=o(\"./node_modules/core-js/internals/shared.js\"),a=o(\"./node_modules/core-js/internals/hide.js\"),s=o(\"./node_modules/core-js/internals/has.js\"),c=o(\"./node_modules/core-js/internals/set-global.js\"),i=o(\"./node_modules/core-js/internals/function-to-string.js\"),o=o(\"./node_modules/core-js/internals/internal-state.js\"),l=o.get,p=o.enforce,y=String(i).split(\"toString\");t(\"inspectSource\",function(e){return i.call(e)}),(e.exports=function(e,n,o,t){var i=!!t&&!!t.unsafe,l=!!t&&!!t.enumerable,t=!!t&&!!t.noTargetGet;\"function\"==typeof o&&(\"string\"!=typeof n||s(o,\"name\")||a(o,\"name\",n),p(o).source=y.join(\"string\"==typeof n?n:\"\")),e===r?l?e[n]=o:c(n,o):(i?!t&&e[n]&&(l=!0):delete e[n],l?e[n]=o:a(e,n,o))})(Function.prototype,\"toString\",function(){return\"function\"==typeof this&&l(this).source||i.call(this)})},\"./node_modules/core-js/internals/require-object-coercible.js\":function(e,n){e.exports=function(e){if(null==e)throw TypeError(\"Can't call method on \"+e);return e}},\"./node_modules/core-js/internals/set-global.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),i=o(\"./node_modules/core-js/internals/hide.js\");e.exports=function(n,o){try{i(t,n,o)}catch(e){t[n]=o}return o}},\"./node_modules/core-js/internals/set-to-string-tag.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/object-define-property.js\").f,i=o(\"./node_modules/core-js/internals/has.js\"),l=o(\"./node_modules/core-js/internals/well-known-symbol.js\")(\"toStringTag\");e.exports=function(e,n,o){e&&!i(e=o?e:e.prototype,l)&&t(e,l,{configurable:!0,value:n})}},\"./node_modules/core-js/internals/shared-key.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/shared.js\"),i=o(\"./node_modules/core-js/internals/uid.js\"),l=t(\"keys\");e.exports=function(e){return l[e]||(l[e]=i(e))}},\"./node_modules/core-js/internals/shared.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),i=o(\"./node_modules/core-js/internals/set-global.js\"),o=o(\"./node_modules/core-js/internals/is-pure.js\"),l=\"__core-js_shared__\",r=t[l]||i(l,{});(e.exports=function(e,n){return r[e]||(r[e]=void 0!==n?n:{})})(\"versions\",[]).push({version:\"3.1.3\",mode:o?\"pure\":\"global\",copyright:\"© 2019 Denis Pushkarev (zloirock.ru)\"})},\"./node_modules/core-js/internals/string-at.js\":function(e,n,o){var l=o(\"./node_modules/core-js/internals/to-integer.js\"),r=o(\"./node_modules/core-js/internals/require-object-coercible.js\");e.exports=function(e,n,o){var t,e=String(r(e)),n=l(n),i=e.length;return n<0||i<=n?o?\"\":void 0:(t=e.charCodeAt(n))<55296||56319<t||n+1===i||(i=e.charCodeAt(n+1))<56320||57343<i?o?e.charAt(n):t:o?e.slice(n,n+2):i-56320+(t-55296<<10)+65536}},\"./node_modules/core-js/internals/to-absolute-index.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/to-integer.js\"),i=Math.max,l=Math.min;e.exports=function(e,n){e=t(e);return e<0?i(e+n,0):l(e,n)}},\"./node_modules/core-js/internals/to-indexed-object.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/indexed-object.js\"),i=o(\"./node_modules/core-js/internals/require-object-coercible.js\");e.exports=function(e){return t(i(e))}},\"./node_modules/core-js/internals/to-integer.js\":function(e,n){var o=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?t:o)(e)}},\"./node_modules/core-js/internals/to-length.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/to-integer.js\"),i=Math.min;e.exports=function(e){return 0<e?i(t(e),9007199254740991):0}},\"./node_modules/core-js/internals/to-object.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/require-object-coercible.js\");e.exports=function(e){return Object(t(e))}},\"./node_modules/core-js/internals/to-primitive.js\":function(e,n,o){var i=o(\"./node_modules/core-js/internals/is-object.js\");e.exports=function(e,n){if(!i(e))return e;var o,t;if(n&&\"function\"==typeof(o=e.toString)&&!i(t=o.call(e))||\"function\"==typeof(o=e.valueOf)&&!i(t=o.call(e))||!n&&\"function\"==typeof(o=e.toString)&&!i(t=o.call(e)))return t;throw TypeError(\"Can't convert object to primitive value\")}},\"./node_modules/core-js/internals/uid.js\":function(e,n){var o=0,t=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++o+t).toString(36))}},\"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/is-object.js\"),i=o(\"./node_modules/core-js/internals/an-object.js\");e.exports=function(e,n){if(i(e),!t(n)&&null!==n)throw TypeError(\"Can't set \"+String(n)+\" as a prototype\")}},\"./node_modules/core-js/internals/well-known-symbol.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/global.js\"),i=o(\"./node_modules/core-js/internals/shared.js\"),l=o(\"./node_modules/core-js/internals/uid.js\"),r=o(\"./node_modules/core-js/internals/native-symbol.js\"),a=t.Symbol,s=i(\"wks\");e.exports=function(e){return s[e]||(s[e]=r&&a[e]||(r?a:l)(\"Symbol.\"+e))}},\"./node_modules/core-js/modules/es.array.from.js\":function(e,n,o){var t=o(\"./node_modules/core-js/internals/export.js\"),i=o(\"./node_modules/core-js/internals/array-from.js\");t({target:\"Array\",stat:!0,forced:!o(\"./node_modules/core-js/internals/check-correctness-of-iteration.js\")(function(e){Array.from(e)})},{from:i})},\"./node_modules/core-js/modules/es.string.iterator.js\":function(e,n,o){\"use strict\";var t=o(\"./node_modules/core-js/internals/string-at.js\"),i=o(\"./node_modules/core-js/internals/internal-state.js\"),o=o(\"./node_modules/core-js/internals/define-iterator.js\"),l=\"String Iterator\",r=i.set,a=i.getterFor(l);o(String,\"String\",function(e){r(this,{type:l,string:String(e),index:0})},function(){var e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(n=t(n,o,!0),e.index+=n.length,{value:n,done:!1})})},\"./node_modules/webpack/buildin/global.js\":function(e,n){var o=function(){return this}();try{o=o||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"==typeof window&&(o=window)}e.exports=o},\"./src/default-attrs.json\":function(e){e.exports={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",\"stroke-width\":2,\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}},\"./src/icon.js\":function(e,n,o){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var o,t=arguments[n];for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},t=function(e,n,o){return n&&i(e.prototype,n),o&&i(e,o),e};function i(e,n){for(var o=0;o<n.length;o++){var t=n[o];t.enumerable=t.enumerable||!1,t.configurable=!0,\"value\"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}var r=s(o(\"./node_modules/classnames/dedupe.js\")),a=s(o(\"./src/default-attrs.json\"));function s(e){return e&&e.__esModule?e:{default:e}}t(c,[{key:\"toSvg\",value:function(){var n,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=l({},this.attrs,e,{class:(0,r.default)(this.attrs.class,e.class)});return\"<svg \"+(n=e,Object.keys(n).map(function(e){return e+'=\"'+n[e]+'\"'}).join(\" \"))+\">\"+this.contents+\"</svg>\"}},{key:\"toString\",value:function(){return this.contents}}]);o=c;function c(e,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],t=this,i=c;if(!(t instanceof i))throw new TypeError(\"Cannot call a class as a function\");this.name=e,this.contents=n,this.tags=o,this.attrs=l({},a.default,{class:\"feather feather-\"+e})}n.default=o},\"./src/icons.js\":function(e,n,o){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var t=r(o(\"./src/icon.js\")),i=r(o(\"./dist/icons.json\")),l=r(o(\"./src/tags.json\"));function r(e){return e&&e.__esModule?e:{default:e}}n.default=Object.keys(i.default).map(function(e){return new t.default(e,i.default[e],l.default[e])}).reduce(function(e,n){return e[n.name]=n,e},{})},\"./src/index.js\":function(e,n,o){\"use strict\";var t=l(o(\"./src/icons.js\")),i=l(o(\"./src/to-svg.js\")),o=l(o(\"./src/replace.js\"));function l(e){return e&&e.__esModule?e:{default:e}}e.exports={icons:t.default,toSvg:i.default,replace:o.default}},\"./src/replace.js\":function(e,n,o){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var o,t=arguments[n];for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},l=t(o(\"./node_modules/classnames/dedupe.js\")),r=t(o(\"./src/icons.js\"));function t(e){return e&&e.__esModule?e:{default:e}}n.default=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(\"undefined\"==typeof document)throw new Error(\"`feather.replace()` only works in a browser environment.\");var e=document.querySelectorAll(\"[data-feather]\");Array.from(e).forEach(function(e){return function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=function(e){return Array.from(e.attributes).reduce(function(e,n){return e[n.name]=n.value,e},{})}(e),t=o[\"data-feather\"],t=(delete o[\"data-feather\"],r.default[t].toSvg(i({},n,o,{class:(0,l.default)(n.class,o.class)}))),n=(new DOMParser).parseFromString(t,\"image/svg+xml\").querySelector(\"svg\");e.parentNode.replaceChild(n,e)}(e,n)})}},\"./src/tags.json\":function(e){e.exports={activity:[\"pulse\",\"health\",\"action\",\"motion\"],airplay:[\"stream\",\"cast\",\"mirroring\"],\"alert-circle\":[\"warning\",\"alert\",\"danger\"],\"alert-octagon\":[\"warning\",\"alert\",\"danger\"],\"alert-triangle\":[\"warning\",\"alert\",\"danger\"],\"align-center\":[\"text alignment\",\"center\"],\"align-justify\":[\"text alignment\",\"justified\"],\"align-left\":[\"text alignment\",\"left\"],\"align-right\":[\"text alignment\",\"right\"],anchor:[],archive:[\"index\",\"box\"],\"at-sign\":[\"mention\",\"at\",\"email\",\"message\"],award:[\"achievement\",\"badge\"],aperture:[\"camera\",\"photo\"],\"bar-chart\":[\"statistics\",\"diagram\",\"graph\"],\"bar-chart-2\":[\"statistics\",\"diagram\",\"graph\"],battery:[\"power\",\"electricity\"],\"battery-charging\":[\"power\",\"electricity\"],bell:[\"alarm\",\"notification\",\"sound\"],\"bell-off\":[\"alarm\",\"notification\",\"silent\"],bluetooth:[\"wireless\"],\"book-open\":[\"read\",\"library\"],book:[\"read\",\"dictionary\",\"booklet\",\"magazine\",\"library\"],bookmark:[\"read\",\"clip\",\"marker\",\"tag\"],box:[\"cube\"],briefcase:[\"work\",\"bag\",\"baggage\",\"folder\"],calendar:[\"date\"],camera:[\"photo\"],cast:[\"chromecast\",\"airplay\"],\"chevron-down\":[\"expand\"],\"chevron-up\":[\"collapse\"],circle:[\"off\",\"zero\",\"record\"],clipboard:[\"copy\"],clock:[\"time\",\"watch\",\"alarm\"],\"cloud-drizzle\":[\"weather\",\"shower\"],\"cloud-lightning\":[\"weather\",\"bolt\"],\"cloud-rain\":[\"weather\"],\"cloud-snow\":[\"weather\",\"blizzard\"],cloud:[\"weather\"],codepen:[\"logo\"],codesandbox:[\"logo\"],code:[\"source\",\"programming\"],coffee:[\"drink\",\"cup\",\"mug\",\"tea\",\"cafe\",\"hot\",\"beverage\"],columns:[\"layout\"],command:[\"keyboard\",\"cmd\",\"terminal\",\"prompt\"],compass:[\"navigation\",\"safari\",\"travel\",\"direction\"],copy:[\"clone\",\"duplicate\"],\"corner-down-left\":[\"arrow\",\"return\"],\"corner-down-right\":[\"arrow\"],\"corner-left-down\":[\"arrow\"],\"corner-left-up\":[\"arrow\"],\"corner-right-down\":[\"arrow\"],\"corner-right-up\":[\"arrow\"],\"corner-up-left\":[\"arrow\"],\"corner-up-right\":[\"arrow\"],cpu:[\"processor\",\"technology\"],\"credit-card\":[\"purchase\",\"payment\",\"cc\"],crop:[\"photo\",\"image\"],crosshair:[\"aim\",\"target\"],database:[\"storage\",\"memory\"],delete:[\"remove\"],disc:[\"album\",\"cd\",\"dvd\",\"music\"],\"dollar-sign\":[\"currency\",\"money\",\"payment\"],droplet:[\"water\"],edit:[\"pencil\",\"change\"],\"edit-2\":[\"pencil\",\"change\"],\"edit-3\":[\"pencil\",\"change\"],eye:[\"view\",\"watch\"],\"eye-off\":[\"view\",\"watch\",\"hide\",\"hidden\"],\"external-link\":[\"outbound\"],facebook:[\"logo\",\"social\"],\"fast-forward\":[\"music\"],figma:[\"logo\",\"design\",\"tool\"],\"file-minus\":[\"delete\",\"remove\",\"erase\"],\"file-plus\":[\"add\",\"create\",\"new\"],\"file-text\":[\"data\",\"txt\",\"pdf\"],film:[\"movie\",\"video\"],filter:[\"funnel\",\"hopper\"],flag:[\"report\"],\"folder-minus\":[\"directory\"],\"folder-plus\":[\"directory\"],folder:[\"directory\"],framer:[\"logo\",\"design\",\"tool\"],frown:[\"emoji\",\"face\",\"bad\",\"sad\",\"emotion\"],gift:[\"present\",\"box\",\"birthday\",\"party\"],\"git-branch\":[\"code\",\"version control\"],\"git-commit\":[\"code\",\"version control\"],\"git-merge\":[\"code\",\"version control\"],\"git-pull-request\":[\"code\",\"version control\"],github:[\"logo\",\"version control\"],gitlab:[\"logo\",\"version control\"],globe:[\"world\",\"browser\",\"language\",\"translate\"],\"hard-drive\":[\"computer\",\"server\",\"memory\",\"data\"],hash:[\"hashtag\",\"number\",\"pound\"],headphones:[\"music\",\"audio\",\"sound\"],heart:[\"like\",\"love\",\"emotion\"],\"help-circle\":[\"question mark\"],hexagon:[\"shape\",\"node.js\",\"logo\"],home:[\"house\",\"living\"],image:[\"picture\"],inbox:[\"email\"],instagram:[\"logo\",\"camera\"],key:[\"password\",\"login\",\"authentication\",\"secure\"],layers:[\"stack\"],layout:[\"window\",\"webpage\"],\"life-bouy\":[\"help\",\"life ring\",\"support\"],link:[\"chain\",\"url\"],\"link-2\":[\"chain\",\"url\"],linkedin:[\"logo\",\"social media\"],list:[\"options\"],lock:[\"security\",\"password\",\"secure\"],\"log-in\":[\"sign in\",\"arrow\",\"enter\"],\"log-out\":[\"sign out\",\"arrow\",\"exit\"],mail:[\"email\",\"message\"],\"map-pin\":[\"location\",\"navigation\",\"travel\",\"marker\"],map:[\"location\",\"navigation\",\"travel\"],maximize:[\"fullscreen\"],\"maximize-2\":[\"fullscreen\",\"arrows\",\"expand\"],meh:[\"emoji\",\"face\",\"neutral\",\"emotion\"],menu:[\"bars\",\"navigation\",\"hamburger\"],\"message-circle\":[\"comment\",\"chat\"],\"message-square\":[\"comment\",\"chat\"],\"mic-off\":[\"record\",\"sound\",\"mute\"],mic:[\"record\",\"sound\",\"listen\"],minimize:[\"exit fullscreen\",\"close\"],\"minimize-2\":[\"exit fullscreen\",\"arrows\",\"close\"],minus:[\"subtract\"],monitor:[\"tv\",\"screen\",\"display\"],moon:[\"dark\",\"night\"],\"more-horizontal\":[\"ellipsis\"],\"more-vertical\":[\"ellipsis\"],\"mouse-pointer\":[\"arrow\",\"cursor\"],move:[\"arrows\"],music:[\"note\"],navigation:[\"location\",\"travel\"],\"navigation-2\":[\"location\",\"travel\"],octagon:[\"stop\"],package:[\"box\",\"container\"],paperclip:[\"attachment\"],pause:[\"music\",\"stop\"],\"pause-circle\":[\"music\",\"audio\",\"stop\"],\"pen-tool\":[\"vector\",\"drawing\"],percent:[\"discount\"],\"phone-call\":[\"ring\"],\"phone-forwarded\":[\"call\"],\"phone-incoming\":[\"call\"],\"phone-missed\":[\"call\"],\"phone-off\":[\"call\",\"mute\"],\"phone-outgoing\":[\"call\"],phone:[\"call\"],play:[\"music\",\"start\"],\"pie-chart\":[\"statistics\",\"diagram\"],\"play-circle\":[\"music\",\"start\"],plus:[\"add\",\"new\"],\"plus-circle\":[\"add\",\"new\"],\"plus-square\":[\"add\",\"new\"],pocket:[\"logo\",\"save\"],power:[\"on\",\"off\"],printer:[\"fax\",\"office\",\"device\"],radio:[\"signal\"],\"refresh-cw\":[\"synchronise\",\"arrows\"],\"refresh-ccw\":[\"arrows\"],repeat:[\"loop\",\"arrows\"],rewind:[\"music\"],\"rotate-ccw\":[\"arrow\"],\"rotate-cw\":[\"arrow\"],rss:[\"feed\",\"subscribe\"],save:[\"floppy disk\"],scissors:[\"cut\"],search:[\"find\",\"magnifier\",\"magnifying glass\"],send:[\"message\",\"mail\",\"email\",\"paper airplane\",\"paper aeroplane\"],settings:[\"cog\",\"edit\",\"gear\",\"preferences\"],\"share-2\":[\"network\",\"connections\"],shield:[\"security\",\"secure\"],\"shield-off\":[\"security\",\"insecure\"],\"shopping-bag\":[\"ecommerce\",\"cart\",\"purchase\",\"store\"],\"shopping-cart\":[\"ecommerce\",\"cart\",\"purchase\",\"store\"],shuffle:[\"music\"],\"skip-back\":[\"music\"],\"skip-forward\":[\"music\"],slack:[\"logo\"],slash:[\"ban\",\"no\"],sliders:[\"settings\",\"controls\"],smartphone:[\"cellphone\",\"device\"],smile:[\"emoji\",\"face\",\"happy\",\"good\",\"emotion\"],speaker:[\"audio\",\"music\"],star:[\"bookmark\",\"favorite\",\"like\"],\"stop-circle\":[\"media\",\"music\"],sun:[\"brightness\",\"weather\",\"light\"],sunrise:[\"weather\",\"time\",\"morning\",\"day\"],sunset:[\"weather\",\"time\",\"evening\",\"night\"],tablet:[\"device\"],tag:[\"label\"],target:[\"logo\",\"bullseye\"],terminal:[\"code\",\"command line\",\"prompt\"],thermometer:[\"temperature\",\"celsius\",\"fahrenheit\",\"weather\"],\"thumbs-down\":[\"dislike\",\"bad\",\"emotion\"],\"thumbs-up\":[\"like\",\"good\",\"emotion\"],\"toggle-left\":[\"on\",\"off\",\"switch\"],\"toggle-right\":[\"on\",\"off\",\"switch\"],tool:[\"settings\",\"spanner\"],trash:[\"garbage\",\"delete\",\"remove\",\"bin\"],\"trash-2\":[\"garbage\",\"delete\",\"remove\",\"bin\"],triangle:[\"delta\"],truck:[\"delivery\",\"van\",\"shipping\",\"transport\",\"lorry\"],tv:[\"television\",\"stream\"],twitch:[\"logo\"],twitter:[\"logo\",\"social\"],type:[\"text\"],umbrella:[\"rain\",\"weather\"],unlock:[\"security\"],\"user-check\":[\"followed\",\"subscribed\"],\"user-minus\":[\"delete\",\"remove\",\"unfollow\",\"unsubscribe\"],\"user-plus\":[\"new\",\"add\",\"create\",\"follow\",\"subscribe\"],\"user-x\":[\"delete\",\"remove\",\"unfollow\",\"unsubscribe\",\"unavailable\"],user:[\"person\",\"account\"],users:[\"group\"],\"video-off\":[\"camera\",\"movie\",\"film\"],video:[\"camera\",\"movie\",\"film\"],voicemail:[\"phone\"],volume:[\"music\",\"sound\",\"mute\"],\"volume-1\":[\"music\",\"sound\"],\"volume-2\":[\"music\",\"sound\"],\"volume-x\":[\"music\",\"sound\",\"mute\"],watch:[\"clock\",\"time\"],\"wifi-off\":[\"disabled\"],wifi:[\"connection\",\"signal\",\"wireless\"],wind:[\"weather\",\"air\"],\"x-circle\":[\"cancel\",\"close\",\"delete\",\"remove\",\"times\",\"clear\"],\"x-octagon\":[\"delete\",\"stop\",\"alert\",\"warning\",\"times\",\"clear\"],\"x-square\":[\"cancel\",\"close\",\"delete\",\"remove\",\"times\",\"clear\"],x:[\"cancel\",\"close\",\"delete\",\"remove\",\"times\",\"clear\"],youtube:[\"logo\",\"video\",\"play\"],\"zap-off\":[\"flash\",\"camera\",\"lightning\"],zap:[\"flash\",\"camera\",\"lightning\"],\"zoom-in\":[\"magnifying glass\"],\"zoom-out\":[\"magnifying glass\"]}},\"./src/to-svg.js\":function(e,n,o){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var o=o(\"./src/icons.js\"),t=(o=o)&&o.__esModule?o:{default:o};n.default=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(console.warn(\"feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead.\"),!e)throw new Error(\"The required `key` (icon name) parameter is missing.\");if(t.default[e])return t.default[e].toSvg(n);throw new Error(\"No icon matching '\"+e+\"'. See the complete list of icons at https://feathericons.com\")}},0:function(e,n,o){o(\"./node_modules/core-js/es/array/from.js\"),e.exports=o(\"./src/index.js\")}},i={},t.m=o,t.c=i,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.r=function(e){Object.defineProperty(e,\"__esModule\",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p=\"\",t(t.s=0);function t(e){var n;return(i[e]||(n=i[e]={i:e,l:!1,exports:{}},o[e].call(n.exports,n,n.exports,t),n.l=!0,n)).exports}var o,i});","!function(t,e){\"object\"==typeof exports?module.exports=e(window,document):t.SimpleScrollbar=e(window,document)}(this,function(l,o){var h=l.requestAnimationFrame||l.setImmediate||function(t){return setTimeout(t,0)};function s(t){Object.defineProperty(t,\"data-simple-scrollbar\",{value:new r(t),configurable:!0})}function i(t){Object.prototype.hasOwnProperty.call(t,\"data-simple-scrollbar\")&&(t[\"data-simple-scrollbar\"].unBind(),delete t[\"data-simple-scrollbar\"])}function t(t){for(this.target=t,this.content=t.firstElementChild,this.direction=l.getComputedStyle(this.target).direction,this.bar='<div class=\"ss-scroll\">',this.mB=this.moveBar.bind(this),this.wrapper=o.createElement(\"div\"),this.wrapper.setAttribute(\"class\",\"ss-wrapper\"),this.el=o.createElement(\"div\"),this.el.setAttribute(\"class\",\"ss-content\"),\"rtl\"===this.direction&&this.el.classList.add(\"rtl\"),this.wrapper.appendChild(this.el);this.target.firstChild;)this.el.appendChild(this.target.firstChild);function e(t){var e=t.pageY-n;n=t.pageY,h(function(){r.el.scrollTop+=e/r.scrollRatio})}function s(){i.classList.remove(\"ss-grabbed\"),o.body.classList.remove(\"ss-grabbed\"),o.removeEventListener(\"mousemove\",e),o.removeEventListener(\"mouseup\",s)}this.target.appendChild(this.wrapper),this.target.insertAdjacentHTML(\"beforeend\",this.bar),this.bar=this.target.lastChild,i=this.bar,r=this,i.addEventListener(\"mousedown\",function(t){return n=t.pageY,i.classList.add(\"ss-grabbed\"),o.body.classList.add(\"ss-grabbed\"),o.addEventListener(\"mousemove\",e),o.addEventListener(\"mouseup\",s),!1}),this.moveBar(),l.addEventListener(\"resize\",this.mB),this.el.addEventListener(\"scroll\",this.mB),this.el.addEventListener(\"mouseenter\",this.mB),this.target.classList.add(\"ss-container\");var i,r,n,a=l.getComputedStyle(t);\"0px\"===a.height&&\"0px\"!==a[\"max-height\"]&&(t.style.height=a[\"max-height\"]),this.unBind=function(){l.removeEventListener(\"resize\",this.mB),this.el.removeEventListener(\"scroll\",this.mB),this.el.removeEventListener(\"mouseenter\",this.mB),this.target.classList.remove(\"ss-container\"),this.target.insertBefore(this.content,this.wrapper),this.target.removeChild(this.wrapper),this.target.removeChild(this.bar),this.bar=null}}function e(){for(var t=o.querySelectorAll(\"*[ss-container]\"),e=0;e<t.length;e++)s(t[e])}t.prototype={moveBar:function(t){var e=this.el.scrollHeight,s=this.el.clientHeight,i=this;this.scrollRatio=s/e;var r=\"rtl\"===i.direction?i.target.clientWidth-i.bar.clientWidth-3:-1*(i.target.clientWidth-i.bar.clientWidth);h(function(){1<=i.scrollRatio?i.bar.classList.add(\"ss-hidden\"):(i.bar.classList.remove(\"ss-hidden\"),i.bar.style.cssText=\"height:\"+Math.max(100*i.scrollRatio,10)+\"%; top:\"+i.el.scrollTop/e*100+\"%;right:\"+r+\"px;\")})}},o.addEventListener(\"DOMContentLoaded\",e),t.initEl=s,t.initAll=e,t.unbindEl=i,t.unbindAll=function(){for(var t=o.querySelectorAll(\".ss-container\"),e=0;e<t.length;e++)i(t[e])};var r=t;return r});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,function(){\"use strict\";var s=Object.freeze({__proto__:null,get Colors(){return rr},get Decimation(){return lr},get Filler(){return yr},get Legend(){return Sr},get SubTitle(){return Or},get Title(){return Dr},get Tooltip(){return Nr}});function t(){}const F=(()=>{let t=0;return()=>t++})();function P(t){return null==t}function O(t){return!(!Array.isArray||!Array.isArray(t))||\"[object\"===(t=Object.prototype.toString.call(t)).slice(0,7)&&\"Array]\"===t.slice(-6)}function A(t){return null!==t&&\"[object Object]\"===Object.prototype.toString.call(t)}function p(t){return(\"number\"==typeof t||t instanceof Number)&&isFinite(+t)}function u(t,e){return p(t)?t:e}function T(t,e){return void 0===t?e:t}const V=(t,e)=>\"string\"==typeof t&&t.endsWith(\"%\")?parseFloat(t)/100:+t/e,B=(t,e)=>\"string\"==typeof t&&t.endsWith(\"%\")?parseFloat(t)/100*e:+t;function d(t,e,i){if(t&&\"function\"==typeof t.call)return t.apply(i,e)}function k(t,e,i,s){let a,r,n;if(O(t))if(r=t.length,s)for(a=r-1;0<=a;a--)e.call(i,t[a],a);else for(a=0;a<r;a++)e.call(i,t[a],a);else if(A(t))for(n=Object.keys(t),r=n.length,a=0;a<r;a++)e.call(i,t[n[a]],n[a])}function N(t,e){let i,s,a,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(a=t[i],r=e[i],a.datasetIndex!==r.datasetIndex||a.index!==r.index)return!1;return!0}function W(e){if(O(e))return e.map(W);if(A(e)){var i=Object.create(null),s=Object.keys(e),a=s.length;let t=0;for(;t<a;++t)i[s[t]]=W(e[s[t]]);return i}return e}function H(t){return-1===[\"__proto__\",\"prototype\",\"constructor\"].indexOf(t)}function j(t,e,i,s){var a;H(t)&&(a=e[t],i=i[t],A(a)&&A(i)?Y(a,i,s):e[t]=W(i))}function Y(i,t,s){var e=O(t)?t:[t],a=e.length;if(A(i)){var r,n=(s=s||{}).merger||j;for(let t=0;t<a;++t)if(A(r=e[t])){const O=Object.keys(r);for(let t=0,e=O.length;t<e;++t)n(O[t],i,r,s)}}return i}function $(t,e){return Y(t,e,{merger:U})}function U(t,e,i){var s;H(t)&&(s=e[t],i=i[t],A(s)&&A(i)?$(s,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=W(i)))}const X={\"\":t=>t,x:t=>t.x,y:t=>t.y};function q(t){var e=t.split(\".\"),i=[];let s=\"\";for(const t of e)s+=t,s=s.endsWith(\"\\\\\")?s.slice(0,-1)+\".\":(i.push(s),\"\");return i}function f(t,e){return(X[e]||(X[e]=function(){const i=q(e);return t=>{for(const e of i){if(\"\"===e)break;t=t&&t[e]}return t}}()))(t)}function K(t){return t.charAt(0).toUpperCase()+t.slice(1)}const g=t=>void 0!==t,m=t=>\"function\"==typeof t,G=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function Z(t){return\"mouseup\"===t.type||\"click\"===t.type||\"contextmenu\"===t.type}const S=Math.PI,v=2*S,J=v+S,Q=Number.POSITIVE_INFINITY,tt=S/180,D=S/2,et=S/4,it=2*S/3,o=Math.log10,_=Math.sign;function st(t,e,i){return Math.abs(t-e)<i}function at(t){var e=Math.round(t),e=(t=st(t,e,t/1e3)?e:t,Math.pow(10,Math.floor(o(t)))),t=t/e;return(t<=1?1:t<=2?2:t<=5?5:10)*e}function rt(t){var e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort((t,e)=>t-e).pop(),e}function nt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ot(t,e){var i=Math.round(t);return i-e<=t&&t<=i+e}function lt(t,e,i){let s,a,r;for(s=0,a=t.length;s<a;s++)r=t[s][i],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function L(t){return t*(S/180)}function ht(t){return t*(180/S)}function ct(i){if(p(i)){let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}}function dt(t,e){var i=e.x-t.x,e=e.y-t.y,t=Math.sqrt(i*i+e*e);let s=Math.atan2(e,i);return s<-.5*S&&(s+=v),{angle:s,distance:t}}function ut(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function gt(t,e){return(t-e+J)%v-S}function y(t){return(t%v+v)%v}function ft(t,e,i,s){var t=y(t),e=y(e),i=y(i),a=y(e-t),r=y(i-t),n=y(t-e),o=y(t-i);return t===e||t===i||s&&e===i||r<a&&n<o}function C(t,e,i){return Math.max(e,Math.min(i,t))}function pt(t){return C(t,-32768,32767)}function c(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function mt(e,i,t){t=t||(t=>e[t]<i);let s,a=e.length-1,r=0;for(;1<a-r;)t(s=r+a>>1)?r=s:a=s;return{lo:r,hi:a}}const b=(i,s,a,t)=>mt(i,a,t?t=>{var e=i[t][s];return e<a||e===a&&i[t+1][s]===a}:t=>i[t][s]<a),bt=(e,i,s)=>mt(e,s,t=>e[t][i]>=s);function xt(t,e,i){let s=0,a=t.length;for(;s<a&&t[s]<e;)s++;for(;a>s&&t[a-1]>i;)a--;return 0<s||a<t.length?t.slice(s,a):t}const vt=[\"push\",\"pop\",\"shift\",\"splice\",\"unshift\"];function _t(a,t){a._chartjs?a._chartjs.listeners.push(t):(Object.defineProperty(a,\"_chartjs\",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),vt.forEach(t=>{const i=\"_onData\"+K(t),s=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value(...e){var t=s.apply(this,e);return a._chartjs.listeners.forEach(t=>{\"function\"==typeof t[i]&&t[i](...e)}),t}})}))}function yt(e,t){var i=e._chartjs;i&&(-1!==(t=(i=i.listeners).indexOf(t))&&i.splice(t,1),0<i.length||(vt.forEach(t=>{delete e[t]}),delete e._chartjs))}function Mt(t){var e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const wt=\"undefined\"==typeof window?function(t){return t()}:window.requestAnimationFrame;function kt(e,i){let s,a=!1;return function(...t){s=t,a||(a=!0,wt.call(window,()=>{a=!1,e.apply(i,s)}))}}function St(e,i){let s;return function(...t){return i?(clearTimeout(s),s=setTimeout(e,i,t)):e.apply(this,t),i}}const Pt=t=>\"start\"===t?\"left\":\"end\"===t?\"right\":\"center\",E=(t,e,i)=>\"start\"===t?e:\"end\"===t?i:(e+i)/2,Dt=(t,e,i,s)=>t===(s?\"left\":\"right\")?i:\"center\"===t?(e+i)/2:e;function Ct(t,e,i){var s,a,r,n,o,l,h=e.length;let c=0,d=h;return t._sorted&&({iScale:t,_parsed:s}=t,a=t.axis,{min:r,max:n,minDefined:o,maxDefined:l}=t.getUserBounds(),o&&(c=C(Math.min(b(s,t.axis,r).lo,i?h:b(e,a,t.getPixelForValue(r)).lo),0,h-1)),d=l?C(Math.max(b(s,t.axis,n,!0).hi+1,i?0:b(e,a,t.getPixelForValue(n),!0).hi+1),c,h)-c:h-c),{start:c,count:d}}function Ot(t){var{xScale:e,yScale:i,_scaleRanges:s}=t,a={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};return s?(e=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max,Object.assign(s,a),e):(t._scaleRanges=a,!0)}var r=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,i,s,t){const a=i.listeners[t],r=i.duration;a.forEach(t=>t({chart:e,initial:i.initial,numSteps:r,currentStep:Math.min(s-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=wt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let o=0;this._charts.forEach((s,a)=>{if(s.running&&s.items.length){var r=s.items;let t,e=r.length-1,i=!1;for(;0<=e;--e)(t=r[e])._active?(t._total>s.duration&&(s.duration=t._total),t.tick(n),i=!0):(r[e]=r[r.length-1],r.pop());i&&(a.draw(),this._notify(a,s,n,\"progress\")),r.length||(s.running=!1,this._notify(a,s,n,\"complete\"),s.initial=!1),o+=r.length}}),this._lastDate=n,0===o&&(this._running=!1)}_getAnims(t){var e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return 0<this._getAnims(t).items.length}start(t){t=this._charts.get(t);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){return!!this._running&&!!((t=this._charts.get(t))&&t.running&&t.items.length)}stop(e){var i=this._charts.get(e);if(i&&i.items.length){var s=i.items;let t=s.length-1;for(;0<=t;--t)s[t].cancel();i.items=[],this._notify(e,i,Date.now(),\"complete\")}}remove(t){return this._charts.delete(t)}};function At(t){return t+.5|0}const Tt=(t,e,i)=>Math.max(Math.min(t,i),e);function Lt(t){return Tt(At(2.55*t),0,255)}function Et(t){return Tt(At(255*t),0,255)}function n(t){return Tt(At(t/2.55)/100,0,1)}function Rt(t){return Tt(At(100*t),0,100)}const l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},It=[...\"0123456789ABCDEF\"],zt=t=>It[15&t],Ft=t=>It[(240&t)>>4]+It[15&t],Vt=t=>(240&t)>>4==(15&t);const Bt=/^(hsla?|hwb|hsv)\\(\\s*([-+.e\\d]+)(?:deg)?[\\s,]+([-+.e\\d]+)%[\\s,]+([-+.e\\d]+)%(?:[\\s,]+([-+.e\\d]+)(%)?)?\\s*\\)$/;function Nt(i,t,s){const a=t*Math.min(s,1-s),e=(t,e=(t+i/30)%12)=>s-a*Math.max(Math.min(e-3,9-e,1),-1);return[e(0),e(8),e(4)]}function Wt(i,s,a){var t=(t,e=(t+i/60)%6)=>a-a*s*Math.max(Math.min(e,4-e,1),0);return[t(5),t(3),t(1)]}function Ht(t,e,i){var s=Nt(t,1,.5);let a;for(1<e+i&&(e*=a=1/(e+i),i*=a),a=0;a<3;a++)s[a]*=1-e-i,s[a]+=e;return s}function jt(t){var e=t.r/255,i=t.g/255,t=t.b/255,s=Math.max(e,i,t),a=Math.min(e,i,t),r=(s+a)/2;let n,o,l;return s!==a&&(l=s-a,o=.5<r?l/(2-s-a):l/(s+a),n=60*(n=(a=i,i=t,(t=e)===s?(a-i)/l+(a<i?6:0):a===s?(i-t)/l+2:(t-a)/l+4))+.5),[0|n,o||0,r]}function Yt(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(Et)}function $t(t,e,i){return Yt(Nt,t,e,i)}function Ut(t){return(t%360+360)%360}const Xt={x:\"dark\",Z:\"light\",Y:\"re\",X:\"blu\",W:\"gr\",V:\"medium\",U:\"slate\",A:\"ee\",T:\"ol\",S:\"or\",B:\"ra\",C:\"lateg\",D:\"ights\",R:\"in\",Q:\"turquois\",E:\"hi\",P:\"ro\",O:\"al\",N:\"le\",M:\"de\",L:\"yello\",F:\"en\",K:\"ch\",G:\"arks\",H:\"ea\",I:\"ightg\",J:\"wh\"},qt={OiceXe:\"f0f8ff\",antiquewEte:\"faebd7\",aqua:\"ffff\",aquamarRe:\"7fffd4\",azuY:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"0\",blanKedOmond:\"ffebcd\",Xe:\"ff\",XeviTet:\"8a2be2\",bPwn:\"a52a2a\",burlywood:\"deb887\",caMtXe:\"5f9ea0\",KartYuse:\"7fff00\",KocTate:\"d2691e\",cSO:\"ff7f50\",cSnflowerXe:\"6495ed\",cSnsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"ffff\",xXe:\"8b\",xcyan:\"8b8b\",xgTMnPd:\"b8860b\",xWay:\"a9a9a9\",xgYF:\"6400\",xgYy:\"a9a9a9\",xkhaki:\"bdb76b\",xmagFta:\"8b008b\",xTivegYF:\"556b2f\",xSange:\"ff8c00\",xScEd:\"9932cc\",xYd:\"8b0000\",xsOmon:\"e9967a\",xsHgYF:\"8fbc8f\",xUXe:\"483d8b\",xUWay:\"2f4f4f\",xUgYy:\"2f4f4f\",xQe:\"ced1\",xviTet:\"9400d3\",dAppRk:\"ff1493\",dApskyXe:\"bfff\",dimWay:\"696969\",dimgYy:\"696969\",dodgerXe:\"1e90ff\",fiYbrick:\"b22222\",flSOwEte:\"fffaf0\",foYstWAn:\"228b22\",fuKsia:\"ff00ff\",gaRsbSo:\"dcdcdc\",ghostwEte:\"f8f8ff\",gTd:\"ffd700\",gTMnPd:\"daa520\",Way:\"808080\",gYF:\"8000\",gYFLw:\"adff2f\",gYy:\"808080\",honeyMw:\"f0fff0\",hotpRk:\"ff69b4\",RdianYd:\"cd5c5c\",Rdigo:\"4b0082\",ivSy:\"fffff0\",khaki:\"f0e68c\",lavFMr:\"e6e6fa\",lavFMrXsh:\"fff0f5\",lawngYF:\"7cfc00\",NmoncEffon:\"fffacd\",ZXe:\"add8e6\",ZcSO:\"f08080\",Zcyan:\"e0ffff\",ZgTMnPdLw:\"fafad2\",ZWay:\"d3d3d3\",ZgYF:\"90ee90\",ZgYy:\"d3d3d3\",ZpRk:\"ffb6c1\",ZsOmon:\"ffa07a\",ZsHgYF:\"20b2aa\",ZskyXe:\"87cefa\",ZUWay:\"778899\",ZUgYy:\"778899\",ZstAlXe:\"b0c4de\",ZLw:\"ffffe0\",lime:\"ff00\",limegYF:\"32cd32\",lRF:\"faf0e6\",magFta:\"ff00ff\",maPon:\"800000\",VaquamarRe:\"66cdaa\",VXe:\"cd\",VScEd:\"ba55d3\",VpurpN:\"9370db\",VsHgYF:\"3cb371\",VUXe:\"7b68ee\",VsprRggYF:\"fa9a\",VQe:\"48d1cc\",VviTetYd:\"c71585\",midnightXe:\"191970\",mRtcYam:\"f5fffa\",mistyPse:\"ffe4e1\",moccasR:\"ffe4b5\",navajowEte:\"ffdead\",navy:\"80\",Tdlace:\"fdf5e6\",Tive:\"808000\",TivedBb:\"6b8e23\",Sange:\"ffa500\",SangeYd:\"ff4500\",ScEd:\"da70d6\",pOegTMnPd:\"eee8aa\",pOegYF:\"98fb98\",pOeQe:\"afeeee\",pOeviTetYd:\"db7093\",papayawEp:\"ffefd5\",pHKpuff:\"ffdab9\",peru:\"cd853f\",pRk:\"ffc0cb\",plum:\"dda0dd\",powMrXe:\"b0e0e6\",purpN:\"800080\",YbeccapurpN:\"663399\",Yd:\"ff0000\",Psybrown:\"bc8f8f\",PyOXe:\"4169e1\",saddNbPwn:\"8b4513\",sOmon:\"fa8072\",sandybPwn:\"f4a460\",sHgYF:\"2e8b57\",sHshell:\"fff5ee\",siFna:\"a0522d\",silver:\"c0c0c0\",skyXe:\"87ceeb\",UXe:\"6a5acd\",UWay:\"708090\",UgYy:\"708090\",snow:\"fffafa\",sprRggYF:\"ff7f\",stAlXe:\"4682b4\",tan:\"d2b48c\",teO:\"8080\",tEstN:\"d8bfd8\",tomato:\"ff6347\",Qe:\"40e0d0\",viTet:\"ee82ee\",JHt:\"f5deb3\",wEte:\"ffffff\",wEtesmoke:\"f5f5f5\",Lw:\"ffff00\",LwgYF:\"9acd32\"};let Kt;const Gt=/^rgba?\\(\\s*([-+.\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?[\\s,]+([-+.e\\d]+)(%)?(?:[\\s,/]+([-+.e\\d]+)(%)?)?\\s*\\)$/,Zt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Jt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Qt(e,i,s){if(e){let t=jt(e);t[i]=Math.max(0,Math.min(t[i]+t[i]*s,0===i?360:1)),t=$t(t),e.r=t[0],e.g=t[1],e.b=t[2]}}function te(t,e){return t&&Object.assign(e||{},t)}function ee(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?3<=t.length&&(e={r:t[0],g:t[1],b:t[2],a:255},3<t.length)&&(e.a=Et(t[3])):(e=te(t,{r:0,g:0,b:0,a:1})).a=Et(e.a),e}function ie(t){return(\"r\"===t.charAt(0)?function(t){var e=Gt.exec(t);let i,s,a,r=255;if(e){if(void 0!==e[7]){const t=+e[7];r=e[8]?Lt(t):Tt(255*t,0,255)}return i=+e[1],s=+e[3],a=+e[5],{r:255&(e[2]?Lt(i):Tt(i,0,255)),g:255&(e[4]?Lt(s):Tt(s,0,255)),b:255&(e[6]?Lt(a):Tt(a,0,255)),a:r}}}:function(t){var e,i,s,t=Bt.exec(t);let a,r=255;if(t)return void 0!==t[5]&&(r=(t[6]?Lt:Et)(+t[5])),e=Ut(+t[2]),i=+t[3]/100,s=+t[4]/100,{r:(a=\"hwb\"===t[1]?Yt(Ht,e,i,s):\"hsv\"===t[1]?Yt(Wt,e,i,s):$t(e,i,s))[0],g:a[1],b:a[2],a:r}})(t)}class se{constructor(t){if(t instanceof se)return t;var e,i,s=typeof t;let a;\"object\"==s?a=ee(t):\"string\"==s&&(i=(s=t).length,\"#\"===s[0]&&(4===i||5===i?e={r:255&17*l[s[1]],g:255&17*l[s[2]],b:255&17*l[s[3]],a:5===i?17*l[s[4]]:255}:7!==i&&9!==i||(e={r:l[s[1]]<<4|l[s[2]],g:l[s[3]]<<4|l[s[4]],b:l[s[5]]<<4|l[s[6]],a:9===i?l[s[7]]<<4|l[s[8]]:255})),a=e||(i=t,Kt||((Kt=function(){var t={},e=Object.keys(qt),i=Object.keys(Xt);let s,a,r,n,o;for(s=0;s<e.length;s++){for(n=o=e[s],a=0;a<i.length;a++)r=i[a],o=o.replace(r,Xt[r]);r=parseInt(qt[n],16),t[o]=[r>>16&255,r>>8&255,255&r]}return t}()).transparent=[0,0,0,0]),(i=Kt[i.toLowerCase()])&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255})||ie(t)),this._rgb=a,this._valid=!!a}get valid(){return this._valid}get rgb(){var t=te(this._rgb);return t&&(t.a=n(t.a)),t}set rgb(t){this._rgb=ee(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${n(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid&&(t=this._rgb,e=t,e=Vt(e.r)&&Vt(e.g)&&Vt(e.b)&&Vt(e.a)?zt:Ft,t)?\"#\"+e(t.r)+e(t.g)+e(t.b)+((t=t.a)<255?e(t):\"\"):void 0;var t,e}hslString(){if(this._valid){var t,e,i,s=this._rgb;if(s)return t=(i=jt(s))[0],e=Rt(i[1]),i=Rt(i[2]),s.a<255?`hsla(${t}, ${e}%, ${i}%, ${n(s.a)})`:`hsl(${t}, ${e}%, ${i}%)`}}mix(t,e){var i,s,a;return t&&(i=this.rgb,t=t.rgb,a=i.a-t.a,i.r=255&(s=(1+((s=2*(e=void 0===e?.5:e)-1)*a==-1?s:(s+a)/(1+s*a)))/2)*i.r+(a=1-s)*t.r+.5,i.g=255&s*i.g+a*t.g+.5,i.b=255&s*i.b+a*t.b+.5,i.a=e*i.a+(1-e)*t.a,this.rgb=i),this}interpolate(t,e){return t&&(this._rgb=(i=this._rgb,t=t._rgb,e=e,s=Jt(n(i.r)),a=Jt(n(i.g)),r=Jt(n(i.b)),{r:Et(Zt(s+e*(Jt(n(t.r))-s))),g:Et(Zt(a+e*(Jt(n(t.g))-a))),b:Et(Zt(r+e*(Jt(n(t.b))-r))),a:i.a+e*(t.a-i.a)})),this;var i,s,a,r}clone(){return new se(this.rgb)}alpha(t){return this._rgb.a=Et(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){var t=this._rgb,e=At(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Qt(this._rgb,2,t),this}darken(t){return Qt(this._rgb,2,-t),this}saturate(t){return Qt(this._rgb,1,t),this}desaturate(t){return Qt(this._rgb,1,-t),this}rotate(t){return e=this._rgb,t=t,(i=jt(e))[0]=Ut(i[0]+t),i=$t(i),e.r=i[0],e.g=i[1],e.b=i[2],this;var e,i}}function ae(t){return!(!t||\"object\"!=typeof t||\"[object CanvasPattern]\"!==(t=t.toString())&&\"[object CanvasGradient]\"!==t)}function re(t){return ae(t)?t:new se(t)}function ne(t){return ae(t)?t:new se(t).saturate(.5).darken(.1).hexString()}const oe=[\"x\",\"y\",\"borderWidth\",\"radius\",\"tension\"],le=[\"color\",\"borderColor\",\"backgroundColor\"],he=new Map;function ce(t,e,a){return function(t,e){e=a||{};var i=t+JSON.stringify(e);let s=he.get(i);return s||(s=new Intl.NumberFormat(t,e),he.set(i,s)),s}(e).format(t)}const de={values:t=>O(t)?t:\"\"+t,numeric(t,e,i){if(0===t)return\"0\";var s=this.chart.options.locale;let a,r=t;if(1<i.length){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||1e15<e)&&(a=\"scientific\"),r=function(t){let e=3<i.length?i[2].value-i[1].value:i[1].value-i[0].value;return e=1<=Math.abs(e)&&t!==Math.floor(t)?t-Math.floor(t):e}(t)}var n=o(Math.abs(r)),n=Math.max(Math.min(-1*Math.floor(n),20),0),n={notation:a,minimumFractionDigits:n,maximumFractionDigits:n};return Object.assign(n,this.options.ticks.format),ce(t,s,n)},logarithmic(t,e,i){var s;return 0===t?\"0\":(s=i[e].significand||t/Math.pow(10,Math.floor(o(t))),[1,2,3,5,10,15].includes(s)||e>.8*i.length?de.numeric.call(this,t,e,i):\"\")}};var ue={formatters:de};const ge=Object.create(null),fe=Object.create(null);function pe(i,t){if(t){var s=t.split(\".\");for(let t=0,e=s.length;t<e;++t){var a=s[t];i=i[a]||(i[a]=Object.create(null))}}return i}function me(t,e,i){return\"string\"==typeof e?Y(pe(t,e),i):Y(pe(t,\"\"),e)}var R=new class{constructor(t,e){this.animation=void 0,this.backgroundColor=\"rgba(0,0,0,0.1)\",this.borderColor=\"rgba(0,0,0,0.1)\",this.color=\"#666\",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],this.font={family:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",size:12,style:\"normal\",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>ne(e.backgroundColor),this.hoverBorderColor=(t,e)=>ne(e.borderColor),this.hoverColor=(t,e)=>ne(e.color),this.indexAxis=\"x\",this.interaction={mode:\"nearest\",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return me(this,t,e)}get(t){return pe(this,t)}describe(t,e){return me(fe,t,e)}override(t,e){return me(ge,t,e)}route(t,e,i,s){const a=pe(this,t),r=pe(this,i),n=\"_\"+e;Object.defineProperties(a,{[n]:{value:a[e],writable:!0},[e]:{enumerable:!0,get(){var t=this[n],e=r[s];return A(t)?Object.assign({},e,t):T(t,e)},set(t){this[n]=t}}})}apply(t){t.forEach(t=>t(this))}}({_scriptable:t=>!t.startsWith(\"on\"),_indexable:t=>\"events\"!==t,hover:{_fallback:\"interaction\"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set(\"animation\",{delay:void 0,duration:1e3,easing:\"easeOutQuart\",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe(\"animation\",{_fallback:!1,_indexable:!1,_scriptable:t=>\"onProgress\"!==t&&\"onComplete\"!==t&&\"fn\"!==t}),t.set(\"animations\",{colors:{type:\"color\",properties:le},numbers:{type:\"number\",properties:oe}}),t.describe(\"animations\",{_fallback:\"animation\"}),t.set(\"transitions\",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:\"transparent\"},visible:{type:\"boolean\",duration:0}}},hide:{animations:{colors:{to:\"transparent\"},visible:{type:\"boolean\",easing:\"linear\",fn:t=>0|t}}}})},function(t){t.set(\"layout\",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set(\"scale\",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:\"ticks\",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:\"\",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:\"\",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ue.formatters.values,minor:{},major:{},align:\"center\",crossAlign:\"near\",showLabelBackdrop:!1,backdropColor:\"rgba(255, 255, 255, 0.75)\",backdropPadding:2}}),t.route(\"scale.ticks\",\"color\",\"\",\"color\"),t.route(\"scale.grid\",\"color\",\"\",\"borderColor\"),t.route(\"scale.border\",\"color\",\"\",\"borderColor\"),t.route(\"scale.title\",\"color\",\"\",\"color\"),t.describe(\"scale\",{_fallback:!1,_scriptable:t=>!t.startsWith(\"before\")&&!t.startsWith(\"after\")&&\"callback\"!==t&&\"parser\"!==t,_indexable:t=>\"borderDash\"!==t&&\"tickBorderDash\"!==t&&\"dash\"!==t}),t.describe(\"scales\",{_fallback:\"scale\"}),t.describe(\"scale.ticks\",{_scriptable:t=>\"backdropPadding\"!==t&&\"callback\"!==t,_indexable:t=>\"backdropPadding\"!==t})}]);function be(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof document}function xe(t){let e=t.parentNode;return e=e&&\"[object ShadowRoot]\"===e.toString()?e.host:e}function ve(t,e,i){let s;return\"string\"==typeof t?(s=parseInt(t,10),-1!==t.indexOf(\"%\")&&(s=s/100*e.parentNode[i])):s=t,s}const _e=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function ye(t,e){return _e(t).getPropertyValue(e)}const Me=[\"top\",\"right\",\"bottom\",\"left\"];function we(e,i,s){var a={};s=s?\"-\"+s:\"\";for(let t=0;t<4;t++){var r=Me[t];a[r]=parseFloat(e[i+\"-\"+r+s])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}function ke(t,e){if(\"native\"in t)return t;var{canvas:i,currentDevicePixelRatio:s}=e,a=_e(i),r=\"border-box\"===a.boxSizing,n=we(a,\"padding\"),a=we(a,\"border\",\"width\"),{x:t,y:o,box:l}=function(t,e){var i=t.touches,i=i&&i.length?i[0]:t,{offsetX:s,offsetY:a}=i;let r,n,o=!1;if(t=t.target,!(0<s||0<a)||t&&t.shadowRoot){const t=e.getBoundingClientRect();r=i.clientX-t.left,n=i.clientY-t.top,o=!0}else r=s,n=a;return{x:r,y:n,box:o}}(t,i),h=n.left+(l&&a.left),l=n.top+(l&&a.top);let{width:c,height:d}=e;return r&&(c-=n.width+a.width,d-=n.height+a.height),{x:Math.round((t-h)/c*i.width/s),y:Math.round((o-l)/d*i.height/s)}}const Se=t=>Math.round(10*t)/10;function Pe(t,e,i,s){var a=_e(t),r=we(a,\"margin\"),n=ve(a.maxWidth,t,\"clientWidth\")||Q,o=ve(a.maxHeight,t,\"clientHeight\")||Q,t=function(t,e,i){let s,a;if(void 0===e||void 0===i){var r=xe(t);if(r){const t=r.getBoundingClientRect(),n=_e(r),o=we(n,\"border\",\"width\"),l=we(n,\"padding\");e=t.width-l.width-o.width,i=t.height-l.height-o.height,s=ve(n.maxWidth,r,\"clientWidth\"),a=ve(n.maxHeight,r,\"clientHeight\")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||Q,maxHeight:a||Q}}(t,e,i);let{width:l,height:h}=t;if(\"content-box\"===a.boxSizing){const t=we(a,\"border\",\"width\"),e=we(a,\"padding\");l-=e.width+t.width,h-=e.height+t.height}return l=Math.max(0,l-r.width),h=Math.max(0,s?l/s:h-r.height),l=Se(Math.min(l,n,t.maxWidth)),h=Se(Math.min(h,o,t.maxHeight)),l&&!h&&(h=Se(l/2)),(void 0!==e||void 0!==i)&&s&&t.height&&h>t.height&&(h=t.height,l=Se(Math.floor(h*s))),{width:l,height:h}}function De(t,e,i){var e=e||1,s=Math.floor(t.height*e),a=Math.floor(t.width*e),r=(t.height=Math.floor(t.height),t.width=Math.floor(t.width),t.canvas);return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=t.height+\"px\",r.style.width=t.width+\"px\"),(t.currentDevicePixelRatio!==e||r.height!==s||r.width!==a)&&(t.currentDevicePixelRatio=e,r.height=s,r.width=a,t.ctx.setTransform(e,0,0,e,0,0),!0)}var Ce=function(){let t=!1;try{var e={get passive(){return!(t=!0)}};window.addEventListener(\"test\",null,e),window.removeEventListener(\"test\",null,e)}catch(t){}return t}();function Oe(t,e){t=ye(t,e),e=t&&t.match(/^(\\d+)(\\.\\d+)?px$/);return e?+e[1]:void 0}function Ae(t){return!t||P(t.size)||P(t.family)?null:(t.style?t.style+\" \":\"\")+(t.weight?t.weight+\" \":\"\")+t.size+\"px \"+t.family}function Te(t,e,i,s,a){let r=e[a];return r||(r=e[a]=t.measureText(a).width,i.push(a)),s=r>s?r:s}function Le(t,e,i,s){let a=(s=s||{}).data=s.data||{},r=s.garbageCollect=s.garbageCollect||[],n=(s.font!==e&&(a=s.data={},r=s.garbageCollect=[],s.font=e),t.save(),t.font=e,0);var o=i.length;let l,h,c,d,u;for(l=0;l<o;l++)if(null!=(d=i[l])&&!0!==O(d))n=Te(t,a,r,n,d);else if(O(d))for(h=0,c=d.length;h<c;h++)null==(u=d[h])||O(u)||(n=Te(t,a,r,n,u));t.restore();var g=r.length/2;if(g>i.length){for(l=0;l<g;l++)delete a[r[l]];r.splice(0,g)}return n}function Ee(t,e,i){t=t.currentDevicePixelRatio,i=0!==i?Math.max(i/2,.5):0;return Math.round((e-i)*t)/t+i}function Re(t,e){(e=e||t.getContext(\"2d\")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Ie(t,e,i,s){ze(t,e,i,s,null)}function ze(t,e,i,s,a){let r,n,o,l,h,c,d,u;var g=e.pointStyle,f=e.rotation,p=e.radius;let m=(f||0)*tt;if(g&&\"object\"==typeof g&&(\"[object HTMLImageElement]\"===(r=g.toString())||\"[object HTMLCanvasElement]\"===r))t.save(),t.translate(i,s),t.rotate(m),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();else if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:a?t.ellipse(i,s,a/2,p,0,0,v):t.arc(i,s,p,0,v),t.closePath();break;case\"triangle\":c=a?a/2:p,t.moveTo(i+Math.sin(m)*c,s-Math.cos(m)*p),m+=it,t.lineTo(i+Math.sin(m)*c,s-Math.cos(m)*p),m+=it,t.lineTo(i+Math.sin(m)*c,s-Math.cos(m)*p),t.closePath();break;case\"rectRounded\":h=.516*p,l=p-h,n=Math.cos(m+et)*l,d=Math.cos(m+et)*(a?a/2-h:l),o=Math.sin(m+et)*l,u=Math.sin(m+et)*(a?a/2-h:l),t.arc(i-d,s-o,h,m-S,m-D),t.arc(i+u,s-n,h,m-D,m),t.arc(i+d,s+o,h,m,m+D),t.arc(i-u,s+n,h,m+D,m+S),t.closePath();break;case\"rect\":if(!f){l=Math.SQRT1_2*p,c=a?a/2:l,t.rect(i-c,s-l,2*c,2*l);break}m+=et;case\"rectRot\":d=Math.cos(m)*(a?a/2:p),n=Math.cos(m)*p,o=Math.sin(m)*p,u=Math.sin(m)*(a?a/2:p),t.moveTo(i-d,s-o),t.lineTo(i+u,s-n),t.lineTo(i+d,s+o),t.lineTo(i-u,s+n),t.closePath();break;case\"crossRot\":m+=et;case\"cross\":d=Math.cos(m)*(a?a/2:p),n=Math.cos(m)*p,o=Math.sin(m)*p,u=Math.sin(m)*(a?a/2:p),t.moveTo(i-d,s-o),t.lineTo(i+d,s+o),t.moveTo(i+u,s-n),t.lineTo(i-u,s+n);break;case\"star\":d=Math.cos(m)*(a?a/2:p),n=Math.cos(m)*p,o=Math.sin(m)*p,u=Math.sin(m)*(a?a/2:p),t.moveTo(i-d,s-o),t.lineTo(i+d,s+o),t.moveTo(i+u,s-n),t.lineTo(i-u,s+n),m+=et,d=Math.cos(m)*(a?a/2:p),n=Math.cos(m)*p,o=Math.sin(m)*p,u=Math.sin(m)*(a?a/2:p),t.moveTo(i-d,s-o),t.lineTo(i+d,s+o),t.moveTo(i+u,s-n),t.lineTo(i-u,s+n);break;case\"line\":n=a?a/2:Math.cos(m)*p,o=Math.sin(m)*p,t.moveTo(i-n,s-o),t.lineTo(i+n,s+o);break;case\"dash\":t.moveTo(i,s),t.lineTo(i+Math.cos(m)*(a?a/2:p),s+Math.sin(m)*p);break;case!1:t.closePath()}t.fill(),0<e.borderWidth&&t.stroke()}}function Fe(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Ve(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Be(t){t.restore()}function Ne(t,e,i,s,a){if(!e)return t.lineTo(i.x,i.y);if(\"middle\"===a){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else\"after\"===a!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function We(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function He(t,e,i,s,a,r={}){var n,o,l,h=O(e)?e:[e],c=0<r.strokeWidth&&\"\"!==r.strokeColor;let d,u;for(t.save(),t.font=a.string,e=t,(l=r).translation&&e.translate(l.translation[0],l.translation[1]),P(l.rotation)||e.rotate(l.rotation),l.color&&(e.fillStyle=l.color),l.textAlign&&(e.textAlign=l.textAlign),l.textBaseline&&(e.textBaseline=l.textBaseline),d=0;d<h.length;++d){u=h[d],r.backdrop&&(f=t,g=r.backdrop,p=void 0,p=f.fillStyle,f.fillStyle=g.color,f.fillRect(g.left,g.top,g.width,g.height),f.fillStyle=p),c&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),P(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(u,i,s,r.maxWidth)),t.fillText(u,i,s,r.maxWidth);{g=void 0;f=void 0;p=void 0;m=void 0;b=void 0;n=void 0;o=void 0;var g=t;var f=i;var p=s;var m=u;var b=r;(b.strikethrough||b.underline)&&(m=g.measureText(m),n=f-m.actualBoundingBoxLeft,f=f+m.actualBoundingBoxRight,o=p-m.actualBoundingBoxAscent,p=p+m.actualBoundingBoxDescent,m=b.strikethrough?(o+p)/2:p,g.strokeStyle=g.fillStyle,g.beginPath(),g.lineWidth=b.decorationWidth||2,g.moveTo(n,m),g.lineTo(f,m),g.stroke())}s+=a.lineHeight}t.restore()}function je(t,e){var{x:e,y:i,w:s,h:a,radius:r}=e;t.arc(e+r.topLeft,i+r.topLeft,r.topLeft,-D,S,!0),t.lineTo(e,i+a-r.bottomLeft),t.arc(e+r.bottomLeft,i+a-r.bottomLeft,r.bottomLeft,S,D,!0),t.lineTo(e+s-r.bottomRight,i+a),t.arc(e+s-r.bottomRight,i+a-r.bottomRight,r.bottomRight,D,0,!0),t.lineTo(e+s,i+r.topRight),t.arc(e+s-r.topRight,i+r.topRight,r.topRight,0,-D,!0),t.lineTo(e+r.topLeft,i)}function Ye(o,l=[\"\"],e=o,i,a=()=>o[0]){g(i)||(i=ti(\"_fallback\",o));var t={[Symbol.toStringTag]:\"Object\",_cacheable:!0,_scopes:o,_rootScopes:e,_fallback:i,_getTarget:a,override:t=>Ye([t,...o],l,e,i)};return new Proxy(t,{deleteProperty:(t,e)=>(delete t[e],delete t._keys,delete o[0][e],!0),get:(r,n)=>Ke(r,n,()=>{var t,e=n,i=o,s=r;for(const a of l)if(t=ti(Xe(a,e),i),g(t))return qe(e,t)?Je(i,s,e,t):t}),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(o[0]),has:(t,e)=>ei(t).includes(e),ownKeys:t=>ei(t),set(t,e,i){var s=t._storage||(t._storage=a());return t[e]=s[e]=i,delete t._keys,!0}})}function $e(s,e,i,a){var t={_cacheable:!1,_proxy:s,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ue(s,a),setContext:t=>$e(s,t,i,a),override:t=>$e(s.override(t),e,i,a)};return new Proxy(t,{deleteProperty:(t,e)=>(delete t[e],delete s[e],!0),get:(l,h,c)=>Ke(l,h,()=>{{var o=l,e=h,i=c,{_proxy:s,_context:a,_subProxy:r,_descriptors:n}=o;let t=s[e];return O(t=m(t)&&n.isScriptable(e)?function(t,e,i){var{_proxy:s,_context:a,_subProxy:r,_stack:n}=o;if(n.has(t))throw new Error(\"Recursion detected: \"+Array.from(n).join(\"->\")+\"->\"+t);return n.add(t),e=e(a,r||i),n.delete(t),e=qe(t,e)?Je(s._scopes,s,t,e):e}(e,t,i):t)&&t.length&&(t=function(t,e,i,s){var{_proxy:a,_context:r,_subProxy:n,_descriptors:o}=i;if(g(r.index)&&s(t))e=e[r.index%e.length];else if(A(e[0])){const i=e,s=a._scopes.filter(t=>t!==i);e=[];for(const A of i){const i=Je(s,a,t,A);e.push($e(i,r,n&&n[t],o))}}return e}(e,t,o,n.isIndexable)),t=qe(e,t)?$e(t,a,r&&r[e],n):t}}),getOwnPropertyDescriptor:(t,e)=>t._descriptors.allKeys?Reflect.has(s,e)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(s,e),getPrototypeOf:()=>Reflect.getPrototypeOf(s),has:(t,e)=>Reflect.has(s,e),ownKeys:()=>Reflect.ownKeys(s),set:(t,e,i)=>(s[e]=i,delete t[e],!0)})}function Ue(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:a=e.allKeys}=t;return{allKeys:a,scriptable:i,indexable:s,isScriptable:m(i)?i:()=>i,isIndexable:m(s)?s:()=>s}}const Xe=(t,e)=>t?t+K(e):e,qe=(t,e)=>A(e)&&\"adapters\"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ke(t,e,i){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:(i=i(),t[e]=i)}function Ge(t,e,i){return m(t)?t(e,i):t}function Ze(t,e,i,s,a){for(const o of e){r=i,n=o;const e=!0===r?n:\"string\"==typeof r?f(n,r):void 0;if(e){t.add(e);n=Ge(e._fallback,i,a);if(g(n)&&n!==i&&n!==s)return n}else if(!1===e&&g(s)&&i!==s)return null}var r,n;return!1}function Je(t,s,a,r){var e=s._rootScopes,i=Ge(s._fallback,a,r),t=[...t,...e],n=new Set,o=(n.add(r),Qe(n,t,a,i||a,r));return null!==o&&(!g(i)||i===a||null!==(o=Qe(n,t,i,o,r)))&&Ye(Array.from(n),[\"\"],e,i,()=>{return t=a,e=r,i=s._getTarget(),t in i||(i[t]={}),O(i=i[t])&&A(e)?e:i||{};var t,e,i})}function Qe(t,e,i,s,a){for(;i;)i=Ze(t,e,i,s,a);return i}function ti(t,e){for(const i of e)if(i){const e=i[t];if(g(e))return e}}function ei(t){let e=t._keys;return e=e||(t._keys=function(t){var e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith(\"_\")))e.add(t);return Array.from(e)}(t._scopes))}function ii(t,e,i,s){var a=t[\"iScale\"],{key:r=\"r\"}=this._parsing,n=new Array(s);let o,l,h,c;for(o=0,l=s;o<l;++o)c=e[h=o+i],n[o]={r:a.parse(f(c,r),h)};return n}const si=Number.EPSILON||1e-14,ai=(t,e)=>e<t.length&&!t[e].skip&&t[e],ri=t=>\"x\"===t?\"y\":\"x\";function ni(t,e,i,s){var t=t.skip?e:t,a=e,e=i.skip?e:i,i=ut(a,t),r=ut(e,a),n=i/(i+r),i=r/(i+r),r=s*(isNaN(n)?0:n),n=s*(isNaN(i)?0:i);return{previous:{x:a.x-r*(e.x-t.x),y:a.y-r*(e.y-t.y)},next:{x:a.x+n*(e.x-t.x),y:a.y+n*(e.y-t.y)}}}function oi(t,r=\"x\"){var e=ri(r),i=t.length,o=Array(i).fill(0),l=Array(i);let s,a,n,h=ai(t,0);for(s=0;s<i;++s)if(a=n,n=h,h=ai(t,s+1),n){if(h){const t=h[r]-n[r];o[s]=0!=t?(h[e]-n[e])/t:0}l[s]=a?h?_(o[s-1])!==_(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}{var c=t,d=o,u=l,g=c.length;let e,i,s,a,r,n=ai(c,0);for(let t=0;t<g-1;++t)r=n,n=ai(c,t+1),r&&n&&(st(d[t],0,si)?u[t]=u[t+1]=0:(e=u[t]/d[t],i=u[t+1]/d[t],(a=Math.pow(e,2)+Math.pow(i,2))<=9||(s=3/Math.sqrt(a),u[t]=e*s*d[t],u[t+1]=i*s*d[t])))}{var[f,p,m=\"x\"]=[t,l,r];const b=ri(m),x=f.length;let e,i,s,a=ai(f,0);for(let t=0;t<x;++t)if(i=s,s=a,a=ai(f,t+1),s){const x=s[m],v=s[b];i&&(e=(x-i[m])/3,s[\"cp1\"+m]=x-e,s[\"cp1\"+b]=v-e*p[t]),a&&(e=(a[m]-x)/3,s[\"cp2\"+m]=x+e,s[\"cp2\"+b]=v+e*p[t])}}}function li(t,e,i){return Math.max(Math.min(t,i),e)}function hi(n,e,o,i,t){let s,a,r,l;if(e.spanGaps&&(n=n.filter(t=>!t.skip)),\"monotone\"===e.cubicInterpolationMode)oi(n,t);else{let t=i?n[n.length-1]:n[0];for(s=0,a=n.length;s<a;++s)r=n[s],l=ni(t,r,n[Math.min(s+1,a-(i?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,t=r}if(e.capBezierPoints){var h=n,c=o;let t,e,i,s,a,r=Fe(h[0],c);for(t=0,e=h.length;t<e;++t)a=s,s=r,r=t<e-1&&Fe(h[t+1],c),s&&(i=h[t],a&&(i.cp1x=li(i.cp1x,c.left,c.right),i.cp1y=li(i.cp1y,c.top,c.bottom)),r)&&(i.cp2x=li(i.cp2x,c.left,c.right),i.cp2y=li(i.cp2y,c.top,c.bottom))}}const ci=t=>0===t||1===t,di=(t,e,i)=>-Math.pow(2,10*--t)*Math.sin((t-e)*v/i),ui=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*v/i)+1,gi={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-(--t*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>--t*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*D),easeOutSine:t=>Math.sin(t*D),easeInOutSine:t=>-.5*(Math.cos(S*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ci(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>1<=t?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1- --t*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ci(t)?t:di(t,.075,.3),easeOutElastic:t=>ci(t)?t:ui(t,.075,.3),easeInOutElastic(t){return ci(t)?t:t<.5?.5*di(2*t,.1125,.45):.5+.5*ui(2*t-1,.1125,.45)},easeInBack(t){return t*t*(2.70158*t-1.70158)},easeOutBack(t){return--t*t*(2.70158*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-gi.easeOutBounce(1-t),easeOutBounce(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*gi.easeInBounce(2*t):.5*gi.easeOutBounce(2*t-1)+.5};function fi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function pi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:(\"middle\"===s?i<.5?t:e:\"after\"===s?i<1?t:e:0<i?e:t).y}}function mi(t,e,i,s){var a={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},t=fi(t,a,i),a=fi(a,r,i),r=fi(r,e,i),e=fi(t,a,i),t=fi(a,r,i);return fi(e,t,i)}const bi=/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/,xi=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function vi(t,e){var i=(\"\"+t).match(bi);if(!i||\"normal\"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case\"px\":return t;case\"%\":t/=100}return e*t}function _i(e,i){var t={},s=A(i),a=s?Object.keys(i):i,r=A(e)?s?t=>T(e[t],e[i[t]]):t=>e[t]:()=>e;for(const e of a)t[e]=+r(e)||0;return t}function yi(t){return _i(t,{top:\"y\",right:\"x\",bottom:\"y\",left:\"x\"})}function Mi(t){return _i(t,[\"topLeft\",\"topRight\",\"bottomLeft\",\"bottomRight\"])}function I(t){t=yi(t);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function z(t,e){e=e||R.font;let i=T((t=t||{}).size,e.size),s=(\"string\"==typeof i&&(i=parseInt(i,10)),T(t.style,e.style));s&&!(\"\"+s).match(xi)&&(console.warn('Invalid font style specified: \"'+s+'\"'),s=void 0);t={family:T(t.family,e.family),lineHeight:vi(T(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:T(t.weight,e.weight),string:\"\"};return t.string=Ae(t),t}function wi(t,e,i,s){let a,r,n,o=!0;for(a=0,r=t.length;a<r;++a)if(void 0!==(n=t[a])&&(void 0!==e&&\"function\"==typeof n&&(n=n(e),o=!1),void 0!==i&&O(n)&&(n=n[i%n.length],o=!1),void 0!==n))return s&&!o&&(s.cacheable=!1),n}function ki(t,e,i){var{min:t,max:s}=t,e=B(e,(s-t)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(t,-Math.abs(e)),max:a(s,e)}}function Si(t,e){return Object.assign(Object.create(t),e)}function Pi(t,e,i){return t?(s=e,a=i,{x:t=>s+s+a-t,setWidth(t){a=t},textAlign:t=>\"center\"===t?t:\"right\"===t?\"left\":\"right\",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t};var s,a}function Di(t,e){var i,s;\"ltr\"!==e&&\"rtl\"!==e||(s=[(i=t.canvas.style).getPropertyValue(\"direction\"),i.getPropertyPriority(\"direction\")],i.setProperty(\"direction\",e,\"important\"),t.prevTextDirection=s)}function Ci(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty(\"direction\",e[0],e[1]))}function Oi(t){return\"angle\"===t?{between:ft,compare:gt,normalize:y}:{between:c,compare:(t,e)=>t-e,normalize:t=>t}}function Ai({start:t,end:e,count:i,loop:s,style:a}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:a}}function Ti(t,i,g){if(!g)return[t];const{property:s,start:a,end:r}=g,n=i.length,{compare:o,between:l,normalize:h}=Oi(s),{start:c,end:d,loop:u,style:f}=function(t,e){var{property:i,start:s,end:a}=g,{between:r,normalize:n}=Oi(i),o=e.length;let l,h,{start:c,end:d,loop:u}=t;if(u){for(c+=o,d+=o,l=0,h=o;l<h&&r(n(e[c%o][i]),s,a);++l)c--,d--;c%=o,d%=o}return d<c&&(d+=o),{start:c,end:d,loop:u,style:t.style}}(t,i),p=[];let m,b,x,v,_=null;for(let t=c,e=c;t<=d;++t)(b=i[t%n]).skip||(m=h(b[s]))!==x&&(v=l(m,a,r),null===(_=null===_&&(v||l(a,x,m)&&0!==o(a,x))?0===o(m,a)?t:e:_)||v&&0!==o(r,m)&&!l(r,x,m)||(p.push(Ai({start:_,end:t,loop:u,count:n,style:f})),_=null),e=t,x=m);return null!==_&&p.push(Ai({start:_,end:d,loop:u,count:n,style:f})),p}function Li(e,i){var s=[],a=e.segments;for(let t=0;t<a.length;t++){var r=Ti(a[t],e.points,i);r.length&&s.push(...r)}return s}function Ei(t,e){var i,s,a,r=t.points,n=t.options.spanGaps,o=r.length;return o?({start:s,end:a}=function(t,e,i){let s=0,a=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(a+=s);a>s&&t[a%e].skip;)a--;return a%=e,{start:s,end:a}}(r,o,i=!!t._loop),Ri(t,!0===n?[{start:s,end:a,loop:i}]:function(t,e,i,s){var a=t.length,r=[];let n,o=e,l=t[e];for(n=e+1;n<=i;++n){const i=t[n%a];i.skip||i.stop?l.skip||(s=!1,r.push({start:e%a,end:(n-1)%a,loop:s}),e=o=i.stop?n:null):(o=n,l.skip&&(e=n)),l=i}return null!==o&&r.push({start:e%a,end:o%a,loop:s}),r}(r,s,a<s?a+o:a,!!t._fullLoop&&0===s&&a===o-1),r,e)):[]}function Ri(t,e,s,a){if(a&&a.setContext&&s){var o,l,h=t,t=e,c=s,d=a;const g=h._chart.getContext(),f=Ii(h.options),{_datasetIndex:p,options:{spanGaps:m}}=h,b=c.length,x=[];let r=f,n=t[0].start,i=n;function u(t,e,i,s){var a=m?-1:1;if(t!==e){for(t+=b;c[t%b].skip;)t-=a;for(;c[e%b].skip;)e+=a;t%b!=e%b&&(x.push({start:t%b,end:e%b,loop:i,style:s}),r=s,n=e%b)}}for(const h of t){n=m?n:h.start;let t,e=c[n%b];for(i=n+1;i<=h.end;i++){const m=c[i%b];t=Ii(d.setContext(Si(g,{type:\"segment\",p0:e,p1:m,p0DataIndex:(i-1)%b,p1DataIndex:i%b,datasetIndex:p}))),o=t,(l=r)&&JSON.stringify(o)!==JSON.stringify(l)&&u(n,i-1,h.loop,r),e=m,r=t}n<i-1&&u(n,i-1,h.loop,r)}return x}return e}function Ii(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}var zi=Object.freeze({__proto__:null,easingEffects:gi,isPatternOrGradient:ae,color:re,getHoverColor:ne,noop:t,uid:F,isNullOrUndef:P,isArray:O,isObject:A,isFinite:p,finiteOrDefault:u,valueOrDefault:T,toPercentage:V,toDimension:B,callback:d,each:k,_elementsEqual:N,clone:W,_merger:j,merge:Y,mergeIf:$,_mergerIf:U,_deprecated:function(t,e,i,s){void 0!==e&&console.warn(t+': \"'+i+'\" is deprecated. Please use \"'+s+'\" instead')},_splitKey:q,resolveObjectKey:f,_capitalize:K,defined:g,isFunction:m,setsEqual:G,_isClickEvent:Z,toFontString:Ae,_measureText:Te,_longestText:Le,_alignPixel:Ee,clearCanvas:Re,drawPoint:Ie,drawPointLegend:ze,_isPointInArea:Fe,clipArea:Ve,unclipArea:Be,_steppedLineTo:Ne,_bezierCurveTo:We,renderText:He,addRoundedRectPath:je,_lookup:mt,_lookupByKey:b,_rlookupByKey:bt,_filterBetween:xt,listenArrayEvents:_t,unlistenArrayEvents:yt,_arrayUnique:Mt,_createResolver:Ye,_attachContext:$e,_descriptors:Ue,_parseObjectDataRadialScale:ii,splineCurve:ni,splineCurveMonotone:oi,_updateBezierControlPoints:hi,_isDomSupported:be,_getParentNode:xe,getStyle:ye,getRelativePosition:ke,getMaximumSize:Pe,retinaScale:De,supportsEventListenerOptions:Ce,readUsedSize:Oe,fontString:function(t,e,i){return e+\" \"+t+\"px \"+i},requestAnimFrame:wt,throttled:kt,debounce:St,_toLeftRightCenter:Pt,_alignStartEnd:E,_textX:Dt,_getStartAndCountOfVisiblePoints:Ct,_scaleRangesChanged:Ot,_pointInLine:fi,_steppedInterpolation:pi,_bezierInterpolation:mi,formatNumber:ce,toLineHeight:vi,_readValueToProps:_i,toTRBL:yi,toTRBLCorners:Mi,toPadding:I,toFont:z,resolve:wi,_addGrace:ki,createContext:Si,PI:S,TAU:v,PITAU:J,INFINITY:Q,RAD_PER_DEG:tt,HALF_PI:D,QUARTER_PI:et,TWO_THIRDS_PI:it,log10:o,sign:_,almostEquals:st,niceNum:at,_factorize:rt,isNumber:nt,almostWhole:ot,_setMinAndMaxByKey:lt,toRadians:L,toDegrees:ht,_decimalPlaces:ct,getAngleFromPoint:dt,distanceBetweenPoints:ut,_angleDiff:gt,_normalizeAngle:y,_angleBetween:ft,_limitValue:C,_int16Range:pt,_isBetween:c,getRtlAdapter:Pi,overrideTextDirection:Di,restoreTextDirection:Ci,_boundSegment:Ti,_boundSegments:Li,_computeSegments:Ei});function Fi(t,i,s,a,r){var n=t.getSortedVisibleDatasetMetas(),o=s[i];for(let t=0,e=n.length;t<e;++t){const{index:s,data:l}=n[t],{lo:h,hi:c}=function(t,e,i,s){const{controller:a,data:r,_sorted:n}=t,o=a._cachedMeta.iScale;if(o&&e===o.axis&&\"r\"!==e&&n&&r.length){const t=o._reversePixels?bt:b;if(!s)return t(r,e,i);if(a._sharedOptions){const s=r[0],a=\"function\"==typeof s.getRange&&s.getRange(e);if(a){const s=t(r,e,i-a),n=t(r,e,i+a);return{lo:s.lo,hi:n.hi}}}}return{lo:0,hi:r.length-1}}(n[t],i,o,r);for(let t=h;t<=c;++t){const i=l[t];i.skip||a(i,s,t)}}}function Vi(s,a,t,r,n){const o=[];return(n||s.isPointInArea(a))&&Fi(s,t,a,function(t,e,i){(n||Fe(t,s.chartArea,0))&&t.inRange(a.x,a.y,r)&&o.push({element:t,datasetIndex:e,index:i})},!0),o}function Bi(t,e,i,s,a,o){{if(o||t.isPointInArea(e)){if(\"r\"!==i||s){var l=t,h=e,c=i,d=s,u=a,g=o;let r=[];const m=function(t){const s=-1!==t.indexOf(\"x\"),a=-1!==t.indexOf(\"y\");return function(t,e){var i=s?Math.abs(t.x-e.x):0,t=a?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(t,2))}}(c);let n=Number.POSITIVE_INFINITY;return Fi(l,c,h,function(t,e,i){var s,a=t.inRange(h.x,h.y,u);(!d||a)&&(s=t.getCenterPoint(u),g||l.isPointInArea(s)||a)&&((a=m(h,s))<n?(r=[{element:t,datasetIndex:e,index:i}],n=a):a===n&&r.push({element:t,datasetIndex:e,index:i}))}),r}{var f=e,p=a;let n=[];return Fi(t,i,f,function(t,e,i){var{startAngle:s,endAngle:a}=t.getProps([\"startAngle\",\"endAngle\"],p),r=dt(t,{x:f.x,y:f.y})[\"angle\"];ft(r,s,a)&&n.push({element:t,datasetIndex:e,index:i})}),n}}return[]}}function Ni(t,s,a,e,r){const n=[],o=\"x\"===a?\"inXRange\":\"inYRange\";let l=!1;return Fi(t,a,s,(t,e,i)=>{t[o](s[a],r)&&(n.push({element:t,datasetIndex:e,index:i}),l=l||t.inRange(s.x,s.y,r))}),e&&!l?[]:n}var Wi={evaluateInteractionItems:Fi,modes:{index(t,e,i,s){const a=ke(e,t),r=i.axis||\"x\",n=i.includeInvisible||!1,o=i.intersect?Vi(t,a,r,s,n):Bi(t,a,r,!1,s,n),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{var e=o[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){var e=ke(e,t),a=i.axis||\"xy\",r=i.includeInvisible||!1;let n=i.intersect?Vi(t,e,a,s,r):Bi(t,e,a,!1,s,r);if(0<n.length){const e=n[0].datasetIndex,i=t.getDatasetMeta(e).data;n=[];for(let t=0;t<i.length;++t)n.push({element:i[t],datasetIndex:e,index:t})}return n},point:(t,e,i,s)=>Vi(t,ke(e,t),i.axis||\"xy\",s,i.includeInvisible||!1),nearest(t,e,i,s){var e=ke(e,t),a=i.axis||\"xy\",r=i.includeInvisible||!1;return Bi(t,e,a,i.intersect,s,r)},x:(t,e,i,s)=>Ni(t,ke(e,t),\"x\",i.intersect,s),y:(t,e,i,s)=>Ni(t,ke(e,t),\"y\",i.intersect,s)}};const Hi=[\"left\",\"top\",\"right\",\"bottom\"];function ji(t,e){return t.filter(t=>t.pos===e)}function Yi(t,e){return t.filter(t=>-1===Hi.indexOf(t.pos)&&t.box.axis===e)}function $i(t,s){return t.sort((t,e)=>{var i=s?e:t,t=s?t:e;return i.weight===t.weight?i.index-t.index:i.weight-t.weight})}function Ui(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Xi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function qi(t,e,i,s){var a=[];let r,n,o,l,h,c;for(r=0,n=t.length,h=0;r<n;++r){o=t[r],(l=o.box).update(o.width||e.w,o.height||e.h,function(t,e){const i=e.maxPadding;{const s={left:0,top:0,right:0,bottom:0};return(t=t?[\"left\",\"right\"]:[\"top\",\"bottom\"]).forEach(t=>{s[t]=Math.max(e[t],i[t])}),s}}(o.horizontal,e));const{same:n,other:d}=function(t,e,i,s){var{pos:a,box:r}=i,n=t.maxPadding;if(!A(a)){i.size&&(t[a]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[a]+=i.size}return r.getPadding&&Xi(n,r.getPadding()),s=Math.max(0,e.outerWidth-Ui(n,t,\"left\",\"right\")),a=Math.max(0,e.outerHeight-Ui(n,t,\"top\",\"bottom\")),r=s!==t.w,e=a!==t.h,t.w=s,t.h=a,i.horizontal?{same:r,other:e}:{same:e,other:r}}(e,i,o,s);h|=n&&a.length,c=c||d,l.fullSize||a.push(o)}return h&&qi(a,e,i,s)||c}function Ki(t,e,i,s,a){t.top=i,t.left=e,t.right=e+s,t.bottom=i+a,t.width=s,t.height=a}function Gi(t,e,i,s){var a=i.padding;let{x:r,y:n}=e;for(const o of t){const t=o.box,l=s[o.stack]||{count:1,placed:0,weight:1},h=o.stackWeight/l.weight||1;if(o.horizontal){const s=e.w*h,r=l.size||t.height;g(l.start)&&(n=l.start),t.fullSize?Ki(t,a.left,n,i.outerWidth-a.right-a.left,r):Ki(t,e.left+l.placed,n,s,r),l.start=n,l.placed+=s,n=t.bottom}else{const s=e.h*h,n=l.size||t.width;g(l.start)&&(r=l.start),t.fullSize?Ki(t,r,a.top,n,i.outerHeight-a.bottom-a.top):Ki(t,r,e.top+l.placed,n,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=n}var a={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||\"top\",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(e,t,i,s){if(e){var a,r,n=I(e.options.layout.padding),o=Math.max(t-n.width,0),l=Math.max(i-n.height,0),h=(c=function(t){var e=[];let i,s,a,r,n,o;for(i=0,s=(t||[]).length;i<s;++i)({position:r,options:{stack:n,stackWeight:o=1}}=a=t[i]),e.push({index:i,box:a,pos:r,horizontal:a.isHorizontal(),weight:a.weight,stack:n&&r+n,stackWeight:o});return e}(e.boxes),h=$i(c.filter(t=>t.box.fullSize),!0),d=$i(ji(c,\"left\"),!0),u=$i(ji(c,\"right\")),f=$i(ji(c,\"top\"),!0),a=$i(ji(c,\"bottom\")),r=Yi(c,\"x\"),g=Yi(c,\"y\"),{fullSize:h,leftAndTop:d.concat(f),rightAndBottom:u.concat(g).concat(a).concat(r),chartArea:ji(c,\"chartArea\"),vertical:d.concat(u).concat(g),horizontal:f.concat(a).concat(r)}),c=h.vertical,d=h.horizontal,u=(k(e.boxes,t=>{\"function\"==typeof t.beforeLayout&&t.beforeLayout()}),c.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1),g=Object.freeze({outerWidth:t,outerHeight:i,padding:n,availableWidth:o,availableHeight:l,vBoxMaxWidth:o/2/u,hBoxMaxHeight:l/2}),f=Object.assign({},n);Xi(f,I(s));const b=Object.assign({maxPadding:f,w:o,h:l,x:n.left,y:n.top},n),x=function(t,e){var i=function(t){var e,i={};for(const s of t){const{stack:t,pos:a,stackWeight:r}=s;t&&Hi.includes(a)&&((e=i[t]||(i[t]={count:0,placed:0,weight:0,size:0})).count++,e.weight+=r)}return i}(t),{vBoxMaxWidth:s,hBoxMaxHeight:a}=e;let r,n,o;for(r=0,n=t.length;r<n;++r){const n=(o=t[r]).box[\"fullSize\"],l=i[o.stack],h=l&&o.stackWeight/l.weight;o.horizontal?(o.width=h?h*s:n&&e.availableWidth,o.height=a):(o.width=s,o.height=h?h*a:n&&e.availableHeight)}return i}(c.concat(d),g);qi(h.fullSize,b,g,x),qi(c,b,g,x),qi(d,b,g,x)&&qi(c,b,g,x);{var p=b;const v=p.maxPadding;function m(t){var e=Math.max(v[t]-p[t],0);return p[t]+=e,e}p.y+=m(\"top\"),p.x+=m(\"left\"),m(\"right\"),m(\"bottom\")}Gi(h.leftAndTop,b,g,x),b.x+=b.w,b.y+=b.h,Gi(h.rightAndBottom,b,g,x),e.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},k(h.chartArea,t=>{t=t.box;Object.assign(t,e.chartArea),t.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}}};class Zi{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Ji extends Zi{acquireContext(t){return t&&t.getContext&&t.getContext(\"2d\")||null}updateConfig(t){t.options.animation=!1}}const Qi={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"},ts=t=>null===t||\"\"===t,es=!!Ce&&{passive:!0};function is(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ss(t,e,i){const s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||is(i.addedNodes,s),e=e&&!is(i.removedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}function as(t,e,i){const s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||is(i.removedNodes,s),e=e&&!is(i.addedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}const rs=new Map;let ns=0;function os(){const i=window.devicePixelRatio;i!==ns&&(ns=i,rs.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function ls(t,e,s){const i=t.canvas,a=i&&xe(i);if(a){const n=kt((t,e)=>{var i=a.clientWidth;s(t,e),i<a.clientWidth&&s()},window),o=new ResizeObserver(t=>{var t=t[0],e=t.contentRect.width,t=t.contentRect.height;0===e&&0===t||n(e,t)});return o.observe(a),t=t,r=n,rs.size||window.addEventListener(\"resize\",os),rs.set(t,r),o;var r}}function hs(t,e,i){i&&i.disconnect(),\"resize\"===e&&(i=t,rs.delete(i),rs.size||window.removeEventListener(\"resize\",os))}function cs(e,t,i){var s=e.canvas,a=kt(t=>{null!==e.ctx&&i(function(t,e){var i=Qi[t.type]||t.type,{x:s,y:a}=ke(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==a?a:null}}(t,e))},e);return s.addEventListener(t,a,es),a}class ds extends Zi{acquireContext(t,e){var i=t&&t.getContext&&t.getContext(\"2d\");{if(i&&i.canvas===t){var s=e,e=t.style,a=t.getAttribute(\"height\"),r=t.getAttribute(\"width\");if(t.$chartjs={initial:{height:a,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||\"block\",e.boxSizing=e.boxSizing||\"border-box\",ts(r)){const s=Oe(t,\"width\");void 0!==s&&(t.width=s)}if(ts(a))if(\"\"===t.style.height)t.height=t.width/(s||2);else{const s=Oe(t,\"height\");void 0!==s&&(t.height=s)}return i}return null}}releaseContext(t){const i=t.canvas;if(!i.$chartjs)return!1;const s=i.$chartjs.initial,e=([\"height\",\"width\"].forEach(t=>{var e=s[t];P(e)?i.removeAttribute(t):i.setAttribute(t,e)}),s.style||{});return Object.keys(e).forEach(t=>{i.style[t]=e[t]}),i.width=i.width,delete i.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);var s=t.$proxies||(t.$proxies={}),a={attach:ss,detach:as,resize:ls}[e]||cs;s[e]=a(t,e,i)}removeEventListener(t,e){var i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:hs,detach:hs,resize:hs}[e]||function(t,e,i){t.canvas.removeEventListener(e,i,es)})(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return Pe(t,e,i,s)}isAttached(t){t=xe(t);return!(!t||!t.isConnected)}}function us(t){return!be()||\"undefined\"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ji:ds}Ce=Object.freeze({__proto__:null,_detectPlatform:us,BasePlatform:Zi,BasicPlatform:Ji,DomPlatform:ds});const gs=\"transparent\",fs={boolean:(t,e,i)=>.5<i?e:t,color(t,e,i){var t=re(t||gs),s=t.valid&&re(e||gs);return s&&s.valid?s.mix(t,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class ps{constructor(t,e,i,s){var a=e[i],a=(s=wi([t.to,s,a,t.from]),wi([t.from,a,s]));this._active=!0,this._fn=t.fn||fs[t.type||typeof a],this._easing=gi[t.easing]||gi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){var s,a,r;this._active&&(this._notify(!1),s=this._target[this._prop],a=i-this._start,r=this._duration-a,this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=wi([t.to,e,s,t.from]),this._from=wi([t.from,s,e]))}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){var t=t-this._start,e=this._duration,i=this._prop,s=this._from,a=this._loop,r=this._to;this._active=s!==r&&(a||t<e),this._active?t<0?this._target[i]=s:(t=t/e%2,t=this._easing(Math.min(1,Math.max(0,a&&1<t?2-t:t))),this._target[i]=this._fn(s,r,t)):(this._target[i]=r,this._notify(!0))}wait(){const i=this._promises||(this._promises=[]);return new Promise((t,e)=>{i.push({res:t,rej:e})})}_notify(t){var e=t?\"res\":\"rej\",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class ms{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(s){if(A(s)){const a=Object.keys(R.animation),r=this._properties;Object.getOwnPropertyNames(s).forEach(e=>{var t=s[e];if(A(t)){const i={};for(const s of a)i[s]=t[s];(O(t.properties)&&t.properties||[e]).forEach(t=>{t!==e&&r.has(t)||r.set(t,i)})}})}}_animateOptions(t,e){const i=e.options,s=function(e,i){if(i){let t=e.options;if(t)return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;e.options=i}}(t,i);return s?(e=this._createAnimations(s,i),i.$shared&&function(e,t){var i=[],s=Object.keys(t);for(let t=0;t<s.length;t++){var a=e[s[t]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),e):[]}_createAnimations(e,i){var s=this._properties,a=[],r=e.$animations||(e.$animations={}),t=Object.keys(i),n=Date.now();let o;for(o=t.length-1;0<=o;--o){var l=t[o];if(\"$\"!==l.charAt(0))if(\"options\"===l)a.push(...this._animateOptions(e,i));else{var h=i[l];let t=r[l];var c=s.get(l);if(t){if(c&&t.active()){t.update(c,h,n);continue}t.cancel()}c&&c.duration?(r[l]=t=new ps(c,e,l,h),a.push(t)):e[l]=h}}return a}update(t,e){var i;if(0!==this._properties.size)return(i=this._createAnimations(t,e)).length?(r.add(this._chart,i),!0):void 0;Object.assign(t,e)}}function bs(t,e){var t=t&&t.options||{},i=t.reverse,s=void 0===t.min?e:0,t=void 0===t.max?e:0;return{start:i?t:s,end:i?s:t}}function xs(t,e){var i=[],s=t._getSortedDatasetMetas(e);let a,r;for(a=0,r=s.length;a<r;++a)i.push(s[a].index);return i}function vs(t,e,i,s={}){var a=t.keys,r=\"single\"===s.mode;let n,o,l,h;if(null!==e){for(n=0,o=a.length;n<o;++n){if((l=+a[n])===i){if(s.all)continue;break}p(h=t.values[l])&&(r||0===e||_(e)===_(h))&&(e+=h)}return e}}function _s(t,e){t=t&&t.options.stacked;return t||void 0===t&&void 0!==e.stack}function ys(t,e,i,s){for(const a of e.getMatchingVisibleMetas(s).reverse()){const e=t[a.index];if(i&&0<e||!i&&e<0)return a.index}return null}function Ms(t,e){const{chart:i,_cachedMeta:s}=t,a=i._stacks||(i._stacks={}),{iScale:r,vScale:n,index:o}=s,l=r.axis,h=n.axis,c=`${r.id}.${n.id}.`+(s.stack||s.type),d=e.length;var u,g,f;for(let t=0;t<d;++t){const i=e[t],{[l]:r,[h]:d}=i;(g=(i._stacks||(i._stacks={}))[h]=(f=r,(u=(u=a)[g=c]||(u[g]={}))[f]||(u[f]={})))[o]=d,g._top=ys(g,n,!0,s.type),g._bottom=ys(g,n,!1,s.type),(g._visualValues||(g._visualValues={}))[o]=d}}function ws(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function ks(t,e){var i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i],void 0!==e[s]._visualValues&&void 0!==e[s]._visualValues[i]&&delete e[s]._visualValues[i]}}}const Ss=t=>\"reset\"===t||\"none\"===t,Ps=(t,e)=>e?t:Object.assign({},t);class Ds{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){var t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_s(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(\"filler\")&&console.warn(\"Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options\")}updateIndex(t){this.index!==t&&ks(this._cachedMeta),this.index=t}linkScales(){var t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>\"x\"===t?e:\"r\"===t?s:i,a=e.xAxisID=T(i.xAxisID,ws(t,\"x\")),r=e.yAxisID=T(i.yAxisID,ws(t,\"y\")),i=e.rAxisID=T(i.rAxisID,ws(t,\"r\")),t=e.indexAxis,n=e.iAxisID=s(t,a,r,i),s=e.vAxisID=s(t,r,a,i);e.xScale=this.getScaleForId(a),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(i),e.iScale=this.getScaleForId(n),e.vScale=this.getScaleForId(s)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){var e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update(\"reset\")}_destroy(){var t=this._cachedMeta;this._data&&yt(this._data,this),t._stacked&&ks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(A(e))this._data=function(t){var e=Object.keys(t),i=new Array(e.length);let s,a,r;for(s=0,a=e.length;s<a;++s)r=e[s],i[s]={x:r,y:t[r]};return i}(e);else if(i!==e){if(i){yt(i,this);const t=this._cachedMeta;ks(t),t._parsed=[]}e&&Object.isExtensible(e)&&_t(e,this),this._syncList=[],this._data=e}}addElements(){var t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){var e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();var a=e._stacked;e._stacked=_s(e.vScale,e),e.stack!==i.stack&&(s=!0,ks(e),e.stack=i.stack),this._resyncElements(t),!s&&a===e._stacked||Ms(this,e._parsed)}configure(){var t=this.chart.config,e=t.datasetScopeKeys(this._type),e=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(e,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:a,_stacked:r}=i,n=a.axis;let o,l,h,c=0===t&&e===s.length||i._sorted,d=0<t&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,h=s;else{h=O(s[t])?this.parseArrayData(i,s,t,e):A(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const a=()=>null===l[n]||d&&l[n]<d[n];for(o=0;o<e;++o)i._parsed[o+t]=l=h[o],c&&(a()&&(c=!1),d=l);i._sorted=c}r&&Ms(this,h)}parsePrimitiveData(t,e,i,s){var{iScale:a,vScale:r}=t,n=a.axis,o=r.axis,l=a.getLabels(),h=a===r,c=new Array(s);let d,u,g;for(d=0,u=s;d<u;++d)g=d+i,c[d]={[n]:h||a.parse(l[g],g),[o]:r.parse(e[g],g)};return c}parseArrayData(t,e,i,s){var{xScale:a,yScale:r}=t,n=new Array(s);let o,l,h,c;for(o=0,l=s;o<l;++o)c=e[h=o+i],n[o]={x:a.parse(c[0],h),y:r.parse(c[1],h)};return n}parseObjectData(t,e,i,s){var{xScale:a,yScale:r}=t,{xAxisKey:n=\"x\",yAxisKey:o=\"y\"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)u=e[d=h+i],l[h]={x:a.parse(f(u,n),d),y:r.parse(f(u,o),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){var s=this.chart,a=this._cachedMeta,r=e[t.axis];return vs({keys:xs(s,!0),values:e._stacks[t.axis]._visualValues},r,a.index,{mode:i})}updateRangeFromParsed(t,e,i,s){var a=i[e.axis];let r=null===a?NaN:a;i=s&&i._stacks[e.axis];s&&i&&(s.values=i,r=vs(s,a,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(e,t){const i=this._cachedMeta,s=i._parsed,a=i._sorted&&e===i.iScale,r=s.length,n=this._getOtherScale(e),o=(d=this.chart,t&&!i.hidden&&i._stacked&&{keys:xs(d,!0),values:null}),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:c}=function(){var{min:t,max:e,minDefined:i,maxDefined:s}=n.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?e:Number.POSITIVE_INFINITY}}();var d;let u,g;function f(){var t=(g=s[u])[n.axis];return!p(g[e.axis])||h>t||c<t}for(u=0;u<r&&(f()||(this.updateRangeFromParsed(l,e,g,o),!a));++u);if(a)for(u=r-1;0<=u;--u)if(!f()){this.updateRangeFromParsed(l,e,g,o);break}return l}getAllParsedValues(t){var e=this._cachedMeta._parsed,i=[];let s,a,r;for(s=0,a=e.length;s<a;++s)p(r=e[s][t.axis])&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){var e=this._cachedMeta,i=e.iScale,e=e.vScale,t=this.getParsed(t);return{label:i?\"\"+i.getLabelForValue(t[i.axis]):\"\",value:e?\"\"+e.getLabelForValue(t[e.axis]):\"\"}}_update(t){var e,i=this._cachedMeta;this.update(t||\"default\"),i._clip=function(t){let e,i,s,a;return A(t)?(e=t.top,i=t.right,s=t.bottom,a=t.left):e=i=s=a=t,{top:e,right:i,bottom:s,left:a,disabled:!1===t}}(T(this.options.clip,(t=i.xScale,i=i.yScale,!1!==(e=this.getMaxOverflow())&&(t=bs(t,e),{top:(i=bs(i,e)).end,right:t.end,bottom:i.start,left:t.start}))))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],a=e.chartArea,r=[],n=this._drawStart||0,o=this._drawCount||s.length-n,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,a,n,o),h=n;h<n+o;++h){const e=s[h];e.hidden||(e.active&&l?r.push(e):e.draw(t,a))}for(h=0;h<r.length;++h)r[h].draw(t,a)}getStyle(t,e){e=e?\"active\":\"default\";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(e):this.resolveDataElementOptions(t||0,e)}getContext(t,e,i){var s,a=this.getDataset();let r;if(0<=t&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];(r=e.$context||(e.$context=Si(this.getContext(),{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:\"default\",type:\"data\"}))).parsed=this.getParsed(t),r.raw=a.data[t],r.index=r.dataIndex=t}else(r=this.$context||(this.$context=(t=this.chart.getContext(),s=this.index,Si(t,{active:!1,dataset:void 0,datasetIndex:s,index:s,mode:\"default\",type:\"dataset\"})))).dataset=a,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=i,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e=\"default\",i){const s=\"active\"===e,a=this._cachedDataOpts,r=t+\"-\"+e,n=a[r],o=this.enableOptionSharing&&g(i);var l,h,c;return n?Ps(n,o):(h=(c=this.chart.config).datasetElementScopeKeys(this._type,t),l=s?[t+\"Hover\",\"hover\",t,\"\"]:[t,\"\"],h=c.getOptionScopes(this.getDataset(),h),t=Object.keys(R.elements[t]),(c=c.resolveNamedOptions(h,t,()=>this.getContext(i,s,e),l)).$shared&&(c.$shared=o,a[r]=Object.freeze(Ps(c,o))),c)}_resolveAnimations(t,e,i){const s=this.chart,a=this._cachedDataOpts,r=\"animation-\"+e,n=a[r];if(n)return n;let o;if(!1!==s.options.animation){const s=this.chart.config,a=s.datasetAnimationScopeKeys(this._type,e),r=s.getOptionScopes(this.getDataset(),a);o=s.createResolver(r,this.getContext(t,i,e))}t=new ms(s,o&&o.animations);return o&&o._cacheable&&(a[r]=Object.freeze(t)),t}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ss(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){var t=this.resolveDataElementOptions(t,e),i=this._sharedOptions,s=this.getSharedOptions(t),i=this.includeOptions(e,s)||s!==i;return this.updateSharedOptions(s,e,t),{sharedOptions:s,includeOptions:i}}updateElement(t,e,i,s){Ss(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ss(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;var a=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(t,e,i){this._setStyle(t,i,\"active\",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,\"active\",!0)}_removeDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,\"active\",!1)}_setDatasetHoverStyle(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,\"active\",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];var s=i.length,a=e.length,r=Math.min(a,s);r&&this.parse(0,r),s<a?this._insertElements(s,a-s,t):a<s&&this._removeElements(a,s-a)}_insertElements(t,e,i=!0){const s=this._cachedMeta,a=s.data,r=t+e;let n;var o=t=>{for(t.length+=e,n=t.length-1;n>=r;n--)t[n]=t[n-e]};for(o(a),n=t;n<r;++n)a[n]=new this.dataElementType;this._parsing&&o(s._parsed),this.parse(t,e),i&&this.updateElements(a,t,e,\"reset\")}updateElements(t,e,i,s){}_removeElements(t,e){var i,s=this._cachedMeta;this._parsing&&(i=s._parsed.splice(t,e),s._stacked)&&ks(s,i),s.data.splice(t,e)}_sync(t){var e,i,s;this._parsing?this._syncList.push(t):([e,i,s]=t,this[e](i,s)),this.chart._dataChanges.push([this.index,...t])}_onDataPush(){var t=arguments.length;this._sync([\"_insertElements\",this.getDataset().data.length-t,t])}_onDataPop(){this._sync([\"_removeElements\",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync([\"_removeElements\",0,1])}_onDataSplice(t,e){e&&this._sync([\"_removeElements\",t,e]);e=arguments.length-2;e&&this._sync([\"_insertElements\",t,e])}_onDataUnshift(){this._sync([\"_insertElements\",0,arguments.length])}}class e{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(t){var{x:t,y:e}=this.getProps([\"x\",\"y\"],t);return{x:t,y:e}}hasValue(){return nt(this.x)&&nt(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function Cs(t,e,i,s,a){var r=T(s,0),n=Math.min(T(a,t.length),t.length);let o,l,h,c=0;for(i=Math.ceil(i),a&&(i=(o=a-s)/Math.floor(o/i)),h=r;h<0;)c++,h=Math.round(r+c*i);for(l=Math.max(r,0);l<n;l++)l===h&&(e.push(t[l]),c++,h=Math.round(r+c*i))}const Os=(t,e,i)=>\"top\"===e||\"left\"===e?t[e]+i:t[e]-i,As=(t,e)=>Math.min(e||t,t);function Ts(t,e){var i=[],s=t.length/e,a=t.length;let r=0;for(;r<a;r+=s)i.push(t[Math.floor(r)]);return i}function Ls(t){return t.drawTicks?t.tickLength:0}function Es(t,e){var i;return t.display?(e=z(t.font,e),i=I(t.padding),(O(t.text)?t.text.length:1)*e.lineHeight+i.height):0}class Rs extends e{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){var{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this,t=u(t,Number.POSITIVE_INFINITY),e=u(e,Number.NEGATIVE_INFINITY),i=u(i,Number.POSITIVE_INFINITY),s=u(s,Number.NEGATIVE_INFINITY);return{min:u(t,i),max:u(e,s),minDefined:p(t),maxDefined:p(e)}}getMinMax(i){let s,{min:a,max:r,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:a,max:r};var l=this.getMatchingVisibleMetas();for(let t=0,e=l.length;t<e;++t)s=l[t].controller.getMinMax(this,i),n||(a=Math.min(a,s.min)),o||(r=Math.max(r,s.max));return a=o&&a>r?r:a,r=n&&a>r?a:r,{min:u(a,u(r,a)),max:u(r,u(a,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(t,e,i){var{beginAtZero:s,grace:a,ticks:r}=this.options,n=r.sampleSize,t=(this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ki(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks(),n<this.ticks.length);this._convertTicksToLabels(t?Ts(this.ticks,n):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||\"auto\"===r.source)&&(this.ticks=function(t,s){const e=t.options.ticks,i=(c=(t=t).options.offset,d=t._tickSize(),c=t._length/d+(c?0:1),t=t._maxLength/d,Math.floor(Math.min(c,t))),a=Math.min(e.maxTicksLimit||i,i),r=e.major.enabled?function(t){var e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(s):[],n=r.length,o=r[0],l=r[n-1],h=[];var c,d;if(a<n){var u=s;var g=h;var f=r;var p=n/a;let t,e=0,i=f[0];for(p=Math.ceil(p),t=0;t<u.length;t++)t===i&&(g.push(u[t]),e++,i=f[e*p])}else{var m=function(t,i,e){var t=function(t){var e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),s=i.length/e;if(t){var a=rt(t);for(let t=0,e=a.length-1;t<e;t++){const i=a[t];if(i>s)return i}}return Math.max(s,1)}(r,s,a);if(0<n){let t,e;const i=1<n?Math.round((l-o)/(n-1)):null;for(Cs(s,h,m,P(i)?0:o-i,o),t=0,e=n-1;t<e;t++)Cs(s,h,m,r[t],r[t+1]);Cs(s,h,m,l,P(i)?s.length:l+i)}else Cs(s,h,m)}return h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),t&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){d(this.options.afterUpdate,[this])}beforeSetDimensions(){d(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){d(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),d(this.options[t],[this])}beforeDataLimits(){this._callHooks(\"beforeDataLimits\")}determineDataLimits(){}afterDataLimits(){this._callHooks(\"afterDataLimits\")}beforeBuildTicks(){this._callHooks(\"beforeBuildTicks\")}buildTicks(){return[]}afterBuildTicks(){this._callHooks(\"afterBuildTicks\")}beforeTickToLabelConversion(){d(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){var e=this.options.ticks;let i,s,a;for(i=0,s=t.length;i<s;i++)(a=t[i]).label=d(e.callback,[a.value,i,t],this)}afterTickToLabelConversion(){d(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){d(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){var t,e,i,s,a=this.options,r=a.ticks,n=As(this.ticks.length,a.ticks.maxTicksLimit),o=r.minRotation||0,l=r.maxRotation;let h,c,d,u=o;!this._isVisible()||!r.display||l<=o||n<=1||!this.isHorizontal()?this.labelRotation=o:(e=(t=this._getLabelSizes()).widest.width,i=t.highest.height,s=C(this.chart.width-e,0,this.maxWidth),(a.offset?this.maxWidth/n:s/(n-1))<e+6&&(h=s/(n-(a.offset?.5:1)),c=this.maxHeight-Ls(a.grid)-r.padding-Es(a.title,this.chart.options.font),d=Math.sqrt(e*e+i*i),u=ht(Math.min(Math.asin(C((t.highest.height+6)/h,-1,1)),Math.asin(C(c/d,-1,1))-Math.asin(C(i/d,-1,1)))),u=Math.max(o,Math.min(l,u))),this.labelRotation=u)}afterCalculateLabelRotation(){d(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){d(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:a}}=this,r=this._isVisible(),n=this.isHorizontal();if(r){const r=Es(s,e.options.font);if(n?(t.width=this.maxWidth,t.height=Ls(a)+r):(t.height=this.maxHeight,t.width=Ls(a)+r),i.display&&this.ticks.length){const{first:e,last:s,widest:a,highest:r}=this._getLabelSizes(),o=2*i.padding,l=L(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(n){const e=i.mirror?0:c*a.width+h*r.height;t.height=Math.min(this.maxHeight,t.height+e+o)}else{const e=i.mirror?0:h*a.width+c*r.height;t.width=Math.min(this.maxWidth,t.width+e+o)}this._calculatePadding(e,s,c,h)}}this._handleMargins(),n?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,s,a,r){const{ticks:{align:n,padding:o},position:l}=this.options,h=0!==this.labelRotation,c=\"top\"!==l&&\"x\"===this.axis;if(this.isHorizontal()){const l=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let t=0,e=0;h?e=c?(t=r*i.width,a*s.height):(t=a*i.height,r*s.width):\"start\"===n?e=s.width:\"end\"===n?t=i.width:\"inner\"!==n&&(t=i.width/2,e=s.width/2),this.paddingLeft=Math.max((t-l+o)*this.width/(this.width-l),0),this.paddingRight=Math.max((e-d+o)*this.width/(this.width-d),0)}else{let t=s.height/2,e=i.height/2;\"start\"===n?(t=0,e=i.height):\"end\"===n&&(t=s.height,e=0),this.paddingTop=t+o,this.paddingBottom=e+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){d(this.options.afterFit,[this])}isHorizontal(){var{axis:t,position:e}=this.options;return\"top\"===e||\"bottom\"===e||\"x\"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)P(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){var i=this.options.ticks.sampleSize;let t=this.ticks;i<t.length&&(t=Ts(t,i)),this._labelSizes=e=this._computeLabelSizes(t,t.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(t,e,i){const{ctx:s,_longestTextCache:a}=this,r=[],n=[],o=Math.floor(e/As(e,i));let l,h,c,d,u,g,f,p,m,b,x,v=0,_=0;for(l=0;l<e;l+=o){if(d=t[l].label,u=this._resolveTickFontOptions(l),s.font=g=u.string,f=a[g]=a[g]||{data:{},gc:[]},p=u.lineHeight,m=b=0,P(d)||O(d)){if(O(d))for(h=0,c=d.length;h<c;++h)P(x=d[h])||O(x)||(m=Te(s,f.data,f.gc,m,x),b+=p)}else m=Te(s,f.data,f.gc,m,d),b=p;r.push(m),n.push(b),v=Math.max(m,v),_=Math.max(b,_)}y=e,k(a,t=>{var e=t.gc,i=e.length/2;let s;if(y<i){for(s=0;s<i;++s)delete t.data[e[s]];e.splice(0,i)}});var y,i=r.indexOf(v),M=n.indexOf(_),w=t=>({width:r[t]||0,height:n[t]||0});return{first:w(0),last:w(e-1),widest:w(i),highest:w(M),widths:r,heights:n}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);t=this._startPixel+t*this._length;return pt(this._alignToPixels?Ee(this.chart,t,0):t)}getDecimalForPixel(t){t=(t-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){var{min:t,max:e}=this;return t<0&&e<0?e:0<t&&0<e?t:0}getContext(t){var e=this.ticks||[];return 0<=t&&t<e.length?(e=e[t]).$context||(e.$context=Si(this.getContext(),{tick:e,index:t,type:\"tick\"})):this.$context||(this.$context=Si(this.chart.getContext(),{scale:this,type:\"scale\"}))}_tickSize(){var t=this.options.ticks,e=L(this.labelRotation),i=Math.abs(Math.cos(e)),e=Math.abs(Math.sin(e)),s=this._getLabelSizes(),t=t.autoSkipPadding||0,a=s?s.widest.width+t:0,s=s?s.highest.height+t:0;return this.isHorizontal()?a*e<s*i?a/i:s/e:s*e<a*i?s/i:a/e}_isVisible(){var t=this.options.display;return\"auto\"!==t?!!t:0<this.getMatchingVisibleMetas().length}_computeGridLineItems(t){function e(t){return Ee(s,t,f)}const i=this.axis,s=this.chart,a=this.options,{grid:r,position:n,border:o}=a,l=r.offset,h=this.isHorizontal(),c=this.ticks.length+(l?1:0),d=Ls(r),u=[],g=o.setContext(this.getContext()),f=g.display?g.width:0,p=f/2;let m,b,x,v,_,y,M,w,k,S,P,D;if(\"top\"===n)m=e(this.bottom),y=this.bottom-d,w=m-p,S=e(t.top)+p,D=t.bottom;else if(\"bottom\"===n)m=e(this.top),S=t.top,D=e(t.bottom)-p,y=m+p,w=this.top+d;else if(\"left\"===n)m=e(this.right),_=this.right-d,M=m-p,k=e(t.left)+p,P=t.right;else if(\"right\"===n)m=e(this.left),k=t.left,P=e(t.right)-p,_=m+p,M=this.left+d;else if(\"x\"===i){if(\"center\"===n)m=e((t.top+t.bottom)/2+.5);else if(A(n)){const t=Object.keys(n)[0],i=n[t];m=e(this.chart.scales[t].getPixelForValue(i))}S=t.top,D=t.bottom,y=m+p,w=y+d}else if(\"y\"===i){if(\"center\"===n)m=e((t.left+t.right)/2);else if(A(n)){const t=Object.keys(n)[0],i=n[t];m=e(this.chart.scales[t].getPixelForValue(i))}_=m-p,M=_-d,k=t.left,P=t.right}var t=T(a.ticks.maxTicksLimit,c),C=Math.max(1,Math.ceil(c/t));for(b=0;b<c;b+=C){const t=this.getContext(b),i=r.setContext(t),a=o.setContext(t),A=i.lineWidth,n=i.color,T=a.dash||[],c=a.dashOffset,d=i.tickWidth,g=i.tickColor,f=i.tickBorderDash||[],p=i.tickBorderDashOffset;void 0!==(x=function(t,e,i){var s=t.ticks.length,a=Math.min(e,s-1),r=t._startPixel,n=t._endPixel;let o,l=t.getPixelForTick(a);if(!(i&&(o=1===s?Math.max(l-r,n-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(a-1))/2,(l+=a<e?o:-o)<r-1e-6||l>n+1e-6)))return l}(this,b,l))&&(v=Ee(s,x,A),h?_=M=k=P=v:y=w=S=D=v,u.push({tx1:_,ty1:y,tx2:M,ty2:w,x1:k,y1:S,x2:P,y2:D,width:A,color:n,borderDash:T,borderDashOffset:c,tickWidth:d,tickColor:g,tickBorderDash:f,tickBorderDashOffset:p}))}return this._ticksLength=c,this._borderValue=m,u}_computeLabelItems(s){const a=this.axis,r=this.options,{position:n,ticks:e}=r,o=this.isHorizontal(),l=this.ticks,{align:h,crossAlign:c,padding:t,mirror:d}=e,i=Ls(r.grid),u=i+t,g=d?-t:u,f=-L(this.labelRotation),p=[];let m,b,x,v,_,y,M,w,k,S,P,D=\"middle\";if(\"top\"===n)_=this.bottom-g,y=this._getXAxisLabelAlignment();else if(\"bottom\"===n)_=this.top+g,y=this._getXAxisLabelAlignment();else if(\"left\"===n){const s=this._getYAxisLabelAlignment(i);y=s.textAlign,v=s.x}else if(\"right\"===n){const s=this._getYAxisLabelAlignment(i);y=s.textAlign,v=s.x}else if(\"x\"===a){if(\"center\"===n)_=(s.top+s.bottom)/2+u;else if(A(n)){const s=Object.keys(n)[0],a=n[s];_=this.chart.scales[s].getPixelForValue(a)+u}y=this._getXAxisLabelAlignment()}else if(\"y\"===a){if(\"center\"===n)v=(s.left+s.right)/2-u;else if(A(n)){const s=Object.keys(n)[0],a=n[s];v=this.chart.scales[s].getPixelForValue(a)}y=this._getYAxisLabelAlignment(i).textAlign}\"y\"===a&&(\"start\"===h?D=\"top\":\"end\"===h&&(D=\"bottom\"));var C=this._getLabelSizes();for(m=0,b=l.length;m<b;++m){x=l[m].label;const s=e.setContext(this.getContext(m)),a=(M=this.getPixelForTick(m)+e.labelOffset,k=(w=this._resolveTickFontOptions(m)).lineHeight,(S=O(x)?x.length:1)/2),r=s.color,A=s.textStrokeColor,h=s.textStrokeWidth;let i,t=y;if(o?(v=M,\"inner\"===y&&(t=m===b-1?this.options.reverse?\"left\":\"right\":0===m?this.options.reverse?\"right\":\"left\":\"center\"),P=\"top\"===n?\"near\"===c||0!=f?-S*k+k/2:\"center\"===c?-C.highest.height/2-a*k+k:-C.highest.height+k/2:\"near\"===c||0!=f?k/2:\"center\"===c?C.highest.height/2-a*k:C.highest.height-S*k,d&&(P*=-1),0==f||s.showLabelBackdrop||(v+=k/2*Math.sin(f))):(_=M,P=(1-S)*k/2),s.showLabelBackdrop){const a=I(s.backdropPadding),r=C.heights[m],n=C.widths[m];let t=P-a.top,e=0-a.left;switch(D){case\"middle\":t-=r/2;break;case\"bottom\":t-=r}switch(y){case\"center\":e-=n/2;break;case\"right\":e-=n}i={left:e,top:t,width:n+a.width,height:r+a.height,color:s.backdropColor}}p.push({label:x,font:w,textOffset:P,options:{rotation:f,color:r,strokeColor:A,strokeWidth:h,textAlign:t,textBaseline:D,translation:[v,_],backdrop:i}})}return p}_getXAxisLabelAlignment(){var{position:t,ticks:e}=this.options;if(-L(this.labelRotation))return\"top\"===t?\"left\":\"right\";let i=\"center\";return\"start\"===e.align?i=\"left\":\"end\"===e.align?i=\"right\":\"inner\"===e.align&&(i=\"inner\"),i}_getYAxisLabelAlignment(t){var{position:e,ticks:{crossAlign:i,mirror:s,padding:a}}=this.options,t=t+a,r=this._getLabelSizes().widest.width;let n,o;return\"left\"===e?s?(o=this.right+a,\"near\"===i?n=\"left\":\"center\"===i?(n=\"center\",o+=r/2):(n=\"right\",o+=r)):(o=this.right-t,\"near\"===i?n=\"right\":\"center\"===i?(n=\"center\",o-=r/2):(n=\"left\",o=this.left)):\"right\"===e?s?(o=this.left+a,\"near\"===i?n=\"right\":\"center\"===i?(n=\"center\",o-=r/2):(n=\"left\",o-=r)):(o=this.left+t,\"near\"===i?n=\"left\":\"center\"===i?(n=\"center\",o+=r/2):(n=\"right\",o=this.right)):n=\"right\",{textAlign:n,x:o}}_computeLabelArea(){var t,e;if(!this.options.ticks.mirror)return t=this.chart,\"left\"===(e=this.options.position)||\"right\"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:\"top\"===e||\"bottom\"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){var{ctx:t,options:{backgroundColor:e},left:i,top:s,width:a,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,a,r),t.restore())}getLineWidthForValue(e){var t,i=this.options.grid;return this._isVisible()&&i.display&&0<=(t=this.ticks.findIndex(t=>t.value===e))?i.setContext(this.getContext(t)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,r;var n=(t,e,i)=>{i.width&&i.color&&(s.save(),s.lineWidth=i.width,s.strokeStyle=i.color,s.setLineDash(i.borderDash||[]),s.lineDashOffset=i.borderDashOffset,s.beginPath(),s.moveTo(t.x,t.y),s.lineTo(e.x,e.y),s.stroke(),s.restore())};if(e.display)for(a=0,r=i.length;a<r;++a){const t=i[a];e.drawOnChartArea&&n({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&n({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){var{chart:a,ctx:r,options:{border:n,grid:o}}=this,l=n.setContext(this.getContext()),n=n.display?l.width:0;if(n){var o=o.setContext(this.getContext(0)).lineWidth,h=this._borderValue;let t,e,i,s;this.isHorizontal()?(t=Ee(a,this.left,n)-n/2,e=Ee(a,this.right,o)+o/2,i=s=h):(i=Ee(a,this.top,n)-n/2,s=Ee(a,this.bottom,o)+o/2,t=e=h),r.save(),r.lineWidth=l.width,r.strokeStyle=l.color,r.beginPath(),r.moveTo(t,i),r.lineTo(e,s),r.stroke(),r.restore()}}drawLabels(t){if(this.options.ticks.display){const e=this.ctx,i=this._computeLabelArea(),s=(i&&Ve(e,i),this.getLabelItems(t));for(const t of s){const i=t.options,s=t.font;He(e,t.label,0,t.textOffset,s,i)}i&&Be(e)}}drawTitle(){var{ctx:e,options:{position:i,title:s,reverse:a}}=this;if(s.display){var r=z(s.font),n=I(s.padding),o=s.align;let t=r.lineHeight/2;\"bottom\"===i||\"center\"===i||A(i)?(t+=n.bottom,O(s.text)&&(t+=r.lineHeight*(s.text.length-1))):t+=n.top;var{titleX:n,titleY:l,maxWidth:h,rotation:c}=function(t,e,i,s){var{top:a,left:r,bottom:n,right:o,chart:l}=t,{chartArea:l,scales:h}=l;let c,d,u,g=0;var f=n-a,p=o-r;if(t.isHorizontal()){if(d=E(s,r,o),A(i)){const t=Object.keys(i)[0],s=i[t];u=h[t].getPixelForValue(s)+f-e}else u=\"center\"===i?(l.bottom+l.top)/2+f-e:Os(t,i,e);c=o-r}else{if(A(i)){const t=Object.keys(i)[0],s=i[t];d=h[t].getPixelForValue(s)-p+e}else d=\"center\"===i?(l.left+l.right)/2-p+e:Os(t,i,e);u=E(s,n,a),g=\"left\"===i?-D:D}return{titleX:d,titleY:u,maxWidth:c,rotation:g}}(this,t,i,o);He(e,s.text,0,0,r,{color:s.color,maxWidth:h,rotation:c,textAlign:function(t,e,i){let s=Pt(t);return s=i&&\"right\"!==e||!i&&\"right\"===e?\"left\"===(t=s)?\"right\":\"right\"===t?\"left\":t:s}(o,i,a),textBaseline:\"middle\",translation:[n,l]})}}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){var t=this.options,e=t.ticks&&t.ticks.z||0,i=T(t.grid&&t.grid.z,-1),t=T(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Rs.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:t,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){var e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+\"AxisID\",s=[];let a,r;for(a=0,r=e.length;a<r;++a){const r=e[a];r[i]!==this.id||t&&r.type!==t||s.push(r)}return s}_resolveTickFontOptions(t){return z(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){var t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Is{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){var e=Object.getPrototypeOf(t);let i;\"id\"in(n=e)&&\"defaults\"in n&&(i=this.register(e));var s,a,r,n=this.items,e=t.id,o=this.scope+\".\"+e;if(e)return e in n||(n[e]=t,n=t,e=o,s=i,s=Y(Object.create(null),[s?R.get(s):{},R.get(e),n.defaults]),R.set(e,s),n.defaultRoutes&&(a=e,r=n.defaultRoutes,Object.keys(r).forEach(t=>{var e=t.split(\".\"),i=e.pop(),e=[a].concat(e).join(\".\"),t=r[t].split(\".\"),s=t.pop(),t=t.join(\".\");R.route(e,i,t,s)})),n.descriptors&&R.describe(e,n.descriptors),this.override&&R.override(t.id,t.overrides)),o;throw new Error(\"class does not have id: \"+t)}get(t){return this.items[t]}unregister(t){var e=this.items,t=t.id,i=this.scope;t in e&&delete e[t],i&&t in R[i]&&(delete R[i][t],this.override)&&delete ge[t]}}var M=new class{constructor(){this.controllers=new Is(Ds,\"datasets\",!0),this.elements=new Is(e,\"elements\"),this.plugins=new Is(Object,\"plugins\"),this.scales=new Is(Rs,\"scales\"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each(\"register\",t)}remove(...t){this._each(\"unregister\",t)}addControllers(...t){this._each(\"register\",t,this.controllers)}addElements(...t){this._each(\"register\",t,this.elements)}addPlugins(...t){this._each(\"register\",t,this.plugins)}addScales(...t){this._each(\"register\",t,this.scales)}getController(t){return this._get(t,this.controllers,\"controller\")}getElement(t){return this._get(t,this.elements,\"element\")}getPlugin(t){return this._get(t,this.plugins,\"plugin\")}getScale(t){return this._get(t,this.scales,\"scale\")}removeControllers(...t){this._each(\"unregister\",t,this.controllers)}removeElements(...t){this._each(\"unregister\",t,this.elements)}removePlugins(...t){this._each(\"unregister\",t,this.plugins)}removeScales(...t){this._each(\"unregister\",t,this.scales)}_each(i,t,s){[...t].forEach(t=>{var e=s||this._getRegistryForType(t);s||e.isForType(t)||e===this.plugins&&t.id?this._exec(i,e,t):k(t,t=>{var e=s||this._getRegistryForType(t);this._exec(i,e,t)})})}_exec(t,e,i){var s=K(t);d(i[\"before\"+s],[],i),e[t](i),d(i[\"after\"+s],[],i)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){var i=this._typedRegistries[t];if(i.isForType(e))return i}return this.plugins}_get(t,e,i){e=e.get(t);if(void 0===e)throw new Error('\"'+t+'\" is not a registered '+i+\".\");return e}};class zs{constructor(){this._init=[]}notify(t,e,i,s){\"beforeInit\"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,\"install\"));s=s?this._descriptors(t).filter(s):this._descriptors(t),i=this._notify(s,t,e,i);return\"afterDestroy\"===e&&(this._notify(s,t,\"stop\"),this._notify(this._init,t,\"uninstall\")),i}_notify(t,e,i,s){s=s||{};for(const a of t){const t=a.plugin;if(!1===d(t[i],[e,s,a.options],t)&&s.cancelable)return!1}return!0}invalidate(){P(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){var e;return this._cache||(e=this._cache=this._createDescriptors(t),this._notifyStateChanges(t),e)}_createDescriptors(t,e){var i=t&&t.config,s=T(i.options&&i.options.plugins,{}),i=function(t){const e={},i=[],s=Object.keys(M.plugins.items);for(let t=0;t<s.length;t++)i.push(M.getPlugin(s[t]));var a=t.plugins||[];for(let t=0;t<a.length;t++){const s=a[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);if(!1!==s||e){var a,r,n,o,l,h,[c,{plugins:d,localIds:u},g,f]=[t,i,s,e],p=[],m=c.getContext();for(const b of d){const d=b.id,x=(h=g[d],f||!1!==h?!0===h?{}:h:null);null!==x&&p.push({plugin:b,options:([h,{plugin:a,local:r},n,o]=[c.config,{plugin:b,local:u[d]},x,m],l=void 0,l=h.pluginScopeKeys(a),n=h.getOptionScopes(n,l),r&&a.defaults&&n.push(a.defaults),h.createResolver(n,o,[\"\"],{scriptable:!1,indexable:!1,allKeys:!0}))})}return p}return[]}_notifyStateChanges(t){var e=this._oldCache||[],i=this._cache,s=(t,i)=>t.filter(e=>!i.some(t=>e.plugin.id===t.plugin.id));this._notify(s(e,i),t,\"stop\"),this._notify(s(i,e),t,\"start\")}}function Fs(t,e){var i=R.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||\"x\"}function Vs(t,e){if(\"x\"===t||\"y\"===t||\"r\"===t)return t;var i;if(t=e.axis||(\"top\"===(i=e.position)||\"bottom\"===i?\"x\":\"left\"===i||\"right\"===i?\"y\":void 0)||1<t.length&&Vs(t[0].toLowerCase(),e))return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Bs(t){var e=t.options||(t.options={});e.plugins=T(e.plugins,{}),e.scales=function(e,i){const r=ge[e.type]||{scales:{}},n=i.scales||{},o=Fs(e.type,i),l=Object.create(null);return Object.keys(n).forEach(t=>{var e=n[t];if(!A(e))return console.error(\"Invalid scale configuration for scale: \"+t);if(e._proxy)return console.warn(\"Ignoring resolver passed as options for scale: \"+t);const i=Vs(t,e),s=i===o?\"_index_\":\"_value_\",a=r.scales||{};l[t]=$(Object.create(null),[{axis:i},e,a[i],a[s]])}),e.data.datasets.forEach(s=>{const t=s.type||e.type,a=s.indexAxis||Fs(t,i),r=(ge[t]||{}).scales||{};Object.keys(r).forEach(t=>{var e=function(t,e){let i=t;return\"_index_\"===t?i=e:\"_value_\"===t&&(i=\"x\"===e?\"y\":\"x\"),i}(t,a),i=s[e+\"AxisID\"]||e;l[i]=l[i]||Object.create(null),$(l[i],[{axis:e},n[i],r[t]])})}),Object.keys(l).forEach(t=>{t=l[t];$(t,[R.scales[t.type],R.scale])}),l}(t,e)}function Ns(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ws=new Map,Hs=new Set;function js(t,e){let i=Ws.get(t);return i||(i=e(),Ws.set(t,i),Hs.add(i)),i}const Ys=(t,e,i)=>{e=f(e,i);void 0!==e&&t.add(e)};class $s{constructor(t){this._config=((t=(t=t)||{}).data=Ns(t.data),Bs(t),t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ns(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){var t=this._config;this.clearCache(),Bs(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return js(t,()=>[[\"datasets.\"+t,\"\"]])}datasetAnimationScopeKeys(t,e){return js(t+\".transition.\"+e,()=>[[`datasets.${t}.transitions.`+e,\"transitions.\"+e],[\"datasets.\"+t,\"\"]])}datasetElementScopeKeys(t,e){return js(t+\"-\"+e,()=>[[`datasets.${t}.elements.`+e,\"datasets.\"+t,\"elements.\"+e,\"\"]])}pluginScopeKeys(t){const e=t.id;return js(this.type+\"-plugin-\"+e,()=>[[\"plugins.\"+e,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){var i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(e,t,i){const{options:s,type:a}=this,r=this._cachedScopes(e,i),n=r.get(t);if(n)return n;const o=new Set;t.forEach(t=>{e&&(o.add(e),t.forEach(t=>Ys(o,e,t))),t.forEach(t=>Ys(o,s,t)),t.forEach(t=>Ys(o,ge[a]||{},t)),t.forEach(t=>Ys(o,R,t)),t.forEach(t=>Ys(o,fe,t))});i=Array.from(o);return 0===i.length&&i.push(Object.create(null)),Hs.has(t)&&r.set(t,i),i}chartOptionScopes(){var{options:t,type:e}=this;return[t,ge[e]||{},R.datasets[e]||{},{type:e},R,fe]}resolveNamedOptions(t,e,i,s=[\"\"]){var a={$shared:!0},{resolver:s,subPrefixes:r}=Us(this._resolverCache,t,s);let n=s;!function(t,e){var{isScriptable:i,isIndexable:s}=Ue(t);for(const a of e){const e=i(a),r=s(a),n=(r||e)&&t[a];if(e&&(m(n)||Xs(n))||r&&O(n))return 1}}(s,e)||(a.$shared=!1,n=$e(s,i=m(i)?i():i,this.createResolver(t,i,r)));for(const t of e)a[t]=n[t];return a}createResolver(t,e,i=[\"\"],s){t=Us(this._resolverCache,t,i).resolver;return A(e)?$e(t,e,void 0,s):t}}function Us(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));t=i.join();let a=s.get(t);return a||(a={resolver:Ye(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes(\"hover\"))},s.set(t,a)),a}const Xs=i=>A(i)&&Object.getOwnPropertyNames(i).reduce((t,e)=>t||m(i[e]),!1),qs=[\"top\",\"bottom\",\"left\",\"right\",\"chartArea\"];function Ks(t,e){return\"top\"===t||\"bottom\"===t||-1===qs.indexOf(t)&&\"x\"===e}function Gs(i,s){return function(t,e){return t[i]===e[i]?t[s]-e[s]:t[i]-e[i]}}function Zs(t){var e=t.chart,i=e.options.animation;e.notifyPlugins(\"afterRender\"),d(i&&i.onComplete,[t],e)}function Js(t){var e=t.chart,i=e.options.animation;d(i&&i.onProgress,[t],e)}function Qs(t){return be()&&\"string\"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t=t&&t.canvas?t.canvas:t}const ta={},ea=t=>{const e=Qs(t);return Object.values(ta).filter(t=>t.canvas===e).pop()};class i{static defaults=R;static instances=ta;static overrides=ge;static registry=M;static version=\"4.2.1\";static getChart=ea;static register(...t){M.add(...t),ia()}static unregister(...t){M.remove(...t),ia()}constructor(t,e){var e=this.config=new $s(e),t=Qs(t),i=ea(t);if(i)throw new Error(\"Canvas is already in use. Chart with ID '\"+i.id+\"' must be destroyed before the canvas with ID '\"+i.canvas.id+\"' can be reused.\");var i=e.createResolver(e.chartOptionScopes(),this.getContext()),e=(this.platform=new(e.platform||us(t)),this.platform.updateConfig(e),this.platform.acquireContext(t,i.aspectRatio)),t=e&&e.canvas,s=t&&t.height,a=t&&t.width;this.id=F(),this.ctx=e,this.canvas=t,this.width=a,this.height=s,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new zs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=St(t=>this.update(t),i.resizeDelay||0),this._dataChanges=[],ta[this.id]=this,e&&t?(r.listen(this,\"complete\",Zs),r.listen(this,\"progress\",Js),this._initialize(),this.attached&&this.update()):console.error(\"Failed to create chart: can't acquire context from the given item\")}get aspectRatio(){var{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:a}=this;return P(t)?e&&a?a:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return M}_initialize(){return this.notifyPlugins(\"beforeInit\"),this.options.responsive?this.resize():De(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(\"afterInit\"),this}clear(){return Re(this.canvas,this.ctx),this}stop(){return r.stop(this),this}resize(t,e){r.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){var i=this.options,s=this.canvas,a=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(s,t,e,a),t=i.devicePixelRatio||this.platform.getDevicePixelRatio(),e=this.width?\"resize\":\"attach\";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,De(this,t,!0)&&(this.notifyPlugins(\"resize\",{size:s}),d(i.onResize,[this,s],this),this.attached)&&this._doResize(e)&&this.render()}ensureScalesHaveIDs(){k(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const n=this.options,s=n.scales,o=this.scales,l=Object.keys(o).reduce((t,e)=>(t[e]=!1,t),{});let t=[];k(t=s?t.concat(Object.keys(s).map(t=>{var e=s[t],t=Vs(t,e),i=\"r\"===t,t=\"x\"===t;return{options:e,dposition:i?\"chartArea\":t?\"bottom\":\"left\",dtype:i?\"radialLinear\":t?\"category\":\"linear\"}})):t,t=>{var e=t.options,i=e.id,s=Vs(i,e),a=T(e.type,t.dtype);void 0!==e.position&&Ks(e.position,s)===Ks(t.dposition)||(e.position=t.dposition),l[i]=!0;let r=null;i in o&&o[i].type===a?r=o[i]:(r=new(M.getScale(a))({id:i,type:a,ctx:this.ctx,chart:this}),o[r.id]=r),r.init(e,n)}),k(l,(t,e)=>{t||delete o[e]}),k(o,t=>{a.configure(this,t,t.options),a.addBox(this,t)})}_updateMetasets(){var t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),e<i){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Gs(\"order\",\"index\"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:i}}=this;t.length>i.length&&delete this._stacks,t.forEach((e,t)=>{0===i.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(t)})}buildOrUpdateControllers(){const e=[],i=this.data.datasets;let s,a;for(this._removeUnreferencedMetasets(),s=0,a=i.length;s<a;s++){const a=i[s];let t=this.getDatasetMeta(s);var r=a.type||this.config.type;if(t.type&&t.type!==r&&(this._destroyDatasetMeta(s),t=this.getDatasetMeta(s)),t.type=r,t.indexAxis=a.indexAxis||Fs(r,this.options),t.order=a.order||0,t.index=s,t.label=\"\"+a.label,t.visible=this.isDatasetVisible(s),t.controller)t.controller.updateIndex(s),t.controller.linkScales();else{const i=M.getController(r),{datasetElementType:a,dataElementType:n}=R.datasets[r];Object.assign(i,{dataElementType:M.getElement(n),datasetElementType:a&&M.getElement(a)}),t.controller=new i(this,s),e.push(t.controller)}}return this._updateMetasets(),e}_resetElements(){k(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(\"reset\")}update(t){const s=this.config,a=(s.update(),this._options=s.createResolver(s.chartOptionScopes(),this.getContext())),r=this._animationsDisabled=!a.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins(\"beforeUpdate\",{mode:t,cancelable:!0})){var n=this.buildOrUpdateControllers();this.notifyPlugins(\"beforeElementsUpdate\");let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const s=this.getDatasetMeta(t)[\"controller\"],a=!r&&-1===n.indexOf(s);s.buildOrUpdateElements(a),i=Math.max(+s.getMaxOverflow(),i)}i=this._minPadding=a.layout.autoPadding?i:0,this._updateLayout(i),r||k(n,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins(\"afterUpdate\",{mode:t}),this._layers.sort(Gs(\"z\",\"_idx\"));var{_active:t,_lastEvent:e}=this;e?this._eventHandler(e,!0):t.length&&this._updateHoverStyles(t,t,!0),this.render()}}_updateScales(){k(this.scales,t=>{a.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){var t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);G(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){var t,e,i,s,a=this[\"_hiddenIndices\"];for({method:t,start:e,count:i}of this._getUniformDataChanges()||[]){r=void 0;n=void 0;o=void 0;s=void 0;var r=a;var n=e;var o=\"_removeElements\"===t?-i:i;const l=Object.keys(r);for(const h of l){const l=+h;l>=n&&(s=r[h],delete r[h],0<o||l>n)&&(r[l+o]=s)}}}_getUniformDataChanges(){const t=this._dataChanges;if(t&&t.length){this._dataChanges=[];var e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+\",\"+t.splice(1).join(\",\"))),s=i(0);for(let t=1;t<e;t++)if(!G(s,i(t)))return;return Array.from(s).map(t=>t.split(\",\")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}}_updateLayout(t){if(!1!==this.notifyPlugins(\"beforeLayout\",{cancelable:!0})){a.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],k(this.boxes,t=>{i&&\"chartArea\"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins(\"afterLayout\")}}_updateDatasets(i){if(!1!==this.notifyPlugins(\"beforeDatasetsUpdate\",{mode:i,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let t=0,e=this.data.datasets.length;t<e;++t)this._updateDataset(t,m(i)?i({datasetIndex:t}):i);this.notifyPlugins(\"afterDatasetsUpdate\",{mode:i})}}_updateDataset(t,e){var i=this.getDatasetMeta(t),t={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins(\"beforeDatasetUpdate\",t)&&(i.controller._update(e),t.cancelable=!1,this.notifyPlugins(\"afterDatasetUpdate\",t))}render(){!1!==this.notifyPlugins(\"beforeRender\",{cancelable:!0})&&(r.has(this)?this.attached&&!r.running(this)&&r.start(this):(this.draw(),Zs({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0)&&!1!==this.notifyPlugins(\"beforeDraw\",{cancelable:!0})){const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins(\"afterDraw\")}}_getSortedDatasetMetas(t){var e=this._sortedMetasets,i=[];let s,a;for(s=0,a=e.length;s<a;++s){const a=e[s];t&&!a.visible||i.push(a)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1!==this.notifyPlugins(\"beforeDatasetsDraw\",{cancelable:!0})){var e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;0<=t;--t)this._drawDataset(e[t]);this.notifyPlugins(\"afterDatasetsDraw\")}}_drawDataset(i){var t=this.ctx,e=i._clip,s=!e.disabled,a=function(){var{xScale:t,yScale:e}=i;if(t&&e)return{left:t.left,right:t.right,top:e.top,bottom:e.bottom}}()||this.chartArea,r={meta:i,index:i.index,cancelable:!0};!1!==this.notifyPlugins(\"beforeDatasetDraw\",r)&&(s&&Ve(t,{left:!1===e.left?0:a.left-e.left,right:!1===e.right?this.width:a.right+e.right,top:!1===e.top?0:a.top-e.top,bottom:!1===e.bottom?this.height:a.bottom+e.bottom}),i.controller.draw(),s&&Be(t),r.cancelable=!1,this.notifyPlugins(\"afterDatasetDraw\",r))}isPointInArea(t){return Fe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){e=Wi.modes[e];return\"function\"==typeof e?e(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Si(null,{chart:this,type:\"chart\"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){var e=this.data.datasets[t];return!!e&&(\"boolean\"==typeof(t=this.getDatasetMeta(t)).hidden?!t.hidden:!e.hidden)}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(e,t,i){const s=i?\"show\":\"hide\",a=this.getDatasetMeta(e),r=a.controller._resolveAnimations(void 0,s);g(t)?(a.data[t].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),r.update(a,{visible:i}),this.update(t=>t.datasetIndex===e?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){var e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),r.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins(\"beforeDestroy\");var{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Re(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ta[this.id],this.notifyPlugins(\"afterDestroy\")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const i=this._listeners,s=this.platform,e=(t,e)=>{s.addEventListener(this,t,e),i[t]=e},a=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};k(this.options.events,t=>e(t,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,s=this.platform,t=(t,e)=>{s.addEventListener(this,t,e),i[t]=e},e=(t,e)=>{i[t]&&(s.removeEventListener(this,t,e),delete i[t])},a=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const n=()=>{e(\"attach\",n),this.attached=!0,this.resize(),t(\"resize\",a),t(\"detach\",r)};r=()=>{this.attached=!1,e(\"resize\",a),this._stop(),this._resize(0,0),t(\"attach\",n)},(s.isAttached(this.canvas)?n:r)()}unbindEvents(){k(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},k(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){var s=i?\"set\":\"remove\";let a,r,n;for(\"dataset\"===e&&this.getDatasetMeta(t[0].datasetIndex).controller[\"_\"+s+\"DatasetHoverStyle\"](),r=0,n=t.length;r<n;++r){const e=(a=t[r])&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[s+\"HoverStyle\"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){var e=this._active||[],t=t.map(({datasetIndex:t,index:e})=>{var i=this.getDatasetMeta(t);if(i)return{datasetIndex:t,element:i.data[e],index:e};throw new Error(\"No dataset found at index \"+t)});N(t,e)||(this._active=t,this._lastEvent=null,this._updateHoverStyles(t,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(e){return 1===this._plugins._cache.filter(t=>t.plugin.id===e).length}_updateHoverStyles(t,e,i){var s=this.options.hover,a=(t,i)=>t.filter(e=>!i.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),r=a(e,t),i=i?t:a(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,t){var i={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},s=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1!==this.notifyPlugins(\"beforeEvent\",i,s))return t=this._handleEvent(e,t,i.inChartArea),i.cancelable=!1,this.notifyPlugins(\"afterEvent\",i,s),(t||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:a}=this,r=e,n=this._getActiveElements(t,s,i,r),o=Z(t),l=(h=t,c=this._lastEvent,i&&\"mouseout\"!==h.type?o?c:h:null);i&&(this._lastEvent=null,d(a.onHover,[t,n,this],this),o)&&d(a.onClick,[t,n,this],this);var h,c=!N(n,s);return(c||e)&&(this._active=n,this._updateHoverStyles(n,s,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){return\"mouseout\"===t.type?[]:i?(i=this.options.hover,this.getElementsAtEventForMode(t,i.mode,i,s)):e}}function ia(){k(i.instances,t=>t._plugins.invalidate())}function sa(){throw new Error(\"This method is not implemented: Check that a complete date adapter is provided.\")}var aa={_date:class Wr{static override(t){Object.assign(Wr.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return sa()}parse(){return sa()}format(){return sa()}add(){return sa()}diff(){return sa()}startOf(){return sa()}endOf(){return sa()}}};function ra(i,s,a,r){if(O(i)){var n=i,o=s,l=a,h=r,c=l.parse(n[0],h),n=l.parse(n[1],h),h=Math.min(c,n),d=Math.max(c,n);let t=h,e=d;Math.abs(h)>Math.abs(d)&&(t=d,e=h),o[l.axis]=e,o._custom={barStart:t,barEnd:e,start:c,end:n,min:h,max:d}}else s[a.axis]=a.parse(i,r);return s}function na(t,e,i,s){var a=t.iScale,r=t.vScale,n=a.getLabels(),o=a===r,l=[];let h,c,d,u;for(c=(h=i)+s;h<c;++h)u=e[h],(d={})[a.axis]=o||a.parse(n[h],h),l.push(ra(u,d,r,h));return l}function oa(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function la(t,e,i,s){return t=s?ha(t=t===e?i:t===i?e:t,i,e):ha(t,e,i)}function ha(t,e,i){return\"start\"===t?e:\"end\"===t?i:t}class ca extends Ds{static id=\"doughnut\";static defaults={datasetElementType:!1,dataElementType:\"arc\",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:\"number\",properties:[\"circumference\",\"endAngle\",\"innerRadius\",\"outerRadius\",\"startAngle\",\"x\",\"y\",\"offset\",\"borderWidth\",\"spacing\"]}},cutout:\"50%\",rotation:0,circumference:360,radius:\"100%\",spacing:0,indexAxis:\"r\"};static descriptors={_scriptable:t=>\"spacing\"!==t,_indexable:t=>\"spacing\"!==t};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){var t=s.data;if(t.labels.length&&t.datasets.length){const{pointStyle:a,color:r}=s.legend.options[\"labels\"];return t.labels.map((t,e)=>{var i=s.getDatasetMeta(0).controller.getStyle(e);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:a,hidden:!s.getDataVisibility(e),index:e}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(s,a){const r=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=r;else{let t,e,i=t=>+r[t];if(A(r[s])){const{key:s=\"value\"}=this._parsing;i=t=>+f(r[t],s)}for(e=(t=s)+a;t<e;++t)n._parsed[t]=i(t)}}_getRotation(){return L(this.options.rotation-90)}_getCircumference(){return L(this.options.circumference)}_getRotationExtents(){let e=v,i=-v;for(let t=0;t<this.chart.data.datasets.length;++t){var s,a;this.chart.isDatasetVisible(t)&&this.chart.getDatasetMeta(t).type===this._type&&(s=(a=this.chart.getDatasetMeta(t).controller)._getRotation(),a=a._getCircumference(),e=Math.min(e,s),i=Math.max(i,s+a))}return{rotation:e,circumference:i-e}}update(t){var e=this.chart[\"chartArea\"],i=this._cachedMeta,s=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(e.width,e.height)-a)/2,0),r=Math.min(V(this.options.cutout,r),1),n=this._getRingWeight(this.index),{circumference:o,rotation:l}=this._getRotationExtents(),{ratioX:l,ratioY:o,offsetX:h,offsetY:c}=function(t,e,s){let i=1,a=1,r=0,n=0;if(e<v){const o=t,l=o+e,h=Math.cos(o),c=Math.sin(o),d=Math.cos(l),u=Math.sin(l),g=(t,e,i)=>ft(t,o,l,!0)?1:Math.max(e,e*s,i,i*s),f=(t,e,i)=>ft(t,o,l,!0)?-1:Math.min(e,e*s,i,i*s),p=g(0,h,d),m=g(D,c,u),b=f(S,h,d),x=f(S+D,c,u);i=(p-b)/2,a=(m-x)/2,r=-(p+b)/2,n=-(m+x)/2}return{ratioX:i,ratioY:a,offsetX:r,offsetY:n}}(l,o,r),l=(e.width-a)/l,e=(e.height-a)/o,a=Math.max(Math.min(l,e)/2,0),o=B(this.options.radius,a),l=(o-Math.max(o*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*o,this.offsetY=c*o,i.total=this.calculateTotal(),this.outerRadius=o-l*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-l*n,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){var i=this.options,s=this._cachedMeta,a=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*a/v)}updateElements(t,e,i,s){const a=\"reset\"===s,r=this.chart,n=r.chartArea,o=r.options.animation,l=(n.left+n.right)/2,h=(n.top+n.bottom)/2,c=a&&o.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:g,includeOptions:f}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,a);for(p=e;p<e+i;++p){const e=this._circumference(p,a),i=t[p],r={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};f&&(r.options=g||this.resolveDataElementOptions(p,i.active?\"active\":s)),m+=e,this.updateElement(i,p,r,s)}}calculateTotal(){var t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){var a=t._parsed[i];null===a||isNaN(a)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(a))}return s}calculateCircumference(t){var e=this._cachedMeta.total;return 0<e&&!isNaN(t)?v*(Math.abs(t)/e):0}getLabelAndValue(t){var e=this._cachedMeta,i=this.chart,s=i.data.labels||[],e=ce(e._parsed[t],i.options.locale);return{label:s[t]||\"\",value:e}}getMaxBorderWidth(t){let e=0;var i=this.chart;let s,a,r,n,o;if(!t)for(s=0,a=i.data.datasets.length;s<a;++s)if(i.isDatasetVisible(s)){t=(r=i.getDatasetMeta(s)).data,n=r.controller;break}if(!t)return 0;for(s=0,a=t.length;s<a;++s)\"inner\"!==(o=n.resolveDataElementOptions(s)).borderAlign&&(e=Math.max(e,o.borderWidth||0,o.hoverBorderWidth||0));return e}getMaxOffset(i){let s=0;for(let t=0,e=i.length;t<e;++t){const i=this.resolveDataElementOptions(t);s=Math.max(s,i.offset||0,i.hoverOffset||0)}return s}_getRingWeightOffset(e){let i=0;for(let t=0;t<e;++t)this.chart.isDatasetVisible(t)&&(i+=this._getRingWeight(t));return i}_getRingWeight(t){return Math.max(T(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class da extends Ds{static id=\"polarArea\";static defaults={dataElementType:\"arc\",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"startAngle\",\"endAngle\",\"innerRadius\",\"outerRadius\"]}},indexAxis:\"r\",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){var t=s.data;if(t.labels.length&&t.datasets.length){const{pointStyle:a,color:r}=s.legend.options[\"labels\"];return t.labels.map((t,e)=>{var i=s.getDatasetMeta(0).controller.getStyle(e);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:a,hidden:!s.getDataVisibility(e),index:e}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:\"radialLinear\",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){var e=this._cachedMeta,i=this.chart,s=i.data.labels||[],e=ce(e._parsed[t].r,i.options.locale);return{label:s[t]||\"\",value:e}}parseObjectData(t,e,i,s){return ii.bind(this)(t,e,i,s)}update(t){var e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,e)=>{var i=this.getParsed(e).r;!isNaN(i)&&this.chart.getDataVisibility(e)&&(i<s.min&&(s.min=i),i>s.max)&&(s.max=i)}),s}_updateRadius(){var t=this.chart,e=t.chartArea,i=t.options,e=Math.min(e.right-e.left,e.bottom-e.top),e=Math.max(e/2,0),i=(e-Math.max(i.cutoutPercentage?e/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=e-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(s,a,t,r){var n=\"reset\"===r,o=this.chart,l=o.options.animation,h=this._cachedMeta.rScale,c=h.xCenter,d=h.yCenter,u=h.getIndexAngle(0)-.5*S;let g,f=u;var p=360/this.countVisibleElements();for(g=0;g<a;++g)f+=this._computeAngle(g,r,p);for(g=a;g<a+t;g++){const a=s[g];let t=f,e=f+this._computeAngle(g,r,p),i=o.getDataVisibility(g)?h.getDistanceFromCenterForValue(this.getParsed(g).r):0;f=e,n&&(l.animateScale&&(i=0),l.animateRotate)&&(t=e=u);var m={x:c,y:d,innerRadius:0,outerRadius:i,startAngle:t,endAngle:e,options:this.resolveDataElementOptions(g,a.active?\"active\":r)};this.updateElement(a,g,m,r)}}countVisibleElements(){var t=this._cachedMeta;let i=0;return t.data.forEach((t,e)=>{!isNaN(this.getParsed(e).r)&&this.chart.getDataVisibility(e)&&i++}),i}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?L(this.resolveDataElementOptions(t,e).angle||i):0}}var ua=Object.freeze({__proto__:null,BarController:class extends Ds{static id=\"bar\";static defaults={datasetElementType:!1,dataElementType:\"bar\",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"base\",\"width\",\"height\"]}}};static overrides={scales:{_index_:{type:\"category\",offset:!0,grid:{offset:!0}},_value_:{type:\"linear\",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return na(t,e,i,s)}parseArrayData(t,e,i,s){return na(t,e,i,s)}parseObjectData(t,e,i,s){var{iScale:a,vScale:r}=t,{xAxisKey:t=\"x\",yAxisKey:n=\"y\"}=this._parsing,o=\"x\"===a.axis?t:n,l=\"x\"===r.axis?t:n,h=[];let c,d,u,g;for(d=(c=i)+s;c<d;++c)g=e[c],(u={})[a.axis]=a.parse(f(g,o),c),h.push(ra(f(g,l),u,r,c));return h}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){var{iScale:e,vScale:i}=this._cachedMeta,t=this.getParsed(t),s=t._custom,s=oa(s)?\"[\"+s.start+\", \"+s.end+\"]\":\"\"+i.getLabelForValue(t[i.axis]);return{label:\"\"+e.getLabelForValue(t[e.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){var e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(e,i,s,a){var r=\"reset\"===a,{index:n,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),h=o.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(i,a);for(let t=i;t<i+s;t++){const i=this.getParsed(t),s=r||P(i[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(t),w=this._calculateBarIndexPixels(t,c),k=(i._stacks||{})[o.axis],S={horizontal:h,base:s.base,enableBorderRadius:!k||oa(i._custom)||n===k._top||n===k._bottom,x:h?s.head:w.center,y:h?w.center:s.head,height:h?w.size:Math.abs(s.size),width:h?Math.abs(s.size):w.size};u&&(S.options=d||this.resolveDataElementOptions(t,e[t].active?\"active\":a));var g=S.options||e[t].options;{f=void 0;p=void 0;m=void 0;b=void 0;x=void 0;v=void 0;_=void 0;y=void 0;M=void 0;var f=S;var p=g;var m=k;var b=n;let t=p.borderSkipped;var x,v,_,y,M,p={};t?!0===t?f.borderSkipped={top:!0,right:!0,bottom:!0,left:!0}:({start:x,end:v,reverse:_,top:y,bottom:M}=function(){let t,e,i,s,a;return i=f.horizontal?(t=f.base>f.x,e=\"left\",\"right\"):(t=f.base<f.y,e=\"bottom\",\"top\"),a=t?(s=\"end\",\"start\"):(s=\"start\",\"end\"),{start:e,end:i,reverse:t,top:s,bottom:a}}(),\"middle\"===t&&m&&(f.enableBorderRadius=!0,t=(m._top||0)===b?y:(m._bottom||0)===b?M:(p[la(M,x,v,_)]=!0,y)),p[la(t,x,v,_)]=!0,f.borderSkipped=p):f.borderSkipped=p}[m,b,M]=[S,g[\"inflateAmount\"],c.ratio],m.inflateAmount=\"auto\"===b?1===M?.33:0:b,this.updateElement(e[t],t,S,a)}}_getStacks(t,i){const e=this._cachedMeta[\"iScale\"],s=e.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),a=e.options.stacked,r=[];for(const e of s)if((void 0===i||!(t=>{var e=t.controller.getParsed(i),e=e&&e[t.vScale.axis];if(P(e)||isNaN(e))return!0})(e))&&((!1===a||-1===r.indexOf(e.stack)||void 0===a&&void 0===e.stack)&&r.push(e.stack),e.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){t=this._getStacks(t,i),i=void 0!==e?t.indexOf(e):-1;return-1===i?t.length-1:i}_getRuler(){var t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let a,r;for(a=0,r=e.data.length;a<r;++a)s.push(i.getPixelForValue(this.getParsed(a)[i.axis],a));var n=t.barThickness;return{min:n||function(t){var e=t.iScale,i=function(s,t){if(!s._cache.$bar){var a=s.getMatchingVisibleMetas(t);let i=[];for(let t=0,e=a.length;t<e;t++)i=i.concat(a[t].controller.getAllParsedValues(s));s._cache.$bar=Mt(i.sort((t,e)=>t-e))}return s._cache.$bar}(e,t.type);let s,a,r,n,o=e._length;var l=()=>{32767!==r&&-32768!==r&&(g(n)&&(o=Math.min(o,Math.abs(r-n)||o)),n=r)};for(s=0,a=i.length;s<a;++s)r=e.getPixelForValue(i[s]),l();for(n=void 0,s=0,a=e.ticks.length;s<a;++s)r=e.getPixelForTick(s),l();return o}(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:n?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:s},options:{base:a,minBarLength:r}}=this,n=a||0,o=this.getParsed(t),l=o._custom,h=oa(l);let c,d,u=o[e.axis],g=0,f=i?this.applyStack(e,o,i):u;f!==u&&(g=f-u,f=u),h&&(u=l.barStart,f=l.barEnd-l.barStart,0!==u&&_(u)!==_(l.barEnd)&&(g=0),g+=u);var p,m,b=P(a)||h?g:a;let x=e.getPixelForValue(b);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(g+f):x,d=c-x,Math.abs(d)<r){d=(b=d,p=e,m=n,(0!==b?_(b):(p.isHorizontal()?1:-1)*(p.min>=m?1:-1))*r),u===n&&(x-=d/2);const t=e.getPixelForDecimal(0),P=e.getPixelForDecimal(1),a=Math.min(t,P),l=Math.max(t,P);x=Math.max(Math.min(x,l),a),c=x+d,i&&!h&&(o._stacks[e.axis]._visualValues[s]=e.getValueForPixel(c)-e.getValueForPixel(x))}if(x===e.getPixelForValue(n)){const t=_(d)*e.getLineWidthForValue(n)/2;x+=t,d-=t}return{size:d,base:x,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,a=s.skipNull,r=T(s.maxBarThickness,1/0);let n,o;if(e.grouped){const i=a?this._getStackCount(t):e.stackCount,T=(\"flex\"===s.barThickness?function(t,e,i,s){var a=e.pixels,r=a[t];let n=0<t?a[t-1]:null,o=t<a.length-1?a[t+1]:null;a=i.categoryPercentage,null===n&&(n=r-(null===o?e.end-e.start:o-r)),null===o&&(o=r+r-n),t=r-(r-Math.min(n,o))/2*a;return{chunk:Math.abs(o-n)/2*a/s,ratio:i.barPercentage,start:t}}:function(t,e,i,s){var a=i.barThickness;let r,n;return n=P(a)?(r=e.min*i.categoryPercentage,i.barPercentage):(r=a*s,1),{chunk:r/s,ratio:n,start:e.pixels[t]-r/2}})(t,e,s,i),l=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);n=T.start+T.chunk*l+T.chunk/2,o=Math.min(r,T.chunk*T.ratio)}else n=i.getPixelForValue(this.getParsed(t)[i.axis],t),o=Math.min(r,e.min*e.ratio);return{base:n-o/2,head:n+o/2,center:n,size:o}}draw(){var t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let a=0;for(;a<s;++a)null!==this.getParsed(a)[e.axis]&&i[a].draw(this._ctx)}},BubbleController:class extends Ds{static id=\"bubble\";static defaults={datasetElementType:!1,dataElementType:\"point\",animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"borderWidth\",\"radius\"]}}};static overrides={scales:{x:{type:\"linear\"},y:{type:\"linear\"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){var a=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<a.length;t++)a[t]._custom=this.resolveDataElementOptions(t+i).radius;return a}parseArrayData(t,e,i,s){var a=super.parseArrayData(t,e,i,s);for(let t=0;t<a.length;t++){const s=e[i+t];a[t]._custom=T(s[2],this.resolveDataElementOptions(t+i).radius)}return a}parseObjectData(t,e,i,s){var a=super.parseObjectData(t,e,i,s);for(let t=0;t<a.length;t++){const s=e[i+t];a[t]._custom=T(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return a}getMaxOverflow(){var e=this._cachedMeta.data;let i=0;for(let t=e.length-1;0<=t;--t)i=Math.max(i,e[t].size(this.resolveDataElementOptions(t))/2);return 0<i&&i}getLabelAndValue(t){var e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:e,yScale:s}=e,a=this.getParsed(t),e=e.getLabelForValue(a.x),s=s.getLabelForValue(a.y),a=a._custom;return{label:i[t]||\"\",value:\"(\"+e+\", \"+s+(a?\", \"+a:\"\")+\")\"}}update(t){var e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(e,i,s,a){var r=\"reset\"===a,{iScale:n,vScale:o}=this._cachedMeta,{sharedOptions:l,includeOptions:h}=this._getSharedOptions(i,a),c=n.axis,d=o.axis;for(let t=i;t<i+s;t++){const i=e[t],s=!r&&this.getParsed(t),u={},g=u[c]=r?n.getPixelForDecimal(.5):n.getPixelForValue(s[c]),f=u[d]=r?o.getBasePixel():o.getPixelForValue(s[d]);u.skip=isNaN(g)||isNaN(f),h&&(u.options=l||this.resolveDataElementOptions(t,i.active?\"active\":a),r)&&(u.options.radius=0),this.updateElement(i,t,u,a)}}resolveDataElementOptions(t,e){var i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);t=(s=s.$shared?Object.assign({},s,{$shared:!1}):s).radius;return\"active\"!==e&&(s.radius=0),s.radius+=T(i&&i._custom,t),s}},DoughnutController:ca,LineController:class extends Ds{static id=\"line\";static defaults={datasetElementType:\"line\",dataElementType:\"point\",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:\"category\"},_value_:{type:\"linear\"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){var e=this._cachedMeta,{dataset:i,data:s=[],_dataset:a}=e,r=this.chart._animationsDisabled;let{start:n,count:o}=Ct(e,s,r);this._drawStart=n,this._drawCount=o,Ot(e)&&(n=0,o=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!a._decimated,i.points=s;e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0),e.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:e},t),this.updateElements(s,n,o,t)}updateElements(e,i,t,s){const a=\"reset\"===s,{iScale:r,vScale:n,_stacked:o,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:c}=this._getSharedOptions(i,s),d=r.axis,u=n.axis,{spanGaps:g,segment:f}=this.options,p=nt(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||a||\"none\"===s,b=i+t,x=e.length;let v=0<i&&this.getParsed(i-1);for(let t=0;t<x;++t){const g=e[t],x=m?g:{};var _,y,M,w;t<i||t>=b?x.skip=!0:(y=P((_=this.getParsed(t))[u]),M=x[d]=r.getPixelForValue(_[d],t),w=x[u]=a||y?n.getBasePixel():n.getPixelForValue(o?this.applyStack(n,_,o):_[u],t),x.skip=isNaN(M)||isNaN(w)||y,x.stop=0<t&&Math.abs(_[d]-v[d])>p,f&&(x.parsed=_,x.raw=l.data[t]),c&&(x.options=h||this.resolveDataElementOptions(t,g.active?\"active\":s)),m||this.updateElement(g,t,x,s),v=_)}}getMaxOverflow(){var t,e=this._cachedMeta,i=e.dataset,i=i.options&&i.options.borderWidth||0,e=e.data||[];return e.length?(t=e[0].size(this.resolveDataElementOptions(0)),e=e[e.length-1].size(this.resolveDataElementOptions(e.length-1)),Math.max(i,t,e)/2):i}draw(){var t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PolarAreaController:da,PieController:class extends ca{static id=\"pie\";static defaults={cutout:0,rotation:0,circumference:360,radius:\"100%\"}},RadarController:class extends Ds{static id=\"radar\";static defaults={datasetElementType:\"line\",dataElementType:\"point\",indexAxis:\"r\",showLine:!0,elements:{line:{fill:\"start\"}}};static overrides={aspectRatio:1,scales:{r:{type:\"radialLinear\"}}};getLabelAndValue(t){var e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:\"\"+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return ii.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],a=e.iScale.getLabels();if(i.points=s,\"resize\"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);var r={_loop:!0,_fullLoop:a.length===s.length,options:e};this.updateElement(i,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(e,i,s,a){var r=this._cachedMeta.rScale,n=\"reset\"===a;for(let t=i;t<i+s;t++){const i=e[t],s=this.resolveDataElementOptions(t,i.active?\"active\":a),o=r.getPointPositionForValue(t,this.getParsed(t).r),l=n?r.xCenter:o.x,h=n?r.yCenter:o.y,c={x:l,y:h,angle:o.angle,skip:isNaN(l)||isNaN(h),options:s};this.updateElement(i,t,c,a)}}},ScatterController:class extends Ds{static id=\"scatter\";static defaults={datasetElementType:!1,dataElementType:\"point\",showLine:!1,fill:!1};static overrides={interaction:{mode:\"point\"},scales:{x:{type:\"linear\"},y:{type:\"linear\"}}};getLabelAndValue(t){var e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:e,yScale:s}=e,a=this.getParsed(t),e=e.getLabelForValue(a.x),s=s.getLabelForValue(a.y);return{label:i[t]||\"\",value:\"(\"+e+\", \"+s+\")\"}}update(t){var e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:a,count:r}=Ct(e,i,s);if(this._drawStart=a,this._drawCount=r,Ot(e)&&(a=0,r=i.length),this.options.showLine){const{dataset:a,_dataset:r}=e;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!r._decimated,a.points=i;e=this.resolveDatasetElementOptions(t);e.segment=this.options.segment,this.updateElement(a,void 0,{animated:!s,options:e},t)}this.updateElements(i,a,r,t)}addElements(){var t=this.options[\"showLine\"];!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement(\"line\")),super.addElements()}updateElements(e,i,s,a){const r=\"reset\"===a,{iScale:n,vScale:o,_stacked:l,_dataset:h}=this._cachedMeta,t=this.resolveDataElementOptions(i,a),c=this.getSharedOptions(t),d=this.includeOptions(a,c),u=n.axis,g=o.axis,{spanGaps:f,segment:p}=this.options,m=nt(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||r||\"none\"===a;let x=0<i&&this.getParsed(i-1);for(let t=i;t<i+s;++t){const i=e[t],s=this.getParsed(t),f=b?i:{},v=P(s[g]),_=f[u]=n.getPixelForValue(s[u],t),y=f[g]=r||v?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,s,l):s[g],t);f.skip=isNaN(_)||isNaN(y)||v,f.stop=0<t&&Math.abs(s[u]-x[u])>m,p&&(f.parsed=s,f.raw=h.data[t]),d&&(f.options=c||this.resolveDataElementOptions(t,i.active?\"active\":a)),b||this.updateElement(i,t,f,a),x=s}this.updateSharedOptions(c,a,t)}getMaxOverflow(){var t,e,i=this._cachedMeta,s=i.data||[];if(this.options.showLine)return i=(i=i.dataset).options&&i.options.borderWidth||0,s.length?(t=s[0].size(this.resolveDataElementOptions(0)),e=s[s.length-1].size(this.resolveDataElementOptions(s.length-1)),Math.max(i,t,e)/2):i;{let e=0;for(let t=s.length-1;0<=t;--t)e=Math.max(e,s[t].size(this.resolveDataElementOptions(t))/2);return 0<e&&e}}}});function ga(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function fa(t,e,i,s,a,r){var{x:n,y:o,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),h=0<c?c+s+i+h:0;let u=0;var g=a-l;if(s){const t=((0<c?c-s:0)+(0<d?d-s:0))/2;u=(g-(0!=t?g*t/(t+s):g))/2}var c=(g-Math.max(.001,g*d-i/S)/d)/2,g=l+c+u,l=a-c-u,{outerStart:c,outerEnd:f,innerStart:p,innerEnd:m}=function(t,e,i,s){t=_i(t.options.borderRadius,[\"outerStart\",\"outerEnd\",\"innerStart\",\"innerEnd\"]);const a=(i-e)/2,r=Math.min(a,s*e/2),n=t=>{var e=(i-Math.min(a,t))*s/2;return C(t,0,Math.min(a,e))};return{outerStart:n(t.outerStart),outerEnd:n(t.outerEnd),innerStart:C(t.innerStart,0,r),innerEnd:C(t.innerEnd,0,r)}}(e,h,d,l-g),b=d-c,x=d-f,v=g+c/b,_=l-f/x,y=h+p,M=h+m,w=g+p/y,k=l-m/M;if(t.beginPath(),r){const e=(v+_)/2;if(t.arc(n,o,d,v,e),t.arc(n,o,d,e,_),0<f){const e=ga(x,_,n,o);t.arc(e.x,e.y,f,_,l+D)}const i=ga(M,l,n,o);if(t.lineTo(i.x,i.y),0<m){const e=ga(M,k,n,o);t.arc(e.x,e.y,m,l+D,k+Math.PI)}const s=(l-m/h+(g+p/h))/2;if(t.arc(n,o,h,l-m/h,s,!0),t.arc(n,o,h,s,g+p/h,!0),0<p){const e=ga(y,w,n,o);t.arc(e.x,e.y,p,w+Math.PI,g-D)}const a=ga(b,g,n,o);if(t.lineTo(a.x,a.y),0<c){const e=ga(b,v,n,o);t.arc(e.x,e.y,c,g-D,v)}}else{t.moveTo(n,o);const e=Math.cos(v)*d+n,i=Math.sin(v)*d+o,s=(t.lineTo(e,i),Math.cos(_)*d+n),a=Math.sin(_)*d+o;t.lineTo(s,a)}t.closePath()}function pa(t,e,i=e){t.lineCap=T(i.borderCapStyle,e.borderCapStyle),t.setLineDash(T(i.borderDash,e.borderDash)),t.lineDashOffset=T(i.borderDashOffset,e.borderDashOffset),t.lineJoin=T(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=T(i.borderWidth,e.borderWidth),t.strokeStyle=T(i.borderColor,e.borderColor)}function ma(t,e,i){t.lineTo(i.x,i.y)}function ba(t,e,i={}){var t=t.length,{start:i=0,end:s=t-1}=i,{start:a,end:r}=e,n=Math.max(i,a),o=Math.min(s,r);return{count:t,start:n,loop:e.loop,ilen:o<n&&!(i<a&&s<a||r<i&&r<s)?t+o-n:o-n}}function xa(t,e,i,s){const{points:a,options:r}=e,{count:n,start:o,loop:l,ilen:h}=ba(a,i,s),c=r.stepped?Ne:r.tension||\"monotone\"===r.cubicInterpolationMode?We:ma;let d,u,g,{move:f=!0,reverse:p}=s||{};for(d=0;d<=h;++d)(u=a[(o+(p?h-d:d))%n]).skip||(f?(t.moveTo(u.x,u.y),f=!1):c(t,g,u,p,r.stepped),g=u);return l&&(u=a[(o+(p?h:0))%n],c(t,g,u,p,r.stepped)),!!l}function va(t,e,i,s){const a=e.points,{count:r,start:n,ilen:o}=ba(a,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,g,f,p,m=0,b=0;var x=t=>(n+(h?o-t:t))%r,v=()=>{g!==f&&(t.lineTo(m,f),t.lineTo(m,g),t.lineTo(m,p))};for(l&&(d=a[x(0)],t.moveTo(d.x,d.y)),c=0;c<=o;++c)if(!(d=a[x(c)]).skip){const e=d.x,i=d.y,s=0|e;s===u?(i<g?g=i:i>f&&(f=i),m=(b*m+e)/++b):(v(),t.lineTo(e,i),u=s,b=0,g=f=i),p=i}v()}function _a(t){var e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||\"monotone\"===e.cubicInterpolationMode||e.stepped||i?xa:va}const ya=\"function\"==typeof Path2D;class Ma extends e{static id=\"line\";static defaults={borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:\"default\",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:\"backgroundColor\",borderColor:\"borderColor\"};static descriptors={_scriptable:!0,_indexable:t=>\"borderDash\"!==t&&\"fill\"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){var i,s=this.options;!s.tension&&\"monotone\"!==s.cubicInterpolationMode||s.stepped||this._pointsUpdated||(i=s.spanGaps?this._loop:this._fullLoop,hi(this._points,s,t,i,e),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ei(this,this.options.segment))}first(){var t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){var t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(i,s){var a=this.options,r=i[s],n=this.points,o=Li(this,{property:s,start:r,end:r});if(o.length){var l,h=[],c=a.stepped?pi:a.tension||\"monotone\"===a.cubicInterpolationMode?mi:fi;let e,t;for(e=0,t=o.length;e<t;++e){const{start:t,end:d}=o[e],u=n[t],g=n[d];u===g?h.push(u):((l=c(u,g,Math.abs((r-u[s])/(g[s]-u[s])),a.stepped))[s]=i[s],h.push(l))}return 1===h.length?h[0]:h}}pathSegment(t,e,i){return _a(this)(t,this,e,i)}path(t,e,i){var s=this.segments,a=_a(this);let r=this._loop;e=e||0,i=i||this.points.length-e;for(const n of s)r&=a(t,this,n,{start:e,end:e+i-1});return!!r}draw(t,e,i,s){var a,r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),r=t,a=this,i=i,s=s,(ya&&!a.options.segment?function(t,e,i,s){let a=e._path;a||(a=e._path=new Path2D,e.path(a,i,s)&&a.closePath()),pa(t,e.options),t.stroke(a)}:function(t,e,i,s){var{segments:a,options:r}=e,n=_a(e);for(const o of a)pa(t,r,o.style),t.beginPath(),n(t,e,o,{start:i,end:i+s-1})&&t.closePath(),t.stroke()})(r,a,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function wa(t,e,i,s){var a=t.options,{[i]:t}=t.getProps([i],s);return Math.abs(e-t)<a.radius+a.hitRadius}function ka(t,e){var{x:e,y:i,base:s,width:a,height:r}=t.getProps([\"x\",\"y\",\"base\",\"width\",\"height\"],e);let n,o,l,h,c;return h=t.horizontal?(c=r/2,n=Math.min(e,s),o=Math.max(e,s),l=i-c,i+c):(c=a/2,n=e-c,o=e+c,l=Math.min(i,s),Math.max(i,s)),{left:n,top:l,right:o,bottom:h}}function Sa(t,e,i,s){return t?0:C(e,i,s)}function Pa(t,e,i,s){var a=null===e,r=null===i,t=t&&!(a&&r)&&ka(t,s);return t&&(a||c(e,t.left,t.right))&&(r||c(i,t.top,t.bottom))}function Da(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ca(t,e,i={}){var s=t.x!==i.x?-e:0,a=t.y!==i.y?-e:0,r=(t.x+t.w!==i.x+i.w?e:0)-s,i=(t.y+t.h!==i.y+i.h?e:0)-a;return{x:t.x+s,y:t.y+a,w:t.w+r,h:t.h+i,radius:t.radius}}var Oa=Object.freeze({__proto__:null,ArcElement:class extends e{static id=\"arc\";static defaults={borderAlign:\"center\",borderColor:\"#fff\",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:\"backgroundColor\"};constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){var{angle:t,distance:e}=dt(this.getProps([\"x\",\"y\"],i),{x:t,y:e}),{startAngle:i,endAngle:s,innerRadius:a,outerRadius:r,circumference:n}=this.getProps([\"startAngle\",\"endAngle\",\"innerRadius\",\"outerRadius\",\"circumference\"],i),o=this.options.spacing/2,n=T(n,s-i)>=v||ft(t,i,s),t=c(e,a+o,r+o);return n&&t}getCenterPoint(t){var{x:t,y:e,startAngle:i,endAngle:s,innerRadius:a,outerRadius:r}=this.getProps([\"x\",\"y\",\"startAngle\",\"endAngle\",\"innerRadius\",\"outerRadius\"],t),{offset:n,spacing:o}=this.options,i=(i+s)/2,s=(a+r+o+n)/2;return{x:t+Math.cos(i)*s,y:e+Math.sin(i)*s}}tooltipPosition(t){return this.getCenterPoint(t)}draw(e){var{options:i,circumference:s}=this,a=(i.offset||0)/4,r=(i.spacing||0)/2,n=i.circular;if(this.pixelMargin=\"inner\"===i.borderAlign?.33:0,this.fullCircles=s>v?Math.floor(s/v):0,!(0===s||this.innerRadius<0||this.outerRadius<0)){e.save();var o=(this.startAngle+this.endAngle)/2,o=(e.translate(Math.cos(o)*a,Math.sin(o)*a),a*(1-Math.sin(Math.min(S,s||0))));e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor;{var l=e;a=this;s=o;i=r;var h=n;var{fullCircles:c,startAngle:d,circumference:u}=a;let t=a.endAngle;if(c){fa(l,a,s,i,t,h);for(let t=0;t<c;++t)l.fill();isNaN(u)||(t=d+(u%v||v))}fa(l,a,s,i,t,h),l.fill()}var g=e,d=this,u=o,a=r,s=n,{fullCircles:f,startAngle:i,circumference:h,options:o}=d,{borderWidth:r,borderJoinStyle:n}=o,o=\"inner\"===o.borderAlign;if(r){o?(g.lineWidth=2*r,g.lineJoin=n||\"round\"):(g.lineWidth=r,g.lineJoin=n||\"bevel\");let t=d.endAngle;if(f){fa(g,d,u,a,t,s);for(let t=0;t<f;++t)g.stroke();isNaN(h)||(t=i+(h%v||v))}if(o){r=g;n=d;i=t;var{startAngle:n,pixelMargin:h,x:o,y:p,outerRadius:m,innerRadius:b}=n,x=h/m;r.beginPath(),r.arc(o,p,m,n-x,i+x),h<b?r.arc(o,p,b,i+(x=h/b),n-x,!0):r.arc(o,p,h,i+D,n-D),r.closePath(),r.clip()}f||(fa(g,d,u,a,t,s),g.stroke())}e.restore()}}},LineElement:Ma,PointElement:class extends e{static id=\"point\";static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:\"circle\",radius:3,rotation:0};static defaultRoutes={backgroundColor:\"backgroundColor\",borderColor:\"borderColor\"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){var s=this.options,{x:i,y:a}=this.getProps([\"x\",\"y\"],i);return Math.pow(t-i,2)+Math.pow(e-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return wa(this,t,\"x\",e)}inYRange(t,e){return wa(this,t,\"y\",e)}getCenterPoint(t){var{x:t,y:e}=this.getProps([\"x\",\"y\"],t);return{x:t,y:e}}size(t){var e=(t=t||this.options||{}).radius||0;return 2*((e=Math.max(e,e&&t.hoverRadius||0))+(e&&t.borderWidth||0))}draw(t,e){var i=this.options;this.skip||i.radius<.1||!Fe(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Ie(t,i,this.x,this.y))}getRange(){var t=this.options||{};return t.radius+t.hitRadius}},BarElement:class extends e{static id=\"bar\";static defaults={borderSkipped:\"start\",borderWidth:0,borderRadius:0,inflateAmount:\"auto\",pointStyle:void 0};static defaultRoutes={backgroundColor:\"backgroundColor\",borderColor:\"borderColor\"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){var e,i,s,a,r,n,o,{inflateAmount:l,options:{borderColor:h,backgroundColor:c}}=this,{inner:d,outer:u}=(s=ka(e=this),a=s.right-s.left,r=s.bottom-s.top,u=a/2,n=r/2,o=(i=e).options.borderWidth,i=i.borderSkipped,o=yi(o),n={t:Sa(i.top,o.top,0,n),r:Sa(i.right,o.right,0,u),b:Sa(i.bottom,o.bottom,0,n),l:Sa(i.left,o.left,0,u)},i=a/2,o=r/2,e=(u=e).getProps([\"enableBorderRadius\"]).enableBorderRadius,d=u.options.borderRadius,g=Mi(d),i=Math.min(i,o),o=u.borderSkipped,e={topLeft:Sa(!(u=e||A(d))||o.top||o.left,g.topLeft,0,i),topRight:Sa(!u||o.top||o.right,g.topRight,0,i),bottomLeft:Sa(!u||o.bottom||o.left,g.bottomLeft,0,i),bottomRight:Sa(!u||o.bottom||o.right,g.bottomRight,0,i)},{outer:{x:s.left,y:s.top,w:a,h:r,radius:e},inner:{x:s.left+n.l,y:s.top+n.t,w:a-n.l-n.r,h:r-n.t-n.b,radius:{topLeft:Math.max(0,e.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,e.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,e.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,e.bottomRight-Math.max(n.b,n.r))}}}),g=(o=u.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?je:Da;t.save(),u.w===d.w&&u.h===d.h||(t.beginPath(),g(t,Ca(u,l,d)),t.clip(),g(t,Ca(d,-l,u)),t.fillStyle=h,t.fill(\"evenodd\")),t.beginPath(),g(t,Ca(d,l)),t.fillStyle=c,t.fill(),t.restore()}inRange(t,e,i){return Pa(this,t,e,i)}inXRange(t,e){return Pa(this,t,null,e)}inYRange(t,e){return Pa(this,null,t,e)}getCenterPoint(t){var{x:t,y:e,base:i,horizontal:s}=this.getProps([\"x\",\"y\",\"base\",\"horizontal\"],t);return{x:s?(t+i)/2:t,y:s?e:(e+i)/2}}getRange(t){return\"x\"===t?this.width/2:this.height/2}}});function Aa(t){var e=this.getLabels();return 0<=t&&t<e.length?e[t]:t}function Ta(t,e,{horizontal:i,minRotation:s}){s=L(s),i=(i?Math.sin(s):Math.cos(s))||.001;return Math.min(e/i,.75*e*(\"\"+t).length)}class La extends Rs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return P(t)||(\"number\"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const t=this.options[\"beginAtZero\"],{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:a}=this;var r,n=t=>s=e?s:t,o=t=>a=i?a:t;if(t){const t=_(s),e=_(a);t<0&&e<0?o(0):0<t&&0<e&&n(0)}s===a&&(r=0===a?1:Math.abs(.05*a),o(a+r),t||n(s-r)),this.min=s,this.max=a}getTickLimit(){let t,{maxTicksLimit:e,stepSize:i}=this.options.ticks;return i?1e3<(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1)&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3):(t=this.computeTickLimit(),e=e||11),t=e?Math.min(e,t):t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){var t=this.options,e=t.ticks,i=this.getTickLimit(),i=function(t,e){var i=[],{bounds:s,step:a,min:r,max:n,precision:o,count:l,maxTicks:h,maxDigits:c,includeBounds:d}=t,u=a||1,g=h-1,{min:e,max:f}=e,p=!P(r),m=!P(n),b=!P(l),c=(f-e)/(c+1);let x,v,_,y,M=at((f-e)/g/u)*u;if(M<1e-14&&!p&&!m)return[{value:e},{value:f}];(y=Math.ceil(f/M)-Math.floor(e/M))>g&&(M=at(y*M/g/u)*u),P(o)||(x=Math.pow(10,o),M=Math.ceil(M*x)/x),_=\"ticks\"===s?(v=Math.floor(e/M)*M,Math.ceil(f/M)*M):(v=e,f),p&&m&&a&&ot((n-r)/a,M/1e3)?(y=Math.round(Math.min((n-r)/M,h)),M=(n-r)/y,v=r,_=n):b?(v=p?r:v,_=m?n:_,y=l-1,M=(_-v)/y):y=st(y=(_-v)/M,Math.round(y),M/1e3)?Math.round(y):Math.ceil(y);g=Math.max(ct(M),ct(v));x=Math.pow(10,P(o)?g:o),v=Math.round(v*x)/x,_=Math.round(_*x)/x;let w=0;for(p&&(d&&v!==r?(i.push({value:r}),v<r&&w++,st(Math.round((v+w*M)*x)/x,r,Ta(r,c,t))&&w++):v<r&&w++);w<y;++w)i.push({value:Math.round((v+w*M)*x)/x});return m&&d&&_!==n?i.length&&st(i[i.length-1].value,n,Ta(n,c,t))?i[i.length-1].value=n:i.push({value:n}):m&&_!==n||i.push({value:_}),i}({maxTicks:Math.max(2,i),bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return\"ticks\"===t.bounds&<(i,this,\"value\"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){var t=this.ticks;let e=this.min,i=this.max;super.configure(),this.options.offset&&t.length&&(t=(i-e)/Math.max(t.length-1,1)/2,e-=t,i+=t),this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ce(t,this.chart.options.locale,this.options.ticks.format)}}class Ea extends La{static id=\"linear\";static defaults={ticks:{callback:ue.formatters.numeric}};determineDataLimits(){var{min:t,max:e}=this.getMinMax(!0);this.min=p(t)?t:0,this.max=p(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){var t=this.isHorizontal(),e=t?this.width:this.height,i=L(this.options.ticks.minRotation),t=(t?Math.sin(i):Math.cos(i))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,i.lineHeight/t))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Ra=t=>Math.floor(o(t)),Ia=(t,e)=>Math.pow(10,Ra(t)+e);function za(t){return 1==t/Math.pow(10,Ra(t))}function Fa(t,e,i){i=Math.pow(10,i),t=Math.floor(t/i);return Math.ceil(e/i)-t}class Va extends Rs{static id=\"logarithmic\";static defaults={ticks:{callback:ue.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){t=La.prototype.parse.apply(this,[t,e]);if(0!==t)return p(t)&&0<t?t:null;this._zero=!0}determineDataLimits(){var{min:t,max:e}=this.getMinMax(!0);this.min=p(t)?Math.max(0,t):null,this.max=p(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!p(this._userMin)&&(this.min=t===Ia(this.min,0)?Ia(this.min,-1):Ia(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:i}=this.getUserBounds();let s=this.min,a=this.max;var t=t=>s=e?s:t,r=t=>a=i?a:t;s===a&&(s<=0?(t(1),r(10)):(t(Ia(s,-1)),r(Ia(a,1)))),s<=0&&t(Ia(a,-1)),a<=0&&r(Ia(s,1)),this.min=s,this.max=a}buildTicks(){var t=this.options,e=function(t,{min:e,max:i}){e=u(t.min,e);var s=[],a=Ra(e);let r=function(t,e){let i=Ra(e-t);for(;10<Fa(t,e,i);)i++;for(;Fa(t,e,i)<10;)i--;return Math.min(i,Ra(t))}(e,i),n=r<0?Math.pow(10,Math.abs(r)):1;var o=Math.pow(10,r),l=a>r?Math.pow(10,a):0,a=Math.round((e-l)*n)/n,h=Math.floor((e-l)/o/10)*o*10;let c=Math.floor((a-h)/Math.pow(10,r)),d=u(t.min,Math.round((l+h+c*Math.pow(10,r))*n)/n);for(;d<i;)s.push({value:d,major:za(d),significand:c}),10<=c?c=c<15?15:20:c++,20<=c&&(r++,c=2,n=0<=r?1:n),d=Math.round((l+h+c*Math.pow(10,r))*n)/n;return e=u(t.max,d),s.push({value:e,major:za(e),significand:c}),s}({min:this._userMin,max:this._userMax},this);return\"ticks\"===t.bounds&<(e,this,\"value\"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?\"0\":ce(t,this.chart.options.locale,this.options.ticks.format)}configure(){var t=this.min;super.configure(),this._startValue=o(t),this._valueRange=o(this.max)-o(t)}getPixelForValue(t){return null===(t=void 0!==t&&0!==t?t:this.min)||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(o(t)-this._startValue)/this._valueRange)}getValueForPixel(t){t=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+t*this._valueRange)}}function Ba(t){var e=t.ticks;if(e.display&&t.display){const t=I(e.backdropPadding);return T(e.font&&e.font.size,R.font.size)+t.height}return 0}function Na(t,e,i,s,a){return t===s||t===a?{start:e-i/2,end:e+i/2}:t<s||a<t?{start:e-i,end:e}:{start:e,end:e+i}}function Wa(e){const i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},s=Object.assign({},i),a=[],r=[],n=e._pointLabels.length,o=e.options.pointLabels,l=o.centerPointLabels?S/n:0;for(let t=0;t<n;t++){const n=o.setContext(e.getPointLabelContext(t));r[t]=n.padding;var h=e.getPointPosition(t,e.drawingArea+r[t],l),c=z(n.font),d=(d=e.ctx,c=c,u=O(u=e._pointLabels[t])?u:[u],{w:Le(d,c.string,u),h:u.length*c.lineHeight}),u=(a[t]=d,y(e.getIndexAngle(t)+l)),c=Math.round(ht(u));{g=void 0;f=void 0;p=void 0;m=void 0;b=void 0;x=void 0;var g=s;var f=i;var p=u;var m=Na(c,h.x,d.w,0,180);var b=Na(c,h.y,d.h,90,270);var x=Math.abs(Math.sin(p)),p=Math.abs(Math.cos(p));let t=0,e=0;m.start<f.l?(t=(f.l-m.start)/x,g.l=Math.min(g.l,f.l-t)):m.end>f.r&&(t=(m.end-f.r)/x,g.r=Math.max(g.r,f.r+t)),b.start<f.t?(e=(f.t-b.start)/p,g.t=Math.min(g.t,f.t-e)):b.end>f.b&&(e=(b.end-f.b)/p,g.b=Math.max(g.b,f.b+e))}}var d,u;e.setCenterPoint(i.l-s.l,s.r-i.r,i.t-s.t,s.b-i.b),e._pointLabelItems=function(e,i,s){const a=[],r=e._pointLabels.length,t=e.options,n=Ba(t)/2,o=e.drawingArea,l=t.pointLabels.centerPointLabels?S/r:0;for(let t=0;t<r;t++){const r=e.getPointPosition(t,o+n+s[t],l),u=Math.round(ht(y(r.angle+D))),g=i[t],f=(h=r.y,c=g.h,90===(d=u)||270===d?h-=c/2:(270<d||d<90)&&(h-=c),h),p=0===(d=u)||180===d?\"center\":d<180?\"left\":\"right\",m=(c=r.x,h=g.w,\"right\"===(d=p)?c-=h:\"center\"===d&&(c-=h/2),c);a.push({x:r.x,y:f,textAlign:p,left:m,top:f,right:m+g.w,bottom:f+g.h})}var h,c,d;return a}(e,a,r)}function Ha(e,i,t,s){var a=e[\"ctx\"];if(t)a.arc(e.xCenter,e.yCenter,i,0,v);else{var r=e.getPointPosition(0,i);a.moveTo(r.x,r.y);for(let t=1;t<s;t++)r=e.getPointPosition(t,i),a.lineTo(r.x,r.y)}}class ja extends La{static id=\"radialLinear\";static defaults={display:!0,animate:!0,position:\"chartArea\",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ue.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={\"angleLines.color\":\"borderColor\",\"pointLabels.color\":\"color\",\"ticks.color\":\"color\"};static descriptors={angleLines:{_fallback:\"grid\"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){var t=this._padding=I(Ba(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){var{min:t,max:e}=this.getMinMax(!1);this.min=p(t)&&!isNaN(t)?t:0,this.max=p(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ba(this.options))}generateTickLabels(t){La.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{t=d(this.options.pointLabels.callback,[t,e],this);return t||0===t?t:\"\"}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){var t=this.options;t.display&&t.pointLabels.display?Wa(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return y(t*(v/(this._pointLabels.length||1))+L(this.options.startAngle||0))}getDistanceFromCenterForValue(t){var e;return P(t)?NaN:(e=this.drawingArea/(this.max-this.min),this.options.reverse?(this.max-t)*e:(t-this.min)*e)}getValueForDistanceFromCenter(t){return P(t)?NaN:(t=t/(this.drawingArea/(this.max-this.min)),this.options.reverse?this.max-t:this.min+t)}getPointLabelContext(t){var e=this._pointLabels||[];if(0<=t&&t<e.length)return e=e[t],Si(this.getContext(),{label:e,index:t,type:\"pointLabel\"})}getPointPosition(t,e,i=0){t=this.getIndexAngle(t)-D+i;return{x:Math.cos(t)*e+this.xCenter,y:Math.sin(t)*e+this.yCenter,angle:t}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){var{left:t,top:e,right:i,bottom:s}=this._pointLabelItems[t];return{left:t,top:e,right:i,bottom:s}}drawBackground(){var t,{backgroundColor:e,grid:{circular:i}}=this.options;e&&((t=this.ctx).save(),t.beginPath(),Ha(this,this.getDistanceFromCenterForValue(this._endValue),i,this._pointLabels.length),t.closePath(),t.fillStyle=e,t.fill(),t.restore())}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:l,border:h}=e,c=this._pointLabels.length;let s,d,a;if(e.pointLabels.display){var r=this,n=c;const{ctx:o,options:{pointLabels:u}}=r;for(let t=n-1;0<=t;t--){const n=u.setContext(r.getPointLabelContext(t)),g=z(n.font),{x:f,y:p,textAlign:m,left:b,top:x,right:v,bottom:_}=r._pointLabelItems[t],y=n[\"backdropColor\"];if(!P(y)){const r=Mi(n.borderRadius),P=I(n.backdropPadding),u=(o.fillStyle=y,b-P.left),M=x-P.top,w=v-b+P.width,k=_-x+P.height;Object.values(r).some(t=>0!==t)?(o.beginPath(),je(o,{x:u,y:M,w:w,h:k,radius:r}),o.fill()):o.fillRect(u,M,w,k)}He(o,r._pointLabels[t],f,p+g.lineHeight/2,g,{color:n.color,textAlign:m,textBaseline:\"middle\"})}}if(l.display&&this.ticks.forEach((t,e)=>{var i,s,a,r,n,o;0!==e&&(d=this.getDistanceFromCenterForValue(t.value),t=this.getContext(e),e=l.setContext(t),t=h.setContext(t),i=this,e=e,s=d,a=c,t=t,r=i.ctx,n=e.circular,{color:e,lineWidth:o}=e,!n&&!a||!e||!o||s<0||(r.save(),r.strokeStyle=e,r.lineWidth=o,r.setLineDash(t.dash),r.lineDashOffset=t.dashOffset,r.beginPath(),Ha(i,s,n,a),r.closePath(),r.stroke(),r.restore()))}),i.display){for(t.save(),s=c-1;0<=s;s--){const P=i.setContext(this.getPointLabelContext(s)),{color:l,lineWidth:h}=P;h&&l&&(t.lineWidth=h,t.strokeStyle=l,t.setLineDash(P.borderDash),t.lineDashOffset=P.borderDashOffset,d=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(s,d),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const n=this.ctx,o=this.options,l=o.ticks;if(l.display){var t=this.getIndexAngle(0);let a,r;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(t),n.textAlign=\"center\",n.textBaseline=\"middle\",this.ticks.forEach((t,e)=>{if(0!==e||o.reverse){var i=l.setContext(this.getContext(e)),s=z(i.font);if(a=this.getDistanceFromCenterForValue(this.ticks[e].value),i.showLabelBackdrop){n.font=s.string,r=n.measureText(t.label).width,n.fillStyle=i.backdropColor;const o=I(i.backdropPadding);n.fillRect(-r/2-o.left,-a-s.size/2-o.top,r+o.width,s.size+o.height)}He(n,t.label,0,-a,s,{color:i.color})}}),n.restore()}}drawTitle(){}}const Ya={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},h=Object.keys(Ya);function $a(t,e){return t-e}function Ua(t,e){if(P(e))return null;var i=t._adapter,{parser:t,round:s,isoWeekday:a}=t._parseOpts;let r=e;return null===(r=p(r=\"function\"==typeof t?t(r):r)?r:\"string\"==typeof t?i.parse(r,t):i.parse(r))?null:+(r=s?\"week\"!==s||!nt(a)&&!0!==a?i.startOf(r,s):i.startOf(r,\"isoWeek\",a):r)}function Xa(e,i,s,a){const r=h.length;for(let t=h.indexOf(e);t<r-1;++t){const e=Ya[h[t]],r=e.steps||Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((s-i)/(r*e.size))<=a)return h[t]}return h[r-1]}function qa(t,e,i){var s,a;i?i.length&&({lo:s,hi:a}=mt(i,e),t[i[s]>=e?i[s]:i[a]]=!0):t[e]=!0}function Ka(i,t,s){var a=[],r={},e=t.length;let n,o;for(n=0;n<e;++n)r[o=t[n]]=n,a.push({value:o,major:!1});if(0!==e&&s){var l=a,h=r,c=s,d=i._adapter,s=+d.startOf(l[0].value,c),u=l[l.length-1].value;let t,e;for(t=s;t<=u;t=+d.add(t,1,c))0<=(e=h[t])&&(l[e].major=!0);return l}return a}class Ga extends Rs{static id=\"time\";static defaults={bounds:\"data\",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:\"millisecond\",displayFormats:{}},ticks:{source:\"auto\",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit=\"day\",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){var i=t.time||(t.time={}),s=this._adapter=new aa._date(t.adapters.date);s.init(e),$(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Ua(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){var t=this.options,e=this._adapter,i=t.time.unit||\"day\";let{min:s,max:a,minDefined:r,maxDefined:n}=this.getUserBounds();function o(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),n||isNaN(t.max)||(a=Math.max(a,t.max))}r&&n||(o(this._getLabelBounds()),\"ticks\"===t.bounds&&\"labels\"===t.ticks.source)||o(this.getMinMax(!1)),s=p(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),a=p(a)&&!isNaN(a)?a:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){var t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){var t=this.options,e=t.time,i=t.ticks,s=\"labels\"===i.source?this.getLabelTimestamps():this._generate(),a=(\"ticks\"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]),this.min),r=xt(s,a,this.max);return this._unit=e.unit||(i.autoSkip?Xa(e.minUnit,this.min,this.max,this._getLabelCapacity(a)):function(e,i,s,a,r){for(let t=h.length-1;t>=h.indexOf(s);t--){const s=h[t];if(Ya[s].common&&e._adapter.diff(r,a,s)>=i-1)return s}return h[s?h.indexOf(s):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&\"year\"!==this._unit?function(i){for(let t=h.indexOf(i)+1,e=h.length;t<e;++t)if(Ya[h[t]].common)return h[t]}(this._unit):void 0,this.initOffsets(s),t.reverse&&r.reverse(),Ka(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e,i,s=0,a=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),a=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);t=t.length<3?.5:.25;s=C(s,0,t),a=C(a,0,t),this._offsets={start:s,end:a,factor:1/(s+1+a)}}_generate(){var t=this._adapter,e=this.min,i=this.max,s=this.options,a=s.time,r=a.unit||Xa(a.minUnit,e,i,this._getLabelCapacity(e)),n=T(s.ticks.stepSize,1),a=\"week\"===r&&a.isoWeekday,o=nt(a)||!0===a,l={};let h,c,d=e;if(o&&(d=+t.startOf(d,\"isoWeek\",a)),d=+t.startOf(d,o?\"day\":r),t.diff(i,e,r)>1e5*n)throw new Error(e+\" and \"+i+\" are too far apart with stepSize of \"+n+\" \"+r);var u=\"data\"===s.ticks.source&&this.getDataTimestamps();for(h=d,c=0;h<i;h=+t.add(h,n,r),c++)qa(l,h,u);return h!==i&&\"ticks\"!==s.bounds&&1!==c||qa(l,h,u),Object.keys(l).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){var e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){var i=this.options.time.displayFormats,s=this._unit,e=e||i[s];return this._adapter.format(t,e)}_tickFormatFunction(t,e,i,s){var a,r=this.options,n=r.ticks.callback;return n?d(n,[t,e,i],this):(n=r.time.displayFormats,r=this._unit,a=this._majorUnit,r=r&&n[r],n=a&&n[a],i=i[e],e=a&&n&&i&&i.major,this._adapter.format(t,s||(e?n:r)))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)(s=t[e]).label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){var e=this._offsets,t=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+t)*e.factor)}getValueForPixel(t){var e=this._offsets,t=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+t*(this.max-this.min)}_getLabelSize(t){var e=this.options.ticks,t=this.ctx.measureText(t).width,e=L(this.isHorizontal()?e.maxRotation:e.minRotation),i=Math.cos(e),e=Math.sin(e),s=this._resolveTickFontOptions(0).size;return{w:t*i+s*e,h:t*e+s*i}}_getLabelCapacity(t){var e=this.options.time,i=e.displayFormats,e=i[e.unit]||i.millisecond,i=this._tickFormatFunction(t,0,Ka(this,[t],this._majorUnit),e),t=this._getLabelSize(i),e=Math.floor(this.isHorizontal()?this.width/t.w:this.height/t.h)-1;return 0<e?e:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;var s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){var t=this._cache.labels||[];let e,i;if(t.length)return t;var s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(Ua(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Mt(t.sort($a))}}function Za(t,e,i){let s,a,r,n,o=0,l=t.length-1;i?(e>=t[o].pos&&e<=t[l].pos&&({lo:o,hi:l}=b(t,\"pos\",e)),{pos:s,time:r}=t[o],{pos:a,time:n}=t[l]):(e>=t[o].time&&e<=t[l].time&&({lo:o,hi:l}=b(t,\"time\",e)),{time:s,pos:r}=t[o],{time:a,pos:n}=t[l]);i=a-s;return i?r+(n-r)*(e-s)/i:r}var Ja=Object.freeze({__proto__:null,CategoryScale:class extends Rs{static id=\"category\";static defaults={ticks:{callback:Aa}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){var e=this._addedLabels;if(e.length){const t=this.getLabels();for(var{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){var i,s,a,r,n,o,l;return P(t)||(i=this.getLabels(),r=e=isFinite(e)&&i[e]===t?e:(s=i,a=T(e,t=t),r=this._addedLabels,-1===(l=s.indexOf(t))?(o=a,r=r,\"string\"==typeof(n=t)?(o=s.push(n)-1,r.unshift({index:o,label:n})):isNaN(n)&&(o=null),o):l!==s.lastIndexOf(t)?a:l),n=i.length-1,null===r)?null:C(Math.round(r),0,n)}determineDataLimits(){var{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);\"ticks\"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){var e=this.min,i=this.max,t=this.options.offset,s=[];let a=this.getLabels();a=0===e&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(t?0:1),1),this._startValue=this.min-(t?.5:0);for(let t=e;t<=i;t++)s.push({value:t});return s}getLabelForValue(t){return Aa.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return null===(t=\"number\"!=typeof t?this.parse(t):t)?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:Ea,LogarithmicScale:Va,RadialLinearScale:ja,TimeScale:Ga,TimeSeriesScale:class extends Ga{static id=\"timeseries\";static defaults=Ga.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){var t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Za(e,this.min),this._tableRange=Za(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){var{min:e,max:i}=this,s=[],a=[];let r,n,o,l,h;for(r=0,n=t.length;r<n;++r)(l=t[r])>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,n=s.length;r<n;++r)h=s[r+1],o=s[r-1],l=s[r],Math.round((h+o)/2)!==l&&a.push({time:l,pos:r/(n-1)});return a}_getTimestampsForTable(){var t,e,i=this._cache.all||[];return i.length||(t=this.getDataTimestamps(),e=this.getLabelTimestamps(),i=t.length&&e.length?this.normalize(t.concat(e)):t.length?t:e,i=this._cache.all=i),i}getDecimalForValue(t){return(Za(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){var e=this._offsets,t=this.getDecimalForPixel(t)/e.factor-e.end;return Za(this._table,t*this._tableRange+this._minPos,!0)}}});const Qa=[\"rgb(54, 162, 235)\",\"rgb(255, 99, 132)\",\"rgb(255, 159, 64)\",\"rgb(255, 205, 86)\",\"rgb(75, 192, 192)\",\"rgb(153, 102, 255)\",\"rgb(201, 203, 207)\"],tr=Qa.map(t=>t.replace(\"rgb(\",\"rgba(\").replace(\")\",\", 0.5)\"));function er(t){return Qa[t%Qa.length]}function ir(t){return tr[t%tr.length]}function sr(r){let n=0;return(t,e)=>{var i,s,a,e=r.getDatasetMeta(e).controller;e instanceof ca?n=(s=t,a=n,s.backgroundColor=s.data.map(()=>er(a++)),a):e instanceof da?n=(s=t,i=n,s.backgroundColor=s.data.map(()=>ir(i++)),i):e&&(n=(e=t,t=n,e.borderColor=er(t),e.backgroundColor=ir(t),++t))}}function ar(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return 1}var rr={id:\"colors\",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){var s,a,r;i.enabled&&({data:{datasets:s},options:a}=t.config,r=a[\"elements\"],!i.forceOverride&&(ar(s)||a&&(a.borderColor||a.backgroundColor)||r&&ar(r))||(i=sr(t),s.forEach(i)))}};function nr(t){var e;t._decimated&&(e=t._data,delete t._decimated,delete t._data,Object.defineProperty(t,\"data\",{configurable:!0,enumerable:!0,writable:!0,value:e}))}function or(t){t.data.datasets.forEach(t=>{nr(t)})}var lr={id:\"decimation\",defaults:{algorithm:\"min-max\",enabled:!1},beforeElementsUpdate:(o,t,M)=>{if(M.enabled){const l=o.width;o.data.datasets.forEach((e,t)=>{var{_data:i,indexAxis:s}=e,h=o.getDatasetMeta(t),a=i||e.data;if(\"y\"!==wi([s,o.options.indexAxis])&&h.controller.supportsDecimation){t=o.scales[h.xAxisID];if((\"linear\"===t.type||\"time\"===t.type)&&!o.options.parsing){var{start:r,count:n}=function(t){var e=t.length;let i,s=0;var a=h[\"iScale\"],{min:r,max:n,minDefined:o,maxDefined:l}=a.getUserBounds();return o&&(s=C(b(t,a.axis,r).lo,0,e-1)),i=l?C(b(t,a.axis,n).hi+1,s,e)-s:e-s,{start:s,count:i}}(a);if(n<=(M.threshold||4*l))nr(e);else{let t;switch(P(i)&&(e._data=a,delete e.data,Object.defineProperty(e,\"data\",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),M.algorithm){case\"lttb\":t=function(s,a,r,t){var e=M.samples||t;if(r<=e)return s.slice(a,a+r);var n=[],o=(r-2)/(e-2);let l=0;const h=a+r-1;let c,d,u,g,f,p=a;for(n[l++]=s[p],c=0;c<e-2;c++){let t,e=0,i=0;const h=Math.floor((c+1)*o)+1+a,_=Math.min(Math.floor((c+2)*o)+1,r)+a,y=_-h;for(t=h;t<_;t++)e+=s[t].x,i+=s[t].y;e/=y,i/=y;var m=Math.floor(c*o)+1+a,b=Math.min(Math.floor((c+1)*o)+1,r)+a,{x,y:v}=s[p];for(u=-1,t=m;t<b;t++)(g=.5*Math.abs((x-e)*(s[t].y-v)-(x-s[t].x)*(i-v)))>u&&(u=g,d=s[t],f=t);n[l++]=d,p=f}return n[l++]=s[h],n}(a,r,n,l);break;case\"min-max\":t=function(t,e,i,s){let a,r,n,o,l,h,c,d,u,g,f=0,p=0;var m=[],b=t[e].x,x=t[e+i-1].x-b;for(a=e;a<e+i;++a){n=((r=t[a]).x-b)/x*s,o=r.y;const e=0|n;if(e===l)o<u?(u=o,h=a):o>g&&(g=o,c=a),f=(p*f+r.x)/++p;else{const i=a-1;if(!P(h)&&!P(c)){const e=Math.min(h,c),P=Math.max(h,c);e!==d&&e!==i&&m.push({...t[e],x:f}),P!==d&&P!==i&&m.push({...t[P],x:f})}0<a&&i!==d&&m.push(t[i]),m.push(r),l=e,p=0,u=g=o,h=c=d=a}}return m}(a,r,n,l);break;default:throw new Error(`Unsupported decimation algorithm '${M.algorithm}'`)}e._decimated=t}}}})}else or(o)},destroy(t){or(t)}};function hr(i,s,a,t){if(!t){let t=s[i],e=a[i];return\"angle\"===i&&(t=y(t),e=y(e)),{property:i,start:t,end:e}}}function cr(t,e,i){for(;t<e;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function dr(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function ur(e,t){let i=[],s=!1;return(i=O(e)?(s=!0,e):function(t){const{x:i=null,y:s=null}=e||{},a=t.points,r=[];return t.segments.forEach(({start:t,end:e})=>{e=cr(t,e,a);t=a[t],e=a[e];null!==s?(r.push({x:t.x,y:s}),r.push({x:e.x,y:s})):null!==i&&(r.push({x:i,y:t.y}),r.push({x:i,y:e.y}))}),r}(t)).length?new Ma({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function gr(t){return t&&!1!==t.fill}function fr(e,i,s){var a=[];for(let t=0;t<s.length;t++){var{first:r,last:n,point:o}=function(t,e,i){const s=t.interpolate(e,i);if(!s)return{};var a=s[i],r=t.segments,n=t.points;let o=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],s=n[e.start][i],h=n[e.end][i];if(c(a,s,h)){o=a===s,l=a===h;break}}return{first:o,last:l,point:s}}(s[t],i,\"x\");if(!(!o||r&&n))if(r)a.unshift(o);else if(e.push(o),!n)break}e.push(...a)}class pr{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){var{x:s,y:a,radius:r}=this;return e=e||{start:0,end:v},t.arc(s,a,r,e.end,e.start,!0),!i.bounds}interpolate(t){var{x:e,y:i,radius:s}=this,t=t.angle;return{x:e+Math.cos(t)*s,y:i+Math.sin(t)*s,angle:t}}}function mr(t){var e,i,{chart:s,fill:a,line:r}=t;if(p(a))return e=a,(i=(s=s).getDatasetMeta(e))&&s.isDatasetVisible(e)?i.dataset:null;if(\"stack\"!==a)return\"shape\"===a||((s=function(t){if((t.scale||{}).getPointPositionForValue){var e=t;const{scale:a,fill:r}=e,n=a.options,o=a.getLabels().length,l=n.reverse?a.max:a.min,h=(e=r,s=a,\"start\"===e?l:\"end\"===e?s.options.reverse?s.min:s.max:A(e)?e.value:s.getBaseValue()),c=[];if(n.grid.circular){const e=a.getPointPositionForValue(0,l);return new pr({x:e.x,y:e.y,radius:a.getDistanceFromCenterForValue(h)})}for(let t=0;t<o;++t)c.push(a.getPointPositionForValue(t,h));return c}var i=t,{scale:e={},fill:i}=i,s=function(t,e){let i=null;return\"start\"===t?i=e.bottom:\"end\"===t?i=e.top:A(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(p(s)){const i=e.isHorizontal();return{x:i?s:null,y:i?null:s}}return null}(t))instanceof pr?s:ur(s,r));{const{scale:n,index:o,line:l}=t,h=[],c=l.segments,d=l.points,u=function(t,e){var i=[],s=t.getMatchingVisibleMetas(\"line\");for(let t=0;t<s.length;t++){var a=s[t];if(a.index===e)break;a.hidden||i.unshift(a.dataset)}return i}(n,o);u.push(ur({x:null,y:n.bottom},l));for(let t=0;t<c.length;t++){const n=c[t];for(let t=n.start;t<=n.end;t++)fr(h,d[t],u)}return new Ma({points:h,options:{}})}}function br(t,e,i){var s,a=mr(e),{line:e,scale:r,axis:n}=e,o=e.options,l=o.fill,o=o.backgroundColor,{above:l=o,below:o=o}=l||{};a&&e.points.length&&(Ve(t,i),s=t,{line:a,target:l,above:o,below:i,area:r,scale:n}=e={line:e,target:a,above:l,below:o,area:i,scale:r,axis:n},e=a._loop?\"angle\":e.axis,s.save(),\"x\"===e&&i!==o&&(xr(s,l,r.top),vr(s,{line:a,target:l,color:o,scale:n,property:e}),s.restore(),s.save(),xr(s,l,r.bottom)),vr(s,{line:a,target:l,color:i,scale:n,property:e}),s.restore(),Be(t))}function xr(t,e,i){const{segments:s,points:a}=e;let r=!0,n=!1;t.beginPath();for(const o of s){const{start:s,end:l}=o,h=a[s],c=a[cr(s,l,a)];r?(t.moveTo(h.x,h.y),r=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),(n=!!e.pathSegment(t,o,{move:n}))?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function vr(e,i){const{line:s,target:a,property:r,color:n,scale:o}=i,l=function(t,e,i){const s=t.segments,a=t.points,r=e.points,n=[];for(const t of s){var{start:o,end:l}=t,l=cr(o,l,a),h=hr(i,a[o],a[l],t.loop);if(e.segments){var c=Li(e,h);for(const e of c){const s=hr(i,r[e.start],r[e.end],e.loop),d=Ti(t,a,s);for(const t of d)n.push({source:t,target:e,start:{[i]:dr(h,s,\"start\",Math.max)},end:{[i]:dr(h,s,\"end\",Math.min)}})}}else n.push({source:t,target:h,start:a[o],end:a[l]})}return n}(s,a,r);for(const{source:i,target:p,start:m,end:b}of l){const{style:{backgroundColor:l=n}={}}=i,x=!0!==a;e.save(),e.fillStyle=l,f=g=u=d=c=h=void 0;var h=e,c=o,d=x&&hr(r,m,b),{top:c,bottom:u}=c.chart.chartArea,{property:d,start:g,end:f}=d||{},d=(\"x\"===d&&(h.beginPath(),h.rect(g,c,f-g,u-c),h.clip()),e.beginPath(),!!s.pathSegment(e,i));let t;if(x){d?e.closePath():_r(e,a,b,r);const i=!!a.pathSegment(e,p,{move:d,reverse:!0});(t=d&&i)||_r(e,a,m,r)}e.closePath(),e.fill(t?\"evenodd\":\"nonzero\"),e.restore()}}function _r(t,e,i,s){e=e.interpolate(i,s);e&&t.lineTo(e.x,e.y)}var yr={id:\"filler\",afterDatasetsUpdate(t,e,i){var s,a,r,n,o,l,h=(t.data.datasets||[]).length,c=[];let d,u,g,f;for(u=0;u<h;++u)g=(d=t.getDatasetMeta(u)).dataset,f=null,g&&g.options&&g instanceof Ma&&(f={visible:t.isDatasetVisible(u),index:u,fill:(s=g,a=u,r=h,l=o=n=void 0,A(l=function(){var t=s.options,e=t.fill;let i=T(e&&e.target,e);return!1!==(i=void 0===i?!!t.backgroundColor:i)&&null!==i&&(!0===i?\"origin\":i)}())?!isNaN(l.value)&&l:p(o=parseFloat(l))&&Math.floor(o)===o?(n=l[0],o=o,!((o=\"-\"!==n&&\"+\"!==n?o:a+o)===a||o<0||r<=o)&&o):0<=[\"origin\",\"start\",\"end\",\"stack\",\"shape\"].indexOf(l)&&l),chart:t,axis:d.controller.options.indexAxis,scale:d.vScale,line:g}),d.$filler=f,c.push(f);for(u=0;u<h;++u)(f=c[u])&&!1!==f.fill&&(f.fill=function(t,e,i){let s=t[e].fill;var a,r=[e];if(!i)return s;for(;!1!==s&&-1===r.indexOf(s);){if(!p(s))return s;if(!(a=t[s]))return!1;if(a.visible)return s;r.push(s),s=a.fill}return!1}(c,u,i.propagate))},beforeDraw(e,t,i){var s=\"beforeDraw\"===i.drawTime,a=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let t=a.length-1;0<=t;--t){const i=a[t].$filler;i&&(i.line.updateControlPoints(r,i.axis),s)&&i.fill&&br(e.ctx,i,r)}},beforeDatasetsDraw(e,t,i){if(\"beforeDatasetsDraw\"===i.drawTime){var s=e.getSortedVisibleDatasetMetas();for(let t=s.length-1;0<=t;--t){const i=s[t].$filler;gr(i)&&br(e.ctx,i,e.chartArea)}}},beforeDatasetDraw(t,e,i){e=e.meta.$filler;gr(e)&&\"beforeDatasetDraw\"===i.drawTime&&br(t.ctx,e,t.chartArea)},defaults:{propagate:!0,drawTime:\"beforeDatasetDraw\"}};const Mr=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class wr extends e{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let t=d(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(t=>i.filter(t,this.chart.data))),i.sort&&(t=t.sort((t,e)=>i.sort(t,e,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){var{options:i,ctx:s}=this;if(i.display){var a=i.labels,r=z(a.font),n=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Mr(a,n);let t,e;s.font=r.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(o,n,a,l)+10):(e=this.maxHeight,t=this._fitCols(o,r,a,l)+10),this.width=Math.min(t,i.maxWidth||this.maxWidth),this.height=Math.min(e,i.maxHeight||this.maxHeight)}else this.width=this.height=0}_fitRows(t,i,s,a){const{ctx:r,maxWidth:n,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],h=this.lineWidths=[0],c=a+o;let d=t,u=(r.textAlign=\"left\",r.textBaseline=\"middle\",-1),g=-c;return this.legendItems.forEach((t,e)=>{t=s+i/2+r.measureText(t.text).width;(0===e||h[h.length-1]+t+2*o>n)&&(d+=c,h[h.length-(0<e?0:1)]=0,g+=c,u++),l[e]={left:0,top:g,row:u,width:t,height:a},h[h.length-1]+=t+o}),d}_fitCols(t,o,l,h){const{ctx:c,maxHeight:e,options:{labels:{padding:d}}}=this,u=this.legendHitBoxes=[],g=this.columnSizes=[],f=e-t;let p=d,m=0,b=0,x=0,v=0;return this.legendItems.forEach((t,e)=>{n=l,i=o,s=c,a=t,r=h;var i,s,a,r,{itemWidth:t,itemHeight:n}={itemWidth:function(t,e,i){let s=a.text;return s&&\"string\"!=typeof s&&(s=s.reduce((t,e)=>t.length>e.length?t:e)),t+e.size/2+i.measureText(s).width}(n,i,s),itemHeight:function(t){let e=r;return e=\"string\"!=typeof a.text?kr(a,t):e}(i.lineHeight)};0<e&&b+n+2*d>f&&(p+=m+d,g.push({width:m,height:b}),x+=m+d,v++,m=b=0),u[e]={left:x,top:b,col:v,width:t,height:n},m=Math.max(m,t),b+=n+d}),p+=m,g.push({width:m,height:b}),p}adjustHitBoxes(){if(this.options.display){var i=this._computeTitleHeight(),{legendHitBoxes:s,options:{align:a,labels:{padding:r},rtl:t}}=this,n=Pi(t,this.left,this.width);if(this.isHorizontal()){let t=0,e=E(a,this.left+r,this.right-this.lineWidths[t]);for(const o of s)t!==o.row&&(t=o.row,e=E(a,this.left+r,this.right-this.lineWidths[t])),o.top+=this.top+i+r,o.left=n.leftForLtr(n.x(e),o.width),e+=o.width+r}else{let t=0,e=E(a,this.top+i+r,this.bottom-this.columnSizes[t].height);for(const l of s)l.col!==t&&(t=l.col,e=E(a,this.top+i+r,this.bottom-this.columnSizes[t].height)),l.top=e,l.left+=this.left+r,l.left=n.leftForLtr(n.x(l.left),l.width),e+=l.height+r}}}isHorizontal(){return\"top\"===this.options.position||\"bottom\"===this.options.position}draw(){var t;this.options.display&&(Ve(t=this.ctx,this),this._draw(),Be(t))}_draw(){const{options:h,columnSizes:c,lineWidths:d,ctx:u}=this,{align:g,labels:f}=h,p=R.color,m=Pi(h.rtl,this.left,this.width),b=z(f.font),x=f[\"padding\"],v=b.size,_=v/2;let y;this.drawTitle(),u.textAlign=m.textAlign(\"left\"),u.textBaseline=\"middle\",u.lineWidth=.5,u.font=b.string;const{boxWidth:M,boxHeight:w,itemHeight:k}=Mr(f,v),S=this.isHorizontal(),P=this._computeTitleHeight(),D=(y=S?{x:E(g,this.left+x,this.right-d[0]),y:this.top+x+P,line:0}:{x:this.left+x,y:E(g,this.top+P+x,this.bottom-c[0].height),line:0},Di(this.ctx,h.textDirection),k+x);this.legendItems.forEach((t,e)=>{u.strokeStyle=t.fontColor,u.fillStyle=t.fontColor;var i=u.measureText(t.text).width,s=m.textAlign(t.textAlign||(t.textAlign=f.textAlign)),i=M+_+i;let a=y.x,r=y.y;m.setWidth(this.width),S?0<e&&a+i+x>this.right&&(r=y.y+=D,y.line++,a=y.x=E(g,this.left+x,this.right-d[y.line])):0<e&&r+D>this.bottom&&(a=y.x=a+c[y.line].width+x,y.line++,r=y.y=E(g,this.top+P+x,this.bottom-c[y.line].height));var e=m.x(a),n=r,o=t;if(!(isNaN(M)||M<=0||isNaN(w)||w<0)){u.save();var l=T(o.lineWidth,1);if(u.fillStyle=T(o.fillStyle,p),u.lineCap=T(o.lineCap,\"butt\"),u.lineDashOffset=T(o.lineDashOffset,0),u.lineJoin=T(o.lineJoin,\"miter\"),u.lineWidth=l,u.strokeStyle=T(o.strokeStyle,p),u.setLineDash(T(o.lineDash,[])),f.usePointStyle){const p={radius:w*Math.SQRT2/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:l},T=m.xPlus(e,M/2);ze(u,p,T,n+_,f.pointStyleWidth&&M)}else{const f=n+Math.max((v-w)/2,0),p=m.leftForLtr(e,M),T=Mi(o.borderRadius);u.beginPath(),Object.values(T).some(t=>0!==t)?je(u,{x:p,y:f,w:M,h:w,radius:T}):u.rect(p,f,M,w),u.fill(),0!==l&&u.stroke()}u.restore()}if(a=Dt(s,a+M+_,S?a+i:this.right,h.rtl),n=m.x(a),e=r,o=t,He(u,o.text,n,e+k/2,b,{strikethrough:o.hidden,textAlign:m.textAlign(o.textAlign)}),S)y.x+=i+x;else if(\"string\"!=typeof t.text){const h=b.lineHeight;y.y+=kr(t,h)}else y.y+=D}),Ci(this.ctx,h.textDirection)}drawTitle(){const s=this.options,a=s.title,r=z(a.font),n=I(a.padding);if(a.display){var o=Pi(s.rtl,this.left,this.width),l=this.ctx,h=a.position,c=r.size/2,c=n.top+c;let t,e=this.left,i=this.width;if(this.isHorizontal())i=Math.max(...this.lineWidths),t=this.top+c,e=E(s.align,e,this.right-i);else{const a=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);t=c+E(s.align,this.top,this.bottom-a-s.labels.padding-this._computeTitleHeight())}c=E(h,e,e+i);l.textAlign=o.textAlign(Pt(h)),l.textBaseline=\"middle\",l.strokeStyle=a.color,l.fillStyle=a.color,l.font=r.string,He(l,a.text,c,t,r)}}_computeTitleHeight(){var t=this.options.title,e=z(t.font),i=I(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,a;if(c(t,this.left,this.right)&&c(e,this.top,this.bottom))for(a=this.legendHitBoxes,i=0;i<a.length;++i)if(c(t,(s=a[i]).left,s.left+s.width)&&c(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){var e,i,s,a=this.options;(\"mousemove\"!==(e=t.type)&&\"mouseout\"!==e||!a.onHover&&!a.onLeave)&&(!a.onClick||\"click\"!==e&&\"mouseup\"!==e)||(e=this._getLegendItemAt(t.x,t.y),\"mousemove\"===t.type||\"mouseout\"===t.type?(s=null!==(i=this._hoveredItem)&&null!==e&&i.datasetIndex===e.datasetIndex&&i.index===e.index,i&&!s&&d(a.onLeave,[t,i,this],this),(this._hoveredItem=e)&&!s&&d(a.onHover,[t,e,this],this)):e&&d(a.onClick,[t,e,this],this))}}function kr(t,e){return e*(t.text?t.text.length+.5:0)}var Sr={id:\"legend\",_element:wr,start(t,e,i){var s=t.legend=new wr({ctx:t.ctx,options:i,chart:t});a.configure(t,s,i),a.addBox(t,s)},stop(t){a.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){var s=t.legend;a.configure(t,s,i),s.options=i},afterUpdate(t){t=t.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:\"top\",align:\"center\",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){var s=e.datasetIndex,i=i.chart;i.isDatasetVisible(s)?(i.hide(s),e.hidden=!0):(i.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const s=t.data.datasets,{usePointStyle:a,pointStyle:r,textAlign:n,color:o,useBorderRadius:l,borderRadius:h}=t.legend.options[\"labels\"];return t._getSortedDatasetMetas().map(t=>{var e=t.controller.getStyle(a?0:void 0),i=I(e.borderWidth);return{text:s[t.index].label,fillStyle:e.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:(i.width+i.height)/4,strokeStyle:e.borderColor,pointStyle:r||e.pointStyle,rotation:e.rotation,textAlign:n||e.textAlign,borderRadius:l&&(h||e.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:\"center\",text:\"\"}},descriptors:{_scriptable:t=>!t.startsWith(\"on\"),labels:{_scriptable:t=>![\"generateLabels\",\"filter\",\"sort\"].includes(t)}}};class Pr extends e{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){var i=this.options;this.left=0,this.top=0,i.display?(this.width=this.right=t,this.height=this.bottom=e,t=O(i.text)?i.text.length:1,this._padding=I(i.padding),e=t*z(i.font).lineHeight+this._padding.height,this.isHorizontal()?this.height=e:this.width=e):this.width=this.height=this.right=this.bottom=0}isHorizontal(){var t=this.options.position;return\"top\"===t||\"bottom\"===t}_drawArgs(t){var{top:e,left:i,bottom:s,right:a,options:r}=this,n=r.align;let o,l,h,c=0;return o=this.isHorizontal()?(l=E(n,i,a),h=e+t,a-i):(c=\"left\"===r.position?(l=i+t,h=E(n,s,e),-.5*S):(l=a-t,h=E(n,e,s),.5*S),s-e),{titleX:l,titleY:h,maxWidth:o,rotation:c}}draw(){var t,e,i,s,a,r=this.ctx,n=this.options;n.display&&(e=(t=z(n.font)).lineHeight/2+this._padding.top,{titleX:e,titleY:i,maxWidth:s,rotation:a}=this._drawArgs(e),He(r,n.text,0,0,t,{color:n.color,maxWidth:s,rotation:a,textAlign:Pt(n.align),textBaseline:\"middle\",translation:[e,i]}))}}var Dr={id:\"title\",_element:Pr,start(t,e,i){var s;t=t,i=i,s=new Pr({ctx:t.ctx,options:i,chart:t}),a.configure(t,s,i),a.addBox(t,s),t.titleBlock=s},stop(t){var e=t.titleBlock;a.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){var s=t.titleBlock;a.configure(t,s,i),s.options=i},defaults:{align:\"center\",display:!1,font:{weight:\"bold\"},fullSize:!0,padding:10,position:\"top\",text:\"\",weight:2e3},defaultRoutes:{color:\"color\"},descriptors:{_scriptable:!0,_indexable:!1}};const Cr=new WeakMap;var Or={id:\"subtitle\",start(t,e,i){var s=new Pr({ctx:t.ctx,options:i,chart:t});a.configure(t,s,i),a.addBox(t,s),Cr.set(t,s)},stop(t){a.removeBox(t,Cr.get(t)),Cr.delete(t)},beforeUpdate(t,e,i){var s=Cr.get(t);a.configure(t,s,i),s.options=i},defaults:{align:\"center\",display:!1,font:{weight:\"normal\"},fullSize:!0,padding:0,position:\"top\",text:\"\",weight:1500},defaultRoutes:{color:\"color\"},descriptors:{_scriptable:!0,_indexable:!1}};const Ar={average(t){if(!t.length)return!1;let e,i,s=0,a=0,r=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,a+=t.y,++r}}return{x:s/r,y:a/r}},nearest(t,e){if(!t.length)return!1;let i,s,a,r=e.x,n=e.y,o=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=ut(e,s.getCenterPoint());t<o&&(o=t,a=s)}}if(a){const t=a.tooltipPosition();r=t.x,n=t.y}return{x:r,y:n}}};function x(t,e){return e&&(O(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Tr(t){return(\"string\"==typeof t||t instanceof String)&&-1<t.indexOf(\"\\n\")?t.split(\"\\n\"):t}function Lr(t,e){const i=t.chart.ctx,{body:s,footer:a,title:r}=t,{boxWidth:n,boxHeight:o}=e,l=z(e.bodyFont),h=z(e.titleFont),c=z(e.footerFont),d=r.length,u=a.length,g=s.length,f=I(e.padding);let p=f.height,m=0,b=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0),x=(b+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b&&(p+=g*(e.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(b-g)*l.lineHeight+(b-1)*e.bodySpacing),u&&(p+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing),0);function v(t){m=Math.max(m,i.measureText(t).width+x)}return i.save(),i.font=h.string,k(t.title,v),i.font=l.string,k(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?n+2+e.boxPadding:0,k(s,t=>{k(t.before,v),k(t.lines,v),k(t.after,v)}),x=0,i.font=c.string,k(t.footer,v),i.restore(),{width:m+=f.width,height:p}}function Er(i,t,s){var e=s.yAlign||t.yAlign||function(){var{y:t,height:e}=s;return t<e/2?\"top\":t>i.height-e/2?\"bottom\":\"center\"}();return{xAlign:s.xAlign||t.xAlign||function(a,r,n,t){var{x:e,width:i}=n,{width:s,chartArea:{left:o,right:l}}=a;let h=\"center\";return\"center\"===t?h=e<=(o+l)/2?\"left\":\"right\":e<=i/2?h=\"left\":s-i/2<=e&&(h=\"right\"),h=function(t){var{x:e,width:i}=n,s=r.caretSize+r.caretPadding;return\"left\"===t&&e+i+s>a.width||\"right\"===t&&e-i-s<0}(h)?\"center\":h}(i,t,s,e),yAlign:e}}function Rr(t,i,e,s){var{caretSize:t,caretPadding:a,cornerRadius:r}=t,{xAlign:n,yAlign:o}=e,l=t+a,{topLeft:e,topRight:a,bottomLeft:r,bottomRight:h}=Mi(r);let c=function(){let{x:t,width:e}=i;return\"right\"===n?t-=e:\"center\"===n&&(t-=e/2),t}();var d=function(){let{y:t,height:e}=i;return\"top\"===o?t+=l:t-=\"bottom\"===o?e+l:e/2,t}();return\"center\"===o?\"left\"===n?c+=l:\"right\"===n&&(c-=l):\"left\"===n?c-=Math.max(e,r)+t:\"right\"===n&&(c+=Math.max(a,h)+t),{x:C(c,0,s.width-i.width),y:C(d,0,s.height-i.height)}}function Ir(t,e,i){i=I(i.padding);return\"center\"===e?t.x+t.width/2:\"right\"===e?t.x+t.width-i.right:t.x+i.left}function zr(t){return x([],Tr(t))}function Fr(t,e){e=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return e?t.override(e):t}const Vr={beforeTitle:t,title(t){if(0<t.length){var t=t[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&\"dataset\"===this.options.mode)return t.dataset.label||\"\";if(t.label)return t.label;if(0<i&&t.dataIndex<i)return e[t.dataIndex]}return\"\"},afterTitle:t,beforeBody:t,beforeLabel:t,label(t){if(this&&this.options&&\"dataset\"===this.options.mode)return t.label+\": \"+t.formattedValue||t.formattedValue;let e=t.dataset.label||\"\";e&&(e+=\": \");t=t.formattedValue;return P(t)||(e+=t),e},labelColor(t){t=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){t=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:t,afterBody:t,beforeFooter:t,footer:t,afterFooter:t};function w(t,e,i,s){t=t[e].call(i,s);return void 0===t?Vr[e].call(i,s):t}class Br extends e{static positioners=Ar;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){var t,e=this._cachedAnimations;return e||(e=this.chart,e=(t=this.options.setContext(this.getContext())).enabled&&e.options.animation&&t.animations,t=new ms(this.chart,e),e._cacheable&&(this._cachedAnimations=Object.freeze(t)),t)}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),Si(t,{tooltip:this,tooltipItems:this._tooltipItems,type:\"tooltip\"})));var t}getTitle(t,e){var e=e[\"callbacks\"],i=w(e,\"beforeTitle\",this,t),s=w(e,\"title\",this,t),e=w(e,\"afterTitle\",this,t),t=x([],Tr(i));return t=x(t,Tr(s)),x(t,Tr(e))}getBeforeBody(t,e){return zr(w(e.callbacks,\"beforeBody\",this,t))}getBody(t,e){const s=e[\"callbacks\"],a=[];return k(t,t=>{var e={before:[],lines:[],after:[]},i=Fr(s,t);x(e.before,Tr(w(i,\"beforeLabel\",this,t))),x(e.lines,w(i,\"label\",this,t)),x(e.after,Tr(w(i,\"afterLabel\",this,t))),a.push(e)}),a}getAfterBody(t,e){return zr(w(e.callbacks,\"afterBody\",this,t))}getFooter(t,e){var e=e[\"callbacks\"],i=w(e,\"beforeFooter\",this,t),s=w(e,\"footer\",this,t),e=w(e,\"afterFooter\",this,t),t=x([],Tr(i));return t=x(t,Tr(s)),x(t,Tr(e))}_createItems(s){const t=this._active,a=this.chart.data,i=[],r=[],n=[];let e,o,l=[];for(e=0,o=t.length;e<o;++e)l.push(function(t,e){var{element:e,datasetIndex:i,index:s}=e,a=t.getDatasetMeta(i).controller,{label:r,value:n}=a.getLabelAndValue(s);return{chart:t,label:r,parsed:a.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:n,dataset:a.getDataset(),dataIndex:s,datasetIndex:i,element:e}}(this.chart,t[e]));return s.filter&&(l=l.filter((t,e,i)=>s.filter(t,e,i,a))),k(l=s.itemSort?l.sort((t,e)=>s.itemSort(t,e,a)):l,t=>{var e=Fr(s.callbacks,t);i.push(w(e,\"labelColor\",this,t)),r.push(w(e,\"labelPointStyle\",this,t)),n.push(w(e,\"labelTextColor\",this,t))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=n,this.dataPoints=l}update(t,e){var i=this.options.setContext(this.getContext()),s=this._active;let a,r=[];if(s.length){const t=Ar[i.position].call(this,s,this._eventPosition),e=(r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i),this._size=Lr(this,i)),n=Object.assign({},t,e),o=Er(this.chart,i,n),l=Rr(i,n,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,a={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){t=this.getCaretPosition(t,i,s);e.lineTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineTo(t.x3,t.y3)}getCaretPosition(t,e,i){var{xAlign:s,yAlign:a}=this,{caretSize:i,cornerRadius:r}=i,{topLeft:r,topRight:n,bottomLeft:o,bottomRight:l}=Mi(r),{x:t,y:h}=t,{width:e,height:c}=e;let d,u,g,f,p,m;return\"center\"===a?(p=h+c/2,m=\"left\"===s?(d=t,u=d-i,f=p+i,p-i):(d=t+e,u=d+i,f=p-i,p+i),g=d):(u=\"left\"===s?t+Math.max(r,o)+i:\"right\"===s?t+e-Math.max(n,l)-i:this.caretX,g=\"top\"===a?(f=h,p=f-i,d=u-i,u+i):(f=h+c,p=f+i,d=u+i,u-i),m=f),{x1:d,x2:u,x3:g,y1:f,y2:p,y3:m}}drawTitle(t,e,i){var s=this.title,a=s.length;let r,n,o;if(a){var l=Pi(i.rtl,this.x,this.width);for(t.x=Ir(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline=\"middle\",r=z(i.titleFont),n=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,o=0;o<a;++o)e.fillText(s[o],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n,o+1===a&&(t.y+=i.titleMarginBottom-n)}}_drawColorBox(t,e,i,s,a){const r=this.labelColors[i],n=this.labelPointStyles[i],{boxHeight:o,boxWidth:l,boxPadding:h}=a,c=z(a.bodyFont),d=Ir(this,\"left\",a),u=s.x(d),g=o<c.lineHeight?(c.lineHeight-o)/2:0,f=e.y+g;if(a.usePointStyle){const e={radius:Math.min(l,o)/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:1},i=s.leftForLtr(u,l)+l/2,A=f+o/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Ie(t,e,i,A),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Ie(t,e,i,A)}else{t.lineWidth=A(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=s.leftForLtr(u,l-h),i=s.leftForLtr(s.xPlus(u,1),l-h-2),n=Mi(r.borderRadius);Object.values(n).some(t=>0!==t)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,je(t,{x:e,y:f,w:l,h:o,radius:n}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),je(t,{x:i,y:f+1,w:l-2,h:o-2,radius:n}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(e,f,l,o),t.strokeRect(e,f,l,o),t.fillStyle=r.backgroundColor,t.fillRect(i,f+1,l-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(e,i,t){const s=this[\"body\"],{bodySpacing:a,bodyAlign:r,displayColors:n,boxHeight:o,boxWidth:l,boxPadding:h}=t,c=z(t.bodyFont);let d=c.lineHeight,u=0;function g(t){i.fillText(t,f.x(e.x+u),e.y+d/2),e.y+=d+a}const f=Pi(t.rtl,this.x,this.width),p=f.textAlign(r);let m,b,x,v,_,y,M;for(i.textAlign=r,i.textBaseline=\"middle\",i.font=c.string,e.x=Ir(this,p,t),i.fillStyle=t.bodyColor,k(this.beforeBody,g),u=n&&\"right\"!==p?\"center\"===r?l/2+h:l+2+h:0,v=0,y=s.length;v<y;++v){for(m=s[v],b=this.labelTextColors[v],i.fillStyle=b,k(m.before,g),x=m.lines,n&&x.length&&(this._drawColorBox(i,e,v,f,t),d=Math.max(c.lineHeight,o)),_=0,M=x.length;_<M;++_)g(x[_]),d=c.lineHeight;k(m.after,g)}u=0,d=c.lineHeight,k(this.afterBody,g),e.y-=a}drawFooter(t,e,i){var s=this.footer,a=s.length;let r,n;if(a){var o=Pi(i.rtl,this.x,this.width);for(t.x=Ir(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=o.textAlign(i.footerAlign),e.textBaseline=\"middle\",r=z(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,n=0;n<a;++n)e.fillText(s[n],o.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){var{xAlign:a,yAlign:r}=this,{x:n,y:o}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:g}=Mi(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(n+c,o),\"top\"===r&&this.drawCaret(t,e,i,s),e.lineTo(n+l-d,o),e.quadraticCurveTo(n+l,o,n+l,o+d),\"center\"===r&&\"right\"===a&&this.drawCaret(t,e,i,s),e.lineTo(n+l,o+h-g),e.quadraticCurveTo(n+l,o+h,n+l-g,o+h),\"bottom\"===r&&this.drawCaret(t,e,i,s),e.lineTo(n+u,o+h),e.quadraticCurveTo(n,o+h,n,o+h-u),\"center\"===r&&\"left\"===a&&this.drawCaret(t,e,i,s),e.lineTo(n,o+c),e.quadraticCurveTo(n,o,n+c,o),e.closePath(),e.fill(),0<s.borderWidth&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,a=i&&i.y;if(s||a){const i=Ar[t.position].call(this,this._active,this._eventPosition);var r,n;i&&(r=this._size=Lr(this,t),n=Rr(t,n=Object.assign({},i,this._size),t=Er(e,t,n),e),s._to===n.x&&a._to===n.y||(this.xAlign=t.xAlign,this.yAlign=t.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,n)))}}_willRender(){return!!this.opacity}draw(t){var e,i,s,a,r=this.options.setContext(this.getContext()),n=this.opacity;n&&(this._updateAnimationTarget(r),e={width:this.width,height:this.height},i={x:this.x,y:this.y},n=Math.abs(n)<.001?0:n,s=I(r.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length,r.enabled)&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,e,r),Di(t,r.textDirection),i.y+=s.top,this.drawTitle(i,t,r),this.drawBody(i,t,r),this.drawFooter(i,t,r),Ci(t,r.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){var i=this._active,t=t.map(({datasetIndex:t,index:e})=>{var i=this.chart.getDatasetMeta(t);if(i)return{datasetIndex:t,element:i.data[e],index:e};throw new Error(\"Cannot find a dataset at index \"+t)}),i=!N(i,t),s=this._positionChanged(t,e);(i||s)&&(this._active=t,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var s=this.options,a=this._active||[],i=this._getActiveElements(t,a,e,i),r=this._positionChanged(i,t),a=e||!N(i,a)||r;return a&&(this._active=i,s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e)),a}_getActiveElements(t,e,i,s){var a=this.options;return\"mouseout\"===t.type?[]:s?(s=this.chart.getElementsAtEventForMode(t,a.mode,a,i),a.reverse&&s.reverse(),s):e}_positionChanged(t,e){var{caretX:i,caretY:s,options:a}=this,a=Ar[a.position].call(this,t,e);return!1!==a&&(i!==a.x||s!==a.y)}}var Nr={id:\"tooltip\",_element:Br,positioners:Ar,afterInit(t,e,i){i&&(t.tooltip=new Br({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){var e,i=t.tooltip;i&&i._willRender()&&!(e={tooltip:i})!==t.notifyPlugins(\"beforeTooltipDraw\",{...e,cancelable:!0})&&(i.draw(t.ctx),t.notifyPlugins(\"afterTooltipDraw\",e))},afterEvent(t,e){var i;t.tooltip&&(i=e.replay,t.tooltip.handleEvent(e.event,i,e.inChartArea))&&(e.changed=!0)},defaults:{enabled:!0,external:null,position:\"average\",backgroundColor:\"rgba(0,0,0,0.8)\",titleColor:\"#fff\",titleFont:{weight:\"bold\"},titleSpacing:2,titleMarginBottom:6,titleAlign:\"left\",bodyColor:\"#fff\",bodySpacing:2,bodyFont:{},bodyAlign:\"left\",footerColor:\"#fff\",footerSpacing:2,footerMarginTop:6,footerFont:{weight:\"bold\"},footerAlign:\"left\",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:\"#fff\",displayColors:!0,boxPadding:0,borderColor:\"rgba(0,0,0,0)\",borderWidth:0,animation:{duration:400,easing:\"easeOutQuart\"},animations:{numbers:{type:\"number\",properties:[\"x\",\"y\",\"width\",\"height\",\"caretX\",\"caretY\"]},opacity:{easing:\"linear\",duration:200}},callbacks:Vr},defaultRoutes:{bodyFont:\"font\",footerFont:\"font\",titleFont:\"font\"},descriptors:{_scriptable:t=>\"filter\"!==t&&\"itemSort\"!==t&&\"external\"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:\"animation\"}},additionalOptionScopes:[\"interaction\"]};return i.register(ua,Ja,Oa,s),i.helpers={...zi},i._adapters=aa,i.Animation=ps,i.Animations=ms,i.animator=r,i.controllers=M.controllers.items,i.DatasetController=Ds,i.Element=e,i.elements=Oa,i.Interaction=Wi,i.layouts=a,i.platforms=Ce,i.Scale=Rs,i.Ticks=ue,Object.assign(i,ua,Ja,Oa,s,Ce),i.Chart=i,\"undefined\"!=typeof window&&(window.Chart=i),i});","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).ApexCharts=e()}(this,function(){\"use strict\";function R(e,t){var i,a=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)),a}function P(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?R(Object(i),!0).forEach(function(t){l(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function y(t){return(y=\"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)}function s(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function H(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 n(t,e,i){e&&H(t.prototype,e),i&&H(t,i)}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(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&&D(t,e)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t,e){if(e&&(\"object\"==typeof e||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");e=t;if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function h(i){var a=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(t){return!1}}();return function(){var t,e=r(i);return N(this,a?(t=r(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function O(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,o=[],n=!0,r=!1;try{for(i=i.call(t);!(n=(a=i.next()).done)&&(o.push(a.value),!e||o.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{n||null==i.return||i.return()}finally{if(r)throw s}}return o}}(t,e)||W(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.\")}()}function g(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||W(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 W(t,e){var i;if(t)return\"string\"==typeof t?a(t,e):\"Map\"===(i=\"Object\"===(i=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||\"Set\"===i?Array.from(t):\"Arguments\"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}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}var M=function(){function o(){s(this,o)}return n(o,[{key:\"shadeRGBColor\",value:function(t,e){var e=e.split(\",\"),i=t<0?0:255,t=t<0?-1*t:t,a=parseInt(e[0].slice(4),10),s=parseInt(e[1],10),e=parseInt(e[2],10);return\"rgb(\"+(Math.round((i-a)*t)+a)+\",\"+(Math.round((i-s)*t)+s)+\",\"+(Math.round((i-e)*t)+e)+\")\"}},{key:\"shadeHexColor\",value:function(t,e){var e=parseInt(e.slice(1),16),i=t<0?0:255,t=t<0?-1*t:t,a=e>>16,s=e>>8&255,e=255&e;return\"#\"+(16777216+65536*(Math.round((i-a)*t)+a)+256*(Math.round((i-s)*t)+s)+(Math.round((i-e)*t)+e)).toString(16).slice(1)}},{key:\"shadeColor\",value:function(t,e){return o.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}}],[{key:\"bind\",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:\"isObject\",value:function(t){return t&&\"object\"===y(t)&&!Array.isArray(t)&&null!=t}},{key:\"is\",value:function(t,e){return Object.prototype.toString.call(e)===\"[object \"+t+\"]\"}},{key:\"listToArray\",value:function(t){for(var e=[],i=0;i<t.length;i++)e[i]=t[i];return e}},{key:\"extend\",value:function(e,i){var a=this,s=(\"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}),Object.assign({},e));return this.isObject(e)&&this.isObject(i)&&Object.keys(i).forEach(function(t){a.isObject(i[t])&&t in e?s[t]=a.extend(e[t],i[t]):Object.assign(s,l({},t,i[t]))}),s}},{key:\"extendArray\",value:function(t,e){var i=[];return t.map(function(t){i.push(o.extend(e,t))}),t=i}},{key:\"monthMod\",value:function(t){return t%12}},{key:\"clone\",value:function(t){if(o.is(\"Array\",t)){for(var e=[],i=0;i<t.length;i++)e[i]=this.clone(t[i]);return e}if(o.is(\"Null\",t))return null;if(o.is(\"Date\",t))return t;if(\"object\"!==y(t))return t;var a,s={};for(a in t)t.hasOwnProperty(a)&&(s[a]=this.clone(t[a]));return s}},{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=\"\",t=t<0?\"-\":\"\",a=e[0].replace(\".\",\"\"),s=Number(e[1])+1;if(s<0){for(i=t+\"0.\";s++;)i+=\"0\";return i+a.replace(/^-/,\"\")}for(s-=a.length;s--;)i+=\"0\";return a+i}},{key:\"getDimensions\",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,t=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[t-=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(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:\"#999999\",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.6,i=(i=(t=\"#\"!==t.substring(0,1)?\"#999999\":t).replace(\"#\",\"\")).match(new RegExp(\"(.{\"+i.length/3+\"})\",\"g\")),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 o={};o.x=t*Math.sin(s*a),o.y=-t*Math.cos(s*a),i.push(o)}return i}},{key:\"polarToCartesian\",value:function(t,e,i,a){a=(a-90)*Math.PI/180;return{x:t+i*Math.cos(a),y:e+i*Math.sin(a)}}},{key:\"escapeString\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:\"x\";return t.toString().slice().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-1<navigator.userAgent.toLowerCase().indexOf(\"firefox\")}},{key:\"isIE11\",value:function(){if(-1!==window.navigator.userAgent.indexOf(\"MSIE\")||-1<window.navigator.appVersion.indexOf(\"Trident/\"))return!0}},{key:\"isIE\",value:function(){var t=window.navigator.userAgent,e=t.indexOf(\"MSIE \");return 0<e?parseInt(t.substring(e+5,t.indexOf(\".\",e)),10):0<t.indexOf(\"Trident/\")?(e=t.indexOf(\"rv:\"),parseInt(t.substring(e+3,t.indexOf(\".\",e)),10)):0<(e=t.indexOf(\"Edge/\"))&&parseInt(t.substring(e+5,t.indexOf(\".\",e)),10)}}]),o}(),S=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return n(e,[{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){return--t*t*(2.70158*t+1.70158)+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,o){t.attr({r:e=e||0,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll(function(){o()})}},{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,o=t.pathFrom,n=t.pathTo,r=t.speed,t=t.delay,l=this.w,h=0;l.config.chart.animations.animateGradually.enabled&&(h=l.config.chart.animations.animateGradually.delay),l.config.chart.animations.dynamicAnimation.enabled&&l.globals.dataChanged&&\"bar\"!==l.config.chart.type&&(h=0),this.morphSVG(e,i,a,\"line\"!==l.config.chart.type||l.globals.comboCharts?s:\"stroke\",o,n,r,t*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,o,n,r){function l(t){return\"radar\"===c.config.chart.type&&(n=1),\"M 0 \".concat(c.globals.gridHeight)}var h=this,c=this.w;s=s||t.attr(\"pathFrom\"),o=o||t.attr(\"pathTo\");(!s||-1<s.indexOf(\"undefined\")||-1<s.indexOf(\"NaN\"))&&(s=l()),(!o||-1<o.indexOf(\"undefined\")||-1<o.indexOf(\"NaN\"))&&(o=l()),c.globals.shouldAnimate||(n=1),t.plot(s).animate(1,c.globals.easing,r).plot(s).animate(n,c.globals.easing,r).plot(o).afterAll(function(){M.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&h.animationCompleted(t):\"none\"!==a&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&h.animationCompleted(t),h.showDelayedElements()})}}]),e}(),C=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{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,i,e){var a=this,s=this.w,o=e.intensity;t.unfilter(!0),new window.SVG.Filter;t.filter(function(t){var e=s.config.chart.dropShadow;(e.enabled?a.addShadow(t,i,e):t).componentTransfer({rgb:{type:\"linear\",slope:1.5,intercept:o}})}),t.filterer.node.setAttribute(\"filterUnits\",\"userSpaceOnUse\"),this._scaleFilterSize(t.filterer.node)}},{key:\"addDarkenFilter\",value:function(t,i,e){var a=this,s=this.w,o=e.intensity;t.unfilter(!0),new window.SVG.Filter;t.filter(function(t){var e=s.config.chart.dropShadow;(e.enabled?a.addShadow(t,i,e):t).componentTransfer({rgb:{type:\"linear\",slope:o}})}),t.filterer.node.setAttribute(\"filterUnits\",\"userSpaceOnUse\"),this._scaleFilterSize(t.filterer.node)}},{key:\"applyFilter\",value:function(t,e,i){var a=3<arguments.length&&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,o=i.left,n=i.color,i=i.opacity,e=t.flood(Array.isArray(n)?n[e]:n,i).composite(t.sourceAlpha,\"in\").offset(o,s).gaussianBlur(a).merge(t.source);return t.blend(t.source,e)}},{key:\"dropShadow\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,a=e.top,s=e.left,o=e.blur,n=e.color,r=e.opacity,e=e.noUserSpaceOnUse,l=this.w;return t.unfilter(!0),M.isIE()&&\"radialBar\"===l.config.chart.type||(n=Array.isArray(n)?n[i]:n,t.filter(function(t){var e=null,e=M.isSafari()||M.isFirefox()||M.isIE()?t.flood(n,r).composite(t.sourceAlpha,\"in\").offset(s,a).gaussianBlur(o):t.flood(n,r).composite(t.sourceAlpha,\"in\").offset(s,a).gaussianBlur(o).merge(t.source);t.blend(t.source,e)}),e||t.filterer.node.setAttribute(\"filterUnits\",\"userSpaceOnUse\"),this._scaleFilterSize(t.filterer.node)),t}},{key:\"setSelectionFilter\",value:function(t,e,i){var a=this.w;void 0!==a.globals.selectedDataPoints[e]&&-1<a.globals.selectedDataPoints[e].indexOf(i)&&(t.node.setAttribute(\"selected\",!0),\"none\"!==(i=a.config.states.active.filter))&&this.applyFilter(t,e,i.type,i.value)}},{key:\"_scaleFilterSize\",value:function(t){var e,i={width:\"200%\",height:\"200%\",x:\"-50%\",y:\"-50%\"};for(e in i)i.hasOwnProperty(e)&&t.setAttribute(e,i[e])}}]),e}(),T=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"drawLine\",value:function(t,e,i,a){var s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:\"#a8a8a8\",o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,n=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null,r=7<arguments.length&&void 0!==arguments[7]?arguments[7]:\"butt\";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,\"stroke-dasharray\":o,\"stroke-width\":n,\"stroke-linecap\":r})}},{key:\"drawRect\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:\"#fefefe\",n=6<arguments.length&&void 0!==arguments[6]?arguments[6]:1,r=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,l=8<arguments.length&&void 0!==arguments[8]?arguments[8]:null,h=9<arguments.length&&void 0!==arguments[9]?arguments[9]:0,c=this.w.globals.dom.Paper.rect();return c.attr({x:t,y:e,width:0<i?i:0,height:0<a?a:0,rx:s,ry:s,opacity:n,\"stroke-width\":null!==r?r:0,stroke:null!==l?l:\"none\",\"stroke-dasharray\":h}),c.node.setAttribute(\"fill\",o),c}},{key:\"drawPolygon\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:\"#e1e1e1\",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:\"none\";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,\"stroke-width\":i})}},{key:\"drawCircle\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,t=this.w.globals.dom.Paper.circle(2*(t=t<0?0:t));return null!==e&&t.attr(e),t}},{key:\"drawPath\",value:function(t){var e=t.d,e=void 0===e?\"\":e,i=t.stroke,i=void 0===i?\"#a8a8a8\":i,a=t.strokeWidth,a=void 0===a?1:a,s=t.fill,o=t.fillOpacity,o=void 0===o?1:o,n=t.strokeOpacity,n=void 0===n?1:n,r=t.classes,l=t.strokeLinecap,l=void 0===l?null:l,t=t.strokeDashArray,t=void 0===t?0:t,h=this.w;return null===l&&(l=h.config.stroke.lineCap),(-1<e.indexOf(\"undefined\")||-1<e.indexOf(\"NaN\"))&&(e=\"M 0 \".concat(h.globals.gridHeight)),h.globals.dom.Paper.path(e).attr({fill:s,\"fill-opacity\":o,stroke:i,\"stroke-opacity\":n,\"stroke-linecap\":l,\"stroke-width\":a,\"stroke-dasharray\":t,class:r})}},{key:\"group\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:\"move\",value:function(t,e){return[\"M\",t,e].join(\" \")}},{key:\"line\",value:function(t,e){var i=2<arguments.length&&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,o){return[\"C\",t,e,i,a,s,o].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,o,n){var r=\"A\";return[r=7<arguments.length&&void 0!==arguments[7]&&arguments[7]?\"a\":r,t,e,i,a,s,o,n].join(\" \")}},{key:\"renderPaths\",value:function(t){var e,i=t.j,a=t.realIndex,s=t.pathFrom,o=t.pathTo,n=t.stroke,r=t.strokeWidth,l=t.strokeLinecap,h=t.fill,c=t.animationDelay,d=t.initialSpeed,g=t.dataChangeSpeed,u=t.className,p=t.shouldClipToGrid,p=void 0===p||p,f=t.bindEventsOnPaths,f=void 0===f||f,t=t.drawShadow,t=void 0===t||t,x=this.w,b=new C(this.ctx),m=new S(this.ctx),y=this.w.config.chart.animations.enabled,v=y&&this.w.config.chart.animations.dynamicAnimation.enabled,w=!!(y&&!x.globals.resized||v&&x.globals.dataChanged&&x.globals.shouldAnimate),k=(w?e=s:(e=o,x.globals.animationEnded=!0),x.config.stroke.dashArray),A=0,A=Array.isArray(k)?k[a]:x.config.stroke.dashArray,k=this.drawPath({d:e,stroke:n,strokeWidth:r,fill:h,fillOpacity:1,classes:u,strokeLinecap:l,strokeDashArray:A}),n=(k.attr(\"index\",a),p&&k.attr({\"clip-path\":\"url(#gridRectMask\".concat(x.globals.cuid,\")\")}),\"none\"!==x.config.states.normal.filter.type?b.getDefaultFilter(k,a):x.config.chart.dropShadow.enabled&&t&&(!x.config.chart.dropShadow.enabledOnSeries||x.config.chart.dropShadow.enabledOnSeries&&-1!==x.config.chart.dropShadow.enabledOnSeries.indexOf(a))&&(e=x.config.chart.dropShadow,b.dropShadow(k,e,a)),f&&(k.node.addEventListener(\"mouseenter\",this.pathMouseEnter.bind(this,k)),k.node.addEventListener(\"mouseleave\",this.pathMouseLeave.bind(this,k)),k.node.addEventListener(\"mousedown\",this.pathMouseDown.bind(this,k))),k.attr({pathTo:o,pathFrom:s}),{el:k,j:i,realIndex:a,pathFrom:s,pathTo:o,fill:h,strokeWidth:r,delay:c});return!y||x.globals.resized||x.globals.dataChanged?!x.globals.resized&&x.globals.dataChanged||m.showDelayedElements():m.animatePathsGradually(P(P({},n),{},{speed:d})),x.globals.dataChanged&&v&&w&&m.animatePathsGradually(P(P({},n),{},{speed:g})),k}},{key:\"drawPattern\",value:function(e,i,a){var s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:\"#a8a8a8\",o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(i,a,function(t){\"horizontalLines\"===e?t.line(0,0,a,0).stroke({color:s,width:o+1}):\"verticalLines\"===e?t.line(0,0,0,i).stroke({color:s,width:o+1}):\"slantedLines\"===e?t.line(0,0,i,a).stroke({color:s,width:o}):\"squares\"===e?t.rect(i,a).fill(\"none\").stroke({color:s,width:o}):\"circles\"===e&&t.circle(i).fill(\"none\").stroke({color:s,width:o})})}},{key:\"drawGradient\",value:function(t,e,i,a,s){var o,n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,r=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null,l=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,h=8<arguments.length&&void 0!==arguments[8]?arguments[8]:0,c=this.w,d=(e.length<9&&0===e.indexOf(\"#\")&&(e=M.hexToRgba(e,a)),i.length<9&&0===i.indexOf(\"#\")&&(i=M.hexToRgba(i,s)),0),g=1,u=1,p=null,r=(null!==r&&(d=void 0!==r[0]?r[0]/100:0,g=void 0!==r[1]?r[1]/100:1,u=void 0!==r[2]?r[2]/100:1,p=void 0!==r[3]?r[3]/100:null),!(\"donut\"!==c.config.chart.type&&\"pie\"!==c.config.chart.type&&\"polarArea\"!==c.config.chart.type&&\"bubble\"!==c.config.chart.type)),f=null===l||0===l.length?c.globals.dom.Paper.gradient(r?\"radial\":\"linear\",function(t){t.at(d,e,a),t.at(g,i,s),t.at(u,i,s),null!==p&&t.at(p,e,a)}):c.globals.dom.Paper.gradient(r?\"radial\":\"linear\",function(e){(Array.isArray(l[h])?l[h]:l).forEach(function(t){e.at(t.offset/100,t.color,t.opacity)})});return r?(r=c.globals.gridWidth/2,o=c.globals.gridHeight/2,\"bubble\"!==c.config.chart.type?f.attr({gradientUnits:\"userSpaceOnUse\",cx:r,cy:o,r:n}):f.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})):\"vertical\"===t?f.from(0,0).to(0,1):\"diagonal\"===t?f.from(0,0).to(1,1):\"horizontal\"===t?f.from(0,1).to(1,1):\"diagonal2\"===t&&f.from(1,0).to(0,1),f}},{key:\"getTextBasedOnMaxWidth\",value:function(t){var e=t.text,i=t.maxWidth,a=t.fontSize,t=t.fontFamily,a=this.getTextRects(e,a,t),t=a.width/e.length,t=Math.floor(i/t);return i<a.width?e.slice(0,t-3)+\"...\":e}},{key:\"drawText\",value:function(t){var i=this,e=t.x,a=t.y,s=t.text,o=t.textAnchor,n=t.fontSize,r=t.fontFamily,l=t.fontWeight,h=t.foreColor,c=t.opacity,d=t.maxWidth,g=t.cssClass,g=void 0===g?\"\":g,t=t.isPlainText,t=void 0===t||t,u=this.w,p=s=void 0===s?\"\":s,o=o||\"start\",r=(h&&h.length||(h=u.config.chart.foreColor),r||u.config.chart.fontFamily),l=l||\"regular\",f={maxWidth:d,fontSize:n=n||\"11px\",fontFamily:r},t=Array.isArray(s)?u.globals.dom.Paper.text(function(t){for(var e=0;e<s.length;e++)d&&(p=i.getTextBasedOnMaxWidth(P({text:s[e]},f))),0===e?t.tspan(p):t.tspan(p).newLine()}):(d&&(p=this.getTextBasedOnMaxWidth(P({text:s},f))),t?u.globals.dom.Paper.plain(s):u.globals.dom.Paper.text(function(t){return t.tspan(p)}));return t.attr({x:e,y:a,\"text-anchor\":o,\"dominant-baseline\":\"auto\",\"font-size\":n,\"font-family\":r,\"font-weight\":l,fill:h,class:\"apexcharts-text \"+g}),t.node.style.fontFamily=r,t.node.style.opacity=c,t}},{key:\"drawMarker\",value:function(t,e,i){t=t||0;var a,s,o=i.pSize||0,n=null;return\"square\"===i.shape||\"rect\"===i.shape?(s=void 0===i.pRadius?o/2:i.pRadius,null!==e&&o||(s=o=0),(s=this.drawRect(a=1.2*o+s,a,a,a,s)).attr({x:t-a/2,y:e-a/2,cx:t,cy:e,class:i.class||\"\",fill:i.pointFillColor,\"fill-opacity\":i.pointFillOpacity||1,stroke:i.pointStrokeColor,\"stroke-width\":i.pointStrokeWidth||0,\"stroke-opacity\":i.pointStrokeOpacity||1}),n=s):\"circle\"!==i.shape&&i.shape||(M.isNumber(e)||(e=o=0),n=this.drawCircle(o,{cx:t,cy:e,class:i.class||\"\",stroke:i.pointStrokeColor,fill:i.pointFillColor,\"fill-opacity\":i.pointFillOpacity||1,\"stroke-width\":i.pointStrokeWidth||0,\"stroke-opacity\":i.pointStrokeOpacity||1})),n}},{key:\"pathMouseEnter\",value:function(t,e){var i=this.w,a=new C(this.ctx),s=parseInt(t.node.getAttribute(\"index\"),10),o=parseInt(t.node.getAttribute(\"j\"),10);\"function\"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:s,dataPointIndex:o,w:i}),this.ctx.events.fireEvent(\"dataPointMouseEnter\",[e,this.ctx,{seriesIndex:s,dataPointIndex:o,w:i}]),\"none\"!==i.config.states.active.filter.type&&\"true\"===t.node.getAttribute(\"selected\")||\"none\"===i.config.states.hover.filter.type||i.globals.isTouchDevice||(e=i.config.states.hover.filter,a.applyFilter(t,s,e.type,e.value))}},{key:\"pathMouseLeave\",value:function(t,e){var i=this.w,a=new C(this.ctx),s=parseInt(t.node.getAttribute(\"index\"),10),o=parseInt(t.node.getAttribute(\"j\"),10);\"function\"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:s,dataPointIndex:o,w:i}),this.ctx.events.fireEvent(\"dataPointMouseLeave\",[e,this.ctx,{seriesIndex:s,dataPointIndex:o,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,a,s,o,n=this.w,r=new C(this.ctx),l=parseInt(t.node.getAttribute(\"index\"),10),h=parseInt(t.node.getAttribute(\"j\"),10),c=\"false\";\"true\"===t.node.getAttribute(\"selected\")?(t.node.setAttribute(\"selected\",\"false\"),-1<n.globals.selectedDataPoints[l].indexOf(h)&&(s=n.globals.selectedDataPoints[l].indexOf(h),n.globals.selectedDataPoints[l].splice(s,1))):(!n.config.states.active.allowMultipleDataPointsSelection&&0<n.globals.selectedDataPoints.length&&(n.globals.selectedDataPoints=[],s=n.globals.dom.Paper.select(\".apexcharts-series path\").members,i=n.globals.dom.Paper.select(\".apexcharts-series circle, .apexcharts-series rect\").members,(a=function(t){Array.prototype.forEach.call(t,function(t){t.node.setAttribute(\"selected\",\"false\"),r.getDefaultFilter(t,l)})})(s),a(i)),t.node.setAttribute(\"selected\",\"true\"),c=\"true\",void 0===n.globals.selectedDataPoints[l]&&(n.globals.selectedDataPoints[l]=[]),n.globals.selectedDataPoints[l].push(h)),\"true\"===c?\"none\"!==(s=n.config.states.active.filter)?r.applyFilter(t,l,s.type,s.value):\"none\"===n.config.states.hover.filter||n.globals.isTouchDevice||(o=n.config.states.hover.filter,r.applyFilter(t,l,o.type,o.value)):\"none\"!==n.config.states.active.filter.type&&(\"none\"===n.config.states.hover.filter.type||n.globals.isTouchDevice?r.getDefaultFilter(t,l):(o=n.config.states.hover.filter,r.applyFilter(t,l,o.type,o.value))),\"function\"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:l,dataPointIndex:h,w:n}),e&&this.ctx.events.fireEvent(\"dataPointSelection\",[e,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:l,dataPointIndex:h,w:n}])}},{key:\"rotateAroundCenter\",value:function(t){var e={};return{x:(e=t&&\"function\"==typeof t.getBBox?t.getBBox():e).x+e.width/2,y:e.y+e.height/2}}},{key:\"getTextRects\",value:function(t,e,i,a){var s=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],o=this.w,t=this.drawText({x:-200,y:-200,text:t,textAnchor:\"start\",fontSize:e,fontFamily:i,foreColor:\"#fff\",opacity:0}),e=(a&&t.attr(\"transform\",a),o.globals.dom.Paper.add(t),t.bbox());return s||(e=t.node.getBoundingClientRect()),t.remove(),{width:e.width,height:e.height}}},{key:\"placeTextWithEllipsis\",value:function(t,e,i){if(\"function\"==typeof t.getComputedTextLength&&0<(t.textContent=e).length&&t.getComputedTextLength()>=i/1.1){for(var a=e.length-3;0<a;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])}}]),e}(),I=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"getStackedSeriesTotals\",value:function(){var t=this.w,e=[];if(0!==t.globals.series.length){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)}t.globals.stackedSeriesTotals=e}return e}},{key:\"getSeriesTotalByIndex\",value:function(){var t=0<arguments.length&&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=0<arguments.length&&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 i=this.w,e=t.slice();return e=i.config.xaxis.convertedCatToNumeric?t.map(function(t,e){return i.config.xaxis.labels.formatter(t-i.globals.minX+1)}):e}},{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.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(function(t){e=Math.max(e,t.size)}),0<e&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=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(s,o){var n=this.w;return n.globals.series.map(function(t,e){for(var i=0,a=0;a<t.length;a++)n.globals.seriesX[e][a]>s&&n.globals.seriesX[e][a]<o&&(i+=t[a]);return i})}},{key:\"getPercentSeries\",value:function(){var r=this.w;r.globals.seriesPercent=r.globals.series.map(function(t,e){var i=[];if(Array.isArray(t))for(var a=0;a<t.length;a++){var s=r.globals.stackedSeriesTotals[a],o=0;s&&(o=100*t[a]/s),i.push(o)}else{var n=r.globals.seriesTotals.reduce(function(t,e){return t+e},0);i.push(100*t/n)}return i})}},{key:\"getCalculatedRatios\",value:function(){var t,e,i,a,s=this.w.globals,o=[],n=0,r=[],l=.1,h=0;if(s.yRange=[],s.isMultipleYAxis)for(var c=0;c<s.minYArr.length;c++)s.yRange.push(Math.abs(s.minYArr[c]-s.maxYArr[c])),r.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++)o.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,n=(n=s.zRange/s.gridHeight*16)||1,s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(s.hasNegs=!0),s.isMultipleYAxis)for(var r=[],g=0;g<o.length;g++)r.push(-s.minYArr[g]/o[g]);else r.push(-s.minY/o[0]),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(l=-s.minY/t,h=s.minX/e);return{yRatio:o,invertedYRatio:t,zRatio:n,xRatio:e,initialXRatio:i,invertedXRatio:a,baseLineInvertedY:l,baseLineY:r,baseLineX:h}}},{key:\"getLogSeries\",value:function(t){var i=this,a=this.w;return a.globals.seriesLog=t.map(function(t,e){return a.config.yaxis[e]&&a.config.yaxis[e].logarithmic?t.map(function(t){return null===t?null:i.getLogVal(a.config.yaxis[e].logBase,t,e)}):t}),a.globals.invalidLogScale?t:a.globals.seriesLog}},{key:\"getBaseLog\",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:\"getLogVal\",value:function(t,e,i){var a,s;return 0===e?0:(a=0===(s=this.w).globals.minYArr[i]?-1:this.getBaseLog(t,s.globals.minYArr[i]),s=(0===s.globals.maxYArr[i]?0:this.getBaseLog(t,s.globals.maxYArr[i]))-a,e<1?e/s:(this.getBaseLog(t,e)-a)/s)}},{key:\"getLogYRatios\",value:function(t){var o=this,n=this.w,r=this.w.globals;return r.yLogRatio=t.slice(),r.logYRange=r.yRange.map(function(t,e){var i,a,s;if(n.config.yaxis[e]&&o.w.config.yaxis[e].logarithmic)return i=-Number.MAX_VALUE,a=Number.MIN_VALUE,s=1,r.seriesLog.forEach(function(t,e){t.forEach(function(t){n.config.yaxis[e]&&n.config.yaxis[e].logarithmic&&(i=Math.max(t,i),a=Math.min(t,a))})}),s=Math.pow(r.yRange[e],Math.abs(a-i)/r.yRange[e]),r.yLogRatio[e]=s/r.gridHeight,s}),r.invalidLogScale?t.slice():r.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++}),{comboBarCount:i,comboCharts:e=0<a?!0:e}}},{key:\"extendArrayProps\",value:function(t,e,i){return e=(e=e.yaxis?t.extendYAxis(e,i):e).annotations&&(e=(e=e.annotations.yaxis?t.extendYAxisAnnotations(e):e).annotations.xaxis?t.extendXAxisAnnotations(e):e).annotations.points?t.extendPointAnnotations(e):e}}]),e}(),i=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t}return n(e,[{key:\"setOrientations\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=this.w;\"vertical\"===t.label.orientation&&null!==(i=i.globals.dom.baseEl.querySelector(\".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='\".concat(null!==e?e:0,\"']\")))&&(e=i.getBoundingClientRect(),i.setAttribute(\"x\",parseFloat(i.getAttribute(\"x\"))-e.height+4),\"top\"===t.label.position?i.setAttribute(\"y\",parseFloat(i.getAttribute(\"y\"))+e.width):i.setAttribute(\"y\",parseFloat(i.getAttribute(\"y\"))-e.width),e=(t=this.annoCtx.graphics.rotateAroundCenter(i)).x,t=t.y,i.setAttribute(\"transform\",\"rotate(-90 \".concat(e,\" \").concat(t,\")\")))}},{key:\"addBackgroundToAnno\",value:function(t,e){var i,a,s,o,n,r,l=this.w;return!t||void 0===e.label.text||void 0!==e.label.text&&!String(e.label.text).trim()?null:(n=l.globals.dom.baseEl.querySelector(\".apexcharts-grid\").getBoundingClientRect(),t=t.getBoundingClientRect(),i=e.label.style.padding.left,a=e.label.style.padding.right,s=e.label.style.padding.top,o=e.label.style.padding.bottom,\"vertical\"===e.label.orientation&&(s=e.label.style.padding.left,o=e.label.style.padding.right,i=e.label.style.padding.top,a=e.label.style.padding.bottom),r=t.left-n.left-i,n=t.top-n.top-s,r=this.annoCtx.graphics.drawRect(r-l.globals.barPadForNumericAxis,n,t.width+i+a,t.height+s+o,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0),e.id&&r.node.classList.add(e.id),r)}},{key:\"annotationsBackground\",value:function(){function i(t,e,i){var a;(i=o.globals.dom.baseEl.querySelector(\".apexcharts-\".concat(i,\"-annotations .apexcharts-\").concat(i,\"-annotation-label[rel='\").concat(e,\"']\")))&&(e=i.parentNode,a=s.addBackgroundToAnno(i,t))&&(e.insertBefore(a.node,i),t.label.mouseEnter&&a.node.addEventListener(\"mouseenter\",t.label.mouseEnter.bind(s,t)),t.label.mouseLeave)&&a.node.addEventListener(\"mouseleave\",t.label.mouseLeave.bind(s,t))}var s=this,o=this.w;o.config.annotations.xaxis.map(function(t,e){i(t,e,\"xaxis\")}),o.config.annotations.yaxis.map(function(t,e){i(t,e,\"yaxis\")}),o.config.annotations.points.map(function(t,e){i(t,e,\"point\")})}},{key:\"getY1Y2\",value:function(t,e){var i,a,t=\"y1\"===t?e.y:e.y2,s=this.w;return this.annoCtx.invertAxis?(a=s.globals.labels.indexOf(t),s.config.xaxis.convertedCatToNumeric&&(a=s.globals.categoryLabels.indexOf(t)),(a=s.globals.dom.baseEl.querySelector(\".apexcharts-yaxis-texts-g text:nth-child(\"+(a+1)+\")\"))&&(i=parseFloat(a.getAttribute(\"y\")))):(a=s.config.yaxis[e.yAxisIndex].logarithmic?(t=new I(this.annoCtx.ctx).getLogVal(t,e.yAxisIndex))/s.globals.yLogRatio[e.yAxisIndex]:(t-s.globals.minYArr[e.yAxisIndex])/(s.globals.yRange[e.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-a,s.config.yaxis[e.yAxisIndex]&&s.config.yaxis[e.yAxisIndex].reversed&&(i=a)),i}},{key:\"getX1X2\",value:function(t,e){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,n=(e.x-a)/(o/i.globals.gridWidth),a=(this.annoCtx.inversedReversedAxis&&(n=(s-e.x)/(o/i.globals.gridWidth)),\"category\"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(n=this.getStringX(e.x)),(e.x2-a)/(o/i.globals.gridWidth));return this.annoCtx.inversedReversedAxis&&(a=(s-e.x2)/(o/i.globals.gridWidth)),\"category\"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(a=this.getStringX(e.x2)),\"x1\"===t?n:a}},{key:\"getStringX\",value:function(t){var e=this.w,i=t,t=(e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1),e.globals.labels.indexOf(t)),e=e.globals.dom.baseEl.querySelector(\".apexcharts-xaxis-texts-g text:nth-child(\"+(t+1)+\")\");return i=e?parseFloat(e.getAttribute(\"x\")):i}}]),e}(),B=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new i(this.annoCtx)}return n(e,[{key:\"addXaxisAnnotation\",value:function(t,e,i){var a,s,o=this.w,n=this.helpers.getX1X2(\"x1\",t),r=t.label.text,l=t.strokeDashArray;M.isNumber(n)&&(null===t.x2||void 0===t.x2?(a=this.annoCtx.graphics.drawLine(n+t.offsetX,0+t.offsetY,n+t.offsetX,o.globals.gridHeight+t.offsetY,t.borderColor,l,t.borderWidth),e.appendChild(a.node),t.id&&a.node.classList.add(t.id)):((a=this.helpers.getX1X2(\"x2\",t))<n&&(s=n,n=a,a=s),(s=this.annoCtx.graphics.drawRect(n+t.offsetX,0+t.offsetY,a-n,o.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,l)).node.classList.add(\"apexcharts-annotation-rect\"),s.attr(\"clip-path\",\"url(#gridRectMask\".concat(o.globals.cuid,\")\")),e.appendChild(s.node),t.id&&s.node.classList.add(t.id)),a=\"top\"===t.label.position?4:o.globals.gridHeight,l=this.annoCtx.graphics.getTextRects(r,parseFloat(t.label.style.fontSize)),(s=this.annoCtx.graphics.drawText({x:n+t.label.offsetX,y:a+t.label.offsetY-(\"vertical\"===t.label.orientation?\"top\"===t.label.position?l.width/2-12:-l.width/2:0),text:r,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||\"\")})).attr({rel:i}),e.appendChild(s.node),this.annoCtx.helpers.setOrientations(t,i))}},{key:\"drawXAxisAnnotations\",value:function(){var i=this,t=this.w,a=this.annoCtx.graphics.group({class:\"apexcharts-xaxis-annotations\"});return t.config.annotations.xaxis.map(function(t,e){i.addXaxisAnnotation(t,a.node,e)}),a}}]),e}(),V=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new i(this.annoCtx)}return n(e,[{key:\"addYaxisAnnotation\",value:function(t,e,i){var a,s=this.w,o=t.strokeDashArray,n=this.helpers.getY1Y2(\"y1\",t),r=t.label.text,o=(null===t.y2||void 0===t.y2?(l=this.annoCtx.graphics.drawLine(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),n+t.offsetY,t.borderColor,o,t.borderWidth),e.appendChild(l.node),t.id&&l.node.classList.add(t.id)):(n<(a=this.helpers.getY1Y2(\"y2\",t))&&(l=n,n=a,a=l),(l=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),n-a,0,t.fillColor,t.opacity,1,t.borderColor,o)).node.classList.add(\"apexcharts-annotation-rect\"),l.attr(\"clip-path\",\"url(#gridRectMask\".concat(s.globals.cuid,\")\")),e.appendChild(l.node),t.id&&l.node.classList.add(t.id)),\"right\"===t.label.position?s.globals.gridWidth:0),l=this.annoCtx.graphics.drawText({x:o+t.label.offsetX,y:(null!=a?a:n)+t.label.offsetY-3,text:r,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||\"\")});l.attr({rel:i}),e.appendChild(l.node)}},{key:\"_getYAxisAnnotationWidth\",value:function(t){var e=this.w;e.globals.gridWidth;return(-1<t.width.indexOf(\"%\")?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:\"drawYAxisAnnotations\",value:function(){var i=this,t=this.w,a=this.annoCtx.graphics.group({class:\"apexcharts-yaxis-annotations\"});return t.config.annotations.yaxis.map(function(t,e){i.addYaxisAnnotation(t,a.node,e)}),a}}]),e}(),G=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new i(this.annoCtx)}return n(e,[{key:\"addPointAnnotation\",value:function(t,e,i){this.w;var a,s,o=this.helpers.getX1X2(\"x1\",t),n=this.helpers.getY1Y2(\"y1\",t);M.isNumber(o)&&(s={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||\"\")},s=this.annoCtx.graphics.drawMarker(o+t.marker.offsetX,n+t.marker.offsetY,s),e.appendChild(s.node),a=t.label.text||\"\",(a=this.annoCtx.graphics.drawText({x:o+t.label.offsetX,y:n+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:a,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||\"\")})).attr({rel:i}),e.appendChild(a.node),t.customSVG.SVG&&((i=this.annoCtx.graphics.group({class:\"apexcharts-point-annotations-custom-svg \"+t.customSVG.cssClass})).attr({transform:\"translate(\".concat(o+t.customSVG.offsetX,\", \").concat(n+t.customSVG.offsetY,\")\")}),i.node.innerHTML=t.customSVG.SVG,e.appendChild(i.node)),t.image.path&&(a=t.image.width||20,e=t.image.height||20,s=this.annoCtx.addImage({x:o+t.image.offsetX-a/2,y:n+t.image.offsetY-e/2,width:a,height:e,path:t.image.path,appendTo:\".apexcharts-point-annotations\"})),t.mouseEnter&&s.node.addEventListener(\"mouseenter\",t.mouseEnter.bind(this,t)),t.mouseLeave)&&s.node.addEventListener(\"mouseleave\",t.mouseLeave.bind(this,t))}},{key:\"drawPointAnnotations\",value:function(){var i=this,t=this.w,a=this.annoCtx.graphics.group({class:\"apexcharts-point-annotations\"});return t.config.annotations.points.map(function(t,e){i.addPointAnnotation(t,a.node,e)}),a}}]),e}(),j={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\"}}},d=function(){function t(){s(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:\"11px\",fontWeight:400,fontFamily:void 0,cssClass:\"\"},formatter:void 0},axisBorder:{show:!1,color:\"#e0e0e0\",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:\"#e0e0e0\",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:\"11px\",fontWeight:900,fontFamily:void 0,cssClass:\"\"}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:\"front\",stroke:{color:\"#b6b6b6\",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,marker:{size:4,fillColor:\"#fff\",strokeWidth:2,strokeColor:\"#333\",shape:\"circle\",offsetX:0,offsetY:0,radius:2,cssClass:\"\"},label:{borderColor:\"#c2c2c2\",borderWidth:1,borderRadius:2,text:void 0,textAnchor:\"middle\",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,style:{background:\"#fff\",color:void 0,fontSize:\"11px\",fontFamily:void 0,fontWeight:400,cssClass:\"\",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:\"#c2c2c2\",borderColor:\"#c2c2c2\",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:\"100%\",yAxisIndex:0,label:{borderColor:\"#c2c2c2\",borderWidth:1,borderRadius:2,text:void 0,textAnchor:\"end\",position:\"right\",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,style:{background:\"#fff\",color:void 0,fontSize:\"11px\",fontFamily:void 0,fontWeight:400,cssClass:\"\",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:\"#c2c2c2\",borderColor:\"#c2c2c2\",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:\"#c2c2c2\",borderWidth:1,borderRadius:2,text:void 0,textAnchor:\"middle\",orientation:\"vertical\",position:\"top\",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,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 n(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:[j],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,fill:{type:\"solid\",colors:void 0,opacity:.85,gradient:{shade:\"dark\",type:\"horizontal\",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:\"light\",cssClass:\"\",style:{fontSize:\"12px\",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:\"dd MMM\",formatter:void 0},y:{formatter:void 0,title:{formatter:function(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\"}},group:{groups:[],style:{colors:[],fontSize:\"12px\",fontWeight:400,fontFamily:void 0,cssClass:\"\"}},axisBorder:{show:!0,color:\"#e0e0e0\",width:\"100%\",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:\"#e0e0e0\",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:\"on\",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:\"bottom\",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:\"12px\",fontWeight:900,fontFamily:void 0,cssClass:\"\"}},crosshairs:{show:!0,width:1,position:\"back\",opacity:.9,stroke:{color:\"#b6b6b6\",width:1,dashArray:3},fill:{type:\"solid\",color:\"#B1B9C4\",gradient:{colorFrom:\"#D8E3F0\",colorTo:\"#BED1E6\",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:\"12px\",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:\"light\",palette:\"palette1\",monochrome:{enabled:!1,color:\"#008FFB\",shadeTo:\"light\",shadeIntensity:.65}}}}}]),t}(),_=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.graphics=new T(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new i(this),this.xAxisAnnotations=new B(this),this.yAxisAnnotations=new V(this),this.pointsAnnotations=new G(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 n(e,[{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,o=[e,i,a],n=[i.node,e.node,a.node],r=0;r<3;r++)t.globals.dom.elGraphical.add(o[r]),!s||t.globals.resized||t.globals.dataChanged||\"scatter\"!==t.config.chart.type&&\"bubble\"!==t.config.chart.type&&1<t.globals.dataPoints&&n[r].classList.add(\"apexcharts-element-hidden\"),t.globals.delayedElements.push({el:n[r],index:0});this.helpers.annotationsBackground()}}},{key:\"drawImageAnnos\",value:function(){var i=this;this.w.config.annotations.images.map(function(t,e){i.addImage(t,e)})}},{key:\"drawTextAnnos\",value:function(){var i=this;this.w.config.annotations.texts.map(function(t,e){i.addText(t,e)})}},{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,o=t.textAnchor,n=t.foreColor,r=t.fontSize,l=t.fontFamily,h=t.fontWeight,c=t.cssClass,d=t.backgroundColor,g=t.borderWidth,u=t.strokeDashArray,p=t.borderRadius,f=t.borderColor,x=t.appendTo,x=void 0===x?\".apexcharts-annotations\":x,b=t.paddingLeft,b=void 0===b?4:b,m=t.paddingRight,m=void 0===m?4:m,y=t.paddingBottom,y=void 0===y?2:y,t=t.paddingTop,t=void 0===t?2:t,v=this.w,i=this.graphics.drawText({x:i,y:a,text:s,textAnchor:o||\"start\",fontSize:r||\"12px\",fontWeight:h||\"regular\",fontFamily:l||v.config.chart.fontFamily,foreColor:n||v.config.chart.foreColor,cssClass:c}),a=v.globals.dom.baseEl.querySelector(x),o=(a&&a.appendChild(i.node),i.bbox());s&&(r=this.graphics.drawRect(o.x-b,o.y-t,o.width+b+m,o.height+y+t,p,d||\"transparent\",1,g,f,u),a.insertBefore(r.node,i.node))}},{key:\"addImage\",value:function(t,e){var i=this.w,a=t.path,s=t.x,s=void 0===s?0:s,o=t.y,o=void 0===o?0:o,n=t.width,n=void 0===n?20:n,r=t.height,r=void 0===r?20:r,t=t.appendTo,t=void 0===t?\".apexcharts-annotations\":t,a=i.globals.dom.Paper.image(a),n=(a.size(n,r).move(s,o),i.globals.dom.baseEl.querySelector(t));return n&&n.appendChild(a.node),a}},{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,t=t.contextMethod,o=a,n=o.w,r=n.globals.dom.baseEl.querySelector(\".apexcharts-\".concat(s,\"-annotations\")),l=r.childNodes.length+1,h=new d,h=Object.assign({},\"xaxis\"===s?h.xAxisAnnotation:\"yaxis\"===s?h.yAxisAnnotation:h.pointAnnotation),c=M.extend(h,e);switch(s){case\"xaxis\":this.addXaxisAnnotation(c,r,l);break;case\"yaxis\":this.addYaxisAnnotation(c,r,l);break;case\"point\":this.addPointAnnotation(c,r,l)}h=n.globals.dom.baseEl.querySelector(\".apexcharts-\".concat(s,\"-annotations .apexcharts-\").concat(s,\"-annotation-label[rel='\").concat(l,\"']\")),s=this.helpers.addBackgroundToAnno(h,c);return s&&r.insertBefore(s.node,h),i&&n.globals.memory.methodsToExec.push({context:o,id:c.id||M.randomId(),method:t,label:\"addAnnotation\",params:e}),a}},{key:\"clearAnnotations\",value:function(t){var i=t.w,t=i.globals.dom.baseEl.querySelectorAll(\".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations\");i.globals.memory.methodsToExec.map(function(t,e){\"addText\"!==t.label&&\"addAnnotation\"!==t.label||i.globals.memory.methodsToExec.splice(e,1)}),t=M.listToArray(t),Array.prototype.forEach.call(t,function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})}},{key:\"removeAnnotation\",value:function(t,i){var a=t.w,t=a.globals.dom.baseEl.querySelectorAll(\".\".concat(i));t&&(a.globals.memory.methodsToExec.map(function(t,e){t.id===i&&a.globals.memory.methodsToExec.splice(e,1)}),Array.prototype.forEach.call(t,function(t){t.parentElement.removeChild(t)}))}}]),e}(),A=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return n(e,[{key:\"clippedImgArea\",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),s=parseInt(e.globals.gridHeight,10),a=s<a?a:s,s=t.image,o=0,n=0,n=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,i.fill.image.height):(o=a+1,a):(o=t.width,t.height),i=document.createElementNS(e.globals.SVGNS,\"pattern\"),a=(T.setAttrs(i,{id:t.patternID,patternUnits:t.patternUnits||\"userSpaceOnUse\",width:o+\"px\",height:n+\"px\"}),document.createElementNS(e.globals.SVGNS,\"image\"));i.appendChild(a),a.setAttributeNS(window.SVG.xlink,\"href\",s),T.setAttrs(a,{x:0,y:0,preserveAspectRatio:\"none\",width:o+\"px\",height:n+\"px\"}),a.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(i)}},{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,i,a=this.w,s=(this.opts=t,this.w.config);this.seriesIndex=this.getSeriesIndex(t);var o=this.getFillColors()[this.seriesIndex],n=(\"function\"==typeof(o=void 0!==a.globals.seriesColors[this.seriesIndex]?a.globals.seriesColors[this.seriesIndex]:o)&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:a})),this.getFillType(this.seriesIndex)),r=Array.isArray(s.fill.opacity)?s.fill.opacity[this.seriesIndex]:s.fill.opacity,l=o=t.color?t.color:o;return-1===o.indexOf(\"rgb\")?o.length<9&&(l=M.hexToRgba(o,r)):-1<o.indexOf(\"rgba\")&&(r=M.getOpacityFromRGBA(o)),t.opacity&&(r=t.opacity),\"pattern\"===n&&(e=this.handlePatternFill(e,o,r,l)),\"gradient\"===n&&(i=this.handleGradientFill(o,r,this.seriesIndex)),r=\"image\"===n?(o=s.fill.image.src,s=t.patternID||\"\",this.clippedImgArea({opacity:r,image:Array.isArray(o)?t.seriesNumber<o.length?o[t.seriesNumber]:o[0]:o,width:t.width||void 0,height:t.height||void 0,patternUnits:t.patternUnits,patternID:\"pattern\".concat(a.globals.cuid).concat(t.seriesNumber+1).concat(s)}),\"url(#pattern\".concat(a.globals.cuid).concat(t.seriesNumber+1).concat(s,\")\")):\"gradient\"===n?i:\"pattern\"===n?e:l,r=t.solid?l:r}},{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,o=this.opts,n=new T(this.ctx),r=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;return Array.isArray(s.fill.pattern.style)?void 0!==s.fill.pattern.style[o.seriesNumber]?n.drawPattern(s.fill.pattern.style[o.seriesNumber],s.fill.pattern.width,s.fill.pattern.height,e,r,i):a:n.drawPattern(s.fill.pattern.style,s.fill.pattern.width,s.fill.pattern.height,e,r,i)}},{key:\"handleGradientFill\",value:function(t,e,i){var a,s=this.w.config,o=this.opts,n=new T(this.ctx),r=new M,l=s.fill.gradient.type,h=t,c=void 0===s.fill.gradient.opacityFrom?e:Array.isArray(s.fill.gradient.opacityFrom)?s.fill.gradient.opacityFrom[i]:s.fill.gradient.opacityFrom,e=(-1<h.indexOf(\"rgba\")&&(c=M.getOpacityFromRGBA(h)),void 0===s.fill.gradient.opacityTo?e:Array.isArray(s.fill.gradient.opacityTo)?s.fill.gradient.opacityTo[i]:s.fill.gradient.opacityTo);return void 0===s.fill.gradient.gradientToColors||0===s.fill.gradient.gradientToColors.length?a=\"dark\"===s.fill.gradient.shade?r.shadeColor(-1*parseFloat(s.fill.gradient.shadeIntensity),-1<t.indexOf(\"rgb\")?M.rgb2hex(t):t):r.shadeColor(parseFloat(s.fill.gradient.shadeIntensity),-1<t.indexOf(\"rgb\")?M.rgb2hex(t):t):s.fill.gradient.gradientToColors[o.seriesNumber]?-1<(a=r=s.fill.gradient.gradientToColors[o.seriesNumber]).indexOf(\"rgba\")&&(e=M.getOpacityFromRGBA(r)):a=t,s.fill.gradient.inverseColors&&(r=h,h=a,a=r),-1<h.indexOf(\"rgb\")&&(h=M.rgb2hex(h)),-1<a.indexOf(\"rgb\")&&(a=M.rgb2hex(a)),n.drawGradient(l,h,a,c,e,o.size,s.fill.gradient.stops,s.fill.gradient.colorStops,i)}}]),e}(),w=function(){function i(t,e){s(this,i),this.ctx=t,this.w=t.w}return n(i,[{key:\"setGlobalMarkerSize\",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],0<e.globals.markers.size.length){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(t){return e.config.markers.size})}},{key:\"plotChartMarkers\",value:function(t,e,i,a){var s,o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],n=this.w,r=e,l=t,h=null,c=new T(this.ctx),d=n.config.markers.discrete&&n.config.markers.discrete.length;if((0<n.globals.markers.size[e]||o||d)&&(h=c.group({class:o||d?\"\":\"apexcharts-series-markers\"})).attr(\"clip-path\",\"url(#gridRectMarkerMask\".concat(n.globals.cuid,\")\")),Array.isArray(l.x))for(var g=0;g<l.x.length;g++){var u=1===i&&1===g?1:1===i&&0===g?0:i,p=\"apexcharts-marker\";\"line\"!==n.config.chart.type&&\"area\"!==n.config.chart.type||n.globals.comboCharts||n.config.tooltip.intersect||(p+=\" no-pointer-events\"),(Array.isArray(n.config.markers.size)?0<n.globals.markers.size[e]:0<n.config.markers.size)||o||d?(M.isNumber(l.y[g])?p+=\" w\".concat(M.randomId()):p=\"apexcharts-nullpoint\",p=this.getMarkerConfig({cssClass:p,seriesIndex:e,dataPointIndex:u}),n.config.series[r].data[u]&&(n.config.series[r].data[u].fillColor&&(p.pointFillColor=n.config.series[r].data[u].fillColor),n.config.series[r].data[u].strokeColor)&&(p.pointStrokeColor=n.config.series[r].data[u].strokeColor),a&&(p.pSize=a),(s=c.drawMarker(l.x[g],l.y[g],p)).attr(\"rel\",u),s.attr(\"j\",u),s.attr(\"index\",e),s.node.setAttribute(\"default-marker-size\",p.pSize),new C(this.ctx).setSelectionFilter(s,e,u),this.addEvents(s),h&&h.add(s)):(void 0===n.globals.pointsArray[e]&&(n.globals.pointsArray[e]=[]),n.globals.pointsArray[e].push([l.x[g],l.y[g]]))}return h}},{key:\"getMarkerConfig\",value:function(t){var e=t.cssClass,i=t.seriesIndex,a=t.dataPointIndex,s=void 0===a?null:a,a=t.finishRadius,t=void 0===a?null:a,a=this.w,o=this.getMarkerStyle(i),n=a.globals.markers.size[i],a=a.config.markers;return null!==s&&a.discrete.length&&a.discrete.map(function(t){t.seriesIndex===i&&t.dataPointIndex===s&&(o.pointStrokeColor=t.strokeColor,o.pointFillColor=t.fillColor,n=t.size,o.pointShape=t.shape)}),{pSize:null===t?n:t,pRadius:a.radius,width:Array.isArray(a.width)?a.width[i]:a.width,height:Array.isArray(a.height)?a.height[i]:a.height,pointStrokeWidth:Array.isArray(a.strokeWidth)?a.strokeWidth[i]:a.strokeWidth,pointStrokeColor:o.pointStrokeColor,pointFillColor:o.pointFillColor,shape:o.pointShape||(Array.isArray(a.shape)?a.shape[i]:a.shape),class:e,pointStrokeOpacity:Array.isArray(a.strokeOpacity)?a.strokeOpacity[i]:a.strokeOpacity,pointStrokeDashArray:Array.isArray(a.strokeDashArray)?a.strokeDashArray[i]:a.strokeDashArray,pointFillOpacity:Array.isArray(a.fillOpacity)?a.fillOpacity[i]:a.fillOpacity,seriesIndex:i}}},{key:\"addEvents\",value:function(t){var e=this.w,i=new T(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,e=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(e)?e[t]:e,pointFillColor:Array.isArray(i)?i[t]:i}}}]),i}(),U=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return n(e,[{key:\"draw\",value:function(t,e,i){var a=this.w,s=new T(this.ctx),o=i.realIndex,n=i.pointsPos,r=i.zRatio,l=i.elParent,h=s.group({class:\"apexcharts-series-markers apexcharts-series-\".concat(a.config.chart.type)});if(h.attr(\"clip-path\",\"url(#gridRectMarkerMask\".concat(a.globals.cuid,\")\")),Array.isArray(n.x))for(var c=0;c<n.x.length;c++){var d=e+1,g=!0,u=(0===e&&0===c&&(d=0),0===e&&1===c&&(d=1),0),p=a.globals.markers.size[o],f=(r!==1/0&&(p=a.globals.seriesZ[o][d]/r,(f=a.config.plotOptions.bubble).minBubbleRadius&&p<f.minBubbleRadius&&(p=f.minBubbleRadius),f.maxBubbleRadius)&&p>f.maxBubbleRadius&&(p=f.maxBubbleRadius),a.config.chart.animations.enabled||(u=p),n.x[c]),x=n.y[c],u=u||0;(g=null!==x&&void 0!==a.globals.series[o][d]?g:!1)&&(g=this.drawPoint(f,x,u,p,o,d,e),h.add(g)),l.add(h)}}},{key:\"drawPoint\",value:function(t,e,i,a,s,o,n){var r,l=this.w,h=s,c=new S(this.ctx),d=new C(this.ctx),g=new A(this.ctx),u=new w(this.ctx),p=new T(this.ctx),f=u.getMarkerConfig({cssClass:\"apexcharts-marker\",seriesIndex:h,dataPointIndex:o,finishRadius:\"bubble\"===l.config.chart.type||l.globals.comboCharts&&l.config.series[s]&&\"bubble\"===l.config.series[s].type?a:null}),g=(a=f.pSize,g.fillPath({seriesNumber:s,dataPointIndex:o,color:f.pointFillColor,patternUnits:\"objectBoundingBox\",value:l.globals.series[s][n]}));if(\"circle\"===f.shape?r=p.drawCircle(i):\"square\"!==f.shape&&\"rect\"!==f.shape||(r=p.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),l.config.series[h].data[o]&&l.config.series[h].data[o].fillColor&&(g=l.config.series[h].data[o].fillColor),r.attr({x:t-f.width/2-f.pointStrokeWidth/2,y:e-f.height/2-f.pointStrokeWidth/2,cx:t,cy:e,fill:g,\"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&&(i=l.config.chart.dropShadow,d.dropShadow(r,i,s)),!this.initialAnim||l.globals.dataChanged||l.globals.resized?l.globals.animationEnded=!0:(p=l.config.chart.animations.speed,c.animateMarker(r,0,\"circle\"===f.shape?a:{width:f.width,height:f.height},p,l.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(r)},100)})),l.globals.dataChanged&&\"circle\"===f.shape)if(this.dynamicAnim){var x,b,m,y=l.config.chart.animations.dynamicAnimation.speed;null!=(h=l.globals.previousPaths[s]&&l.globals.previousPaths[s][n])&&(x=h.x,b=h.y,m=void 0!==h.r?h.r:a);for(var v=0;v<l.globals.collapsedSeries.length;v++)l.globals.collapsedSeries[v].index===s&&(y=1,a=0);c.animateCircle(r,{cx:x,cy:b,r:m},{cx:t,cy:e,r:a=0===t&&0===e?0:a},y,l.globals.easing)}else r.attr({r:a});return r.attr({rel:o,j:o,index:s,\"default-marker-size\":a}),d.setSelectionFilter(r,s,o),u.addEvents(r),r.node.classList.add(\"apexcharts-marker\"),r}},{key:\"centerTextInBubble\",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),e}(),v=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"dataLabelsCorrection\",value:function(t,e,i,a,s,o,n){var r=this.w,l=!1,i=new T(this.ctx).getTextRects(i,n),n=i.width,h=i.height,h=((e=e<0?0:e)>r.globals.gridHeight+h&&(e=r.globals.gridHeight+h/2),void 0===r.globals.dataLabelsRects[a]&&(r.globals.dataLabelsRects[a]=[]),r.globals.dataLabelsRects[a].push({x:t,y:e,width:n,height:h}),r.globals.dataLabelsRects[a].length-2),c=void 0!==r.globals.lastDrawnDataLabelsIndexes[a]?r.globals.lastDrawnDataLabelsIndexes[a][r.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;return void 0!==r.globals.dataLabelsRects[a][h]&&(t>(h=r.globals.dataLabelsRects[a][c]).x+h.width+2||e>h.y+h.height+2||t+n<h.x)&&(l=!0),{x:t,y:e,textRects:i,drawnextLabel:l=0!==s&&!o?l:!0}}},{key:\"drawDataLabel\",value:function(t,e,i){var a=this,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:2,o=this.w,n=new T(this.ctx),r=o.config.dataLabels,l=0,h=i;if(!r.enabled||!Array.isArray(t.x))return null;for(var c=n.group({class:\"apexcharts-data-labels\"}),d=0;d<t.x.length;d++){var g,u,p,f=t.x[d]+r.offsetX;l=t.y[d]+r.offsetY+s,isNaN(f)||(1===i&&0===d&&(h=0),1===i&&1===d&&(h=1),u=o.globals.series[e][h],p=\"\",g=function(t){return o.config.dataLabels.formatter(t,{ctx:a.ctx,seriesIndex:e,dataPointIndex:h,w:o})},\"bubble\"===o.config.chart.type?(p=g(u=o.globals.seriesZ[e][h]),l=t.y[d],l=new U(this.ctx).centerTextInBubble(l,e,h).y):void 0!==u&&(p=g(u)),this.plotDataLabelsText({x:f,y:l,text:p,i:e,j:h,parent:c,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels}))}return c}},{key:\"plotDataLabelsText\",value:function(t){var e,i=this.w,a=new T(this.ctx),s=t.x,o=t.y,n=t.i,r=t.j,l=t.text,h=t.textAnchor,c=t.fontSize,d=t.parent,g=t.dataLabelsConfig,u=t.color,p=t.alwaysDrawDataLabel,t=t.offsetCorrection;Array.isArray(i.config.dataLabels.enabledOnSeries)&&i.config.dataLabels.enabledOnSeries.indexOf(n)<0||(e={x:s,y:o,drawnextLabel:!0,textRects:null},t&&(e=this.dataLabelsCorrection(s,o,l,n,r,p,parseInt(g.style.fontSize,10))),i.globals.zoomed||(s=e.x,o=e.y),e.textRects&&(s<-10-e.textRects.width||s>i.globals.gridWidth+e.textRects.width+10)&&(l=\"\"),t=i.globals.dataLabels.style.colors[n],\"function\"==typeof(t=(\"bar\"===i.config.chart.type||\"rangeBar\"===i.config.chart.type)&&i.config.plotOptions.bar.distributed||i.config.dataLabels.distributed?i.globals.dataLabels.style.colors[r]:t)&&(t=t({series:i.globals.series,seriesIndex:n,dataPointIndex:r,w:i})),u&&(t=u),p=g.offsetX,u=g.offsetY,\"bar\"!==i.config.chart.type&&\"rangeBar\"!==i.config.chart.type||(u=p=0),e.drawnextLabel&&((e=a.drawText({width:100,height:parseInt(g.style.fontSize,10),x:s+p,y:o+u,foreColor:t,textAnchor:h||g.textAnchor,text:l,fontSize:c||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||\"normal\"})).attr({class:\"apexcharts-datalabel\",cx:s,cy:o}),g.dropShadow.enabled&&(a=g.dropShadow,new C(this.ctx).dropShadow(e,a)),d.add(e),void 0===i.globals.lastDrawnDataLabelsIndexes[n]&&(i.globals.lastDrawnDataLabelsIndexes[n]=[]),i.globals.lastDrawnDataLabelsIndexes[n].push(r)))}},{key:\"addBackgroundToDataLabel\",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,o=a.padding/2,n=e.width,r=e.height,e=new T(this.ctx).drawRect(e.x-s,e.y-o/2,n+2*s,r+o,a.borderRadius,\"transparent\"===i.config.chart.background?\"#fff\":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new C(this.ctx).dropShadow(e,a.dropShadow),e}},{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(),o=null;(o=s.width&&s.height?this.addBackgroundToDataLabel(a,s):o)&&(a.parentNode.insertBefore(o.node,a),s=a.getAttribute(\"fill\"),(t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate():o).attr({fill:s}),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)}}]),e}(),q=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t}return n(e,[{key:\"handleBarDataLabels\",value:function(t){var e,i=t.x,a=t.y,s=t.y1,o=t.y2,n=t.i,r=t.j,l=t.realIndex,h=t.series,c=t.barHeight,d=t.barWidth,g=t.barYPosition,u=t.visibleSeries,t=t.renderedPath,p=this.w,f=new T(this.barCtx.ctx),x=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[l]:this.barCtx.strokeWidth,b=i+parseFloat(d*u),m=a+parseFloat(c*u),u=(p.globals.isXNumeric&&!p.globals.isBarHorizontal&&(b=i+parseFloat(d*(u+1)),m=a+parseFloat(c*(u+1))-x),i),y=a,v={},w=p.config.dataLabels,k=this.barCtx.barOptions.dataLabels,g=(void 0!==g&&this.barCtx.isRangeBar&&(y=m=g),w.offsetX),A=w.offsetY,S={width:0,height:0},f=(p.config.dataLabels.enabled&&(e=this.barCtx.series[n][r],S=f.getTextRects(p.globals.yLabelFormatters[0](e),parseFloat(w.style.fontSize))),{x:i,y:a,i:n,j:r,renderedPath:t,bcx:b,bcy:m,barHeight:c,barWidth:d,textRects:S,strokeWidth:x,dataLabelsX:u,dataLabelsY:y,barDataLabelsConfig:k,offX:g,offY:A}),v=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(f):this.calculateColumnsDataLabelsPosition(f);return t.attr({cy:v.bcy,cx:v.bcx,j:r,val:h[n][r],barHeight:c,barWidth:d}),this.drawCalculatedDataLabels({x:v.dataLabelsX,y:v.dataLabelsY,val:this.barCtx.isRangeBar?[s,o]:h[n][r],i:l,j:r,barWidth:d,barHeight:c,textRects:S,dataLabelsConfig:w})}},{key:\"calculateColumnsDataLabelsPosition\",value:function(t){var e=this.w,i=t.i,a=t.j,s=t.y,o=t.bcx,n=t.barWidth,r=t.barHeight,l=t.textRects,h=t.dataLabelsY,c=t.barDataLabelsConfig,d=t.strokeWidth,g=t.offX,u=t.offY,r=Math.abs(r),p=\"vertical\"===e.config.plotOptions.bar.dataLabels.orientation,t=(o-=d/2,e.globals.gridWidth/e.globals.dataPoints),f=(t=e.globals.isXNumeric?o-n/2+g:o-t+n/2+g,p&&(t=t+l.height/2-d/2-2),this.barCtx.series[i][a]<0),x=s;switch(this.barCtx.isReversed&&(x=s-r+(f?2*r:0),s-=r),c.position){case\"center\":h=p?f?x+r/2+u:x+r/2-u:f?x-r/2+l.height/2+u:x+r/2+l.height/2-u;break;case\"bottom\":h=p?f?x+r+u:x+r-u:f?x-r+l.height+d+u:x+r-l.height/2+d-u;break;case\"top\":h=p?f?x+u:x-u:f?x-l.height/2-u:x+l.height+u}return e.config.chart.stacked||(h<0?h=0+d:h+l.height/3>e.globals.gridHeight&&(h=e.globals.gridHeight-d)),{bcx:o,bcy:s,dataLabelsX:t,dataLabelsY:h}}},{key:\"calculateBarsDataLabelsPosition\",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,o=t.bcy,n=t.barHeight,r=t.barWidth,l=t.textRects,h=t.dataLabelsX,c=t.strokeWidth,d=t.barDataLabelsConfig,g=t.offX,t=t.offY,u=e.globals.gridHeight/e.globals.dataPoints,r=Math.abs(r),u=o-(this.barCtx.isRangeBar?0:u)+n/2+l.height/2+t-3,p=this.barCtx.series[a][s]<0,f=i;switch(this.barCtx.isReversed&&(f=i+r-(p?2*r:0),i=e.globals.gridWidth-r),d.position){case\"center\":h=p?f+r/2-g:Math.max(l.width/2,f-r/2)+g;break;case\"bottom\":h=p?f+r-c-Math.round(l.width/2)-g:f-r+c+Math.round(l.width/2)+g;break;case\"top\":h=p?f-c+Math.round(l.width/2)-g:f-c-Math.round(l.width/2)+g}return e.config.chart.stacked||(h<0?h=h+l.width+c:h+l.width/2>e.globals.gridWidth&&(h=e.globals.gridWidth-l.width-c)),{bcx:i,bcy:o,dataLabelsX:h,dataLabelsY:u}}},{key:\"drawCalculatedDataLabels\",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,o=t.j,n=t.textRects,r=t.barHeight,l=t.barWidth,t=t.dataLabelsConfig,h=this.w,c=\"rotate(0)\",d=(\"vertical\"===h.config.plotOptions.bar.dataLabels.orientation&&(c=\"rotate(-90, \".concat(e,\", \").concat(i,\")\")),new v(this.barCtx.ctx)),g=new T(this.barCtx.ctx),u=t.formatter,p=null,f=-1<h.globals.collapsedSeriesIndices.indexOf(s);return t.enabled&&!f&&(p=g.group({class:\"apexcharts-data-labels\",transform:c}),f=\"\",void 0!==a&&(f=u(a,{seriesIndex:s,dataPointIndex:o,w:h})),c=h.globals.series[s][o]<0,u=h.config.plotOptions.bar.dataLabels.position,\"vertical\"===h.config.plotOptions.bar.dataLabels.orientation&&(\"top\"===u&&(t.textAnchor=c?\"end\":\"start\"),\"center\"===u&&(t.textAnchor=\"middle\"),\"bottom\"===u)&&(t.textAnchor=c?\"end\":\"start\"),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<g.getTextRects(f,parseFloat(t.style.fontSize)).width&&(f=\"\"),h.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?n.width/1.6>Math.abs(l)&&(f=\"\"):n.height/1.6>Math.abs(r)&&(f=\"\")),u=P({},t),this.barCtx.isHorizontal&&a<0&&(\"start\"===t.textAnchor?u.textAnchor=\"end\":\"end\"===t.textAnchor&&(u.textAnchor=\"start\")),d.plotDataLabelsText({x:e,y:i,text:f,i:s,j:o,parent:p,dataLabelsConfig:u,alwaysDrawDataLabel:!0,offsetCorrection:!0})),p}}]),e}(),f=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass=\"legend-mouseover-inactive\"}return n(e,[{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(M.escapeString(t),\"']\"))}},{key:\"isSeriesHidden\",value:function(t){var t=this.getSeriesByName(t),e=parseInt(t.getAttribute(\"data:realIndex\"),10);return{isHidden:t.classList.contains(\"apexcharts-series-collapsed\"),realIndex:e}}},{key:\"addCollapsedClassToSeries\",value:function(i,a){var t=this.w;function e(t){for(var e=0;e<t.length;e++)t[e].index===a&&i.node.classList.add(\"apexcharts-series-collapsed\")}e(t.globals.collapsedSeries),e(t.globals.ancillaryCollapsedSeries)}},{key:\"toggleSeries\",value:function(t){t=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:\"showSeries\",value:function(t){t=this.isSeriesHidden(t);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:\"hideSeries\",value:function(t){t=this.isSeriesHidden(t);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:\"resetSeries\",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],a=this.w,s=M.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++)-1<e.globals.collapsedSeriesIndices.indexOf(i)&&(t[i].data=[]);return t}},{key:\"toggleSeriesOnHover\",value:function(t,e){var i=this.w,a=(e=e||t.target,i.globals.dom.baseEl.querySelectorAll(\".apexcharts-series, .apexcharts-datalabels\"));if(\"mousemove\"===t.type){var e=parseInt(e.getAttribute(\"rel\"),10)-1,s=null,o=null;i.globals.axisCharts||\"radialBar\"===i.config.chart.type?i.globals.axisCharts?(s=i.globals.dom.baseEl.querySelector(\".apexcharts-series[data\\\\:realIndex='\".concat(e,\"']\")),o=i.globals.dom.baseEl.querySelector(\".apexcharts-datalabels[data\\\\:realIndex='\".concat(e,\"']\"))):s=i.globals.dom.baseEl.querySelector(\".apexcharts-series[rel='\".concat(1+e,\"']\")):s=i.globals.dom.baseEl.querySelector(\".apexcharts-series[rel='\".concat(1+e,\"'] path\"));for(var n=0;n<a.length;n++)a[n].classList.add(this.legendInactiveClass);null!==s&&(i.globals.axisCharts||s.parentNode.classList.remove(this.legendInactiveClass),s.classList.remove(this.legendInactiveClass),null!==o)&&o.classList.remove(this.legendInactiveClass)}else if(\"mouseout\"===t.type)for(var r=0;r<a.length;r++)a[r].classList.remove(this.legendInactiveClass)}},{key:\"highlightRangeInSeries\",value:function(t,e){function i(t){for(var e=0;e<o.length;e++)o[e].classList[t](a.legendInactiveClass)}var a=this,s=this.w,o=s.globals.dom.baseEl.getElementsByClassName(\"apexcharts-heatmap-rect\");if(\"mousemove\"===t.type){e=parseInt(e.getAttribute(\"rel\"),10)-1;i(\"add\");for(var n=s.config.plotOptions.heatmap.colorScale.ranges[e],r=0;r<o.length;r++){var l=parseInt(o[r].getAttribute(\"val\"),10);l>=n.from&&l<=n.to&&o[r].classList.remove(a.legendInactiveClass)}}else\"mouseout\"===t.type&&i(\"remove\")}},{key:\"getActiveConfigSeriesIndex\",value:function(){var a=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:\"asc\",s=this.w,e=0;if(1<s.config.series.length)for(var i=s.config.series.map(function(t,e){var i=!1;return a&&(i=\"bar\"===s.config.series[e].type||\"column\"===s.config.series[e].type),t.data&&0<t.data.length&&!i?e:-1}),o=\"asc\"===t?0:i.length-1;\"asc\"===t?o<i.length:0<=o;\"asc\"===t?o++:o--)if(-1!==i[o]){e=i[o];break}return e}},{key:\"getPreviousPaths\",value:function(){var c=this.w;c.globals.previousPaths=[];[\"line\",\"area\",\"bar\",\"rangebar\",\"candlestick\",\"radar\"].forEach(function(t){for(var e=c.globals.dom.baseEl.querySelectorAll(\".apexcharts-\".concat(t,\"-series .apexcharts-series\")),i=0;i<e.length;i++){a=h=l=r=n=o=s=void 0;for(var a,s=e,o=i,n=t,r=s[o].childNodes,l={type:n,paths:[],realIndex:s[o].getAttribute(\"data:realIndex\")},h=0;h<r.length;h++)r[h].hasAttribute(\"pathTo\")&&(a=r[h].getAttribute(\"pathTo\"),l.paths.push({d:a}));c.globals.previousPaths.push(l)}}),this.handlePrevBubbleScatterPaths(\"bubble\"),this.handlePrevBubbleScatterPaths(\"scatter\");var t=c.globals.dom.baseEl.querySelectorAll(\".apexcharts-\".concat(c.config.chart.type,\" .apexcharts-series\"));if(0<t.length)for(var e=function(t){for(var a=c.globals.dom.baseEl.querySelectorAll(\".apexcharts-\".concat(c.config.chart.type,\" .apexcharts-series[data\\\\:realIndex='\").concat(t,\"'] rect\")),s=[],e=function(e){function t(t){return a[e].getAttribute(t)}var i={x:parseFloat(t(\"x\")),y:parseFloat(t(\"y\")),width:parseFloat(t(\"width\")),height:parseFloat(t(\"height\"))};s.push({rect:i,color:a[e].getAttribute(\"color\")})},i=0;i<a.length;i++)e(i);c.globals.previousPaths.push(s)},i=0;i<t.length;i++)e(i);c.globals.axisCharts||(c.globals.previousPaths=c.globals.series)}},{key:\"handlePrevBubbleScatterPaths\",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-\".concat(t,\"-series .apexcharts-series\"));if(0<i.length)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\")),o=[],n=0;n<s.length;n++)o.push({x:s[n].getAttribute(\"cx\"),y:s[n].getAttribute(\"cy\"),r:s[n].getAttribute(\"r\")});e.globals.previousPaths.push(o)}}},{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 T(this.ctx),a=t.globals.svgWidth/2,s=t.globals.svgHeight/2,o=\"middle\";t.globals.noData=!0,t.globals.animationEnded=!0,\"left\"===e.align?(a=10,o=\"start\"):\"right\"===e.align&&(a=t.globals.svgWidth-10,o=\"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&&(i=i.drawText({x:a,y:s,text:e.text,textAnchor:o,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:\"apexcharts-text-nodata\"}),t.globals.dom.Paper.add(i))}},{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}},{key:\"filteredSeriesX\",value:function(){return this.w.globals.seriesX.map(function(t){return 0<t.length?t:[]})}}]),e}(),Z=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t}return n(e,[{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(0<t[i].length&&(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,o,n,r,l=this.w,h=l.globals.dataPoints,c=(this.barCtx.isRangeBar&&(h=l.globals.labels.length),this.barCtx.seriesLen);return l.config.plotOptions.bar.rangeBarGroupRows&&(c=1),this.barCtx.isHorizontal?(a=(i=l.globals.gridHeight/h)/c,a=(a=l.globals.isXNumeric?(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen:a)*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-a*this.barCtx.seriesLen)/2):(n=l.globals.gridWidth/this.barCtx.visibleItems,r=(n=l.config.xaxis.convertedCatToNumeric?l.globals.gridWidth/l.globals.dataPoints:n)/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric&&(h=this.barCtx.xRatio,l.config.xaxis.convertedCatToNumeric&&(h=this.barCtx.initialXRatio),(r=(n=l.globals.minXDiff&&.5!==l.globals.minXDiff&&0<l.globals.minXDiff/h?l.globals.minXDiff/h:n)/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1)&&(r=1),s=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+(n-r*this.barCtx.seriesLen)/2),{x:t,y:e,yDivision:i,xDivision:n,barHeight:a,barWidth:r,zeroH:s,zeroW:o}}},{key:\"getPathFillColor\",value:function(e,i,a,t){var s=this.w,o=new A(this.barCtx.ctx),n=null,r=this.barCtx.barOptions.distributed?a:i;return 0<this.barCtx.barOptions.colors.ranges.length&&this.barCtx.barOptions.colors.ranges.map(function(t){e[i][a]>=t.from&&e[i][a]<=t.to&&(n=t.color)}),s.config.series[i].data[a]&&s.config.series[i].data[a].fillColor&&(n=s.config.series[i].data[a].fillColor),o.fillPath({seriesNumber:this.barCtx.barOptions.distributed?r:t,dataPointIndex:a,color:n,value:e[i][a]})}},{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,a=s.config.stroke.show&&!this.barCtx.isNullValue?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,o=t.y1,n=t.y2,t=t.elSeries,r=this.w,l=new T(this.barCtx.ctx),h=new f(this.barCtx.ctx).getActiveConfigSeriesIndex();0<this.barCtx.barOptions.colors.backgroundBarColors.length&&h===i&&(e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length),h=this.barCtx.barOptions.colors.backgroundBarColors[e],i=l.drawRect(void 0!==a?a:0,void 0!==o?o:0,void 0!==s?s:r.globals.gridWidth,void 0!==n?n:r.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,h,this.barCtx.barOptions.colors.backgroundBarOpacity),t.add(i),i.node.classList.add(\"apexcharts-backgroundBar\"))}},{key:\"getColumnPaths\",value:function(t){var e=t.barWidth,i=t.barXPosition,a=t.yRatio,s=t.y1,o=t.y2,n=t.strokeWidth,r=t.series,l=t.realIndex,h=t.i,c=t.j,t=t.w,d=new T(this.barCtx.ctx),n=Array.isArray(n)?n[l]:n,a=this.getRoundedBars(t,{barWidth:e,strokeWidth:n=n||0,yRatio:a,barXPosition:i,y1:s,y2:o},r,h,c),o=i,r=i+e,i=d.move(o,s),e=d.move(o,s),g=d.line(r-n,s);return 0<t.globals.previousPaths.length&&(e=this.barCtx.getPreviousPath(l,c,!1)),i=i+d.line(o,a.y2)+a.pathWithRadius+d.line(r-n,a.y2)+g+g+\"z\",e=e+d.line(o,s)+g+g+g+g+g+d.line(o,s),t.config.chart.stacked&&(this.barCtx.yArrj.push(a.y2),this.barCtx.yArrjF.push(Math.abs(s-a.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[h][c])),{pathTo:i,pathFrom:e}}},{key:\"getBarpaths\",value:function(t){var e=t.barYPosition,i=t.barHeight,a=t.x1,s=t.x2,o=t.strokeWidth,n=t.series,r=t.realIndex,l=t.i,h=t.j,t=t.w,c=new T(this.barCtx.ctx),o=Array.isArray(o)?o[r]:o,s=this.getRoundedBars(t,{barHeight:i,strokeWidth:o=o||0,barYPosition:e,x2:s,x1:a},n,l,h),n=c.move(a,e),d=c.move(a,e),r=(0<t.globals.previousPaths.length&&(d=this.barCtx.getPreviousPath(r,h,!1)),e),e=e+i,i=c.line(a,e-o),n=n+c.line(s.x2,r)+s.pathWithRadius+c.line(s.x2,e-o)+i+i+\"z\",d=d+c.line(a,r)+i+i+i+i+i+c.line(a,r);return t.config.chart.stacked&&(this.barCtx.xArrj.push(s.x2),this.barCtx.xArrjF.push(Math.abs(a-s.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[l][h])),{pathTo:n,pathFrom:d}}},{key:\"getRoundedBars\",value:function(t,e,i,a,s){var o=new T(this.barCtx.ctx),n=0,r=t.config.plotOptions.bar.borderRadius,l=Array.isArray(r);return n=l?r[a>r.length-1?r.length-1:a]:r,t.config.chart.stacked&&1<i.length&&a!==this.barCtx.radiusOnSeriesNumber&&!l&&(n=0),this.barCtx.isHorizontal?(r=\"\",t=e.x2,Math.abs(e.x1-e.x2)<n&&(n=Math.abs(e.x1-e.x2)),void 0===i[a][s]&&null===i[a][s]||((l=this.barCtx.isReversed?0<i[a][s]:i[a][s]<0)&&(n*=-1),r=o.quadraticCurve((t-=n)+n,e.barYPosition,t+n,e.barYPosition+(l?-1*n:n))+o.line(t+n,e.barYPosition+e.barHeight-e.strokeWidth-(l?-1*n:n))+o.quadraticCurve(t+n,e.barYPosition+e.barHeight-e.strokeWidth,t,e.barYPosition+e.barHeight-e.strokeWidth)),{pathWithRadius:r,x2:t}):(l=\"\",r=e.y2,Math.abs(e.y1-e.y2)<n&&(n=Math.abs(e.y1-e.y2)),void 0===i[a][s]&&null===i[a][s]||((t=i[a][s]<0)&&(n*=-1),l=o.quadraticCurve(e.barXPosition,(r+=n)-n,e.barXPosition+(t?-1*n:n),r-n)+o.line(e.barXPosition+e.barWidth-e.strokeWidth-(t?-1*n:n),r-n)+o.quadraticCurve(e.barXPosition+e.barWidth-e.strokeWidth,r-n,e.barXPosition+e.barWidth-e.strokeWidth,r)),{pathWithRadius:l,y2:r})}},{key:\"checkZeroSeries\",value:function(t){for(var e=t.series,i=this.w,a=0;a<e.length;a++){for(var s=0,o=0;o<e[i.globals.maxValsInArrayIndex].length;o++)s+=e[a][o];0===s&&this.barCtx.zeroSerieses.push(a)}for(var n=e.length-1;0<=n;n--)-1<this.barCtx.zeroSerieses.indexOf(n)&&n===this.radiusOnSeriesNumber&&--this.barCtx.radiusOnSeriesNumber;for(var r=e.length-1;0<=r;r--)-1<i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)&&--this.barCtx.radiusOnSeriesNumber}},{key:\"getXForValue\",value:function(t,e){var i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2]?e:null;return i=null!=t?e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0):i}},{key:\"getYForValue\",value:function(t,e){var i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2]?e:null;return i=null!=t?e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0):i}},{key:\"getGoalValues\",value:function(i,a,s,t,e){var o=this,n=this.w,r=[];return n.globals.seriesGoals[t]&&n.globals.seriesGoals[t][e]&&Array.isArray(n.globals.seriesGoals[t][e])&&n.globals.seriesGoals[t][e].forEach(function(t){var e;r.push((l(e={},i,\"x\"===i?o.getXForValue(t.value,a,!1):o.getYForValue(t.value,s,!1)),l(e,\"attrs\",t),e))}),r}},{key:\"drawGoalLine\",value:function(t){var a=t.barXPosition,s=t.barYPosition,e=t.goalX,i=t.goalY,o=t.barWidth,n=t.barHeight,r=new T(this.barCtx.ctx),l=r.group({className:\"apexcharts-bar-goals-groups\"}),h=null;return this.barCtx.isHorizontal?Array.isArray(e)&&e.forEach(function(t){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:n/2,i=s+e+n/2;h=r.drawLine(t.x,i-2*e,t.x,i,t.attrs.strokeColor||void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth||2,t.attrs.strokeLineCap),l.add(h)}):Array.isArray(i)&&i.forEach(function(t){var e=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:o/2,i=a+e+o/2;h=r.drawLine(i-2*e,t.y,i,t.y,t.attrs.strokeColor||void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight||2,t.attrs.strokeLineCap),l.add(h)}),l}}]),e}(),L=function(){function i(t,e){s(this,i),this.ctx=t,this.w=t.w;t=this.w;this.barOptions=t.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=t.config.stroke.width,this.isNullValue=!1,this.isRangeBar=t.globals.seriesRangeBar.length&&this.isHorizontal,this.xyRatios=e,null!==this.xyRatios&&(this.xRatio=e.xRatio,this.initialXRatio=e.initialXRatio,this.yRatio=e.yRatio,this.invertedXRatio=e.invertedXRatio,this.invertedYRatio=e.invertedYRatio,this.baseLineY=e.baseLineY,this.baseLineInvertedY=e.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new Z(this)}return n(i,[{key:\"draw\",value:function(t,e){var i=this.w,a=new T(this.ctx),s=new I(this.ctx,i),o=(t=s.getLogSeries(t),this.series=t,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),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 n=0,r=0;n<t.length;n++,r++){var l=void 0,h=void 0,c=[],d=[],g=i.globals.comboCharts?e[n]:n,u=a.group({class:\"apexcharts-series\",rel:n+1,seriesName:M.escapeString(i.globals.seriesNames[g]),\"data:realIndex\":g}),p=(this.ctx.series.addCollapsedClassToSeries(u,g),0<t[n].length&&(this.visibleI=this.visibleI+1),0),f=0,x=(1<this.yRatio.length&&(this.yaxisIndex=g),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.barHelpers.initialPositions()),h=x.y,p=x.barHeight,b=x.yDivision,m=x.zeroW,l=x.x,f=x.barWidth,y=x.xDivision,v=x.zeroH;this.horizontal||d.push(l+f/2);for(var w=a.group({class:\"apexcharts-datalabels\",\"data:realIndex\":g}),k=a.group({class:\"apexcharts-bar-goals-markers\",style:\"pointer-events: none\"}),A=0;A<i.globals.dataPoints;A++){var S=this.barHelpers.getStrokeWidth(n,A,g),C=null,L={indexes:{i:n,j:A,realIndex:g,bc:r},x:l,y:h,strokeWidth:S,elSeries:u},L=(this.isHorizontal?(C=this.drawBarPaths(P(P({},L),{},{barHeight:p,zeroW:m,yDivision:b})),f=this.series[n][A]/this.invertedYRatio):(C=this.drawColumnPaths(P(P({},L),{},{xDivision:y,barWidth:f,zeroH:v})),p=this.series[n][A]/this.yRatio[this.yaxisIndex]),this.barHelpers.drawGoalLine({barXPosition:C.barXPosition,barYPosition:C.barYPosition,goalX:C.goalX,goalY:C.goalY,barHeight:p,barWidth:f})),L=(L&&k.add(L),h=C.y,l=C.x,0<A&&d.push(l+f/2),c.push(h),this.barHelpers.getPathFillColor(t,n,A,g));this.renderSeries({realIndex:g,pathFill:L,j:A,i:n,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:S,elSeries:u,x:l,y:h,series:t,barHeight:p,barWidth:f,elDataLabelsWrap:w,elGoalsMarkers:k,visibleSeries:this.visibleI,type:\"bar\"})}i.globals.seriesXvalues[g]=d,i.globals.seriesYvalues[g]=c,o.add(u)}return o}},{key:\"renderSeries\",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,s=t.j,o=t.i,n=t.pathFrom,r=t.pathTo,l=t.strokeWidth,h=t.elSeries,c=t.x,d=t.y,g=t.y1,u=t.y2,p=t.series,f=t.barHeight,x=t.barWidth,b=t.barYPosition,m=t.elDataLabelsWrap,y=t.elGoalsMarkers,v=t.visibleSeries,t=t.type,w=this.w,k=new T(this.ctx),a=a||(this.barOptions.distributed?w.globals.stroke.colors[s]:w.globals.stroke.colors[e]),A=(w.config.series[o].data[s]&&w.config.series[o].data[s].strokeColor&&(a=w.config.series[o].data[s].strokeColor),this.isNullValue&&(i=\"none\"),s/w.config.chart.animations.animateGradually.delay*(w.config.chart.animations.speed/w.globals.dataPoints)/2.4),k=k.renderPaths({i:o,j:s,realIndex:e,pathFrom:n,pathTo:r,stroke:a,strokeWidth:l,strokeLineCap:w.config.stroke.lineCap,fill:i,animationDelay:A,initialSpeed:w.config.chart.animations.speed,dataChangeSpeed:w.config.chart.animations.dynamicAnimation.speed,className:\"apexcharts-\".concat(t,\"-area\")}),n=(k.attr(\"clip-path\",\"url(#gridRectMask\".concat(w.globals.cuid,\")\")),w.config.forecastDataPoints);0<n.count&&s>=w.globals.dataPoints-n.count&&(k.node.setAttribute(\"stroke-dasharray\",n.dashArray),k.node.setAttribute(\"stroke-width\",n.strokeWidth),k.node.setAttribute(\"fill-opacity\",n.fillOpacity)),void 0!==g&&void 0!==u&&(k.attr(\"data-range-y1\",g),k.attr(\"data-range-y2\",u)),new C(this.ctx).setSelectionFilter(k,e,s),h.add(k);r=new q(this).handleBarDataLabels({x:c,y:d,y1:g,y2:u,i:o,j:s,series:p,realIndex:e,barHeight:f,barWidth:x,barYPosition:b,renderedPath:k,visibleSeries:v});return null!==r&&m.add(r),h.add(m),y&&h.add(y),h}},{key:\"drawBarPaths\",value:function(t){var e=t.indexes,i=t.barHeight,a=t.strokeWidth,s=t.zeroW,o=(t.x,t.y),n=t.yDivision,t=t.elSeries,r=this.w,l=e.i,h=e.j,c=(o=r.globals.isXNumeric?(r.globals.seriesX[l][h]-r.globals.minX)/this.invertedXRatio-i:o)+i*this.visibleI,d=this.barHelpers.getXForValue(this.series[l][h],s),a=this.barHelpers.getBarpaths({barYPosition:c,barHeight:i,x1:s,x2:d,strokeWidth:a,series:this.series,realIndex:e.realIndex,i:l,j:h,w:r});return r.globals.isXNumeric||(o+=n),this.barHelpers.barBackground({j:h,i:l,y1:c-i*this.visibleI,y2:i*this.seriesLen,elSeries:t}),{pathTo:a.pathTo,pathFrom:a.pathFrom,x:d,y:o,goalX:this.barHelpers.getGoalValues(\"x\",s,null,l,h),barYPosition:c}}},{key:\"drawColumnPaths\",value:function(t){var e=t.indexes,i=t.x,a=(t.y,t.xDivision),s=t.barWidth,o=t.zeroH,n=t.strokeWidth,t=t.elSeries,r=this.w,l=e.realIndex,h=e.i,c=e.j,d=e.bc,l=(r.globals.isXNumeric&&(r.globals.seriesX[l=l].length||(l=r.globals.maxValsInArrayIndex),i=(r.globals.seriesX[l][c]-r.globals.minX)/this.xRatio-s*this.seriesLen/2),i+s*this.visibleI),g=this.barHelpers.getYForValue(this.series[h][c],o),e=this.barHelpers.getColumnPaths({barXPosition:l,barWidth:s,y1:o,y2:g,strokeWidth:n,series:this.series,realIndex:e.realIndex,i:h,j:c,w:r});return r.globals.isXNumeric||(i+=a),this.barHelpers.barBackground({bc:d,j:c,i:h,x1:l-n/2-s*this.visibleI,x2:s*this.seriesLen+n/2,elSeries:t}),{pathTo:e.pathTo,pathFrom:e.pathFrom,x:i,y:g,goalY:this.barHelpers.getGoalValues(\"y\",null,o,h,c),barXPosition:l}}},{key:\"getPreviousPath\",value:function(t,e){for(var i,a=this.w,s=0;s<a.globals.previousPaths.length;s++){var o=a.globals.previousPaths[s];o.paths&&0<o.paths.length&&parseInt(o.realIndex,10)===parseInt(t,10)&&void 0!==a.globals.previousPaths[s].paths[e]&&(i=a.globals.previousPaths[s].paths[e].d)}return i}}]),i}(),k=function(){function e(t){s(this,e),this.ctx=t,this.w=t.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 n(e,[{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)):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);return isNaN(e)?(e=Date.parse(t.replace(/-/g,\"/\").replace(/[a-z]+/gi,\" \")),this.getTimeStamp(e)):this.getTimeStamp(t)}},{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(g(i.months)),o=[\"\u0001\"].concat(g(i.shortMonths)),n=[\"\u0002\"].concat(g(i.days)),i=[\"\u0003\"].concat(g(i.shortDays));function r(t,e){var i=t+\"\";for(e=e||2;i.length<e;)i=\"0\"+i;return i}var l,h=a?t.getUTCFullYear():t.getFullYear(),h=(e=(e=(e=e.replace(/(^|[^\\\\])yyyy+/g,\"$1\"+h)).replace(/(^|[^\\\\])yy/g,\"$1\"+h.toString().substr(2,2))).replace(/(^|[^\\\\])y/g,\"$1\"+h),(a?t.getUTCMonth():t.getMonth())+1),c=(e=(e=(e=(e=e.replace(/(^|[^\\\\])MMMM+/g,\"$1\"+s[0])).replace(/(^|[^\\\\])MMM/g,\"$1\"+o[0])).replace(/(^|[^\\\\])MM/g,\"$1\"+r(h))).replace(/(^|[^\\\\])M/g,\"$1\"+h),a?t.getUTCDate():t.getDate()),c=(e=(e=(e=(e=e.replace(/(^|[^\\\\])dddd+/g,\"$1\"+n[0])).replace(/(^|[^\\\\])ddd/g,\"$1\"+i[0])).replace(/(^|[^\\\\])dd/g,\"$1\"+r(c))).replace(/(^|[^\\\\])d/g,\"$1\"+c),a?t.getUTCHours():t.getHours()),d=12<c?c-12:0===c?12:c,d=(e=(e=(e=(e=e.replace(/(^|[^\\\\])HH+/g,\"$1\"+r(c))).replace(/(^|[^\\\\])H/g,\"$1\"+c)).replace(/(^|[^\\\\])hh+/g,\"$1\"+r(d))).replace(/(^|[^\\\\])h/g,\"$1\"+d),a?t.getUTCMinutes():t.getMinutes()),d=(e=(e=e.replace(/(^|[^\\\\])mm+/g,\"$1\"+r(d))).replace(/(^|[^\\\\])m/g,\"$1\"+d),a?t.getUTCSeconds():t.getSeconds()),d=(e=(e=e.replace(/(^|[^\\\\])ss+/g,\"$1\"+r(d))).replace(/(^|[^\\\\])s/g,\"$1\"+d),a?t.getUTCMilliseconds():t.getMilliseconds()),c=(e=e.replace(/(^|[^\\\\])fff+/g,\"$1\"+r(d,3)),d=Math.round(d/10),e=e.replace(/(^|[^\\\\])ff/g,\"$1\"+r(d)),d=Math.round(d/10),c<12?\"AM\":\"PM\"),d=(e=(e=(e=e.replace(/(^|[^\\\\])f/g,\"$1\"+d)).replace(/(^|[^\\\\])TT+/g,\"$1\"+c)).replace(/(^|[^\\\\])T/g,\"$1\"+c.charAt(0)),c.toLowerCase()),c=(e=(e=e.replace(/(^|[^\\\\])tt+/g,\"$1\"+d)).replace(/(^|[^\\\\])t/g,\"$1\"+d.charAt(0)),-t.getTimezoneOffset()),d=a||!c?\"Z\":0<c?\"+\":\"-\",c=(a||(l=(c=Math.abs(c))%60,d+=r(Math.floor(c/60))+\":\"+r(l)),e=e.replace(/(^|[^\\\\])K/g,\"$1\"+d),(a?t.getUTCDay():t.getDay())+1);return e=(e=(e=(e=(e=e.replace(new RegExp(n[0],\"g\"),n[c])).replace(new RegExp(i[0],\"g\"),i[c])).replace(new RegExp(s[0],\"g\"),s[h])).replace(new RegExp(o[0],\"g\"),o[h])).replace(/\\\\(.)/g,\"$1\")}},{key:\"getTimeUnitsfromTimestamp\",value:function(t,e,i){var a=this.w,a=(void 0!==a.config.xaxis.min&&(t=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(e=a.config.xaxis.max),this.getDate(t)),t=this.getDate(e),e=this.formatDate(a,\"yyyy MM dd HH mm ss fff\").split(\" \"),a=this.formatDate(t,\"yyyy MM dd HH mm ss fff\").split(\" \");return{minMillisecond:parseInt(e[6],10),maxMillisecond:parseInt(a[6],10),minSecond:parseInt(e[5],10),maxSecond:parseInt(a[5],10),minMinute:parseInt(e[4],10),maxMinute:parseInt(a[4],10),minHour:parseInt(e[3],10),maxHour:parseInt(a[3],10),minDate:parseInt(e[2],10),maxDate:parseInt(a[2],10),minMonth:parseInt(e[1],10)-1,maxMonth:parseInt(a[1],10)-1,minYear:parseInt(e[0],10),maxYear:parseInt(a[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 e=this.isLeapYear(t)?366:e}},{key:\"determineRemainingDaysOfYear\",value:function(t,e,i){i=this.daysCntOfYear[e]+i;return 1<e&&this.isLeapYear()&&i++,i}},{key:\"determineDaysOfMonths\",value:function(t,e){var i=30;return t=M.monthMod(t),!0==-1<this.months30.indexOf(t)?2===t&&(i=this.isLeapYear(e)?29:28):(this.months31.indexOf(t),i=31),i}}]),e}(),m=function(){o(e,L);var t=h(e);function e(){return s(this,e),t.apply(this,arguments)}return n(e,[{key:\"draw\",value:function(t,e){for(var i=this.w,a=new T(this.ctx),s=(this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t),a.group({class:\"apexcharts-rangebar-series apexcharts-plot-series\"})),o=0;o<t.length;o++){for(var n=void 0,r=void 0,l=i.globals.comboCharts?e[o]:o,h=a.group({class:\"apexcharts-series\",seriesName:M.escapeString(i.globals.seriesNames[l]),rel:o+1,\"data:realIndex\":l}),c=(this.ctx.series.addCollapsedClassToSeries(h,l),0<t[o].length&&(this.visibleI=this.visibleI+1),0),d=0,g=(1<this.yRatio.length&&(this.yaxisIndex=l),this.barHelpers.initialPositions()),r=g.y,u=g.zeroW,n=g.x,d=g.barWidth,p=g.xDivision,f=g.zeroH,x=a.group({class:\"apexcharts-datalabels\",\"data:realIndex\":l}),b=a.group({class:\"apexcharts-rangebar-goals-markers\",style:\"pointer-events: none\"}),m=0;m<i.globals.dataPoints;m++){var y=this.barHelpers.getStrokeWidth(o,m,l),v=this.seriesRangeStart[o][m],w=this.seriesRangeEnd[o][m],k=null,A=null,S={x:n,y:r,strokeWidth:y,elSeries:h},C=g.yDivision;if(c=g.barHeight,this.isHorizontal){A=r+c*this.visibleI;var L=this.seriesLen,L=(C-c*(L=i.config.plotOptions.bar.rangeBarGroupRows?1:L))/2;if(void 0===i.config.series[o].data[m])break;i.config.series[o].data[m].x&&(c=(L=this.detectOverlappingBars({i:o,j:m,barYPosition:A,srty:L,barHeight:c,yDivision:C,initPositions:g})).barHeight,A=L.barYPosition),d=(k=this.drawRangeBarPaths(P({indexes:{i:o,j:m,realIndex:l},barHeight:c,barYPosition:A,zeroW:u,yDivision:C,y1:v,y2:w},S))).barWidth}else c=(k=this.drawRangeColumnPaths(P({indexes:{i:o,j:m,realIndex:l},zeroH:f,barWidth:d,xDivision:p},S))).barHeight;L=this.barHelpers.drawGoalLine({barXPosition:k.barXPosition,barYPosition:A,goalX:k.goalX,goalY:k.goalY,barHeight:c,barWidth:d}),C=(L&&b.add(L),r=k.y,n=k.x,this.barHelpers.getPathFillColor(t,o,m,l)),S=i.globals.stroke.colors[l];this.renderSeries({realIndex:l,pathFill:C,lineFill:S,j:m,i:o,x:n,y:r,y1:v,y2:w,pathFrom:k.pathFrom,pathTo:k.pathTo,strokeWidth:y,elSeries:h,series:t,barHeight:c,barYPosition:A,barWidth:d,elDataLabelsWrap:x,elGoalsMarkers:b,visibleSeries:this.visibleI,type:\"rangebar\"})}s.add(h)}return s}},{key:\"detectOverlappingBars\",value:function(t){var e=t.i,i=t.j,a=t.barYPosition,s=t.srty,o=t.barHeight,n=t.yDivision,t=t.initPositions,r=this.w,l=[],h=r.config.series[e].data[i].rangeName,c=r.config.series[e].data[i].x,i=r.globals.labels.indexOf(c),d=r.globals.seriesRangeBar[e].findIndex(function(t){return t.x===c&&0<t.overlaps.length}),a=r.config.plotOptions.bar.rangeBarGroupRows?s+n*i:s+o*this.visibleI+n*i;return{barYPosition:a=-1<d&&!r.config.plotOptions.bar.rangeBarOverlap&&-1<(l=r.globals.seriesRangeBar[e][d].overlaps).indexOf(h)?(o=t.barHeight/l.length)*this.visibleI+n*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+l.indexOf(h))+n*i:a,barHeight:o}}},{key:\"drawRangeColumnPaths\",value:function(t){var e=t.indexes,i=t.x,a=(t.strokeWidth,t.xDivision),s=t.barWidth,t=t.zeroH,o=this.w,n=e.i,r=e.j,l=this.yRatio[this.yaxisIndex],h=e.realIndex,c=this.getRangeValue(h,r),d=Math.min(c.start,c.end),c=Math.max(c.start,c.end),g=(i=o.globals.isXNumeric?(o.globals.seriesX[n][r]-o.globals.minX)/this.xRatio-s/2:i)+s*this.visibleI,l=(void 0===this.series[n][r]||null===this.series[n][r]?d=t:(d=t-d/l,c=t-c/l),Math.abs(c-d)),s=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:s,y1:d,y2:c,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:h,j:r,w:o});return o.globals.isXNumeric||(i+=a),{pathTo:s.pathTo,pathFrom:s.pathFrom,barHeight:l,x:i,y:c,goalY:this.barHelpers.getGoalValues(\"y\",null,t,n,r),barXPosition:g}}},{key:\"drawRangeBarPaths\",value:function(t){var e=t.indexes,i=t.y,a=t.y1,s=t.y2,o=t.yDivision,n=t.barHeight,r=t.barYPosition,t=t.zeroW,l=this.w,a=t+a/this.invertedYRatio,s=t+s/this.invertedYRatio,h=Math.abs(s-a),r=this.barHelpers.getBarpaths({barYPosition:r,barHeight:n,x1:a,x2:s,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:l});return l.globals.isXNumeric||(i+=o),{pathTo:r.pathTo,pathFrom:r.pathFrom,barWidth:h,x:s,goalX:this.barHelpers.getGoalValues(\"x\",t,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,o=t.y2,t=t.w,n=t.globals.seriesRangeStart[i][a],r=t.globals.seriesRangeEnd[i][a],l=t.globals.labels[a],h=t.config.series[i].name||\"\",c=t.config.tooltip.y.formatter,d=t.config.tooltip.y.title.formatter,g={w:t,seriesIndex:i,dataPointIndex:a,start:n,end:r},d=(\"function\"==typeof d&&(h=d(h,g)),Number.isFinite(s)&&Number.isFinite(o)&&(n=s,r=o,t.config.series[i].data[a].x&&(l=t.config.series[i].data[a].x+\":\"),\"function\"==typeof c)&&(l=c(l,g)),\"\"),s=\"\",o=t.globals.colors[i];return s=void 0===t.config.tooltip.x.formatter?\"datetime\"===t.config.xaxis.type?(d=(a=new k(e)).formatDate(a.getDate(n),t.config.tooltip.x.format),a.formatDate(a.getDate(r),t.config.tooltip.x.format)):(d=n,r):(d=t.config.tooltip.x.formatter(n),t.config.tooltip.x.formatter(r)),{start:n,end:r,startVal:d,endVal:s,ylabel:l,color:o,seriesName:h}}},{key:\"buildCustomTooltipHTML\",value:function(t){var e=t.color,i=t.seriesName;return'<div class=\"apexcharts-tooltip-rangebar\"><div> <span class=\"series-name\" style=\"color: '+e+'\">'+(i||\"\")+'</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>\"}}]),e}(),c=function(){function e(t){s(this,e),this.opts=t}return n(e,[{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){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;return M.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 a=this;return{stroke:{width:1,colors:[\"#333\"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex,i=t.dataPointIndex,t=t.w;return a._getBoxTooltip(t,e,i,[\"Open\",\"High\",\"\",\"Low\",\"Close\"],\"candlestick\")}},states:{active:{filter:{type:\"none\"}}},xaxis:{crosshairs:{width:1}}}}},{key:\"boxPlot\",value:function(){var a=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:[\"#24292e\"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex,i=t.dataPointIndex,t=t.w;return a._getBoxTooltip(t,e,i,[\"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,e=e.w,s=e.globals.seriesRangeStart[i][a];return e.globals.seriesRangeEnd[i][a]-s},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?(e=(i=new m((e=t).ctx,null)).getTooltipValues(e),a=e.color,s=e.seriesName,o=e.ylabel,n=e.startVal,e=e.endVal,i.buildCustomTooltipHTML({color:a,seriesName:s,ylabel:o,start:n,end:e})):(i=(a=new m((i=t).ctx,null)).getTooltipValues(i),s=i.color,o=i.seriesName,n=i.ylabel,e=i.start,i=i.end,a.buildCustomTooltipHTML({color:s,seriesName:o,ylabel:n,start:e,end:i}));var e,i,a,s,o,n}},xaxis:{tickPlacement:\"between\",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:\"area\",value:function(){return{stroke:{width:4,fill:{type:\"solid\",gradient:{inverseColors:!1,shade:\"light\",type:\"vertical\",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:\"gradient\",gradient:{inverseColors:!1,shade:\"light\",type:\"vertical\",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:\"brush\",value:function(t){return M.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(i){i.dataLabels=i.dataLabels||{},i.dataLabels.formatter=i.dataLabels.formatter||void 0;var t=i.dataLabels.formatter;return i.yaxis.forEach(function(t,e){i.yaxis[e].min=0,i.yaxis[e].max=100}),\"bar\"===i.chart.type&&(i.dataLabels.formatter=t||function(t){return\"number\"==typeof t?t&&t.toFixed(0)+\"%\":t}),i}},{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 M.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(s=i&&i.length?i.map(function(t){return Array.isArray(t)?t:String(t)}):s)&&s.length&&(t.xaxis.labels.formatter=function(t){return M.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||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||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 o=t.globals.seriesCandleO[e][i],n=t.globals.seriesCandleH[e][i],r=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],h=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||\"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\">')+o+\"</span></div>\"+\"<div>\".concat(a[1],': <span class=\"value\">')+n+\"</span></div>\"+(r?\"<div>\".concat(a[2],': <span class=\"value\">')+r+\"</span></div>\":\"\")+\"<div>\".concat(a[3],': <span class=\"value\">')+l+\"</span></div>\"+\"<div>\".concat(a[4],': <span class=\"value\">')+h+\"</span></div></div>\"}}]),e}(),p=function(){function e(t){s(this,e),this.opts=t}return n(e,[{key:\"init\",value:function(t){var e,t=t.responsiveOverride,i=this.opts,a=new d,s=new c(i),a=(this.chartType=i.chart.type,\"histogram\"===this.chartType&&(i.chart.type=\"bar\",i=M.extend({plotOptions:{bar:{columnWidth:\"99.99%\"}}},i)),i=this.extendYAxis(i),i=this.extendAnnotations(i),a.init()),o={},t=(i&&\"object\"===y(i)&&(e={},e=-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&&(e=s.brush(e)),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||{},t||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,e,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(e=s.sparkline(e)),o=M.extend(a,e)),M.extend(o,window.Apex)),a=M.extend(t,i);return this.handleUserInputErrors(a)}},{key:\"checkForCatToNumericXAxis\",value:function(t,e,i){var a=new c(i),s=(\"bar\"===t||\"boxPlot\"===t)&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,o=\"datetime\"!==i.xaxis.type&&\"numeric\"!==i.xaxis.type,e=i.xaxis.tickPlacement||e.xaxis&&e.xaxis.tickPlacement;return i=s||(\"pie\"===t||\"polarArea\"===t||\"donut\"===t||\"radar\"===t||\"radialBar\"===t||\"heatmap\"===t)||!o||\"between\"===e?i:a.convertCatToNumeric(i)}},{key:\"extendYAxis\",value:function(i,t){var a=new d,e=((void 0===i.yaxis||!i.yaxis||Array.isArray(i.yaxis)&&0===i.yaxis.length)&&(i.yaxis={}),i.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(i.yaxis=M.extend(i.yaxis,window.Apex.yaxis)),i.yaxis.constructor!==Array?i.yaxis=[M.extend(a.yAxis,i.yaxis)]:i.yaxis=M.extendArray(i.yaxis,a.yAxis),!1),s=(i.yaxis.forEach(function(t){t.logarithmic&&(e=!0)}),i.series);return t&&!s&&(s=t.config.series),e&&s.length!==i.yaxis.length&&s.length&&(i.yaxis=s.map(function(t,e){return t.name||(s[e].name=\"series-\".concat(e+1)),i.yaxis[e]?(i.yaxis[e].seriesName=s[e].name,i.yaxis[e]):((t=M.extend(a.yAxis,i.yaxis[0])).show=!1,t)})),e&&1<s.length&&s.length!==i.yaxis.length&&console.warn(\"A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both.\"),i}},{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),t=this.extendPointAnnotations(t)}},{key:\"extendYAxisAnnotations\",value:function(t){var e=new d;return t.annotations.yaxis=M.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:\"extendXAxisAnnotations\",value:function(t){var e=new d;return t.annotations.xaxis=M.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:\"extendPointAnnotations\",value:function(t){var e=new d;return t.annotations.points=M.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){if(t.tooltip.shared&&t.tooltip.intersect)throw new Error(\"tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.\");if(\"bar\"===t.chart.type&&t.plotOptions.bar.horizontal){if(1<t.yaxis.length)throw new Error(\"Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false\");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return\"bar\"!==t.chart.type&&\"rangeBar\"!==t.chart.type||t.tooltip.shared&&\"barWidth\"===t.xaxis.crosshairs.width&&1<t.series.length&&(t.xaxis.crosshairs.width=\"tickWidth\"),\"candlestick\"!==t.chart.type&&\"boxPlot\"!==t.chart.type||t.yaxis[0].reversed&&(console.warn(\"Reversed y-axis in \".concat(t.chart.type,\" chart is not supported.\")),t.yaxis[0].reversed=!1),t}}]),e}(),$=function(){function t(){s(this,t)}return n(t,[{key:\"initGlobalVars\",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRangeBar=[],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.hasGroups=!1,t.groups=[],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,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:\"init\",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=M.extend({},t),e.initialSeries=M.clone(t.series),e.lastXAxis=M.clone(e.initialConfig.xaxis),e.lastYAxis=M.clone(e.initialConfig.yaxis),e}}]),t}(),J=function(){function e(t){s(this,e),this.opts=t}return n(e,[{key:\"init\",value:function(){var t=new p(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new $).init(t)}}}]),e}(),Q=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new I(this.ctx)}return n(e,[{key:\"isMultiFormat\",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:\"isFormatXY\",value:function(){var t=this.w.config.series.slice(),e=new f(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&0<t[this.activeSeriesIndex].data.length&&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 f(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&0<t[this.activeSeriesIndex].data.length&&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,a=this.w.config,s=this.w.globals,o=\"boxPlot\"===a.chart.type||\"boxPlot\"===a.series[e].type,n=0;n<t[e].data.length;n++)void 0!==t[e].data[n][1]&&(Array.isArray(t[e].data[n][1])&&4===t[e].data[n][1].length&&!o?this.twoDSeries.push(M.parseNumber(t[e].data[n][1][3])):5<=t[e].data[n].length?this.twoDSeries.push(M.parseNumber(t[e].data[n][4])):this.twoDSeries.push(M.parseNumber(t[e].data[n][1])),s.dataFormatXNumeric=!0),\"datetime\"===a.xaxis.type?(i=new Date(t[e].data[n][0]),i=new Date(i).getTime(),this.twoDSeriesX.push(i)):this.twoDSeriesX.push(t[e].data[n][0]);for(var r=0;r<t[e].data.length;r++)void 0!==t[e].data[r][2]&&(this.threeDSeries.push(t[e].data[r][2]),s.isDataXYZ=!0)}},{key:\"handleFormatXY\",value:function(t,e){var i=this.w.config,a=this.w.globals,s=new k(this.ctx),o=e;-1<a.collapsedSeriesIndices.indexOf(e)&&(o=this.activeSeriesIndex);for(var n=0;n<t[e].data.length;n++)void 0!==t[e].data[n].y&&(Array.isArray(t[e].data[n].y)?this.twoDSeries.push(M.parseNumber(t[e].data[n].y[t[e].data[n].y.length-1])):this.twoDSeries.push(M.parseNumber(t[e].data[n].y))),void 0!==t[e].data[n].goals&&Array.isArray(t[e].data[n].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[n].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var r=0;r<t[o].data.length;r++){var l=\"string\"==typeof t[o].data[r].x,h=Array.isArray(t[o].data[r].x),c=!h&&!!s.isValidDate(t[o].data[r].x.toString());l||c?l||i.xaxis.convertedCatToNumeric?(c=a.isBarHorizontal&&a.isRangeData,\"datetime\"!==i.xaxis.type||c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[r].x)):this.twoDSeriesX.push(s.parseDate(t[o].data[r].x))):\"datetime\"===i.xaxis.type?this.twoDSeriesX.push(s.parseDate(t[o].data[r].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[o].data[r].x))):(h?this.fallbackToCategory=!0:(a.isXNumeric=!0,a.dataFormatXNumeric=!0),this.twoDSeriesX.push(t[o].data[r].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var d=0;d<t[e].data.length;d++)this.threeDSeries.push(t[e].data[d].z);a.isDataXYZ=!0}}},{key:\"handleRangeData\",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleRangeDataFormat(\"array\",t,e):this.isFormatXY()&&(a=this.handleRangeDataFormat(\"xy\",t,e)),i.seriesRangeStart.push(a.start),i.seriesRangeEnd.push(a.end),i.seriesRangeBar.push(a.rangeUniques),i.seriesRangeBar.forEach(function(t,e){t&&t.forEach(function(n,t){n.y.forEach(function(t,e){for(var i,a,s,o=0;o<n.y.length;o++)e!==o&&(i=t.y1,a=t.y2,s=n.y[o].y1,i<=n.y[o].y2)&&s<=a&&(n.overlaps.indexOf(t.rangeName)<0&&n.overlaps.push(t.rangeName),n.overlaps.indexOf(n.y[o].rangeName)<0)&&n.overlaps.push(n.y[o].rangeName)})})}),a}},{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,s,o){var n=[],r=[],l=s[o].data.filter(function(e,t,i){return t===i.findIndex(function(t){return t.x===e.x})}).map(function(t,e){return{x:t.x,overlaps:[],y:[]}}),e=\"Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts\",i=new f(this.ctx).getActiveConfigSeriesIndex();if(\"array\"===t){if(2!==s[i].data[0][1].length)throw new Error(e);for(var a=0;a<s[o].data.length;a++)n.push(s[o].data[a][1][0]),r.push(s[o].data[a][1][1])}else if(\"xy\"===t){if(2!==s[i].data[0].y.length)throw new Error(e);for(var h=0;h<s[o].data.length;h++)!function(t){var e=M.randomId(),i=s[o].data[t].x,a={y1:s[o].data[t].y[0],y2:s[o].data[t].y[1],rangeName:e},t=(s[o].data[t].rangeName=e,l.findIndex(function(t){return t.x===i}));l[t].y.push(a),n.push(a.y1),r.push(a.y2)}(h)}return{start:n,end:r,rangeUniques:l}}},{key:\"handleCandleStickBoxDataFormat\",value:function(t,e,i){var a=this.w,s=\"boxPlot\"===a.config.chart.type||\"boxPlot\"===a.config.series[i].type,o=[],n=[],r=[],l=[],h=[];if(\"array\"===t)if(s&&6===e[i].data[0].length||!s&&5===e[i].data[0].length)for(var c=0;c<e[i].data.length;c++)o.push(e[i].data[c][1]),n.push(e[i].data[c][2]),s?(r.push(e[i].data[c][3]),l.push(e[i].data[c][4]),h.push(e[i].data[c][5])):(l.push(e[i].data[c][3]),h.push(e[i].data[c][4]));else for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d][1])&&(o.push(e[i].data[d][1][0]),n.push(e[i].data[d][1][1]),s?(r.push(e[i].data[d][1][2]),l.push(e[i].data[d][1][3]),h.push(e[i].data[d][1][4])):(l.push(e[i].data[d][1][2]),h.push(e[i].data[d][1][3])));else if(\"xy\"===t)for(var g=0;g<e[i].data.length;g++)Array.isArray(e[i].data[g].y)&&(o.push(e[i].data[g].y[0]),n.push(e[i].data[g].y[1]),s?(r.push(e[i].data[g].y[2]),l.push(e[i].data[g].y[3]),h.push(e[i].data[g].y[4])):(l.push(e[i].data[g].y[2]),h.push(e[i].data[g].y[3])));return{o:o,h:n,m:r,l:l,c:h}}},{key:\"parseDataAxisCharts\",value:function(t){for(var e=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.ctx,a=this.w.config,s=this.w.globals,o=new k(i),n=(0<a.labels.length?a.labels:a.xaxis.categories).slice(),r=(s.isRangeBar=\"rangeBar\"===a.chart.type&&s.isBarHorizontal,s.hasGroups=\"category\"===a.xaxis.type&&0<a.xaxis.group.groups.length,s.hasGroups&&(s.groups=a.xaxis.group.groups),0);r<t.length;r++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[r].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[r].type&&\"rangeArea\"!==t[r].type||(s.isRangeData=!0,this.handleRangeData(t,r)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,r):this.isFormatXY()&&this.handleFormatXY(t,r),\"candlestick\"!==a.chart.type&&\"candlestick\"!==t[r].type&&\"boxPlot\"!==a.chart.type&&\"boxPlot\"!==t[r].type||this.handleCandleStickBoxData(t,r),s.series.push(this.twoDSeries),s.labels.push(this.twoDSeriesX),s.seriesX.push(this.twoDSeriesX),s.seriesGoals=this.seriesGoals,r!==this.activeSeriesIndex||this.fallbackToCategory||(s.isXNumeric=!0);else{if(\"datetime\"===a.xaxis.type){s.isXNumeric=!0,l=void 0;for(var l=0;l<n.length;l++)if(\"string\"==typeof n[l]){if(!o.isValidDate(n[l]))throw new Error(\"You have provided invalid Date format. Please provide a valid JavaScript Date\");e.twoDSeriesX.push(o.parseDate(n[l]))}else e.twoDSeriesX.push(n[l]);s.seriesX.push(this.twoDSeriesX)}else\"numeric\"===a.xaxis.type&&(s.isXNumeric=!0,0<n.length)&&(this.twoDSeriesX=n,s.seriesX.push(this.twoDSeriesX));s.labels.push(this.twoDSeriesX);var h=t[r].data.map(function(t){return M.parseNumber(t)});s.series.push(h)}s.seriesZ.push(this.threeDSeries),void 0!==t[r].name?s.seriesNames.push(t[r].name):s.seriesNames.push(\"series-\"+parseInt(r+1,10)),void 0!==t[r].color?s.seriesColors.push(t[r].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;0<e.xaxis.categories.length?i.labels=e.xaxis.categories:0<e.labels.length?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRangeBar.length&&(i.seriesRangeBar.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 c(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(0<e.series.length)if(this.isFormatXY())for(var s=i.series.map(function(t,e){return t.data.filter(function(e,t,i){return i.findIndex(function(t){return t.x===e.x})===t})}),o=s.reduce(function(t,e,i,a){return a[t].length>e.length?t:i},0),n=0;n<s[o].length;n++)a.push(n+1);else for(var r=0;r<e.series[e.maxValsInArrayIndex].length;r++)a.push(r+1);e.seriesX=[];for(var l=0;l<t.length;l++)e.seriesX.push(a);e.isXNumeric=!0}if(0===a.length)for(var a=e.axisCharts?[]:e.series.map(function(t,e){return e+1}),h=0;h<t.length;h++)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){for(var e=this.w,i=e.config,a=e.globals,s=(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&&(e=new f(this.ctx),a.series=e.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),this.coreUtils.getCategoryLabels(a.labels)),o=0;o<s.length;o++)if(Array.isArray(s[o])){a.isMultiLineX=!0;break}}},{key:\"excludeCollapsedSeriesInYAxis\",value:function(){var i=this,a=this.w;a.globals.ignoreYAxisIndexes=a.globals.collapsedSeries.map(function(t,e){if(i.w.globals.isMultipleYAxis&&!a.config.chart.stacked)return t.index})}}]),e}(),x=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat=\"dd MMM\"}return n(e,[{key:\"xLabelFormat\",value:function(t,e,i,a){var s,o=this.w;if(\"datetime\"===o.config.xaxis.type&&(void 0===o.config.xaxis.labels.formatter&&void 0===o.config.tooltip.x.formatter))return(s=new k(this.ctx)).formatDate(s.getDate(e),o.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 t=M.isNumber(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 a=this,s=this.w;return s.globals.xaxisTooltipFormatter=function(t){return a.defaultGeneralFormatter(t)},s.globals.ttKeyFormatter=function(t){return a.defaultGeneralFormatter(t)},s.globals.ttZFormatter=function(t){return t},s.globals.legendFormatter=function(t){return a.defaultGeneralFormatter(t)},void 0!==s.config.xaxis.labels.formatter?s.globals.xLabelFormatter=s.config.xaxis.labels.formatter:s.globals.xLabelFormatter=function(t){if(M.isNumber(t)){var e;if(!s.config.xaxis.convertedCatToNumeric&&\"numeric\"===s.config.xaxis.type)return M.isNumber(s.config.xaxis.decimalsInFloat)?t.toFixed(s.config.xaxis.decimalsInFloat):0<(e=s.globals.maxX-s.globals.minX)&&e<100?t.toFixed(1):t.toFixed(0);if(s.globals.isBarHorizontal)if(s.globals.maxY-s.globals.minYArr<4)return t.toFixed(1);return t.toFixed(0)}return t},\"function\"==typeof s.config.tooltip.x.formatter?s.globals.ttKeyFormatter=s.config.tooltip.x.formatter:s.globals.ttKeyFormatter=s.globals.xLabelFormatter,\"function\"==typeof s.config.xaxis.tooltip.formatter&&(s.globals.xaxisTooltipFormatter=s.config.xaxis.tooltip.formatter),!Array.isArray(s.config.tooltip.y)&&void 0===s.config.tooltip.y.formatter||(s.globals.ttVal=s.config.tooltip.y),void 0!==s.config.tooltip.z.formatter&&(s.globals.ttZFormatter=s.config.tooltip.z.formatter),void 0!==s.config.legend.formatter&&(s.globals.legendFormatter=s.config.legend.formatter),s.config.yaxis.forEach(function(e,i){void 0!==e.labels.formatter?s.globals.yLabelFormatters[i]=e.labels.formatter:s.globals.yLabelFormatters[i]=function(t){return s.globals.xyCharts?Array.isArray(t)?t.map(function(t){return a.defaultYFormatter(t,e,i)}):a.defaultYFormatter(t,e,i):t}}),s.globals}},{key:\"heatmapLabelFormatters\",value:function(){var t,e=this.w;\"heatmap\"===e.config.chart.type&&(e.globals.yAxisScale[0].result=e.globals.seriesNames.slice(),t=e.globals.seriesNames.reduce(function(t,e){return t.length>e.length?t:e},0),e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t)}}]),e}(),b=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"getLabel\",value:function(t,e,i,a){var s,o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[],n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:\"12px\",r=!(6<arguments.length&&void 0!==arguments[6])||arguments[6],l=this.w,h=void 0===t[a]?\"\":t[a],c=h,d=l.globals.xLabelFormatter,g=l.config.xaxis.labels.formatter,u=!1,p=new x(this.ctx),d=(r&&(c=p.xLabelFormat(d,h,h,{i:a,dateFormatter:new k(this.ctx).formatDate,w:l}),void 0!==g)&&(c=g(h,t[a],{i:a,dateFormatter:new k(this.ctx).formatDate,w:l})),0<e.length?(p=e[a].unit,s=null,e.forEach(function(t){\"month\"===t.unit?s=\"year\":\"day\"===t.unit?s=\"month\":\"hour\"===t.unit?s=\"day\":\"minute\"===t.unit&&(s=\"hour\")}),u=s===p,i=e[a].position,c=e[a].value):\"datetime\"===l.config.xaxis.type&&void 0===g&&(c=\"\"),void 0===c&&(c=\"\"),c=Array.isArray(c)?c:c.toString(),new T(this.ctx)),h={},h=l.globals.rotateXLabels&&r?d.getTextRects(c,parseInt(n,10),null,\"rotate(\".concat(l.config.xaxis.labels.rotate,\" 0 0)\"),!1):d.getTextRects(c,parseInt(n,10)),t=!l.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return{x:i,text:c=!Array.isArray(c)&&(0===c.indexOf(\"NaN\")||0===c.toLowerCase().indexOf(\"invalid\")||0<=c.toLowerCase().indexOf(\"infinity\")||0<=o.indexOf(c)&&t)?\"\":c,textRect:h,isBold:u}}},{key:\"checkLabelBasedOnTickamount\",value:function(t,e,i){var a=this.w,s=a.config.xaxis.tickAmount;return i<(s=\"dataPoints\"===s?Math.round(a.globals.gridWidth/120):s)||t%Math.round(i/(s+1))!=0&&(e.text=\"\"),e}},{key:\"checkForOverflowingLabels\",value:function(t,e,i,a,s){var o=this.w;return 0===t&&o.globals.skipFirstTimelinelabel&&(e.text=\"\"),t===i-1&&o.globals.skipLastTimelinelabel&&(e.text=\"\"),o.config.xaxis.labels.hideOverlappingLabels&&0<a.length&&(t=s[s.length-1],e.x<t.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+t.x)&&(e.text=\"\"),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 I(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,o,n){var r=this.w,l=new T(this.ctx),h=r.globals.translateY;if(a.show&&0<e){!0===r.config.yaxis[s].opposite&&(t+=a.width);for(var c=e;0<=c;c--){var d=h+e/10+r.config.yaxis[s].labels.offsetY-1,d=(r.globals.isBarHorizontal&&(d=o*c),\"heatmap\"===r.config.chart.type&&(d+=o/2),l.drawLine(t+i.offsetX-a.width+a.offsetX,d+a.offsetY,t+i.offsetX+a.offsetX,d+a.offsetY,a.color));n.add(d),h+=o}}}}]),e}(),u=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{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){var e;return M.isIE11()?(e=0,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}).replace(/xmlns:NS\\d+=\"\"/g,\"\").replace(/NS\\d+:(\\w+:\\w+=\")/g,\"$1\")):t.replace(/ /g,\" \")}},{key:\"getSvgString\",value:function(t){var e,i=this.w.globals.dom.Paper.svg();return 1!==t&&(e=this.w.globals.dom.Paper.node.cloneNode(!0),this.scaleSvgNode(e,t),i=(new XMLSerializer).serializeToString(e)),this.fixSvgStringForIe11(i)}},{key:\"cleanup\",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName(\"apexcharts-xcrosshairs\"),i=t.globals.dom.baseEl.getElementsByClassName(\"apexcharts-ycrosshairs\"),t=t.globals.dom.baseEl.querySelectorAll(\".apexcharts-zoom-rect, .apexcharts-selection-rect\");Array.prototype.forEach.call(t,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(),t=new Blob([t],{type:\"image/svg+xml;charset=utf-8\"});return URL.createObjectURL(t)}},{key:\"dataURI\",value:function(r){var l=this;return new Promise(function(e){var t,i,a=l.w,s=r?r.scale||r.width/a.globals.svgWidth:1,o=(l.cleanup(),document.createElement(\"canvas\")),a=(o.width=a.globals.svgWidth*s,o.height=parseInt(a.globals.dom.elWrap.style.height,10)*s,\"transparent\"===a.config.chart.background?\"#fff\":a.config.chart.background),n=o.getContext(\"2d\"),a=(n.fillStyle=a,n.fillRect(0,0,o.width*s,o.height*s),l.getSvgString(s));window.canvg&&M.isIE11()?((s=window.canvg.Canvg.fromString(n,a,{ignoreClear:!0,ignoreDimensions:!0})).start(),t=o.msToBlob(),s.stop(),e({blob:t})):(s=\"data:image/svg+xml,\"+encodeURIComponent(a),(i=new Image).crossOrigin=\"anonymous\",i.onload=function(){var t;n.drawImage(i,0,0),o.msToBlob?(t=o.msToBlob(),e({blob:t})):(t=o.toDataURL(\"image/png\"),e({imgURI:t}))},i.src=s)})}},{key:\"exportToSVG\",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,\".svg\")}},{key:\"exportToPng\",value:function(){var i=this;this.dataURI().then(function(t){var e=t.imgURI,t=t.blob;t?navigator.msSaveOrOpenBlob(t,i.w.globals.chartID+\".png\"):i.triggerDownload(e,i.w.config.chart.toolbar.export.png.filename,\".png\")})}},{key:\"exportToCSV\",value:function(t){var s=this,r=t.series,l=t.columnDelimiter,t=t.lineDelimiter,t=void 0===t?\"\\n\":t,h=this.w,c=[],d=[],e=\"\",g=function(t){return\"datetime\"===h.config.xaxis.type&&10<=String(t).length},u=new Q(this.ctx),o=new b(this.ctx),p=function(t){var e,i,a=\"\";return h.globals.axisCharts?(\"category\"!==h.config.xaxis.type&&!h.config.xaxis.convertedCatToNumeric||(a=h.globals.isBarHorizontal?(e=h.globals.yLabelFormatters[0],i=new f(s.ctx).getActiveConfigSeriesIndex(),e(h.globals.labels[t],{seriesIndex:i,dataPointIndex:t,w:h})):o.getLabel(h.globals.labels,h.globals.timescaleLabels,0,t).text),\"datetime\"===h.config.xaxis.type&&(h.config.xaxis.categories.length?a=h.config.xaxis.categories[t]:h.config.labels.length&&(a=h.config.labels[t]))):a=h.config.labels[t],Array.isArray(a)&&(a=a.join(\" \")),M.isNumber(a)?a:a.split(l).join(\"\")};c.push(h.config.chart.toolbar.export.csv.headerCategory),r.map(function(t,e){t=t.name||\"series-\".concat(e);h.globals.axisCharts&&c.push(t.split(l).join(\"\")?t.split(l).join(\"\"):\"series-\".concat(e))}),h.globals.axisCharts||(c.push(h.config.chart.toolbar.export.csv.headerValue),d.push(c.join(l))),r.map(function(t,e){if(h.globals.axisCharts){var i=t,a=e;if(c.length&&0===a&&d.push(c.join(l)),i.data&&i.data.length)for(var s=0;s<i.data.length;s++){c=[];var o=p(s);if(o||(u.isFormatXY()?o=r[a].data[s].x:u.isFormat2DArray()&&(o=r[a].data[s]?r[a].data[s][0]:\"\")),0===a){c.push(g(o)?h.config.chart.toolbar.export.csv.dateFormatter(o):M.isNumber(o)?o:o.split(l).join(\"\"));for(var n=0;n<h.globals.series.length;n++)c.push(h.globals.series[n][s])}(\"candlestick\"===h.config.chart.type||i.type&&\"candlestick\"===i.type)&&(c.pop(),c.push(h.globals.seriesCandleO[a][s]),c.push(h.globals.seriesCandleH[a][s]),c.push(h.globals.seriesCandleL[a][s]),c.push(h.globals.seriesCandleC[a][s])),(\"boxPlot\"===h.config.chart.type||i.type&&\"boxPlot\"===i.type)&&(c.pop(),c.push(h.globals.seriesCandleO[a][s]),c.push(h.globals.seriesCandleH[a][s]),c.push(h.globals.seriesCandleM[a][s]),c.push(h.globals.seriesCandleL[a][s]),c.push(h.globals.seriesCandleC[a][s])),\"rangeBar\"===h.config.chart.type&&(c.pop(),c.push(h.globals.seriesRangeStart[a][s]),c.push(h.globals.seriesRangeEnd[a][s])),c.length&&d.push(c.join(l))}}else(c=[]).push(h.globals.labels[e].split(l).join(\"\")),c.push(h.globals.series[e]),d.push(c.join(l))}),e+=d.join(t),this.triggerDownload(\"data:text/csv; charset=utf-8,\"+encodeURIComponent(\"\\ufeff\"+e),h.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)}}]),e}(),z=function(){function i(t){s(this,i),this.ctx=t,this.w=t.w;var e=this.w;this.axesUtils=new b(t),this.xaxisLabels=e.globals.labels.slice(),0<e.globals.timescaleLabels.length&&!e.globals.isBarHorizontal&&(this.xaxisLabels=e.globals.timescaleLabels.slice()),e.config.xaxis.overwriteCategories&&(this.xaxisLabels=e.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],\"top\"===e.config.xaxis.position?this.offY=0:this.offY=e.globals.gridHeight+1,this.offY=this.offY+e.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=\"bar\"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.xaxisBorderWidth=e.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=e.config.yaxis[0].axisBorder.width.toString()),-1<this.xaxisBorderWidth.indexOf(\"%\")?this.xaxisBorderWidth=e.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=e.config.xaxis.axisBorder.height,this.yaxis=e.config.yaxis[0]}return n(i,[{key:\"drawXaxis\",value:function(){for(var t=this.w,e=new T(this.ctx),i=e.group({class:\"apexcharts-xaxis\",transform:\"translate(\".concat(t.config.xaxis.offsetX,\", \").concat(t.config.xaxis.offsetY,\")\")}),a=e.group({class:\"apexcharts-xaxis-texts-g\",transform:\"translate(\".concat(t.globals.translateXAxisX,\", \").concat(t.globals.translateXAxisY,\")\")}),s=(i.add(a),[]),o=0;o<this.xaxisLabels.length;o++)s.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,a,s,t.globals.isXNumeric,function(t,e){return e}),t.globals.hasGroups){for(var n=t.globals.groups,s=[],r=0;r<n.length;r++)s.push(n[r].title);var l={};t.config.xaxis.group.style&&(l.xaxisFontSize=t.config.xaxis.group.style.fontSize,l.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,l.xaxisForeColors=t.config.xaxis.group.style.colors,l.fontWeight=t.config.xaxis.group.style.fontWeight,l.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,a,s,!1,function(t,e){return n[t].cols*e},l)}return void 0!==t.config.xaxis.title.text&&(a=e.group({class:\"apexcharts-xaxis-title\"}),l=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+t.globals.xAxisLabelsHeight+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:\"middle\",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:\"apexcharts-xaxis-title-text \"+t.config.xaxis.title.style.cssClass}),a.add(l),i.add(a)),t.config.xaxis.axisBorder.show&&(l=t.globals.barPadForNumericAxis,a=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-l,this.offY,this.xaxisBorderWidth+l,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight),i.add(a)),i}},{key:\"drawXAxisLabelAndGroup\",value:function(s,o,n,r,t,l){for(var h,c=this,e=6<arguments.length&&void 0!==arguments[6]?arguments[6]:{},d=[],g=[],u=this.w,p=e.xaxisFontSize||this.xaxisFontSize,f=e.xaxisFontFamily||this.xaxisFontFamily,x=e.xaxisForeColors||this.xaxisForeColors,b=e.fontWeight||u.config.xaxis.labels.style.fontWeight,m=e.cssClass||u.config.xaxis.labels.style.cssClass,y=u.globals.padHorizontal,v=r.length,w=\"category\"===u.config.xaxis.type?u.globals.dataPoints:v,i=(y=t?(h=u.globals.gridWidth/(1<w?w-1:w),y+l(0,h)/2+u.config.xaxis.labels.offsetX):(h=u.globals.gridWidth/w,y+l(0,h)+u.config.xaxis.labels.offsetX),function(t){var e=y-l(t,h)/2+u.config.xaxis.labels.offsetX,e=(0===t&&1===v&&h/2===y&&1===w&&(e=u.globals.gridWidth/2),c.axesUtils.getLabel(r,u.globals.timescaleLabels,e,t,d,p,s)),i=28;u.globals.rotateXLabels&&s&&(i=22),s||(i=i+parseFloat(p)+(u.globals.xAxisLabelsHeight-u.globals.xAxisGroupLabelsHeight)+(u.globals.rotateXLabels?10:0));var a,e=void 0!==u.config.xaxis.tickAmount&&\"dataPoints\"!==u.config.xaxis.tickAmount&&\"datetime\"!==u.config.xaxis.type?c.axesUtils.checkLabelBasedOnTickamount(t,e,v):c.axesUtils.checkForOverflowingLabels(t,e,v,d,g);s&&e.text&&u.globals.xaxisLabelsCount++,u.config.xaxis.labels.show&&(i=o.drawText({x:e.x,y:c.offY+u.config.xaxis.labels.offsetY+i-(\"top\"===u.config.xaxis.position?u.globals.xAxisHeight+u.config.xaxis.axisTicks.height-2:0),text:e.text,textAnchor:\"middle\",fontWeight:e.isBold?600:b,fontSize:p,fontFamily:f,foreColor:Array.isArray(x)?s&&u.config.xaxis.convertedCatToNumeric?x[u.globals.minX+t-1]:x[t]:x,isPlainText:!1,cssClass:(s?\"apexcharts-xaxis-label \":\"apexcharts-xaxis-group-label \")+m}),n.add(i),s)&&((a=document.createElementNS(u.globals.SVGNS,\"title\")).textContent=Array.isArray(e.text)?e.text.join(\" \"):e.text,i.node.appendChild(a),\"\"!==e.text)&&(d.push(e.text),g.push(e)),t<v-1&&(y+=l(t+1,h))}),a=0;a<=v-1;a++)i(a)}},{key:\"drawXaxisInversed\",value:function(t){var e=this,i=this.w,a=new T(this.ctx),s=i.config.yaxis[0].opposite?i.globals.translateYAxisX[t]:0,o=a.group({class:\"apexcharts-yaxis apexcharts-xaxis-inversed\",rel:t}),n=a.group({class:\"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g\",transform:\"translate(\"+s+\", 0)\"}),r=(o.add(n),[]);if(i.config.yaxis[t].show)for(var l=0;l<this.xaxisLabels.length;l++)r.push(this.xaxisLabels[l]);var h,c,d,g,u,p=-(h=i.globals.gridHeight/r.length)/2.2,f=i.globals.yLabelFormatters[0],x=i.config.yaxis[0].labels;if(x.show)for(var b=0;b<=r.length-1;b++)d=(u=g=d=void 0)===r[c=b]?\"\":r[c],d=f(d,{seriesIndex:t,dataPointIndex:c,w:i}),g=e.axesUtils.getYAxisForeColor(x.style.colors,t),u=0,Array.isArray(d)&&(u=d.length/2*parseInt(x.style.fontSize,10)),u=a.drawText({x:x.offsetX-15,y:p+h+x.offsetY-u,text:d,textAnchor:e.yaxis.opposite?\"start\":\"end\",foreColor:Array.isArray(g)?g[c]:g,fontSize:x.style.fontSize,fontFamily:x.style.fontFamily,fontWeight:x.style.fontWeight,isPlainText:!1,cssClass:\"apexcharts-yaxis-label \"+x.style.cssClass}),n.add(u),(c=document.createElementNS(i.globals.SVGNS,\"title\")).textContent=Array.isArray(d)?d.join(\" \"):d,u.node.appendChild(c),0!==i.config.yaxis[t].labels.rotate&&(g=a.rotateAroundCenter(u.node),u.node.setAttribute(\"transform\",\"rotate(\".concat(i.config.yaxis[t].labels.rotate,\" 0 \").concat(g.y,\")\"))),p+=h;void 0!==i.config.yaxis[0].title.text&&(s=a.group({class:\"apexcharts-yaxis-title apexcharts-xaxis-title-inversed\",transform:\"translate(\"+s+\", 0)\"}),m=a.drawText({x:0,y:i.globals.gridHeight/2,text:i.config.yaxis[0].title.text,textAnchor:\"middle\",foreColor:i.config.yaxis[0].title.style.color,fontSize:i.config.yaxis[0].title.style.fontSize,fontWeight:i.config.yaxis[0].title.style.fontWeight,fontFamily:i.config.yaxis[0].title.style.fontFamily,cssClass:\"apexcharts-yaxis-title-text \"+i.config.yaxis[0].title.style.cssClass}),s.add(m),o.add(s));var m=0,s=(this.isCategoryBarHorizontal&&i.config.yaxis[0].opposite&&(m=i.globals.gridWidth),i.config.xaxis.axisBorder);return s.show&&(s=a.drawLine(i.globals.padHorizontal+s.offsetX+m,1+s.offsetY,i.globals.padHorizontal+s.offsetX+m,i.globals.gridHeight+s.offsetY,s.color,0),o.add(s)),i.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(m,r.length,i.config.yaxis[0].axisBorder,i.config.yaxis[0].axisTicks,0,h,o),o}},{key:\"drawXaxisTicks\",value:function(t,e,i){var a,s=this.w,o=t;t<0||t-2>s.globals.gridWidth||(e=e+(a=this.offY+s.config.xaxis.axisTicks.offsetY)+s.config.xaxis.axisTicks.height,\"top\"===s.config.xaxis.position&&(e=a-s.config.xaxis.axisTicks.height),s.config.xaxis.axisTicks.show&&(t=new T(this.ctx).drawLine(t+s.config.xaxis.axisTicks.offsetX,a+s.config.xaxis.offsetY,o+s.config.xaxis.axisTicks.offsetX,e+s.config.xaxis.offsetY,s.config.xaxis.axisTicks.color),i.add(t),t.node.classList.add(\"apexcharts-xaxis-tick\")))}},{key:\"getXAxisTicksPositions\",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(0<t.globals.timescaleLabels.length)for(var s=0;s<i;s++)a=this.xaxisLabels[s].position,e.push(a);else for(var o=i,n=0;n<o;n++){var r=o;t.globals.isXNumeric&&\"bar\"!==t.config.chart.type&&--r,a+=t.globals.gridWidth/r,e.push(a)}return e}},{key:\"xAxisLabelCorrections\",value:function(){var e=this.w,i=new T(this.ctx),t=e.globals.dom.baseEl.querySelector(\".apexcharts-xaxis-texts-g\"),a=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)\"),s=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-yaxis-inversed text\"),o=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-xaxis-inversed-texts-g text tspan\");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var n=0;n<a.length;n++){var r=i.rotateAroundCenter(a[n]),r=(r.y=r.y-1,r.x=r.x+1,a[n].setAttribute(\"transform\",\"rotate(\".concat(e.config.xaxis.labels.rotate,\" \").concat(r.x,\" \").concat(r.y,\")\")),a[n].setAttribute(\"text-anchor\",\"end\"),t.setAttribute(\"transform\",\"translate(0, \".concat(-10,\")\")),a[n].childNodes);e.config.xaxis.labels.trim&&Array.prototype.forEach.call(r,function(t){i.placeTextWithEllipsis(t,t.textContent,e.globals.xAxisLabelsHeight-(\"bottom\"===e.config.legend.position?20:10))})}else for(var l=e.globals.gridWidth/(e.globals.labels.length+1),h=0;h<a.length;h++){var c=a[h].childNodes;e.config.xaxis.labels.trim&&\"datetime\"!==e.config.xaxis.type&&Array.prototype.forEach.call(c,function(t){i.placeTextWithEllipsis(t,t.textContent,l)})}if(0<s.length){var d=s[s.length-1].getBBox(),g=s[0].getBBox();d.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),g.x+g.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var u=0;u<o.length;u++)i.placeTextWithEllipsis(o[u],o[u].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),i}(),K=function(){function i(t){s(this,i),this.ctx=t,this.w=t.w;var e=this.w;this.xaxisLabels=e.globals.labels.slice(),this.axesUtils=new b(t),this.isRangeBar=e.globals.seriesRangeBar.length,0<e.globals.timescaleLabels.length&&(this.xaxisLabels=e.globals.timescaleLabels.slice())}return n(i,[{key:\"drawGridArea\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new T(this.ctx),a=(null===t&&(t=i.group({class:\"apexcharts-grid\"})),i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,\"transparent\")),i=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,\"transparent\");return t.add(i),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 e,t=this.w,i=t.globals,a=new T(this.ctx),s=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width,o=(Array.isArray(t.config.stroke.width)&&(e=0,t.config.stroke.width.forEach(function(t){e=Math.max(e,t)}),s=e),i.dom.elGridRectMask=document.createElementNS(i.SVGNS,\"clipPath\"),i.dom.elGridRectMask.setAttribute(\"id\",\"gridRectMask\".concat(i.cuid)),i.dom.elGridRectMarkerMask=document.createElementNS(i.SVGNS,\"clipPath\"),i.dom.elGridRectMarkerMask.setAttribute(\"id\",\"gridRectMarkerMask\".concat(i.cuid)),i.dom.elForecastMask=document.createElementNS(i.SVGNS,\"clipPath\"),i.dom.elForecastMask.setAttribute(\"id\",\"forecastMask\".concat(i.cuid)),i.dom.elNonForecastMask=document.createElementNS(i.SVGNS,\"clipPath\"),i.dom.elNonForecastMask.setAttribute(\"id\",\"nonForecastMask\".concat(i.cuid)),t.config.chart.type),n=0,r=0,o=((\"bar\"===o||\"rangeBar\"===o||\"candlestick\"===o||\"boxPlot\"===o||0<t.globals.comboBarCount)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(n=t.config.grid.padding.left,r=t.config.grid.padding.right,i.barPadForNumericAxis>n)&&(n=i.barPadForNumericAxis,r=i.barPadForNumericAxis),i.dom.elGridRect=a.drawRect(-s/2-n-2,-s/2,i.gridWidth+s+r+n+4,i.gridHeight+s,0,\"#fff\"),t.globals.markers.largestSize+1),r=(i.dom.elGridRectMarker=a.drawRect(2*-o,2*-o,i.gridWidth+4*o,i.gridHeight+4*o,0,\"#fff\"),i.dom.elGridRectMask.appendChild(i.dom.elGridRect.node),i.dom.elGridRectMarkerMask.appendChild(i.dom.elGridRectMarker.node),i.dom.baseEl.querySelector(\"defs\"));r.appendChild(i.dom.elGridRectMask),r.appendChild(i.dom.elForecastMask),r.appendChild(i.dom.elNonForecastMask),r.appendChild(i.dom.elGridRectMarkerMask)}},{key:\"_drawGridLines\",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,o=t.y2,n=t.xCount,t=t.parent,r=this.w;if(!(0===e&&r.globals.skipFirstTimelinelabel||e===n-1&&r.globals.skipLastTimelinelabel&&!r.config.xaxis.labels.formatter||\"radar\"===r.config.chart.type)){r.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:a,x2:s,y2:o,parent:t});n=0;if(r.globals.hasGroups&&\"between\"===r.config.xaxis.tickPlacement){var l=r.globals.groups;if(l){for(var h=0,c=0;h<e&&c<l.length;c++)h+=l[c].cols;h===e&&(n=.6*r.globals.xAxisLabelsHeight)}}new z(this.ctx).drawXaxisTicks(i,n,this.elg)}}},{key:\"_drawGridLine\",value:function(t){var e=t.x1,i=t.y1,a=t.x2,s=t.y2,t=t.parent,o=this.w,n=t.node.classList.contains(\"apexcharts-gridlines-horizontal\"),r=o.config.grid.strokeDashArray,l=o.globals.barPadForNumericAxis,e=new T(this).drawLine(e-(n?l:0),i,a+(n?l:0),s,o.config.grid.borderColor,r);e.node.classList.add(\"apexcharts-gridline\"),t.add(e)}},{key:\"_drawGridBandRect\",value:function(t){var e=t.c,i=t.x1,a=t.y1,s=t.x2,o=t.y2,t=t.type,n=this.w,r=new T(this.ctx),l=n.globals.barPadForNumericAxis;\"column\"===t&&\"datetime\"===n.config.xaxis.type||(e=n.config.grid[t].colors[e],r=r.drawRect(i-(\"row\"===t?l:0),a,s+(\"row\"===t?2*l:0),o,0,e,n.config.grid[t].opacity),this.elg.add(r),r.attr(\"clip-path\",\"url(#gridRectMask\".concat(n.globals.cuid,\")\")),r.node.classList.add(\"apexcharts-grid-\".concat(t)))}},{key:\"_drawXYLines\",value:function(t){var i=this,a=t.xCount,e=t.tickAmount,s=this.w;if(s.config.grid.xaxis.lines.show||s.config.xaxis.axisTicks.show){var t=s.globals.padHorizontal,o=s.globals.gridHeight;if(s.globals.timescaleLabels.length)for(var n,r,l={xC:a,x1:t,y1:0,x2:void 0,y2:o},h=l.xC,c=(l.x1,l.y1),d=(l.x2,l.y2),g=0;g<h;g++)n=i.xaxisLabels[g].position,r=i.xaxisLabels[g].position,i._drawGridLines({i:g,x1:n,y1:c,x2:r,y2:d,xCount:a,parent:i.elgridLinesV});else{s.globals.isXNumeric&&(a=s.globals.xAxisScale.result.length);var l={xC:a=s.config.xaxis.convertedCatToNumeric?s.globals.xaxisLabelsCount:a,x1:t,y1:0,x2:void 0,y2:o},u=l.xC,p=l.x1,f=l.y1,x=l.x2,b=l.y2;if(void 0!==s.config.xaxis.tickAmount&&\"dataPoints\"!==s.config.xaxis.tickAmount&&\"on\"===s.config.xaxis.tickPlacement)s.globals.dom.baseEl.querySelectorAll(\".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)\").forEach(function(t,e){t=t.getBBox();i._drawGridLines({i:e,x1:t.x+t.width/2,y1:f,x2:t.x+t.width/2,y2:b,xCount:a,parent:i.elgridLinesV})});else for(var m=0;m<u+(s.globals.isXNumeric?0:1);m++)0===m&&1===u&&1===s.globals.dataPoints&&(x=p=s.globals.gridWidth/2),i._drawGridLines({i:m,x1:p,y1:f,x2:x,y2:b,xCount:a,parent:i.elgridLinesV}),x=p+=s.globals.gridWidth/(s.globals.isXNumeric?u-1:u)}}if(s.config.grid.yaxis.lines.show){var y=0,v=0,w=s.globals.gridWidth,k=e+1;this.isRangeBar&&(k=s.globals.labels.length);for(var A=0;A<k+(this.isRangeBar?1:0);A++)this._drawGridLine({x1:0,y1:y,x2:w,y2:v,parent:this.elgridLinesH}),v=y+=s.globals.gridHeight/(this.isRangeBar?k:e)}}},{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,o=i.globals.gridHeight,n=0;n<e+1;n++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:s,y1:0,x2:a,y2:o,parent:this.elgridLinesV}),new z(this.ctx).drawXaxisTicks(s,0,this.elg),a=s=s+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var r=0,l=0,h=i.globals.gridWidth,c=0;c<i.globals.dataPoints+1;c++)this._drawGridLine({x1:0,y1:r,x2:h,y2:l,parent:this.elgridLinesH}),l=r+=i.globals.gridHeight/i.globals.dataPoints}},{key:\"renderGrid\",value:function(){for(var t,e=this.w,i=new T(this.ctx),a=(this.elg=i.group({class:\"apexcharts-grid\"}),this.elgridLinesH=i.group({class:\"apexcharts-gridlines-horizontal\"}),this.elgridLinesV=i.group({class:\"apexcharts-gridlines-vertical\"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide()),e.globals.yAxisScale.length?e.globals.yAxisScale[0].result.length-1:5),s=0;s<e.globals.series.length&&!(2<(a=void 0!==e.globals.yAxisScale[s]?e.globals.yAxisScale[s].result.length-1:a));s++);return!e.globals.isBarHorizontal||this.isRangeBar?(t=this.xaxisLabels.length,this.isRangeBar&&(a=e.globals.labels.length,e.config.xaxis.tickAmount)&&e.config.xaxis.labels.formatter&&(t=e.config.xaxis.tickAmount),this._drawXYLines({xCount:t,tickAmount:a})):(t=a,a=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:t,tickAmount:a})),this.drawGridBands(t,a),{el:this.elg,xAxisTickWidth:e.globals.gridWidth/t}}},{key:\"drawGridBands\",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&0<i.config.grid.row.colors.length)for(var a=0,s=i.globals.gridHeight/e,o=i.globals.gridWidth,n=0,r=0;n<e;n++,r++)r>=i.config.grid.row.colors.length&&(r=0),this._drawGridBandRect({c:r,x1:0,y1:a,x2:o,y2:s,type:\"row\"}),a+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&0<i.config.grid.column.colors.length)for(var l=i.globals.isBarHorizontal||\"category\"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,h=i.globals.padHorizontal,c=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,g=0,u=0;g<t;g++,u++)u>=i.config.grid.column.colors.length&&(u=0),this._drawGridBandRect({c:u,x1:h,y1:0,x2:c,y2:d,type:\"column\"}),h+=i.globals.gridWidth/l}}]),i}(),E=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"niceScale\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:10,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,s=4<arguments.length?arguments[4]:void 0,o=this.w,n=Math.abs(e-t);if(\"dataPoints\"===(i=this._adjustTicksForSmallRange(i,a,n))&&(i=o.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!M.isNumber(t)&&!M.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return e=i,this.linearScale(t=0,e,i);e<t?(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 r=[],a=(n<1&&s&&(\"candlestick\"===o.config.chart.type||\"candlestick\"===o.config.series[a].type||\"boxPlot\"===o.config.chart.type||\"boxPlot\"===o.config.series[a].type||o.globals.isRangeData)&&(e*=1.01),i+1),o=(a<2?a=2:2<a&&(a-=2),n/a),a=Math.floor(M.log10(o)),a=Math.pow(10,a),o=Math.round(o/a),l=(o=o<1?1:o)*a,o=l*Math.floor(t/l),h=l*Math.ceil(e/l),c=o;if(s&&2<n){for(;;)if(r.push(c),h<(c+=l))break}else{for(var d=t,g=((r=[]).push(d),Math.abs(e-t)/i),u=0;u<=i;u++)r.push(d+=g);r[r.length-2]>=e&&r.pop()}return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:\"linearScale\",value:function(t,e){for(var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:10,a=3<arguments.length?arguments[3]:void 0,e=Math.abs(e-t),s=e/(i=\"dataPoints\"===(i=this._adjustTicksForSmallRange(i,a,e))?this.w.globals.dataPoints-1:i),o=(i===Number.MAX_VALUE&&(i=10,s=1),[]),n=t;0<=i;)o.push(n),n+=s,--i;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:\"logarithmicScaleNice\",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.ceil(Math.log(e)/Math.log(i)+1),o=Math.floor(Math.log(t)/Math.log(i));o<s;o++)a.push(Math.pow(i,o));return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:\"logarithmicScale\",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.log(e)/Math.log(i),o=Math.log(t)/Math.log(i),n=s-o,r=Math.round(n),l=n/r,h=0,c=o;h<r;h++,c+=l)a.push(Math.pow(i,c));return a.push(Math.pow(i,s)),{result:a,niceMin:t,niceMax:e}}},{key:\"_adjustTicksForSmallRange\",value:function(t,e,i){var a=t;return(a=void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount&&(e=this.w.config.yaxis[e].labels.formatter(1),M.isNumber(Number(e)))&&!M.isFloat(e)?Math.ceil(i):a)<t?a:t}},{key:\"setYScaleForIndex\",value:function(t,e,i){var a=this.w.globals,s=this.w.config,o=a.isBarHorizontal?s.xaxis:s.yaxis[t],n=(void 0===a.yAxisScale[t]&&(a.yAxisScale[t]=[]),Math.abs(i-e));o.logarithmic&&n<=5&&(a.invalidLogScale=!0),o.logarithmic&&5<n?(a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(e,i,o.logBase),a.yAxisScale[t]=o.forceNiceScale?this.logarithmicScaleNice(e,i,o.logBase):this.logarithmicScale(e,i,o.logBase)):i!==-Number.MAX_VALUE&&M.isNumber(i)?(a.allSeriesCollapsed=!1,void 0===o.min&&void 0===o.max||o.forceNiceScale?(s=void 0===s.yaxis[t].max&&void 0===s.yaxis[t].min||s.yaxis[t].forceNiceScale,a.yAxisScale[t]=this.niceScale(e,i,o.tickAmount||(n<5&&1<n?n+1:5),t,s)):a.yAxisScale[t]=this.linearScale(e,i,o.tickAmount,t)):a.yAxisScale[t]=this.linearScale(0,5,5)}},{key:\"setXScale\",value:function(t,e){var i=this.w,a=i.globals,i=i.config.xaxis,s=Math.abs(e-t);return e!==-Number.MAX_VALUE&&M.isNumber(e)?a.xAxisScale=this.linearScale(t,e,i.tickAmount||(s<5&&1<s?s+1:5),0):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:\"setMultipleYScales\",value:function(){var o=this,t=this.w.globals,n=this.w.config,r=t.minYArr.concat([]),l=t.maxYArr.concat([]),h=[];n.yaxis.forEach(function(i,a){var s=a,t=(n.series.forEach(function(t,e){t.name===i.seriesName&&(s=e,h.push(a!==e?{index:e,similarIndex:a,alreadyExists:!0}:{index:e}))}),r[s]),e=l[s];o.setYScaleForIndex(a,t,e)}),this.sameScaleInMultipleAxes(r,l,h)}},{key:\"sameScaleInMultipleAxes\",value:function(t,s,e){var r=this,l=this.w.config,h=this.w.globals,o=[];e.forEach(function(t){t.alreadyExists&&(void 0===o[t.index]&&(o[t.index]=[]),o[t.index].push(t.index),o[t.index].push(t.similarIndex))}),(h.yAxisSameScaleIndices=o).forEach(function(a,s){o.forEach(function(t,e){var i;s!==e&&(i=t,0<a.filter(function(t){return-1!==i.indexOf(t)}).length)&&(o[s]=o[s].concat(o[e]))})});var e=o.map(function(i){return i.filter(function(t,e){return i.indexOf(t)===e})}).map(function(t){return t.sort()}),o=o.filter(function(t){return!!t}),i=(n=e.slice()).map(function(t){return JSON.stringify(t)}),n=n.filter(function(t,e){return i.indexOf(JSON.stringify(t))===e}),c=[],d=[],g=(t.forEach(function(i,a){n.forEach(function(t,e){-1<t.indexOf(a)&&(void 0===c[e]&&(c[e]=[],d[e]=[]),c[e].push({key:a,value:i}),d[e].push({key:a,value:s[a]}))})}),Array.apply(null,Array(n.length)).map(Number.prototype.valueOf,Number.MIN_VALUE)),u=Array.apply(null,Array(n.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);c.forEach(function(t,i){t.forEach(function(t,e){g[i]=Math.min(t.value,g[i])})}),d.forEach(function(t,i){t.forEach(function(t,e){u[i]=Math.max(t.value,u[i])})}),t.forEach(function(t,n){d.forEach(function(i,a){var s=g[a],o=u[a];l.chart.stacked&&(o=0,i.forEach(function(t,e){t.value!==-Number.MAX_VALUE&&(o+=t.value),s!==Number.MIN_VALUE&&(s+=c[a][e].value)})),i.forEach(function(t,e){i[e].key===n&&(void 0!==l.yaxis[n].min&&(s=\"function\"==typeof l.yaxis[n].min?l.yaxis[n].min(h.minY):l.yaxis[n].min),void 0!==l.yaxis[n].max&&(o=\"function\"==typeof l.yaxis[n].max?l.yaxis[n].max(h.maxY):l.yaxis[n].max),r.setYScaleForIndex(n,s,o))})})})}},{key:\"autoScaleY\",value:function(t,c,d){var g,u,p=(t=t||this).w;return p.globals.isMultipleYAxis||p.globals.collapsedSeries.length?console.warn(\"autoScaleYaxis is not supported in a multi-yaxis chart.\"):(g=p.globals.seriesX[0],u=p.config.chart.stacked,c.forEach(function(a,t){for(var s=0,e=0;e<g.length;e++)if(g[e]>=d.xaxis.min){s=e;break}var n,r,o=p.globals.minYArr[t],l=p.globals.maxYArr[t],h=p.globals.stackedSeriesTotals;p.globals.series.forEach(function(i,t){var e=i[s];u?(e=h[s],n=r=e,h.forEach(function(t,e){g[e]<=d.xaxis.max&&g[e]>=d.xaxis.min&&(r<t&&null!==t&&(r=t),i[e]<n)&&null!==i[e]&&(n=i[e])})):(n=r=e,i.forEach(function(i,a){var s,o;g[a]<=d.xaxis.max&&g[a]>=d.xaxis.min&&(o=s=i,p.globals.series.forEach(function(t,e){null!==i&&(s=Math.min(t[a],s),o=Math.max(t[a],o))}),r<o&&null!==o&&(r=o),s<n)&&null!==s&&(n=s)})),void 0===n&&void 0===r&&(n=o,r=l),(r*=r<0?.9:1.1)<0&&r<l&&(r=l),(n*=n<0?1.1:.9)<0&&o<n&&(n=o),1<c.length?(c[t].min=void 0===a.min?n:a.min,c[t].max=void 0===a.max?r:a.max):(c[0].min=void 0===a.min?n:a.min,c[0].max=void 0===a.max?r:a.max)})})),c}}]),e}(),tt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.scales=new E(t)}return n(e,[{key:\"init\",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:\"getMinYMaxY\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,s=this.w.config,o=this.w.globals,n=-Number.MAX_VALUE,r=Number.MIN_VALUE,l=(null===a&&(a=t+1),o.series),h=l,c=l;\"candlestick\"===s.chart.type?(h=o.seriesCandleL,c=o.seriesCandleH):\"boxPlot\"===s.chart.type?(h=o.seriesCandleO,c=o.seriesCandleC):o.isRangeData&&(h=o.seriesRangeStart,c=o.seriesRangeEnd);for(var d=t;d<a;d++){o.dataPoints=Math.max(o.dataPoints,l[d].length),o.categoryLabels.length&&(o.dataPoints=o.categoryLabels.filter(function(t){return void 0!==t}).length);for(var g=0;g<o.series[d].length;g++){var u=l[d][g];null!==u&&M.isNumber(u)?(void 0!==c[d][g]&&(n=Math.max(n,c[d][g]),e=Math.min(e,c[d][g])),void 0!==h[d][g]&&(e=Math.min(e,h[d][g]),i=Math.max(i,h[d][g])),\"candlestick\"!==this.w.config.chart.type&&\"boxPlot\"!==this.w.config.chart.type||(void 0!==o.seriesCandleC[d][g]&&(n=Math.max(n,o.seriesCandleO[d][g]),n=Math.max(n,o.seriesCandleH[d][g]),n=Math.max(n,o.seriesCandleL[d][g]),n=Math.max(n,o.seriesCandleC[d][g]),\"boxPlot\"===this.w.config.chart.type)&&(n=Math.max(n,o.seriesCandleM[d][g])),!s.series[d].type||\"candlestick\"===s.series[d].type&&\"boxPlot\"===s.series[d].type||(n=Math.max(n,o.series[d][g]),e=Math.min(e,o.series[d][g])),i=n),o.seriesGoals[d]&&o.seriesGoals[d][g]&&Array.isArray(o.seriesGoals[d][g])&&o.seriesGoals[d][g].forEach(function(t){r!==Number.MIN_VALUE&&(r=Math.min(r,t.value),e=r),n=Math.max(n,t.value),i=n}),M.isFloat(u)&&(u=M.noExponents(u),o.yValueDecimal=Math.max(o.yValueDecimal,u.toString().split(\".\")[1].length)),r>h[d][g]&&h[d][g]<0&&(r=h[d][g])):o.hasNullValues=!0}}return\"rangeBar\"===s.chart.type&&o.seriesRangeStart.length&&o.isBarHorizontal&&(r=e),{minY:r=\"bar\"===s.chart.type&&(r<0&&n<0&&(n=0),r===Number.MIN_VALUE)?0:r,maxY:n,lowestY:e,highestY:i}}},{key:\"setYRange\",value:function(){var i=this.w.globals,e=this.w.config,t=(i.maxY=-Number.MAX_VALUE,i.minY=Number.MIN_VALUE,Number.MAX_VALUE);if(i.isMultipleYAxis)for(var a=0;a<i.series.length;a++){var s=this.getMinYMaxY(a,t,null,a+1);i.minYArr.push(s.minY),i.maxYArr.push(s.maxY),t=s.lowestY}var o=this.getMinYMaxY(0,t,null,i.series.length);return i.minY=o.minY,i.maxY=o.maxY,t=o.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||i.isBarHorizontal)||i.minY!==Number.MIN_VALUE||t===-Number.MAX_VALUE||t===i.maxY||(o=i.maxY-t,(0<=t&&t<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(o=0),i.minY=t-5*o/100,0<t&&i.minY<0&&(i.minY=0),i.maxY=i.maxY+5*o/100),e.yaxis.forEach(function(t,e){void 0!==t.max&&(\"number\"==typeof t.max?i.maxYArr[e]=t.max:\"function\"==typeof t.max&&(i.maxYArr[e]=t.max(i.isMultipleYAxis?i.maxYArr[e]:i.maxY)),i.maxY=i.maxYArr[e]),void 0!==t.min&&(\"number\"==typeof t.min?i.minYArr[e]=t.min:\"function\"==typeof t.min&&(i.minYArr[e]=t.min(i.isMultipleYAxis?i.minYArr[e]===Number.MIN_VALUE?0:i.minYArr[e]:i.minY)),i.minY=i.minYArr[e])}),i.isBarHorizontal&&[\"min\",\"max\"].forEach(function(t){void 0!==e.xaxis[t]&&\"number\"==typeof e.xaxis[t]&&(\"min\"===t?i.minY=e.xaxis[t]:i.maxY=e.xaxis[t])}),i.isMultipleYAxis?(this.scales.setMultipleYScales(),i.minY=t,i.yAxisScale.forEach(function(t,e){i.minYArr[e]=t.niceMin,i.maxYArr[e]=t.niceMax})):(this.scales.setYScaleForIndex(0,i.minY,i.maxY),i.minY=i.yAxisScale[0].niceMin,i.maxY=i.yAxisScale[0].niceMax,i.minYArr[0]=i.yAxisScale[0].niceMin,i.maxYArr[0]=i.yAxisScale[0].niceMax),{minY:i.minY,maxY:i.maxY,minYArr:i.minYArr,maxYArr:i.maxYArr,yAxisScale:i.yAxisScale}}},{key:\"setXRange\",value:function(){var t,e=this.w.globals,i=this.w.config,a=\"numeric\"===i.xaxis.type||\"datetime\"===i.xaxis.type||\"category\"===i.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric)for(var s=0;s<e.series.length;s++)if(e.labels[s])for(var o=0;o<e.labels[s].length;o++)null!==e.labels[s][o]&&M.isNumber(e.labels[s][o])&&(e.maxX=Math.max(e.maxX,e.labels[s][o]),e.initialMaxX=Math.max(e.maxX,e.labels[s][o]),e.minX=Math.min(e.minX,e.labels[s][o]),e.initialMinX=Math.min(e.minX,e.labels[s][o]));if(e.noLabelsProvided&&0===i.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){if(void 0===i.xaxis.tickAmount?(t=Math.round(e.svgWidth/150),(t=\"numeric\"===i.xaxis.type&&e.dataPoints<30?e.dataPoints-1:t)>e.dataPoints&&0!==e.dataPoints&&(t=e.dataPoints-1)):\"dataPoints\"===i.xaxis.tickAmount?(1<e.series.length&&(t=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(t=e.maxX-e.minX-1)):t=i.xaxis.tickAmount,e.xTickAmount=t,void 0!==i.xaxis.max&&\"number\"==typeof i.xaxis.max&&(e.maxX=i.xaxis.max),void 0!==i.xaxis.min&&\"number\"==typeof i.xaxis.min&&(e.minX=i.xaxis.min),void 0!==i.xaxis.range&&(e.minX=e.maxX-i.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(i.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var n=[],r=e.minX-1;r<e.maxX;r++)n.push(r+1);e.xAxisScale={result:n,niceMin:n[0],niceMax:n[n.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(1,t,t),e.noLabelsProvided&&0<e.labels.length&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,t-1),e.seriesX=e.labels.slice());a&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:\"setZRange\",value:function(){var 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]&&M.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,e,i=this.w.globals,a=this.w.config;i.minX===i.maxX&&(t=new k(this.ctx),\"datetime\"===a.xaxis.type?(e=t.getDate(i.minX),a.xaxis.labels.datetimeUTC?e.setUTCDate(e.getUTCDate()-2):e.setDate(e.getDate()-2),i.minX=new Date(e).getTime(),e=t.getDate(i.maxX),a.xaxis.labels.datetimeUTC?e.setUTCDate(e.getUTCDate()+2):e.setDate(e.getDate()+2),i.maxX=new Date(e).getTime()):\"numeric\"!==a.xaxis.type&&(\"category\"!==a.xaxis.type||i.noLabelsProvided)||(i.minX=i.minX-2,i.initialMinX=i.minX,i.maxX=i.maxX+2,i.initialMaxX=i.maxX))}},{key:\"_getMinXDiff\",value:function(){var a=this.w.globals;a.isXNumeric&&a.seriesX.forEach(function(t,e){1===t.length&&t.push(a.seriesX[a.maxValsInArrayIndex][a.seriesX[a.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort(function(t,e){return t-e}),i.forEach(function(t,e){0<e&&0<(t=t-i[e-1])&&(a.minXDiff=Math.min(t,a.minXDiff))}),1!==a.dataPoints&&a.minXDiff!==Number.MAX_VALUE||(a.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,o=0,n=0;n<t.series.length;n++)null!==t.series[n][a]&&M.isNumber(t.series[n][a])&&(0<t.series[n][a]?s=s+parseFloat(t.series[n][a])+1e-4:o+=parseFloat(t.series[n][a])),n===t.series.length-1&&(e.push(s),i.push(o));for(var r=0;r<e.length;r++)t.maxY=Math.max(t.maxY,e[r]),t.minY=Math.min(t.minY,i[r])}}]),e}(),et=function(){function i(t){s(this,i),this.ctx=t,this.w=t.w;var e=this.w;this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.axisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=\"bar\"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xAxisoffX=0,\"bottom\"===e.config.xaxis.position&&(this.xAxisoffX=e.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new b(t)}return n(i,[{key:\"drawYaxis\",value:function(t){var e=this,i=this.w,a=new T(this.ctx),s=i.config.yaxis[t].labels.style,o=s.fontSize,n=s.fontFamily,r=s.fontWeight,l=a.group({class:\"apexcharts-yaxis\",rel:t,transform:\"translate(\"+i.globals.translateYAxisX[t]+\", 0)\"});if(!this.axesUtils.isYAxisHidden(t)){var h,c,d,g,u=a.group({class:\"apexcharts-yaxis-texts-g\"}),p=(l.add(u),i.globals.yAxisScale[t].result.length-1),f=i.globals.gridHeight/p,x=i.globals.translateY,b=i.globals.yLabelFormatters[t],m=i.globals.yAxisScale[t].result.slice(),m=this.axesUtils.checkForReversedLabels(t,m),y=\"\";if(i.config.yaxis[t].labels.show)for(var v=p;0<=v;v--)g=d=g=d=c=void 0,c=m[h=v],c=b(c,h,i),d=i.config.yaxis[t].labels.padding,i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(d*=-1),g=e.axesUtils.getYAxisForeColor(s.colors,t),d=a.drawText({x:d,y:x+p/10+i.config.yaxis[t].labels.offsetY+1,text:c,textAnchor:i.config.yaxis[t].opposite?\"start\":\"end\",fontSize:o,fontFamily:n,fontWeight:r,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(g)?g[h]:g,isPlainText:!1,cssClass:\"apexcharts-yaxis-label \"+s.cssClass}),h===p&&(y=d),u.add(d),(g=document.createElementNS(i.globals.SVGNS,\"title\")).textContent=Array.isArray(c)?c.join(\" \"):c,d.node.appendChild(g),0!==i.config.yaxis[t].labels.rotate&&(h=a.rotateAroundCenter(y.node),c=a.rotateAroundCenter(d.node),d.node.setAttribute(\"transform\",\"rotate(\".concat(i.config.yaxis[t].labels.rotate,\" \").concat(h.x,\" \").concat(c.y,\")\"))),x+=f;void 0!==i.config.yaxis[t].title.text&&(A=a.group({class:\"apexcharts-yaxis-title\"}),k=0,i.config.yaxis[t].opposite&&(k=i.globals.translateYAxisX[t]),k=a.drawText({x:k,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}),A.add(k),l.add(A));var w,k=i.config.yaxis[t].axisBorder,A=31+k.offsetX;i.config.yaxis[t].opposite&&(A=-31-k.offsetX),k.show&&(w=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(w)),i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(A,p,k,i.config.yaxis[t].axisTicks,t,f,l)}return l}},{key:\"drawYaxisInversed\",value:function(t){var e=this.w,i=new T(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,\")\")}),o=(a.add(s),e.globals.yAxisScale[t].result.length-1),n=e.globals.gridWidth/o+.1,r=n+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,h=e.globals.yAxisScale[t].result.slice(),c=e.globals.timescaleLabels,d=(0<c.length&&(this.xaxisLabels=c.slice(),o=(h=c.slice()).length),h=this.axesUtils.checkForReversedLabels(t,h),c.length);if(e.config.xaxis.labels.show)for(var g=d?0:o;d?g<d:0<=g;d?g++:g--){var u=h[g],p=(u=l(u,g,e),e.globals.gridWidth+e.globals.padHorizontal-(r-n+e.config.xaxis.labels.offsetX)),f=(c.length&&(p=(f=this.axesUtils.getLabel(h,c,p,g,this.drawnLabels,this.xaxisFontSize)).x,u=f.text,this.drawnLabels.push(f.text),0===g&&e.globals.skipFirstTimelinelabel&&(u=\"\"),g===h.length-1)&&e.globals.skipLastTimelinelabel&&(u=\"\"),i.drawText({x:p,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:u,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})),p=(s.add(f),f.tspan(u),document.createElementNS(e.globals.SVGNS,\"title\"));p.textContent=u,f.node.appendChild(p),r+=n}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:\"inversedYAxisBorder\",value:function(t){var e,i=this.w,a=new T(this.ctx),s=i.config.xaxis.axisBorder;s.show&&(e=0,\"bar\"===i.config.chart.type&&i.globals.isXNumeric&&(e-=15),a=a.drawLine(i.globals.padHorizontal+e+s.offsetX,this.xAxisoffX,i.globals.gridWidth,this.xAxisoffX,s.color,0,s.height),t.add(a))}},{key:\"inversedYAxisTitleText\",value:function(t){var e,i=this.w,a=new T(this.ctx);void 0!==i.config.xaxis.title.text&&(e=a.group({class:\"apexcharts-xaxis-title apexcharts-yaxis-title-inversed\"}),a=a.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(i.config.xaxis.title.style.fontSize)+i.config.xaxis.title.offsetY+20,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}),e.add(a),t.add(e))}},{key:\"yAxisTitleRotate\",value:function(t,e){var i=this.w,a=new T(this.ctx),s={width:0,height:0},o={width:0,height:0},n=i.globals.dom.baseEl.querySelector(\" .apexcharts-yaxis[rel='\".concat(t,\"'] .apexcharts-yaxis-texts-g\")),n=(null!==n&&(s=n.getBoundingClientRect()),i.globals.dom.baseEl.querySelector(\".apexcharts-yaxis[rel='\".concat(t,\"'] .apexcharts-yaxis-title text\")));null!==n&&(o=n.getBoundingClientRect()),null!==n&&(s=this.xPaddingForYAxisTitle(t,s,o,e),n.setAttribute(\"x\",s.xPos-(e?10:0))),null!==n&&(o=a.rotateAroundCenter(n),n.setAttribute(\"transform\",\"rotate(\".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate,\" \").concat(o.x,\" \").concat(o.y,\")\")))}},{key:\"xPaddingForYAxisTitle\",value:function(t,e,i,a){var s=this.w,o=0,n=10;return void 0===s.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(a?(o=e.width+s.config.yaxis[t].title.offsetX+i.width/2+n/2,0):(o=-1*e.width+s.config.yaxis[t].title.offsetX+n/2+i.width/2,s.globals.isBarHorizontal&&(o=-1*e.width-s.config.yaxis[t].title.offsetX-(n=25))),{xPos:o,padd:n})}},{key:\"setYAxisXPosition\",value:function(s,o){var n,r=this.w,l=0,h=18,c=1;1<r.config.yaxis.length&&(this.multipleYs=!0),r.config.yaxis.map(function(t,e){var i=-1<r.globals.ignoreYAxisIndexes.indexOf(e)||!t.show||t.floating||0===s[e].width,a=s[e].width+o[e].width;t.opposite?r.globals.isBarHorizontal?(l=r.globals.gridWidth+r.globals.translateX-1,r.globals.translateYAxisX[e]=l-t.labels.offsetX):(l=r.globals.gridWidth+r.globals.translateX+c,i||(c=c+a+20),r.globals.translateYAxisX[e]=l-t.labels.offsetX+20):(n=r.globals.translateX-h,i||(h=h+a+20),r.globals.translateYAxisX[e]=n+t.labels.offsetX)})}},{key:\"setYAxisTextAlignments\",value:function(){var o=this.w,t=o.globals.dom.baseEl.getElementsByClassName(\"apexcharts-yaxis\");(t=M.listToArray(t)).forEach(function(t,e){var i,a,s=o.config.yaxis[e];s&&void 0!==s.labels.align&&(i=o.globals.dom.baseEl.querySelector(\".apexcharts-yaxis[rel='\".concat(e,\"'] .apexcharts-yaxis-texts-g\")),e=o.globals.dom.baseEl.querySelectorAll(\".apexcharts-yaxis[rel='\".concat(e,\"'] .apexcharts-yaxis-label\")),e=M.listToArray(e),a=i.getBoundingClientRect(),\"left\"===s.labels.align?(e.forEach(function(t,e){t.setAttribute(\"text-anchor\",\"start\")}),s.opposite||i.setAttribute(\"transform\",\"translate(-\".concat(a.width,\", 0)\"))):\"center\"===s.labels.align?(e.forEach(function(t,e){t.setAttribute(\"text-anchor\",\"middle\")}),i.setAttribute(\"transform\",\"translate(\".concat(a.width/2*(s.opposite?1:-1),\", 0)\"))):\"right\"===s.labels.align&&(e.forEach(function(t,e){t.setAttribute(\"text-anchor\",\"end\")}),s.opposite)&&i.setAttribute(\"transform\",\"translate(\".concat(a.width,\", 0)\")))})}}]),i}(),it=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.documentEvent=M.bind(this.documentEvent,this)}return n(e,[{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;i.globals.events.hasOwnProperty(t)&&-1!==(e=i.globals.events[t].indexOf(e))&&i.globals.events[t].splice(e,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,o=0;o<s;o++)a[o].apply(null,e)}}},{key:\"setupEventHandlers\",value:function(){var e=this,i=this.w,a=this.ctx,s=i.globals.dom.baseEl.querySelector(i.globals.chartClass);this.ctx.eventList.forEach(function(t){s.addEventListener(t,function(t){var e=Object.assign({},i,{seriesIndex:i.globals.capturedSeriesIndex,dataPointIndex:i.globals.capturedDataPointIndex});\"mousemove\"===t.type||\"touchmove\"===t.type?\"function\"==typeof i.config.chart.events.mouseMove&&i.config.chart.events.mouseMove(t,a,e):\"mouseleave\"===t.type||\"touchleave\"===t.type?\"function\"==typeof i.config.chart.events.mouseLeave&&i.config.chart.events.mouseLeave(t,a,e):(\"mouseup\"===t.type&&1===t.which||\"touchend\"===t.type)&&(\"function\"==typeof i.config.chart.events.click&&i.config.chart.events.click(t,a,e),a.ctx.events.fireEvent(\"click\",[t,a,e]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(t){i.globals.dom.baseEl.addEventListener(t,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:\"documentEvent\",value:function(t){var e,i=this.w,a=t.target.className;\"click\"===t.type&&(e=i.globals.dom.baseEl.querySelector(\".apexcharts-menu\"))&&e.classList.contains(\"apexcharts-menu-open\")&&\"apexcharts-menu-icon\"!==a&&e.classList.remove(\"apexcharts-menu-open\"),i.globals.clientX=(\"touchmove\"===t.type?t.touches[0]:t).clientX,i.globals.clientY=(\"touchmove\"===t.type?t.touches[0]:t).clientY}}]),e}(),at=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"setCurrentLocaleValues\",value:function(e){var t=this.w.config.chart.locales,t=(t=window.Apex.chart&&window.Apex.chart.locales&&0<window.Apex.chart.locales.length?this.w.config.chart.locales.concat(window.Apex.chart.locales):t).filter(function(t){return t.name===e})[0];if(!t)throw new Error(\"Wrong locale name provided. Please make sure you set the correct locale name in options\");t=M.extend(j,t);this.w.globals.locale=t.options}}]),e}(),st=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"drawAxis\",value:function(t,e){var i,a,s=this.w.globals,o=this.w.config,n=new z(this.ctx),r=new et(this.ctx);s.axisCharts&&\"radar\"!==t&&(s.isBarHorizontal?(a=r.drawYaxisInversed(0),i=n.drawXaxisInversed(0),s.dom.elGraphical.add(i),s.dom.elGraphical.add(a)):(i=n.drawXaxis(),s.dom.elGraphical.add(i),o.yaxis.map(function(t,e){-1===s.ignoreYAxisIndexes.indexOf(e)&&(a=r.drawYaxis(e),s.dom.Paper.add(a))})))}}]),e}(),ot=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"drawXCrosshairs\",value:function(){var t=this.w,e=new T(this.ctx),i=new C(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,n=a.colorFrom,r=a.colorTo,l=a.opacityFrom,h=a.opacityTo,a=a.stops,c=s.enabled,d=s.left,g=s.top,u=s.blur,p=s.color,s=s.opacity,f=t.config.xaxis.crosshairs.fill.color;t.config.xaxis.crosshairs.show&&(\"gradient\"===o&&(f=e.drawGradient(\"vertical\",n,r,l,h,null,a,null)),o=e.drawRect(),1===t.config.xaxis.crosshairs.width&&(o=e.drawLine()),n=t.globals.gridHeight,(!M.isNumber(n)||n<0)&&(n=0),r=t.config.xaxis.crosshairs.width,(!M.isNumber(r)||r<0)&&(r=0),o.attr({class:\"apexcharts-xcrosshairs\",x:0,y:0,y2:n,width:r,height:n,fill:f,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}),c&&(o=i.dropShadow(o,{left:d,top:g,blur:u,color:p,opacity:s})),t.globals.dom.elGraphical.add(o))}},{key:\"drawYCrosshairs\",value:function(){var t=this.w,e=new T(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis,s=(t.config.yaxis[0].crosshairs.show&&((s=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width)).attr({class:\"apexcharts-ycrosshairs\"}),t.globals.dom.elGraphical.add(s)),e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0));s.attr({class:\"apexcharts-ycrosshairs-hidden\"}),t.globals.dom.elGraphical.add(s)}}]),e}(),nt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"checkResponsiveConfig\",value:function(t){var s,o,e,n=this,r=this.w,i=r.config;0!==i.responsive.length&&((s=i.responsive.slice()).sort(function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse(),o=new p({}),i=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=s[0].breakpoint,i=0<window.innerWidth?window.innerWidth:screen.width;if(e<i){e=I.extendArrayProps(o,r.globals.initialConfig,r),t=M.extend(e,t);t=M.extend(r.config,t),n.overrideResponsiveOptions(t)}else for(var a=0;a<s.length;a++)i<s[a].breakpoint&&(t=I.extendArrayProps(o,s[a].options,r),t=M.extend(r.config,t),n.overrideResponsiveOptions(t))},t?(e=I.extendArrayProps(o,t,r),e=M.extend(r.config,e),i(e=M.extend(e,t))):i({}))}},{key:\"overrideResponsiveOptions\",value:function(t){t=new p(t).init({responsiveOverride:!0});this.w.config=t}}]),e}(),rt=function(){function e(t){s(this,e),this.ctx=t,this.colors=[],this.w=t.w;t=this.w;this.isColorFn=!1,this.isHeatmapDistributed=\"treemap\"===t.config.chart.type&&t.config.plotOptions.treemap.distributed||\"heatmap\"===t.config.chart.type&&t.config.plotOptions.heatmap.distributed,this.isBarDistributed=t.config.plotOptions.bar.distributed&&(\"bar\"===t.config.chart.type||\"rangeBar\"===t.config.chart.type)}return n(e,[{key:\"init\",value:function(){this.setDefaultColors()}},{key:\"setDefaultColors\",value:function(){var a=this,s=this.w,t=new M;if(s.globals.dom.elWrap.classList.add(\"apexcharts-theme-\".concat(s.config.theme.mode)),void 0===s.config.colors?s.globals.colors=this.predefined():(s.globals.colors=s.config.colors,Array.isArray(s.config.colors)&&0<s.config.colors.length&&\"function\"==typeof s.config.colors[0]&&(s.globals.colors=s.config.series.map(function(t,e){var i=s.config.colors[e];return\"function\"==typeof(i=i||s.config.colors[0])?(a.isColorFn=!0,i({value:s.globals.axisCharts?s.globals.series[e][0]||0:s.globals.series[e],seriesIndex:e,dataPointIndex:e,w:s})):i}))),s.globals.seriesColors.map(function(t,e){t&&(s.globals.colors[e]=t)}),s.config.theme.monochrome.enabled){for(var e=[],i=s.globals.series.length,o=((this.isBarDistributed||this.isHeatmapDistributed)&&(i=s.globals.series[0].length*s.globals.series.length),s.config.theme.monochrome.color),n=1/(i/s.config.theme.monochrome.shadeIntensity),r=s.config.theme.monochrome.shadeTo,l=0,h=0;h<i;h++){var c=void 0,c=\"dark\"===r?t.shadeColor(-1*l,o):t.shadeColor(l,o);l+=n,e.push(c)}s.globals.colors=e.slice()}var d=s.globals.colors.slice();this.pushExtraColors(s.globals.colors);[\"fill\",\"stroke\"].forEach(function(t){void 0===s.config[t].colors?s.globals[t].colors=a.isColorFn?s.config.colors:d:s.globals[t].colors=s.config[t].colors.slice(),a.pushExtraColors(s.globals[t].colors)}),void 0===s.config.dataLabels.style.colors?s.globals.dataLabels.style.colors=d:s.globals.dataLabels.style.colors=s.config.dataLabels.style.colors.slice(),this.pushExtraColors(s.globals.dataLabels.style.colors,50),void 0===s.config.plotOptions.radar.polygons.fill.colors?s.globals.radarPolygons.fill.colors=[\"dark\"===s.config.theme.mode?\"#424242\":\"none\"]:s.globals.radarPolygons.fill.colors=s.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(s.globals.radarPolygons.fill.colors,20),void 0===s.config.markers.colors?s.globals.markers.colors=d:s.globals.markers.colors=s.config.markers.colors.slice(),this.pushExtraColors(s.globals.markers.colors)}},{key:\"pushExtraColors\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a=this.w,e=e||a.globals.series.length;if((i=null===i?this.isBarDistributed||this.isHeatmapDistributed||\"heatmap\"===a.config.chart.type&&a.config.plotOptions.heatmap.colorScale.inverse:i)&&a.globals.series.length&&(e=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.length<e)for(var s=e-t.length,o=0;o<s;o++)t.push(t[o])}},{key:\"updateThemeOptions\",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||\"light\",i=t.theme.palette||(\"dark\"===e?\"palette4\":\"palette1\"),a=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}}]),e}(),lt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{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,o=\"middle\";\"left\"===i.align?(a=10,o=\"start\"):\"right\"===i.align&&(a=e.globals.svgWidth-10,o=\"end\"),a+=i.offsetX,s=s+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text&&((a=new T(this.ctx).drawText({x:a,y:s,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1})).node.setAttribute(\"class\",\"apexcharts-\".concat(t,\"-text\")),e.globals.dom.Paper.add(a))}}]),e}(),ht=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return n(e,[{key:\"getTitleSubtitleCoords\",value:function(t){var e=this.w,i=0,a=0,s=(\"title\"===t?e.config.title:e.config.subtitle).floating,t=e.globals.dom.baseEl.querySelector(\".apexcharts-\".concat(t,\"-text\"));return null===t||s||(i=(s=t.getBoundingClientRect()).width,a=e.globals.axisCharts?s.height+5:s.height),{width:i,height:a}}},{key:\"getLegendsRect\",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(\".apexcharts-legend\"),i=(t.config.legend.height||\"top\"!==t.config.legend.position&&\"bottom\"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+\"px\"),Object.assign({},M.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,a;return this.w.globals.isMultiLineX&&(i=e.map(function(t,e){return Array.isArray(t)?t.length:1}),a=Math.max.apply(Math,g(i)),t=e[i.indexOf(a)]),t}}]),e}(),ct=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return n(e,[{key:\"getxAxisLabelsCoords\",value:function(){var t,e,i,a,s,o,n,r=this.w,l=r.globals.labels.slice();return r.config.xaxis.convertedCatToNumeric&&0===l.length&&(l=r.globals.categoryLabels),0<r.globals.timescaleLabels.length?(t={width:(t=this.getxAxisTimeScaleLabelsCoords()).width,height:t.height},r.globals.rotateXLabels=!1):(this.dCtx.lgWidthForSideLegends=\"left\"!==r.config.legend.position&&\"right\"!==r.config.legend.position||r.config.legend.floating?0:this.dCtx.lgRect.width,s=r.globals.xLabelFormatter,e=M.getLargestStringFromArr(l),i=this.dCtx.dimHelpers.getLargestStringFromMultiArr(e,l),r.globals.isBarHorizontal&&(i=e=r.globals.yAxisScale[0].result.reduce(function(t,e){return t.length>e.length?t:e},0)),o=e,e=(n=new x(this.dCtx.ctx)).xLabelFormat(s,e,o,{i:void 0,dateFormatter:new k(this.dCtx.ctx).formatDate,w:r}),i=n.xLabelFormat(s,i,o,{i:void 0,dateFormatter:new k(this.dCtx.ctx).formatDate,w:r}),(r.config.xaxis.convertedCatToNumeric&&void 0===e||\"\"===String(e).trim())&&(i=e=\"1\"),s=n=(a=new T(this.dCtx.ctx)).getTextRects(e,r.config.xaxis.labels.style.fontSize),e!==i&&(s=a.getTextRects(i,r.config.xaxis.labels.style.fontSize)),(t={width:(n.width>=s.width?n:s).width,height:(n.height>=s.height?n:s).height}).width*l.length>r.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==r.config.xaxis.labels.rotate||r.config.xaxis.labels.rotateAlways?r.globals.isBarHorizontal||(r.globals.rotateXLabels=!0,n=(o=function(t){return a.getTextRects(t,r.config.xaxis.labels.style.fontSize,r.config.xaxis.labels.style.fontFamily,\"rotate(\".concat(r.config.xaxis.labels.rotate,\" 0 0)\"),!1)})(e),e!==i&&(s=o(i)),t.height=(n.height>s.height?n:s).height/1.5,t.width=(n.width>s.width?n:s).width):r.globals.rotateXLabels=!1),{width:(t=r.config.xaxis.labels.show?t:{width:0,height:0}).width,height:t.height}}},{key:\"getxAxisGroupLabelsCoords\",value:function(){var t,e,i,a,s,o,n=this.w;return n.globals.hasGroups?(t=(null==(t=n.config.xaxis.group.style)?void 0:t.fontSize)||n.config.xaxis.labels.style.fontSize,i=n.globals.groups.map(function(t){return t.title}),e=M.getLargestStringFromArr(i),i=this.dCtx.dimHelpers.getLargestStringFromMultiArr(e,i),o=s=(a=new T(this.dCtx.ctx)).getTextRects(e,t),e!==i&&(o=a.getTextRects(i,t)),e={width:(s.width>=o.width?s:o).width,height:(s.height>=o.height?s:o).height},{width:(e=n.config.xaxis.labels.show?e:{width:0,height:0}).width,height:e.height}):{width:0,height:0}}},{key:\"getxAxisTitleCoords\",value:function(){var t=this.w,e=0,i=0;return void 0!==t.config.xaxis.title.text&&(e=(t=new T(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize)).width,i=t.height),{width:e,height:i}}},{key:\"getxAxisTimeScaleLabelsCoords\",value:function(){var t=this.w,e=(this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice(),this.dCtx.timescaleLabels.map(function(t){return t.value})),i=e.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),i=new T(this.dCtx.ctx).getTextRects(i,t.config.xaxis.labels.style.fontSize);return 1.05*i.width*e.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),i}},{key:\"additionalPaddingXLabels\",value:function(t){function i(t,e){var i,a;-1===n.collapsedSeriesIndices.indexOf(e)&&(e=t,s.dCtx.timescaleLabels&&s.dCtx.timescaleLabels.length?(t=s.dCtx.timescaleLabels[0],i=s.dCtx.timescaleLabels[s.dCtx.timescaleLabels.length-1].position+h/1.75-s.dCtx.yAxisWidthRight,t=t.position-h/1.75+s.dCtx.yAxisWidthLeft,a=\"right\"===o.config.legend.position&&0<s.dCtx.lgRect.width?s.dCtx.lgRect.width:0,i>n.svgWidth-n.translateX-a&&(n.skipLastTimelinelabel=!0),t<-(e.show&&!e.floating||\"bar\"!==r.chart.type&&\"candlestick\"!==r.chart.type&&\"rangeBar\"!==r.chart.type&&\"boxPlot\"!==r.chart.type?10:h/1.75)&&(n.skipFirstTimelinelabel=!0)):\"datetime\"===l?s.dCtx.gridPad.right<h&&!n.rotateXLabels&&(n.skipLastTimelinelabel=!0):\"datetime\"!==l&&s.dCtx.gridPad.right<h/2-s.dCtx.yAxisWidthRight&&!n.rotateXLabels&&!o.config.xaxis.labels.trim&&(\"between\"!==o.config.xaxis.tickPlacement||o.globals.isBarHorizontal)&&(s.dCtx.xPadRight=h/2+1))}var s=this,o=this.w,n=o.globals,r=o.config,l=r.xaxis.type,h=t.width,a=(n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1,o.config.yaxis[0].opposite&&o.globals.isBarHorizontal);r.yaxis.forEach(function(t,e){a?(s.dCtx.gridPad.left<h&&(s.dCtx.xPadLeft=h/2+1),s.dCtx.xPadRight=h/2+1):i(t,e)})}}]),e}(),dt=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return n(e,[{key:\"getyAxisLabelsCoords\",value:function(){var l=this,h=this.w,c=[],d=10,g=new b(this.dCtx.ctx);return h.config.yaxis.map(function(t,e){var i,a,s,o,n=h.globals.yAxisScale[e],r=0;!g.isYAxisHidden(e)&&t.labels.show&&void 0!==t.labels.minWidth&&(r=t.labels.minWidth),!g.isYAxisHidden(e)&&t.labels.show&&n.result.length?(a=h.globals.yLabelFormatters[e],s=n.niceMin===Number.MIN_VALUE?0:n.niceMin,void 0!==(i=n=a(s=String(s).length>String(n.niceMax).length?s:n.niceMax,{seriesIndex:e,dataPointIndex:-1,w:h}))&&0!==n.length||(n=s),h.globals.isBarHorizontal&&(d=0,s=h.globals.labels.slice(),n=a(n=M.getLargestStringFromArr(s),{seriesIndex:e,dataPointIndex:-1,w:h}),i=l.dCtx.dimHelpers.getLargestStringFromMultiArr(n,s)),a=new T(l.dCtx.ctx),e=\"rotate(\".concat(t.labels.rotate,\" 0 0)\"),o=s=a.getTextRects(n,t.labels.style.fontSize,t.labels.style.fontFamily,e,!1),n!==i&&(o=a.getTextRects(i,t.labels.style.fontSize,t.labels.style.fontFamily,e,!1)),c.push({width:(r>o.width||r>s.width?r:(o.width>s.width?o:s).width)+d,height:(o.height>s.height?o:s).height})):c.push({width:0,height:0})}),c}},{key:\"getyAxisTitleCoords\",value:function(){var s=this,t=this.w,o=[];return t.config.yaxis.map(function(t,e){var i,a;t.show&&void 0!==t.title.text?(a=new T(s.dCtx.ctx),i=\"rotate(\".concat(t.title.rotate,\" 0 0)\"),a=a.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,i,!1),o.push({width:a.width,height:a.height})):o.push({width:0,height:0})}),o}},{key:\"getTotalYAxisWidth\",value:function(){function i(t,e){var i=s.config.yaxis[e].floating,a=0;0<t.width&&!i?(a=t.width+l,c(e)&&(a=a-t.width-l)):a=i||h.isYAxisHidden(e)?0:5,s.config.yaxis[e].opposite?r+=a:n+=a,o+=a}var s=this.w,o=0,n=0,r=0,l=1<s.globals.yAxisScale.length?10:0,h=new b(this.dCtx.ctx),c=function(t){return-1<s.globals.ignoreYAxisIndexes.indexOf(t)};return s.globals.yLabelsCoords.map(function(t,e){i(t,e)}),s.globals.yTitleCoords.map(function(t,e){i(t,e)}),s.globals.isBarHorizontal&&!s.config.yaxis[0].floating&&(o=s.globals.yLabelsCoords[0].width+s.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=r,o}}]),e}(),gt=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return n(e,[{key:\"gridPadForColumnsInNumericAxis\",value:function(t){var e,i,a,s,o,n,r=this.w;return r.globals.noData||r.globals.allSeriesCollapsed?0:(n=r.config.chart.type,a=(e=function(t){return\"bar\"===t||\"rangeBar\"===t||\"candlestick\"===t||\"boxPlot\"===t})(n)?r.config.series.length:1,(i=0)<r.globals.comboBarCount&&(a=r.globals.comboBarCount),r.globals.collapsedSeries.forEach(function(t){e(t.type)&&(a-=1)}),r.config.chart.stacked&&(a=1),(e(n)||0<r.globals.comboBarCount)&&r.globals.isXNumeric&&!r.globals.isBarHorizontal&&0<a&&(n=0,n=(s=(s=Math.abs(r.globals.initialMaxX-r.globals.initialMinX))<=3?r.globals.dataPoints:s)/t,t/2<(o=r.globals.minXDiff&&0<r.globals.minXDiff/n?r.globals.minXDiff/n:o)&&(o/=2),i=(i=(i=o/a*parseInt(r.config.plotOptions.bar.columnWidth,10)/100)<1?1:i)/(1<a?1:1.5)+5,r.globals.barPadForNumericAxis=i),i)}},{key:\"gridPadFortitleSubtitle\",value:function(){var e=this,i=this.w,t=i.globals,a=this.dCtx.isSparkline||!i.globals.axisCharts?0:10,s=([\"title\",\"subtitle\"].forEach(function(t){void 0!==i.config[t].text?a+=i.config[t].margin:a+=e.dCtx.isSparkline||!i.globals.axisCharts?0:5}),!i.config.legend.show||\"bottom\"!==i.config.legend.position||i.config.legend.floating||i.globals.axisCharts||(a+=10),this.dCtx.dimHelpers.getTitleSubtitleCoords(\"title\")),o=this.dCtx.dimHelpers.getTitleSubtitleCoords(\"subtitle\");t.gridHeight=t.gridHeight-s.height-o.height-a,t.translateY=t.translateY+s.height+o.height+a}},{key:\"setGridXPosForDualYAxis\",value:function(i,a){var s=this.w,o=new b(this.dCtx.ctx);s.config.yaxis.map(function(t,e){-1!==s.globals.ignoreYAxisIndexes.indexOf(e)||t.floating||o.isYAxisHidden(e)||(t.opposite&&(s.globals.translateX=s.globals.translateX-(a[e].width+i[e].width)-parseInt(s.config.yaxis[e].labels.style.fontSize,10)/1.2-12),s.globals.translateX<2&&(s.globals.translateX=2))})}}]),e}(),X=function(){function e(t){s(this,e),this.ctx=t,this.w=t.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 ht(this),this.dimYAxis=new dt(this),this.dimXAxis=new ct(this),this.dimGrid=new gt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return n(e,[{key:\"plotCoords\",value:function(){var i=this,t=this.w,e=t.globals,t=(this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(0<t.config.markers.discrete.length||0<t.config.markers.size)&&Object.entries(this.gridPad).forEach(function(t){var t=O(t,2),e=t[0],t=t[1];i.gridPad[e]=Math.max(t,i.w.globals.markers.largestSize/1.5)}),e.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),e.gridHeight=e.gridHeight-this.gridPad.top-this.gridPad.bottom,e.gridWidth=e.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft,this.dimGrid.gridPadForColumnsInNumericAxis(e.gridWidth));e.gridWidth=e.gridWidth-2*t,e.translateX=e.translateX+this.gridPad.left+this.xPadLeft+(0<t?t+4:0),e.translateY=e.translateY+this.gridPad.top}},{key:\"setDimensionsForAxisCharts\",value:function(){function t(){a.translateX=h,a.gridHeight=a.svgHeight-e.lgRect.height-c-(e.isSparkline||\"treemap\"===i.config.chart.type?0:i.globals.rotateXLabels?10:15),a.gridWidth=a.svgWidth-h}var e=this,i=this.w,a=i.globals,s=this.dimYAxis.getyAxisLabelsCoords(),o=this.dimYAxis.getyAxisTitleCoords(),n=(i.globals.yLabelsCoords=[],i.globals.yTitleCoords=[],i.config.yaxis.map(function(t,e){i.globals.yLabelsCoords.push({width:s[e].width,index:e}),i.globals.yTitleCoords.push({width:o[e].width,index:e})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth(),this.dimXAxis.getxAxisLabelsCoords()),r=this.dimXAxis.getxAxisGroupLabelsCoords(),l=this.dimXAxis.getxAxisTitleCoords(),h=(this.conditionalChecksForAxisCoords(n,l,r),a.translateXAxisY=i.globals.rotateXLabels?this.xAxisHeight/8:-4,a.translateXAxisX=i.globals.rotateXLabels&&i.globals.isXNumeric&&i.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,i.globals.isBarHorizontal&&(a.rotateXLabels=!1,a.translateXAxisY=parseInt(i.config.xaxis.labels.style.fontSize,10)/1.5*-1),a.translateXAxisY=a.translateXAxisY+i.config.xaxis.labels.offsetY,a.translateXAxisX=a.translateXAxisX+i.config.xaxis.labels.offsetX,this.yAxisWidth),c=this.xAxisHeight,d=(a.xAxisLabelsHeight=this.xAxisHeight-l.height,a.xAxisGroupLabelsHeight=a.xAxisLabelsHeight-n.height,a.xAxisLabelsWidth=this.xAxisWidth,a.xAxisHeight=this.xAxisHeight,10);\"radar\"!==i.config.chart.type&&!this.isSparkline||(h=0,c=a.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),!this.isSparkline&&\"treemap\"!==i.config.chart.type||(d=c=h=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);switch(\"top\"===i.config.xaxis.position&&(d=a.xAxisHeight-i.config.xaxis.axisTicks.height-5),i.config.legend.position){case\"bottom\":a.translateY=d,t();break;case\"top\":a.translateY=this.lgRect.height+d,t();break;case\"left\":a.translateY=d,a.translateX=this.lgRect.width+h,a.gridHeight=a.svgHeight-c-12,a.gridWidth=a.svgWidth-this.lgRect.width-h;break;case\"right\":a.translateY=d,a.translateX=h,a.gridHeight=a.svgHeight-c-12,a.gridWidth=a.svgWidth-this.lgRect.width-h-5;break;default:throw new Error(\"Legend position not supported\")}this.dimGrid.setGridXPosForDualYAxis(o,s),new et(this.ctx).setYAxisXPosition(s,o)}},{key:\"setDimensionsForNonAxisCharts\",value:function(){var t=this.w,e=t.globals,i=t.config,a=0,t=(t.config.legend.show&&!t.config.legend.floating&&(a=20),\"pie\"===i.chart.type||\"polarArea\"===i.chart.type||\"donut\"===i.chart.type?\"pie\":\"radialBar\"),s=i.plotOptions[t].offsetY,o=i.plotOptions[t].offsetX;if(!i.legend.show||i.legend.floating)e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=s,e.translateX=o+(e.svgWidth-e.gridWidth)/2;else switch(i.legend.position){case\"bottom\":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=s-10,e.translateX=o+(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+s+10,e.translateX=o+(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=s,e.translateX=o+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=s,e.translateX=o+10;break;default:throw new Error(\"Legend position not supported\")}}},{key:\"conditionalChecksForAxisCoords\",value:function(t,e,i){var a=this.w,s=a.globals.hasGroups?2:1,i=i.height+t.height+e.height,o=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,n=a.globals.rotateXLabels?22:10,r=a.globals.rotateXLabels&&\"bottom\"===a.config.legend.position,l=(this.xAxisHeight=i*o+s*n+(r?10:0),this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0),0),h=0;a.config.yaxis.forEach(function(t){l+=t.labels.minWidth,h+=t.labels.maxWidth}),this.yAxisWidth<l&&(this.yAxisWidth=l),this.yAxisWidth>h&&(this.yAxisWidth=h)}}]),e}(),ut=function(){function e(t){s(this,e),this.w=t.w,this.lgCtx=t}return n(e,[{key:\"getLegendStyles\",value:function(){var t=document.createElement(\"style\"),e=(t.setAttribute(\"type\",\"text/css\"),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,e=(t.dom.elLegendForeign=document.createElementNS(t.SVGNS,\"foreignObject\"),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,a,s=this,o=this.w;o.globals.axisCharts||\"radialBar\"===o.config.chart.type?(o.globals.resized=!0,i=a=null,o.globals.risingSeries=[],i=o.globals.axisCharts?(a=o.globals.dom.baseEl.querySelector(\".apexcharts-series[data\\\\:realIndex='\".concat(t,\"']\")),parseInt(a.getAttribute(\"data:realIndex\"),10)):(a=o.globals.dom.baseEl.querySelector(\".apexcharts-series[rel='\".concat(t+1,\"']\")),parseInt(a.getAttribute(\"rel\"),10)-1),e?[{cs:o.globals.collapsedSeries,csi:o.globals.collapsedSeriesIndices},{cs:o.globals.ancillaryCollapsedSeries,csi:o.globals.ancillaryCollapsedSeriesIndices}].forEach(function(t){s.riseCollapsedSeries(t.cs,t.csi,i)}):this.hideSeries({seriesEl:a,realIndex:i})):(e=o.globals.dom.Paper.select(\" .apexcharts-series[rel='\".concat(t+1,\"'] path\")),\"pie\"!==(a=o.config.chart.type)&&\"polarArea\"!==a&&\"donut\"!==a||(t=o.config.plotOptions.pie.donut.labels,new T(this.lgCtx.ctx).pathMouseDown(e.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(e.members[0].node,t)),e.fire(\"click\"))}},{key:\"hideSeries\",value:function(t){for(var e,i=t.seriesEl,t=t.realIndex,a=this.w,s=M.clone(a.config.series),o=(a.globals.axisCharts?(e=!1,a.config.yaxis[t]&&a.config.yaxis[t].show&&a.config.yaxis[t].showAlways&&(e=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(t)<0)&&(a.globals.ancillaryCollapsedSeries.push({index:t,data:s[t].data.slice(),type:i.parentNode.className.baseVal.split(\"-\")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(t)),e||(a.globals.collapsedSeries.push({index:t,data:s[t].data.slice(),type:i.parentNode.className.baseVal.split(\"-\")[1]}),a.globals.collapsedSeriesIndices.push(t),e=a.globals.risingSeries.indexOf(t),a.globals.risingSeries.splice(e,1))):(a.globals.collapsedSeries.push({index:t,data:s[t]}),a.globals.collapsedSeriesIndices.push(t)),i.childNodes),n=0;n<o.length;n++)o[n].classList.contains(\"apexcharts-series-markers-wrap\")&&(o[n].classList.contains(\"apexcharts-hide\")?o[n].classList.remove(\"apexcharts-hide\"):o[n].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=M.clone(a.config.series);if(0<t.length){for(var o=0;o<t.length;o++)t[o].index===i&&(a.globals.axisCharts?s[i].data=t[o].data.slice():s[i]=t[o].data,t.splice(o,1),e.splice(o,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(i){var a=this.w;return a.globals.axisCharts?i.forEach(function(t,e){-1<a.globals.collapsedSeriesIndices.indexOf(e)&&(i[e].data=[])}):i.forEach(function(t,e){-1<a.globals.collapsedSeriesIndices.indexOf(e)&&(i[e]=0)}),i}}]),e}(),pt=function(){function i(t,e){s(this,i),this.ctx=t,this.w=t.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 ut(this)}return n(i,[{key:\"init\",value:function(){var t=this.w,e=t.globals,t=t.config;if((t.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||1<e.series.length||!e.axisCharts)&&t.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),M.isIE11()?document.getElementsByTagName(\"head\")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),\"bottom\"===t.legend.position||\"top\"===t.legend.position?this.legendAlignHorizontal():\"right\"!==t.legend.position&&\"left\"!==t.legend.position||this.legendAlignVertical()}}},{key:\"drawLegends\",value:function(){for(var t,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,s=e.globals.colors.slice(),o=(\"heatmap\"===e.config.chart.type?(a=(t=e.config.plotOptions.heatmap.colorScale.ranges).map(function(t){return t.name||t.from+\" - \"+t.to}),s=t.map(function(t){return t.color})):this.isBarsDistributed&&(a=e.globals.labels.slice()),e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems),e.globals.legendFormatter),n=e.config.legend.inverseOrder,r=n?a.length-1:0;n?0<=r:r<=a.length-1;n?r--:r++){var l=o(a[r],{seriesIndex:r,w:e}),h=!1,c=!1;if(0<e.globals.collapsedSeries.length)for(var d=0;d<e.globals.collapsedSeries.length;d++)e.globals.collapsedSeries[d].index===r&&(h=!0);if(0<e.globals.ancillaryCollapsedSeriesIndices.length)for(var g=0;g<e.globals.ancillaryCollapsedSeriesIndices.length;g++)e.globals.ancillaryCollapsedSeriesIndices[g]===r&&(c=!0);var u=document.createElement(\"span\"),p=(u.classList.add(\"apexcharts-legend-marker\"),e.config.legend.markers.offsetX),f=e.config.legend.markers.offsetY,x=e.config.legend.markers.height,b=e.config.legend.markers.width,m=e.config.legend.markers.strokeWidth,y=e.config.legend.markers.strokeColor,v=e.config.legend.markers.radius,w=u.style,x=(w.background=s[r],w.color=s[r],w.setProperty(\"background\",s[r],\"important\"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[r]&&(w.background=e.config.legend.markers.fillColors[r]),void 0!==e.globals.seriesColors[r]&&(w.background=e.globals.seriesColors[r],w.color=e.globals.seriesColors[r]),w.height=Array.isArray(x)?parseFloat(x[r])+\"px\":parseFloat(x)+\"px\",w.width=Array.isArray(b)?parseFloat(b[r])+\"px\":parseFloat(b)+\"px\",w.left=(Array.isArray(p)?parseFloat(p[r]):parseFloat(p))+\"px\",w.top=(Array.isArray(f)?parseFloat(f[r]):parseFloat(f))+\"px\",w.borderWidth=Array.isArray(m)?m[r]:m,w.borderColor=Array.isArray(y)?y[r]:y,w.borderRadius=Array.isArray(v)?parseFloat(v[r])+\"px\":parseFloat(v)+\"px\",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[r]&&(u.innerHTML=e.config.legend.markers.customHTML[r]()):u.innerHTML=e.config.legend.markers.customHTML()),T.setAttrs(u,{rel:r+1,\"data:collapsed\":h||c}),(h||c)&&u.classList.add(\"apexcharts-inactive-legend\"),document.createElement(\"div\")),b=document.createElement(\"span\");b.classList.add(\"apexcharts-legend-text\"),b.innerHTML=Array.isArray(l)?l.join(\" \"):l;p=(p=e.config.legend.labels.useSeriesColors?e.globals.colors[r]:e.config.legend.labels.colors)||e.config.chart.foreColor,f=(b.style.color=p,b.style.fontSize=parseFloat(e.config.legend.fontSize)+\"px\",b.style.fontWeight=e.config.legend.fontWeight,b.style.fontFamily=i||e.config.chart.fontFamily,T.setAttrs(b,{rel:r+1,i:r,\"data:default-text\":encodeURIComponent(l),\"data:collapsed\":h||c}),x.appendChild(u),x.appendChild(b),new I(this.ctx));e.config.legend.showForZeroSeries||0===f.getSeriesTotalByIndex(r)&&f.seriesHaveSameValues(r)&&!f.isSeriesNull(r)&&-1===e.globals.collapsedSeriesIndices.indexOf(r)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(r)&&x.classList.add(\"apexcharts-hidden-zero-series\"),e.config.legend.showForNullSeries||f.isSeriesNull(r)&&-1===e.globals.collapsedSeriesIndices.indexOf(r)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(r)&&x.classList.add(\"apexcharts-hidden-null-series\"),e.globals.dom.elLegendWrap.appendChild(x),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),x.classList.add(\"apexcharts-legend-series\"),x.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\":\"\",T.setAttrs(x,{rel:r+1,seriesName:M.escapeString(a[r]),\"data:collapsed\":h||c}),(h||c)&&x.classList.add(\"apexcharts-inactive-legend\"),e.config.legend.onItemClick.toggleDataSeries||x.classList.add(\"apexcharts-no-click\")}e.globals.dom.elWrap.addEventListener(\"click\",this.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener(\"mousemove\",this.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener(\"mouseout\",this.onLegendHovered,!0))}},{key:\"setLegendWrapXY\",value:function(t,e){var i,a=this.w,s=a.globals.dom.baseEl.querySelector(\".apexcharts-legend\"),o=s.getBoundingClientRect(),n=0;\"bottom\"===a.config.legend.position?n+=a.globals.svgHeight-o.height/2:\"top\"===a.config.legend.position&&(n=n+(0<(i=(o=new X(this.ctx)).dimHelpers.getTitleSubtitleCoords(\"title\").height)?i-10:0)+(0<(i=o.dimHelpers.getTitleSubtitleCoords(\"subtitle\").height)?i-10:0)),s.style.position=\"absolute\",o=0+t+a.config.legend.offsetX,n=n+e+a.config.legend.offsetY,s.style.left=o+\"px\",s.style.top=n+\"px\",\"bottom\"===a.config.legend.position?(s.style.top=\"auto\",s.style.bottom=5-a.config.legend.offsetY+\"px\"):\"right\"===a.config.legend.position&&(s.style.left=\"auto\",s.style.right=25+a.config.legend.offsetX+\"px\");[\"width\",\"height\"].forEach(function(t){s.style[t]&&(s.style[t]=parseInt(a.config.legend[t],10)+\"px\")})}},{key:\"legendAlignHorizontal\",value:function(){var t=this.w,e=(t.globals.dom.baseEl.querySelector(\".apexcharts-legend\").style.right=0,this.legendHelpers.getLegendBBox()),i=new X(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords(\"title\"),i=i.dimHelpers.getTitleSubtitleCoords(\"subtitle\"),s=0;\"bottom\"===t.config.legend.position?s=-e.clwh/1.8:\"top\"===t.config.legend.position&&(s=a.height+i.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,s)}},{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\");\"heatmap\"===e.config.chart.type||this.isBarsDistributed?i&&(e=parseInt(t.target.getAttribute(\"rel\"),10)-1,this.ctx.events.fireEvent(\"legendHover\",[this.ctx,e,this.w]),new f(this.ctx).highlightRangeInSeries(t,t.target)):!t.target.classList.contains(\"apexcharts-inactive-legend\")&&i&&new f(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:\"onLegendClick\",value:function(t){var e,i,a,s=this.w;s.config.legend.customLegendItems.length||(t.target.classList.contains(\"apexcharts-legend-text\")||t.target.classList.contains(\"apexcharts-legend-marker\"))&&(e=parseInt(t.target.getAttribute(\"rel\"),10)-1,i=\"true\"===t.target.getAttribute(\"data:collapsed\"),\"function\"==typeof(a=this.w.config.chart.events.legendClick)&&a(this.ctx,e,this.w),this.ctx.events.fireEvent(\"legendClick\",[this.ctx,e,this.w]),\"function\"==typeof(a=this.w.config.legend.markers.onClick)&&t.target.classList.contains(\"apexcharts-legend-marker\")&&(a(this.ctx,e,this.w),this.ctx.events.fireEvent(\"legendMarkerClick\",[this.ctx,e,this.w])),\"treemap\"!==s.config.chart.type)&&\"heatmap\"!==s.config.chart.type&&!this.isBarsDistributed&&s.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(e,i)}}]),i}(),ft=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;t=this.w;this.ev=this.w.config.chart.events,this.selectedClass=\"apexcharts-selected\",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}return n(e,[{key:\"createToolbar\",value:function(){function t(){return document.createElement(\"div\")}var s=this,o=this.w,e=t();if(e.setAttribute(\"class\",\"apexcharts-toolbar\"),e.style.top=o.config.chart.toolbar.offsetY+\"px\",e.style.right=3-o.config.chart.toolbar.offsetX+\"px\",o.globals.dom.elWrap.appendChild(e),this.elZoom=t(),this.elZoomIn=t(),this.elZoomOut=t(),this.elPan=t(),this.elSelection=t(),this.elZoomReset=t(),this.elMenuIcon=t(),this.elMenu=t(),this.elCustomIcons=[],this.t=o.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i<this.t.customIcons.length;i++)this.elCustomIcons.push(t());function a(t,e,i){var a=t.toLowerCase();s.t[a]&&o.config.chart.zoom.enabled&&r.push({el:e,icon:\"string\"==typeof s.t[a]?s.t[a]:i,title:s.localeValues[t],class:\"apexcharts-\".concat(a,\"-icon\")})}function n(t){s.t[t]&&o.config.chart[t].enabled&&r.push({el:\"zoom\"===t?s.elZoom:s.elSelection,icon:\"string\"==typeof s.t[t]?s.t[t]:\"zoom\"===t?'<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:s.localeValues[\"zoom\"===t?\"selectionZoom\":\"selection\"],class:o.globals.isTouchDevice?\"apexcharts-element-hidden\":\"apexcharts-\".concat(t,\"-icon\")})}var r=[];a(\"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'),a(\"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');n(\"zoom\"),n(\"selection\"),this.t.pan&&o.config.chart.zoom.enabled&&r.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:o.globals.isTouchDevice?\"apexcharts-element-hidden\":\"apexcharts-pan-icon\"}),a(\"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&&r.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++)r.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});r.forEach(function(t,e){t.index&&M.moveIndexInArray(r,e,t.index)});for(var h=0;h<r.length;h++)T.setAttrs(r[h].el,{class:r[h].class,title:r[h].title}),r[h].el.innerHTML=r[h].icon,e.appendChild(r[h].el);this._createHamburgerMenu(e),o.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):o.globals.panEnabled?this.elPan.classList.add(this.selectedClass):o.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:\"_createHamburgerMenu\",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),T.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,T.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 e=this;this.elZoomReset.addEventListener(\"click\",this.handleZoomReset.bind(this)),this.elSelection.addEventListener(\"click\",this.toggleZoomSelection.bind(this,\"selection\")),this.elZoom.addEventListener(\"click\",this.toggleZoomSelection.bind(this,\"zoom\")),this.elZoomIn.addEventListener(\"click\",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener(\"click\",this.handleZoomOut.bind(this)),this.elPan.addEventListener(\"click\",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener(\"click\",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(t){t.classList.contains(\"exportSVG\")?t.addEventListener(\"click\",e.handleDownload.bind(e,\"svg\")):t.classList.contains(\"exportPNG\")?t.addEventListener(\"click\",e.handleDownload.bind(e,\"png\")):t.classList.contains(\"exportCSV\")&&t.addEventListener(\"click\",e.handleDownload.bind(e,\"csv\"))});for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener(\"click\",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:\"toggleZoomSelection\",value:function(a){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var e=\"selection\"===a?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i=\"selection\"===a?\"selectionEnabled\":\"zoomEnabled\";t.w.globals[i]=!t.w.globals[i],e.classList.contains(t.ctx.toolbar.selectedClass)?e.classList.remove(t.ctx.toolbar.selectedClass):e.classList.add(t.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,t=\"pan\"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),t&&t.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 e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(t){t&&t.classList.remove(e.selectedClass)})}},{key:\"handleZoomIn\",value:function(){var t=this.w,e=(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),(this.minX+this.maxX)/2),i=(this.minX+e)/2,e=(this.maxX+e)/2,i=this._getNewMinXMaxX(i,e);t.globals.disableZoomIn||this.zoomUpdateOptions(i.minX,i.maxX)}},{key:\"handleZoomOut\",value:function(){var t,e,i=this.w;i.globals.isRangeBar&&(this.minX=i.globals.minY,this.maxX=i.globals.maxY),\"datetime\"===i.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3||(t=(this.minX+this.maxX)/2,e=this.minX-(t-this.minX),t=this.maxX-(t-this.maxX),e=this._getNewMinXMaxX(e,t),i.globals.disableZoomOut)||this.zoomUpdateOptions(e.minX,e.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,a=this.w;void 0===t&&void 0===e?this.handleZoomReset():a.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=a.globals.dataPoints),e-t<2)||(e={xaxis:t=(e=this.getBeforeZoomRange(t={min:t,max:e}))?e.xaxis:t},i=M.clone(a.globals.initialConfig.yaxis),a.config.chart.zoom.autoScaleYaxis&&(i=new E(this.ctx).autoScaleY(this.ctx,i,{xaxis:t})),a.config.chart.group||(e.yaxis=i),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(e,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(t,i))}},{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 i=\"function\"==typeof this.ev.beforeZoom?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,i=(e.globals.lastXAxis.min=void 0,e.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),\"function\"==typeof e.config.chart.events.beforeResetZoom&&(i=e.config.chart.events.beforeResetZoom(t,e))&&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,t.ctx.series.emptyCollapsedSeries(M.clone(e.globals.initialSeries)));t.updateHelpers._updateSeries(i,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}}]),e}(),xt=function(){o(a,ft);var i=h(a);function a(t){var e;return s(this,a),(e=i.call(this,t)).ctx=t,e.w=t.w,e.dragged=!1,e.graphics=new T(e.ctx),e.eventList=[\"mousedown\",\"mouseleave\",\"mousemove\",\"touchstart\",\"touchmove\",\"mouseup\",\"touchend\"],e.clientX=0,e.clientY=0,e.startX=0,e.endX=0,e.dragX=0,e.startY=0,e.endY=0,e.dragY=0,e.moveDirection=\"none\",e}return n(a,[{key:\"init\",value:function(t){var e=this,i=t.xyRatios,t=this.w,a=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=t.globals.dom.baseEl.querySelector(\".apexcharts-grid\"),this.zoomRect.node.classList.add(\"apexcharts-zoom-rect\"),this.selectionRect.node.classList.add(\"apexcharts-selection-rect\"),t.globals.dom.elGraphical.add(this.zoomRect),t.globals.dom.elGraphical.add(this.selectionRect),\"x\"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}).on(\"dragmove\",this.selectionDragging.bind(this,\"dragging\")):\"y\"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:t.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=t.globals.dom.baseEl.querySelector(\"\".concat(t.globals.chartClass,\" .apexcharts-svg\")),this.hoverArea.classList.add(\"apexcharts-zoomable\"),this.eventList.forEach(function(t){e.hoverArea.addEventListener(t,a.svgMouseEvents.bind(a,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,a=this.w,s=this,o=this.ctx.toolbar,n=(a.globals.zoomEnabled?a.config.chart.zoom:a.config.chart.selection).type,r=a.config.chart.toolbar.autoSelected;e.shiftKey?(this.shiftWasPressed=!0,o.enableZoomPanFromToolbar(\"pan\"===r?\"zoom\":\"pan\")):this.shiftWasPressed&&(o.enableZoomPanFromToolbar(r),this.shiftWasPressed=!1),e.target&&(o=e.target.classList,e.target.parentNode&&null!==e.target.parentNode&&(i=e.target.parentNode.classList),o.contains(\"apexcharts-selection-rect\")||o.contains(\"apexcharts-legend-marker\")||o.contains(\"apexcharts-legend-text\")||i&&i.contains(\"apexcharts-toolbar\")||(s.clientX=(\"touchmove\"===e.type||\"touchstart\"===e.type?e.touches[0]:\"touchend\"===e.type?e.changedTouches[0]:e).clientX,s.clientY=(\"touchmove\"===e.type||\"touchstart\"===e.type?e.touches[0]:\"touchend\"===e.type?e.changedTouches[0]:e).clientY,\"mousedown\"===e.type&&1===e.which&&(r=s.gridRect.getBoundingClientRect(),s.startX=s.clientX-r.left,s.startY=s.clientY-r.top,s.dragged=!1,s.w.globals.mousedown=!0),(\"mousemove\"===e.type&&1===e.which||\"touchmove\"===e.type)&&(s.dragged=!0,a.globals.panEnabled?(a.globals.selection=null,s.w.globals.mousedown&&s.panDragging({context:s,zoomtype:n,xyRatios:t})):(s.w.globals.mousedown&&a.globals.zoomEnabled||s.w.globals.mousedown&&a.globals.selectionEnabled)&&(s.selection=s.selectionDrawing({context:s,zoomtype:n}))),\"mouseup\"!==e.type&&\"touchend\"!==e.type&&\"mouseleave\"!==e.type||(o=s.gridRect.getBoundingClientRect(),s.w.globals.mousedown&&(s.endX=s.clientX-o.left,s.endY=s.clientY-o.top,s.dragX=Math.abs(s.endX-s.startX),s.dragY=Math.abs(s.endY-s.startY),(a.globals.zoomEnabled||a.globals.selectionEnabled)&&s.selectionDrawn({context:s,zoomtype:n}),a.globals.panEnabled)&&a.config.xaxis.convertedCatToNumeric&&s.delayedPanScrolled(),a.globals.zoomEnabled&&s.hideSelectionRect(this.selectionRect),s.dragged=!1,s.w.globals.mousedown=!1),this.makeSelectionRectDraggable()))}},{key:\"makeSelectionRectDraggable\",value:function(){var t,e=this.w;this.selectionRect&&0<(t=this.selectionRect.node.getBoundingClientRect()).width&&0<t.height&&this.slDraggableRect.selectize({points:\"l, r\",pointSize:8,pointType:\"rect\"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on(\"resizing\",this.selectionDragging.bind(this,\"resizing\"))}},{key:\"preselectedSelection\",value:function(){var t,e=this.w,i=this.xyRatios;e.globals.zoomEnabled||(void 0!==e.globals.selection&&null!==e.globals.selection?this.drawSelectionRect(e.globals.selection):void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max&&(i={x:t=(e.config.chart.selection.xaxis.min-e.globals.minX)/i.xRatio,y:0,width:e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/i.xRatio-t,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0},this.drawSelectionRect(i),this.makeSelectionRectDraggable(),\"function\"==typeof e.config.chart.events.selection)&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}}))}},{key:\"drawSelectionRect\",value:function(t){var e=t.x,i=t.y,a=t.width,s=t.height,o=t.translateX,t=t.translateY,n=this.w,r=this.zoomRect,l=this.selectionRect;(this.dragged||null!==n.globals.selection)&&(o={transform:\"translate(\"+(void 0===o?0:o)+\", \"+(void 0===t?0:t)+\")\"},n.globals.zoomEnabled&&this.dragged&&(r.attr({x:e,y:i,width:a=a<0?1:a,height:s,fill:n.config.chart.zoom.zoomedArea.fill.color,\"fill-opacity\":n.config.chart.zoom.zoomedArea.fill.opacity,stroke:n.config.chart.zoom.zoomedArea.stroke.color,\"stroke-width\":n.config.chart.zoom.zoomedArea.stroke.width,\"stroke-opacity\":n.config.chart.zoom.zoomedArea.stroke.opacity}),T.setAttrs(r.node,o)),n.globals.selectionEnabled)&&(l.attr({x:e,y:i,width:0<a?a:0,height:0<s?s:0,fill:n.config.chart.selection.fill.color,\"fill-opacity\":n.config.chart.selection.fill.opacity,stroke:n.config.chart.selection.stroke.color,\"stroke-width\":n.config.chart.selection.stroke.width,\"stroke-dasharray\":n.config.chart.selection.stroke.dashArray,\"stroke-opacity\":n.config.chart.selection.stroke.opacity}),T.setAttrs(l.node,o))}},{key:\"hideSelectionRect\",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:\"selectionDrawing\",value:function(t){var e=t.context,t=t.zoomtype,i=this.w,a=this.gridRect.getBoundingClientRect(),s=e.startX-1,o=e.startY,n=!1,r=!1,l=e.clientX-a.left-s,h=e.clientY-a.top-o,c={};return Math.abs(l+s)>i.globals.gridWidth?l=i.globals.gridWidth-s:e.clientX-a.left<0&&(l=s),s>e.clientX-a.left&&(n=!0,l=Math.abs(l)),o>e.clientY-a.top&&(r=!0,h=Math.abs(h)),c=\"x\"===t?{x:n?s-l:s,y:0,width:l,height:i.globals.gridHeight}:\"y\"===t?{x:0,y:r?o-h:o,width:i.globals.gridWidth,height:h}:{x:n?s-l:s,y:r?o-h:o,width:l,height:h},e.drawSelectionRect(c),e.selectionDragging(\"resizing\"),c}},{key:\"selectionDragging\",value:function(t,e){function i(t){return parseFloat(n.node.getAttribute(t))}var a=this,s=this.w,o=this.xyRatios,n=this.selectionRect,r=0,t=(\"resizing\"===t&&(r=30),{x:i(\"x\"),y:i(\"y\"),width:i(\"width\"),height:i(\"height\")});s.globals.selection=t,\"function\"==typeof s.config.chart.events.selection&&s.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t=a.gridRect.getBoundingClientRect(),e=n.node.getBoundingClientRect(),e={xaxis:{min:s.globals.xAxisScale.niceMin+(e.left-t.left)*o.xRatio,max:s.globals.xAxisScale.niceMin+(e.right-t.left)*o.xRatio},yaxis:{min:s.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*o.yRatio[0],max:s.globals.yAxisScale[0].niceMax-(e.top-t.top)*o.yRatio[0]}};s.config.chart.events.selection(a.ctx,e),s.config.chart.brush.enabled&&void 0!==s.config.chart.events.brushScrolled&&s.config.chart.events.brushScrolled(a.ctx,e)},r))}},{key:\"selectionDrawn\",value:function(t){var e,i,a,s,o=t.context,t=t.zoomtype,n=this.w,r=o,l=this.xyRatios,o=this.ctx.toolbar,h=(r.startX>r.endX&&(h=r.startX,r.startX=r.endX,r.endX=h),r.startY>r.endY&&(h=r.startY,r.startY=r.endY,r.endY=h),void 0),c=void 0,c=n.globals.isRangeBar?(h=n.globals.yAxisScale[0].niceMin+r.startX*l.invertedYRatio,n.globals.yAxisScale[0].niceMin+r.endX*l.invertedYRatio):(h=n.globals.xAxisScale.niceMin+r.startX*l.xRatio,n.globals.xAxisScale.niceMin+r.endX*l.xRatio),d=[],g=[];n.config.yaxis.forEach(function(t,e){d.push(n.globals.yAxisScale[e].niceMax-l.yRatio[e]*r.startY),g.push(n.globals.yAxisScale[e].niceMax-l.yRatio[e]*r.endY)}),r.dragged&&(10<r.dragX||10<r.dragY)&&h!==c&&(n.globals.zoomEnabled?(i=M.clone(n.globals.initialConfig.yaxis),e=M.clone(n.globals.initialConfig.xaxis),n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(h=Math.floor(h),c=Math.floor(c),h<1&&(h=1,c=n.globals.dataPoints),c-h<2)&&(c=h+1),\"xy\"!==t&&\"x\"!==t||(e={min:h,max:c}),\"xy\"!==t&&\"y\"!==t||i.forEach(function(t,e){i[e].min=g[e],i[e].max=d[e]}),n.config.chart.zoom.autoScaleYaxis&&(i=new E(r.ctx).autoScaleY(r.ctx,i,{xaxis:e})),o&&(s=o.getBeforeZoomRange(e,i))&&(e=s.xaxis||e,i=s.yaxis||i),s={xaxis:e},n.config.chart.group||(s.yaxis=i),r.ctx.updateHelpers._updateOptions(s,!1,r.w.config.chart.animations.dynamicAnimation.enabled),\"function\"==typeof n.config.chart.events.zoomed&&o.zoomCallback(e,i)):n.globals.selectionEnabled&&(s=a=null,s={min:h,max:c},\"xy\"!==t&&\"y\"!==t||(a=M.clone(n.config.yaxis)).forEach(function(t,e){a[e].min=g[e],a[e].max=d[e]}),n.globals.selection=r.selection,\"function\"==typeof n.config.chart.events.selection)&&n.config.chart.events.selection(r.ctx,{xaxis:s,yaxis:a}))}},{key:\"panDragging\",value:function(t){var t=t.context,e=this.w,i=(void 0!==e.globals.lastClientPosition.x&&(i=e.globals.lastClientPosition.x-t.clientX,a=e.globals.lastClientPosition.y-t.clientY,Math.abs(i)>Math.abs(a)&&0<i?this.moveDirection=\"left\":Math.abs(i)>Math.abs(a)&&i<0?this.moveDirection=\"right\":Math.abs(a)>Math.abs(i)&&0<a?this.moveDirection=\"up\":Math.abs(a)>Math.abs(i)&&a<0&&(this.moveDirection=\"down\")),e.globals.lastClientPosition={x:t.clientX,y:t.clientY},e.globals.isRangeBar?e.globals.minY:e.globals.minX),a=e.globals.isRangeBar?e.globals.maxY:e.globals.maxX;e.config.xaxis.convertedCatToNumeric||t.panScrolled(i,a)}},{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=M.clone(i.globals.initialConfig.yaxis),o=a.xRatio,n=i.globals.minX,r=i.globals.maxX,a=(i.globals.isRangeBar&&(o=a.invertedYRatio,n=i.globals.minY,r=i.globals.maxY),\"left\"===this.moveDirection?(t=n+i.globals.gridWidth/15*o,e=r+i.globals.gridWidth/15*o):\"right\"===this.moveDirection&&(t=n-i.globals.gridWidth/15*o,e=r-i.globals.gridWidth/15*o),i.globals.isRangeBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=n,e=r),{min:t,max:e}),o=(i.config.chart.zoom.autoScaleYaxis&&(s=new E(this.ctx).autoScaleY(this.ctx,s,{xaxis:a})),{xaxis:{min:t,max:e}});i.config.chart.group||(o.yaxis=s),this.updateScrolledChart(o,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}})}}]),a}(),bt=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return n(e,[{key:\"getNearestValues\",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,t=t.clientY,s=this.w,i=i.getBoundingClientRect(),o=i.width,n=i.height,r=o/(s.globals.dataPoints-1),l=n/s.globals.dataPoints,h=this.hasBars(),a=(!s.globals.comboCharts&&!h||s.config.xaxis.convertedCatToNumeric||(r=o/s.globals.dataPoints),a-i.left-s.globals.barPadForNumericAxis),t=t-i.top,i=(a<0||t<0||o<a||n<t?(e.classList.remove(\"hovering-zoom\"),e.classList.remove(\"hovering-pan\")):s.globals.zoomEnabled?(e.classList.remove(\"hovering-pan\"),e.classList.add(\"hovering-zoom\")):s.globals.panEnabled&&(e.classList.remove(\"hovering-zoom\"),e.classList.add(\"hovering-pan\")),Math.round(a/r)),e=Math.floor(t/l),l=(h&&!s.config.xaxis.convertedCatToNumeric&&(i=Math.ceil(a/r),i-=1),null),c=[],d=[];return s.globals.seriesXvalues.forEach(function(t){c.push([t[0]+1e-6].concat(t))}),s.globals.seriesYvalues.forEach(function(t){d.push([t[0]+1e-6].concat(t))}),c=c.map(function(t){return t.filter(function(t){return M.isNumber(t)})}),d=d.map(function(t){return t.filter(function(t){return M.isNumber(t)})}),s.globals.isXNumeric&&(r=a*((h=this.ttCtx.getElGrid().getBoundingClientRect()).width/o),o=t*(h.height/n),l=(h=this.closestInMultiArray(r,o,c,d)).index,i=h.j,null!==l)&&(c=s.globals.seriesXvalues[l],i=this.closestInArray(r,c).index),s.globals.capturedSeriesIndex=null===l?-1:l,(!i||i<1)&&(i=0),s.globals.isBarHorizontal?s.globals.capturedDataPointIndex=e:s.globals.capturedDataPointIndex=i,{capturedSeries:l,j:s.globals.isBarHorizontal?e:i,hoverX:a,hoverY:t}}},{key:\"closestInMultiArray\",value:function(i,a,t,e){var s,o=this.w,n=0,r=null,l=-1,o=(1<o.globals.series.length?n=this.getFirstActiveXArray(t):r=0,t[n][0]),h=Math.abs(i-o);return t.forEach(function(t){t.forEach(function(t,e){t=Math.abs(i-t);t<h&&(h=t,l=e)})}),-1!==l&&(o=e[n][l],s=Math.abs(a-o),r=n,e.forEach(function(t,e){t=Math.abs(a-t[l]);t<s&&(s=t,r=e)})),{index:r,j:l}}},{key:\"getFirstActiveXArray\",value:function(t){for(var e=this.w,i=0,a=t.map(function(t,e){return 0<t.length?e:-1}),s=0;s<a.length;s++)if(-1!==a[s]&&-1===e.globals.collapsedSeriesIndices.indexOf(s)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(s)){i=a[s];break}return i}},{key:\"closestInArray\",value:function(t,e){for(var i=e[0],a=null,s=Math.abs(t-i),o=0;o<e.length;o++){var n=Math.abs(t-e[o]);n<s&&(s=n,a=o)}return{index:a}}},{key:\"isXoverlap\",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(t){return void 0!==t[0]});if(0<i.length)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 g(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\"),e=((t=g(t)).sort(function(t,e){t=Number(t.getAttribute(\"data:realIndex\")),e=Number(e.getAttribute(\"data:realIndex\"));return e<t?1:t<e?-1:0}),[]);return t.forEach(function(t){e.push(t.querySelector(\".apexcharts-marker\"))}),e}},{key:\"hasMarkers\",value:function(){return 0<this.getElMarkers().length}},{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 0<this.getElBars().length}},{key:\"getHoverMarkerSize\",value:function(t){var e=this.w,i=e.config.markers.hover.size;return i=void 0===i?e.globals.markers.size[t]+e.config.markers.hover.sizeOffset:i}},{key:\"toggleAllTooltipSeriesGroups\",value:function(t){for(var e=this.w,i=this.ttCtx,a=(0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-tooltip-series-group\")),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\")}}]),e}(),mt=function(){function e(t){s(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new bt(t)}return n(e,[{key:\"drawSeriesTexts\",value:function(t){var e=t.shared,e=void 0===e||e,i=t.ttItems,a=t.i,a=void 0===a?0:a,s=t.j,s=void 0===s?null:s,o=t.y1,n=t.y2,t=t.e,r=this.w,o=(void 0!==r.config.tooltip.custom?this.handleCustomTooltip({i:a,j:s,y1:o,y2:n,w:r}):this.toggleActiveInactiveSeries(e),this.getValuesToPrint({i:a,j:s})),n=(this.printLabels({i:a,j:s,values:o,ttItems:i,shared:e,e:t}),this.ttCtx.getElTooltip());this.ttCtx.tooltipRect.ttWidth=n.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=n.getBoundingClientRect().height}},{key:\"printLabels\",value:function(t){for(var s,o=this,n=t.i,r=t.j,e=t.values,l=t.ttItems,h=t.shared,c=t.e,d=this.w,g=[],u=function(t){return d.globals.seriesGoals[t]&&d.globals.seriesGoals[t][r]&&Array.isArray(d.globals.seriesGoals[t][r])},p=e.xVal,f=e.zVal,x=e.xAxisTTVal,b=\"\",m=d.globals.colors[n],i=(null!==r&&d.config.plotOptions.bar.distributed&&(m=d.globals.colors[r]),0),a=d.globals.series.length-1;i<d.globals.series.length;i++,a--)!function(t,e){var i=o.getFormatters(n),a=(b=o.getSeriesName({fn:i.yLbTitleFormatter,index:n,seriesIndex:n,j:r}),\"treemap\"===d.config.chart.type&&(b=i.yLbTitleFormatter(String(d.config.series[n].data[r].x),{series:d.globals.series,seriesIndex:n,dataPointIndex:r,w:d})),d.config.tooltip.inverseOrder?e:t);d.globals.axisCharts&&(e=function(t){return i.yLbFormatter(d.globals.series[t][r],{series:d.globals.series,seriesIndex:t,dataPointIndex:r,w:d})},h?(i=o.getFormatters(a),b=o.getSeriesName({fn:i.yLbTitleFormatter,index:a,seriesIndex:n,j:r}),m=d.globals.colors[a],s=e(a),u(a)&&(g=d.globals.seriesGoals[a][r].map(function(t){return{attrs:t,val:i.yLbFormatter(t.value,{seriesIndex:a,dataPointIndex:r,w:d})}}))):((t=null==c||null==(t=c.target)?void 0:t.getAttribute(\"fill\"))&&(m=-1!==t.indexOf(\"url\")?document.querySelector(t.substr(4).slice(0,-1)).childNodes[0].getAttribute(\"stroke\"):t),s=e(n),u(n)&&Array.isArray(d.globals.seriesGoals[n][r])&&(g=d.globals.seriesGoals[n][r].map(function(t){return{attrs:t,val:i.yLbFormatter(t.value,{seriesIndex:n,dataPointIndex:r,w:d})}})))),null===r&&(s=i.yLbFormatter(d.globals.series[n],P(P({},d),{},{seriesIndex:n,dataPointIndex:n}))),o.DOMHandling({i:n,t:a,j:r,ttItems:l,values:{val:s,goalVals:g,xVal:p,xAxisTTVal:x,zVal:f},seriesName:b,shared:h,pColor:m})}(i,a)}},{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,{yLbFormatter:a=\"function\"!=typeof a?i.globals.yLabelFormatters[0]||function(t){return t}:a,yLbTitleFormatter:e=\"function\"!=typeof e?function(t){return t}:e}}},{key:\"getSeriesName\",value:function(t){var e=t.fn,i=t.index,a=t.seriesIndex,t=t.j,s=this.w;return e(String(s.globals.seriesNames[i]),{series:s.globals.series,seriesIndex:a,dataPointIndex:t,w:s})}},{key:\"DOMHandling\",value:function(t){t.i;var e=t.t,i=t.j,a=t.ttItems,s=t.values,o=t.seriesName,n=t.shared,t=t.pColor,r=this.w,l=this.ttCtx,h=s.val,c=s.goalVals,d=s.xVal,g=s.xAxisTTVal,s=s.zVal,u=null,u=a[e].children,l=(r.config.tooltip.fillSeriesColor&&(a[e].style.backgroundColor=t,u[0].style.display=\"none\"),l.showTooltipTitle&&(null===l.tooltipTitle&&(l.tooltipTitle=r.globals.dom.baseEl.querySelector(\".apexcharts-tooltip-title\")),l.tooltipTitle.innerHTML=d),l.isXAxisTooltipEnabled&&(l.xaxisTooltipText.innerHTML=\"\"!==g?g:d),a[e].querySelector(\".apexcharts-tooltip-text-y-label\")),g=(l&&(l.innerHTML=o||\"\"),a[e].querySelector(\".apexcharts-tooltip-text-y-value\")),p=(g&&(g.innerHTML=void 0!==h?h:\"\"),u[0]&&u[0].classList.contains(\"apexcharts-tooltip-marker\")&&(r.config.tooltip.marker.fillColors&&Array.isArray(r.config.tooltip.marker.fillColors)&&(t=r.config.tooltip.marker.fillColors[e]),u[0].style.backgroundColor=t),r.config.tooltip.marker.show||(u[0].style.display=\"none\"),a[e].querySelector(\".apexcharts-tooltip-text-goals-label\")),f=a[e].querySelector(\".apexcharts-tooltip-text-goals-value\");c.length&&r.globals.seriesGoals[e]&&(d=function(){var i=\"<div >\",a=\"<div>\";c.forEach(function(t,e){i+=' <div style=\"display: flex\"><span class=\"apexcharts-tooltip-marker\" style=\"background-color: '.concat(t.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;\"></span> ').concat(t.attrs.name,\"</div>\"),a+=\"<div>\".concat(t.val,\"</div>\")}),p.innerHTML=i+\"</div>\",f.innerHTML=a+\"</div>\"},!n||r.globals.seriesGoals[e][i]&&Array.isArray(r.globals.seriesGoals[e][i]))?d():(p.innerHTML=\"\",f.innerHTML=\"\"),null!==s&&(a[e].querySelector(\".apexcharts-tooltip-text-z-label\").innerHTML=r.config.tooltip.z.title,a[e].querySelector(\".apexcharts-tooltip-text-z-value\").innerHTML=void 0!==s?s:\"\"),n&&u[0]&&(null==h||-1<r.globals.ancillaryCollapsedSeriesIndices.indexOf(e)||-1<r.globals.collapsedSeriesIndices.indexOf(e)?u[0].parentNode.style.display=\"none\":u[0].parentNode.style.display=r.config.tooltip.items.display)}},{key:\"toggleActiveInactiveSeries\",value:function(t){var e=this.w;t?this.tooltipUtil.toggleAllTooltipSeriesGroups(\"enable\"):(this.tooltipUtil.toggleAllTooltipSeriesGroups(\"disable\"),(t=e.globals.dom.baseEl.querySelector(\".apexcharts-tooltip-series-group\"))&&(t.classList.add(\"apexcharts-active\"),t.style.display=e.config.tooltip.items.display))}},{key:\"getValuesToPrint\",value:function(t){var e=t.i,t=t.j,i=this.w,a=this.ctx.series.filteredSeriesX(),s=\"\",o=\"\",n=null,r=null,l={series:i.globals.series,seriesIndex:e,dataPointIndex:t,w:i},h=i.globals.ttZFormatter,a=(null===t?r=i.globals.series[e]:i.globals.isXNumeric&&\"treemap\"!==i.config.chart.type?(s=a[e][t],0===a[e].length&&(s=a[this.tooltipUtil.getFirstActiveXArray(a)][t])):s=void 0!==i.globals.labels[t]?i.globals.labels[t]:\"\",s);return s=i.globals.isXNumeric&&\"datetime\"===i.config.xaxis.type?new x(this.ctx).xLabelFormat(i.globals.ttKeyFormatter,a,a,{i:void 0,dateFormatter:new k(this.ctx).formatDate,w:this.w}):i.globals.isBarHorizontal?i.globals.yLabelFormatters[0](a,l):i.globals.xLabelFormatter(a,l),void 0!==i.config.tooltip.x.formatter&&(s=i.globals.ttKeyFormatter(a,l)),0<i.globals.seriesZ.length&&0<i.globals.seriesZ[e].length&&(n=h(i.globals.seriesZ[e][t],i)),o=\"function\"==typeof i.config.xaxis.tooltip.formatter?i.globals.xaxisTooltipFormatter(a,l):s,{val:Array.isArray(r)?r.join(\" \"):r,xVal:Array.isArray(s)?s.join(\" \"):s,xAxisTTVal:Array.isArray(o)?o.join(\" \"):o,zVal:n}}},{key:\"handleCustomTooltip\",value:function(t){var e=t.i,i=t.j,a=t.y1,s=t.y2,t=t.w,o=this.ttCtx.getElTooltip(),n=t.config.tooltip.custom;Array.isArray(n)&&n[e]&&(n=n[e]),o.innerHTML=n({ctx:this.ctx,series:t.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:s,w:t})}}]),e}(),yt=function(){function e(t){s(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return n(e,[{key:\"moveXCrosshairs\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),t=t-i.xcrosshairsWidth/2,o=a.globals.labels.slice().length;null!==e&&(t=a.globals.gridWidth/o*e),null===s||a.globals.isBarHorizontal||(s.setAttribute(\"x\",t),s.setAttribute(\"x1\",t),s.setAttribute(\"x2\",t),s.setAttribute(\"y2\",a.globals.gridHeight),s.classList.add(\"apexcharts-active\")),(t=t<0?0:t)>a.globals.gridWidth&&(t=a.globals.gridWidth),i.isXAxisTooltipEnabled&&(o=t,\"tickWidth\"!==a.config.xaxis.crosshairs.width&&\"barWidth\"!==a.config.xaxis.crosshairs.width||(o=t+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o))}},{key:\"moveYCrosshairs\",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&T.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&T.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:\"moveXAxisTooltip\",value:function(t){var e,i=this.w,a=this.ttCtx;null!==a.xaxisTooltip&&0!==a.xcrosshairsWidth&&(a.xaxisTooltip.classList.add(\"apexcharts-active\"),e=a.xaxisOffY+i.config.xaxis.tooltip.offsetY+i.globals.translateY+1+i.config.xaxis.offsetY,t-=a.xaxisTooltip.getBoundingClientRect().width/2,isNaN(t)||(t+=i.globals.translateX,i=0,i=new T(this.ctx).getTextRects(a.xaxisTooltipText.innerHTML),a.xaxisTooltipText.style.minWidth=i.width+\"px\",a.xaxisTooltip.style.left=t+\"px\",a.xaxisTooltip.style.top=e+\"px\"))}},{key:\"moveYAxisTooltip\",value:function(t){var e=this.w,i=this.ttCtx,a=(null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-yaxistooltip\")),parseInt(i.ycrosshairsHidden.getAttribute(\"y1\"),10)),a=e.globals.translateY+a,s=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),a-=s/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add(\"apexcharts-active\"),i.yaxisTTEls[t].style.top=a+\"px\",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+\"px\"):i.yaxisTTEls[t].classList.remove(\"apexcharts-active\")}},{key:\"moveTooltip\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,o=s.getElTooltip(),n=s.tooltipRect,i=null!==i?parseFloat(i):1,t=parseFloat(t)+i+5,e=parseFloat(e)+i/2;(t=(t=t>a.globals.gridWidth/2?t-n.ttWidth-i-10:t)>a.globals.gridWidth-n.ttWidth-10?a.globals.gridWidth-n.ttWidth:t)<-20&&(t=-20),a.config.tooltip.followCursor?(i=s.getElGrid().getBoundingClientRect(),e=s.e.clientY+a.globals.translateY-i.top-n.ttHeight/2):a.globals.isBarHorizontal||(e=n.ttHeight/2+e>a.globals.gridHeight?a.globals.gridHeight-n.ttHeight+a.globals.translateY:e)<0&&(e=0),isNaN(t)||(t+=a.globals.translateX,o.style.left=t+\"px\",o.style.top=e+\"px\")}},{key:\"moveMarkers\",value:function(t,e){var i=this.w,a=this.ttCtx;if(0<i.globals.markers.size[t])for(var s=i.globals.dom.baseEl.querySelectorAll(\" .apexcharts-series[data\\\\:realIndex='\".concat(t,\"'] .apexcharts-marker\")),o=0;o<s.length;o++)parseInt(s[o].getAttribute(\"rel\"),10)===e&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(e,s[o]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:\"moveDynamicPointOnHover\",value:function(t,e){var i=this.w,a=this.ttCtx,s=0,o=0,n=i.globals.pointsArray,r=a.tooltipUtil.getHoverMarkerSize(e),l=i.config.series[e].type;l&&(\"column\"===l||\"candlestick\"===l||\"boxPlot\"===l)||(s=n[e][t][0],o=n[e][t][1]||0,(l=i.globals.dom.baseEl.querySelector(\".apexcharts-series[data\\\\:realIndex='\".concat(e,\"'] .apexcharts-series-markers circle\")))&&o<i.globals.gridHeight&&0<o&&(l.setAttribute(\"r\",r),l.setAttribute(\"cx\",s),l.setAttribute(\"cy\",o)),this.moveXCrosshairs(s),a.fixedTooltip)||this.moveTooltip(s,o,r)}},{key:\"moveDynamicPointsOnHover\",value:function(t){var e=this.ttCtx,i=e.w,a=0,s=0,o=i.globals.pointsArray,n=new f(this.ctx).getActiveConfigSeriesIndex(!0),r=e.tooltipUtil.getHoverMarkerSize(n),l=(o[n]&&(a=o[n][t][0],s=o[n][t][1]),e.tooltipUtil.getAllMarkers());if(null!==l)for(var h=0;h<i.globals.series.length;h++){var c=o[h];i.globals.comboCharts&&void 0===c&&l.splice(h,0,null),c&&c.length&&(c=o[h][t][1],l[h].setAttribute(\"cx\",a),null!==c&&!isNaN(c)&&c<i.globals.gridHeight+r&&0<c+r?(l[h]&&l[h].setAttribute(\"r\",r),l[h]&&l[h].setAttribute(\"cy\",c)):l[h]&&l[h].setAttribute(\"r\",0))}this.moveXCrosshairs(a),e.fixedTooltip||(n=s||i.globals.gridHeight,this.moveTooltip(a,n,r))}},{key:\"moveStickyTooltipOverBars\",value:function(t){var e=this.w,i=this.ttCtx,a=(e.globals.columnSeries||e.globals.series).length,s=2<=a&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1,s=(e.globals.isBarHorizontal&&(s=new f(this.ctx).getActiveConfigSeriesIndex(!1,\"desc\")+1),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,\"']\"))),o=s?parseFloat(s.getAttribute(\"cx\")):0,n=s?parseFloat(s.getAttribute(\"cy\")):0,r=s?parseFloat(s.getAttribute(\"barWidth\")):0,l=s?parseFloat(s.getAttribute(\"barHeight\")):0,h=i.getElGrid().getBoundingClientRect(),c=s.classList.contains(\"apexcharts-candlestick-area\")||s.classList.contains(\"apexcharts-boxPlot-area\");e.globals.isXNumeric?(s&&!c&&(o-=a%2!=0?r/2:0),s&&c&&e.globals.comboCharts&&(o-=r/2)):e.globals.isBarHorizontal||(o=i.xAxisTicksPositions[t-1]+i.dataPointsDividedWidth/2,isNaN(o)&&(o=i.xAxisTicksPositions[t]-i.dataPointsDividedWidth/2)),e.globals.isBarHorizontal?(n>e.globals.gridHeight/2&&(n-=i.tooltipRect.ttHeight),(n=n+e.config.grid.padding.top+l/3)+l>e.globals.gridHeight&&(n=e.globals.gridHeight-l)):e.config.tooltip.followCursor?n=i.e.clientY-h.top-i.tooltipRect.ttHeight/2:n+i.tooltipRect.ttHeight+15>e.globals.gridHeight&&(n=e.globals.gridHeight),n<-10&&(n=-10),e.globals.isBarHorizontal||this.moveXCrosshairs(o),i.fixedTooltip||(a=n||e.globals.gridHeight,this.moveTooltip(o,a))}}]),e}(),vt=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new yt(t)}return n(e,[{key:\"drawDynamicPoints\",value:function(){var t=this.w,e=new T(this.ctx),i=new w(this.ctx),a=g(a=t.globals.dom.baseEl.querySelectorAll(\".apexcharts-series\"));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 o,n,r=a[s].querySelector(\".apexcharts-series-markers-wrap\");null!==r&&(o=void 0,n=\"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||(n+=\" no-pointer-events\"),n=i.getMarkerConfig({cssClass:n,seriesIndex:Number(r.getAttribute(\"data:realIndex\"))}),(o=e.drawMarker(0,0,n)).node.setAttribute(\"default-marker-size\",0),(n=document.createElementNS(t.globals.SVGNS,\"g\")).classList.add(\"apexcharts-series-markers\"),n.appendChild(o.node),r.appendChild(n))}}},{key:\"enlargeCurrentPoint\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,s=this.w,t=(\"bubble\"!==s.config.chart.type&&this.newPointSize(t,e),e.getAttribute(\"cx\")),e=e.getAttribute(\"cy\");null!==i&&null!==a&&(t=i,e=a),this.tooltipPosition.moveXCrosshairs(t),this.fixedTooltip||(\"radar\"===s.config.chart.type&&(i=this.ttCtx.getElGrid().getBoundingClientRect(),t=this.ttCtx.e.clientX-i.left),this.tooltipPosition.moveTooltip(t,e,s.config.markers.hover.size))}},{key:\"enlargePoints\",value:function(t){for(var e=this.w,i=this.ttCtx,a=t,s=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker\"),o=e.config.markers.hover.size,n=0;n<s.length;n++){var r=s[n].getAttribute(\"rel\"),l=s[n].getAttribute(\"index\");void 0===o&&(o=e.globals.markers.size[l]+e.config.markers.hover.sizeOffset),a===parseInt(r,10)?(this.newPointSize(a,s[n]),l=s[n].getAttribute(\"cx\"),r=s[n].getAttribute(\"cy\"),this.tooltipPosition.moveXCrosshairs(l),i.fixedTooltip||this.tooltipPosition.moveTooltip(l,r,o)):this.oldPointSize(s[n])}}},{key:\"newPointSize\",value:function(t,e){var i=this.w,a=i.config.markers.hover.size,t=0===t?e.parentNode.firstChild:e.parentNode.lastChild;\"0\"!==t.getAttribute(\"default-marker-size\")&&(e=parseInt(t.getAttribute(\"index\"),10),void 0===a&&(a=i.globals.markers.size[e]+i.config.markers.hover.sizeOffset),t.setAttribute(\"r\",a=a<0?0: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\"));M.isNumber(i)&&0<=i?t[e].setAttribute(\"r\",i):t[e].setAttribute(\"r\",0)}}}]),e}(),wt=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t}return n(e,[{key:\"getAttr\",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:\"handleHeatTreeTooltip\",value:function(t){var e,i,a,s,o,n=t.e,r=t.opt,l=t.x,h=t.y,t=t.type,c=this.ttCtx,d=this.w;return n.target.classList.contains(\"apexcharts-\".concat(t,\"-rect\"))&&(t=this.getAttr(n,\"i\"),e=this.getAttr(n,\"j\"),i=this.getAttr(n,\"cx\"),a=this.getAttr(n,\"cy\"),s=this.getAttr(n,\"width\"),o=this.getAttr(n,\"height\"),c.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:t,j:e,shared:!1,e:n}),d.globals.capturedSeriesIndex=t,d.globals.capturedDataPointIndex=e,l=i+c.tooltipRect.ttWidth/2+s,h=a+c.tooltipRect.ttHeight/2-o/2,c.tooltipPosition.moveXCrosshairs(i+s/2),l>d.globals.gridWidth/2&&(l=i-c.tooltipRect.ttWidth/2+s),c.w.config.tooltip.followCursor)&&(r=d.globals.dom.elWrap.getBoundingClientRect(),l=d.globals.clientX-r.left-(l>d.globals.gridWidth/2?c.tooltipRect.ttWidth:0),h=d.globals.clientY-r.top-(h>d.globals.gridHeight/2?c.tooltipRect.ttHeight:0)),{x:l,y:h}}},{key:\"handleMarkerTooltip\",value:function(t){var e,i,a,s,o,n,r=t.e,l=t.opt,h=t.x,t=t.y,c=this.w,d=this.ttCtx;return r.target.classList.contains(\"apexcharts-marker\")&&(e=parseInt(l.paths.getAttribute(\"cx\"),10),i=parseInt(l.paths.getAttribute(\"cy\"),10),a=parseFloat(l.paths.getAttribute(\"val\")),o=parseInt(l.paths.getAttribute(\"rel\"),10),n=parseInt(l.paths.parentNode.parentNode.parentNode.getAttribute(\"rel\"),10)-1,d.intersect&&(s=M.findAncestor(l.paths,\"apexcharts-series\"))&&(n=parseInt(s.getAttribute(\"data:realIndex\"),10)),d.tooltipLabels.drawSeriesTexts({ttItems:l.ttItems,i:n,j:o,shared:!d.showOnIntersect&&c.config.tooltip.shared,e:r}),\"mouseup\"===r.type&&d.markerClick(r,n,o),c.globals.capturedSeriesIndex=n,c.globals.capturedDataPointIndex=o,h=e,t=i+c.globals.translateY-1.4*d.tooltipRect.ttHeight,d.w.config.tooltip.followCursor&&(s=d.getElGrid().getBoundingClientRect(),t=d.e.clientY+c.globals.translateY-s.top),d.marker.enlargeCurrentPoint(o,l.paths,h,t=a<0?i:t)),{x:h,y:t}}},{key:\"handleBarTooltip\",value:function(t){var e,i=t.e,t=t.opt,a=this.w,s=this.ttCtx,o=s.getElTooltip(),n=0,r=0,l=0,i=this.getBarTooltipXY({e:i,opt:t}),h=i.i,c=i.barHeight,d=i.j,i=(a.globals.capturedSeriesIndex=h,a.globals.capturedDataPointIndex=d,a.globals.isBarHorizontal&&s.tooltipUtil.hasBars()||!a.config.tooltip.shared?(r=i.x,l=i.y,e=Array.isArray(a.config.stroke.width)?a.config.stroke.width[h]:a.config.stroke.width,n=r):a.globals.comboCharts||a.config.tooltip.shared||(n/=2),isNaN(l)?l=a.globals.svgHeight-s.tooltipRect.ttHeight:l<0&&(l=0),parseInt(t.paths.parentNode.getAttribute(\"data:realIndex\"),10)),t=a.globals.isMultipleYAxis?a.config.yaxis[i]&&a.config.yaxis[i].reversed:a.config.yaxis[0].reversed;r+s.tooltipRect.ttWidth>a.globals.gridWidth&&!t?r-=s.tooltipRect.ttWidth:r<0&&(r=0),s.w.config.tooltip.followCursor&&(i=s.getElGrid().getBoundingClientRect(),l=s.e.clientY-i.top),null===s.tooltip&&(s.tooltip=a.globals.dom.baseEl.querySelector(\".apexcharts-tooltip\")),a.config.tooltip.shared||(0<a.globals.comboBarCount?s.tooltipPosition.moveXCrosshairs(n+e/2):s.tooltipPosition.moveXCrosshairs(n)),!s.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&s.tooltipUtil.hasBars())&&(t&&(r-=s.tooltipRect.ttWidth)<0&&(r=0),!t||a.globals.isBarHorizontal&&s.tooltipUtil.hasBars()||(l=l+c-2*(a.globals.series[h][d]<0?c:0)),s.tooltipRect.ttHeight+l>a.globals.gridHeight?l=a.globals.gridHeight-s.tooltipRect.ttHeight+a.globals.translateY:(l=l+a.globals.translateY-s.tooltipRect.ttHeight/2)<0&&(l=0),o.style.left=r+a.globals.translateX+\"px\",o.style.top=l+\"px\")}},{key:\"getBarTooltipXY\",value:function(t){var e,i,a,s,o,n,r,l,h=t.e,t=t.opt,c=this.w,d=null,g=this.ttCtx,u=0,p=0,f=0,x=0,b=0,m=h.target.classList;return(m.contains(\"apexcharts-bar-area\")||m.contains(\"apexcharts-candlestick-area\")||m.contains(\"apexcharts-boxPlot-area\")||m.contains(\"apexcharts-rangebar-area\"))&&(a=(m=h.target).getBoundingClientRect(),e=t.elGrid.getBoundingClientRect(),i=a.height,b=a.height,a=a.width,s=parseInt(m.getAttribute(\"cx\"),10),o=parseInt(m.getAttribute(\"cy\"),10),x=parseFloat(m.getAttribute(\"barWidth\")),n=(\"touchmove\"===h.type?h.touches[0]:h).clientX,d=parseInt(m.getAttribute(\"j\"),10),u=parseInt(m.parentNode.getAttribute(\"rel\"),10)-1,r=m.getAttribute(\"data-range-y1\"),l=m.getAttribute(\"data-range-y2\"),c.globals.comboCharts&&(u=parseInt(m.parentNode.getAttribute(\"data:realIndex\"),10)),g.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:u,j:d,y1:r?parseInt(r,10):null,y2:l?parseInt(l,10):null,shared:!g.showOnIntersect&&c.config.tooltip.shared,e:h}),f=c.config.tooltip.followCursor?c.globals.isBarHorizontal?(p=n-e.left+15,o-g.dataPointsDividedHeight+i/2-g.tooltipRect.ttHeight/2):(p=c.globals.isXNumeric?s-a/2:s-g.dataPointsDividedWidth+a/2,h.clientY-e.top-g.tooltipRect.ttHeight/2-15):c.globals.isBarHorizontal?((p=s)<g.xyRatios.baseLineInvertedY&&(p=s-g.tooltipRect.ttWidth),o-g.dataPointsDividedHeight+i/2-g.tooltipRect.ttHeight/2):(p=c.globals.isXNumeric?s-a/2:s-g.dataPointsDividedWidth+a/2,o)),{x:p,y:f,barHeight:b,barWidth:x,i:u,j:d}}}]),e}(),kt=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t}return n(e,[{key:\"drawXaxisTooltip\",value:function(){var t=this.w,e=this.ttCtx,i=\"bottom\"===t.config.xaxis.position,i=(e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3,i?\"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom\":\"apexcharts-xaxistooltip apexcharts-xaxistooltip-top\"),a=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&null===t.globals.dom.baseEl.querySelector(\".apexcharts-xaxistooltip\")&&(e.xaxisTooltip=document.createElement(\"div\"),e.xaxisTooltip.setAttribute(\"class\",i+\" apexcharts-theme-\"+t.config.tooltip.theme),a.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 s=this.w,e=this.ttCtx,t=0;t<s.config.yaxis.length;t++)!function(i){var t=s.config.yaxis[i].opposite||s.config.yaxis[i].crosshairs.opposite,a=(e.yaxisOffX=t?s.globals.gridWidth+1:1,\"apexcharts-yaxistooltip apexcharts-yaxistooltip-\".concat(i,t?\" apexcharts-yaxistooltip-right\":\" apexcharts-yaxistooltip-left\")),t=(s.globals.yAxisSameScaleIndices.map(function(t,e){t.map(function(t,e){e===i&&(a+=s.config.yaxis[e].show?\" \":\" apexcharts-yaxistooltip-hidden\")})}),s.globals.dom.elWrap);null===s.globals.dom.baseEl.querySelector(\".apexcharts-yaxistooltip apexcharts-yaxistooltip-\".concat(i))&&(e.yaxisTooltip=document.createElement(\"div\"),e.yaxisTooltip.setAttribute(\"class\",a+\" apexcharts-theme-\"+s.config.tooltip.theme),t.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]))}(t)}},{key:\"setXCrosshairWidth\",value:function(){var t,e=this.w,i=this.ttCtx,a=i.getElXCrosshairs();i.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts?null!==(t=e.globals.dom.baseEl.querySelector(\".apexcharts-bar-area\"))&&\"barWidth\"===e.config.xaxis.crosshairs.width?(t=parseFloat(t.getAttribute(\"barWidth\")),i.xcrosshairsWidth=t):\"tickWidth\"===e.config.xaxis.crosshairs.width&&(t=e.globals.labels.length,i.xcrosshairsWidth=e.globals.gridWidth/t):\"tickWidth\"===e.config.xaxis.crosshairs.width?(t=e.globals.labels.length,i.xcrosshairsWidth=e.globals.gridWidth/t):\"barWidth\"===e.config.xaxis.crosshairs.width&&(null!==(t=e.globals.dom.baseEl.querySelector(\".apexcharts-bar-area\"))?(t=parseFloat(t.getAttribute(\"barWidth\")),i.xcrosshairsWidth=t):i.xcrosshairsWidth=1),e.globals.isBarHorizontal&&(i.xcrosshairsWidth=0),null!==a&&0<i.xcrosshairsWidth&&a.setAttribute(\"width\",i.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,s,o=this.ttCtx,n=this.w,r=n.globals.yLabelFormatters[t];o.yaxisTooltips[t]&&(i=(e-(a=o.getElGrid().getBoundingClientRect()).top)*i.yRatio[t],s=n.globals.maxYArr[t]-n.globals.minYArr[t],n=n.globals.minYArr[t]+(s-i),o.tooltipPosition.moveYCrosshairs(e-a.top),o.yaxisTooltipText[t].innerHTML=r(n),o.tooltipPosition.moveYAxisTooltip(t))}}]),e}(),At=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new bt(this),this.tooltipLabels=new mt(this),this.tooltipPosition=new yt(this),this.marker=new vt(this),this.intersect=new wt(this),this.axesTooltip=new kt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!t.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return n(e,[{key:\"getElTooltip\",value:function(t){return(t=t||this).w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(\".apexcharts-tooltip\"):null}},{key:\"getElXCrosshairs\",value:function(){return this.w.globals.dom.baseEl.querySelector(\".apexcharts-xcrosshairs\")}},{key:\"getElGrid\",value:function(){return this.w.globals.dom.baseEl.querySelector(\".apexcharts-grid\")}},{key:\"drawTooltip\",value:function(t){var e,i=this.w,t=(this.xyRatios=t,this.isXAxisTooltipEnabled=i.config.xaxis.tooltip.enabled&&i.globals.axisCharts,this.yaxisTooltips=i.config.yaxis.map(function(t,e){return!!(t.show&&t.tooltip.enabled&&i.globals.axisCharts)}),this.allTooltipSeriesGroups=[],i.globals.axisCharts||(this.showTooltipTitle=!1),document.createElement(\"div\"));t.classList.add(\"apexcharts-tooltip\"),i.config.tooltip.cssClass&&t.classList.add(i.config.tooltip.cssClass),t.classList.add(\"apexcharts-theme-\".concat(this.tConfig.theme)),i.globals.dom.elWrap.appendChild(t),i.globals.axisCharts&&(this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair(),e=new z(this.ctx),this.xAxisTicksPositions=e.getXAxisTicksPositions()),!i.globals.comboCharts&&!this.tConfig.intersect&&\"rangeBar\"!==i.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==i.config.markers.size&&0!==i.globals.markers.largestSize||this.marker.drawDynamicPoints(this),i.globals.collapsedSeries.length!==i.globals.series.length&&(this.dataPointsDividedHeight=i.globals.gridHeight/i.globals.dataPoints,this.dataPointsDividedWidth=i.globals.gridWidth/i.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement(\"div\"),this.tooltipTitle.classList.add(\"apexcharts-tooltip-title\"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||i.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,t.appendChild(this.tooltipTitle)),e=i.globals.series.length,(i.globals.xyCharts||i.globals.comboCharts)&&this.tConfig.shared&&(e=this.showOnIntersect?1:i.globals.series.length),this.legendLabels=i.globals.dom.baseEl.querySelectorAll(\".apexcharts-legend-text\"),this.ttItems=this.createTTElements(e),this.addSVGEvents())}},{key:\"createTTElements\",value:function(s){for(var o=this,n=this.w,r=[],l=this.getElTooltip(),t=0;t<s;t++)!function(t){var e=document.createElement(\"div\"),i=(e.classList.add(\"apexcharts-tooltip-series-group\"),e.style.order=n.config.tooltip.inverseOrder?s-t:t+1,o.tConfig.shared&&o.tConfig.enabledOnSeries&&Array.isArray(o.tConfig.enabledOnSeries)&&o.tConfig.enabledOnSeries.indexOf(t)<0&&e.classList.add(\"apexcharts-tooltip-series-group-hidden\"),document.createElement(\"span\")),a=(i.classList.add(\"apexcharts-tooltip-marker\"),i.style.backgroundColor=n.globals.colors[t],e.appendChild(i),document.createElement(\"div\"));a.classList.add(\"apexcharts-tooltip-text\"),a.style.fontFamily=o.tConfig.style.fontFamily||n.config.chart.fontFamily,a.style.fontSize=o.tConfig.style.fontSize,[\"y\",\"goals\",\"z\"].forEach(function(t){var e=document.createElement(\"div\"),i=(e.classList.add(\"apexcharts-tooltip-\".concat(t,\"-group\")),document.createElement(\"span\")),i=(i.classList.add(\"apexcharts-tooltip-text-\".concat(t,\"-label\")),e.appendChild(i),document.createElement(\"span\"));i.classList.add(\"apexcharts-tooltip-text-\".concat(t,\"-value\")),e.appendChild(i),a.appendChild(e)}),e.appendChild(a),l.appendChild(e),r.push(e)}(t);return r}},{key:\"addSVGEvents\",value:function(){var t,e=this.w,i=e.config.chart.type,a=this.getElTooltip(),s=!(\"bar\"!==i&&\"candlestick\"!==i&&\"boxPlot\"!==i&&\"rangeBar\"!==i),o=\"area\"===i||\"line\"===i||\"scatter\"===i||\"bubble\"===i||\"radar\"===i,n=e.globals.dom.Paper.node,r=this.getElGrid(),l=(r&&(this.seriesBound=r.getBoundingClientRect()),[]),h=[],r={hoverArea:n,elGrid:r,tooltipEl:a,tooltipY:l,tooltipX:h,ttItems:this.ttItems};if(e.globals.axisCharts&&(o?t=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-series[data\\\\:longestSeries='true'] .apexcharts-marker\"):s?t=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area\"):\"heatmap\"!==i&&\"treemap\"!==i||(t=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap\")),t)&&t.length)for(var c=0;c<t.length;c++)l.push(t[c].getAttribute(\"cy\")),h.push(t[c].getAttribute(\"cx\"));e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||s&&this.tooltipUtil.hasBars()&&this.tConfig.shared?this.addPathsEventListeners([n],r):s&&!e.globals.comboCharts||o&&this.showOnIntersect?this.addDatapointEventsListeners(r):e.globals.axisCharts&&\"heatmap\"!==i&&\"treemap\"!==i||(a=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-series\"),this.addPathsEventListeners(a,r)),this.showOnIntersect&&(0<(n=e.globals.dom.baseEl.querySelectorAll(\".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker\")).length&&this.addPathsEventListeners(n,r),this.tooltipUtil.hasBars())&&!this.tConfig.shared&&this.addDatapointEventsListeners(r)}},{key:\"drawFixedTooltipRect\",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,i=i.height+10,s=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,n=this.tConfig.fixed.position.toLowerCase();return-1<n.indexOf(\"right\")&&(s=s+t.globals.svgWidth-a+10),-1<n.indexOf(\"bottom\")&&(o=o+t.globals.svgHeight-i-10),e.style.left=s+\"px\",e.style.top=o+\"px\",{x:s,y:o,ttWidth:a,ttHeight:i}}},{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(a,t){for(var s=this,e=0;e<a.length;e++)!function(e){var i={paths:a[e],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};[\"mousemove\",\"mouseup\",\"touchmove\",\"mouseout\",\"touchend\"].map(function(t){return a[e].addEventListener(t,s.onSeriesHover.bind(s,i),{capture:!1,passive:!0})})}(e)}},{key:\"onSeriesHover\",value:function(t,e){var i=this,a=Date.now()-this.lastHoverTime;100<=a?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},100-a))}},{key:\"seriesHover\",value:function(i,a){var s=this,t=(this.lastHoverTime=Date.now(),[]),e=this.w;e.config.chart.group&&(t=this.ctx.getGroupedCharts()),e.globals.axisCharts&&(e.globals.minX===-1/0&&e.globals.maxX===1/0||0===e.globals.dataPoints)||(t.length?t.forEach(function(t){var e=s.getElTooltip(t),e={paths:i.paths,tooltipEl:e,tooltipY:i.tooltipY,tooltipX:i.tooltipX,elGrid:i.elGrid,hoverArea:i.hoverArea,ttItems:t.w.globals.tooltip.ttItems};t.w.globals.minX===s.w.globals.minX&&t.w.globals.maxX===s.w.globals.maxX&&t.w.globals.tooltip.seriesHoverByContext({chartCtx:t,ttCtx:t.w.globals.tooltip,opt:e,e:a})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:i,e:a}))}},{key:\"seriesHoverByContext\",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,t=t.e,s=e.w,o=this.getElTooltip();o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=t,!i.tooltipUtil.hasBars()||s.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new f(e).toggleSeriesOnHover(t,t.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),s.globals.axisCharts?i.axisChartsTooltips({e:t,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:t,opt:a,tooltipRect:i.tooltipRect}))}},{key:\"axisChartsTooltips\",value:function(t){var e=t.e,t=t.opt,i=this.w,a=t.elGrid.getBoundingClientRect(),s=(\"touchmove\"===e.type?e.touches[0]:e).clientX,o=(\"touchmove\"===e.type?e.touches[0]:e).clientY;if(this.clientY=o,this.clientX=s,i.globals.capturedSeriesIndex=-1,i.globals.capturedDataPointIndex=-1,o<a.top||o>a.top+a.height)this.handleMouseOut(t);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared){a=parseInt(t.paths.getAttribute(\"index\"),10);if(this.tConfig.enabledOnSeries.indexOf(a)<0)return void this.handleMouseOut(t)}var a=this.getElTooltip(),n=this.getElXCrosshairs(),r=i.globals.xyCharts||\"bar\"===i.config.chart.type&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars();if(\"mousemove\"===e.type||\"touchmove\"===e.type||\"mouseup\"===e.type){if(i.globals.collapsedSeries.length+i.globals.ancillaryCollapsedSeries.length!==i.globals.series.length){null!==n&&n.classList.add(\"apexcharts-active\");var l,h,n=this.yaxisTooltips.filter(function(t){return!0===t});if(null!==this.ycrosshairs&&n.length&&this.ycrosshairs.classList.add(\"apexcharts-active\"),r&&!this.showOnIntersect?this.handleStickyTooltip(e,s,o,t):\"heatmap\"===i.config.chart.type||\"treemap\"===i.config.chart.type?(l=(n=this.intersect.handleHeatTreeTooltip({e:e,opt:t,x:l,y:h,type:i.config.chart.type})).x,h=n.y,a.style.left=l+\"px\",a.style.top=h+\"px\"):(this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:e,opt:t}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:e,opt:t,x:l,y:h})),this.yaxisTooltips.length)for(var c=0;c<i.config.yaxis.length;c++)this.axesTooltip.drawYaxisTooltipText(c,o,this.xyRatios);t.tooltipEl.classList.add(\"apexcharts-active\")}}else\"mouseout\"!==e.type&&\"touchend\"!==e.type||this.handleMouseOut(t)}}},{key:\"nonAxisChartsTooltips\",value:function(t){var e=t.e,i=t.opt,t=t.tooltipRect,a=this.w,s=i.paths.getAttribute(\"rel\"),o=this.getElTooltip(),n=a.globals.dom.elWrap.getBoundingClientRect();\"mousemove\"===e.type||\"touchmove\"===e.type?(o.classList.add(\"apexcharts-active\"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(s,10)-1,shared:!1}),i=a.globals.clientX-n.left-t.ttWidth/2,n=a.globals.clientY-n.top-t.ttHeight-10,o.style.left=i+\"px\",o.style.top=n+\"px\",a.config.legend.tooltipHoverFormatter&&(i=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[t=s-1].getAttribute(\"data:default-text\"),{seriesIndex:t,dataPointIndex:t,w:a}),this.legendLabels[t].innerHTML=i)):\"mouseout\"!==e.type&&\"touchend\"!==e.type||(o.classList.remove(\"apexcharts-active\"),a.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,e=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:e,clientY:i}),i=e.j,o=e.capturedSeries,n=a.elGrid.getBoundingClientRect();e.hoverX<0||e.hoverX>n.width?this.handleMouseOut(a):null!==o?this.handleStickyCapturedSeries(t,o,a,i):(this.tooltipUtil.isXoverlap(i)||s.globals.isBarHorizontal)&&this.create(t,this,0,i,a.ttItems)}},{key:\"handleStickyCapturedSeries\",value:function(t,e,i,a){var s=this.w;if(!this.tConfig.shared&&null===s.globals.series[e][a])return void 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 T(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.isXAxisTooltipEnabled&&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 o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,n=this.w,t=(\"mouseup\"===t.type&&this.markerClick(t,i,a),null===o&&(o=this.tConfig.shared),this.tooltipUtil.hasMarkers()),r=this.tooltipUtil.getElBars();if(n.config.legend.tooltipHoverFormatter){var l=n.config.legend.tooltipHoverFormatter,h=Array.from(this.legendLabels);h.forEach(function(t){var e=t.getAttribute(\"data:default-text\");t.innerHTML=decodeURIComponent(e)});for(var c=0;c<h.length;c++){var d=h[c],g=parseInt(d.getAttribute(\"i\"),10),u=decodeURIComponent(d.getAttribute(\"data:default-text\")),p=l(u,{seriesIndex:o?g:i,dataPointIndex:a,w:n});if(o)d.innerHTML=n.globals.collapsedSeriesIndices.indexOf(g)<0?p:u;else if(d.innerHTML=g===i?p:u,i===g)break}}if(o){if(e.tooltipLabels.drawSeriesTexts({ttItems:s,i:i,j:a,shared:!this.showOnIntersect&&this.tConfig.shared}),t&&(0<n.globals.markers.largestSize?e.marker.enlargePoints(a):e.tooltipPosition.moveDynamicPointsOnHover(a)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(r),0<this.barSeriesHeight)){var f=new T(this.ctx),x=n.globals.dom.Paper.select(\".apexcharts-bar-area[j='\".concat(a,\"']\"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a);for(var b=0;b<x.length;b++)f.pathMouseEnter(x[b])}}else e.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:s,i:i,j:a}),this.tooltipUtil.hasBars()&&e.tooltipPosition.moveStickyTooltipOverBars(a),t&&e.tooltipPosition.moveMarkers(i,a)}}]),e}(),St=function(){o(e,L);var t=h(e);function e(){return s(this,e),t.apply(this,arguments)}return n(e,[{key:\"draw\",value:function(m,y){var v=this,w=this.w,t=(this.graphics=new T(this.ctx),this.bar=new L(this.ctx,this.xyRatios),new I(this.ctx,w));m=t.getLogSeries(m),this.yRatio=t.getLogYRatios(this.yRatio),this.barHelpers.initVariables(m),\"100%\"===w.config.chart.stackType&&(m=w.globals.seriesPercent.slice()),this.series=m,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 e=0;e<m.length;e++)0<m[e].length&&(this.totalItems+=m[e].length);for(var k=this.graphics.group({class:\"apexcharts-bar-series apexcharts-plot-series\"}),A=0,S=0,i=0,a=0;i<m.length;i++,a++)!function(t,e){var i,a,s,o,n=[],r=[],l=w.globals.comboCharts?y[t]:t,h=(1<v.yRatio.length&&(v.yaxisIndex=l),v.isReversed=w.config.yaxis[v.yaxisIndex]&&w.config.yaxis[v.yaxisIndex].reversed,v.graphics.group({class:\"apexcharts-series\",seriesName:M.escapeString(w.globals.seriesNames[l]),rel:t+1,\"data:realIndex\":l})),c=(v.ctx.series.addCollapsedClassToSeries(h,l),v.graphics.group({class:\"apexcharts-datalabels\",\"data:realIndex\":l})),d=0,g=0,u=v.initialPositions(A,S,void 0,void 0,void 0,void 0);S=u.y,d=u.barHeight,a=u.yDivision,o=u.zeroW,A=u.x,g=u.barWidth,i=u.xDivision,s=u.zeroH,v.yArrj=[],v.yArrjF=[],v.yArrjVal=[],v.xArrj=[],v.xArrjF=[],v.xArrjVal=[],1===v.prevY.length&&v.prevY[0].every(function(t){return isNaN(t)})&&(v.prevY[0]=v.prevY[0].map(function(t){return s}),v.prevYF[0]=v.prevYF[0].map(function(t){return 0}));for(var p=0;p<w.globals.dataPoints;p++)var f=v.barHelpers.getStrokeWidth(t,p,l),x={indexes:{i:t,j:p,realIndex:l,bc:e},strokeWidth:f,x:A,y:S,elSeries:h},b=null,x=(v.isHorizontal?(b=v.drawStackedBarPaths(P(P({},x),{},{zeroW:o,barHeight:d,yDivision:a})),g=v.series[t][p]/v.invertedYRatio):(b=v.drawStackedColumnPaths(P(P({},x),{},{xDivision:i,barWidth:g,zeroH:s})),d=v.series[t][p]/v.yRatio[v.yaxisIndex]),S=b.y,A=b.x,n.push(A),r.push(S),v.barHelpers.getPathFillColor(m,t,p,l)),h=v.renderSeries({realIndex:l,pathFill:x,j:p,i:t,pathFrom:b.pathFrom,pathTo:b.pathTo,strokeWidth:f,elSeries:h,x:A,y:S,series:m,barHeight:d,barWidth:g,elDataLabelsWrap:c,type:\"bar\",visibleSeries:0});w.globals.seriesXvalues[l]=n,w.globals.seriesYvalues[l]=r,v.prevY.push(v.yArrj),v.prevYF.push(v.yArrjF),v.prevYVal.push(v.yArrjVal),v.prevX.push(v.xArrj),v.prevXF.push(v.xArrjF),v.prevXVal.push(v.xArrjVal),k.add(h)}(i,a);return k}},{key:\"initialPositions\",value:function(t,e,i,a,s,o){var n,r,l=this.w;return this.isHorizontal?(n=(n=a=l.globals.gridHeight/l.globals.dataPoints)*parseInt(l.config.plotOptions.bar.barHeight,10)/100,o=this.baseLineInvertedY+l.globals.padHorizontal+(this.isReversed?l.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(a-n)/2):(r=i=l.globals.gridWidth/l.globals.dataPoints,r=l.globals.isXNumeric&&1<l.globals.dataPoints?(i=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:r*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-r)/2),{x:t,y:e,yDivision:a,xDivision:i,barHeight:n,barWidth:r,zeroH:s,zeroW:o}}},{key:\"drawStackedBarPaths\",value:function(t){for(var e=t.indexes,i=t.barHeight,a=t.strokeWidth,s=t.zeroW,o=t.x,n=t.y,r=t.yDivision,t=t.elSeries,l=this.w,h=n,c=e.i,d=e.j,g=0,u=0;u<this.prevXF.length;u++)g+=this.prevXF[u][d];var p=0<c?(p=s,this.prevXVal[c-1][d]<0?p=0<=this.series[c][d]?this.prevX[c-1][d]+g-2*(this.isReversed?g:0):this.prevX[c-1][d]:0<=this.prevXVal[c-1][d]&&(p=0<=this.series[c][d]?this.prevX[c-1][d]:this.prevX[c-1][d]-g+2*(this.isReversed?g:0)),p):s,o=null===this.series[c][d]?p:p+this.series[c][d]/this.invertedYRatio-2*(this.isReversed?this.series[c][d]/this.invertedYRatio:0),s=this.barHelpers.getBarpaths({barYPosition:h,barHeight:i,x1:p,x2:o,strokeWidth:a,series:this.series,realIndex:e.realIndex,i:c,j:d,w:l});return this.barHelpers.barBackground({j:d,i:c,y1:h,y2:i,elSeries:t}),{pathTo:s.pathTo,pathFrom:s.pathFrom,x:o,y:n+=r}}},{key:\"drawStackedColumnPaths\",value:function(t){for(var e=t.indexes,i=t.x,a=(t.y,t.xDivision),s=t.barWidth,o=t.zeroH,t=(t.strokeWidth,t.elSeries),n=this.w,r=e.i,l=e.j,h=e.bc,c=i=n.globals.isXNumeric?((n.globals.seriesX[r][l]||0)-n.globals.minX)/this.xRatio-s/2:i,d=0,g=0;g<this.prevYF.length;g++)d+=isNaN(this.prevYF[g][l])?0:this.prevYF[g][l];if(0<r&&!n.globals.isXNumeric||0<r&&n.globals.isXNumeric&&n.globals.seriesX[r-1][l]===n.globals.seriesX[r][l]){var u,p,f=Math.min(this.yRatio.length+1,r+1);if(void 0!==this.prevY[r-1])for(var x=1;x<f;x++)if(!isNaN(this.prevY[r-x][l])){p=this.prevY[r-x][l];break}for(var b=1;b<f;b++){if(this.prevYVal[r-b][l]<0){u=0<=this.series[r][l]?p-d+2*(this.isReversed?d:0):p;break}if(0<=this.prevYVal[r-b][l]){u=0<=this.series[r][l]?p:p+d-2*(this.isReversed?d:0);break}}void 0===u&&(u=n.globals.gridHeight),m=this.prevYF[0].every(function(t){return 0===t})&&this.prevYF.slice(1,r).every(function(t){return t.every(function(t){return isNaN(t)})})?n.globals.gridHeight-o:u}else m=n.globals.gridHeight-o;var o=m-this.series[r][l]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[r][l]/this.yRatio[this.yaxisIndex]:0),m=this.barHelpers.getColumnPaths({barXPosition:c,barWidth:s,y1:m,y2:o,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:e.realIndex,i:r,j:l,w:n});return this.barHelpers.barBackground({bc:h,j:l,i:r,x1:c,x2:s,elSeries:t}),i+=a,{pathTo:m.pathTo,pathFrom:m.pathFrom,x:n.globals.isXNumeric?i-a:i,y:o}}}]),e}(),Ct=function(){o(e,L);var t=h(e);function e(){return s(this,e),t.apply(this,arguments)}return n(e,[{key:\"draw\",value:function(m,s){for(var y=this,v=this.w,o=new T(this.ctx),w=new A(this.ctx),t=(this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=v.config.plotOptions.bar.horizontal,new I(this.ctx,v)),k=(m=t.getLogSeries(m),this.series=m,this.yRatio=t.getLogYRatios(this.yRatio),this.barHelpers.initVariables(m),o.group({class:\"apexcharts-\".concat(v.config.chart.type,\"-series apexcharts-plot-series\")})),e=function(n){y.isBoxPlot=\"boxPlot\"===v.config.chart.type||\"boxPlot\"===v.config.series[n].type;var r=void 0,l=void 0,e=[],i=[],h=v.globals.comboCharts?s[n]:n,c=o.group({class:\"apexcharts-series\",seriesName:M.escapeString(v.globals.seriesNames[h]),rel:n+1,\"data:realIndex\":h}),t=(y.ctx.series.addCollapsedClassToSeries(c,h),0<m[n].length&&(y.visibleI=y.visibleI+1),1<y.yRatio.length&&(y.yaxisIndex=h),y.barHelpers.initialPositions()),l=t.y,d=t.barHeight,g=t.yDivision,u=t.zeroW,r=t.x,p=t.barWidth,f=t.xDivision,x=t.zeroH;i.push(r+p/2);for(var b=o.group({class:\"apexcharts-datalabels\",\"data:realIndex\":h}),a=0;a<v.globals.dataPoints;a++)!function(a){var s=y.barHelpers.getStrokeWidth(n,a,h),o=null,t={indexes:{i:n,j:a,realIndex:h},x:r,y:l,strokeWidth:s,elSeries:c},o=y.isHorizontal?y.drawHorizontalBoxPaths(P(P({},t),{},{yDivision:g,barHeight:d,zeroW:u})):y.drawVerticalBoxPaths(P(P({},t),{},{xDivision:f,barWidth:p,zeroH:x}));l=o.y,r=o.x,0<a&&i.push(r+p/2),e.push(l),o.pathTo.forEach(function(t,e){var i=!y.isBoxPlot&&y.candlestickOptions.wick.useFillColor?o.color[e]:v.globals.stroke.colors[n],e=w.fillPath({seriesNumber:h,dataPointIndex:a,color:o.color[e],value:m[n][a]});y.renderSeries({realIndex:h,pathFill:e,lineFill:i,j:a,i:n,pathFrom:o.pathFrom,pathTo:t,strokeWidth:s,elSeries:c,x:r,y:l,series:m,barHeight:d,barWidth:p,elDataLabelsWrap:b,visibleSeries:y.visibleI,type:v.config.chart.type})})}(a);v.globals.seriesXvalues[h]=i,v.globals.seriesYvalues[h]=e,k.add(c)},i=0;i<m.length;i++)e(i);return k}},{key:\"drawVerticalBoxPaths\",value:function(t){var e=t.indexes,i=t.x,a=(t.y,t.xDivision),s=t.barWidth,o=t.zeroH,t=t.strokeWidth,n=this.w,r=new T(this.ctx),l=e.i,h=e.j,c=!0,d=n.config.plotOptions.candlestick.colors.upward,g=n.config.plotOptions.candlestick.colors.downward,u=\"\",p=(this.isBoxPlot&&(u=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]),this.yRatio[this.yaxisIndex]),e=e.realIndex,f=this.getOHLCValue(e,h),x=o,b=o,m=(f.o>f.c&&(c=!1),Math.min(f.o,f.c)),y=Math.max(f.o,f.c),v=f.m,w=(i=n.globals.isXNumeric?(n.globals.seriesX[e][h]-n.globals.minX)/this.xRatio-s/2:i)+s*this.visibleI,l=(void 0===this.series[l][h]||null===this.series[l][h]?y=m=o:(m=o-m/p,y=o-y/p,x=o-f.h/p,b=o-f.l/p,v=o-f.m/p),r.move(w,o)),f=r.move(w+s/2,m);return 0<n.globals.previousPaths.length&&(f=this.getPreviousPath(e,h,!0)),l=this.isBoxPlot?[r.move(w,m)+r.line(w+s/2,m)+r.line(w+s/2,x)+r.line(w+s/4,x)+r.line(w+s-s/4,x)+r.line(w+s/2,x)+r.line(w+s/2,m)+r.line(w+s,m)+r.line(w+s,v)+r.line(w,v)+r.line(w,m+t/2),r.move(w,v)+r.line(w+s,v)+r.line(w+s,y)+r.line(w+s/2,y)+r.line(w+s/2,b)+r.line(w+s-s/4,b)+r.line(w+s/4,b)+r.line(w+s/2,b)+r.line(w+s/2,y)+r.line(w,y)+r.line(w,v)+\"z\"]:[r.move(w,y)+r.line(w+s/2,y)+r.line(w+s/2,x)+r.line(w+s/2,y)+r.line(w+s,y)+r.line(w+s,m)+r.line(w+s/2,m)+r.line(w+s/2,b)+r.line(w+s/2,m)+r.line(w,m)+r.line(w,y-t/2)],f+=r.move(w,m),n.globals.isXNumeric||(i+=a),{pathTo:l,pathFrom:f,x:i,y:y,barXPosition:w,color:this.isBoxPlot?u:c?[d]:[g]}}},{key:\"drawHorizontalBoxPaths\",value:function(t){var e=t.indexes,i=(t.x,t.y),a=t.yDivision,s=t.barHeight,o=t.zeroW,t=t.strokeWidth,n=this.w,r=new T(this.ctx),l=e.i,h=e.j,c=this.boxOptions.colors.lower,d=(this.isBoxPlot&&(c=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]),this.invertedYRatio),e=e.realIndex,g=this.getOHLCValue(e,h),u=o,p=o,f=Math.min(g.o,g.c),x=Math.max(g.o,g.c),b=g.m,m=(i=n.globals.isXNumeric?(n.globals.seriesX[e][h]-n.globals.minX)/this.invertedXRatio-s/2:i)+s*this.visibleI,l=(void 0===this.series[l][h]||null===this.series[l][h]?x=f=o:(f=o+f/d,x=o+x/d,u=o+g.h/d,p=o+g.l/d,b=o+g.m/d),r.move(o,m),r.move(f,m+s/2));return 0<n.globals.previousPaths.length&&(l=this.getPreviousPath(e,h,!0)),g=[r.move(f,m)+r.line(f,m+s/2)+r.line(u,m+s/2)+r.line(u,m+s/2-s/4)+r.line(u,m+s/2+s/4)+r.line(u,m+s/2)+r.line(f,m+s/2)+r.line(f,m+s)+r.line(b,m+s)+r.line(b,m)+r.line(f+t/2,m),r.move(b,m)+r.line(b,m+s)+r.line(x,m+s)+r.line(x,m+s/2)+r.line(p,m+s/2)+r.line(p,m+s-s/4)+r.line(p,m+s/4)+r.line(p,m+s/2)+r.line(x,m+s/2)+r.line(x,m)+r.line(b,m)+\"z\"],l+=r.move(f,m),n.globals.isXNumeric||(i+=a),{pathTo:g,pathFrom:l,x:x,y:i,barYPosition:m,color:c}}},{key:\"getOHLCValue\",value:function(t,e){var i=this.w;return{o:(this.isBoxPlot?i.globals.seriesCandleH:i.globals.seriesCandleO)[t][e],h:(this.isBoxPlot?i.globals.seriesCandleO:i.globals.seriesCandleH)[t][e],m:i.globals.seriesCandleM[t][e],l:(this.isBoxPlot?i.globals.seriesCandleC:i.globals.seriesCandleL)[t][e],c:(this.isBoxPlot?i.globals.seriesCandleL:i.globals.seriesCandleC)[t][e]}}}]),e}(),Lt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"checkColorRange\",value:function(){var t=this.w,i=!1,t=t.config.plotOptions[t.config.chart.type];return 0<t.colorScale.ranges.length&&t.colorScale.ranges.map(function(t,e){t.from<=0&&(i=!0)}),i}},{key:\"getShadeColor\",value:function(t,e,i,a){var s=this.w,o=1,n=s.config.plotOptions[t].shadeIntensity,e=this.determineColor(t,e,i),i=(s.globals.hasNegs||a?o=s.config.plotOptions[t].reverseNegativeShade?e.percent<0?e.percent/100*(1.25*n):(1-e.percent/100)*(1.25*n):e.percent<=0?1-(1+e.percent/100)*n:(1-e.percent/100)*n:(o=1-e.percent/100,\"treemap\"===t&&(o=(1-e.percent/100)*(1.25*n))),e.color),a=new M;return{color:i=s.config.plotOptions[t].enableShades?\"dark\"===this.w.config.theme.mode?M.hexToRgba(a.shadeColor(-1*o,e.color),s.config.fill.opacity):M.hexToRgba(a.shadeColor(o,e.color),s.config.fill.opacity):i,colorProps:e}}},{key:\"determineColor\",value:function(t,e,i){var a=this.w,s=a.globals.series[e][i],o=a.config.plotOptions[t],n=o.colorScale.inverse?i:e,r=(o.distributed&&\"treemap\"===a.config.chart.type&&(n=i),a.globals.colors[n]),l=null,h=Math.min.apply(Math,g(a.globals.series[e])),c=Math.max.apply(Math,g(a.globals.series[e])),i=(o.distributed||\"heatmap\"!==t||(h=a.globals.minY,c=a.globals.maxY),void 0!==o.colorScale.min&&(h=o.colorScale.min<a.globals.minY?o.colorScale.min:a.globals.minY,c=o.colorScale.max>a.globals.maxY?o.colorScale.max:a.globals.maxY),Math.abs(c)+Math.abs(h)),d=100*s/(0===i?i-1e-6:i);return 0<o.colorScale.ranges.length&&o.colorScale.ranges.map(function(t,e){s>=t.from&&s<=t.to&&(r=t.color,l=t.foreColor||null,h=t.from,c=t.to,t=Math.abs(c)+Math.abs(h),d=100*s/(0===t?t-1e-6:t))}),{color:r,foreColor:l,percent:d}}},{key:\"calculateDataLabels\",value:function(t){var e,i=t.text,a=t.x,s=t.y,o=t.i,n=t.j,r=t.colorProps,t=t.fontSize,l=this.w.config.dataLabels,h=new T(this.ctx),c=new v(this.ctx),d=null;return l.enabled&&(d=h.group({class:\"apexcharts-data-labels\"}),h=l.offsetX,e=l.offsetY,a=a+h,h=s+parseFloat(l.style.fontSize)/3+e,c.plotDataLabelsText({x:a,y:h,text:i,i:o,j:n,color:r.foreColor,parent:d,fontSize:t,dataLabelsConfig:l})),d}},{key:\"addListeners\",value:function(t){var e=new T(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))}}]),e}(),Pt=function(){function i(t,e){s(this,i),this.ctx=t,this.w=t.w,this.xRatio=e.xRatio,this.yRatio=e.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Lt(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return n(i,[{key:\"draw\",value:function(t){var e=this.w,i=new T(this.ctx),a=i.group({class:\"apexcharts-heatmap\"}),s=(a.attr(\"clip-path\",\"url(#gridRectMask\".concat(e.globals.cuid,\")\")),e.globals.gridWidth/e.globals.dataPoints),o=e.globals.gridHeight/e.globals.series.length,n=0,r=!1,l=(this.negRange=this.helpers.checkColorRange(),t.slice());e.config.yaxis[0].reversed&&(r=!0,l.reverse());for(var h=r?0:l.length-1;r?h<l.length:0<=h;r?h++:h--){for(var c,d=i.group({class:\"apexcharts-series apexcharts-heatmap-series\",seriesName:M.escapeString(e.globals.seriesNames[h]),rel:h+1,\"data:realIndex\":h}),g=(this.ctx.series.addCollapsedClassToSeries(d,h),e.config.chart.dropShadow.enabled&&(c=e.config.chart.dropShadow,new C(this.ctx).dropShadow(d,c,h)),0),u=e.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[h].length;p++){var f,x=this.helpers.getShadeColor(e.config.chart.type,h,p,this.negRange),b=x.color,x=x.colorProps,m=(\"image\"===e.config.fill.type&&(b=new A(this.ctx).fillPath({seriesNumber:h,dataPointIndex:p,opacity:e.globals.hasNegs?x.percent<0?1-(1+x.percent/100):u+x.percent/100:x.percent/100,patternID:M.randomId(),width:e.config.fill.image.width||s,height:e.config.fill.image.height||o})),this.rectRadius),m=i.drawRect(g,n,s,o,m);m.attr({cx:g,cy:n}),m.node.classList.add(\"apexcharts-heatmap-rect\"),d.add(m),m.attr({fill:b,i:h,index:h,j:p,val:l[h][p],\"stroke-width\":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?b:e.globals.stroke.colors[0],color:b}),this.helpers.addListeners(m),e.config.chart.animations.enabled&&!e.globals.dataChanged&&(f=1,e.globals.resized||(f=e.config.chart.animations.speed),this.animateHeatMap(m,g,n,s,o,f)),e.globals.dataChanged&&(f=1,this.dynamicAnim.enabled)&&e.globals.shouldAnimate&&(f=this.dynamicAnim.speed,y=(y=e.globals.previousPaths[h]&&e.globals.previousPaths[h][p]&&e.globals.previousPaths[h][p].color)||\"rgba(255, 255, 255, 0)\",this.animateHeatColor(m,M.isColorHex(y)?y:M.rgb2hex(y),M.isColorHex(b)?b:M.rgb2hex(b),f));var m=(0,e.config.dataLabels.formatter)(e.globals.series[h][p],{value:e.globals.series[h][p],seriesIndex:h,dataPointIndex:p,w:e}),y=this.helpers.calculateDataLabels({text:m,x:g+s/2,y:n+o/2,i:h,j:p,colorProps:x,series:l});null!==y&&d.add(y),g+=s}n+=o,a.add(d)}t=e.globals.yAxisScale[0].result.slice(),e.config.yaxis[0].reversed?t.unshift(\"\"):t.push(\"\"),e.globals.yAxisScale[0].result=t,t=e.globals.gridHeight/e.globals.series.length;return e.config.yaxis[0].labels.offsetY=-t/2,a}},{key:\"animateHeatMap\",value:function(t,e,i,a,s,o){var n=new S(this.ctx);n.animateRect(t,{x:e+a/2,y:i+s/2,width:0,height:0},{x:e,y:i,width:a,height:s},o,function(){n.animationCompleted(t)})}},{key:\"animateHeatColor\",value:function(t,e,i,a){t.attr({fill:e}).animate(a).attr({fill:i})}}]),i}(),Mt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"drawYAxisTexts\",value:function(t,e,i,a){var s=this.w,o=s.config.yaxis[0],s=s.globals.yLabelFormatters[0];return new T(this.ctx).drawText({x:t+o.labels.offsetX,y:e+o.labels.offsetY,text:s(a,i),textAnchor:\"middle\",fontSize:o.labels.style.fontSize,fontFamily:o.labels.style.fontFamily,foreColor:Array.isArray(o.labels.style.colors)?o.labels.style.colors[i]:o.labels.style.colors})}}]),e}(),Tt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;t=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=(void 0!==t.globals.stroke.colors?t.globals.stroke:t.globals).colors,this.defaultSize=Math.min(t.globals.gridWidth,t.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=t.globals.gridWidth/2,\"radialBar\"===t.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(t.config.plotOptions.pie.endAngle-t.config.plotOptions.pie.startAngle),this.initialAngle=t.config.plotOptions.pie.startAngle%this.fullAngle,t.globals.radialSize=this.defaultSize/2.05-t.config.stroke.width-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur),this.donutSize=t.globals.radialSize*parseInt(t.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return n(e,[{key:\"draw\",value:function(t){var e=this,i=this.w,a=new T(this.ctx);if(this.ret=a.group({class:\"apexcharts-pie\"}),!i.globals.noData){for(var s=0,o=0;o<t.length;o++)s+=M.negToZero(t[o]);var n=[],r=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 h=this.fullAngle*M.negToZero(t[l])/s;n.push(h),\"polarArea\"===this.chartType?(n[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 c,d=0,g=0;g<i.globals.previousPaths.length;g++)d+=M.negToZero(i.globals.previousPaths[g]);for(var u=0;u<i.globals.previousPaths.length;u++)c=this.fullAngle*M.negToZero(i.globals.previousPaths[u])/d,this.prevSectorAngleArr.push(c)}this.donutSize<0&&(this.donutSize=0);var p=i.config.plotOptions.pie.customScale,f=i.globals.gridWidth/2,x=i.globals.gridHeight/2,f=f-i.globals.gridWidth/2*p,x=x-i.globals.gridHeight/2*p,b=(\"donut\"===this.chartType&&((a=a.drawCircle(this.donutSize)).attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background||\"transparent\"}),r.add(a)),this.drawArcs(n,t));this.sliceLabels.forEach(function(t){b.add(t)}),r.attr({transform:\"translate(\".concat(f,\", \").concat(x,\") scale(\").concat(p,\")\")}),r.add(b),this.ret.add(r),this.donutDataLabels.show&&(a=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:f,translateY:x}),this.ret.add(a)),\"front\"===i.config.grid.position&&\"polarArea\"===this.chartType&&this.drawPolarElements(this.ret)}return this.ret}},{key:\"drawArcs\",value:function(t,e){var i=this.w,a=new C(this.ctx),s=new T(this.ctx),o=new A(this.ctx),n=s.group({class:\"apexcharts-slices\"}),r=(this.initialAngle,this.initialAngle,this.initialAngle),l=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var h=0;h<t.length;h++){var c,d,g=s.group({class:\"apexcharts-series apexcharts-pie-series\",seriesName:M.escapeString(i.globals.seriesNames[h]),rel:h+1,\"data:realIndex\":h}),u=(n.add(g),d=l,r=(c=r)+t[h],l=d+this.prevSectorAngleArr[h],r<c?this.fullAngle+r-c:r-c),p=o.fillPath({seriesNumber:h,size:this.sliceSizes[h],value:e[h]}),f=this.getChangedPath(d,l),f=s.drawPath({d:f,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[h]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:i.config.fill.opacity,classes:\"apexcharts-pie-area apexcharts-\".concat(this.chartType.toLowerCase(),\"-slice-\").concat(h)}),p=(f.attr({index:0,j:h}),a.setSelectionFilter(f,0,h),i.config.chart.dropShadow.enabled&&(p=i.config.chart.dropShadow,a.dropShadow(f,p,h)),this.addListeners(f,this.donutDataLabels),T.setAttrs(f.node,{\"data:angle\":u,\"data:startAngle\":c,\"data:strokeWidth\":this.strokeWidth,\"data:value\":e[h]}),{x:0,y:0}),g=(\"pie\"===this.chartType||\"polarArea\"===this.chartType?p=M.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(c+u/2)%this.fullAngle):\"donut\"===this.chartType&&(p=M.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(c+u/2)%this.fullAngle)),g.add(f),0);!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0===(g=u/this.fullAngle*i.config.chart.animations.speed)&&(g=1),this.animDur=g+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(f,{size:this.sliceSizes[h],endAngle:r,startAngle:c,prevStartAngle:d,prevEndAngle:l,animateStartingPos:!0,i:h,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(f,{size:this.sliceSizes[h],endAngle:r,startAngle:c,i:h,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:g}),i.config.plotOptions.pie.expandOnClick&&\"polarArea\"!==this.chartType&&f.click(this.pieClicked.bind(this,h)),void 0!==i.globals.selectedDataPoints[0]&&-1<i.globals.selectedDataPoints[0].indexOf(h)&&this.pieClicked(h),i.config.dataLabels.enabled&&(d=p.x,c=p.y,g=100*u/this.fullAngle+\"%\",0!=u)&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[h]&&(void 0!==(f=i.config.dataLabels.formatter)&&(g=f(i.globals.seriesPercent[h][0],{seriesIndex:h,w:i})),p=i.globals.dataLabels.style.colors[h],u=s.group({class:\"apexcharts-datalabels\"}),f=s.drawText({x:d,y:c,text:g,textAnchor:\"middle\",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:p}),u.add(f),i.config.dataLabels.dropShadow.enabled&&(d=i.config.dataLabels.dropShadow,a.dropShadow(f,d)),f.node.classList.add(\"apexcharts-pie-label\"),i.config.chart.animations.animate&&!1===i.globals.resized&&(f.node.classList.add(\"apexcharts-pie-label-delay\"),f.node.style.animationDelay=i.config.chart.animations.speed/940+\"s\"),this.sliceLabels.push(u))}return n}},{key:\"addListeners\",value:function(t,e){var i=new T(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,o=e.startAngle,n=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(o=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+n>this.fullAngle?e.endAngle=e.endAngle-(a+n):a+n<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(a+n)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(t,o,n,a,s,e)}},{key:\"animateArc\",value:function(e,i,a,s,o,n){var r,l=this,t=this.w,h=new S(this.ctx),c=n.size,d=((isNaN(i)||isNaN(o))&&(i=a,o=s,n.dur=0),s),g=a,u=i<a?this.fullAngle+i-a:i-a;t.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(r=l.getPiePath({me:l,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:c}),e.attr({d:r})),0!==n.dur?e.animate(n.dur,t.globals.easing,n.animBeginArr[n.i]).afterAll(function(){\"pie\"!==l.chartType&&\"donut\"!==l.chartType&&\"polarArea\"!==l.chartType||this.animate(t.config.chart.animations.dynamicAnimation.speed).attr({\"stroke-width\":l.strokeWidth}),n.i===t.config.series.length-1&&h.animationCompleted(e)}).during(function(t){d=u+(s-u)*t,n.animateStartingPos&&(d=o+(s-o)*t,g=i-o+(a-(i-o))*t),r=l.getPiePath({me:l,startAngle:g,angle:d,size:c}),e.node.setAttribute(\"data:pathOrig\",r),e.attr({d:r})}):(r=l.getPiePath({me:l,startAngle:g,angle:s,size:c}),n.isTrack||(t.globals.animationEnded=!0),e.node.setAttribute(\"data:pathOrig\",r),e.attr({d:r,\"stroke-width\":l.strokeWidth}))}},{key:\"pieClicked\",value:function(t){var e,i=this.w,a=this.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),t=i.globals.dom.Paper.select(\".apexcharts-\".concat(this.chartType.toLowerCase(),\"-slice-\").concat(t)).members[0];\"true\"===t.attr(\"data:pieClicked\")?(t.attr({\"data:pieClicked\":\"false\"}),this.revertDataLabelsInner(t.node,this.donutDataLabels),e=t.attr(\"data:pathOrig\"),t.attr({d:e})):(e=i.globals.dom.baseEl.getElementsByClassName(\"apexcharts-pie-area\"),Array.prototype.forEach.call(e,function(t){t.setAttribute(\"data:pieClicked\",\"false\");var e=t.getAttribute(\"data:pathOrig\");t.setAttribute(\"d\",e)}),t.attr(\"data:pieClicked\",\"true\"),i=parseInt(t.attr(\"data:startAngle\"),10),e=parseInt(t.attr(\"data:angle\"),10),i=this.getPiePath({me:this,startAngle:i,angle:e,size:a}),360!==e&&t.plot(i))}},{key:\"getChangedPath\",value:function(t,e){var i=\"\";return i=this.dynamicAnim&&this.w.globals.dataChanged?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,t=t.size,s=i,o=Math.PI*(s-90)/180,i=a+i,n=(Math.ceil(i)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(i=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(i)>this.fullAngle&&(i-=this.fullAngle),Math.PI*(i-90)/180),r=e.centerX+t*Math.cos(o),o=e.centerY+t*Math.sin(o),l=e.centerX+t*Math.cos(n),n=e.centerY+t*Math.sin(n),i=M.polarToCartesian(e.centerX,e.centerY,e.donutSize,i),s=M.polarToCartesian(e.centerX,e.centerY,e.donutSize,s),a=180<a?1:0,t=[\"M\",r,o,\"A\",t,t,0,a,1,l,n],l=(\"donut\"===e.chartType?[].concat(t,[\"L\",i.x,i.y,\"A\",e.donutSize,e.donutSize,0,a,0,s.x,s.y,\"L\",r,o,\"z\"]):\"pie\"===e.chartType||\"polarArea\"===e.chartType?[].concat(t,[\"L\",e.centerX,e.centerY,\"L\",r,o]):[].concat(t)).join(\" \");return l}},{key:\"drawPolarElements\",value:function(t){for(var e=this.w,i=new E(this.ctx),a=new T(this.ctx),s=new Mt(this.ctx),o=a.group(),n=a.group(),i=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),r=i.result.reverse(),l=i.result.length,h=(this.maxY=i.niceMax,e.globals.radialSize),c=h/(l-1),d=0;d<l-1;d++){var g,u=a.drawCircle(h);u.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&&(g=s.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,d,r[d]),n.add(g)),o.add(u),h-=c}this.drawSpokes(t),t.add(o),t.add(n)}},{key:\"renderInnerDataLabels\",value:function(t,e){var i=this.w,a=new T(this.ctx),s=a.group({class:\"apexcharts-datalabels-group\",transform:\"translate(\".concat(e.translateX||0,\", \").concat(e.translateY||0,\") scale(\").concat(i.config.plotOptions.pie.customScale,\")\")}),o=t.total.show,n=(s.node.style.opacity=e.opacity,e.centerX),e=e.centerY,r=void 0===t.name.color?i.globals.colors[0]:t.name.color,l=t.name.fontSize,h=t.name.fontFamily,c=t.name.fontWeight,d=void 0===t.value.color?i.config.chart.foreColor:t.value.color,g=t.value.formatter,u=\"\",p=\"\";return o?(r=t.total.color,l=t.total.fontSize,h=t.total.fontFamily,c=t.total.fontWeight,p=t.total.label,u=t.total.formatter(i)):1===i.globals.series.length&&(u=g(i.globals.series[0],i),p=i.globals.seriesNames[0]),p=p&&t.name.formatter(p,t.total.show,i),t.name.show&&((o=a.drawText({x:n,y:e+parseFloat(t.name.offsetY),text:p,textAnchor:\"middle\",foreColor:r,fontSize:l,fontWeight:c,fontFamily:h})).node.classList.add(\"apexcharts-datalabel-label\"),s.add(o)),t.value.show&&(g=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,(i=a.drawText({x:n,y:e+g,text:u,textAnchor:\"middle\",foreColor:d,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily})).node.classList.add(\"apexcharts-datalabel-value\"),s.add(i)),s}},{key:\"printInnerLabels\",value:function(t,e,i,a){var s,o=this.w,n=(a?s=void 0===t.name.color?o.globals.colors[parseInt(a.parentNode.getAttribute(\"rel\"),10)-1]:t.name.color:1<o.globals.series.length&&t.total.show&&(s=t.total.color),o.globals.dom.baseEl.querySelector(\".apexcharts-datalabel-label\")),r=o.globals.dom.baseEl.querySelector(\".apexcharts-datalabel-value\"),a=(i=(0,t.value.formatter)(i,o),a||\"function\"!=typeof t.total.formatter||(i=t.total.formatter(o)),e===t.total.label);e=t.name.formatter(e,a,o),null!==n&&(n.textContent=e),null!==r&&(r.textContent=i),null!==n&&(n.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],e=(1<i.globals.series.length&&this.printInnerLabels(e,s,a,t),i.globals.dom.baseEl.querySelector(\".apexcharts-datalabels-group\"));null!==e&&(e.style.opacity=1)}},{key:\"drawSpokes\",value:function(i){var a=this,t=this.w,s=new T(this.ctx),o=t.config.plotOptions.polarArea.spokes;if(0!==o.strokeWidth){for(var e=[],n=360/t.globals.series.length,r=0;r<t.globals.series.length;r++)e.push(M.polarToCartesian(this.centerX,this.centerY,t.globals.radialSize,t.config.plotOptions.pie.startAngle+n*r));e.forEach(function(t,e){t=s.drawLine(t.x,t.y,a.centerX,a.centerY,Array.isArray(o.connectorColors)?o.connectorColors[e]:o.connectorColors);i.add(t)})}}},{key:\"revertDataLabelsInner\",value:function(t,a,e){function i(t){var e=t.makeSliceOut,i=t.printLabel;Array.prototype.forEach.call(h,function(t){\"true\"===t.getAttribute(\"data:pieClicked\")&&(e&&(l=!0),i)&&o.printDataLabelsInner(t,a)})}var s,o=this,n=this.w,r=n.globals.dom.baseEl.querySelector(\".apexcharts-datalabels-group\"),l=!1,h=n.globals.dom.baseEl.getElementsByClassName(\"apexcharts-pie-area\");i({makeSliceOut:!0,printLabel:!1}),a.total.show&&1<n.globals.series.length?l&&!a.total.showAlways?i({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(a,a.total.label,a.total.formatter(n)):(i({makeSliceOut:!1,printLabel:!0}),l||(n.globals.selectedDataPoints.length&&1<n.globals.series.length?0<n.globals.selectedDataPoints[0].length?(s=n.globals.selectedDataPoints[0],s=n.globals.dom.baseEl.querySelector(\".apexcharts-\".concat(this.chartType.toLowerCase(),\"-slice-\").concat(s)),this.printDataLabelsInner(s,a)):r&&n.globals.selectedDataPoints.length&&0===n.globals.selectedDataPoints[0].length&&(r.style.opacity=0):r&&1<n.globals.series.length&&(r.style.opacity=0)))}}]),e}(),It=function(){function e(t){s(this,e),this.ctx=t,this.w=t.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;t=this.w;this.graphics=new T(this.ctx),this.lineColorArr=(void 0!==t.globals.stroke.colors?t.globals.stroke:t.globals).colors,this.defaultSize=t.globals.svgHeight<t.globals.svgWidth?t.globals.gridHeight+1.5*t.globals.goldenPadding:t.globals.gridWidth,this.isLog=t.config.yaxis[0].logarithmic,this.coreUtils=new I(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(t.globals.maxY,0):t.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):t.globals.minY,this.polygons=t.config.plotOptions.radar.polygons,this.strokeWidth=t.config.stroke.show?t.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-t.config.chart.dropShadow.blur,t.config.xaxis.labels.show&&(this.size=this.size-t.globals.xAxisLabelsWidth/1.75),void 0!==t.config.plotOptions.radar.size&&(this.size=t.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return n(e,[{key:\"draw\",value:function(t){var d,g,u=this,p=this.w,f=new A(this.ctx),x=[],b=new v(this.ctx),e=(t.length&&(this.dataPointsLen=t[p.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen,p.globals.gridWidth/2),i=p.globals.gridHeight/2,e=e+p.config.plotOptions.radar.offsetX,i=i+p.config.plotOptions.radar.offsetY,a=this.graphics.group({class:\"apexcharts-radar-series apexcharts-plot-series\",transform:\"translate(\".concat(e||0,\", \").concat(i||0,\")\")}),m=null;return this.yaxisLabels=this.graphics.group({class:\"apexcharts-yaxis\"}),t.forEach(function(t,s){var e=t.length===p.globals.dataPoints,o=u.graphics.group().attr({class:\"apexcharts-series\",\"data:longestSeries\":e,seriesName:M.escapeString(p.globals.seriesNames[s]),rel:s+1,\"data:realIndex\":s}),i=(u.dataRadiusOfPercent[s]=[],u.dataRadius[s]=[],u.angleArr[s]=[],t.forEach(function(t,e){var i=Math.abs(u.maxValue-u.minValue);t+=Math.abs(u.minValue),u.isLog&&(t=u.coreUtils.getLogVal(t,0)),u.dataRadiusOfPercent[s][e]=t/i,u.dataRadius[s][e]=u.dataRadiusOfPercent[s][e]*u.size,u.angleArr[s][e]=e*u.disAngle}),d=u.getDataPointsPos(u.dataRadius[s],u.angleArr[s]),u.createPaths(d,{x:0,y:0})),a=(m=u.graphics.group({class:\"apexcharts-series-markers-wrap apexcharts-element-hidden\"}),g=u.graphics.group({class:\"apexcharts-datalabels\",\"data:realIndex\":s}),p.globals.delayedElements.push({el:m.node,index:s}),{i:s,realIndex:s,animationDelay:s,initialSpeed:p.config.chart.animations.speed,dataChangeSpeed:p.config.chart.animations.dynamicAnimation.speed,className:\"apexcharts-radar\",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:p.globals.stroke.colors[s],strokeLineCap:p.config.stroke.lineCap}),n=null;0<p.globals.previousPaths.length&&(n=u.getPreviousPath(s));for(var r=0;r<i.linePathsTo.length;r++){var l,h,c=u.graphics.renderPaths(P(P({},a),{},{pathFrom:null===n?i.linePathsFrom[r]:n,pathTo:i.linePathsTo[r],strokeWidth:Array.isArray(u.strokeWidth)?u.strokeWidth[s]:u.strokeWidth,fill:\"none\",drawShadow:!1})),c=(o.add(c),f.fillPath({seriesNumber:s})),c=u.graphics.renderPaths(P(P({},a),{},{pathFrom:null===n?i.areaPathsFrom[r]:n,pathTo:i.areaPathsTo[r],strokeWidth:0,fill:c,drawShadow:!1}));p.config.chart.dropShadow.enabled&&(l=new C(u.ctx),h=p.config.chart.dropShadow,l.dropShadow(c,Object.assign({},h,{noUserSpaceOnUse:!0}),s)),o.add(c)}t.forEach(function(t,e){var i=new w(u.ctx).getMarkerConfig({cssClass:\"apexcharts-marker\",seriesIndex:s,dataPointIndex:e}),a=u.graphics.drawMarker(d[e].x,d[e].y,i),i=(a.attr(\"rel\",e),a.attr(\"j\",e),a.attr(\"index\",s),a.node.setAttribute(\"default-marker-size\",i.pSize),u.graphics.group({class:\"apexcharts-series-markers\"})),a=(i&&i.add(a),m.add(i),o.add(m),p.config.dataLabels);a.enabled&&(i=a.formatter(p.globals.series[s][e],{seriesIndex:s,dataPointIndex:e,w:p}),b.plotDataLabelsText({x:d[e].x,y:d[e].y,text:i,textAnchor:\"middle\",i:s,j:s,parent:g,offsetCorrection:!1,dataLabelsConfig:P({},a)})),o.add(g)}),x.push(o)}),this.drawPolygons({parent:a}),p.config.xaxis.labels.show&&(e=this.drawXAxisTexts(),a.add(e)),x.forEach(function(t){a.add(t)}),a.add(this.yaxisLabels),a}},{key:\"drawPolygons\",value:function(t){for(var o=this,s=this.w,n=t.parent,i=new Mt(this.ctx),a=s.globals.yAxisScale[0].result.reverse(),e=a.length,r=[],l=this.size/(e-1),h=0;h<e;h++)r[h]=l*h;r.reverse();var c=[],d=[];r.forEach(function(t,a){var t=M.getPolygonPos(t,o.dataPointsLen),s=\"\";t.forEach(function(t,e){var i;0===a&&(i=o.graphics.drawLine(t.x,t.y,0,0,Array.isArray(o.polygons.connectorColors)?o.polygons.connectorColors[e]:o.polygons.connectorColors),d.push(i)),0===e&&o.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),s+=t.x+\",\"+t.y+\" \"}),c.push(s)}),c.forEach(function(t,e){var i=o.polygons.strokeColors,a=o.polygons.strokeWidth,t=o.graphics.drawPolygon(t,Array.isArray(i)?i[e]:i,Array.isArray(a)?a[e]:a,s.globals.radarPolygons.fill.colors[e]);n.add(t)}),d.forEach(function(t){n.add(t)}),s.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(t,e){t=i.drawYAxisTexts(t.x,t.y,e,a[e]);o.yaxisLabels.add(t)})}},{key:\"drawXAxisTexts\",value:function(){var o=this,n=this.w,r=n.config.xaxis.labels,l=this.graphics.group({class:\"apexcharts-xaxis\"}),h=M.getPolygonPos(this.size,this.dataPointsLen);return n.globals.labels.forEach(function(t,e){var i,a=n.config.xaxis.labels.formatter,s=new v(o.ctx);h[e]&&(i=o.getTextPos(h[e],o.size),a=a(t,{seriesIndex:-1,dataPointIndex:e,w:n}),s.plotDataLabelsText({x:i.newX,y:i.newY,text:a,textAnchor:i.textAnchor,i:e,j:e,parent:l,color:Array.isArray(r.style.colors)&&r.style.colors[e]?r.style.colors[e]:\"#a8a8a8\",dataLabelsConfig:P({textAnchor:i.textAnchor,dropShadow:{enabled:!1}},r),offsetCorrection:!1}))}),l}},{key:\"createPaths\",value:function(i,t){var a,s,o=this,e=[],n=[],r=[],l=[];return i.length&&(n=[this.graphics.move(t.x,t.y)],l=[this.graphics.move(t.x,t.y)],a=this.graphics.move(i[0].x,i[0].y),s=this.graphics.move(i[0].x,i[0].y),i.forEach(function(t,e){a+=o.graphics.line(t.x,t.y),s+=o.graphics.line(t.x,t.y),e===i.length-1&&(a+=\"Z\",s+=\"Z\")}),e.push(a),r.push(s)),{linePathsFrom:n,linePathsTo:e,areaPathsFrom:l,areaPathsTo:r}}},{key:\"getTextPos\",value:function(t,e){var i=\"middle\",a=t.x,s=t.y;return 10<=Math.abs(t.x)?0<t.x?(i=\"start\",a+=10):t.x<0&&(i=\"end\",a-=10):i=\"middle\",Math.abs(t.y)>=e-10&&(t.y<0?s-=10:0<t.y&&(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];0<s.paths.length&&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){for(var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen,a=(t=t||[],e=e||[],[]),s=0;s<i;s++){var o={};o.x=t[s]*Math.sin(e[s]),o.y=-t[s]*Math.cos(e[s]),a.push(o)}return a}}]),e}(),zt=function(){o(a,Tt);var i=h(a);function a(t){s(this,a),(e=i.call(this,t)).ctx=t,e.w=t.w,e.animBeginArr=[0],e.animDur=0;var e,t=e.w;return e.startAngle=t.config.plotOptions.radialBar.startAngle,e.endAngle=t.config.plotOptions.radialBar.endAngle,e.totalAngle=Math.abs(t.config.plotOptions.radialBar.endAngle-t.config.plotOptions.radialBar.startAngle),e.trackStartAngle=t.config.plotOptions.radialBar.track.startAngle,e.trackEndAngle=t.config.plotOptions.radialBar.track.endAngle,e.donutDataLabels=e.w.config.plotOptions.radialBar.dataLabels,e.radialDataLabels=e.donutDataLabels,e.trackStartAngle||(e.trackStartAngle=e.startAngle),e.trackEndAngle||(e.trackEndAngle=e.endAngle),360===e.endAngle&&(e.endAngle=359.99),e.margin=parseInt(t.config.plotOptions.radialBar.track.margin,10),e}return n(a,[{key:\"draw\",value:function(t){var e,i,a,s,o,n=this.w,r=new T(this.ctx),l=r.group({class:\"apexcharts-radialbar\"});return n.globals.noData||(r=r.group(),s=this.defaultSize/2,a=n.globals.gridWidth/2,e=this.defaultSize/2.05,n.config.chart.sparkline.enabled||(e=e-n.config.stroke.width-n.config.chart.dropShadow.blur),o=n.globals.fill.colors,n.config.plotOptions.radialBar.track.show&&(i=this.drawTracks({size:e,centerX:a,centerY:s,colorArr:o,series:t}),r.add(i)),i=this.drawArcs({size:e,centerX:a,centerY:s,colorArr:o,series:t}),s=((a=360)-(a=n.config.plotOptions.radialBar.startAngle<0?this.totalAngle:a))/360,n.globals.radialSize=e-e*s,this.radialDataLabels.value.show&&(o=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY),n.globals.radialSize+=o*s),r.add(i.g),\"front\"===n.config.plotOptions.radialBar.hollow.position&&(i.g.add(i.elHollow),i.dataLabels)&&i.g.add(i.dataLabels),l.add(r)),l}},{key:\"drawTracks\",value:function(t){var e=this.w,i=new T(this.ctx),a=i.group({class:\"apexcharts-tracks\"}),s=new C(this.ctx),o=new A(this.ctx),n=this.getStrokeWidth(t);t.size=t.size-n/2;for(var r=0;r<t.series.length;r++){var l=i.group({class:\"apexcharts-radialbar-track apexcharts-track\"}),h=(a.add(l),l.attr({rel:r+1}),t.size=t.size-n-this.margin,e.config.plotOptions.radialBar.track),c=o.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(h.background)?h.background[r]:h.background,solid:!0}),d=this.trackStartAngle,g=this.trackEndAngle,c=(360<=Math.abs(g)+Math.abs(d)&&(g=360-Math.abs(this.startAngle)-.1),i.drawPath({d:\"\",stroke:c,strokeWidth:n*parseInt(h.strokeWidth,10)/100,fill:\"none\",strokeOpacity:h.opacity,classes:\"apexcharts-radialbar-area\"}));h.dropShadow.enabled&&(h=h.dropShadow,s.dropShadow(c,h)),l.add(c),c.attr(\"id\",\"apexcharts-radialbarTrack-\"+r),this.animatePaths(c,{centerX:t.centerX,centerY:t.centerY,endAngle:g,startAngle:d,size:t.size,i:r,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return a}},{key:\"drawArcs\",value:function(t){for(var e=this.w,i=new T(this.ctx),a=new A(this.ctx),s=new C(this.ctx),o=i.group(),n=this.getStrokeWidth(t),r=(t.size=t.size-n/2,e.config.plotOptions.radialBar.hollow.background),l=t.size-n*t.series.length-this.margin*t.series.length-n*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,h=l-e.config.plotOptions.radialBar.hollow.margin,h=(void 0!==e.config.plotOptions.radialBar.hollow.image&&(r=this.drawHollowImage(t,o,l,r)),this.drawHollow({size:h,centerX:t.centerX,centerY:t.centerY,fill:r||\"transparent\"})),r=(e.config.plotOptions.radialBar.hollow.dropShadow.enabled&&(r=e.config.plotOptions.radialBar.hollow.dropShadow,s.dropShadow(h,r)),1),c=(!this.radialDataLabels.total.show&&1<e.globals.series.length&&(r=0),null),d=(this.radialDataLabels.show&&(c=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:r})),\"back\"===e.config.plotOptions.radialBar.hollow.position&&(o.add(h),c)&&o.add(c),!1),g=(d=e.config.plotOptions.radialBar.inverseOrder?!0:d)?t.series.length-1:0;d?0<=g:g<t.series.length;d?g--:g++){var u=i.group({class:\"apexcharts-series apexcharts-radial-series\",seriesName:M.escapeString(e.globals.seriesNames[g])}),p=(o.add(u),u.attr({rel:g+1,\"data:realIndex\":g}),this.ctx.series.addCollapsedClassToSeries(u,g),t.size=t.size-n-this.margin,a.fillPath({seriesNumber:g,size:t.size,value:t.series[g]})),f=this.startAngle,x=void 0,b=M.negToZero(100<t.series[g]?100:t.series[g])/100,b=Math.round(this.totalAngle*b)+this.startAngle,m=void 0;e.globals.dataChanged&&(x=this.startAngle,m=Math.round(this.totalAngle*M.negToZero(e.globals.previousPaths[g])/100)+x),360<=Math.abs(b)+Math.abs(f)&&(b-=.01);360<=Math.abs(m)+Math.abs(x)&&(m-=.01);var y=b-f,v=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[g]:e.config.stroke.dashArray,p=i.drawPath({d:\"\",stroke:p,strokeWidth:n,fill:\"none\",fillOpacity:e.config.fill.opacity,classes:\"apexcharts-radialbar-area apexcharts-radialbar-slice-\"+g,strokeDashArray:v}),y=(T.setAttrs(p.node,{\"data:angle\":y,\"data:value\":t.series[g]}),e.config.chart.dropShadow.enabled&&(v=e.config.chart.dropShadow,s.dropShadow(p,v,g)),s.setSelectionFilter(p,0,g),this.addListeners(p,this.radialDataLabels),u.add(p),p.attr({index:0,j:g}),0);!this.initialAnim||e.globals.resized||e.globals.dataChanged||(y=e.config.chart.animations.speed),e.globals.dataChanged&&(y=e.config.chart.animations.dynamicAnimation.speed),this.animDur=y/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(p,{centerX:t.centerX,centerY:t.centerY,endAngle:b,startAngle:f,prevEndAngle:m,prevStartAngle:x,size:t.size,i:g,totalItems:2,animBeginArr:this.animBeginArr,dur:y,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:o,elHollow:h,dataLabels:c}}},{key:\"drawHollow\",value:function(t){var e=new T(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(e,t,i,a){var s,o,n=this.w,r=new A(this.ctx),l=M.randomId(),h=n.config.plotOptions.radialBar.hollow.image;return n.config.plotOptions.radialBar.hollow.imageClipped?(r.clippedImgArea({width:i,height:i,image:h,patternID:\"pattern\".concat(n.globals.cuid).concat(l)}),a=\"url(#pattern\".concat(n.globals.cuid).concat(l,\")\")):(s=n.config.plotOptions.radialBar.hollow.imageWidth,o=n.config.plotOptions.radialBar.hollow.imageHeight,void 0===s&&void 0===o?(r=n.globals.dom.Paper.image(h).loaded(function(t){this.move(e.centerX-t.width/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+n.config.plotOptions.radialBar.hollow.imageOffsetY)}),t.add(r)):(i=n.globals.dom.Paper.image(h).loaded(function(t){this.move(e.centerX-s/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-o/2+n.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(s,o)}),t.add(i))),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}}]),a}(),Et=function(){function e(t){s(this,e),this.w=t.w,this.lineCtx=t}return n(e,[{key:\"sameValueSeriesFix\",value:function(t,e){var i=this.w;return\"line\"!==i.config.chart.type||\"gradient\"!==i.config.fill.type&&\"gradient\"!==i.config.fill.type[t]||new I(this.lineCtx.ctx,i).seriesHaveSameValues(t)&&((i=e[t].slice())[i.length-1]=i[i.length-1]+1e-6,e[t]=i),e}},{key:\"calculatePoints\",value:function(t){var e,i=t.series,a=t.realIndex,s=t.x,o=t.y,n=t.i,r=t.j,t=t.prevY,l=this.w,h=[],c=[];return 0===r&&(e=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX,l.globals.isXNumeric&&(e=(l.globals.seriesX[a][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),h.push(e),c.push(M.isNumber(i[n][0])?t+l.config.markers.offsetY:null)),h.push(s+l.config.markers.offsetX),c.push(M.isNumber(i[n][r+1])?o+l.config.markers.offsetY:null),{x:h,y:c}}},{key:\"checkPreviousPaths\",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,o=0;o<s.globals.previousPaths.length;o++){var n=s.globals.previousPaths[o];(\"line\"===n.type||\"area\"===n.type)&&0<n.paths.length&&parseInt(n.realIndex,10)===parseInt(a,10)&&(\"line\"===n.type?(this.lineCtx.appendPathFrom=!1,e=s.globals.previousPaths[o].paths[0].d):\"area\"===n.type&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[o].paths[0].d,s.config.stroke.show)&&s.globals.previousPaths[o].paths[1]&&(e=s.globals.previousPaths[o].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,t=this.w;if(void 0!==i[e][0])a=(s=t.config.chart.stacked&&0<e?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(t.config.chart.stacked&&0<e&&void 0===i[e][0])for(var o=e-1;0<=o;o--)if(null!==i[o][0]&&void 0!==i[o][0]){a=s=this.lineCtx.prevSeriesY[o][0];break}return{prevY:a,lineYPosition:s}}}]),e}(),Xt=function(){function a(t,e,i){s(this,a),this.ctx=t,this.w=t.w,this.xyRatios=e,this.pointsChart=!(\"bubble\"!==this.w.config.chart.type&&\"scatter\"!==this.w.config.chart.type)||i,this.scatter=new U(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Et(this),this.markers=new w(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return n(a,[{key:\"draw\",value:function(t,e,i){for(var a=this.w,s=new T(this.ctx),o=a.globals.comboCharts?e:a.config.chart.type,n=s.group({class:\"apexcharts-\".concat(o,\"-series apexcharts-plot-series\")}),e=new I(this.ctx,a),r=(this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=e.getLogSeries(t),this.yRatio=e.getLogYRatios(this.yRatio),[]),l=0;l<t.length;l++){t=this.lineHelpers.sameValueSeriesFix(l,t);var h=a.globals.comboCharts?i[l]:l,c=(this._initSerieVariables(t,l,h),[]),d=[],g=a.globals.padHorizontal+this.categoryAxisCorrection,u=(this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),a.globals.isXNumeric&&0<a.globals.seriesX.length&&(g=(a.globals.seriesX[h][0]-a.globals.minX)/this.xRatio),d.push(g),g),p=void 0,f=u,x=this.zeroY,x=this.lineHelpers.determineFirstPrevY({i:l,series:t,prevY:x,lineYPosition:0}).prevY,p=(c.push(x),x),f=this._calculatePathsFrom({series:t,i:l,realIndex:h,prevX:f,prevY:x}),x=this._iterateOverDataPoints({series:t,realIndex:h,i:l,x:g,y:1,pX:u,pY:p,pathsFrom:f,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:d,yArrj:c});this._handlePaths({type:o,realIndex:h,i:l,paths:x}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),r.push(this.elSeries)}if(a.config.chart.stacked)for(var b=r.length;0<b;b--)n.add(r[b-1]);else for(var m=0;m<r.length;m++)n.add(r[m]);return n}},{key:\"_initSerieVariables\",value:function(t,e,i){var a=this.w,s=new T(this.ctx),s=(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,1<this.yRatio.length&&(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:M.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}),t[e].length===a.globals.dataPoints);this.elSeries.attr({\"data:longestSeries\":s,rel:e+1,\"data:realIndex\":i}),this.appendPathFrom=!0}},{key:\"_calculatePathsFrom\",value:function(t){var e,i,a,s,o=t.series,n=t.i,r=t.realIndex,l=t.prevX,h=t.prevY,t=this.w,c=new T(this.ctx);if(null===o[n][0]){for(var d=0;d<o[n].length;d++)if(null!==o[n][d]){l=this.xDivision*d,h=this.zeroY-o[n][d]/this.yRatio[this.yaxisIndex],e=c.move(l,h),i=c.move(l,this.areaBottomY);break}}else e=c.move(l,h),i=c.move(l,this.areaBottomY)+c.line(l,h);return a=c.move(-1,this.zeroY)+c.line(-1,this.zeroY),s=c.move(-1,this.zeroY)+c.line(-1,this.zeroY),0<t.globals.previousPaths.length&&(a=(t=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:r})).pathFromLine,s=t.pathFromArea),{prevX:l,prevY:h,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:\"_handlePaths\",value:function(t){var e,i=t.type,a=t.realIndex,s=t.i,o=t.paths,n=this.w,r=new T(this.ctx),t=new A(this.ctx),l=(this.prevSeriesY.push(o.yArrj),n.globals.seriesXvalues[a]=o.xArrj,n.globals.seriesYvalues[a]=o.yArrj,n.config.forecastDataPoints),h=(0<l.count&&(u=n.globals.seriesXvalues[a][n.globals.seriesXvalues[a].length-l.count-1],e=r.drawRect(u,0,n.globals.gridWidth,n.globals.gridHeight,0),n.globals.dom.elForecastMask.appendChild(e.node),e=r.drawRect(0,0,u,n.globals.gridHeight,0),n.globals.dom.elNonForecastMask.appendChild(e.node)),this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:a}),{i:s,realIndex:a,animationDelay:s,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:\"apexcharts-\".concat(i)});if(\"area\"===i)for(var c=t.fillPath({seriesNumber:a}),d=0;d<o.areaPaths.length;d++){var g=r.renderPaths(P(P({},h),{},{pathFrom:o.pathFromArea,pathTo:o.areaPaths[d],stroke:\"none\",strokeWidth:0,strokeLineCap:null,fill:c}));this.elSeries.add(g)}if(n.config.stroke.show&&!this.pointsChart){var u,p=null;\"line\"===i?p=t.fillPath({seriesNumber:a,i:s}):n.config.stroke.fill?(u=n.config.fill,n.config.fill=n.config.stroke.fill,p=t.fillPath({seriesNumber:a,i:s}),n.config.fill=u):p=n.globals.stroke.colors[a];for(var f=0;f<o.linePaths.length;f++){var x=P(P({},h),{},{pathFrom:o.pathFromLine,pathTo:o.linePaths[f],stroke:p,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:\"none\"}),b=r.renderPaths(x);this.elSeries.add(b),0<l.count&&((x=r.renderPaths(x)).node.setAttribute(\"stroke-dasharray\",l.dashArray),l.strokeWidth&&x.node.setAttribute(\"stroke-width\",l.strokeWidth),this.elSeries.add(x),x.attr(\"clip-path\",\"url(#forecastMask\".concat(n.globals.cuid,\")\")),b.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,o=t.y,n=t.pX,r=t.pY,l=t.pathsFrom,h=t.linePaths,c=t.areaPaths,d=t.seriesIndex,g=t.lineYPosition,u=t.xArrj,p=t.yArrj,f=this.w,x=new T(this.ctx),b=this.yRatio,m=l.prevY,y=l.linePath,v=l.areaPath,w=l.pathFromLine,k=l.pathFromArea,A=M.isNumber(f.globals.minYArr[i])?f.globals.minYArr[i]:f.globals.minY,S=1<f.globals.dataPoints?f.globals.dataPoints-1:f.globals.dataPoints,C=0;C<S;C++){var L=void 0===e[a][C+1]||null===e[a][C+1],P=(f.globals.isXNumeric?(P=f.globals.seriesX[i][C+1],s=((P=void 0===f.globals.seriesX[i][C+1]?f.globals.seriesX[i][S-1]:P)-f.globals.minX)/this.xRatio):s+=this.xDivision,g=f.config.chart.stacked&&0<a&&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(-1<f.globals.collapsedSeriesIndices.indexOf(t)){e--;break}return 0<=e?e:0}(a-1)][C+1]:this.zeroY,o=L?g-A/b[this.yaxisIndex]+2*(this.isReversed?A/b[this.yaxisIndex]:0):g-e[a][C+1]/b[this.yaxisIndex]+2*(this.isReversed?e[a][C+1]/b[this.yaxisIndex]:0),u.push(s),p.push(o),this.lineHelpers.calculatePoints({series:e,x:s,y:o,realIndex:i,i:a,j:C,prevY:m})),L=this._createPaths({series:e,i:a,realIndex:i,j:C,x:s,y:o,pX:n,pY:r,linePath:y,areaPath:v,linePaths:h,areaPaths:c,seriesIndex:d}),c=L.areaPaths,h=L.linePaths,n=L.pX,r=L.pY,v=L.areaPath,y=L.linePath;this.appendPathFrom&&(w+=x.line(s,this.zeroY),k+=x.line(s,this.zeroY)),this.handleNullDataPoints(e,P,a,C,i),this._handleMarkersAndLabels({pointsPos:P,series:e,x:s,y:o,prevY:m,i:a,j:C,realIndex:i})}return{yArrj:p,xArrj:u,pathFromArea:k,areaPaths:c,pathFromLine:w,linePaths:h}}},{key:\"_handleMarkersAndLabels\",value:function(t){var e=t.pointsPos,i=(t.series,t.x,t.y,t.prevY,t.i),a=t.j,t=t.realIndex,s=this.w,o=new v(this.ctx),i=(this.pointsChart?this.scatter.draw(this.elSeries,a,{realIndex:t,pointsPos:e,zRatio:this.zRatio,elParent:this.elPointsMain}):(1<s.globals.series[i].length&&this.elPointsMain.node.classList.add(\"apexcharts-element-hidden\"),null!==(s=this.markers.plotChartMarkers(e,t,a+1))&&this.elPointsMain.add(s)),o.drawDataLabel(e,t,a+1,null));null!==i&&this.elDataLabelsWrap.add(i)}},{key:\"_createPaths\",value:function(t){var e=t.series,i=t.i,a=t.realIndex,s=t.j,o=t.x,n=t.y,r=t.pX,l=t.pY,h=t.linePath,c=t.areaPath,d=t.linePaths,g=t.areaPaths,t=t.seriesIndex,u=this.w,p=new T(this.ctx),f=u.config.stroke.curve,x=this.areaBottomY;return\"smooth\"===(f=Array.isArray(u.config.stroke.curve)?Array.isArray(t)?u.config.stroke.curve[t[i]]:u.config.stroke.curve[i]:f)?(t=.35*(o-r),u.globals.hasNullValues?(null!==e[i][s]&&(c=null!==e[i][s+1]?(h=p.move(r,l)+p.curve(r+t,l,o-t,n,o+1,n),p.move(r+1,l)+p.curve(r+t,l,o-t,n,o+1,n)+p.line(o,x)+p.line(r,x)+\"z\"):(h=p.move(r,l),p.move(r,l)+\"z\")),d.push(h),g.push(c)):(h+=p.curve(r+t,l,o-t,n,o,n),c+=p.curve(r+t,l,o-t,n,o,n)),r=o,l=n,s===e[i].length-2&&(c=c+p.curve(r,l,o,n,o,x)+p.move(o,n)+\"z\",u.globals.hasNullValues||(d.push(h),g.push(c)))):(null===e[i][s+1]&&(h+=p.move(o,n),t=u.globals.isXNumeric?(u.globals.seriesX[a][s]-u.globals.minX)/this.xRatio:o-this.xDivision,c=c+p.line(t,x)+p.move(o,n)+\"z\"),null===e[i][s]&&(h+=p.move(o,n),c+=p.move(o,x)),\"stepline\"===f?(h=h+p.line(o,null,\"H\")+p.line(null,n,\"V\"),c=c+p.line(o,null,\"H\")+p.line(null,n,\"V\")):\"straight\"===f&&(h+=p.line(o,n),c+=p.line(o,n)),s===e[i].length-2&&(c=c+p.line(o,x)+p.move(o,n)+\"z\",d.push(h),g.push(c))),{linePaths:d,areaPaths:g,pX:r,pY:l,linePath:h,areaPath:c}}},{key:\"handleNullDataPoints\",value:function(t,e,i,a,s){var o=this.w;(null===t[i][a]&&o.config.markers.showNullDataPoints||1===t[i].length)&&null!==(t=this.markers.plotChartMarkers(e,s,a+1,this.strokeWidth-o.config.markers.strokeWidth/2,!0))&&this.elPointsMain.add(t)}}]),a}();function Yt(t,e,i,a){this.xoffset=t,this.yoffset=e,this.height=a,this.width=i,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],a=this.xoffset,s=this.yoffset,o=Y(t)/this.height,n=Y(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([a,s,a+o,s+t[e]/o]),s+=t[e]/o;else for(e=0;e<t.length;e++)i.push([a,s,a+t[e]/n,s+n]),a+=t[e]/n;return i},this.cutArea=function(t){var e,i;return this.width>=this.height?(e=t/this.height,i=this.width-e,new Yt(this.xoffset+e,this.yoffset,i,this.height)):(e=t/this.width,i=this.height-e,new Yt(this.xoffset,this.yoffset+e,this.width,i))}}function Ft(t,e,i,a,s){a=void 0===a?0:a,s=void 0===s?0:s;var o,n,r=function t(e,i,a,s){var o;var n;if(0===e.length)return void s.push(a.getCoordinates(i));n=a.shortestEdge();o=e[0];Rt(i,o,n)?(i.push(o),t(e.slice(1),i,a,s)):(n=a.cutArea(Y(i),s),s.push(a.getCoordinates(i)),t(e,[],n,s));return s}(function(t,e){for(var i=[],a=e/Y(t),s=0;s<t.length;s++)i[s]=t[s]*a;return i}(t,e*i),[],new Yt(a,s,e,i),[]),l=[];for(o=0;o<r.length;o++)for(n=0;n<r[o].length;n++)l.push(r[o][n]);return l}function Rt(t,e,i){var a;if(0===t.length)return!0;(a=t.slice()).push(e);e=Ht(t,i);return Ht(a,i)<=e}function Ht(t,e){var i=Math.min.apply(Math,t),a=Math.max.apply(Math,t),t=Y(t);return Math.max(Math.pow(e,2)*a/Math.pow(t,2),Math.pow(t,2)/(Math.pow(e,2)*i))}function Dt(t){return t&&t.constructor===Array}function Y(t){for(var e=0,i=0;i<t.length;i++)e+=t[i];return e}window.TreemapSquared={},window.TreemapSquared.generate=function t(e,i,a,s,o){s=void 0===s?0:s,o=void 0===o?0:o;var n,r,l=[],h=[];if(Dt(e[0])){for(r=0;r<e.length;r++)l[r]=function t(e){var i,a=0;if(Dt(e[0]))for(i=0;i<e.length;i++)a+=t(e[i]);else a=Y(e);return a}(e[r]);for(n=Ft(l,i,a,s,o),r=0;r<e.length;r++)h.push(t(e[r],n[r][2]-n[r][0],n[r][3]-n[r][1],n[r][0],n[r][1]))}else h=Ft(e,i,a,s,o);return h};var t,e,Nt=function(){function i(t,e){s(this,i),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Lt(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return n(i,[{key:\"draw\",value:function(u){var e,p=this,f=this.w,x=new T(this.ctx),b=new A(this.ctx),i=x.group({class:\"apexcharts-treemap\"});return f.globals.noData||(e=[],u.forEach(function(t){t=t.map(function(t){return Math.abs(t)});e.push(t)}),this.negRange=this.helpers.checkColorRange(),f.config.series.forEach(function(t,e){t.data.forEach(function(t){Array.isArray(p.labels[e])||(p.labels[e]=[]),p.labels[e].push(t.x)})}),window.TreemapSquared.generate(e,f.globals.gridWidth,f.globals.gridHeight).forEach(function(t,d){var g=x.group({class:\"apexcharts-series apexcharts-treemap-series\",seriesName:M.escapeString(f.globals.seriesNames[d]),rel:d+1,\"data:realIndex\":d}),e=(f.config.chart.dropShadow.enabled&&(e=f.config.chart.dropShadow,new C(p.ctx).dropShadow(i,e,d)),x.group({class:\"apexcharts-data-labels\"}));t.forEach(function(t,e){var i=t[0],a=t[1],s=t[2],o=t[3],n=x.drawRect(i,a,s-i,o-a,0,\"#fff\",1,p.strokeWidth,f.config.plotOptions.treemap.useFillColorAsStroke?l:f.globals.stroke.colors[d]),r=(n.attr({cx:i,cy:a,index:d,i:d,j:e,width:s-i,height:o-a}),p.helpers.getShadeColor(f.config.chart.type,d,e,p.negRange)),l=r.color,l=(void 0!==f.config.series[d].data[e]&&f.config.series[d].data[e].fillColor&&(l=f.config.series[d].data[e].fillColor),b.fillPath({color:l,seriesNumber:d,dataPointIndex:e})),l=(n.node.classList.add(\"apexcharts-treemap-rect\"),n.attr({fill:l}),p.helpers.addListeners(n),{x:i+(s-i)/2,y:a+(o-a)/2,width:0,height:0}),h={x:i,y:a,width:s-i,height:o-a},l=(f.config.chart.animations.enabled&&!f.globals.dataChanged&&(c=1,f.globals.resized||(c=f.config.chart.animations.speed),p.animateTreemap(n,l,h,c)),f.globals.dataChanged&&(c=1,p.dynamicAnim.enabled)&&f.globals.shouldAnimate&&(c=p.dynamicAnim.speed,f.globals.previousPaths[d]&&f.globals.previousPaths[d][e]&&f.globals.previousPaths[d][e].rect&&(l=f.globals.previousPaths[d][e].rect),p.animateTreemap(n,l,h,c)),p.getFontSize(t)),h=f.config.dataLabels.formatter(p.labels[d][e],{value:f.globals.series[d][e],seriesIndex:d,dataPointIndex:e,w:f}),c=p.helpers.calculateDataLabels({text:h,x:(i+s)/2,y:(a+o)/2+p.strokeWidth/2+l/3,i:d,j:e,colorProps:r,fontSize:l,series:u});f.config.dataLabels.enabled&&c&&p.rotateToFitLabel(c,h,i,a,s,o),g.add(n),null!==c&&g.add(c)}),g.add(e),i.add(g)})),i}},{key:\"getFontSize\",value:function(t){var e=this.w;var i,a=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 i=t[2]-t[0],t=t[3]-t[1],i=Math.pow(i*t,.5),Math.min(i/a,parseInt(e.config.dataLabels.style.fontSize,10))}},{key:\"rotateToFitLabel\",value:function(t,e,i,a,s,o){var n=new T(this.ctx),e=n.getTextRects(e);e.width+5>s-i&&e.width<=o-a&&(s=n.rotateAroundCenter(t.node),t.node.setAttribute(\"transform\",\"rotate(-90 \".concat(s.x,\" \").concat(s.y,\")\")))}},{key:\"animateTreemap\",value:function(t,e,i,a){var s=new S(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)})}}]),i}(),Ot=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return n(e,[{key:\"calculateTimeScaleTicks\",value:function(t,e){var n=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var i=new k(this.ctx),a=(e-t)/864e5,i=(this.determineInterval(a),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,a<10/86400?r.globals.disableZoomIn=!0:5e4<a&&(r.globals.disableZoomOut=!0),i.getTimeUnitsfromTimestamp(t,e,this.utc)),t=r.globals.gridWidth/a,e=t/24,s=e/60,o=s/60,l=Math.floor(24*a),h=Math.floor(1440*a),c=Math.floor(86400*a),d=Math.floor(a),g=Math.floor(a/30),a=Math.floor(a/365),i={minMillisecond:i.minMillisecond,minSecond:i.minSecond,minMinute:i.minMinute,minHour:i.minHour,minDate:i.minDate,minMonth:i.minMonth,minYear:i.minYear},u={firstVal:i,currentMillisecond:i.minMillisecond,currentSecond:i.minSecond,currentMinute:i.minMinute,currentHour:i.minHour,currentMonthDate:i.minDate,currentDate:i.minDate,currentMonth:i.minMonth,currentYear:i.minYear,daysWidthOnXAxis:t,hoursWidthOnXAxis:e,minutesWidthOnXAxis:s,secondsWidthOnXAxis:o,numberOfSeconds:c,numberOfMinutes:h,numberOfHours:l,numberOfDays:d,numberOfMonths:g,numberOfYears:a};switch(this.tickInterval){case\"years\":this.generateYearScale(u);break;case\"months\":case\"half_year\":this.generateMonthScale(u);break;case\"months_days\":case\"months_fortnight\":case\"days\":case\"week_days\":this.generateDayScale(u);break;case\"hours\":this.generateHourScale(u);break;case\"minutes_fives\":case\"minutes\":this.generateMinuteScale(u);break;case\"seconds_tens\":case\"seconds_fives\":case\"seconds\":this.generateSecondScale(u)}var p=this.timeScaleArray.map(function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day||1,hour:t.hour||0,month:t.month+1};return\"month\"===t.unit?P(P({},e),{},{day:1,value:t.value+1}):\"day\"===t.unit||\"hour\"===t.unit?P(P({},e),{},{value:t.value}):\"minute\"===t.unit?P(P({},e),{},{value:t.value,minute:t.value}):\"second\"===t.unit?P(P({},e),{},{value:t.value,minute:t.minute,second:t.second}):t});return p.filter(function(t){var e=1,i=Math.ceil(r.globals.gridWidth/120),a=t.value,s=(void 0!==r.config.xaxis.tickAmount&&(i=r.config.xaxis.tickAmount),p.length>i&&(e=Math.floor(p.length/i)),!1),o=!1;switch(n.tickInterval){case\"years\":\"year\"===t.unit&&(s=!0);break;case\"half_year\":e=7,\"year\"===t.unit&&(s=!0);break;case\"months\":e=1,\"year\"===t.unit&&(s=!0);break;case\"months_fortnight\":e=15,\"year\"!==t.unit&&\"month\"!==t.unit||(s=!0),30===a&&(o=!0);break;case\"months_days\":e=10,\"month\"===t.unit&&(s=!0),30===a&&(o=!0);break;case\"week_days\":e=8,\"month\"===t.unit&&(s=!0);break;case\"days\":e=1,\"month\"===t.unit&&(s=!0);break;case\"hours\":\"day\"===t.unit&&(s=!0);break;case\"minutes_fives\":a%5!=0&&(o=!0);break;case\"seconds_tens\":a%10!=0&&(o=!0);break;case\"seconds_fives\":a%5!=0&&(o=!0)}if(\"hours\"===n.tickInterval||\"minutes_fives\"===n.tickInterval||\"seconds_tens\"===n.tickInterval||\"seconds_fives\"===n.tickInterval){if(!o)return!0}else if((a%e==0||s)&&!o)return!0})}},{key:\"recalcDimensionsBasedOnFormat\",value:function(t,e){var i=this.w,t=this.formatDates(t),t=this.removeOverlappingTS(t);i.globals.timescaleLabels=t.slice(),new X(this.ctx).plotCoords()}},{key:\"determineInterval\",value:function(t){var e=24*t,i=60*e;switch(!0){case 5<t/365:this.tickInterval=\"years\";break;case 800<t:this.tickInterval=\"half_year\";break;case 180<t:this.tickInterval=\"months\";break;case 90<t:this.tickInterval=\"months_fortnight\";break;case 60<t:this.tickInterval=\"months_days\";break;case 30<t:this.tickInterval=\"week_days\";break;case 2<t:this.tickInterval=\"days\";break;case 2.4<e:this.tickInterval=\"hours\";break;case 15<i:this.tickInterval=\"minutes_fives\";break;case 5<i:this.tickInterval=\"minutes\";break;case 1<i:this.tickInterval=\"seconds_tens\";break;case 20<60*i:this.tickInterval=\"seconds_fives\";break;default:this.tickInterval=\"seconds\"}}},{key:\"generateYearScale\",value:function(t){for(var e,i=t.firstVal,a=t.currentMonth,s=t.currentYear,o=t.daysWidthOnXAxis,n=t.numberOfYears,t=i.minYear,r=0,l=new k(this.ctx),h=(1<i.minDate||0<i.minMonth?(e=l.determineRemainingDaysOfYear(i.minYear,i.minMonth,i.minDate),r=(l.determineDaysOfYear(i.minYear)-e+1)*o,t=i.minYear+1,this.timeScaleArray.push({position:r,value:t,unit:\"year\",year:t,month:M.monthMod(a+1)})):1===i.minDate&&0===i.minMonth&&this.timeScaleArray.push({position:r,value:t,unit:\"year\",year:s,month:M.monthMod(a+1)}),t),c=r,d=0;d<n;d++)c=l.determineDaysOfYear(++h-1)*o+c,this.timeScaleArray.push({position:c,value:h,unit:\"year\",year:h,month:1})}},{key:\"generateMonthScale\",value:function(t){for(var e,i=t.firstVal,a=t.currentMonthDate,s=t.currentMonth,o=t.currentYear,n=t.daysWidthOnXAxis,r=t.numberOfMonths,t=s,l=0,h=new k(this.ctx),c=\"month\",d=0,g=(1<i.minDate?(l=(h.determineDaysOfMonths(s+1,i.minYear)-a+1)*n,t=M.monthMod(s+1),i=o+d,a=M.monthMod(t),0===(e=t)&&(c=\"year\",e=i,i+=d+=a=1),this.timeScaleArray.push({position:l,value:e,unit:c,year:i,month:a})):this.timeScaleArray.push({position:l,value:t,unit:c,year:o,month:M.monthMod(s)}),t+1),u=l,p=0;p<r;p++){0===(g=M.monthMod(g))?(c=\"year\",d+=1):c=\"month\";var f=this._getYear(o,g,d),u=h.determineDaysOfMonths(g,f)*n+u;this.timeScaleArray.push({position:u,value:0===g?f:g,unit:c,year:f,month:0===g?1:g}),g++}}},{key:\"generateDayScale\",value:function(t){for(var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.hoursWidthOnXAxis,o=t.numberOfDays,n=new k(this.ctx),r=\"day\",t=e.minDate+1,l=t,h=function(t,e,i){return n.determineDaysOfMonths(e+1,i)<t?(r=\"month\",d=e+(l=1)):e},c=(24-e.minHour)*s,d=t,g=h(l,i,a),u=(0===e.minHour&&1===e.minDate?(c=0,d=M.monthMod(e.minMonth),r=\"month\",l=e.minDate,o++):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(c=0,t=e.minDate,d=l=t,g=h(l,i,a)),this.timeScaleArray.push({position:c,value:d,unit:r,year:this._getYear(a,g,0),month:M.monthMod(g),day:l}),c),p=0;p<o;p++){var r=\"day\",g=h(l+=1,g,this._getYear(a,g,0)),f=this._getYear(a,g,0),u=24*s+u,x=1===l?M.monthMod(g):l;this.timeScaleArray.push({position:u,value:x,unit:r,year:f,month:M.monthMod(g),day:x})}}},{key:\"generateHourScale\",value:function(t){for(var e=t.firstVal,i=t.currentDate,a=t.currentMonth,s=t.currentYear,o=t.minutesWidthOnXAxis,n=t.numberOfHours,r=new k(this.ctx),l=\"hour\",h=function(t,e){return r.determineDaysOfMonths(e+1,s)<t?e+1:e},c=60-(e.minMinute+e.minSecond/60),t=c*o,d=e.minHour+1,g=d+1,u=(60==c&&(t=0,g=(d=e.minHour)+1),i),p=h(u,a),f=(this.timeScaleArray.push({position:t,value:d,unit:l,day:u,hour:g,year:s,month:M.monthMod(p)}),t),x=0;x<n;x++){l=\"hour\",24<=g&&(g=0,l=\"day\",b=u+=1,m=p,r.determineDaysOfMonths(m+1,s)<b&&(m+=u=1),p=h(u,p={month:m,date:u}.month));var b=this._getYear(s,p,0),f=0===g&&0===x?c*o:60*o+f,m=0===g?u:g;this.timeScaleArray.push({position:f,value:m,unit:l,hour:g,day:u,year:b,month:M.monthMod(p)}),g++}}},{key:\"generateMinuteScale\",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,o=t.currentDate,n=t.currentMonth,r=t.currentYear,l=t.minutesWidthOnXAxis,h=t.secondsWidthOnXAxis,c=t.numberOfMinutes,d=a+1,g=o,u=n,p=r,f=s,x=(60-i-e/1e3)*h,b=0;b<c;b++)60<=d&&(d=0,24===(f+=1))&&(f=0),this.timeScaleArray.push({position:x,value:d,unit:\"minute\",hour:f,minute:d,day:g,year:this._getYear(p,u,0),month:M.monthMod(u)}),x+=l,d++}},{key:\"generateSecondScale\",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,o=t.currentDate,n=t.currentMonth,r=t.currentYear,l=t.secondsWidthOnXAxis,h=t.numberOfSeconds,c=i+1,d=a,g=o,u=n,p=r,f=s,x=(1e3-e)/1e3*l,b=0;b<h;b++)60<=c&&(c=0,60<=++d)&&(d=0,24===++f)&&(f=0),this.timeScaleArray.push({position:x,value:c,unit:\"second\",hour:f,minute:d,second:c,day:g,year:this._getYear(p,u,0),month:M.monthMod(u)}),x+=l,c++}},{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||\"1\")).slice(-2),\"hour\"===t.unit?i+=\"hour\"===t.unit?\"T\"+(\"0\"+e).slice(-2):\"T00\":i+=\"T\"+(\"0\"+(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 r=this,l=this.w;return t.map(function(t){var e,i,a=t.value.toString(),s=new k(r.ctx),o=r.createRawDateString(t,a),n=s.getDate(s.parseDate(o));return r.utc||(n=s.getDate(s.parseDateWithTimezone(o))),a=void 0===l.config.xaxis.labels.format?(e=\"dd MMM\",i=l.config.xaxis.labels.datetimeFormatter,\"year\"===t.unit&&(e=i.year),\"month\"===t.unit&&(e=i.month),\"day\"===t.unit&&(e=i.day),\"hour\"===t.unit&&(e=i.hour),\"minute\"===t.unit&&(e=i.minute),\"second\"===t.unit&&(e=i.second),s.formatDate(n,e)):s.formatDate(n,l.config.xaxis.labels.format),{dateString:o,position:t.position,value:a,unit:t.unit,year:t.year,month:t.month}})}},{key:\"removeOverlappingTS\",value:function(a){var s,o=this,n=new T(this.ctx),r=!1,l=(0<a.length&&a[0].value&&a.every(function(t){return t.value.length===a[0].value.length})&&(r=!0,s=n.getTextRects(a[0].value).width),0);return a.map(function(t,e){var i;return 0<e&&o.w.config.xaxis.labels.hideOverlappingLabels?(i=r?s:n.getTextRects(a[l].value).width,a[l].position+i+10<t.position?(l=e,t):null):t}).filter(function(t){return null!==t})}},{key:\"_getYear\",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),e}(),Wt=function(){function i(t,e){s(this,i),this.ctx=e,this.w=e.w,this.el=t}return n(i,[{key:\"setupElements\",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=-1<[\"line\",\"area\",\"bar\",\"rangeBar\",\"candlestick\",\"boxPlot\",\"scatter\",\"bubble\",\"radar\",\"heatmap\",\"treemap\"].indexOf(i),t.xyCharts=-1<[\"line\",\"area\",\"bar\",\"rangeBar\",\"candlestick\",\"boxPlot\",\"scatter\",\"bubble\"].indexOf(i),t.isBarHorizontal=(\"bar\"===e.chart.type||\"rangeBar\"===e.chart.type||\"boxPlot\"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=\".apexcharts\"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement(\"div\"),T.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(a,t){var e,s=this.w,o=s.config,n=s.globals,r={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]},u={series:[],i:[]},i=(n.series.map(function(t,e){var i=0;void 0!==a[e].type?(\"column\"===a[e].type||\"bar\"===a[e].type?(1<n.series.length&&o.plotOptions.bar.horizontal&&console.warn(\"Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`\"),d.series.push(t),d.i.push(e),i++,s.globals.columnSeries=d.series):\"area\"===a[e].type?(l.series.push(t),l.i.push(e),i++):\"line\"===a[e].type?(r.series.push(t),r.i.push(e),i++):\"scatter\"===a[e].type?(h.series.push(t),h.i.push(e)):\"bubble\"===a[e].type?(c.series.push(t),c.i.push(e),i++):\"candlestick\"===a[e].type?(g.series.push(t),g.i.push(e),i++):\"boxPlot\"===a[e].type?(u.series.push(t),u.i.push(e),i++):console.warn(\"You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble\"),1<i&&(n.comboCharts=!0)):(r.series.push(t),r.i.push(e))}),new Xt(this.ctx,t)),p=new Ct(this.ctx,t),f=(this.ctx.pie=new Tt(this.ctx),new zt(this.ctx)),x=(this.ctx.rangeBar=new m(this.ctx,t),new It(this.ctx)),b=[];if(n.comboCharts)0<l.series.length&&b.push(i.draw(l.series,\"area\",l.i)),0<d.series.length&&(s.config.chart.stacked?(e=new St(this.ctx,t),b.push(e.draw(d.series,d.i))):(this.ctx.bar=new L(this.ctx,t),b.push(this.ctx.bar.draw(d.series,d.i)))),0<r.series.length&&b.push(i.draw(r.series,\"line\",r.i)),0<g.series.length&&b.push(p.draw(g.series,g.i)),0<u.series.length&&b.push(p.draw(u.series,u.i)),0<h.series.length&&(e=new Xt(this.ctx,t,!0),b.push(e.draw(h.series,\"scatter\",h.i))),0<c.series.length&&(p=new Xt(this.ctx,t,!0),b.push(p.draw(c.series,\"bubble\",c.i)));else switch(o.chart.type){case\"line\":b=i.draw(n.series,\"line\");break;case\"area\":b=i.draw(n.series,\"area\");break;case\"bar\":b=(o.chart.stacked?new St(this.ctx,t):(this.ctx.bar=new L(this.ctx,t),this.ctx.bar)).draw(n.series);break;case\"candlestick\":b=new Ct(this.ctx,t).draw(n.series);break;case\"boxPlot\":b=new Ct(this.ctx,t).draw(n.series);break;case\"rangeBar\":b=this.ctx.rangeBar.draw(n.series);break;case\"heatmap\":b=new Pt(this.ctx,t).draw(n.series);break;case\"treemap\":b=new Nt(this.ctx,t).draw(n.series);break;case\"pie\":case\"donut\":case\"polarArea\":b=this.ctx.pie.draw(n.series);break;case\"radialBar\":b=f.draw(n.series);break;case\"radar\":b=x.draw(n.series);break;default:b=i.draw(n.series)}return b}},{key:\"setSVGDimensions\",value:function(){var t=this.w.globals,e=this.w.config,i=(t.svgWidth=e.chart.width,t.svgHeight=e.chart.height,M.getDimensions(this.el)),a=e.chart.width.toString().split(/[0-9]+/g).pop(),i=(\"%\"===a?M.isNumber(i[0])&&(0===i[0].width&&(i=M.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):\"px\"!==a&&\"\"!==a||(t.svgWidth=parseInt(e.chart.width,10)),e.chart.height.toString().split(/[0-9]+/g).pop());\"auto\"!==t.svgHeight&&\"\"!==t.svgHeight?\"%\"===i?(a=M.getDimensions(this.el.parentNode),t.svgHeight=a[1]*parseInt(e.chart.height,10)/100):t.svgHeight=parseInt(e.chart.height,10):t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2,t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),T.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),\"%\"!==i&&(a=!e.chart.sparkline.enabled&&t.axisCharts?e.chart.parentHeightOffset:0,t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+a+\"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=t.translateX;T.setAttrs(t.dom.elGraphical.node,{transform:\"translate(\"+i+\", \"+e+\")\"})}},{key:\"resizeNonAxisCharts\",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15,s=(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 pt(this.ctx).legendHelpers.getLegendBBox().clwh+10),t.globals.dom.baseEl.querySelector(\".apexcharts-radialbar, .apexcharts-pie\")),o=2.05*t.globals.radialSize,s=(s&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle&&(o=(s=M.getBoundingClientRect(s)).bottom,s=s.bottom-s.top,o=Math.max(2.05*t.globals.radialSize,s)),o+e.translateY+i+a);e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute(\"height\",s),t.config.chart.height&&0<String(t.config.chart.height).indexOf(\"%\")||(e.dom.elWrap.style.height=s+\"px\",T.setAttrs(e.dom.Paper.node,{height:s}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=s+\"px\")}},{key:\"coreCalculations\",value:function(){new tt(this.ctx).init()}},{key:\"resetGlobals\",value:function(){function t(){return e.w.config.series.map(function(t){return[]})}var e=this,i=new $,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=t(),a.seriesYvalues=t()}},{key:\"isMultipleY\",value:function(){if(this.w.config.yaxis.constructor===Array&&1<this.w.config.yaxis.length)return this.w.globals.isMultipleYAxis=!0}},{key:\"xySettings\",value:function(){var t,e=null,i=this.w;return i.globals.axisCharts&&(\"back\"===i.config.xaxis.crosshairs.position&&new ot(this.ctx).drawXCrosshairs(),\"back\"===i.config.yaxis[0].crosshairs.position&&new ot(this.ctx).drawYCrosshairs(),\"datetime\"===i.config.xaxis.type&&void 0===i.config.xaxis.labels.formatter&&(this.ctx.timeScale=new Ot(this.ctx),t=[],isFinite(i.globals.minX)&&isFinite(i.globals.maxX)&&!i.globals.isBarHorizontal?t=this.ctx.timeScale.calculateTimeScaleTicks(i.globals.minX,i.globals.maxX):i.globals.isBarHorizontal&&(t=this.ctx.timeScale.calculateTimeScaleTicks(i.globals.minY,i.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(t)),e=new I(this.ctx).getCalculatedRatios()),e}},{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 i,a=this,o=this.w;o.config.chart.brush.enabled&&\"function\"!=typeof o.config.chart.events.selection&&((i=o.config.chart.brush.targets||[o.config.chart.brush.target]).forEach(function(t){var e=ApexCharts.getChartByID(t);e.w.globals.brushSource=a.ctx,\"function\"!=typeof e.w.config.chart.events.zoomed&&(e.w.config.chart.events.zoomed=function(){a.updateSourceChart(e)}),\"function\"!=typeof e.w.config.chart.events.scrolled&&(e.w.config.chart.events.scrolled=function(){a.updateSourceChart(e)})}),o.config.chart.events.selection=function(t,e){i.forEach(function(t){var a=ApexCharts.getChartByID(t),s=M.clone(o.config.yaxis),t=(o.config.chart.brush.autoScaleYaxis&&1===a.w.globals.series.length&&(s=new E(a).autoScaleY(a,s,e)),a.w.config.yaxis.reduce(function(t,e,i){return[].concat(g(t),[P(P({},a.w.config.yaxis[i]),{},{min:s[0].min,max:s[0].max})])},[]));a.ctx.updateHelpers._updateOptions({xaxis:{min:e.xaxis.min,max:e.xaxis.max},yaxis:t},!1,!1,!1,!1)})})}}]),i}(),Bt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"_updateOptions\",value:function(h){var c=this,d=1<arguments.length&&void 0!==arguments[1]&&arguments[1],g=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],t=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],u=4<arguments.length&&void 0!==arguments[4]&&arguments[4];return new Promise(function(r){var l=[c.ctx];t&&(l=c.ctx.getSyncedCharts()),c.ctx.w.globals.isExecCalled&&(l=[c.ctx],c.ctx.w.globals.isExecCalled=!1),l.forEach(function(t,e){var i=t.w;if(i.globals.shouldAnimate=g,d||(i.globals.resized=!0,i.globals.dataChanged=!0,g&&t.series.getPreviousPaths()),h&&\"object\"===y(h)&&(t.config=new p(h),h=I.extendArrayProps(t.config,h,i),t.w.globals.chartID!==c.ctx.w.globals.chartID&&delete h.series,i.config=M.extend(i.config,h),u)&&(i.globals.lastXAxis=h.xaxis?M.clone(h.xaxis):[],i.globals.lastYAxis=h.yaxis?M.clone(h.yaxis):[],i.globals.initialConfig=M.extend({},i.config),i.globals.initialSeries=M.clone(i.config.series),h.series)){for(var a=0;a<i.globals.collapsedSeriesIndices.length;a++){var s=i.config.series[i.globals.collapsedSeriesIndices[a]];i.globals.collapsedSeries[a].data=i.globals.axisCharts?s.data.slice():s}for(var o=0;o<i.globals.ancillaryCollapsedSeriesIndices.length;o++){var n=i.config.series[i.globals.ancillaryCollapsedSeriesIndices[o]];i.globals.ancillaryCollapsedSeries[o].data=i.globals.axisCharts?n.data.slice():n}t.series.emptyCollapsedSeries(i.config.series)}return t.update(h).then(function(){e===l.length-1&&r(t)})})})}},{key:\"_updateSeries\",value:function(a,s){var o=this,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return new Promise(function(t){var e,i=o.w;return i.globals.shouldAnimate=s,i.globals.dataChanged=!0,s&&o.ctx.series.getPreviousPaths(),i.globals.axisCharts?(0===(e=a.map(function(t,e){return o._extendSeries(t,e)})).length&&(e=[{data:[]}]),i.config.series=e):i.config.series=a.slice(),n&&(i.globals.initialSeries=M.clone(i.config.series)),o.ctx.update().then(function(){t(o.ctx)})})}},{key:\"_extendSeries\",value:function(t,e){var i=this.w,a=i.config.series[e];return P(P({},i.config.series[e]),{},{name:t.name||a&&a.name,color:t.color||a&&a.color,type:t.type||a&&a.type,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 T(this.ctx).pathMouseDown(a,null),a.node||null):(console.warn(\"toggleDataPointSelection: Element not found\"),null)}},{key:\"forceXAxisUpdate\",value:function(e){var t,i=this.w;return[\"min\",\"max\"].forEach(function(t){void 0!==e.xaxis[t]&&(i.config.xaxis[t]=e.xaxis[t],i.globals.lastXAxis[t]=e.xaxis[t])}),e.xaxis.categories&&e.xaxis.categories.length&&(i.config.xaxis.categories=e.xaxis.categories),i.config.xaxis.convertedCatToNumeric&&(t=new c(e),e=t.convertCatToNumericXaxis(e,this.ctx)),e}},{key:\"forceYAxisUpdate\",value:function(i){var t=this.w;return t.config.chart.stacked&&\"100%\"===t.config.chart.stackType&&(Array.isArray(i.yaxis)?i.yaxis.forEach(function(t,e){i.yaxis[e].min=0,i.yaxis[e].max=100}):(i.yaxis.min=0,i.yaxis.max=100)),i}},{key:\"revertDefaultAxisMinMax\",value:function(t){function i(t){void 0!==o[t]&&(s.config.yaxis[t].min=o[t].min,s.config.yaxis[t].max=o[t].max)}var a=this,s=this.w,e=s.globals.lastXAxis,o=s.globals.lastYAxis;t&&t.xaxis&&(e=t.xaxis),t&&t.yaxis&&(o=t.yaxis),s.config.xaxis.min=e.min,s.config.xaxis.max=e.max;s.config.yaxis.map(function(t,e){s.globals.zoomed||void 0!==o[e]?i(e):void 0!==a.ctx.opts.yaxis[e]&&(t.min=a.ctx.opts.yaxis[e].min,t.max=a.ctx.opts.yaxis[e].max)})}}]),e}();function Vt(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 Gt(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 jt(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]=+t[4]/3+2*t[2]/3,t[3]=+t[3]/3+2*t[1]/3,t[2]=+this.pos[1]/3+2*t[2]/3,t[1]=+this.pos[0]/3+2*t[1]/3;break;case\"A\":t=(e=function(t,e){var i,a,s,o,n,r,l,h,c,d,g,u,p,f,x,b,m,y,v,w=Math.abs(e[1]),k=Math.abs(e[2]),A=e[3]%360,S=e[4],C=e[5],L=e[6],P=e[7],e=new SVG.Point(t),t=new SVG.Point(L,P),M=[];if(0===w||0===k||e.x===t.x&&e.y===t.y)return[[\"C\",e.x,e.y,t.x,t.y,t.x,t.y]];n=new SVG.Point((e.x-t.x)/2,(e.y-t.y)/2).transform((new SVG.Matrix).rotate(A)),1<(n=n.x*n.x/(w*w)+n.y*n.y/(k*k))&&(n=Math.sqrt(n),w*=n,k*=n);i=(new SVG.Matrix).rotate(A).scale(1/w,1/k).rotate(-A),e=e.transform(i),t=t.transform(i),n=[t.x-e.x,t.y-e.y],s=n[0]*n[0]+n[1]*n[1],o=Math.sqrt(s),n[0]/=o,n[1]/=o,o=s<4?Math.sqrt(1-s/4):0,S===C&&(o*=-1);a=new SVG.Point((t.x+e.x)/2+o*-n[1],(t.y+e.y)/2+o*n[0]),s=new SVG.Point(e.x-a.x,e.y-a.y),S=new SVG.Point(t.x-a.x,t.y-a.y),o=Math.acos(s.x/Math.sqrt(s.x*s.x+s.y*s.y)),s.y<0&&(o*=-1);n=Math.acos(S.x/Math.sqrt(S.x*S.x+S.y*S.y)),S.y<0&&(n*=-1);C&&n<o&&(n+=2*Math.PI);!C&&o<n&&(n-=2*Math.PI);for(l=Math.ceil(2*Math.abs(o-n)/Math.PI),c=[],r=(n-(d=o))/l,h=4*Math.tan(r/4)/3,f=0;f<=l;f++)u=Math.cos(d),g=Math.sin(d),p=new SVG.Point(a.x+u,a.y+g),c[f]=[new SVG.Point(p.x+h*g,p.y-h*u),p,new SVG.Point(p.x-h*g,p.y+h*u)],d+=r;for(c[0][0]=c[0][1].clone(),c[c.length-1][2]=c[c.length-1][1].clone(),i=(new SVG.Matrix).rotate(A).scale(w,k).rotate(-A),f=0,x=c.length;f<x;f++)c[f][0]=c[f][0].transform(i),c[f][1]=c[f][1].transform(i),c[f][2]=c[f][2].transform(i);for(f=1,x=c.length;f<x;f++)p=c[f-1][2],b=p.x,m=p.y,p=c[f][0],y=p.x,v=p.y,p=c[f][1],L=p.x,P=p.y,M.push([\"C\",b,m,y,v,L,P]);return M}(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 _t(t,e){if(!1!==e)for(var i=e,a=t.length;i<a;++i)if(\"M\"==t[i][0])return i;return!1}function F(t){(this.el=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){e=\"string\"!=typeof t?t:e[t];return i?e/2:e},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=\"undefined\"!=typeof window?window:void 0,e=function(s,o){var h=(void 0!==this?this:s).SVG=function(t){if(h.supported)return t=new h.Doc(t),h.parser.draw||h.prepare(),t};if(h.ns=\"http://www.w3.org/2000/svg\",h.xmlns=\"http://www.w3.org/2000/xmlns/\",h.xlink=\"http://www.w3.org/1999/xlink\",h.svgjs=\"http://svgjs.dev\",h.supported=!0,!h.supported)return!1;h.did=1e3,h.eid=function(t){return\"Svgjs\"+r(t)+h.did++},h.create=function(t){var e=o.createElementNS(this.ns,t);return e.setAttribute(\"id\",this.eid(t)),e},h.extend=function(){for(var t=[].slice.call(arguments),e=t.pop(),i=t.length-1;0<=i;i--)if(t[i])for(var a in e)t[i].prototype[a]=e[a];h.Set&&h.Set.inherit&&h.Set.inherit()},h.invent=function(t){var e=\"function\"==typeof t.create?t.create:function(){this.constructor.call(this,h.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&h.extend(e,t.extend),t.construct&&h.extend(t.parent||h.Container,t.construct),e},h.adopt=function(t){var e;return t?t.instance||((e=\"svg\"==t.nodeName?new(t.parentNode instanceof s.SVGElement?h.Nested:h.Doc):\"linearGradient\"==t.nodeName?new h.Gradient(\"linear\"):\"radialGradient\"==t.nodeName?new h.Gradient(\"radial\"):h[r(t.nodeName)]?new h[r(t.nodeName)]:new h.Element(t)).type=t.nodeName,((e.node=t).instance=e)instanceof h.Doc&&e.namespace().defs(),e.setData(JSON.parse(t.getAttribute(\"svgjs:data\"))||{}),e):null},h.prepare=function(){var t=o.getElementsByTagName(\"body\")[0],e=(t?new h.Doc(t):h.adopt(o.documentElement).nested()).size(2,0);h.parser={body:t||o.documentElement,draw:e.style(\"opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden\").node,poly:e.polyline().node,path:e.path().node,native:h.create(\"svg\")}},h.parser={native:h.create(\"svg\")},o.addEventListener(\"DOMContentLoaded\",function(){h.parser.draw||h.prepare()},!1),h.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},h.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(t){return this.filter(t,function(t){return t instanceof s.SVGElement})}},h.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\"}},h.Color=function(t){var e,i;this.r=0,this.g=0,this.b=0,t&&(\"string\"==typeof t?h.regex.isRgb.test(t)?(e=h.regex.rgb.exec(t.replace(h.regex.whitespace,\"\")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):h.regex.isHex.test(t)&&(e=h.regex.hex.exec(4==(i=t).length?[\"#\",i.substring(1,2),i.substring(1,2),i.substring(2,3),i.substring(2,3),i.substring(3,4),i.substring(3,4)].join(\"\"):i),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):\"object\"===y(t)&&(this.r=t.r,this.g=t.g,this.b=t.b))},h.extend(h.Color,{toString:function(){return this.toHex()},toHex:function(){return\"#\"+d(this.r)+d(this.g)+d(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 h.Color(t),this},at:function(t){return this.destination?new h.Color({r:~~(this.r+(this.destination.r-this.r)*(t=t<0?0:1<t?1:t)),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)}):this}}),h.Color.test=function(t){return h.regex.isHex.test(t+=\"\")||h.regex.isRgb.test(t)},h.Color.isRgb=function(t){return t&&\"number\"==typeof t.r&&\"number\"==typeof t.g&&\"number\"==typeof t.b},h.Color.isColor=function(t){return h.Color.isRgb(t)||h.Color.test(t)},h.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},h.extend(h.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)}}),h.PointArray=function(t,e){h.Array.call(this,t,e||[[0,0]])},h.PointArray.prototype=new h.Array,h.PointArray.prototype.constructor=h.PointArray;for(var l={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\"]}},t=\"mlhvqtcsaz\".split(\"\"),e=0,i=t.length;e<i;++e)l[t[e]]=function(o){return function(t,e,i){if(\"H\"==o)t[0]=t[0]+e.x;else if(\"V\"==o)t[0]=t[0]+e.y;else if(\"A\"==o)t[5]=t[5]+e.x,t[6]=t[6]+e.y;else for(var a=0,s=t.length;a<s;++a)t[a]=t[a]+(a%2?e.y:e.x);if(l&&\"function\"==typeof l[o])return l[o](t,e,i)}}(t[e].toUpperCase());h.PathArray=function(t,e){h.Array.call(this,t,e||[[\"M\",0,0]])},h.PathArray.prototype=new h.Array,h.PathArray.prototype.constructor=h.PathArray,h.extend(h.PathArray,{toString:function(){for(var t=this.value,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=(a+=\" \")+t[e][3]+\" \")+t[e][4],null!=t[e][5])&&(a=(a=(a+=\" \")+t[e][5]+\" \")+t[e][6],null!=t[e][7])&&(a=(a+=\" \")+t[e][7]);return a+\" \"},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,i=this.destination.value,a=[],s=new h.PathArray,o=0,n=e.length;o<n;o++){a[o]=[e[o][0]];for(var r=1,l=e[o].length;r<l;r++)a[o][r]=e[o][r]+(i[o][r]-e[o][r])*t;\"A\"===a[o][0]&&(a[o][4]=+(0!=a[o][4]),a[o][5]=+(0!=a[o][5]))}return s.value=a,s},parse:function(t){if(t instanceof h.PathArray)return t.valueOf();for(var e,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},a=(t=\"string\"==typeof t?t.replace(h.regex.numbersWithDots,c).replace(h.regex.pathLetters,\" $& \").replace(h.regex.hyphen,\"$1 -\").trim().split(h.regex.delimiter):t.reduce(function(t,e){return[].concat.call(t,e)},[]),[]),s=new h.Point,o=new h.Point,n=0,r=t.length;h.regex.isPathLetter.test(t[n])?(e=t[n],++n):\"M\"==e?e=\"L\":\"m\"==e&&(e=\"l\"),a.push(l[e].call(null,t.slice(n,n+=i[e.toUpperCase()]).map(parseFloat),s,o)),n<r;);return a},bbox:function(){return h.parser.draw||h.prepare(),h.parser.path.setAttribute(\"d\",this.toString()),h.parser.path.getBBox()}}),h.Number=h.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(h.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),\"%\"==e[5]?this.value/=100:\"s\"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof h.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 h.Number(t),new h.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new h.Number(t),new h.Number(this-t,this.unit||t.unit)},times:function(t){return t=new h.Number(t),new h.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new h.Number(t),new h.Number(this/t,this.unit||t.unit)},to:function(t){var e=new h.Number(this);return\"string\"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new h.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new h.Number(this.destination).minus(this).times(t).plus(this):this}}}),h.Element=h.invent({create:function(t){this._stroke=h.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,(this.node.instance=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){t=g(this,t,e);return this.width(new h.Number(t.width)).height(new h.Number(t.height))},clone:function(t){this.writeDataToDom();var e=f(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(h.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){var e;return this.hasClass(t)||((e=this.classes()).push(t),this.attr(\"class\",e.join(\" \"))),this},removeClass:function(e){return this.hasClass(e)&&this.attr(\"class\",this.classes().filter(function(t){return t!=e}).join(\" \")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return h.get(this.attr(t))},parent:function(t){var e;if(!(e=this).node.parentNode)return null;if(e=h.adopt(e.node.parentNode),!t)return e;for(;e&&e.node instanceof s.SVGElement;){if(\"string\"==typeof t?e.matches(t):e instanceof t)return e;if(!e.node.parentNode||\"#document\"==e.node.parentNode.nodeName)return null;e=h.adopt(e.node.parentNode)}},doc:function(){return this instanceof h.Doc?this:this.parent(h.Doc)},parents:function(t){for(var e=[],i=this;(i=i.parent(t))&&i.node&&(e.push(i),i.parent););return e},matches:function(t){return((e=this.node).matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t);var e},native:function(){return this.node},svg:function(t){var e=o.createElement(\"svg\");if(!(t&&this instanceof h.Parent))return e.appendChild(t=o.createElement(\"svg\")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),e.innerHTML.replace(/^<svg>/,\"\").replace(/<\\/svg>$/,\"\");e.innerHTML=\"<svg>\"+t.replace(/\\n/,\"\").replace(/<([\\w:-]+)([^<]+?)\\/>/g,\"<$1$2></$1>\")+\"</svg>\";for(var i=0,a=e.firstChild.childNodes.length;i<a;i++)this.node.appendChild(e.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 this instanceof t}}}),h.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)}},h.morph=function(i){return function(t,e){return new h.MorphObj(t,e).at(i)}},h.Situation=h.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new h.Number(t.duration).valueOf(),this.delay=new h.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={}}}),h.FX=h.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,i){\"object\"===y(t)&&(e=t.ease,i=t.delay,t=t.duration);t=new h.Situation({duration:t||1e3,delay:i||0,ease:h.easing[e||\"-\"]||e});return this.queue(t),this},target:function(t){return t&&t instanceof h.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=s.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){s.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 h.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 h.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(!e.init){for(var i in e.animations){t=this.target()[i](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[i])||(e.animations[i]=[e.animations[i]]);for(var a=t.length;a--;)e.animations[i][a]instanceof h.Number&&(t[a]=new h.Number(t[a])),e.animations[i][a]=t[a].morph(e.animations[i][a])}for(var i in e.attrs)e.attrs[i]=new h.MorphObj(this.target().attr(i),e.attrs[i]);for(var i in e.styles)e.styles[i]=new h.MorphObj(this.target().style(i),e.styles[i]);e.initialTransformation=this.target().matrixify(),e.init=!0}return 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(e){function i(t){t.detail.situation==a&&(e.call(this,a),this.off(\"finished.fx\",i))}var a=this.last();return this.target().on(\"finished.fx\",i),this._callStart()},during:function(e){function t(t){t.detail.situation==i&&e.call(this,t.detail.pos,h.morph(t.detail.pos),t.detail.eased,i)}var i=this.last();return this.target().off(\"during.fx\",t).on(\"during.fx\",t),this.after(function(){this.off(\"during.fx\",t)}),this._callStart()},afterAll:function(e){function i(t){e.call(this),this.off(\"allfinished.fx\",i)}return this.target().off(\"allfinished.fx\",i).on(\"allfinished.fx\",i),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){t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),i=Math.floor(t),!0===this.situation.loops||i<this.situation.loops?(this.pos=t-i,e=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,e=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-e)%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 e,i,a,s=this.situation.ease(this.pos);for(a in this.situation.once)a>this.lastPos&&a<=s&&(this.situation.once[a].call(this.target(),this.pos,s),delete this.situation.once[a]);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},eachAt:function(){var e=this,t=this.target(),i=this.situation;for(s in i.animations)a=[].concat(i.animations[s]).map(function(t){return\"string\"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t[s].apply(t,a);for(s in i.attrs)a=[s].concat(i.attrs[s]).map(function(t){return\"string\"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t.attr.apply(t,a);for(s in i.styles)a=[s].concat(i.styles[s]).map(function(t){return\"string\"!=typeof t&&t.at?t.at(i.ease(e.pos),e.pos):t}),t.style.apply(t,a);if(i.transforms.length){for(var a=i.initialTransformation,s=0,o=i.transforms.length;s<o;s++){var n=i.transforms[s];n instanceof h.Matrix?a=n.relative?a.multiply((new h.Matrix).morph(n).at(i.ease(this.pos))):a.morph(n).at(i.ease(this.pos)):(n.relative||n.undo(a.extract()),a=a.multiply(n.at(i.ease(this.pos))))}t.matrix(a)}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:h.Element,construct:{animate:function(t,e,i){return(this.fx||(this.fx=new h.FX(this))).animate(t,e,i)},delay:function(t){return(this.fx||(this.fx=new h.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}}}),h.MorphObj=h.invent({create:function(t,e){return h.Color.isColor(e)?new h.Color(t).morph(e):h.regex.delimiter.test(t)?new(h.regex.pathLetters.test(t)?h.PathArray:h.Array)(t).morph(e):h.regex.numberAndUnit.test(e)?new h.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}}}),h.extend(h.FX,{attr:function(t,e,i){if(\"object\"===y(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))}}),h.Box=h.invent({create:function(t,e,i,a){if(!(\"object\"!==y(t)||t instanceof h.Element))return h.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=i,this.height=a);t=this;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}}),h.BBox=h.invent({create:function(e){if(h.Box.apply(this,[].slice.call(arguments)),e instanceof h.Element){var i,a;try{if(!o.documentElement.contains){for(var t=e.node;t.parentNode;)t=t.parentNode;if(t!=o)throw new Error(\"Element not in the dom\")}i=e.node.getBBox()}catch(t){e instanceof h.Shape?(h.parser.draw||h.prepare(),(a=e.clone(h.parser.draw.instance).show())&&a.node&&\"function\"==typeof a.node.getBBox&&(i=a.node.getBBox()),a&&\"function\"==typeof a.remove&&a.remove()):i={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}h.Box.call(this,i)}},inherit:h.Box,parent:h.Element,construct:{bbox:function(){return new h.BBox(this)}}}),h.BBox.prototype.constructor=h.BBox,h.Matrix=h.invent({create:function(t){var e=p([1,0,0,1,0,0]);t=null===t?e:t instanceof h.Element?t.matrixify():\"string\"==typeof t?p(t.split(h.regex.delimiter).map(parseFloat)):6==arguments.length?p([].slice.call(arguments)):Array.isArray(t)?p(t):t&&\"object\"===y(t)?t:e;for(var i=m.length-1;0<=i;--i)this[m[i]]=(null!=t[m[i]]?t:e)[m[i]]},extend:{extract:function(){var t=u(this,0,1),t=(u(this,1,0),180/Math.PI*Math.atan2(t.y,t.x)-90);return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new h.Matrix(this)}},clone:function(){return new h.Matrix(this)},morph:function(t){return this.destination=new h.Matrix(t),this},multiply:function(t){return new h.Matrix(this.native().multiply(function(t){t instanceof h.Matrix||(t=new h.Matrix(t));return t}(t).native()))},inverse:function(){return new h.Matrix(this.native().inverse())},translate:function(t,e){return new h.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=h.parser.native.createSVGMatrix(),e=m.length-1;0<=e;e--)t[m[e]]=this[m[e]];return t},toString:function(){return\"matrix(\"+x(this.a)+\",\"+x(this.b)+\",\"+x(this.c)+\",\"+x(this.d)+\",\"+x(this.e)+\",\"+x(this.f)+\")\"}},parent:h.Element,construct:{ctm:function(){return new h.Matrix(this.node.getCTM())},screenCTM:function(){var t,e;return this instanceof h.Nested?(e=(t=this.rect(1,1)).node.getScreenCTM(),t.remove(),new h.Matrix(e)):new h.Matrix(this.node.getScreenCTM())}}}),h.Point=h.invent({create:function(t,e){e=Array.isArray(t)?{x:t[0],y:t[1]}:\"object\"===y(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0};this.x=e.x,this.y=e.y},extend:{clone:function(){return new h.Point(this)},morph:function(t,e){return this.destination=new h.Point(t,e),this}}}),h.extend(h.Element,{point:function(t,e){return new h.Point(t,e).transform(this.screenCTM().inverse())}}),h.extend(h.Element,{attr:function(t,e,i){if(null==t){t={};for(i=(e=this.node.attributes).length-1;0<=i;i--)t[e[i].nodeName]=h.regex.isNumber.test(e[i].nodeValue)?parseFloat(e[i].nodeValue):e[i].nodeValue;return t}if(\"object\"===y(t))for(var a in t)this.attr(a,t[a]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?h.defaults.attrs[t]:h.regex.isNumber.test(e)?parseFloat(e):e;\"stroke-width\"==t?this.attr(\"stroke\",0<parseFloat(e)?this._stroke:null):\"stroke\"==t&&(this._stroke=e),\"fill\"!=t&&\"stroke\"!=t||(e=h.regex.isImage.test(e)?this.doc().defs().image(e,0,0):e)instanceof h.Image&&(e=this.doc().defs().pattern(0,0,function(){this.add(e)})),\"number\"==typeof e?e=new h.Number(e):h.Color.isColor(e)?e=new h.Color(e):Array.isArray(e)&&(e=new h.Array(e)),\"leading\"==t?this.leading&&this.leading(e):\"string\"==typeof i?this.node.setAttributeNS(i,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||\"font-size\"!=t&&\"x\"!=t||this.rebuild(t,e)}return this}}),h.extend(h.Element,{transform:function(t,e){var i;return\"object\"!==y(t)?(i=new h.Matrix(this).extract(),\"string\"==typeof t?i[t]:i):(i=new h.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(i=e?i.multiply(new h.Matrix(t)):new h.Matrix(t)),this.attr(\"transform\",i))}}),h.extend(h.Element,{untransform:function(){return this.attr(\"transform\",null)},matrixify:function(){return(this.attr(\"transform\")||\"\").split(h.regex.transforms).slice(0,-1).map(function(t){t=t.trim().split(\"(\");return[t[0],t[1].split(h.regex.delimiter).map(function(t){return parseFloat(t)})]}).reduce(function(t,e){return\"matrix\"==e[0]?t.multiply(p(e[1])):t[e[0]].apply(t,e[1])},new h.Matrix)},toParent:function(t){var e,i;return this!=t&&(e=this.screenCTM(),i=t.screenCTM().inverse(),this.addTo(t).untransform().transform(i.multiply(e))),this},toDoc:function(){return this.toParent(this.doc())}}),h.Transformation=h.invent({create:function(t,e){if(1<arguments.length&&\"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\"===y(t))for(i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=t[this.arguments[i]];!(this.inversed=!1)===e&&(this.inversed=!0)}}),h.Translate=h.invent({parent:h.Matrix,inherit:h.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:[\"transformedX\",\"transformedY\"],method:\"translate\"}}),h.extend(h.Element,{style:function(t,e){if(0==arguments.length)return this.node.style.cssText||\"\";if(arguments.length<2)if(\"object\"===y(t))for(var i in t)this.style(i,t[i]);else{if(!h.regex.isCss.test(t))return this.node.style[n(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[n(t)]=null===e||h.regex.isBlank.test(e)?\"\":e;return this}}),h.Parent=h.invent({create:function(t){this.constructor.call(this,t)},inherit:h.Element,extend:{children:function(){return h.utils.map(h.utils.filterSVGElements(this.node.childNodes),function(t){return h.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 0<=this.index(t)},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return h.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 i=this.children(),a=0,s=i.length;a<s;a++)i[a]instanceof h.Element&&t.apply(i[a],[a,i]),e&&i[a]instanceof h.Container&&i[a].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()}}}),h.extend(h.Parent,{ungroup:function(t,e){return 0===e||this instanceof h.Defs||this.node==h.parser.draw||(t=t||(this instanceof h.Doc?this:this.parent(h.Parent)),e=e||1/0,this.each(function(){return this instanceof h.Defs?this:this instanceof h.Parent?this.ungroup(t,e-1):this.toParent(t)}),this.node.firstChild)||this.remove(),this},flatten:function(t,e){return this.ungroup(t,e)}}),h.Container=h.invent({create:function(t){this.constructor.call(this,t)},inherit:h.Parent}),h.ViewBox=h.invent({parent:h.Container,construct:{}}),[\"click\",\"dblclick\",\"mousedown\",\"mouseup\",\"mouseover\",\"mouseout\",\"mousemove\",\"touchstart\",\"touchmove\",\"touchleave\",\"touchend\",\"touchcancel\"].forEach(function(e){h.Element.prototype[e]=function(t){return h.on(this.node,e,t),this}}),h.listeners=[],h.handlerMap=[],h.listenerId=0,h.on=function(t,e,i,a,s){var a=i.bind(a||t.instance||t),o=(h.handlerMap.indexOf(t)+1||h.handlerMap.push(t))-1,n=e.split(\".\")[0],e=e.split(\".\")[1]||\"*\";h.listeners[o]=h.listeners[o]||{},h.listeners[o][n]=h.listeners[o][n]||{},h.listeners[o][n][e]=h.listeners[o][n][e]||{},i._svgjsListenerId||(i._svgjsListenerId=++h.listenerId),h.listeners[o][n][e][i._svgjsListenerId]=a,t.addEventListener(n,a,s||{passive:!0})},h.off=function(t,e,i){var a=h.handlerMap.indexOf(t),s=e&&e.split(\".\")[0],o=e&&e.split(\".\")[1],n=\"\";if(-1!=a)if(i)(i=\"function\"==typeof i?i._svgjsListenerId:i)&&h.listeners[a][s]&&h.listeners[a][s][o||\"*\"]&&(t.removeEventListener(s,h.listeners[a][s][o||\"*\"][i],!1),delete h.listeners[a][s][o||\"*\"][i]);else if(o&&s){if(h.listeners[a][s]&&h.listeners[a][s][o]){for(var r in h.listeners[a][s][o])h.off(t,[s,o].join(\".\"),r);delete h.listeners[a][s][o]}}else if(o)for(var l in h.listeners[a])for(var n in h.listeners[a][l])o===n&&h.off(t,[l,o].join(\".\"));else if(s){if(h.listeners[a][s]){for(var n in h.listeners[a][s])h.off(t,[s,n].join(\".\"));delete h.listeners[a][s]}}else{for(var l in h.listeners[a])h.off(t,l);delete h.listeners[a],delete h.handlerMap[a]}},h.extend(h.Element,{on:function(t,e,i,a){return h.on(this.node,t,e,i,a),this},off:function(t,e){return h.off(this.node,t,e),this},fire:function(t,e){return t instanceof s.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new h.CustomEvent(t,{detail:e,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),h.Defs=h.invent({create:\"defs\",inherit:h.Container}),h.G=h.invent({create:\"g\",inherit:h.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 h.G)}}}),h.Doc=h.invent({create:function(t){t&&(\"svg\"==(t=\"string\"==typeof t?o.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,h.create(\"svg\")),t.appendChild(this.node),this.size(\"100%\",\"100%\")),this.namespace().defs())},inherit:h.Container,extend:{namespace:function(){return this.attr({xmlns:h.ns,version:\"1.1\"}).attr(\"xmlns:xlink\",h.xlink,h.xmlns).attr(\"xmlns:svgjs\",h.svgjs,h.xmlns)},defs:function(){var t;return this._defs||((t=this.node.getElementsByTagName(\"defs\")[0])?this._defs=h.adopt(t):this._defs=new h.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,h.parser.draw&&!h.parser.draw.parentNode&&this.node.appendChild(h.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=f(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),h.extend(h.Element,{}),h.Gradient=h.invent({create:function(t){this.constructor.call(this,h.create(t+\"Gradient\")),this.type=t},inherit:h.Container,extend:{at:function(t,e,i){return this.put(new h.Stop).update(t,e,i)},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,i){return h.Container.prototype.attr.call(this,t=\"transform\"==t?\"gradientTransform\":t,e,i)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),h.extend(h.Gradient,h.FX,{from:function(t,e){return\"radial\"==(this._target||this).type?this.attr({fx:new h.Number(t),fy:new h.Number(e)}):this.attr({x1:new h.Number(t),y1:new h.Number(e)})},to:function(t,e){return\"radial\"==(this._target||this).type?this.attr({cx:new h.Number(t),cy:new h.Number(e)}):this.attr({x2:new h.Number(t),y2:new h.Number(e)})}}),h.extend(h.Defs,{gradient:function(t,e){return this.put(new h.Gradient(t)).update(e)}}),h.Stop=h.invent({create:\"stop\",inherit:h.Element,extend:{update:function(t){return null!=(t=\"number\"==typeof t||t instanceof h.Number?{offset:arguments[0],color:arguments[1],opacity:arguments[2]}:t).opacity&&this.attr(\"stop-opacity\",t.opacity),null!=t.color&&this.attr(\"stop-color\",t.color),null!=t.offset&&this.attr(\"offset\",new h.Number(t.offset)),this}}}),h.Pattern=h.invent({create:\"pattern\",inherit:h.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,i){return h.Container.prototype.attr.call(this,t=\"transform\"==t?\"patternTransform\":t,e,i)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),h.extend(h.Defs,{pattern:function(t,e,i){return this.put(new h.Pattern).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:\"userSpaceOnUse\"})}}),h.Shape=h.invent({create:function(t){this.constructor.call(this,t)},inherit:h.Element}),h.Symbol=h.invent({create:\"symbol\",inherit:h.Container,construct:{symbol:function(){return this.put(new h.Symbol)}}}),h.Use=h.invent({create:\"use\",inherit:h.Shape,extend:{element:function(t,e){return this.attr(\"href\",(e||\"\")+\"#\"+t,h.xlink)}},construct:{use:function(t,e){return this.put(new h.Use).element(t,e)}}}),h.Rect=h.invent({create:\"rect\",inherit:h.Shape,construct:{rect:function(t,e){return this.put(new h.Rect).size(t,e)}}}),h.Circle=h.invent({create:\"circle\",inherit:h.Shape,construct:{circle:function(t){return this.put(new h.Circle).rx(new h.Number(t).divide(2)).move(0,0)}}}),h.extend(h.Circle,h.FX,{rx:function(t){return this.attr(\"r\",t)},ry:function(t){return this.rx(t)}}),h.Ellipse=h.invent({create:\"ellipse\",inherit:h.Shape,construct:{ellipse:function(t,e){return this.put(new h.Ellipse).size(t,e).move(0,0)}}}),h.extend(h.Ellipse,h.Rect,h.FX,{rx:function(t){return this.attr(\"rx\",t)},ry:function(t){return this.attr(\"ry\",t)}}),h.extend(h.Circle,h.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 h.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new h.Number(t).divide(2))},size:function(t,e){t=g(this,t,e);return this.rx(new h.Number(t.width).divide(2)).ry(new h.Number(t.height).divide(2))}}),h.Line=h.invent({create:\"line\",inherit:h.Shape,extend:{array:function(){return new h.PointArray([[this.attr(\"x1\"),this.attr(\"y1\")],[this.attr(\"x2\"),this.attr(\"y2\")]])},plot:function(t,e,i,a){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:a}:new h.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){t=g(this,t,e);return this.attr(this.array().size(t.width,t.height).toLine())}},construct:{line:function(t,e,i,a){return h.Line.prototype.plot.apply(this.put(new h.Line),null!=t?[t,e,i,a]:[0,0,0,0])}}}),h.Polyline=h.invent({create:\"polyline\",inherit:h.Shape,construct:{polyline:function(t){return this.put(new h.Polyline).plot(t||new h.PointArray)}}}),h.Polygon=h.invent({create:\"polygon\",inherit:h.Shape,construct:{polygon:function(t){return this.put(new h.Polygon).plot(t||new h.PointArray)}}}),h.extend(h.Polyline,h.Polygon,{array:function(){return this._array||(this._array=new h.PointArray(this.attr(\"points\")))},plot:function(t){return null==t?this.array():this.clear().attr(\"points\",\"string\"==typeof t?t:this._array=new h.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){t=g(this,t,e);return this.attr(\"points\",this.array().size(t.width,t.height))}}),h.extend(h.Line,h.Polyline,h.Polygon,{morphArray:h.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)}}),h.Path=h.invent({create:\"path\",inherit:h.Shape,extend:{morphArray:h.PathArray,array:function(){return this._array||(this._array=new h.PathArray(this.attr(\"d\")))},plot:function(t){return null==t?this.array():this.clear().attr(\"d\",\"string\"==typeof t?t:this._array=new h.PathArray(t))},clear:function(){return delete this._array,this}},construct:{path:function(t){return this.put(new h.Path).plot(t||new h.PathArray)}}}),h.Image=h.invent({create:\"image\",inherit:h.Shape,extend:{load:function(e){var i,a;return e?(i=this,a=new s.Image,h.on(a,\"load\",function(){h.off(a);var t=i.parent(h.Pattern);null!==t&&(0==i.width()&&0==i.height()&&i.size(a.width,a.height),t&&0==t.width()&&0==t.height()&&t.size(i.width(),i.height()),\"function\"==typeof i._loaded)&&i._loaded.call(i,{width:a.width,height:a.height,ratio:a.width/a.height,url:e})}),h.on(a,\"error\",function(t){h.off(a),\"function\"==typeof i._error&&i._error.call(i,t)}),this.attr(\"href\",a.src=this.src=e,h.xlink)):this},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,i){return this.put(new h.Image).load(t).size(e||0,i||e||0)}}}),h.Text=h.invent({create:function(){this.constructor.call(this,h.create(\"text\")),this.dom.leading=new h.Number(1.3),this._rebuild=!0,this._build=!1,this.attr(\"font-family\",h.defaults.attrs[\"font-family\"])},inherit:h.Shape,extend:{x:function(t){return null==t?this.attr(\"x\"):this.attr(\"x\",t)},text:function(t){if(void 0===t){for(var t=\"\",e=this.node.childNodes,i=0,a=e.length;i<a;++i)0!=i&&3!=e[i].nodeType&&1==h.adopt(e[i]).dom.newLined&&(t+=\"\\n\"),t+=e[i].textContent;return t}if(this.clear().build(!0),\"function\"==typeof t)t.call(this,this);else for(var i=0,s=(t=t.split(\"\\n\")).length;i<s;i++)this.tspan(t[i]).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 h.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,t=h.utils.map(h.utils.filterSVGElements(t.childNodes),function(t){return h.adopt(t)});return new h.Set(t)},rebuild:function(t){var e,i,a;return\"boolean\"==typeof t&&(this._rebuild=t),this._rebuild&&(i=0,a=(e=this).dom.leading*new h.Number(this.attr(\"font-size\")),this.lines().each(function(){this.dom.newLined&&(e.textPath()||this.attr(\"x\",e.attr(\"x\")),\"\\n\"==this.text()?i+=a:(this.attr(\"dy\",a+i),i=0))}),this.fire(\"rebuild\")),this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new h.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new h.Text).text(t)},plain:function(t){return this.put(new h.Text).plain(t)}}}),h.Tspan=h.invent({create:\"tspan\",inherit:h.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(h.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr(\"font-size\")).attr(\"x\",t.x())}}}),h.extend(h.Text,h.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(o.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,i=new h.Tspan;return!1===this._build&&this.clear(),e.appendChild(i.node),i.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()}}),h.TextPath=h.invent({create:\"textPath\",inherit:h.Parent,parent:h.Text,construct:{morphArray:h.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 h.adopt(this.node.firstChild)}}}),h.Nested=h.invent({create:function(){this.constructor.call(this,h.create(\"svg\")),this.style(\"overflow\",\"visible\")},inherit:h.Container,construct:{nested:function(){return this.put(new h.Nested)}}});var a={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,i,a){return i+a.replace(h.regex.dots,\" .\")}function n(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function r(t){return t.charAt(0).toUpperCase()+t.slice(1)}function d(t){t=t.toString(16);return 1==t.length?\"0\"+t:t}function g(t,e,i){return null!=e&&null!=i||(t=t.bbox(),null==e?e=t.width/t.height*i:null==i&&(i=t.height/t.width*e)),{width:e,height:i}}function u(t,e,i){return{x:e*t.a+i*t.c,y:e*t.b+i*t.d}}function p(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function f(t){for(var e=t.childNodes.length-1;0<=e;e--)t.childNodes[e]instanceof s.SVGElement&&f(t.childNodes[e]);return h.adopt(t).id(h.eid(t.nodeName))}function x(t){return 1e-37<Math.abs(t)?t:0}[\"fill\",\"stroke\"].forEach(function(i){var t={};t[i]=function(t){if(void 0!==t)if(\"string\"==typeof t||h.Color.isRgb(t)||t&&\"function\"==typeof t.fill)this.attr(i,t);else for(var e=a[i].length-1;0<=e;e--)null!=t[a[i][e]]&&this.attr(a.prefix(i,a[i][e]),t[a[i][e]]);return this},h.extend(h.Element,h.FX,t)}),h.extend(h.Element,h.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr(\"transform\",new h.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr(\"opacity\",t)},dx:function(t){return this.x(new h.Number(t).plus(this instanceof h.FX?0:this.x()),!0)},dy:function(t){return this.y(new h.Number(t).plus(this instanceof h.FX?0:this.y()),!0)}}),h.extend(h.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),h.Set=h.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){t=this.index(t);return-1<t&&this.members.splice(t,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 0<=this.index(t)},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 h.Set(t)}}}),h.FX.Set=h.invent({create:function(t){this.set=t}}),h.Set.inherit=function(){var t,e=[];for(t in h.Shape.prototype)\"function\"==typeof h.Shape.prototype[t]&&\"function\"!=typeof h.Set.prototype[t]&&e.push(t);for(t in e.forEach(function(i){h.Set.prototype[i]=function(){for(var t=0,e=this.members.length;t<e;t++)this.members[t]&&\"function\"==typeof this.members[t][i]&&this.members[t][i].apply(this.members[t],arguments);return\"animate\"==i?this.fx||(this.fx=new h.FX.Set(this)):this}}),e=[],h.FX.prototype)\"function\"==typeof h.FX.prototype[t]&&\"function\"!=typeof h.FX.Set.prototype[t]&&e.push(t);e.forEach(function(i){h.FX.Set.prototype[i]=function(){for(var t=0,e=this.set.members.length;t<e;t++)this.set.members[t].fx[i].apply(this.set.members[t].fx,arguments);return this}})},h.extend(h.Element,{}),h.extend(h.Element,{remember:function(t,e){if(\"object\"===y(t))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;0<=t;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),h.get=function(t){t=o.getElementById(function(t){t=(t||\"\").toString().match(h.regex.reference);if(t)return t[1]}(t)||t);return h.adopt(t)},h.select=function(t,e){return new h.Set(h.utils.map((e||o).querySelectorAll(t),function(t){return h.adopt(t)}))},h.extend(h.Parent,{select:function(t){return h.select(t,this.node)}});var b,m=\"abcdef\".split(\"\");return\"function\"!=typeof s.CustomEvent?((b=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=o.createEvent(\"CustomEvent\");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}).prototype=s.Event.prototype,h.CustomEvent=b):h.CustomEvent=s.CustomEvent,h},\"function\"==typeof define&&define.amd?define(function(){return e(t,t.document)}):\"object\"===(\"undefined\"==typeof exports?\"undefined\":y(exports))&&\"undefined\"!=typeof module?module.exports=t.document?e(t,t.document):function(t){return e(t,t.document)}:t.SVG=e(t,t.document),function(){SVG.Filter=SVG.invent({create:\"filter\",inherit:SVG.Parent,extend:{source:\"SourceGraphic\",sourceAlpha:\"SourceAlpha\",background:\"BackgroundImage\",backgroundAlpha:\"BackgroundAlpha\",fill:\"FillPaint\",stroke:\"StrokePaint\",autoSetIn:!0,put:function(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,e=[void 0];for(t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},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)}},t=(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)}}}),{blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||\"normal\"})},colorMatrix:function(t,e){\"matrix\"==t&&(e=a(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=a(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\",function(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(\" \")}(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})}}),e={merge:function(){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 for(var t=Array.isArray(arguments[0])?arguments[0]:arguments,i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))},componentTransfer:function(e){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)),e)for(var t in e.rgb&&([\"r\",\"g\",\"b\"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},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})}},i={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,o){this.attr({x:t,y:e,z:i,pointsAtX:a,pointsAtY:s,pointsAtZ:o})},mergeNode:function(t){this.attr(\"in\",t)}};function a(t){return(t=Array.isArray(t)?new SVG.Array(t):t).toString().replace(/^\\s+/,\"\").replace(/\\s+$/,\"\").replace(/\\s+/g,\" \")}function s(){var t,e=function(){};for(t in\"function\"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[t])e(arguments[t][i],i,arguments[t])}[\"r\",\"g\",\"b\",\"a\"].forEach(function(t){i[\"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])}}}),s(t,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:{}})}),s(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.ParentEffect,extend:{}})}),s(i,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),SVG.extend(SVG.PathArray,{morph:function(t){for(var e=this.value,i=this.parse(t),a=0,s=0;!1!==a||!1!==s;)var o,n=_t(e,!1!==a&&a+1),r=_t(i,!1!==s&&s+1),l=(!1===a&&(a=0==(o=new SVG.PathArray(l.start).bbox()).height||0==o.width?e.push(e[0])-1:e.push([\"M\",o.x+o.width/2,o.y+o.height/2])-1),!1===s&&(s=0==(o=new SVG.PathArray(l.dest).bbox()).height||0==o.width?i.push(i[0])-1:i.push([\"M\",o.x+o.width/2,o.y+o.height/2])-1),function(t,e,i,a,s,o,n){var r=t.slice(e,i||n),l=a.slice(s,o||n),h=0,c={pos:[0,0],start:[0,0]},d={pos:[0,0],start:[0,0]};for(;;){if(r[h]=Vt.call(c,r[h]),l[h]=Vt.call(d,l[h]),r[h][0]!=l[h][0]||\"M\"==r[h][0]||\"A\"==r[h][0]&&(r[h][4]!=l[h][4]||r[h][5]!=l[h][5])?(Array.prototype.splice.apply(r,[h,1].concat(jt.call(c,r[h]))),Array.prototype.splice.apply(l,[h,1].concat(jt.call(d,l[h])))):(r[h]=Gt.call(c,r[h]),l[h]=Gt.call(d,l[h])),++h==r.length&&h==l.length)break;h==r.length&&r.push([\"C\",c.pos[0],c.pos[1],c.pos[0],c.pos[1],c.pos[0],c.pos[1]]),h==l.length&&l.push([\"C\",d.pos[0],d.pos[1],d.pos[0],d.pos[1],d.pos[0],d.pos[1]])}return{start:r,dest:l}}(e,a,n,i,s,r)),e=e.slice(0,a).concat(l.start,!1===n?[]:e.slice(n)),i=i.slice(0,s).concat(l.dest,!1===r?[]:i.slice(r)),a=!1!==n&&a+l.start.length,s=!1!==r&&s+l.dest.length;return this.value=e,this.destination=new SVG.PathArray,this.destination.value=i,this}}),function(){function a(t){t.remember(\"_draggable\",this),this.el=t}a.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)})},a.prototype.transformPoint=function(t,e){t=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=t.clientX-(e||0),this.p.y=t.clientY,this.p.matrixTransform(this.m)},a.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},a.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})}}},a.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),a=this.startPoints.box.x+i.x-this.startPoints.point.x,s=this.startPoints.box.y+i.y-this.startPoints.point.y,o=this.constraint,n=i.x-this.startPoints.point.x,r=i.y-this.startPoints.point.y;return this.el.fire(\"dragmove\",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented||(\"function\"==typeof o?(!0===(t=\"boolean\"==typeof(t=o.call(this.el,a,s,this.m))?{x:t,y:t}:t).x?this.el.x(a):!1!==t.x&&this.el.x(t.x),!0===t.y?this.el.y(s):!1!==t.y&&this.el.y(t.y)):\"object\"==typeof o&&(null!=o.minX&&a<o.minX?n=(a=o.minX)-this.startPoints.box.x:null!=o.maxX&&a>o.maxX-e.width&&(n=(a=o.maxX-e.width)-this.startPoints.box.x),null!=o.minY&&s<o.minY?r=(s=o.minY)-this.startPoints.box.y:null!=o.maxY&&s>o.maxY-e.height&&(r=(s=o.maxY-e.height)-this.startPoints.box.y),null!=o.snapToGrid&&(a-=a%o.snapToGrid,s-=s%o.snapToGrid,n-=n%o.snapToGrid,r-=r%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:n,y:r},!0):this.el.move(a,s))),i},a.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(t,e){\"function\"!=typeof t&&\"object\"!=typeof t||(e=t,t=!0);var i=this.remember(\"_draggable\")||new a(this);return(t=void 0===t||t)?i.init(e||{},t):(this.off(\"mousedown.drag\"),this.off(\"touchstart.drag\")),this}})}.call(void 0),F.prototype.init=function(t,e){var i=this.el.bbox(),a=(this.options={},this.el.selectize.defaults.points);for(s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],void 0!==e[s]&&(this.options[s]=e[s]);var s,o=[\"points\",\"pointsExclude\"];for(s in o){var n=this.options[o[s]];\"string\"==typeof n?n=0<n.length?n.split(/\\s*,\\s*/i):[]:\"boolean\"==typeof n&&\"points\"===o[s]&&(n=n?a:[]),this.options[o[s]]=n}this.options.points=[a,this.options.points].reduce(function(t,e){return t.filter(function(t){return-1<e.indexOf(t)})}),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()},F.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},F.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},F.prototype.drawPoints=function(){for(var s=this,t=this.getPointArray(),e=0,i=t.length;e<i;++e){var a=function(a){return function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var e=t.pageX||t.touches[0].pageX,i=t.pageY||t.touches[0].pageY;s.el.fire(\"point\",{x:e,y:i,i:a,event:t})}}(e),a=this.drawPoint(t[e][0],t[e][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+\"_point\").on(\"touchstart\",a).on(\"mousedown\",a);this.pointSelection.set.add(a)}},F.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!\")}},F.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},F.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},F.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each(function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])})},F.prototype.updateRectSelection=function(){var t,i=this,a=this.el.bbox();this.rectSelection.set.get(0).attr({width:a.width,height:a.height}),this.options.points.length&&this.options.points.map(function(t,e){t=i.pointCoords(t,a);i.rectSelection.set.get(e+1).center(t.x,t.y)}),this.options.rotationPoint&&(t=this.rectSelection.set.length(),this.rectSelection.set.get(t-1).center(a.width/2,20))},F.prototype.selectRect=function(t){var s=this,a=this.el.bbox();function o(a){return function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var e=t.pageX||t.touches[0].pageX,i=t.pageY||t.touches[0].pageY;s.el.fire(a,{x:e,y:i,event:t})}}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(a.width,a.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(t,e){var i=s.pointCoords(t,a),i=s.drawPoint(i.x,i.y).attr(\"class\",s.options.classPoints+\"_\"+t).on(\"mousedown\",o(t)).on(\"touchstart\",o(t));s.rectSelection.set.add(i)}),this.rectSelection.set.each(function(){this.addClass(s.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))&&(t=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var e=t.pageX||t.touches[0].pageX,i=t.pageY||t.touches[0].pageY;s.el.fire(\"rot\",{x:e,y:i,event:t})},t=this.drawPoint(a.width/2,20).attr(\"class\",this.options.classPoints+\"_rot\").on(\"touchstart\",t).on(\"mousedown\",t),this.rectSelection.set.add(t))},F.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()},F.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()})},F.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(t,e){return\"object\"==typeof t&&(e=t,t=!0),(this.remember(\"_selectHandler\")||new F(this)).init(void 0===t||t,e||{}),this}}),SVG.Element.prototype.selectize.defaults={points:[\"lt\",\"rt\",\"rb\",\"lb\",\"t\",\"r\",\"b\",\"l\"],pointsExclude:[],classRect:\"svg_select_boundingRect\",classPoints:\"svg_select_points\",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:\"circle\"},function(){!function(){function e(t){t.remember(\"_resizeHandler\",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}e.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)},e.prototype._extractPosition=function(t){return{x:(null!=t.clientX?t:t.touches[0]).clientX,y:(null!=t.clientY?t:t.touches[0]).clientY}},e.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()}},e.prototype.stop=function(){return this.el.off(\"lt.resize\"),this.el.off(\"rt.resize\"),this.el.off(\"rb.resize\"),this.el.off(\"lb.resize\"),this.el.off(\"t.resize\"),this.el.off(\"r.resize\"),this.el.off(\"b.resize\"),this.el.off(\"l.resize\"),this.el.off(\"rot.resize\"),this.el.off(\"point.resize\"),this},e.prototype.resize=function(t){var e=this,i=(this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset},this._extractPosition(t.detail.event));switch(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&&(i=this.el.array().valueOf(),this.parameters.i=t.detail.i,this.parameters.pointCoords=[i[t.detail.i][0],i[t.detail.i][1]]),t.type){case\"lt\":this.calc=function(t,e){t=this.snapToGrid(t,e);0<this.parameters.box.width-t[0]&&0<this.parameters.box.height-t[1]&&(\"text\"===this.parameters.type?(this.el.move(this.parameters.box.x+t[0],this.parameters.box.y),this.el.attr(\"font-size\",this.parameters.fontSize-t[0])):(t=this.checkAspectRatio(t),this.el.move(this.parameters.box.x+t[0],this.parameters.box.y+t[1]).size(this.parameters.box.width-t[0],this.parameters.box.height-t[1])))};break;case\"rt\":this.calc=function(t,e){t=this.snapToGrid(t,e,2);0<this.parameters.box.width+t[0]&&0<this.parameters.box.height-t[1]&&(\"text\"===this.parameters.type?(this.el.move(this.parameters.box.x-t[0],this.parameters.box.y),this.el.attr(\"font-size\",this.parameters.fontSize+t[0])):(t=this.checkAspectRatio(t,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+t[1]).size(this.parameters.box.width+t[0],this.parameters.box.height-t[1])))};break;case\"rb\":this.calc=function(t,e){t=this.snapToGrid(t,e,0);0<this.parameters.box.width+t[0]&&0<this.parameters.box.height+t[1]&&(\"text\"===this.parameters.type?(this.el.move(this.parameters.box.x-t[0],this.parameters.box.y),this.el.attr(\"font-size\",this.parameters.fontSize+t[0])):(t=this.checkAspectRatio(t),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+t[0],this.parameters.box.height+t[1])))};break;case\"lb\":this.calc=function(t,e){t=this.snapToGrid(t,e,1);0<this.parameters.box.width-t[0]&&0<this.parameters.box.height+t[1]&&(\"text\"===this.parameters.type?(this.el.move(this.parameters.box.x+t[0],this.parameters.box.y),this.el.attr(\"font-size\",this.parameters.fontSize-t[0])):(t=this.checkAspectRatio(t,!0),this.el.move(this.parameters.box.x+t[0],this.parameters.box.y).size(this.parameters.box.width-t[0],this.parameters.box.height+t[1])))};break;case\"t\":this.calc=function(t,e){t=this.snapToGrid(t,e,2);0<this.parameters.box.height-t[1]&&\"text\"!==this.parameters.type&&this.el.move(this.parameters.box.x,this.parameters.box.y+t[1]).height(this.parameters.box.height-t[1])};break;case\"r\":this.calc=function(t,e){t=this.snapToGrid(t,e,0);0<this.parameters.box.width+t[0]&&\"text\"!==this.parameters.type&&this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+t[0])};break;case\"b\":this.calc=function(t,e){t=this.snapToGrid(t,e,0);0<this.parameters.box.height+t[1]&&\"text\"!==this.parameters.type&&this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+t[1])};break;case\"l\":this.calc=function(t,e){t=this.snapToGrid(t,e,1);0<this.parameters.box.width-t[0]&&\"text\"!==this.parameters.type&&this.el.move(this.parameters.box.x+t[0],this.parameters.box.y).width(this.parameters.box.width-t[0])};break;case\"rot\":this.calc=function(t,e){var t=t+this.parameters.p.x,e=e+this.parameters.p.y,i=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),e=Math.atan2(e-this.parameters.box.y-this.parameters.box.height/2,t-this.parameters.box.x-this.parameters.box.width/2),t=this.parameters.rotation+180*(e-i)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(t-t%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case\"point\":this.calc=function(t,e){t=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),e=this.el.array().valueOf();e[this.parameters.i][0]=this.parameters.pointCoords[0]+t[0],e[this.parameters.i][1]=this.parameters.pointCoords[1]+t[1],this.el.plot(e)}}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()})},e.prototype.update=function(t){var e,i;t?(i=this._extractPosition(t),e=(i=this.transformPoint(i.x,i.y)).x-this.parameters.p.x,i=i.y-this.parameters.p.y,this.lastUpdateCall=[e,i],this.calc(e,i),this.el.fire(\"resizing\",{dx:e,dy:i,event:t})):this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,\"mousemove.resize\"),SVG.off(window,\"mouseup.resize\"),SVG.off(window,\"touchmove.resize\"),SVG.off(window,\"touchend.resize\"),this.el.fire(\"resizedone\")},e.prototype.snapToGrid=function(t,e,i,a){var s=void 0!==a?[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:[(this.parameters.box.x+t+(1&(i=null==i?3:i)?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid];return 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)},e.prototype.constraintToBox=function(t,e,i,a){var s,o=this.options.constraint||{},a=void 0!==a?(s=i,a):(s=this.parameters.box.x+(1&i?0:this.parameters.box.width),this.parameters.box.y+(2&i?0:this.parameters.box.height));return void 0!==o.minX&&s+t<o.minX&&(t=o.minX-s),void 0!==o.maxX&&s+t>o.maxX&&(t=o.maxX-s),void 0!==o.minY&&a+e<o.minY&&(e=o.minY-a),[t,e=void 0!==o.maxY&&a+e>o.maxY?o.maxY-a:e]},e.prototype.checkAspectRatio=function(t,e){var i,a,s,o,n;return this.options.saveAspectRatio?(i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,(n=(s=this.parameters.box.width+t[0])/(o=this.parameters.box.height-t[1]))<a?(i[1]=s/a-this.parameters.box.height,e&&(i[1]=-i[1])):a<n&&(i[0]=this.parameters.box.width-o*a,e)&&(i[0]=-i[0]),i):t},SVG.extend(SVG.Element,{resize:function(t){return(this.remember(\"_resizeHandler\")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}.call(this)}(),void 0===window.Apex&&(window.Apex={});var Ut=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{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 S(this.ctx),this.ctx.axes=new st(this.ctx),this.ctx.core=new Wt(this.ctx.el,this.ctx),this.ctx.config=new p({}),this.ctx.data=new Q(this.ctx),this.ctx.grid=new K(this.ctx),this.ctx.graphics=new T(this.ctx),this.ctx.coreUtils=new I(this.ctx),this.ctx.crosshairs=new ot(this.ctx),this.ctx.events=new it(this.ctx),this.ctx.exports=new u(this.ctx),this.ctx.localization=new at(this.ctx),this.ctx.options=new d,this.ctx.responsive=new nt(this.ctx),this.ctx.series=new f(this.ctx),this.ctx.theme=new rt(this.ctx),this.ctx.formatters=new x(this.ctx),this.ctx.titleSubtitle=new lt(this.ctx),this.ctx.legend=new pt(this.ctx),this.ctx.toolbar=new ft(this.ctx),this.ctx.dimensions=new X(this.ctx),this.ctx.updateHelpers=new Bt(this.ctx),this.ctx.zoomPanSelection=new xt(this.ctx),this.ctx.w.globals.tooltip=new At(this.ctx)}}]),e}(),qt=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return n(e,[{key:\"clear\",value:function(t){t=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:t})}},{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,t=t.isUpdating,i=this.w.globals.dom.Paper.node,a=(i.parentNode&&i.parentNode.parentNode&&!t&&(i.parentNode.parentNode.style.minHeight=\"unset\"),this.w.globals.dom.baseEl),t=(a&&this.ctx.eventList.forEach(function(t){a.removeEventListener(t,e.ctx.events.documentEvent)}),this.w.globals.dom);if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(t.Paper),t.Paper.remove(),t.elWrap=null,t.elGraphical=null,t.elAnnotations=null,t.elLegendWrap=null,t.baseEl=null,t.elGridRect=null,t.elGridRectMask=null,t.elGridRectMarkerMask=null,t.elForecastMask=null,t.elNonForecastMask=null,t.elDefs=null}}]),e}(),Zt=new WeakMap;return function(){function i(t,e){s(this,i),this.opts=e,(this.ctx=this).w=new J(e).init(),this.el=t,this.w.globals.cuid=M.randomId(),this.w.globals.chartID=this.w.config.chart.id?M.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ut(this).initModules(),this.create=M.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return n(i,[{key:\"render\",value:function(){var d=this;return new Promise(function(t,e){if(null!==d.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),d.w.config.chart.id&&Apex._chartInstances.push({id:d.w.globals.chartID,group:d.w.config.chart.group,chart:d}),d.setLocale(d.w.config.chart.defaultLocale);var i,a,s,o=d.w.config.chart.events.beforeMount,n=(\"function\"==typeof o&&o(d,d.w),d.events.fireEvent(\"beforeMount\",[d,d.w]),window.addEventListener(\"resize\",d.windowResizeHandler),r=d.el.parentNode,l=d.parentResizeHandler,h=!1,o=r.getBoundingClientRect(),\"none\"!==r.style.display&&0!==o.width||(h=!0),c=new ResizeObserver(function(t){h&&l.call(r,t),h=!0}),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(r.children).forEach(function(t){return c.observe(t)}):c.observe(r),Zt.set(l,c),d.css||(o=d.el.getRootNode&&d.el.getRootNode(),i=M.is(\"ShadowRoot\",o),s=(a=d.el.ownerDocument).getElementById(\"apexcharts-css\"),!i&&s)||(d.css=document.createElement(\"style\"),d.css.id=\"apexcharts-css\",d.css.textContent='.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-title:empty,\\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}',i?o.prepend(d.css):a.head.appendChild(d.css)),d.create(d.w.config.series,{}));if(!n)return t(d);d.mount(n).then(function(){\"function\"==typeof d.w.config.chart.events.mounted&&d.w.config.chart.events.mounted(d,d.w),d.events.fireEvent(\"mounted\",[d,d.w]),t(n)}).catch(function(t){e(t)})}else e(new Error(\"Element not found\"));var r,l,h,c})}},{key:\"create\",value:function(t,e){var i=this.w,a=(new Ut(this).initModules(),this.w.globals);if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new c(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;e=I.checkComboSeries(t),a.comboCharts=e.comboCharts,a.comboBarCount=e.comboBarCount,e=t.every(function(t){return t.data&&0===t.data.length});0!==t.length&&!e||this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new w(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();new I(this).getLargestMarkerSize(),this.dimensions.plotCoords();e=this.core.xySettings(),this.grid.createGridMask(),a=this.core.plotChartType(t,e),t=new v(this),t.bringForward(),i.config.dataLabels.background.enabled&&t.dataLabelsBackground(),this.core.shiftGraphPosition(),t={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:a,xyRatios:e,elInner:i.globals.dom.elGraphical,dimensions:t}}},{key:\"mount\",value:function(){var n=this,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,l=this,h=l.w;return new Promise(function(t,e){if(null===l.el)return e(new Error(\"Not enough data to display or target element not found\"));null!==r&&!h.globals.allSeriesCollapsed||l.series.handleNoData(),\"treemap\"!==h.config.chart.type&&l.axes.drawAxis(h.config.chart.type,r.xyRatios),l.grid=new K(l);var i,e=l.grid.drawGrid(),a=(l.annotations=new _(l),l.annotations.drawImageAnnos(),l.annotations.drawTextAnnos(),\"back\"===h.config.grid.position&&e&&h.globals.dom.elGraphical.add(e.el),new z(n.ctx)),s=new et(n.ctx);if(null!==e&&(a.xAxisLabelCorrections(e.xAxisTickWidth),s.setYAxisTextAlignments(),h.config.yaxis.map(function(t,e){-1===h.globals.ignoreYAxisIndexes.indexOf(e)&&s.yAxisTitleRotate(e,t.opposite)})),\"back\"===h.config.annotations.position&&(h.globals.dom.Paper.add(h.globals.dom.elAnnotations),l.annotations.drawAxesAnnotations()),Array.isArray(r.elGraph))for(var o=0;o<r.elGraph.length;o++)h.globals.dom.elGraphical.add(r.elGraph[o]);else h.globals.dom.elGraphical.add(r.elGraph);\"front\"===h.config.grid.position&&e&&h.globals.dom.elGraphical.add(e.el),\"front\"===h.config.xaxis.crosshairs.position&&l.crosshairs.drawXCrosshairs(),\"front\"===h.config.yaxis[0].crosshairs.position&&l.crosshairs.drawYCrosshairs(),\"front\"===h.config.annotations.position&&(h.globals.dom.Paper.add(h.globals.dom.elAnnotations),l.annotations.drawAxesAnnotations()),h.globals.noData||(h.config.tooltip.enabled&&!h.globals.noData&&l.w.globals.tooltip.drawTooltip(r.xyRatios),h.globals.axisCharts&&(h.globals.isXNumeric||h.config.xaxis.convertedCatToNumeric||h.globals.isRangeBar)?(h.config.chart.zoom.enabled||h.config.chart.selection&&h.config.chart.selection.enabled||h.config.chart.pan&&h.config.chart.pan.enabled)&&l.zoomPanSelection.init({xyRatios:r.xyRatios}):(i=h.config.chart.toolbar.tools,[\"zoom\",\"zoomin\",\"zoomout\",\"selection\",\"pan\",\"reset\"].forEach(function(t){i[t]=!1})),h.config.chart.toolbar.show&&!h.globals.allSeriesCollapsed&&l.toolbar.createToolbar()),0<h.globals.memory.methodsToExec.length&&h.globals.memory.methodsToExec.forEach(function(t){t.method(t.params,!1,t.context)}),h.globals.axisCharts||h.globals.noData||l.core.resizeNonAxisCharts(),t(l)})}},{key:\"destroy\",value:function(){window.removeEventListener(\"resize\",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Zt.get(t))&&(e.disconnect(),Zt.delete(t));var t,e,i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(t,e){t.id===M.escapeString(i)&&Apex._chartInstances.splice(e,1)}),new qt(this.ctx).clear({isUpdating:!1})}},{key:\"updateOptions\",value:function(t){var i=this,e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],s=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],o=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],n=this.w;return n.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,e){return i.updateHelpers._extendSeries(t,e)})),this.updateHelpers.revertDefaultAxisMinMax()),(t=t.xaxis?this.updateHelpers.forceXAxisUpdate(t):t).yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),0<n.globals.collapsedSeriesIndices.length&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,e,a,s,o)}},{key:\"updateSeries\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=!(2<arguments.length&&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=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=!(2<arguments.length&&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){for(var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=(this.w.globals.dataChanged=!0,this.series.getPreviousPaths(),this.w.config.series.slice()),a=0;a<i.length;a++)if(null!==t[a]&&void 0!==t[a])for(var s=0;s<t[a].data.length;s++)i[a].data.push(t[a].data[s]);return this.w.config.series=i,e&&(this.w.globals.initialSeries=M.clone(this.w.config.series)),this.update()}},{key:\"update\",value:function(a){var s=this;return new Promise(function(t,e){new qt(s.ctx).clear({isUpdating:!0});var i=s.create(s.w.config.series,a);if(!i)return t(s);s.mount(i).then(function(){\"function\"==typeof s.w.config.chart.events.updated&&s.w.config.chart.events.updated(s,s.w),s.events.fireEvent(\"updated\",[s,s.w]),s.w.globals.isDirty=!0,t(s)}).catch(function(t){e(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 e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:\"toggleSeries\",value:function(t){return this.series.toggleSeries(t)}},{key:\"highlightSeriesOnLegendHover\",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{key:\"showSeries\",value:function(t){this.series.showSeries(t)}},{key:\"hideSeries\",value:function(t){this.series.hideSeries(t)}},{key:\"resetSeries\",value:function(){this.series.resetSeries(!(0<arguments.length&&void 0!==arguments[0])||arguments[0],!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{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=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,i=i?i:this;i.annotations.addXaxisAnnotationExternal(t,e,i)}},{key:\"addYaxisAnnotation\",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,i=i?i:this;i.annotations.addYaxisAnnotationExternal(t,e,i)}},{key:\"addPointAnnotation\",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,i=i?i:this;i.annotations.addPointAnnotationExternal(t,e,i)}},{key:\"clearAnnotations\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:void 0,t=t?t:this;t.annotations.clearAnnotations(t)}},{key:\"removeAnnotation\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,e=e?e:this;e.annotations.removeAnnotation(e,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=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return new tt(this.ctx).getMinYMaxY(t).highestY}},{key:\"getLowestValueInSeries\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return new tt(this.ctx).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;(t=\"function\"==typeof t?t():t)&&this._windowResize()}}],[{key:\"getChartByID\",value:function(t){var e=M.escapeString(t),t=Apex._chartInstances.filter(function(t){return t.id===e})[0];return t&&t.chart}},{key:\"initOnLoad\",value:function(){for(var t=document.querySelectorAll(\"[data-apexcharts]\"),e=0;e<t.length;e++)new i(t[e],JSON.parse(t[e].getAttribute(\"data-options\"))).render()}},{key:\"exec\",value:function(t,e){t=this.getChartByID(t);if(t){t.w.globals.isExecCalled=!0;var i=null;if(-1!==t.publicMethods.indexOf(e)){for(var a=arguments.length,s=new Array(2<a?a-2:0),o=2;o<a;o++)s[o-2]=arguments[o];i=t[e].apply(t,s)}return i}}},{key:\"merge\",value:function(t,e){return M.extend(t,e)}}]),i}()});","\"use strict\";class Calendar{constructor(e,a,t,r,s,d,i){this.date=new Date(e),this.markedDays=a||[],this.months=t,this.days=r,this.dayHeaderClass=s||\"calendar-cell day-header\",this.cellClass=d||\"calendar-cell\",this.markedClass=i||\"marked\",this.render()}markDays(e){this.markedDays=e,this.render()}render(){var t=this.date.getFullYear();const r=this.date.getMonth();var e=this.months[r],a=new Date(t,r,1).getDay(),s=new Date(t,r+1,0).getDate();let d=\"\";d=d+`<div class=\"calendar-header\">\n\t\t\t<div class=\"month-name\">${e} ${t}</div>\n\t\t\t<div class=\"d-flex\">\n\t\t\t\t<div class=\"month-nav left-arrow\"><</div>\n\t\t\t\t<div class=\"month-nav right-arrow\">></div>\n\t\t\t</div>\n\t\t</div>`+'<div class=\"calendar-body\">',this.days.forEach(e=>{d+=`<div class=\"${this.dayHeaderClass}\">${e}</div>`});for(let e=0;e<a;e++)d+=`<div class=\"${this.cellClass} empty\"></div>`;for(let a=1;a<=s;a++){const n=`${t}-${String(r+1).padStart(2,\"0\")}-`+String(a).padStart(2,\"0\");var i=this.markedDays.find(e=>Array.isArray(e)?e[0]===n:e===n);let e=\"calendar-cell\";i&&(Array.isArray(i)?e+=\" marked \"+i[1]:e+=\" marked\"),d+=`<div class=\"${e}\">${a}</div>`}d+=\"</div>\";document.querySelector(\".calendar-container\").innerHTML=d;var e=document.querySelector(\".left-arrow\"),l=document.querySelector(\".right-arrow\");e.addEventListener(\"click\",()=>{this.date.setMonth(r-1),this.render()}),l.addEventListener(\"click\",()=>{this.date.setMonth(r+1),this.render()})}}","\"use strict\";class imgFix{constructor(e){this.className=e,this.images=document.querySelectorAll(`.${e} img`),this.resizeObserver=new ResizeObserver(()=>{this.centerImages()}),this.init()}init(){var e=document.querySelectorAll(\".\"+this.className);e.forEach(e=>{e.style.position=\"relative\",e.style.overflow=\"hidden\"}),this.centerImages(),e.forEach(e=>{this.resizeObserver.observe(e)}),window.addEventListener(\"resize\",()=>{this.centerImages()})}centerImages(){this.images.forEach(e=>{var t=e.parentNode.offsetWidth,s=e.parentNode.offsetHeight,i=e.naturalWidth,r=e.naturalHeight,a=i<r;let l,o;a?(l=t,o=r*t/i):(o=s,l=i*s/r),(l<t||o<s)&&(o=a?(l=i*s/r,s):r*(l=t)/i),e.style.position=\"absolute\",e.style.left=\"50%\",e.style.top=\"50%\",e.style.transform=\"translate(-50%, -50%)\",e.style.width=l+\"px\",e.style.height=o+\"px\"})}}","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=\"undefined\"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,function(F){\"use strict\";var j=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,\"default\")?t.default:t}var Y,H,z,B,G,W,V,U={},X={get exports(){return U},set exports(t){U=t}};function q(){return Y||(Y=1,(Ai=X).exports=function(){var R;function m(){return R.apply(null,arguments)}function s(t){return t instanceof Array||\"[object Array]\"===Object.prototype.toString.call(t)}function F(t){return null!=t&&\"[object Object]\"===Object.prototype.toString.call(t)}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function j(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(f(t,e))return;return 1}function a(t){return void 0===t}function Y(t){return\"number\"==typeof t||\"[object Number]\"===Object.prototype.toString.call(t)}function H(t){return t instanceof Date||\"[object Date]\"===Object.prototype.toString.call(t)}function z(t,e){for(var i=[],n=t.length,o=0;o<n;++o)i.push(e(t[o],o));return i}function B(t,e){for(var i in e)f(e,i)&&(t[i]=e[i]);return f(e,\"toString\")&&(t.toString=e.toString),f(e,\"valueOf\")&&(t.valueOf=e.valueOf),t}function h(t,e,i,n){return Pe(t,e,i,n,!0).utc()}function g(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function G(t){if(null==t._isValid){var e=g(t),i=V.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function W(t){var e=h(NaN);return null!=t?B(g(e),t):g(e).userInvalidated=!0,e}var V=Array.prototype.some||function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1},U=m.momentProperties=[],X=!1;function q(t,e){var i,n,o,r=U.length;if(a(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),a(e._i)||(t._i=e._i),a(e._f)||(t._f=e._f),a(e._l)||(t._l=e._l),a(e._strict)||(t._strict=e._strict),a(e._tzm)||(t._tzm=e._tzm),a(e._isUTC)||(t._isUTC=e._isUTC),a(e._offset)||(t._offset=e._offset),a(e._pf)||(t._pf=g(e)),a(e._locale)||(t._locale=e._locale),0<r)for(i=0;i<r;i++)a(o=e[n=U[i]])||(t[n]=o);return t}function $(t){q(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===X&&(X=!0,m.updateOffset(this),X=!1)}function l(t){return t instanceof $||null!=t&&null!=t._isAMomentObject}function Z(t){!1===m.suppressDeprecationWarnings&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+t)}function t(r,s){var a=!0;return B(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,r),a){for(var t,e,i=[],n=arguments.length,o=0;o<n;o++){if(t=\"\",\"object\"==typeof arguments[o]){for(e in t+=\"\\n[\"+o+\"] \",arguments[0])f(arguments[0],e)&&(t+=e+\": \"+arguments[0][e]+\", \");t=t.slice(0,-2)}else t=arguments[o];i.push(t)}Z(r+\"\\nArguments: \"+Array.prototype.slice.call(i).join(\"\")+\"\\n\"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var K={};function J(t,e){null!=m.deprecationHandler&&m.deprecationHandler(t,e),K[t]||(Z(e),K[t]=!0)}function u(t){return\"undefined\"!=typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}function Q(t,e){var i,n=B({},t);for(i in e)f(e,i)&&(F(t[i])&&F(e[i])?(n[i]={},B(n[i],t[i]),B(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)f(t,i)&&!f(e,i)&&F(t[i])&&(n[i]=B({},n[i]));return n}function tt(t){null!=t&&this.set(t)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var et=Object.keys||function(t){var e,i=[];for(e in t)f(t,e)&&i.push(e);return i};function r(t,e,i){var n=\"\"+Math.abs(t);return(0<=t?i?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var it=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,nt=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},rt={};function n(t,e,i,n){var o=\"string\"==typeof n?function(){return this[n]()}:n;t&&(rt[t]=o),e&&(rt[e[0]]=function(){return r(o.apply(this,arguments),e[1],e[2])}),i&&(rt[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function st(t,e){return t.isValid()?(e=at(e,t.localeData()),ot[e]=ot[e]||function(n){for(var t,o=n.match(it),e=0,r=o.length;e<r;e++)rt[o[e]]?o[e]=rt[o[e]]:o[e]=(t=o[e]).match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\");return function(t){for(var e=\"\",i=0;i<r;i++)e+=u(o[i])?o[i].call(t,n):o[i];return e}}(e),ot[e](t)):t.localeData().invalidDate()}function at(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(nt.lastIndex=0;0<=i&&nt.test(t);)t=t.replace(nt,n),nt.lastIndex=0,--i;return t}var lt={};function e(t,e){var i=t.toLowerCase();lt[i]=lt[i+\"s\"]=lt[e]=t}function c(t){return\"string\"==typeof t?lt[t]||lt[t.toLowerCase()]:void 0}function ht(t){var e,i,n={};for(i in t)f(t,i)&&(e=c(i))&&(n[e]=t[i]);return n}var ut={};function i(t,e){ut[t]=e}function ct(t){return t%4==0&&t%100!=0||t%400==0}function d(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function p(t){var t=+t,e=0;return e=0!=t&&isFinite(t)?d(t):e}function dt(e,i){return function(t){return null!=t?(mt(this,e,t),m.updateOffset(this,i),this):pt(this,e)}}function pt(t,e){return t.isValid()?t._d[\"get\"+(t._isUTC?\"UTC\":\"\")+e]():NaN}function mt(t,e,i){t.isValid()&&!isNaN(i)&&(\"FullYear\"===e&&ct(t.year())&&1===t.month()&&29===t.date()?(i=p(i),t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+e](i,t.month(),Lt(i,t.month()))):t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+e](i))}var o=/\\d/,v=/\\d\\d/,ft=/\\d{3}/,gt=/\\d{4}/,vt=/[+-]?\\d{6}/,y=/\\d\\d?/,yt=/\\d\\d\\d\\d?/,bt=/\\d\\d\\d\\d\\d\\d?/,_t=/\\d{1,3}/,wt=/\\d{1,4}/,kt=/[+-]?\\d{1,6}/,xt=/\\d+/,Dt=/[+-]?\\d+/,St=/Z|[+-]\\d\\d:?\\d\\d/gi,Ct=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi,b=/[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i;function _(t,i,n){Mt[t]=u(i)?i:function(t,e){return t&&n?n:i}}function Tt(t,e){return f(Mt,t)?Mt[t](e._strict,e._locale):new RegExp(w(t.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(t,e,i,n,o){return e||i||n||o})))}function w(t){return t.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}var Mt={},Ot={};function k(t,i){var e,n,o=i;for(\"string\"==typeof t&&(t=[t]),Y(i)&&(o=function(t,e){e[i]=p(t)}),n=t.length,e=0;e<n;e++)Ot[t[e]]=o}function Et(t,o){k(t,function(t,e,i,n){i._w=i._w||{},o(t,i._w,i,n)})}var x,D=0,S=1,C=2,T=3,M=4,O=5,Pt=6,It=7,At=8;function Lt(t,e){var i;return isNaN(t)||isNaN(e)?NaN:(i=(e%(i=12)+i)%i,t+=(e-i)/12,1==i?ct(t)?29:28:31-i%7%2)}x=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},n(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1}),n(\"MMM\",0,0,function(t){return this.localeData().monthsShort(this,t)}),n(\"MMMM\",0,0,function(t){return this.localeData().months(this,t)}),e(\"month\",\"M\"),i(\"month\",8),_(\"M\",y),_(\"MM\",y,v),_(\"MMM\",function(t,e){return e.monthsShortRegex(t)}),_(\"MMMM\",function(t,e){return e.monthsRegex(t)}),k([\"M\",\"MM\"],function(t,e){e[S]=p(t)-1}),k([\"MMM\",\"MMMM\"],function(t,e,i,n){n=i._locale.monthsParse(t,n,i._strict);null!=n?e[S]=n:g(i).invalidMonth=t});var Nt=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),Rt=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),Ft=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,jt=b,Yt=b;function Ht(t,e){var i;if(t.isValid()){if(\"string\"==typeof e)if(/^\\d+$/.test(e))e=p(e);else if(!Y(e=t.localeData().monthsParse(e)))return;i=Math.min(t.date(),Lt(t.year(),e)),t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+\"Month\"](e,i)}}function zt(t){return null!=t?(Ht(this,t),m.updateOffset(this,!0),this):pt(this,\"Month\")}function Bt(){function t(t,e){return e.length-t.length}for(var e,i=[],n=[],o=[],r=0;r<12;r++)e=h([2e3,r]),i.push(this.monthsShort(e,\"\")),n.push(this.months(e,\"\")),o.push(this.months(e,\"\")),o.push(this.monthsShort(e,\"\"));for(i.sort(t),n.sort(t),o.sort(t),r=0;r<12;r++)i[r]=w(i[r]),n[r]=w(n[r]);for(r=0;r<24;r++)o[r]=w(o[r]);this._monthsRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(\"^(\"+n.join(\"|\")+\")\",\"i\"),this._monthsShortStrictRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\")}function Gt(t){return ct(t)?366:365}n(\"Y\",0,0,function(){var t=this.year();return t<=9999?r(t,4):\"+\"+t}),n(0,[\"YY\",2],0,function(){return this.year()%100}),n(0,[\"YYYY\",4],0,\"year\"),n(0,[\"YYYYY\",5],0,\"year\"),n(0,[\"YYYYYY\",6,!0],0,\"year\"),e(\"year\",\"y\"),i(\"year\",1),_(\"Y\",Dt),_(\"YY\",y,v),_(\"YYYY\",wt,gt),_(\"YYYYY\",kt,vt),_(\"YYYYYY\",kt,vt),k([\"YYYYY\",\"YYYYYY\"],D),k(\"YYYY\",function(t,e){e[D]=2===t.length?m.parseTwoDigitYear(t):p(t)}),k(\"YY\",function(t,e){e[D]=m.parseTwoDigitYear(t)}),k(\"Y\",function(t,e){e[D]=parseInt(t,10)}),m.parseTwoDigitYear=function(t){return p(t)+(68<p(t)?1900:2e3)};var Wt=dt(\"FullYear\",!0);function Vt(t,e,i,n,o,r,s){var a;return t<100&&0<=t?(a=new Date(t+400,e,i,n,o,r,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,o,r,s),a}function Ut(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Xt(t,e,i){i=7+e-i;return-(7+Ut(t,0,i).getUTCDay()-e)%7+i-1}function qt(t,e,i,n,o){var r,e=1+7*(e-1)+(7+i-n)%7+Xt(t,n,o),i=e<=0?Gt(r=t-1)+e:e>Gt(t)?(r=t+1,e-Gt(t)):(r=t,e);return{year:r,dayOfYear:i}}function $t(t,e,i){var n,o,r=Xt(t.year(),e,i),r=Math.floor((t.dayOfYear()-r-1)/7)+1;return r<1?n=r+E(o=t.year()-1,e,i):r>E(t.year(),e,i)?(n=r-E(t.year(),e,i),o=t.year()+1):(o=t.year(),n=r),{week:n,year:o}}function E(t,e,i){var n=Xt(t,e,i),e=Xt(t+1,e,i);return(Gt(t)-n+e)/7}n(\"w\",[\"ww\",2],\"wo\",\"week\"),n(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),e(\"week\",\"w\"),e(\"isoWeek\",\"W\"),i(\"week\",5),i(\"isoWeek\",5),_(\"w\",y),_(\"ww\",y,v),_(\"W\",y),_(\"WW\",y,v),Et([\"w\",\"ww\",\"W\",\"WW\"],function(t,e,i,n){e[n.substr(0,1)]=p(t)});function Zt(t,e){return t.slice(e,7).concat(t.slice(0,e))}n(\"d\",0,\"do\",\"day\"),n(\"dd\",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),n(\"ddd\",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),n(\"dddd\",0,0,function(t){return this.localeData().weekdays(this,t)}),n(\"e\",0,0,\"weekday\"),n(\"E\",0,0,\"isoWeekday\"),e(\"day\",\"d\"),e(\"weekday\",\"e\"),e(\"isoWeekday\",\"E\"),i(\"day\",11),i(\"weekday\",11),i(\"isoWeekday\",11),_(\"d\",y),_(\"e\",y),_(\"E\",y),_(\"dd\",function(t,e){return e.weekdaysMinRegex(t)}),_(\"ddd\",function(t,e){return e.weekdaysShortRegex(t)}),_(\"dddd\",function(t,e){return e.weekdaysRegex(t)}),Et([\"dd\",\"ddd\",\"dddd\"],function(t,e,i,n){n=i._locale.weekdaysParse(t,n,i._strict);null!=n?e.d=n:g(i).invalidWeekday=t}),Et([\"d\",\"e\",\"E\"],function(t,e,i,n){e[n]=p(t)});var Kt=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),Jt=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),Qt=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),te=b,ee=b,ie=b;function ne(){function t(t,e){return e.length-t.length}for(var e,i,n,o=[],r=[],s=[],a=[],l=0;l<7;l++)n=h([2e3,1]).day(l),e=w(this.weekdaysMin(n,\"\")),i=w(this.weekdaysShort(n,\"\")),n=w(this.weekdays(n,\"\")),o.push(e),r.push(i),s.push(n),a.push(e),a.push(i),a.push(n);o.sort(t),r.sort(t),s.sort(t),a.sort(t),this._weekdaysRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+r.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\")}function oe(){return this.hours()%12||12}function re(t,e){n(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}n(\"H\",[\"HH\",2],0,\"hour\"),n(\"h\",[\"hh\",2],0,oe),n(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),n(\"hmm\",0,0,function(){return\"\"+oe.apply(this)+r(this.minutes(),2)}),n(\"hmmss\",0,0,function(){return\"\"+oe.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),n(\"Hmm\",0,0,function(){return\"\"+this.hours()+r(this.minutes(),2)}),n(\"Hmmss\",0,0,function(){return\"\"+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),re(\"a\",!0),re(\"A\",!1),e(\"hour\",\"h\"),i(\"hour\",13),_(\"a\",se),_(\"A\",se),_(\"H\",y),_(\"h\",y),_(\"k\",y),_(\"HH\",y,v),_(\"hh\",y,v),_(\"kk\",y,v),_(\"hmm\",yt),_(\"hmmss\",bt),_(\"Hmm\",yt),_(\"Hmmss\",bt),k([\"H\",\"HH\"],T),k([\"k\",\"kk\"],function(t,e,i){t=p(t);e[T]=24===t?0:t}),k([\"a\",\"A\"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),k([\"h\",\"hh\"],function(t,e,i){e[T]=p(t),g(i).bigHour=!0}),k(\"hmm\",function(t,e,i){var n=t.length-2;e[T]=p(t.substr(0,n)),e[M]=p(t.substr(n)),g(i).bigHour=!0}),k(\"hmmss\",function(t,e,i){var n=t.length-4,o=t.length-2;e[T]=p(t.substr(0,n)),e[M]=p(t.substr(n,2)),e[O]=p(t.substr(o)),g(i).bigHour=!0}),k(\"Hmm\",function(t,e,i){var n=t.length-2;e[T]=p(t.substr(0,n)),e[M]=p(t.substr(n))}),k(\"Hmmss\",function(t,e,i){var n=t.length-4,o=t.length-2;e[T]=p(t.substr(0,n)),e[M]=p(t.substr(n,2)),e[O]=p(t.substr(o))});b=dt(\"Hours\",!0);var ae,le={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",w:\"a week\",ww:\"%d weeks\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Nt,monthsShort:Rt,week:{dow:0,doy:6},weekdays:Kt,weekdaysMin:Qt,weekdaysShort:Jt,meridiemParse:/[ap]\\.?m?\\.?/i},P={},he={};function ue(t){return t&&t.toLowerCase().replace(\"_\",\"-\")}function ce(t){for(var e,i,n,o,r=0;r<t.length;){for(e=(o=ue(t[r]).split(\"-\")).length,i=(i=ue(t[r+1]))?i.split(\"-\"):null;0<e;){if(n=de(o.slice(0,e).join(\"-\")))return n;if(i&&i.length>=e&&function(t,e){for(var i=Math.min(t.length,e.length),n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}(o,i)>=e-1)break;e--}r++}return ae}function de(e){if(void 0===P[e]&&Ai&&Ai.exports&&null!=e.match(\"^[^/\\\\\\\\]*$\"))try{ae._abbr;throw new Error('Could not dynamically require \"'+(\"./locale/\"+e)+'\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}catch(t){P[e]=null}return P[e]}function pe(t,e){return t&&((e=a(e)?I(t):me(t,e))?ae=e:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+t+\" not found. Did you forget to load it?\")),ae._abbr}function me(t,e){if(null===e)return delete P[t],null;var i,n=le;if(e.abbr=t,null!=P[t])J(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),n=P[t]._config;else if(null!=e.parentLocale)if(null!=P[e.parentLocale])n=P[e.parentLocale]._config;else{if(null==(i=de(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;n=i._config}return P[t]=new tt(Q(n,e)),he[t]&&he[t].forEach(function(t){me(t.name,t.config)}),pe(t),P[t]}function I(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return ae;if(!s(t)){if(e=de(t))return e;t=[t]}return ce(t)}function fe(t){var e=t._a;return e&&-2===g(t).overflow&&(e=e[S]<0||11<e[S]?S:e[C]<1||e[C]>Lt(e[D],e[S])?C:e[T]<0||24<e[T]||24===e[T]&&(0!==e[M]||0!==e[O]||0!==e[Pt])?T:e[M]<0||59<e[M]?M:e[O]<0||59<e[O]?O:e[Pt]<0||999<e[Pt]?Pt:-1,g(t)._overflowDayOfYear&&(e<D||C<e)&&(e=C),g(t)._overflowWeeks&&-1===e&&(e=It),g(t)._overflowWeekday&&-1===e&&(e=At),g(t).overflow=e),t}var ge=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,ve=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,ye=/Z|[+-]\\d\\d(?::?\\d\\d)?/,be=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/],[\"YYYYMM\",/\\d{6}/,!1],[\"YYYY\",/\\d{4}/,!1]],_e=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],we=/^\\/?Date\\((-?\\d+)/i,ke=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,xe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function De(t){var e,i,n,o,r,s,a=t._i,l=ge.exec(a)||ve.exec(a),a=be.length,h=_e.length;if(l){for(g(t).iso=!0,e=0,i=a;e<i;e++)if(be[e][1].exec(l[1])){o=be[e][0],n=!1!==be[e][2];break}if(null==o)return t._isValid=!1;if(l[3]){for(e=0,i=h;e<i;e++)if(_e[e][1].exec(l[3])){r=(l[2]||\" \")+_e[e][0];break}if(null==r)return t._isValid=!1}if(!n&&null!=r)return t._isValid=!1;if(l[4]){if(!ye.exec(l[4]))return t._isValid=!1;s=\"Z\"}t._f=o+(r||\"\")+(s||\"\"),Oe(t)}else t._isValid=!1}function Se(t,e,i,n,o,r){t=[function(t){t=parseInt(t,10);return t<=49?2e3+t:t<=999?1900+t:t}(t),Rt.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(o,10)];return r&&t.push(parseInt(r,10)),t}function Ce(t){var e,i,n,o,r=ke.exec(t._i.replace(/\\([^()]*\\)|[\\n\\t]/g,\" \").replace(/(\\s\\s+)/g,\" \").replace(/^\\s\\s*/,\"\").replace(/\\s\\s*$/,\"\"));r?(e=Se(r[4],r[3],r[2],r[5],r[6],r[7]),i=r[1],n=e,o=t,i&&Jt.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(g(o).weekdayMismatch=!0,o._isValid=!1):(t._a=e,t._tzm=(i=r[8],n=r[9],o=r[10],i?xe[i]:n?0:((i=parseInt(o,10))-(n=i%100))/100*60+n),t._d=Ut.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0)):t._isValid=!1}function Te(t,e,i){return null!=t?t:null!=e?e:i}function Me(t){var e,i,n,o,r,s,a,l,h,u,c,d=[];if(!t._d){for(u=t,c=new Date(m.now()),i=u._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],t._w&&null==t._a[C]&&null==t._a[S]&&(null!=(c=(u=t)._w).GG||null!=c.W||null!=c.E?(s=1,a=4,n=Te(c.GG,u._a[D],$t(A(),1,4).year),o=Te(c.W,1),((r=Te(c.E,1))<1||7<r)&&(l=!0)):(s=u._locale._week.dow,a=u._locale._week.doy,h=$t(A(),s,a),n=Te(c.gg,u._a[D],h.year),o=Te(c.w,h.week),null!=c.d?((r=c.d)<0||6<r)&&(l=!0):null!=c.e?(r=c.e+s,(c.e<0||6<c.e)&&(l=!0)):r=s),o<1||o>E(n,s,a)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(h=qt(n,o,r,s,a),u._a[D]=h.year,u._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(c=Te(t._a[D],i[D]),(t._dayOfYear>Gt(c)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),l=Ut(c,0,t._dayOfYear),t._a[S]=l.getUTCMonth(),t._a[C]=l.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=d[e]=i[e];for(;e<7;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[T]&&0===t._a[M]&&0===t._a[O]&&0===t._a[Pt]&&(t._nextDay=!0,t._a[T]=0),t._d=(t._useUTC?Ut:Vt).apply(null,d),n=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[T]=24),t._w&&void 0!==t._w.d&&t._w.d!==n&&(g(t).weekdayMismatch=!0)}}function Oe(t){if(t._f!==m.ISO_8601)if(t._f!==m.RFC_2822){t._a=[],g(t).empty=!0;for(var e,i,n,o=\"\"+t._i,r=o.length,s=0,a=(i=at(t._f,t._locale).match(it)||[]).length,l=0;l<a;l++)n=i[l],(e=(o.match(Tt(n,t))||[])[0])&&(0<(c=o.substr(0,o.indexOf(e))).length&&g(t).unusedInput.push(c),o=o.slice(o.indexOf(e)+e.length),s+=e.length),rt[n]?(e?g(t).empty=!1:g(t).unusedTokens.push(n),c=n,p=t,null!=(d=e)&&f(Ot,c)&&Ot[c](d,p._a,p,c)):t._strict&&!e&&g(t).unusedTokens.push(n);g(t).charsLeftOver=r-s,0<o.length&&g(t).unusedInput.push(o),t._a[T]<=12&&!0===g(t).bigHour&&0<t._a[T]&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[T]=(r=t._locale,h=t._a[T],null==(u=t._meridiem)?h:null!=r.meridiemHour?r.meridiemHour(h,u):null!=r.isPM?((r=r.isPM(u))&&h<12&&(h+=12),h=r||12!==h?h:0):h),null!==(u=g(t).era)&&(t._a[D]=t._locale.erasConvertYear(u,t._a[D])),Me(t),fe(t)}else Ce(t);else De(t);var h,u,c,d,p}function Ee(t){var e,i=t._i,n=t._f;{var o,r;return(t._locale=t._locale||I(t._l),null===i||void 0===n&&\"\"===i)?W({nullInput:!0}):(\"string\"==typeof i&&(t._i=i=t._locale.preparse(i)),l(i)?new $(fe(i)):(H(i)?t._d=i:s(n)?function(t){var e,i,n,o,r,s,a=!1,l=t._f.length;if(0===l)return g(t).invalidFormat=!0,t._d=new Date(NaN);for(o=0;o<l;o++)r=0,s=!1,e=q({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],Oe(e),G(e)&&(s=!0),r=(r+=g(e).charsLeftOver)+10*g(e).unusedTokens.length,g(e).score=r,a?r<n&&(n=r,i=e):(null==n||r<n||s)&&(n=r,i=e,s)&&(a=!0);B(t,i||e)}(t):n?Oe(t):a(n=(i=t)._i)?i._d=new Date(m.now()):H(n)?i._d=new Date(n.valueOf()):\"string\"==typeof n?(o=i,null===(r=we.exec(o._i))?(De(o),!1===o._isValid&&(delete o._isValid,Ce(o),!1===o._isValid)&&(delete o._isValid,o._strict?o._isValid=!1:m.createFromInputFallback(o))):o._d=new Date(+r[1])):s(n)?(i._a=z(n.slice(0),function(t){return parseInt(t,10)}),Me(i)):F(n)?(o=i)._d||(e=void 0===(r=ht(o._i)).day?r.date:r.day,o._a=z([r.year,r.month,e,r.hour,r.minute,r.second,r.millisecond],function(t){return t&&parseInt(t,10)}),Me(o)):Y(n)?i._d=new Date(n):m.createFromInputFallback(i),G(t)||(t._d=null),t))}}function Pe(t,e,i,n,o){var r={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(F(t)&&j(t)||s(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=i,r._i=t,r._f=e,r._strict=n,(o=new $(fe(Ee(o=r))))._nextDay&&(o.add(1,\"d\"),o._nextDay=void 0),o}function A(t,e,i,n){return Pe(t,e,i,n,!1)}m.createFromInputFallback=t(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(t){t._d=new Date(t._i+(t._useUTC?\" UTC\":\"\"))}),m.ISO_8601=function(){},m.RFC_2822=function(){};yt=t(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var t=A.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:W()}),bt=t(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var t=A.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:W()});function Ie(t,e){var i,n;if(!(e=1===e.length&&s(e[0])?e[0]:e).length)return A();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Ae=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function Le(t){var t=ht(t),e=t.year||0,i=t.quarter||0,n=t.month||0,o=t.week||t.isoWeek||0,r=t.day||0,s=t.hour||0,a=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(t){var e,i,n=!1,o=Ae.length;for(e in t)if(f(t,e)&&(-1===x.call(Ae,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<o;++i)if(t[Ae[i]]){if(n)return!1;parseFloat(t[Ae[i]])!==p(t[Ae[i]])&&(n=!0)}return!0}(t),this._milliseconds=+h+1e3*l+6e4*a+1e3*s*60*60,this._days=+r+7*o,this._months=+n+3*i+12*e,this._data={},this._locale=I(),this._bubble()}function Ne(t){return t instanceof Le}function Re(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Fe(t,i){n(t,0,0,function(){var t=this.utcOffset(),e=\"+\";return t<0&&(t=-t,e=\"-\"),e+r(~~(t/60),2)+i+r(~~t%60,2)})}Fe(\"Z\",\":\"),Fe(\"ZZ\",\"\"),_(\"Z\",Ct),_(\"ZZ\",Ct),k([\"Z\",\"ZZ\"],function(t,e,i){i._useUTC=!0,i._tzm=Ye(Ct,t)});var je=/([\\+\\-]|\\d\\d)/gi;function Ye(t,e){var e=(e||\"\").match(t);return null===e?null:0===(e=60*(t=((e[e.length-1]||[])+\"\").match(je)||[\"-\",0,0])[1]+p(t[2]))?0:\"+\"===t[0]?e:-e}function He(t,e){var i;return e._isUTC?(e=e.clone(),i=(l(t)||H(t)?t:A(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+i),m.updateOffset(e,!1),e):A(t).local()}function ze(t){return-Math.round(t._d.getTimezoneOffset())}function Be(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var Ge=/^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,We=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function L(t,e){var i,n,o=t;return Ne(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:Y(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(e=Ge.exec(t))?(i=\"-\"===e[1]?-1:1,o={y:0,d:p(e[C])*i,h:p(e[T])*i,m:p(e[M])*i,s:p(e[O])*i,ms:p(Re(1e3*e[Pt]))*i}):(e=We.exec(t))?(i=\"-\"===e[1]?-1:1,o={y:Ve(e[2],i),M:Ve(e[3],i),w:Ve(e[4],i),d:Ve(e[5],i),h:Ve(e[6],i),m:Ve(e[7],i),s:Ve(e[8],i)}):null==o?o={}:\"object\"==typeof o&&(\"from\"in o||\"to\"in o)&&(e=A(o.from),i=A(o.to),e=e.isValid()&&i.isValid()?(i=He(i,e),e.isBefore(i)?n=Ue(e,i):((n=Ue(i,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(o={}).ms=e.milliseconds,o.M=e.months),n=new Le(o),Ne(t)&&f(t,\"_locale\")&&(n._locale=t._locale),Ne(t)&&f(t,\"_isValid\")&&(n._isValid=t._isValid),n}function Ve(t,e){t=t&&parseFloat(t.replace(\",\",\".\"));return(isNaN(t)?0:t)*e}function Ue(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,\"M\").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,\"M\"),i}function Xe(n,o){return function(t,e){var i;return null===e||isNaN(+e)||(J(o,\"moment().\"+o+\"(period, number) is deprecated. Please use moment().\"+o+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),i=t,t=e,e=i),qe(this,L(t,e),n),this}}function qe(t,e,i,n){var o=e._milliseconds,r=Re(e._days),e=Re(e._months);t.isValid()&&(n=null==n||n,e&&Ht(t,pt(t,\"Month\")+e*i),r&&mt(t,\"Date\",pt(t,\"Date\")+r*i),o&&t._d.setTime(t._d.valueOf()+o*i),n)&&m.updateOffset(t,r||e)}L.fn=Le.prototype,L.invalid=function(){return L(NaN)};Nt=Xe(1,\"add\"),Kt=Xe(-1,\"subtract\");function $e(t){return\"string\"==typeof t||t instanceof String}function Ze(t){return l(t)||H(t)||$e(t)||Y(t)||(i=s(e=t),n=!1,i&&(n=0===e.filter(function(t){return!Y(t)&&$e(e)}).length),i&&n)||function(t){var e,i,n=F(t)&&!j(t),o=!1,r=[\"years\",\"year\",\"y\",\"months\",\"month\",\"M\",\"days\",\"day\",\"d\",\"dates\",\"date\",\"D\",\"hours\",\"hour\",\"h\",\"minutes\",\"minute\",\"m\",\"seconds\",\"second\",\"s\",\"milliseconds\",\"millisecond\",\"ms\"],s=r.length;for(e=0;e<s;e+=1)i=r[e],o=o||f(t,i);return n&&o}(t)||null==t;var e,i,n}function Ke(t,e){var i,n;return t.date()<e.date()?-Ke(e,t):-((i=12*(e.year()-t.year())+(e.month()-t.month()))+(e-(n=t.clone().add(i,\"months\"))<0?(e-n)/(n-t.clone().add(i-1,\"months\")):(e-n)/(t.clone().add(1+i,\"months\")-n)))||0}function Je(t){return void 0===t?this._locale._abbr:(null!=(t=I(t))&&(this._locale=t),this)}m.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",m.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";Qt=t(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(t){return void 0===t?this.localeData():this.locale(t)});function Qe(){return this._locale}var ti=1e3,ei=60*ti,ii=60*ei,ni=3506328*ii;function oi(t,e){return(t%e+e)%e}function ri(t,e,i){return t<100&&0<=t?new Date(t+400,e,i)-ni:new Date(t,e,i).valueOf()}function si(t,e,i){return t<100&&0<=t?Date.UTC(t+400,e,i)-ni:Date.UTC(t,e,i)}function ai(t,e){return e.erasAbbrRegex(t)}function li(){for(var t=[],e=[],i=[],n=[],o=this.eras(),r=0,s=o.length;r<s;++r)e.push(w(o[r].name)),t.push(w(o[r].abbr)),i.push(w(o[r].narrow)),n.push(w(o[r].name)),n.push(w(o[r].abbr)),n.push(w(o[r].narrow));this._erasRegex=new RegExp(\"^(\"+n.join(\"|\")+\")\",\"i\"),this._erasNameRegex=new RegExp(\"^(\"+e.join(\"|\")+\")\",\"i\"),this._erasAbbrRegex=new RegExp(\"^(\"+t.join(\"|\")+\")\",\"i\"),this._erasNarrowRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\")}function hi(t,e){n(0,[t,t.length],0,e)}function ui(t,e,i,n,o){var r;return null==t?$t(this,n,o).year:(e>(r=E(t,n,o))&&(e=r),function(t,e,i,n,o){t=qt(t,e,i,n,o),e=Ut(t.year,0,t.dayOfYear);return this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e,i,n,o))}n(\"N\",0,0,\"eraAbbr\"),n(\"NN\",0,0,\"eraAbbr\"),n(\"NNN\",0,0,\"eraAbbr\"),n(\"NNNN\",0,0,\"eraName\"),n(\"NNNNN\",0,0,\"eraNarrow\"),n(\"y\",[\"y\",1],\"yo\",\"eraYear\"),n(\"y\",[\"yy\",2],0,\"eraYear\"),n(\"y\",[\"yyy\",3],0,\"eraYear\"),n(\"y\",[\"yyyy\",4],0,\"eraYear\"),_(\"N\",ai),_(\"NN\",ai),_(\"NNN\",ai),_(\"NNNN\",function(t,e){return e.erasNameRegex(t)}),_(\"NNNNN\",function(t,e){return e.erasNarrowRegex(t)}),k([\"N\",\"NN\",\"NNN\",\"NNNN\",\"NNNNN\"],function(t,e,i,n){n=i._locale.erasParse(t,n,i._strict);n?g(i).era=n:g(i).invalidEra=t}),_(\"y\",xt),_(\"yy\",xt),_(\"yyy\",xt),_(\"yyyy\",xt),_(\"yo\",function(t,e){return e._eraYearOrdinalRegex||xt}),k([\"y\",\"yy\",\"yyy\",\"yyyy\"],D),k([\"yo\"],function(t,e,i,n){var o;i._locale._eraYearOrdinalRegex&&(o=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[D]=i._locale.eraYearOrdinalParse(t,o):e[D]=parseInt(t,10)}),n(0,[\"gg\",2],0,function(){return this.weekYear()%100}),n(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),hi(\"gggg\",\"weekYear\"),hi(\"ggggg\",\"weekYear\"),hi(\"GGGG\",\"isoWeekYear\"),hi(\"GGGGG\",\"isoWeekYear\"),e(\"weekYear\",\"gg\"),e(\"isoWeekYear\",\"GG\"),i(\"weekYear\",1),i(\"isoWeekYear\",1),_(\"G\",Dt),_(\"g\",Dt),_(\"GG\",y,v),_(\"gg\",y,v),_(\"GGGG\",wt,gt),_(\"gggg\",wt,gt),_(\"GGGGG\",kt,vt),_(\"ggggg\",kt,vt),Et([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(t,e,i,n){e[n.substr(0,2)]=p(t)}),Et([\"gg\",\"GG\"],function(t,e,i,n){e[n]=m.parseTwoDigitYear(t)}),n(\"Q\",0,\"Qo\",\"quarter\"),e(\"quarter\",\"Q\"),i(\"quarter\",7),_(\"Q\",o),k(\"Q\",function(t,e){e[S]=3*(p(t)-1)}),n(\"D\",[\"DD\",2],\"Do\",\"date\"),e(\"date\",\"D\"),i(\"date\",9),_(\"D\",y),_(\"DD\",y,v),_(\"Do\",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),k([\"D\",\"DD\"],C),k(\"Do\",function(t,e){e[C]=p(t.match(y)[0])});wt=dt(\"Date\",!0);n(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),e(\"dayOfYear\",\"DDD\"),i(\"dayOfYear\",4),_(\"DDD\",_t),_(\"DDDD\",ft),k([\"DDD\",\"DDDD\"],function(t,e,i){i._dayOfYear=p(t)}),n(\"m\",[\"mm\",2],0,\"minute\"),e(\"minute\",\"m\"),i(\"minute\",14),_(\"m\",y),_(\"mm\",y,v),k([\"m\",\"mm\"],M);gt=dt(\"Minutes\",!1);n(\"s\",[\"ss\",2],0,\"second\"),e(\"second\",\"s\"),i(\"second\",15),_(\"s\",y),_(\"ss\",y,v),k([\"s\",\"ss\"],O);var ci,kt=dt(\"Seconds\",!1);for(n(\"S\",0,0,function(){return~~(this.millisecond()/100)}),n(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),n(0,[\"SSS\",3],0,\"millisecond\"),n(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),n(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),n(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),n(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),n(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),n(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),e(\"millisecond\",\"ms\"),i(\"millisecond\",16),_(\"S\",_t,o),_(\"SS\",_t,v),_(\"SSS\",_t,ft),ci=\"SSSS\";ci.length<=9;ci+=\"S\")_(ci,xt);function di(t,e){e[Pt]=p(1e3*(\"0.\"+t))}for(ci=\"S\";ci.length<=9;ci+=\"S\")k(ci,di);vt=dt(\"Milliseconds\",!1),n(\"z\",0,0,\"zoneAbbr\"),n(\"zz\",0,0,\"zoneName\");o=$.prototype;function pi(t){return t}o.add=Nt,o.calendar=function(t,e){1===arguments.length&&(arguments[0]?Ze(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=F(t)&&!j(t),i=!1,n=[\"sameDay\",\"nextDay\",\"lastDay\",\"nextWeek\",\"lastWeek\",\"sameElse\"],o=0;o<n.length;o+=1)i=i||f(t,n[o]);return e&&i}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var t=t||A(),i=He(t,this).startOf(\"day\"),i=m.calendarFormat(this,i)||\"sameElse\",e=e&&(u(e[i])?e[i].call(this,t):e[i]);return this.format(e||this.localeData().calendar(i,this,A(t)))},o.clone=function(){return new $(this)},o.diff=function(t,e,i){var n,o,r;if(!this.isValid())return NaN;if(!(n=He(t,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),e=c(e)){case\"year\":r=Ke(this,n)/12;break;case\"month\":r=Ke(this,n);break;case\"quarter\":r=Ke(this,n)/3;break;case\"second\":r=(this-n)/1e3;break;case\"minute\":r=(this-n)/6e4;break;case\"hour\":r=(this-n)/36e5;break;case\"day\":r=(this-n-o)/864e5;break;case\"week\":r=(this-n-o)/6048e5;break;default:r=this-n}return i?r:d(r)},o.endOf=function(t){var e,i;if(void 0!==(t=c(t))&&\"millisecond\"!==t&&this.isValid()){switch(i=this._isUTC?si:ri,t){case\"year\":e=i(this.year()+1,0,1)-1;break;case\"quarter\":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case\"month\":e=i(this.year(),this.month()+1,1)-1;break;case\"week\":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case\"isoWeek\":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case\"day\":case\"date\":e=i(this.year(),this.month(),this.date()+1)-1;break;case\"hour\":e=this._d.valueOf(),e+=ii-oi(e+(this._isUTC?0:this.utcOffset()*ei),ii)-1;break;case\"minute\":e=this._d.valueOf(),e+=ei-oi(e,ei)-1;break;case\"second\":e=this._d.valueOf(),e+=ti-oi(e,ti)-1}this._d.setTime(e),m.updateOffset(this,!0)}return this},o.format=function(t){return t=t||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),t=st(this,t),this.localeData().postformat(t)},o.from=function(t,e){return this.isValid()&&(l(t)&&t.isValid()||A(t).isValid())?L({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},o.fromNow=function(t){return this.from(A(),t)},o.to=function(t,e){return this.isValid()&&(l(t)&&t.isValid()||A(t).isValid())?L({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},o.toNow=function(t){return this.to(A(),t)},o.get=function(t){return u(this[t=c(t)])?this[t]():this},o.invalidAt=function(){return g(this).overflow},o.isAfter=function(t,e){return t=l(t)?t:A(t),!(!this.isValid()||!t.isValid())&&(\"millisecond\"===(e=c(e)||\"millisecond\")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},o.isBefore=function(t,e){return t=l(t)?t:A(t),!(!this.isValid()||!t.isValid())&&(\"millisecond\"===(e=c(e)||\"millisecond\")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},o.isBetween=function(t,e,i,n){return t=l(t)?t:A(t),e=l(e)?e:A(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&(\"(\"===(n=n||\"()\")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(\")\"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))},o.isSame=function(t,e){var t=l(t)?t:A(t);return!(!this.isValid()||!t.isValid())&&(\"millisecond\"===(e=c(e)||\"millisecond\")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},o.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},o.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},o.isValid=function(){return G(this)},o.lang=Qt,o.locale=Je,o.localeData=Qe,o.max=bt,o.min=yt,o.parsingFlags=function(){return B({},g(this))},o.set=function(t,e){if(\"object\"==typeof t)for(var i=function(t){var e,i=[];for(e in t)f(t,e)&&i.push({unit:e,priority:ut[e]});return i.sort(function(t,e){return t.priority-e.priority}),i}(t=ht(t)),n=i.length,o=0;o<n;o++)this[i[o].unit](t[i[o].unit]);else if(u(this[t=c(t)]))return this[t](e);return this},o.startOf=function(t){var e,i;if(void 0!==(t=c(t))&&\"millisecond\"!==t&&this.isValid()){switch(i=this._isUTC?si:ri,t){case\"year\":e=i(this.year(),0,1);break;case\"quarter\":e=i(this.year(),this.month()-this.month()%3,1);break;case\"month\":e=i(this.year(),this.month(),1);break;case\"week\":e=i(this.year(),this.month(),this.date()-this.weekday());break;case\"isoWeek\":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case\"day\":case\"date\":e=i(this.year(),this.month(),this.date());break;case\"hour\":e=this._d.valueOf(),e-=oi(e+(this._isUTC?0:this.utcOffset()*ei),ii);break;case\"minute\":e=this._d.valueOf(),e-=oi(e,ei);break;case\"second\":e=this._d.valueOf(),e-=oi(e,ti)}this._d.setTime(e),m.updateOffset(this,!0)}return this},o.subtract=Kt,o.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},o.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},o.toDate=function(){return new Date(this.valueOf())},o.toISOString=function(t){var e;return this.isValid()?(e=(t=!0!==t)?this.clone().utc():this).year()<0||9999<e.year()?st(e,t?\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\"):u(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(\"Z\",st(e,\"Z\")):st(e,t?\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYY-MM-DD[T]HH:mm:ss.SSSZ\"):null},o.inspect=function(){var t,e,i;return this.isValid()?(e=\"moment\",i=\"\",this.isLocal()||(e=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",i=\"Z\"),e=\"[\"+e+'(\"]',t=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",this.format(e+t+\"-MM-DD[T]HH:mm:ss.SSS\"+(i+'[\")]'))):\"moment.invalid(/* \"+this._i+\" */)\"},\"undefined\"!=typeof Symbol&&null!=Symbol.for&&(o[Symbol.for(\"nodejs.util.inspect.custom\")]=function(){return\"Moment<\"+this.format()+\">\"}),o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toString=function(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},o.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},o.eraName=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf(\"day\").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].name;if(e[i].until<=t&&t<=e[i].since)return e[i].name}return\"\"},o.eraNarrow=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf(\"day\").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].narrow;if(e[i].until<=t&&t<=e[i].since)return e[i].narrow}return\"\"},o.eraAbbr=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf(\"day\").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].abbr;if(e[i].until<=t&&t<=e[i].since)return e[i].abbr}return\"\"},o.eraYear=function(){for(var t,e,i=this.localeData().eras(),n=0,o=i.length;n<o;++n)if(t=i[n].since<=i[n].until?1:-1,e=this.clone().startOf(\"day\").valueOf(),i[n].since<=e&&e<=i[n].until||i[n].until<=e&&e<=i[n].since)return(this.year()-m(i[n].since).year())*t+i[n].offset;return this.year()},o.year=Wt,o.isLeapYear=function(){return ct(this.year())},o.weekYear=function(t){return ui.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},o.isoWeekYear=function(t){return ui.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},o.quarter=o.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},o.month=zt,o.daysInMonth=function(){return Lt(this.year(),this.month())},o.week=o.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),\"d\")},o.isoWeek=o.isoWeeks=function(t){var e=$t(this,1,4).week;return null==t?e:this.add(7*(t-e),\"d\")},o.weeksInYear=function(){var t=this.localeData()._week;return E(this.year(),t.dow,t.doy)},o.weeksInWeekYear=function(){var t=this.localeData()._week;return E(this.weekYear(),t.dow,t.doy)},o.isoWeeksInYear=function(){return E(this.year(),1,4)},o.isoWeeksInISOWeekYear=function(){return E(this.isoWeekYear(),1,4)},o.date=wt,o.day=o.days=function(t){var e,i,n;return this.isValid()?(e=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=t?(i=t,n=this.localeData(),t=\"string\"!=typeof i?i:isNaN(i)?\"number\"==typeof(i=n.weekdaysParse(i))?i:null:parseInt(i,10),this.add(t-e,\"d\")):e):null!=t?this:NaN},o.weekday=function(t){var e;return this.isValid()?(e=(this.day()+7-this.localeData()._week.dow)%7,null==t?e:this.add(t-e,\"d\")):null!=t?this:NaN},o.isoWeekday=function(t){var e,i;return this.isValid()?null!=t?(e=t,i=this.localeData(),i=\"string\"==typeof e?i.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?i:i-7)):this.day()||7:null!=t?this:NaN},o.dayOfYear=function(t){var e=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==t?e:this.add(t-e,\"d\")},o.hour=o.hours=b,o.minute=o.minutes=gt,o.second=o.seconds=kt,o.millisecond=o.milliseconds=vt,o.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?o:ze(this);if(\"string\"==typeof t){if(null===(t=Ye(Ct,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=ze(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,\"m\"),o!==t&&(!e||this._changeInProgress?qe(this,L(t-o,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},o.utc=function(t){return this.utcOffset(0,t)},o.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t)&&this.subtract(ze(this),\"m\"),this},o.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):\"string\"==typeof this._i&&(null!=(t=Ye(St,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},o.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?A(t).utcOffset():0,(this.utcOffset()-t)%60==0)},o.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},o.isLocal=function(){return!!this.isValid()&&!this._isUTC},o.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},o.isUtc=Be,o.isUTC=Be,o.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},o.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},o.dates=t(\"dates accessor is deprecated. Use date instead.\",wt),o.months=t(\"months accessor is deprecated. Use month instead\",zt),o.years=t(\"years accessor is deprecated. Use year instead\",Wt),o.zone=t(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(t,e){return null!=t?(this.utcOffset(t=\"string\"!=typeof t?-t:t,e),this):-this.utcOffset()}),o.isDSTShifted=t(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){var t,e;return a(this._isDSTShifted)&&(q(e={},this),(e=Ee(e))._a?(t=(e._isUTC?h:A)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,i){for(var n=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0,s=0;s<n;s++)(i&&t[s]!==e[s]||!i&&p(t[s])!==p(e[s]))&&r++;return r+o}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted});v=tt.prototype;function mi(t,e,i,n){var o=I(),n=h().set(n,e);return o[i](n,t)}function fi(t,e,i){if(Y(t)&&(e=t,t=void 0),t=t||\"\",null!=e)return mi(t,e,i,\"month\");for(var n=[],o=0;o<12;o++)n[o]=mi(t,o,i,\"month\");return n}function gi(t,e,i,n){e=(\"boolean\"==typeof t||(i=e=t,t=!1),Y(e)&&(i=e,e=void 0),e||\"\");var o,r=I(),s=t?r._week.dow:0,a=[];if(null!=i)return mi(e,(i+s)%7,n,\"day\");for(o=0;o<7;o++)a[o]=mi(e,(o+s)%7,n,\"day\");return a}v.calendar=function(t,e,i){return u(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,i):t},v.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(it).map(function(t){return\"MMMM\"===t||\"MM\"===t||\"DD\"===t||\"dddd\"===t?t.slice(1):t}).join(\"\"),this._longDateFormat[t])},v.invalidDate=function(){return this._invalidDate},v.ordinal=function(t){return this._ordinal.replace(\"%d\",t)},v.preparse=pi,v.postformat=pi,v.relativeTime=function(t,e,i,n){var o=this._relativeTime[i];return u(o)?o(t,e,i,n):o.replace(/%d/i,t)},v.pastFuture=function(t,e){return u(t=this._relativeTime[0<t?\"future\":\"past\"])?t(e):t.replace(/%s/i,e)},v.set=function(t){var e,i;for(i in t)f(t,i)&&(u(e=t[i])?this[i]=e:this[\"_\"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+\"|\"+/\\d{1,2}/.source)},v.eras=function(t,e){for(var i,n=this._eras||I(\"en\")._eras,o=0,r=n.length;o<r;++o)switch(\"string\"==typeof n[o].since&&(i=m(n[o].since).startOf(\"day\"),n[o].since=i.valueOf()),typeof n[o].until){case\"undefined\":n[o].until=1/0;break;case\"string\":i=m(n[o].until).startOf(\"day\").valueOf(),n[o].until=i.valueOf()}return n},v.erasParse=function(t,e,i){var n,o,r,s,a,l=this.eras();for(t=t.toUpperCase(),n=0,o=l.length;n<o;++n)if(r=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),i)switch(e){case\"N\":case\"NN\":case\"NNN\":if(s===t)return l[n];break;case\"NNNN\":if(r===t)return l[n];break;case\"NNNNN\":if(a===t)return l[n]}else if(0<=[r,s,a].indexOf(t))return l[n]},v.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?m(t.since).year():m(t.since).year()+(e-t.offset)*i},v.erasAbbrRegex=function(t){return f(this,\"_erasAbbrRegex\")||li.call(this),t?this._erasAbbrRegex:this._erasRegex},v.erasNameRegex=function(t){return f(this,\"_erasNameRegex\")||li.call(this),t?this._erasNameRegex:this._erasRegex},v.erasNarrowRegex=function(t){return f(this,\"_erasNarrowRegex\")||li.call(this),t?this._erasNarrowRegex:this._erasRegex},v.months=function(t,e){return t?(s(this._months)?this._months:this._months[(this._months.isFormat||Ft).test(e)?\"format\":\"standalone\"])[t.month()]:s(this._months)?this._months:this._months.standalone},v.monthsShort=function(t,e){return t?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Ft.test(e)?\"format\":\"standalone\"])[t.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},v.monthsParse=function(t,e,i){var n,o;if(this._monthsParseExact)return function(t,e,i){var n,o,r,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,\"\").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,\"\").toLocaleLowerCase();return i?\"MMM\"===e?-1!==(o=x.call(this._shortMonthsParse,t))?o:null:-1!==(o=x.call(this._longMonthsParse,t))?o:null:\"MMM\"===e?-1!==(o=x.call(this._shortMonthsParse,t))||-1!==(o=x.call(this._longMonthsParse,t))?o:null:-1!==(o=x.call(this._longMonthsParse,t))||-1!==(o=x.call(this._shortMonthsParse,t))?o:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=h([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp(\"^\"+this.months(o,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[n]=new RegExp(\"^\"+this.monthsShort(o,\"\").replace(\".\",\"\")+\"$\",\"i\")),i||this._monthsParse[n]||(o=\"^\"+this.months(o,\"\")+\"|^\"+this.monthsShort(o,\"\"),this._monthsParse[n]=new RegExp(o.replace(\".\",\"\"),\"i\")),i&&\"MMMM\"===e&&this._longMonthsParse[n].test(t))return n;if(i&&\"MMM\"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},v.monthsRegex=function(t){return this._monthsParseExact?(f(this,\"_monthsRegex\")||Bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,\"_monthsRegex\")||(this._monthsRegex=Yt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},v.monthsShortRegex=function(t){return this._monthsParseExact?(f(this,\"_monthsRegex\")||Bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,\"_monthsShortRegex\")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},v.week=function(t){return $t(t,this._week.dow,this._week.doy).week},v.firstDayOfYear=function(){return this._week.doy},v.firstDayOfWeek=function(){return this._week.dow},v.weekdays=function(t,e){return e=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?\"format\":\"standalone\"],!0===t?Zt(e,this._week.dow):t?e[t.day()]:e},v.weekdaysMin=function(t){return!0===t?Zt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},v.weekdaysShort=function(t){return!0===t?Zt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},v.weekdaysParse=function(t,e,i){var n,o;if(this._weekdaysParseExact)return function(t,e,i){var n,o,r,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,\"\").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,\"\").toLocaleLowerCase();return i?\"dddd\"===e?-1!==(o=x.call(this._weekdaysParse,t))?o:null:\"ddd\"===e?-1!==(o=x.call(this._shortWeekdaysParse,t))?o:null:-1!==(o=x.call(this._minWeekdaysParse,t))?o:null:\"dddd\"===e?-1!==(o=x.call(this._weekdaysParse,t))||-1!==(o=x.call(this._shortWeekdaysParse,t))||-1!==(o=x.call(this._minWeekdaysParse,t))?o:null:\"ddd\"===e?-1!==(o=x.call(this._shortWeekdaysParse,t))||-1!==(o=x.call(this._weekdaysParse,t))||-1!==(o=x.call(this._minWeekdaysParse,t))?o:null:-1!==(o=x.call(this._minWeekdaysParse,t))||-1!==(o=x.call(this._weekdaysParse,t))||-1!==(o=x.call(this._shortWeekdaysParse,t))?o:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=h([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp(\"^\"+this.weekdays(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._shortWeekdaysParse[n]=new RegExp(\"^\"+this.weekdaysShort(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._minWeekdaysParse[n]=new RegExp(\"^\"+this.weekdaysMin(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\")),this._weekdaysParse[n]||(o=\"^\"+this.weekdays(o,\"\")+\"|^\"+this.weekdaysShort(o,\"\")+\"|^\"+this.weekdaysMin(o,\"\"),this._weekdaysParse[n]=new RegExp(o.replace(\".\",\"\"),\"i\")),i&&\"dddd\"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&\"ddd\"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&\"dd\"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},v.weekdaysRegex=function(t){return this._weekdaysParseExact?(f(this,\"_weekdaysRegex\")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,\"_weekdaysRegex\")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},v.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(f(this,\"_weekdaysRegex\")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},v.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(f(this,\"_weekdaysRegex\")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=ie),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},v.isPM=function(t){return\"p\"===(t+\"\").toLowerCase().charAt(0)},v.meridiem=function(t,e,i){return 11<t?i?\"pm\":\"PM\":i?\"am\":\"AM\"},pe(\"en\",{eras:[{since:\"0001-01-01\",until:1/0,offset:1,name:\"Anno Domini\",narrow:\"AD\",abbr:\"AD\"},{since:\"0000-12-31\",until:-1/0,offset:1,name:\"Before Christ\",narrow:\"BC\",abbr:\"BC\"}],dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===p(t%100/10)?\"th\":1==e?\"st\":2==e?\"nd\":3==e?\"rd\":\"th\")}}),m.lang=t(\"moment.lang is deprecated. Use moment.locale instead.\",pe),m.langData=t(\"moment.langData is deprecated. Use moment.localeData instead.\",I);var vi=Math.abs;function yi(t,e,i,n){e=L(e,i);return t._milliseconds+=n*e._milliseconds,t._days+=n*e._days,t._months+=n*e._months,t._bubble()}function bi(t){return t<0?Math.floor(t):Math.ceil(t)}function _i(t){return 4800*t/146097}function wi(t){return 146097*t/4800}function ki(t){return function(){return this.as(t)}}_t=ki(\"ms\"),ft=ki(\"s\"),Nt=ki(\"m\"),bt=ki(\"h\"),yt=ki(\"d\"),Kt=ki(\"w\"),b=ki(\"M\"),gt=ki(\"Q\"),kt=ki(\"y\");function xi(t){return function(){return this.isValid()?this._data[t]:NaN}}var vt=xi(\"milliseconds\"),wt=xi(\"seconds\"),Wt=xi(\"minutes\"),v=xi(\"hours\"),Di=xi(\"days\"),Si=xi(\"months\"),Ci=xi(\"years\");var Ti=Math.round,Mi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Oi(t,e,i,n){var o=L(t).abs(),r=Ti(o.as(\"s\")),s=Ti(o.as(\"m\")),a=Ti(o.as(\"h\")),l=Ti(o.as(\"d\")),h=Ti(o.as(\"M\")),u=Ti(o.as(\"w\")),o=Ti(o.as(\"y\")),r=(r<=i.ss?[\"s\",r]:r<i.s&&[\"ss\",r])||(s<=1?[\"m\"]:s<i.m&&[\"mm\",s])||(a<=1?[\"h\"]:a<i.h&&[\"hh\",a])||(l<=1?[\"d\"]:l<i.d&&[\"dd\",l]);return(r=(r=null!=i.w?r||(u<=1?[\"w\"]:u<i.w&&[\"ww\",u]):r)||(h<=1?[\"M\"]:h<i.M&&[\"MM\",h])||(o<=1?[\"y\"]:[\"yy\",o]))[2]=e,r[3]=0<+t,r[4]=n,function(t,e,i,n,o){return o.relativeTime(e||1,!!i,t,n)}.apply(null,r)}var Ei=Math.abs;function Pi(t){return(0<t)-(t<0)||+t}function Ii(){var t,e,i,n,o,r,s,a,l,h,u;return this.isValid()?(a=Ei(this._milliseconds)/1e3,l=Ei(this._days),h=Ei(this._months),(u=this.asSeconds())?(t=d(a/60),e=d(t/60),a%=60,t%=60,i=d(h/12),h%=12,n=a?a.toFixed(3).replace(/\\.?0+$/,\"\"):\"\",o=Pi(this._months)!==Pi(u)?\"-\":\"\",r=Pi(this._days)!==Pi(u)?\"-\":\"\",s=Pi(this._milliseconds)!==Pi(u)?\"-\":\"\",(u<0?\"-\":\"\")+\"P\"+(i?o+i+\"Y\":\"\")+(h?o+h+\"M\":\"\")+(l?r+l+\"D\":\"\")+(e||t||a?\"T\":\"\")+(e?s+e+\"H\":\"\")+(t?s+t+\"M\":\"\")+(a?s+n+\"S\":\"\")):\"P0D\"):this.localeData().invalidDate()}var N=Le.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var t=this._data;return this._milliseconds=vi(this._milliseconds),this._days=vi(this._days),this._months=vi(this._months),t.milliseconds=vi(t.milliseconds),t.seconds=vi(t.seconds),t.minutes=vi(t.minutes),t.hours=vi(t.hours),t.months=vi(t.months),t.years=vi(t.years),this},N.add=function(t,e){return yi(this,t,e,1)},N.subtract=function(t,e){return yi(this,t,e,-1)},N.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(\"month\"===(t=c(t))||\"quarter\"===t||\"year\"===t)switch(e=this._days+n/864e5,i=this._months+_i(e),t){case\"month\":return i;case\"quarter\":return i/3;case\"year\":return i/12}else switch(e=this._days+Math.round(wi(this._months)),t){case\"week\":return e/7+n/6048e5;case\"day\":return e+n/864e5;case\"hour\":return 24*e+n/36e5;case\"minute\":return 1440*e+n/6e4;case\"second\":return 86400*e+n/1e3;case\"millisecond\":return Math.floor(864e5*e)+n;default:throw new Error(\"Unknown unit \"+t)}},N.asMilliseconds=_t,N.asSeconds=ft,N.asMinutes=Nt,N.asHours=bt,N.asDays=yt,N.asWeeks=Kt,N.asMonths=b,N.asQuarters=gt,N.asYears=kt,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12):NaN},N._bubble=function(){var t=this._milliseconds,e=this._days,i=this._months,n=this._data;return 0<=t&&0<=e&&0<=i||t<=0&&e<=0&&i<=0||(t+=864e5*bi(wi(i)+e),i=e=0),n.milliseconds=t%1e3,t=d(t/1e3),n.seconds=t%60,t=d(t/60),n.minutes=t%60,t=d(t/60),n.hours=t%24,e+=d(t/24),i+=t=d(_i(e)),e-=bi(wi(t)),t=d(i/12),i%=12,n.days=e,n.months=i,n.years=t,this},N.clone=function(){return L(this)},N.get=function(t){return t=c(t),this.isValid()?this[t+\"s\"]():NaN},N.milliseconds=vt,N.seconds=wt,N.minutes=Wt,N.hours=v,N.days=Di,N.weeks=function(){return d(this.days()/7)},N.months=Si,N.years=Ci,N.humanize=function(t,e){var i,n;return this.isValid()?(i=!1,n=Mi,\"object\"==typeof t&&(e=t,t=!1),\"boolean\"==typeof t&&(i=t),\"object\"==typeof e&&(n=Object.assign({},Mi,e),null!=e.s)&&null==e.ss&&(n.ss=e.s-1),e=Oi(this,!i,n,t=this.localeData()),i&&(e=t.pastFuture(+this,e)),t.postformat(e)):this.localeData().invalidDate()},N.toISOString=Ii,N.toString=Ii,N.toJSON=Ii,N.locale=Je,N.localeData=Qe,N.toIsoString=t(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",Ii),N.lang=Qt,n(\"X\",0,0,\"unix\"),n(\"x\",0,0,\"valueOf\"),_(\"x\",Dt),_(\"X\",/[+-]?\\d+(\\.\\d{1,3})?/),k(\"X\",function(t,e,i){i._d=new Date(1e3*parseFloat(t))}),k(\"x\",function(t,e,i){i._d=new Date(p(t))}),m.version=\"2.29.4\",R=A,m.fn=o,m.min=function(){return Ie(\"isBefore\",[].slice.call(arguments,0))},m.max=function(){return Ie(\"isAfter\",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=h,m.unix=function(t){return A(1e3*t)},m.months=function(t,e){return fi(t,e,\"months\")},m.isDate=H,m.locale=pe,m.invalid=W,m.duration=L,m.isMoment=l,m.weekdays=function(t,e,i){return gi(t,e,i,\"weekdays\")},m.parseZone=function(){return A.apply(null,arguments).parseZone()},m.localeData=I,m.isDuration=Ne,m.monthsShort=function(t,e){return fi(t,e,\"monthsShort\")},m.weekdaysMin=function(t,e,i){return gi(t,e,i,\"weekdaysMin\")},m.defineLocale=me,m.updateLocale=function(t,e){var i,n;return null!=e?(n=le,null!=P[t]&&null!=P[t].parentLocale?P[t].set(Q(P[t]._config,e)):(e=Q(n=null!=(i=de(t))?i._config:n,e),null==i&&(e.abbr=t),(n=new tt(e)).parentLocale=P[t],P[t]=n),pe(t)):null!=P[t]&&(null!=P[t].parentLocale?(P[t]=P[t].parentLocale,t===pe()&&pe(t)):null!=P[t]&&delete P[t]),P[t]},m.locales=function(){return et(P)},m.weekdaysShort=function(t,e,i){return gi(t,e,i,\"weekdaysShort\")},m.normalizeUnits=c,m.relativeTimeRounding=function(t){return void 0===t?Ti:\"function\"==typeof t&&(Ti=t,!0)},m.relativeTimeThreshold=function(t,e){return void 0!==Mi[t]&&(void 0===e?Mi[t]:(Mi[t]=e,\"s\"===t&&(Mi.ss=e-1),!0))},m.calendarFormat=function(t,e){return(t=t.diff(e,\"days\",!0))<-6?\"sameElse\":t<-1?\"lastWeek\":t<0?\"lastDay\":t<1?\"sameDay\":t<2?\"nextDay\":t<7?\"nextWeek\":\"sameElse\"},m.prototype=o,m.HTML5_FMT={DATETIME_LOCAL:\"YYYY-MM-DDTHH:mm\",DATETIME_LOCAL_SECONDS:\"YYYY-MM-DDTHH:mm:ss\",DATETIME_LOCAL_MS:\"YYYY-MM-DDTHH:mm:ss.SSS\",DATE:\"YYYY-MM-DD\",TIME:\"HH:mm\",TIME_SECONDS:\"HH:mm:ss\",TIME_MS:\"HH:mm:ss.SSS\",WEEK:\"GGGG-[W]WW\",MONTH:\"YYYY-MM\"},m}()),U;var Ai}function $(t,e,i){return\"m\"===i?e?\"хвилина\":\"хвилину\":\"h\"===i?e?\"година\":\"годину\":t+\" \"+(t=+t,e={ss:e?\"Ñекунда_Ñекунди_Ñекунд\":\"Ñекунду_Ñекунди_Ñекунд\",mm:e?\"хвилина_хвилини_хвилин\":\"хвилину_хвилини_хвилин\",hh:e?\"година_години_годин\":\"годину_години_годин\",dd:\"день_дні_днів\",MM:\"міÑÑць_міÑÑці_міÑÑців\",yy:\"рік_роки_років\"}[i].split(\"_\"),t%10==1&&t%100!=11?e[0]:2<=t%10&&t%10<=4&&(t%100<10||20<=t%100)?e[1]:e[2])}function Z(t){return function(){return t+\"о\"+(11===this.hours()?\"б\":\"\")+\"] LT\"}}function K(t,e,i){return\"m\"===i?e?\"минута\":\"минуту\":t+\" \"+(t=+t,e={ss:e?\"Ñекунда_Ñекунды_Ñекунд\":\"Ñекунду_Ñекунды_Ñекунд\",mm:e?\"минута_минуты_минут\":\"минуту_минуты_минут\",hh:\"чаÑ_чаÑа_чаÑов\",dd:\"день_днÑ_дней\",ww:\"неделÑ_недели_недель\",MM:\"меÑÑц_меÑÑца_меÑÑцев\",yy:\"год_года_лет\"}[i].split(\"_\"),t%10==1&&t%100!=11?e[0]:2<=t%10&&t%10<=4&&(t%100<10||20<=t%100)?e[1]:e[2])}function J(t){return t%10<5&&1<t%10&&~~(t/10)%10!=1}function Q(t,e,i){var n=t+\" \";switch(i){case\"ss\":return n+(J(t)?\"sekundy\":\"sekund\");case\"m\":return e?\"minuta\":\"minutÄ™\";case\"mm\":return n+(J(t)?\"minuty\":\"minut\");case\"h\":return e?\"godzina\":\"godzinÄ™\";case\"hh\":return n+(J(t)?\"godziny\":\"godzin\");case\"ww\":return n+(J(t)?\"tygodnie\":\"tygodni\");case\"MM\":return n+(J(t)?\"miesiÄ…ce\":\"miesiÄ™cy\");case\"yy\":return n+(J(t)?\"lata\":\"lat\")}}(function(t){function e(t,e,i,n){t={m:[\"eine Minute\",\"einer Minute\"],h:[\"eine Stunde\",\"einer Stunde\"],d:[\"ein Tag\",\"einem Tag\"],dd:[t+\" Tage\",t+\" Tagen\"],w:[\"eine Woche\",\"einer Woche\"],M:[\"ein Monat\",\"einem Monat\"],MM:[t+\" Monate\",t+\" Monaten\"],y:[\"ein Jahr\",\"einem Jahr\"],yy:[t+\" Jahre\",t+\" Jahren\"]};return e?t[i][0]:t[i][1]}t.defineLocale(\"de\",{months:\"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember\".split(\"_\"),monthsShort:\"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.\".split(\"_\"),monthsParseExact:!0,weekdays:\"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag\".split(\"_\"),weekdaysShort:\"So._Mo._Di._Mi._Do._Fr._Sa.\".split(\"_\"),weekdaysMin:\"So_Mo_Di_Mi_Do_Fr_Sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY HH:mm\",LLLL:\"dddd, D. MMMM YYYY HH:mm\"},calendar:{sameDay:\"[heute um] LT [Uhr]\",sameElse:\"L\",nextDay:\"[morgen um] LT [Uhr]\",nextWeek:\"dddd [um] LT [Uhr]\",lastDay:\"[gestern um] LT [Uhr]\",lastWeek:\"[letzten] dddd [um] LT [Uhr]\"},relativeTime:{future:\"in %s\",past:\"vor %s\",s:\"ein paar Sekunden\",ss:\"%d Sekunden\",m:e,mm:\"%d Minuten\",h:e,hh:\"%d Stunden\",d:e,dd:e,w:e,ww:\"%d Wochen\",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})})(q()),r=q(),W=\"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.\".split(\"_\"),V=\"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic\".split(\"_\"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,r.defineLocale(\"es\",{months:\"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre\".split(\"_\"),monthsShort:function(t,e){return t?(/-MMM-/.test(e)?V:W)[t.month()]:W},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:\"domingo_lunes_martes_miércoles_jueves_viernes_sábado\".split(\"_\"),weekdaysShort:\"dom._lun._mar._mié._jue._vie._sáb.\".split(\"_\"),weekdaysMin:\"do_lu_ma_mi_ju_vi_sá\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D [de] MMMM [de] YYYY\",LLL:\"D [de] MMMM [de] YYYY H:mm\",LLLL:\"dddd, D [de] MMMM [de] YYYY H:mm\"},calendar:{sameDay:function(){return\"[hoy a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextDay:function(){return\"[mañana a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},nextWeek:function(){return\"dddd [a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastDay:function(){return\"[ayer a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},lastWeek:function(){return\"[el] dddd [pasado a la\"+(1!==this.hours()?\"s\":\"\")+\"] LT\"},sameElse:\"L\"},relativeTime:{future:\"en %s\",past:\"hace %s\",s:\"unos segundos\",ss:\"%d segundos\",m:\"un minuto\",mm:\"%d minutos\",h:\"una hora\",hh:\"%d horas\",d:\"un dÃa\",dd:\"%d dÃas\",w:\"una semana\",ww:\"%d semanas\",M:\"un mes\",MM:\"%d meses\",y:\"un año\",yy:\"%d años\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4},invalidDate:\"Fecha inválida\"}),r=q(),o=/(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],r.defineLocale(\"fr\",{months:\"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre\".split(\"_\"),monthsShort:\"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.\".split(\"_\"),monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:\"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi\".split(\"_\"),weekdaysShort:\"dim._lun._mar._mer._jeu._ven._sam.\".split(\"_\"),weekdaysMin:\"di_lu_ma_me_je_ve_sa\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[Aujourd’hui à ] LT\",nextDay:\"[Demain à ] LT\",nextWeek:\"dddd [à ] LT\",lastDay:\"[Hier à ] LT\",lastWeek:\"dddd [dernier à ] LT\",sameElse:\"L\"},relativeTime:{future:\"dans %s\",past:\"il y a %s\",s:\"quelques secondes\",ss:\"%d secondes\",m:\"une minute\",mm:\"%d minutes\",h:\"une heure\",hh:\"%d heures\",d:\"un jour\",dd:\"%d jours\",w:\"une semaine\",ww:\"%d semaines\",M:\"un mois\",MM:\"%d mois\",y:\"un an\",yy:\"%d ans\"},dayOfMonthOrdinalParse:/\\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case\"D\":return t+(1===t?\"er\":\"\");default:case\"M\":case\"Q\":case\"DDD\":case\"d\":return t+(1===t?\"er\":\"e\");case\"w\":case\"W\":return t+(1===t?\"re\":\"e\")}},week:{dow:1,doy:4}}),q().defineLocale(\"it\",{months:\"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre\".split(\"_\"),monthsShort:\"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic\".split(\"_\"),weekdays:\"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato\".split(\"_\"),weekdaysShort:\"dom_lun_mar_mer_gio_ven_sab\".split(\"_\"),weekdaysMin:\"do_lu_ma_me_gi_ve_sa\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD/MM/YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:function(){return\"[Oggi a\"+(1<this.hours()?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},nextDay:function(){return\"[Domani a\"+(1<this.hours()?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},nextWeek:function(){return\"dddd [a\"+(1<this.hours()?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},lastDay:function(){return\"[Ieri a\"+(1<this.hours()?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},lastWeek:function(){return 0===this.day()?\"[La scorsa] dddd [a\"+(1<this.hours()?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\":\"[Lo scorso] dddd [a\"+(1<this.hours()?\"lle \":0===this.hours()?\" \":\"ll'\")+\"]LT\"},sameElse:\"L\"},relativeTime:{future:\"tra %s\",past:\"%s fa\",s:\"alcuni secondi\",ss:\"%d secondi\",m:\"un minuto\",mm:\"%d minuti\",h:\"un'ora\",hh:\"%d ore\",d:\"un giorno\",dd:\"%d giorni\",w:\"una settimana\",ww:\"%d settimane\",M:\"un mese\",MM:\"%d mesi\",y:\"un anno\",yy:\"%d anni\"},dayOfMonthOrdinalParse:/\\d{1,2}º/,ordinal:\"%dº\",week:{dow:1,doy:4}}),q().defineLocale(\"ja\",{eras:[{since:\"2019-05-01\",offset:1,name:\"令和\",narrow:\"ã‹¿\",abbr:\"R\"},{since:\"1989-01-08\",until:\"2019-04-30\",offset:1,name:\"å¹³æˆ\",narrow:\"ã»\",abbr:\"H\"},{since:\"1926-12-25\",until:\"1989-01-07\",offset:1,name:\"æ˜å’Œ\",narrow:\"ã¼\",abbr:\"S\"},{since:\"1912-07-30\",until:\"1926-12-24\",offset:1,name:\"大æ£\",narrow:\"ã½\",abbr:\"T\"},{since:\"1873-01-01\",until:\"1912-07-29\",offset:6,name:\"明治\",narrow:\"ã¾\",abbr:\"M\"},{since:\"0001-01-01\",until:\"1873-12-31\",offset:1,name:\"西暦\",narrow:\"AD\",abbr:\"AD\"},{since:\"0000-12-31\",until:-1/0,offset:1,name:\"紀元å‰\",narrow:\"BC\",abbr:\"BC\"}],eraYearOrdinalRegex:/(å…ƒ|\\d+)å¹´/,eraYearOrdinalParse:function(t,e){return\"å…ƒ\"===e[1]?1:parseInt(e[1]||t,10)},months:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),monthsShort:\"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月\".split(\"_\"),weekdays:\"日曜日_月曜日_ç«æ›œæ—¥_水曜日_木曜日_金曜日_土曜日\".split(\"_\"),weekdaysShort:\"æ—¥_月_ç«_æ°´_木_金_土\".split(\"_\"),weekdaysMin:\"æ—¥_月_ç«_æ°´_木_金_土\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY/MM/DD\",LL:\"YYYYå¹´M月Dæ—¥\",LLL:\"YYYYå¹´M月Dæ—¥ HH:mm\",LLLL:\"YYYYå¹´M月Dæ—¥ dddd HH:mm\",l:\"YYYY/MM/DD\",ll:\"YYYYå¹´M月Dæ—¥\",lll:\"YYYYå¹´M月Dæ—¥ HH:mm\",llll:\"YYYYå¹´M月Dæ—¥(ddd) HH:mm\"},meridiemParse:/åˆå‰|åˆå¾Œ/i,isPM:function(t){return\"åˆå¾Œ\"===t},meridiem:function(t,e,i){return t<12?\"åˆå‰\":\"åˆå¾Œ\"},calendar:{sameDay:\"[今日] LT\",nextDay:\"[明日] LT\",nextWeek:function(t){return t.week()!==this.week()?\"[æ¥é€±]dddd LT\":\"dddd LT\"},lastDay:\"[昨日] LT\",lastWeek:function(t){return this.week()!==t.week()?\"[先週]dddd LT\":\"dddd LT\"},sameElse:\"L\"},dayOfMonthOrdinalParse:/\\d{1,2}æ—¥/,ordinal:function(t,e){switch(e){case\"y\":return 1===t?\"元年\":t+\"å¹´\";case\"d\":case\"D\":case\"DDD\":return t+\"æ—¥\";default:return t}},relativeTime:{future:\"%s後\",past:\"%så‰\",s:\"数秒\",ss:\"%d秒\",m:\"1分\",mm:\"%d分\",h:\"1時間\",hh:\"%d時間\",d:\"1æ—¥\",dd:\"%dæ—¥\",M:\"1ヶ月\",MM:\"%dヶ月\",y:\"1å¹´\",yy:\"%då¹´\"}}),r=q(),B=\"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.\".split(\"_\"),G=\"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec\".split(\"_\"),o=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],n=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,r.defineLocale(\"nl\",{months:\"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december\".split(\"_\"),monthsShort:function(t,e){return t?(/-MMM-/.test(e)?G:B)[t.month()]:B},monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:\"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag\".split(\"_\"),weekdaysShort:\"zo._ma._di._wo._do._vr._za.\".split(\"_\"),weekdaysMin:\"zo_ma_di_wo_do_vr_za\".split(\"_\"),weekdaysParseExact:!0,longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD-MM-YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[vandaag om] LT\",nextDay:\"[morgen om] LT\",nextWeek:\"dddd [om] LT\",lastDay:\"[gisteren om] LT\",lastWeek:\"[afgelopen] dddd [om] LT\",sameElse:\"L\"},relativeTime:{future:\"over %s\",past:\"%s geleden\",s:\"een paar seconden\",ss:\"%d seconden\",m:\"één minuut\",mm:\"%d minuten\",h:\"één uur\",hh:\"%d uur\",d:\"één dag\",dd:\"%d dagen\",w:\"één week\",ww:\"%d weken\",M:\"één maand\",MM:\"%d maanden\",y:\"één jaar\",yy:\"%d jaar\"},dayOfMonthOrdinalParse:/\\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||20<=t?\"ste\":\"de\")},week:{dow:1,doy:4}}),r=q(),H=\"styczeÅ„_luty_marzec_kwiecieÅ„_maj_czerwiec_lipiec_sierpieÅ„_wrzesieÅ„_październik_listopad_grudzieÅ„\".split(\"_\"),z=\"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅ›nia_października_listopada_grudnia\".split(\"_\"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i],r.defineLocale(\"pl\",{months:function(t,e){return t?(/D MMMM/.test(e)?z:H)[t.month()]:H},monthsShort:\"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru\".split(\"_\"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:\"niedziela_poniedziaÅ‚ek_wtorek_Å›roda_czwartek_piÄ…tek_sobota\".split(\"_\"),weekdaysShort:\"ndz_pon_wt_Å›r_czw_pt_sob\".split(\"_\"),weekdaysMin:\"Nd_Pn_Wt_Åšr_Cz_Pt_So\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY\",LLL:\"D MMMM YYYY HH:mm\",LLLL:\"dddd, D MMMM YYYY HH:mm\"},calendar:{sameDay:\"[DziÅ› o] LT\",nextDay:\"[Jutro o] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[W niedzielÄ™ o] LT\";case 2:return\"[We wtorek o] LT\";case 3:return\"[W Å›rodÄ™ o] LT\";case 6:return\"[W sobotÄ™ o] LT\";default:return\"[W] dddd [o] LT\"}},lastDay:\"[Wczoraj o] LT\",lastWeek:function(){switch(this.day()){case 0:return\"[W zeszÅ‚Ä… niedzielÄ™ o] LT\";case 3:return\"[W zeszÅ‚Ä… Å›rodÄ™ o] LT\";case 6:return\"[W zeszÅ‚Ä… sobotÄ™ o] LT\";default:return\"[W zeszÅ‚y] dddd [o] LT\"}},sameElse:\"L\"},relativeTime:{future:\"za %s\",past:\"%s temu\",s:\"kilka sekund\",ss:Q,m:Q,mm:Q,h:Q,hh:Q,d:\"1 dzieÅ„\",dd:\"%d dni\",w:\"tydzieÅ„\",ww:Q,M:\"miesiÄ…c\",MM:Q,y:\"rok\",yy:Q},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}}),o=q(),r=[/^Ñнв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йÑ]/i,/^июн/i,/^июл/i,/^авг/i,/^Ñен/i,/^окт/i,/^ноÑ/i,/^дек/i],o.defineLocale(\"ru\",{months:{format:\"ÑнварÑ_февралÑ_марта_апрелÑ_маÑ_июнÑ_июлÑ_авгуÑта_ÑентÑбрÑ_октÑбрÑ_ноÑбрÑ_декабрÑ\".split(\"_\"),standalone:\"Ñнварь_февраль_март_апрель_май_июнь_июль_авгуÑÑ‚_ÑентÑбрь_октÑбрь_ноÑбрь_декабрь\".split(\"_\")},monthsShort:{format:\"Ñнв._февр._мар._апр._маÑ_июнÑ_июлÑ_авг._Ñент._окт._ноÑб._дек.\".split(\"_\"),standalone:\"Ñнв._февр._март_апр._май_июнь_июль_авг._Ñент._окт._ноÑб._дек.\".split(\"_\")},weekdays:{standalone:\"воÑкреÑенье_понедельник_вторник_Ñреда_четверг_пÑтница_Ñуббота\".split(\"_\"),format:\"воÑкреÑенье_понедельник_вторник_Ñреду_четверг_пÑтницу_Ñубботу\".split(\"_\"),isFormat:/\\[ ?[Вв] ?(?:прошлую|Ñледующую|Ñту)? ?] ?dddd/},weekdaysShort:\"вÑ_пн_вт_ÑÑ€_чт_пт_Ñб\".split(\"_\"),weekdaysMin:\"вÑ_пн_вт_ÑÑ€_чт_пт_Ñб\".split(\"_\"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(Ñнвар[ÑŒÑ]|Ñнв\\.?|феврал[ÑŒÑ]|февр?\\.?|марта?|мар\\.?|апрел[ÑŒÑ]|апр\\.?|ма[йÑ]|июн[ÑŒÑ]|июн\\.?|июл[ÑŒÑ]|июл\\.?|авгуÑта?|авг\\.?|ÑентÑбр[ÑŒÑ]|Ñент?\\.?|октÑбр[ÑŒÑ]|окт\\.?|ноÑбр[ÑŒÑ]|ноÑб?\\.?|декабр[ÑŒÑ]|дек\\.?)/i,monthsShortRegex:/^(Ñнвар[ÑŒÑ]|Ñнв\\.?|феврал[ÑŒÑ]|февр?\\.?|марта?|мар\\.?|апрел[ÑŒÑ]|апр\\.?|ма[йÑ]|июн[ÑŒÑ]|июн\\.?|июл[ÑŒÑ]|июл\\.?|авгуÑта?|авг\\.?|ÑентÑбр[ÑŒÑ]|Ñент?\\.?|октÑбр[ÑŒÑ]|окт\\.?|ноÑбр[ÑŒÑ]|ноÑб?\\.?|декабр[ÑŒÑ]|дек\\.?)/i,monthsStrictRegex:/^(Ñнвар[ÑÑŒ]|феврал[ÑÑŒ]|марта?|апрел[ÑÑŒ]|ма[Ñй]|июн[ÑÑŒ]|июл[ÑÑŒ]|авгуÑта?|ÑентÑбр[ÑÑŒ]|октÑбр[ÑÑŒ]|ноÑбр[ÑÑŒ]|декабр[ÑÑŒ])/i,monthsShortStrictRegex:/^(Ñнв\\.|февр?\\.|мар[Ñ‚.]|апр\\.|ма[Ñй]|июн[ÑŒÑ.]|июл[ÑŒÑ.]|авг\\.|Ñент?\\.|окт\\.|ноÑб?\\.|дек\\.)/i,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY г.\",LLL:\"D MMMM YYYY г., H:mm\",LLLL:\"dddd, D MMMM YYYY г., H:mm\"},calendar:{sameDay:\"[СегоднÑ, в] LT\",nextDay:\"[Завтра, в] LT\",lastDay:\"[Вчера, в] LT\",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?\"[Во] dddd, [в] LT\":\"[Ð’] dddd, [в] LT\";switch(this.day()){case 0:return\"[Ð’ Ñледующее] dddd, [в] LT\";case 1:case 2:case 4:return\"[Ð’ Ñледующий] dddd, [в] LT\";case 3:case 5:case 6:return\"[Ð’ Ñледующую] dddd, [в] LT\"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?\"[Во] dddd, [в] LT\":\"[Ð’] dddd, [в] LT\";switch(this.day()){case 0:return\"[Ð’ прошлое] dddd, [в] LT\";case 1:case 2:case 4:return\"[Ð’ прошлый] dddd, [в] LT\";case 3:case 5:case 6:return\"[Ð’ прошлую] dddd, [в] LT\"}},sameElse:\"L\"},relativeTime:{future:\"через %s\",past:\"%s назад\",s:\"неÑколько Ñекунд\",ss:K,m:K,mm:K,h:\"чаÑ\",hh:K,d:\"день\",dd:K,w:\"неделÑ\",ww:K,M:\"меÑÑц\",MM:K,y:\"год\",yy:K},meridiemParse:/ночи|утра|днÑ|вечера/i,isPM:function(t){return/^(днÑ|вечера)$/.test(t)},meridiem:function(t,e,i){return t<4?\"ночи\":t<12?\"утра\":t<17?\"днÑ\":\"вечера\"},dayOfMonthOrdinalParse:/\\d{1,2}-(й|го|Ñ)/,ordinal:function(t,e){switch(e){case\"M\":case\"d\":case\"DDD\":return t+\"-й\";case\"D\":return t+\"-го\";case\"w\":case\"W\":return t+\"-Ñ\";default:return t}},week:{dow:1,doy:4}}),q().defineLocale(\"uk\",{months:{format:\"ÑічнÑ_лютого_березнÑ_квітнÑ_травнÑ_червнÑ_липнÑ_ÑерпнÑ_вереÑнÑ_жовтнÑ_лиÑтопада_груднÑ\".split(\"_\"),standalone:\"Ñічень_лютий_березень_квітень_травень_червень_липень_Ñерпень_вереÑень_жовтень_лиÑтопад_грудень\".split(\"_\")},monthsShort:\"Ñіч_лют_бер_квіт_трав_черв_лип_Ñерп_вер_жовт_лиÑÑ‚_груд\".split(\"_\"),weekdays:function(t,e){var i={nominative:\"неділÑ_понеділок_вівторок_Ñереда_четвер_п’ÑтницÑ_Ñубота\".split(\"_\"),accusative:\"неділю_понеділок_вівторок_Ñереду_четвер_п’Ñтницю_Ñуботу\".split(\"_\"),genitive:\"неділі_понеділка_вівторка_Ñереди_четверга_п’Ñтниці_Ñуботи\".split(\"_\")};return!0===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\\[[ВвУу]\\]) ?dddd/.test(e)?\"accusative\":/\\[?(?:минулої|наÑтупної)? ?\\] ?dddd/.test(e)?\"genitive\":\"nominative\"][t.day()]:i.nominative},weekdaysShort:\"нд_пн_вт_ÑÑ€_чт_пт_Ñб\".split(\"_\"),weekdaysMin:\"нд_пн_вт_ÑÑ€_чт_пт_Ñб\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY Ñ€.\",LLL:\"D MMMM YYYY Ñ€., HH:mm\",LLLL:\"dddd, D MMMM YYYY Ñ€., HH:mm\"},calendar:{sameDay:Z(\"[Сьогодні \"),nextDay:Z(\"[Завтра \"),lastDay:Z(\"[Вчора \"),nextWeek:Z(\"[У] dddd [\"),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Z(\"[Минулої] dddd [\").call(this);case 1:case 2:case 4:return Z(\"[Минулого] dddd [\").call(this)}},sameElse:\"L\"},relativeTime:{future:\"за %s\",past:\"%s тому\",s:\"декілька Ñекунд\",ss:$,m:$,mm:$,h:\"годину\",hh:$,d:\"день\",dd:$,M:\"міÑÑць\",MM:$,y:\"рік\",yy:$},meridiemParse:/ночі|ранку|днÑ|вечора/,isPM:function(t){return/^(днÑ|вечора)$/.test(t)},meridiem:function(t,e,i){return t<4?\"ночі\":t<12?\"ранку\":t<17?\"днÑ\":\"вечора\"},dayOfMonthOrdinalParse:/\\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case\"M\":case\"d\":case\"DDD\":case\"w\":case\"W\":return t+\"-й\";case\"D\":return t+\"-го\";default:return t}},week:{dow:1,doy:7}});function e(t){try{return!!t()}catch(t){return!0}}function tt(t){return(t=+t)!=t||0==t?0:st(t)}function et(t){return t&&t.Math==Math&&t}var it={},n={get exports(){return it},set exports(t){it=t}},o=!e(function(){var t=function(){}.bind();return\"function\"!=typeof t||t.hasOwnProperty(\"prototype\")}),r=o,s=Function.prototype,nt=s.call,s=r&&s.bind.bind(nt,nt),r=r?s:function(t){return function(){return nt.apply(t,arguments)}},ot=Math.ceil,rt=Math.floor,st=Math.trunc||function(t){t=+t;return(0<t?rt:ot)(t)},s=et(\"object\"==typeof globalThis&&globalThis)||et(\"object\"==typeof window&&window)||et(\"object\"==typeof self&&self)||et(\"object\"==typeof j&&j)||function(){return this}()||Function(\"return this\")(),at={},j={get exports(){return at},set exports(t){at=t}},lt=s,ht=Object.defineProperty,ut=\"__core-js_shared__\",ut=s[ut]||function(e,i){try{ht(lt,e,{value:i,configurable:!0,writable:!0})}catch(t){lt[e]=i}return i}(ut,{}),ct=ut;(j.exports=function(t,e){return ct[t]||(ct[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.29.0\",mode:\"pure\",copyright:\"© 2014-2023 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE\",source:\"https://github.com/zloirock/core-js\"});function dt(t){return null==t}function pt(t){if(Mt(t))throw Ot(\"Can't call method on \"+t);return t}function mt(t){return Pt(Et(t))}function ft(t){return\"Symbol(\"+(void 0===t?\"\":t)+\")_\"+Ft(++Nt+Rt,36)}function gt(t){return zt(Vt,t)||(Vt[t]=Bt&&zt(Wt,t)?Wt[t]:Ut(\"Symbol.\"+t)),Vt[t]}function vt(t){return Zt($t(t),8,-1)}function yt(t){if(\"Symbol\"===ie(t))throw TypeError(\"Cannot convert a Symbol value to a string\");return ne(t)}function bt(o){return function(t,e){var i,t=se(ae(t)),e=re(e),n=t.length;return e<0||n<=e?o?\"\":void 0:(i=he(t,e))<55296||56319<i||e+1===n||(n=he(t,e+1))<56320||57343<n?o?le(t,e):i:o?ue(t,e,e+2):n-56320+(i-55296<<10)+65536}}function _t(t){return ve?ge.createElement(t):{}}function wt(t){if(_e(t))return t;throw ke(we(t)+\" is not an object\")}function kt(t){return Te(t)?t:void 0}function xt(t,e){return arguments.length<2?kt(Se[t])||kt(Ce[t]):Se[t]&&Se[t][e]||Ce[t]&&Ce[t][e]}function Dt(t){try{return Ie(t)}catch(t){return\"Object\"}}function St(t){if(Ae(t))return t;throw Ne(Le(t)+\" is not a function\")}function Ct(t,e){return t=t[e],Fe(t)?void 0:Re(t)}function Tt(t){return t=function(t,e){if(!Ge(t)||We(t))return t;var i=Ve(t,qe);if(i){if(i=Be(i,t,e=void 0===e?\"default\":e),!Ge(i)||We(i))return i;throw Xe(\"Can't convert object to primitive value\")}return Ue(t,e=void 0===e?\"number\":e)}(t,\"string\"),$e(t)?t:t+\"\"}var Mt=dt,Ot=TypeError,Et=pt,Pt=Object,It=mt,At=r({}.hasOwnProperty),j=Object.hasOwn||function(t,e){return At(It(t),e)},Lt=r,Nt=0,Rt=Math.random(),Ft=Lt(1..toString),Lt=\"undefined\"!=typeof navigator&&String(navigator.userAgent)||\"\",a=Lt,jt=s.process,l=s.Deno,jt=jt&&jt.versions||l&&l.version,l=jt&&jt.v8,jt=h=!(h=l?0<(Ht=l.split(\".\"))[0]&&Ht[0]<4?1:+(Ht[0]+Ht[1]):h)&&a&&(!(Ht=a.match(/Edge\\/(\\d+)/))||74<=Ht[1])&&(Ht=a.match(/Chrome\\/(\\d+)/))?+Ht[1]:h,Yt=jt,l=e,a=!!Object.getOwnPropertySymbols&&!l(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Yt&&Yt<41}),Ht=a&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,h=at,zt=j,l=ft,Bt=a,Gt=Ht,Wt=s.Symbol,Vt=h(\"wks\"),Ut=Gt?Wt.for||Wt:Wt&&Wt.withoutSetter||l,h={},Gt=(h[gt(\"toStringTag\")]=\"z\",\"[object z]\"===String(h)),l=\"object\"==typeof document&&document.all,h={all:l,IS_HTMLDDA:void 0===l&&void 0!==l},Xt=h.all,l=h.IS_HTMLDDA?function(t){return\"function\"==typeof t||t===Xt}:function(t){return\"function\"==typeof t},qt=r,$t=qt({}.toString),Zt=qt(\"\".slice),qt=Gt,Kt=l,Jt=vt,Qt=gt(\"toStringTag\"),te=Object,ee=\"Arguments\"==Jt(function(){return arguments}()),qt=qt?Jt:function(t){var e;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=te(t),Qt))?e:ee?Jt(t):\"Object\"==(e=Jt(t))&&Kt(t.callee)?\"Arguments\":e},ie=qt,ne=String,oe=r,re=tt,se=yt,ae=pt,le=oe(\"\".charAt),he=oe(\"\".charCodeAt),ue=oe(\"\".slice),oe={codeAt:bt(!1),charAt:bt(!0)},u=l,ce=s.WeakMap,u=u(ce)&&/native code/.test(String(ce)),de=l,pe=h.all,ce=h.IS_HTMLDDA?function(t){return\"object\"==typeof t?null!==t:de(t)||t===pe}:function(t){return\"object\"==typeof t?null!==t:de(t)},h=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),me={},fe=ce,ge=s.document,ve=fe(ge)&&fe(ge.createElement),ye=_t,fe=!h&&!e(function(){return 7!=Object.defineProperty(ye(\"div\"),\"a\",{get:function(){return 7}}).a}),be=h&&e(function(){return 42!=Object.defineProperty(function(){},\"prototype\",{value:42,writable:!1}).prototype}),_e=ce,we=String,ke=TypeError,xe=Function.prototype.call,De=o?xe.bind(xe):function(){return xe.apply(xe,arguments)},c={},Se=c,Ce=s,Te=l,d=r({}.isPrototypeOf),Me=xt,Oe=l,Ee=d,Pe=Object,Ht=Ht?function(t){return\"symbol\"==typeof t}:function(t){var e=Me(\"Symbol\");return Oe(e)&&Ee(e.prototype,Pe(t))},Ie=String,Ae=l,Le=Dt,Ne=TypeError,Re=St,Fe=dt,je=De,Ye=l,He=ce,ze=TypeError,Be=De,Ge=ce,We=Ht,Ve=Ct,Ue=function(t,e){var i,n;if(\"string\"===e&&Ye(i=t.toString)&&!He(n=je(i,t)))return n;if(Ye(i=t.valueOf)&&!He(n=je(i,t)))return n;if(\"string\"!==e&&Ye(i=t.toString)&&!He(n=je(i,t)))return n;throw ze(\"Can't convert object to primitive value\")},Xe=TypeError,qe=gt(\"toPrimitive\"),$e=Ht,Ze=fe,Ke=wt,Je=Tt,Qe=TypeError,ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,ii=\"enumerable\",ni=\"configurable\",oi=\"writable\";me.f=h?be?function(t,e,i){var n;return Ke(t),e=Je(e),Ke(i),\"function\"==typeof t&&\"prototype\"===e&&\"value\"in i&&oi in i&&!i[oi]&&(n=ei(t,e))&&n[oi]&&(t[e]=i.value,i={configurable:(ni in i?i:n)[ni],enumerable:(ii in i?i:n)[ii],writable:!1}),ti(t,e,i)}:ti:function(t,e,i){if(Ke(t),e=Je(e),Ke(i),Ze)try{return ti(t,e,i)}catch(t){}if(\"get\"in i||\"set\"in i)throw Qe(\"Accessors not supported\");return\"value\"in i&&(t[e]=i.value),t};function ri(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function si(t){return Di[t]||(Di[t]=xi(t))}function ai(t){if(\"Function\"===ji(t))return Yi(t)}function li(t){return Vi(Ui(t))}function hi(t,e){return(t=sn[rn(t)])==ln||t!=an&&(nn(e)?en(e):!!e)}function ui(t,e){return hn(t),void 0===e?t:un?cn(t,e):function(){return t.apply(e,arguments)}}function ci(n){function o(t,e,i){if(this instanceof o){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,i)}return pn(n,this,arguments)}return o.prototype=n.prototype,o}function p(t,e){var i,n,o,r,s,a,l=t.target,h=t.global,u=t.stat,c=t.proto,d=h?dn:u?dn[l]:(dn[l]||{}).prototype,p=h?yn:yn[l]||_n(yn,l,{})[l],m=p.prototype;for(n in e)s=!(i=vn(h?n:l+(u?\".\":\"#\")+n,t.forced))&&d&&wn(d,n),r=p[n],s&&(a=t.dontCallGetSet?(a=gn(d,n))&&a.value:d[n]),o=s&&a?a:e[n],s&&typeof r==typeof o||(s=t.bind&&s?bn(o,dn):t.wrap&&s?ci(o):c&&fn(o)?mn(o):o,(t.sham||o&&o.sham||r&&r.sham)&&_n(s,\"sham\",!0),_n(p,n,s),c&&(wn(yn,r=l+\"Prototype\")||_n(yn,r,{}),_n(yn[r],n,o),t.real)&&m&&(i||!m[n])&&_n(m,n,o))}function di(t,e){return(t=Sn(t))<0?Cn(t+e,0):Tn(t,e)}function pi(t){return 0<(t=t.length)?On(Mn(t),9007199254740991):0}function mi(a){return function(t,e,i){var n,o=En(t),r=In(o),s=Pn(i,r);if(a&&e!=e){for(;s<r;)if((n=o[s++])!=n)return!0}else for(;s<r;s++)if((a||s in o)&&o[s]===e)return a||s||0;return!a&&-1}}function fi(t,e){var i,n=Ln(t),o=0,r=[];for(i in n)!An(Rn,i)&&An(n,i)&&Fn(r,i);for(;e.length>o;)!An(n,i=e[o++])||~Nn(r,i)||Fn(r,i);return r}var gi,vi,yi,bi,_i=me,wi=ri,ki=h?function(t,e,i){return _i.f(t,e,wi(1,i))}:function(t,e,i){return t[e]=i,t},xi=ft,Di=at(\"keys\"),Si={},Ci=ce,Ti=ki,Mi=j,Oi=ut,Ei=si,Pi=Si,Ii=\"Object already initialized\",Ai=s.TypeError,Li=s.WeakMap,Ni=u||Oi.state?((yi=Oi.state||(Oi.state=new Li)).get=yi.get,yi.has=yi.has,yi.set=yi.set,gi=function(t,e){if(yi.has(t))throw Ai(Ii);return e.facade=t,yi.set(t,e),e},vi=function(t){return yi.get(t)||{}},function(t){return yi.has(t)}):(Pi[bi=Ei(\"state\")]=!0,gi=function(t,e){if(Mi(t,bi))throw Ai(Ii);return e.facade=t,Ti(t,bi,e),e},vi=function(t){return Mi(t,bi)?t[bi]:{}},function(t){return Mi(t,bi)}),u={set:gi,get:vi,has:Ni,enforce:function(t){return Ni(t)?vi(t):gi(t,{})},getterFor:function(e){return function(t){if(Ci(t)&&(t=vi(t)).type===e)return t;throw Ai(\"Incompatible receiver, \"+e+\" required\")}}},Oi=Function.prototype,Ri=Oi.apply,Fi=Oi.call,Li=\"object\"==typeof Reflect&&Reflect.apply||(o?Fi.bind(Ri):function(){return Fi.apply(Ri,arguments)}),ji=vt,Yi=r,Pi={},Ei={},Oi={}.propertyIsEnumerable,Hi=Object.getOwnPropertyDescriptor,zi=Hi&&!Oi.call({1:2},1),zi=(Ei.f=zi?function(t){t=Hi(this,t);return!!t&&t.enumerable}:Oi,e),Bi=vt,Gi=Object,Wi=r(\"\".split),Oi=zi(function(){return!Gi(\"z\").propertyIsEnumerable(0)})?function(t){return\"String\"==Bi(t)?Wi(t,\"\"):Gi(t)}:Gi,Vi=Oi,Ui=pt,Xi=De,qi=Ei,$i=ri,Zi=li,Ki=Tt,Ji=j,Qi=fe,tn=Object.getOwnPropertyDescriptor,en=(Pi.f=h?tn:function(t,e){if(t=Zi(t),e=Ki(e),Qi)try{return tn(t,e)}catch(t){}if(Ji(t,e))return $i(!Xi(qi.f,t,e),t[e])},e),nn=l,on=/#|\\.prototype\\./,rn=hi.normalize=function(t){return String(t).replace(on,\".\").toLowerCase()},sn=hi.data={},an=hi.NATIVE=\"N\",ln=hi.POLYFILL=\"P\",zi=hi,hn=St,un=o,cn=ai(ai.bind),dn=s,pn=Li,mn=ai,fn=l,gn=Pi.f,vn=zi,yn=c,bn=ui,_n=ki,wn=j,fe=h,kn=j,xn=Function.prototype,Dn=fe&&Object.getOwnPropertyDescriptor,kn=kn(xn,\"name\"),kn={EXISTS:kn,PROPER:kn&&\"something\"===function(){}.name,CONFIGURABLE:kn&&(!fe||Dn(xn,\"name\").configurable)},fe={},Sn=tt,Cn=Math.max,Tn=Math.min,Mn=tt,On=Math.min,En=li,Pn=di,In=pi,Dn={includes:mi(!0),indexOf:mi(!1)},An=j,Ln=li,Nn=Dn.indexOf,Rn=Si,Fn=r([].push),xn=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],jn=fi,Yn=xn,Hn=Object.keys||function(t){return jn(t,Yn)},zn=me,Bn=wt,Gn=li,Wn=Hn;fe.f=h&&!be?Object.defineProperties:function(t,e){Bn(t);for(var i,n=Gn(e),o=Wn(e),r=o.length,s=0;s<r;)zn.f(t,i=o[s++],n[i]);return t};function Vn(){}function Un(t){t.write(no(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e}var Xn,be=xt(\"document\",\"documentElement\"),qn=wt,$n=fe,Zn=xn,Kn=Si,Jn=be,Qn=_t,to=\"prototype\",eo=\"script\",io=si(\"IE_PROTO\"),no=function(t){return\"<\"+eo+\">\"+t+\"</\"+eo+\">\"},oo=function(){try{Xn=new ActiveXObject(\"htmlfile\")}catch(t){}var t,e,i;oo=\"undefined\"==typeof document||document.domain&&Xn?Un(Xn):(e=Qn(\"iframe\"),i=\"java\"+eo+\":\",e.style.display=\"none\",Jn.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(no(\"document.F=Object\")),t.close(),t.F);for(var n=Zn.length;n--;)delete oo[to][Zn[n]];return oo()};Kn[io]=!0;function ro(t,e,i,n){return n&&n.enumerable?t[e]=i:fo(t,e,i),t}var so,Kn=Object.create||function(t,e){var i;return null!==t?(Vn[to]=qn(t),i=new Vn,Vn[to]=null,i[io]=t):i=oo(),void 0===e?i:$n.f(i,e)},ao=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),lo=j,ho=l,uo=mt,m=ao,co=si(\"IE_PROTO\"),po=Object,mo=po.prototype,m=m?po.getPrototypeOf:function(t){var e,t=uo(t);return lo(t,co)?t[co]:(e=t.constructor,ho(e)&&t instanceof e?e.prototype:t instanceof po?mo:null)},fo=ki,go=e,vo=l,f=ce,yo=Kn,bo=m,_o=ro,wo=gt(\"iterator\"),ko=!1;[].keys&&(\"next\"in(No=[].keys())?(bo=bo(bo(No)))!==Object.prototype&&(so=bo):ko=!0);function xo(t,e,i,n){t&&(i=i?t:t.prototype,Ho(i,Bo)||jo(i,Bo,{configurable:!0,value:e}),n)&&!Fo&&Yo(i,\"toString\",zo)}function Do(){return this}function So(t,e,i,n,o,r,s){var a=i,l=e,h=void 0;function u(t){if(t===o&&g)return g;if(!lr&&t in m)return m[t];switch(t){case\"keys\":case ur:case cr:return function(){return new i(this,t)}}return function(){return new i(this)}}l+=\" Iterator\",a.prototype=Wo(Go,{next:Vo(+!h,n)}),Uo(a,l,!1,!0),Xo[l]=qo;var c,d,h=e+\" Iterator\",p=!1,m=t.prototype,f=m[hr]||m[\"@@iterator\"]||o&&m[o],g=!lr&&f||u(o);if((n=\"Array\"==e&&m.entries||f)&&(a=nr(n.call(new t)))!==Object.prototype&&a.next&&(or(a,h,!0,!0),sr[h]=Do),ar&&o==ur&&f&&f.name!==ur&&(p=!0,g=function(){return ir(f,this)}),o)if(c={values:u(ur),keys:r?g:u(\"keys\"),entries:u(cr)},s)for(d in c)!lr&&!p&&d in m||rr(m,d,c[d]);else er({target:e,proto:!0,forced:lr||p},c);return s&&m[hr]!==g&&rr(m,hr,g,{name:o}),sr[e]=g,c}function Co(t,e){return{value:t,done:e}}function To(t,e,i){var n,o;br(t);try{if(!(n=_r(t,\"return\"))){if(\"throw\"===e)throw i;return i}n=yr(n,t)}catch(t){o=!0,n=t}if(\"throw\"===e)throw i;if(o)throw n;return br(n),i}function Mo(t){return void 0!==t&&(xr.Array===t||Sr[Dr]===t)}function Oo(){}function Eo(t){if(!Tr(t))return!1;try{return Pr(Oo,Er,t),!0}catch(t){return!1}}function Po(t){if(!Tr(t))return!1;switch(Mr(t)){case\"AsyncFunction\":case\"GeneratorFunction\":case\"AsyncGeneratorFunction\":return!1}try{return Lr||!!Ar(Ir,Or(t))}catch(t){return!0}}function Io(t,e,i){(e=Nr(e))in t?Rr.f(t,e,Fr(0,i)):t[e]=i}function Ao(t){if(!Hr(t))return Yr(t,Br)||Yr(t,\"@@iterator\")||zr[jr(t)]}function Lo(t,e){if(e=arguments.length<2?Xr(t):e,Wr(e))return Vr(Gr(e,t));throw qr(Ur(t)+\" is not iterable\")}vo((so=!f(so)||go(function(){var t={};return so[wo].call(t)!==t})?{}:yo(so))[wo])||_o(so,wo,function(){return this});var No={IteratorPrototype:so,BUGGY_SAFARI_ITERATORS:ko},Ro=qt,Fo=Gt,jo=me.f,Yo=ki,Ho=j,zo=Gt?{}.toString:function(){return\"[object \"+Ro(this)+\"]\"},Bo=gt(\"toStringTag\"),bo={},Go=No.IteratorPrototype,Wo=Kn,Vo=ri,Uo=xo,Xo=bo,qo=function(){return this},$o=r,Zo=St,Ko=l,Jo=String,Qo=TypeError,tr=wt,vo=Object.setPrototypeOf||(\"__proto__\"in{}?function(){var i,n=!1,t={};try{(i=function(t,e,i){try{return $o(Zo(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}}(Object.prototype,\"__proto__\",\"set\"))(t,[]),n=t instanceof Array}catch(i){}return function(t,e){return tr(t),function(t){if(\"object\"==typeof t||Ko(t))return;throw Qo(\"Can't set \"+Jo(t)+\" as a prototype\")}(e),n?i(t,e):t.__proto__=e,t}}():void 0),er=p,ir=De,nr=m,or=xo,rr=ro,sr=bo,ar=kn.PROPER,lr=No.BUGGY_SAFARI_ITERATORS,hr=gt(\"iterator\"),ur=\"values\",cr=\"entries\",dr=oe.charAt,pr=yt,f=u,go=So,mr=Co,fr=\"String Iterator\",gr=f.set,vr=f.getterFor(fr),yr=(go(String,\"String\",function(t){gr(this,{type:fr,string:pr(t),index:0})},function(){var t=vr(this),e=t.string,i=t.index;return i>=e.length?mr(void 0,!0):(e=dr(e,i),t.index+=e.length,mr(e,!1))}),De),br=wt,_r=Ct,wr=wt,kr=To,xr=bo,Dr=gt(\"iterator\"),Sr=Array.prototype,yo=l,_o=ut,Cr=r(Function.toString),ko=(yo(_o.inspectSource)||(_o.inspectSource=function(t){return Cr(t)}),_o.inspectSource),Gt=r,No=e,Tr=l,Mr=qt,Or=ko,Er=[],Pr=xt(\"Reflect\",\"construct\"),Ir=/^\\s*(?:class|function)\\b/,Ar=Gt(Ir.exec),Lr=!Ir.exec(Oo),oe=(Po.sham=!0,!Pr||No(function(){var t;return Eo(Eo.call)||!Eo(Object)||!Eo(function(){t=!0})||t})?Po:Eo),Nr=Tt,Rr=me,Fr=ri,jr=qt,Yr=Ct,Hr=dt,zr=bo,Br=gt(\"iterator\"),Gr=De,Wr=St,Vr=wt,Ur=Dt,Xr=Ao,qr=TypeError,$r=ui,Zr=De,Kr=mt,Jr=Mo,Qr=oe,ts=pi,es=Io,is=Lo,ns=Ao,os=Array,rs=gt(\"iterator\"),ss=!1;try{var as=0,ls={next:function(){return{done:!!as++}},return:function(){ss=!0}};ls[rs]=function(){return this},Array.from(ls,function(){throw 2})}catch(F){}function hs(t,e){if(e||ss){var i=!1;try{var n={};n[rs]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}}p({target:\"Array\",stat:!0,forced:!hs(function(t){Array.from(t)})},{from:function(t){var e=Kr(t),t=Qr(this),i=arguments.length,n=1<i?arguments[1]:void 0,o=void 0!==n;o&&(n=$r(n,2<i?arguments[2]:void 0));var r,s,a,l,h,u,i=ns(e),c=0;if(!i||this===os&&Jr(i))for(r=ts(e),s=t?new this(r):os(r);c<r;c++)u=o?n(e[c],c):e[c],es(s,c,u);else for(h=(l=is(e,i)).next,s=t?new this:[];!(a=Zr(h,l)).done;c++)u=o?function(t,e,i,n){try{return n?e(wr(i)[0],i[1]):e(i)}catch(e){kr(t,\"throw\",e)}}(l,n,[a.value,c],!0):a.value,es(s,c,u);return s.length=c,s}});var us,f=c.Array.from,cs=(n.exports=f,t(it)),ds={},go={get exports(){return ds},set exports(t){ds=t}},ps={},ut={get exports(){return ps},set exports(t){ps=t}},ms=li,yo=bo,_o=u,Gt=So,fs=Co,gs=\"Array Iterator\",vs=_o.set,ys=_o.getterFor(gs),No=(Gt(Array,\"Array\",function(t,e){vs(this,{type:gs,target:ms(t),index:0,kind:e})},function(){var t=ys(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,fs(void 0,!0)):fs(\"keys\"==i?n:\"values\"==i?e[n]:[n,e[n]],!1)},\"values\"),yo.Arguments=yo.Array,Ao),bs=s,_s=qt,ws=ki,ks=bo,xs=gt(\"toStringTag\");for(us in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ds=bs[us],Ds=Ds&&Ds.prototype;Ds&&_s(Ds)!==xs&&ws(Ds,xs,us),ks[us]=ks.Array}function Ss(t,e,i){for(var n=Vs(t),o=Ws(e,n),r=Ws(void 0===i?n:i,n),s=Xs(qs(r-o,0)),a=0;o<r;o++,a++)Us(s,a,t[o]);return s.length=a,s}function Cs(t,e,i){return ta.f(t,e,i)}function Ts(t){var e=ea.Symbol||(ea.Symbol={});ia(e,t)||oa(e,t,{value:na.f(t)})}function Ms(){var t=sa(\"Symbol\"),e=(t=t&&t.prototype)&&t.valueOf,i=aa(\"toPrimitive\");t&&!t[i]&&la(t,i,function(t){return ra(e,this)},{arity:1})}function Os(t,e){return new(void 0===(i=ua(t=t)&&(i=t.constructor,ca(i)&&(i===ma||ua(i.prototype))||da(i)&&null===(i=i[pa]))?void 0:i)?ma:i)(0===e?0:e);var i}function Es(d){var p=1==d,m=2==d,f=3==d,g=4==d,v=6==d,y=7==d,b=5==d||v;return function(t,e,i,n){for(var o,r,s=va(t),a=ga(s),l=fa(e,i),h=ya(a),u=0,e=n||ba,c=p?e(t,h):m||y?e(t,0):void 0;u<h;u++)if((b||u in a)&&(r=l(o=a[u],u,s),d))if(p)c[u]=r;else if(r)switch(d){case 3:return!0;case 5:return o;case 6:return u;case 2:_a(c,o)}else switch(d){case 4:return!1;case 7:_a(c,o)}return v?-1:f||g?g:c}}function Ps(t,e){var i=sl[t]=Pa(Qa);return Za(i,{type:qa,tag:t,description:e}),ka||(i.description=e),i}function Is(t,e,i){return t===Ja&&Is(al,e,i),Ca(t),e=Ma(e),Ca(i),(Da(sl,e)?(i.enumerable?(Da(t,Xa)&&t[Xa][e]&&(t[Xa][e]=!1),i=Pa(i,{enumerable:Ea(0,!1)})):(Da(t,Xa)||il(t,Xa,Ea(1,{})),t[Xa][e]=!0),hl):il)(t,e,i)}function As(e,t){Ca(e);var i=Ta(t),t=Ia(i).concat(Fs(i));return Ua(t,function(t){ka&&!wa(Ls,i,t)||Is(e,t,i[t])}),e}function Ls(t){var t=Ma(t),e=wa(ol,this,t);return!(this===Ja&&Da(sl,t)&&!Da(al,t))&&(!(e||!Da(this,t)||!Da(sl,t)||Da(this,Xa)&&this[Xa][t])||e)}function Ns(t,e){var i,t=Ta(t),e=Ma(e);if(t!==Ja||!Da(sl,e)||Da(al,e))return!(i=el(t,e))||!Da(sl,e)||Da(t,Xa)&&t[Xa][e]||(i.enumerable=!0),i}function Rs(t){var t=nl(Ta(t)),e=[];return Ua(t,function(t){Da(sl,t)||Da(Ha,t)||rl(e,t)}),e}function Fs(t){var e=t===Ja,t=nl(e?al:Ta(t)),i=[];return Ua(t,function(t){!Da(sl,t)||e&&!Da(Ja,t)||rl(i,sl[t])}),i}function js(t,e){var i=Ol(arguments),n=function(t){if(_l(t))return t;if(bl(t)){for(var e=t.length,n=[],i=0;i<e;i++){var o=t[i];\"string\"==typeof o?xl(n,o):\"number\"!=typeof o&&\"Number\"!=wl(o)&&\"String\"!=wl(o)||xl(n,kl(o))}var r=n.length,s=!0;return function(t,e){if(s)return s=!1,e;if(bl(this))return e;for(var i=0;i<r;i++)if(n[i]===t)return e}}}(e);if(Tl(n)||void 0!==t&&!Ml(t))return i[1]=function(t,e){if(Tl(n)&&(e=Cl(n,this,El(t),e)),!Ml(e))return e},Sl(Pl,null,i)}function Ys(t,e,i){var n=Al(i,e-1),i=Al(i,e+1);return Il(jl,t)&&!Il(Yl,i)||Il(Yl,t)&&!Il(jl,n)?\"\\\\u\"+Rl(Ll(t,0),16):t}ut.exports=No,go.exports=ps;var Hs=t(ds),zs={},ls={get exports(){return zs},set exports(t){zs=t}},n={},Bs=fi,Gs=xn.concat(\"length\",\"prototype\"),_o=(n.f=Object.getOwnPropertyNames||function(t){return Bs(t,Gs)},{}),Ws=di,Vs=pi,Us=Io,Xs=Array,qs=Math.max,$s=vt,Zs=li,Ks=n.f,Js=Ss,Qs=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gt=(_o.f=function(t){if(!Qs||\"Window\"!=$s(t))return Ks(Zs(t));var e=t;try{return Ks(e)}catch(e){return Js(Qs)}},{}),ta=(Gt.f=Object.getOwnPropertySymbols,me),yo={},ea=(yo.f=gt,c),ia=j,na=yo,oa=me.f,ra=De,sa=xt,aa=gt,la=ro,ha=vt,bo=Array.isArray||function(t){return\"Array\"==ha(t)},ua=bo,ca=oe,da=ce,pa=gt(\"species\"),ma=Array,fa=ui,ga=Oi,va=mt,ya=pi,ba=Os,_a=r([].push),ut={forEach:Es(0),map:Es(1),filter:Es(2),some:Es(3),every:Es(4),find:Es(5),findIndex:Es(6),filterReject:Es(7)},No=p,go=s,wa=De,xn=r,ka=h,g=a,xa=e,Da=j,Sa=d,Ca=wt,Ta=li,Ma=Tt,Oa=yt,Ea=ri,Pa=Kn,Ia=Hn,Aa=n,La=_o,Na=Gt,v=Pi,y=me,Ra=fe,Fa=Ei,ja=ro,Ya=Cs,b=at,Ha=Si,za=ft,Ba=gt,Ga=yo,Wa=Ts,_=Ms,w=xo,Va=u,Ua=ut.forEach,Xa=si(\"hidden\"),qa=\"Symbol\",$a=\"prototype\",Za=Va.set,Ka=Va.getterFor(qa),Ja=Object[$a],Va=go.Symbol,Qa=Va&&Va[$a],tl=go.TypeError,go=go.QObject,el=v.f,il=y.f,nl=La.f,ol=Fa.f,rl=xn([].push),sl=b(\"symbols\"),al=b(\"op-symbols\"),xn=b(\"wks\"),ll=!go||!go[$a]||!go[$a].findChild,hl=ka&&xa(function(){return 7!=Pa(il({},\"a\",{get:function(){return il(this,\"a\",{value:7}).a}})).a})?function(t,e,i){var n=el(Ja,e);n&&delete Ja[e],il(t,e,i),n&&t!==Ja&&il(Ja,e,n)}:il,b=(g||(ja(Qa=(Va=function(){if(Sa(Qa,this))throw tl(\"Symbol is not a constructor\");var t=arguments.length&&void 0!==arguments[0]?Oa(arguments[0]):void 0,e=za(t),i=function(t){this===Ja&&wa(i,al,t),Da(this,Xa)&&Da(this[Xa],e)&&(this[Xa][e]=!1),hl(this,e,Ea(1,t))};return ka&&ll&&hl(Ja,e,{configurable:!0,set:i}),Ps(e,t)})[$a],\"toString\",function(){return Ka(this).tag}),ja(Va,\"withoutSetter\",function(t){return Ps(za(t),t)}),Fa.f=Ls,y.f=Is,Ra.f=As,v.f=Ns,Aa.f=La.f=Rs,Na.f=Fs,Ga.f=function(t){return Ps(Ba(t),t)},ka&&Ya(Qa,\"description\",{configurable:!0,get:function(){return Ka(this).description}})),No({global:!0,constructor:!0,wrap:!0,forced:!g,sham:!g},{Symbol:Va}),Ua(Ia(xn),function(t){Wa(t)}),No({target:qa,stat:!0,forced:!g},{useSetter:function(){ll=!0},useSimple:function(){ll=!1}}),No({target:\"Object\",stat:!0,forced:!g,sham:!ka},{create:function(t,e){return void 0===e?Pa(t):As(Pa(t),e)},defineProperty:Is,defineProperties:As,getOwnPropertyDescriptor:Ns}),No({target:\"Object\",stat:!0,forced:!g},{getOwnPropertyNames:Rs}),_(),w(Va,qa),Ha[Xa]=!0,a&&!!Symbol.for&&!!Symbol.keyFor),go=p,ul=xt,cl=j,dl=yt,xa=at,$a=b,pl=xa(\"string-to-symbol-registry\"),ml=xa(\"symbol-to-string-registry\"),ja=(go({target:\"Symbol\",stat:!0,forced:!$a},{for:function(t){var e,t=dl(t);return cl(pl,t)?pl[t]:(e=ul(\"Symbol\")(t),pl[t]=e,ml[e]=t,e)}}),p),fl=j,gl=Ht,vl=Dt,Fa=b,yl=at(\"symbol-to-string-registry\"),y=(ja({target:\"Symbol\",stat:!0,forced:!Fa},{keyFor:function(t){if(!gl(t))throw TypeError(vl(t)+\" is not a symbol\");if(fl(yl,t))return yl[t]}}),r([].slice)),bl=bo,_l=l,wl=vt,kl=yt,xl=r([].push),Ra=p,Dl=xt,Sl=Li,Cl=De,v=r,Aa=e,Tl=l,Ml=Ht,Ol=y,La=a,El=String,Pl=Dl(\"JSON\",\"stringify\"),Il=v(/./.exec),Al=v(\"\".charAt),Ll=v(\"\".charCodeAt),Nl=v(\"\".replace),Rl=v(1..toString),Fl=/[\\uD800-\\uDFFF]/g,jl=/^[\\uD800-\\uDBFF]$/,Yl=/^[\\uDC00-\\uDFFF]$/,Hl=!La||Aa(function(){var t=Dl(\"Symbol\")();return\"[null]\"!=Pl([t])||\"{}\"!=Pl({a:t})||\"{}\"!=Pl(Object(t))}),zl=Aa(function(){return'\"\\\\udf06\\\\ud834\"'!==Pl(\"\\udf06\\ud834\")||'\"\\\\udead\"'!==Pl(\"\\udead\")}),Bl=(Pl&&Ra({target:\"JSON\",stat:!0,arity:3,forced:Hl||zl},{stringify:function(t,e,i){var n=Ol(arguments),n=Sl(Hl?js:Pl,null,n);return zl&&\"string\"==typeof n?Nl(n,Fl,Ys):n}}),Gt),Gl=mt,Na=(p({target:\"Object\",stat:!0,forced:!a||e(function(){Bl.f(1)})},{getOwnPropertySymbols:function(t){var e=Bl.f;return e?e(Gl(t)):[]}}),c.Object.getOwnPropertySymbols),Wl=(ls.exports=Na,t(zs)),Vl={},Ga={get exports(){return Vl},set exports(t){Vl=t}},Ul={},Ya={get exports(){return Ul},set exports(t){Ul=t}},xn=p,No=e,Xl=li,ql=Pi.f,g=h,$l=(xn({target:\"Object\",stat:!0,forced:!g||No(function(){ql(1)}),sham:!g},{getOwnPropertyDescriptor:function(t,e){return ql(Xl(t),e)}}),c.Object),_=Ya.exports=function(t,e){return $l.getOwnPropertyDescriptor(t,e)},w=($l.getOwnPropertyDescriptor.sham&&(_.sham=!0),Ul),Zl=(Ga.exports=w,t(Vl)),Kl={},Va={get exports(){return Kl},set exports(t){Kl=t}},xa=xt,Jl=n,Ql=Gt,th=wt,eh=r([].concat),go=xa(\"Reflect\",\"ownKeys\")||function(t){var e=Jl.f(th(t)),i=Ql.f;return i?eh(e,i(t)):e},ih=go,nh=li,oh=Pi,rh=Io,$a=(p({target:\"Object\",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,i,n=nh(t),o=oh.f,r=ih(n),s={},a=0;r.length>a;)void 0!==(i=o(n,e=r[a++]))&&rh(s,e,i);return s}}),c.Object.getOwnPropertyDescriptors),sh=(Va.exports=$a,t(Kl)),ah={},b={get exports(){return ah},set exports(t){ah=t}},lh={},ja={get exports(){return lh},set exports(t){lh=t}},Fa=p,v=fe.f,hh=(Fa({target:\"Object\",stat:!0,forced:Object.defineProperties!==v,sham:!h},{defineProperties:v}),c.Object),La=ja.exports=function(t,e){return hh.defineProperties(t,e)},Aa=(hh.defineProperties.sham&&(La.sham=!0),lh),uh=(b.exports=Aa,t(ah)),ch={},Ra={get exports(){return ch},set exports(t){ch=t}},dh={},a={get exports(){return dh},set exports(t){dh=t}},ls=p,Na=me.f,ph=(ls({target:\"Object\",stat:!0,forced:Object.defineProperty!==Na,sham:!h},{defineProperty:Na}),c.Object),xn=a.exports=function(t,e,i){return ph.defineProperty(t,e,i)},No=(ph.defineProperty.sham&&(xn.sham=!0),dh),mh=(Ra.exports=No,t(ch));function k(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function fh(t){if(9007199254740991<t)throw kh(\"Maximum allowed index exceeded\");return t}function gh(e){return 51<=Dh||!xh(function(){var t=[];return(t.constructor={})[Sh]=function(){return{foo:1}},1!==t[e](Boolean).foo})}var vh={},g={get exports(){return vh},set exports(t){vh=t}},yh={},Ya=No,bh=({get exports(){return yh},set exports(t){yh=t}}.exports=Ya,g.exports=yh,t(vh)),_h={},_={get exports(){return _h},set exports(t){_h=t}},wh={},Ga={get exports(){return wh},set exports(t){wh=t}},kh=TypeError,xh=e,Dh=jt,Sh=gt(\"species\"),w=p,xa=e,Ch=bo,Th=ce,Mh=mt,Oh=pi,Eh=fh,Ph=Io,Ih=Os,Va=gh,$a=jt,Ah=gt(\"isConcatSpreadable\"),fe=51<=$a||!xa(function(){var t=[];return t[Ah]=!1,t.concat()[0]!==t}),Fa=(w({target:\"Array\",proto:!0,arity:1,forced:!fe||!Va(\"concat\")},{concat:function(t){for(var e,i,n,o,r,s=Mh(this),a=Ih(s,0),l=0,h=-1,u=arguments.length;h<u;h++)if(o=n=-1===h?s:arguments[h],r=void 0,!Th(o)||(void 0!==(r=o[Ah])?!r:!Ch(o)))Eh(l+1),Ph(a,l++,n);else for(i=Oh(n),Eh(l+i),e=0;e<i;e++,l++)e in n&&Ph(a,l,n[e]);return a.length=l,a}}),Ts(\"asyncIterator\"),Ts(\"hasInstance\"),Ts(\"isConcatSpreadable\"),Ts(\"iterator\"),Ts(\"match\"),Ts(\"matchAll\"),Ts(\"replace\"),Ts(\"search\"),Ts(\"species\"),Ts(\"split\"),Ms),v=(Ts(\"toPrimitive\"),Fa(),xt),ja=xo,La=(Ts(\"toStringTag\"),ja(v(\"Symbol\"),\"Symbol\"),Ts(\"unscopables\"),xo(s.JSON,\"JSON\",!0),c.Symbol),b=(Ts(\"dispose\"),La),Aa=(Ts(\"asyncDispose\"),p),ls=r,Na=xt(\"Symbol\"),Lh=Na.keyFor,Nh=ls(Na.prototype.valueOf);Aa({target:\"Symbol\",stat:!0},{isRegistered:function(t){try{return void 0!==Lh(Nh(t))}catch(t){return!1}}});for(var a=p,xn=at,Ra=xt,No=r,Rh=Ht,Fh=gt,jh=Ra(\"Symbol\"),Yh=jh.isWellKnown,Hh=Ra(\"Object\",\"getOwnPropertyNames\"),zh=No(jh.prototype.valueOf),Bh=xn(\"wks\"),Gh=0,Wh=Hh(jh),Vh=Wh.length;Gh<Vh;Gh++)try{var Uh=Wh[Gh];Rh(jh[Uh])&&Fh(Uh)}catch(F){}a({target:\"Symbol\",stat:!0,forced:!0},{isWellKnown:function(t){if(Yh&&Yh(t))return!0;try{for(var e=zh(t),i=0,n=Hh(Bh),o=n.length;i<o;i++)if(Bh[n[i]]==e)return!0}catch(t){}return!1}}),Ts(\"matcher\"),Ts(\"metadataKey\"),Ts(\"observable\"),Ts(\"metadata\"),Ts(\"patternMatch\"),Ts(\"replaceAll\");Ga.exports=b,_.exports=wh;var Xh=t(_h),qh={},Ya={get exports(){return qh},set exports(t){qh=t}},$h={},g={get exports(){return $h},set exports(t){$h=t}},$a=yo.f(\"iterator\"),Zh=(g.exports=$a,Ya.exports=$h,t(qh));function x(t){return(x=\"function\"==typeof Xh&&\"symbol\"==typeof Zh?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Xh&&t.constructor===Xh&&t!==Xh.prototype?\"symbol\":typeof t})(t)}var Kh={},xa={get exports(){return Kh},set exports(t){Kh=t}},Jh={},w={get exports(){return Jh},set exports(t){Jh=t}},fe=yo.f(\"toPrimitive\"),Qh=(w.exports=fe,xa.exports=Jh,t(Kh));function tu(t){t=function(t){if(\"object\"!==x(t)||null===t)return t;var e=t[Qh];if(void 0===e)return String(t);e=e.call(t,\"string\");if(\"object\"!==x(e))return e;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}(t);return\"symbol\"===x(t)?t:String(t)}function eu(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),bh(t,tu(n.key),n)}}function D(t,e,i){e&&eu(t.prototype,e),i&&eu(t,i),bh(t,\"prototype\",{writable:!1})}function S(t,e,i){return(e=tu(e))in t?bh(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function iu(t){return _u[t+\"Prototype\"]}function nu(t){var e=t.slice;return t===xu||wu(xu,t)&&e===xu.slice?ku:e}var ou={},Va={get exports(){return ou},set exports(t){ou=t}},ru={},Fa={get exports(){return ru},set exports(t){ru=t}},ja=(p({target:\"Array\",stat:!0},{isArray:bo}),c.Array.isArray),su=(Fa.exports=ja,Va.exports=ru,t(ou)),au={},v={get exports(){return au},set exports(t){au=t}},lu={},ls={get exports(){return lu},set exports(t){lu=t}},Na=p,hu=bo,uu=oe,cu=ce,du=di,pu=pi,mu=li,fu=Io,Aa=gt,gu=y,Ht=gh(\"slice\"),vu=Aa(\"species\"),yu=Array,bu=Math.max,_u=(Na({target:\"Array\",proto:!0,forced:!Ht},{slice:function(t,e){var i,n,o,r=mu(this),s=pu(r),a=du(t,s),l=du(void 0===e?s:e,s);if(hu(r)&&(i=r.constructor,(i=uu(i)&&(i===yu||hu(i.prototype))||cu(i)&&null===(i=i[vu])?void 0:i)===yu||void 0===i))return gu(r,a,l);for(n=new(void 0===i?yu:i)(bu(l-a,0)),o=0;a<l;a++,o++)a in r&&fu(n,o,r[a]);return n.length=o,n}}),c),Ra=iu(\"Array\").slice,wu=d,ku=Ra,xu=Array.prototype,Du=(ls.exports=nu,v.exports=lu,t(au)),Su={},No={get exports(){return Su},set exports(t){Su=t}},Cu={},xn=f,Tu=({get exports(){return Cu},set exports(t){Cu=t}}.exports=xn,No.exports=Cu,t(Su));function Mu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ou(t,e){var i;if(t)return\"string\"==typeof t?Mu(t,e):\"Map\"===(i=\"Object\"===(i=Du(i=Object.prototype.toString.call(t)).call(i,8,-1))&&t.constructor?t.constructor.name:i)||\"Set\"===i?Tu(t):\"Arguments\"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mu(t,e):void 0}function Eu(t,e){return function(t){if(su(t))return t}(t)||function(t,e){var i=null==t?null:void 0!==Xh&&Hs(t)||t[\"@@iterator\"];if(null!=i){var n,o,r,s,a=[],l=!0,h=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){h=!0,o=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw o}}return a}}(t,e)||Ou(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.\")}()}function Pu(t){return function(t){if(su(t))return Mu(t)}(t)||function(t){if(void 0!==Xh&&null!=Hs(t)||null!=t[\"@@iterator\"])return Tu(t)}(t)||Ou(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 Iu(t){var e=t.bind;return t===kc||_c(kc,t)&&e===kc.bind?wc:e}function Au(t,e){var i=[][t];return!!i&&Dc(function(){i.call(null,e||function(){return 1},1)})}function Lu(t){var e=t.forEach;return t===Ec||Mc(Ec,t)&&e===Ec.forEach||Tc(Pc,Cc(t))?Oc:e}function Nu(t){var e=t.reverse;return t===Fc||Nc(Fc,t)&&e===Fc.reverse?Rc:e}function Ru(t,e){if(!delete t[e])throw Wc(\"Cannot delete property \"+Gc(e)+\" of \"+Gc(t))}function Fu(t){if(_d(e=t)&&(void 0!==(i=e[kd])?!!i:\"RegExp\"==wd(e)))throw xd(\"The method doesn't accept regular expressions\");var e,i;return t}function ju(a){return function(t){for(var e,i=Ud(t),n=Vd(i),o=n.length,r=0,s=[];r<o;)e=n[r++],Wd&&!Xd(i,e)||qd(s,a?[e,i[e]]:i[e]);return s}}function Yu(e){return function(t){t=Qd(Jd(t));return 1&e&&(t=tp(t,ep,\"\")),t=2&e?tp(t,ip,\"$1\"):t}}var Hu={},zu=({get exports(){return Hu},set exports(t){Hu=t}}.exports=La,t(Hu)),Bu={},a={get exports(){return Bu},set exports(t){Bu=t}},Ga=iu(\"Array\").concat,Gu=d,Wu=Ga,Vu=Array.prototype,Uu=(a.exports=function(t){var e=t.concat;return t===Vu||Gu(Vu,t)&&e===Vu.concat?Wu:e},t(Bu)),Xu={},qu=({get exports(){return Xu},set exports(t){Xu=t}}.exports=nu,t(Xu)),$u={},b={get exports(){return $u},set exports(t){$u=t}},_=(p({target:\"Reflect\",stat:!0},{ownKeys:go}),c.Reflect.ownKeys),Zu=(b.exports=_,t($u)),Ku={},C=({get exports(){return Ku},set exports(t){Ku=t}}.exports=ja,t(Ku)),Ju={},g={get exports(){return Ju},set exports(t){Ju=t}},Qu=ut.map,Ya=(p({target:\"Array\",proto:!0,forced:!gh(\"map\")},{map:function(t){return Qu(this,t,1<arguments.length?arguments[1]:void 0)}}),iu(\"Array\").map),tc=d,ec=Ya,ic=Array.prototype,T=(g.exports=function(t){var e=t.map;return t===ic||tc(ic,t)&&e===ic.map?ec:e},t(Ju)),nc={},yo={get exports(){return nc},set exports(t){nc=t}},oc=mt,rc=Hn,w=(p({target:\"Object\",stat:!0,forced:e(function(){rc(1)})},{keys:function(t){return rc(oc(t))}}),c.Object.keys),sc=(yo.exports=w,t(nc)),ac={},fe={get exports(){return ac},set exports(t){ac=t}},xa=p,lc=Date,hc=r(lc.prototype.getTime),Fa=(xa({target:\"Date\",stat:!0},{now:function(){return hc(new lc)}}),c.Date.now),uc=(fe.exports=Fa,t(ac)),cc={},Va={get exports(){return cc},set exports(t){cc=t}},Aa=r,dc=St,pc=ce,mc=j,fc=y,Na=o,gc=Function,vc=Aa([].concat),yc=Aa([].join),bc={},Ht=Na?gc.bind:function(s){var a=dc(this),t=a.prototype,l=fc(arguments,1),h=function(){var t=vc(l,fc(arguments));if(this instanceof h){var e=a,i=t.length,n=t;if(!mc(bc,i)){for(var o=[],r=0;r<i;r++)o[r]=\"a[\"+r+\"]\";bc[i]=gc(\"C,a\",\"return new C(\"+yc(o,\",\")+\")\")}return bc[i](e,n)}return a.apply(s,t)};return pc(t)&&(h.prototype=t),h},Ra=(p({target:\"Function\",proto:!0,forced:Function.bind!==Ht},{bind:Ht}),iu(\"Function\").bind),_c=d,wc=Ra,kc=Function.prototype,M=(Va.exports=Iu,t(cc)),xc={},ls={get exports(){return xc},set exports(t){xc=t}},Dc=e,Sc=ut.forEach,v=Au(\"forEach\")?[].forEach:function(t){return Sc(this,t,1<arguments.length?arguments[1]:void 0)},f=(p({target:\"Array\",proto:!0,forced:[].forEach!=v},{forEach:v}),iu(\"Array\").forEach),Cc=qt,Tc=j,Mc=d,Oc=f,Ec=Array.prototype,Pc={DOMTokenList:!0,NodeList:!0},O=(ls.exports=Lu,t(xc)),Ic={},xn={get exports(){return Ic},set exports(t){Ic=t}},No=p,Ac=bo,Lc=r([].reverse),La=[1,2],Ga=(No({target:\"Array\",proto:!0,forced:String(La)===String(La.reverse())},{reverse:function(){return Ac(this)&&(this.length=this.length),Lc(this)}}),iu(\"Array\").reverse),Nc=d,Rc=Ga,Fc=Array.prototype,jc=(xn.exports=Nu,t(Ic)),Yc={},a={get exports(){return Yc},set exports(t){Yc=t}},Hc=bo,zc=TypeError,Bc=Object.getOwnPropertyDescriptor,b=h&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],\"length\",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Gc=Dt,Wc=TypeError,_=p,Vc=mt,Uc=di,Xc=tt,qc=pi,$c=b?function(t,e){if(Hc(t)&&!Bc(t,\"length\").writable)throw zc(\"Cannot set read only .length\");return t.length=e}:function(t,e){return t.length=e},Zc=fh,Kc=Os,Jc=Io,Qc=Ru,ja=gh(\"splice\"),td=Math.max,ed=Math.min,Ya=(_({target:\"Array\",proto:!0,forced:!ja},{splice:function(t,e){var i,n,o,r,s,a,l=Vc(this),h=qc(l),u=Uc(t,h),t=arguments.length;for(0===t?i=n=0:n=1===t?(i=0,h-u):(i=t-2,ed(td(Xc(e),0),h-u)),Zc(h+i-n),o=Kc(l,n),r=0;r<n;r++)(s=u+r)in l&&Jc(o,r,l[s]);if(i<(o.length=n)){for(r=u;r<h-n;r++)a=r+i,(s=r+n)in l?l[a]=l[s]:Qc(l,a);for(r=h;h-n+i<r;r--)Qc(l,r-1)}else if(n<i)for(r=h-n;u<r;r--)a=r+i-1,(s=r+n-1)in l?l[a]=l[s]:Qc(l,a);for(r=0;r<i;r++)l[r+u]=arguments[r+2];return $c(l,h-n+i),o}}),iu(\"Array\").splice),id=d,nd=Ya,od=Array.prototype,rd=(a.exports=function(t){var e=t.splice;return t===od||id(od,t)&&e===od.splice?nd:e},t(Yc)),sd={},g={get exports(){return sd},set exports(t){sd=t}},ad=h,yo=r,ld=De,w=e,hd=Hn,ud=Gt,cd=Ei,dd=mt,pd=Oi,md=Object.assign,fd=Object.defineProperty,gd=yo([].concat),xa=!md||w(function(){var t,e,i,n;return ad&&1!==md({b:1},md(fd({},\"a\",{enumerable:!0,get:function(){fd(this,\"b\",{value:3,enumerable:!1})}}),{b:2})).b||(e={},n=\"abcdefghijklmnopqrst\",(t={})[i=Symbol()]=7,n.split(\"\").forEach(function(t){e[t]=t}),7!=md({},t)[i])||hd(md({},e)).join(\"\")!=n})?function(t,e){for(var i=dd(t),n=arguments.length,o=1,r=ud.f,s=cd.f;o<n;)for(var a,l=pd(arguments[o++]),h=r?gd(hd(l),r(l)):hd(l),u=h.length,c=0;c<u;)a=h[c++],ad&&!ld(s,l,a)||(i[a]=l[a]);return i}:md,fe=(p({target:\"Object\",stat:!0,arity:2,forced:Object.assign!==xa},{assign:xa}),c.Object.assign),vd=(g.exports=fe,t(sd)),yd={},Fa={get exports(){return yd},set exports(t){yd=t}},bd=Dn.includes,o=(p({target:\"Array\",proto:!0,forced:e(function(){return!Array(1).includes()})},{includes:function(t){return bd(this,t,1<arguments.length?arguments[1]:void 0)}}),iu(\"Array\").includes),_d=ce,wd=vt,kd=gt(\"match\"),xd=TypeError,Dd=gt(\"match\"),Aa=p,Sd=pt,Cd=yt,Td=r(\"\".indexOf),Na=(Aa({target:\"String\",proto:!0,forced:!function(e){var i=/./;try{\"/./\"[e](i)}catch(t){try{return i[Dd]=!1,\"/./\"[e](i)}catch(e){}}return!1}(\"includes\")},{includes:function(t){return!!~Td(Cd(Sd(this)),Cd(Fu(t)),1<arguments.length?arguments[1]:void 0)}}),iu(\"String\").includes),Md=d,Od=o,Ed=Na,Pd=Array.prototype,Id=String.prototype,Ad=(Fa.exports=function(t){var e=t.includes;return t===Pd||Md(Pd,t)&&e===Pd.includes?Od:\"string\"==typeof t||t===Id||Md(Id,t)&&e===Id.includes?Ed:e},t(yd)),Ld={},Ra={get exports(){return Ld},set exports(t){Ld=t}},Nd=mt,Rd=m,Va=ao,v=(p({target:\"Object\",stat:!0,forced:e(function(){Rd(1)}),sham:!Va},{getPrototypeOf:function(t){return Rd(Nd(t))}}),c.Object.getPrototypeOf),Fd=(Ra.exports=v,t(Ld)),jd={},f={get exports(){return jd},set exports(t){jd=t}},Yd=ut.filter,ls=(p({target:\"Array\",proto:!0,forced:!gh(\"filter\")},{filter:function(t){return Yd(this,t,1<arguments.length?arguments[1]:void 0)}}),iu(\"Array\").filter),Hd=d,zd=ls,Bd=Array.prototype,E=(f.exports=function(t){var e=t.filter;return t===Bd||Hd(Bd,t)&&e===Bd.filter?zd:e},t(jd)),Gd={},No={get exports(){return Gd},set exports(t){Gd=t}},Wd=h,La=r,Vd=Hn,Ud=li,Xd=La(Ei.f),qd=La([].push),$d=(ju(!0),ju(!1)),Ga=(p({target:\"Object\",stat:!0},{values:function(t){return $d(t)}}),c.Object.values),Zd=(No.exports=Ga,t(Gd)),Kd={},xn={get exports(){return Kd},set exports(t){Kd=t}},b=\"\\t\\n\\v\\f\\r    â€â€‚         âŸã€€\\u2028\\u2029\\ufeff\",Jd=pt,Qd=yt,_=b,tp=r(\"\".replace),ep=RegExp(\"^[\"+_+\"]+\"),ip=RegExp(\"(^|[^\"+_+\"])[\"+_+\"]+$\"),ja={start:Yu(1),end:Yu(2),trim:Yu(3)},Ya=e,a=r,np=yt,op=ja.trim,Gt=b,rp=s.parseInt,yo=s.Symbol,sp=yo&&yo.iterator,ap=/^[+-]?0x/i,lp=a(ap.exec),w=8!==rp(Gt+\"08\")||22!==rp(Gt+\"0x16\")||sp&&!Ya(function(){rp(Object(sp))})?function(t,e){t=op(np(t));return rp(t,e>>>0||(lp(ap,t)?16:10))}:rp;p({global:!0,forced:parseInt!=w},{parseInt:w});function hp(t,e){return Ep.create(t,e)}function up(t,e){if(t<e)throw Fp(\"Not enough arguments\");return t}function cp(r,s){var a=s?2:1;return Gp?function(t,e){var i=zp(arguments.length,1)>a,n=Yp(t)?t:Bp(t),o=i?Hp(arguments,a):[],t=i?function(){jp(n,this,o)}:n;return s?r(t,e):r(t)}:r}xn.exports=c.parseInt;var dp,pp=t(Kd),mp={},xa={get exports(){return mp},set exports(t){mp=t}},g=p,fp=Dn.indexOf,fe=Au,gp=ai([].indexOf),vp=!!gp&&1/gp([1],1,-0)<0,Aa=(g({target:\"Array\",proto:!0,forced:vp||!fe(\"indexOf\")},{indexOf:function(t){var e=1<arguments.length?arguments[1]:void 0;return vp?gp(this,t,e)||0:fp(this,t,e)}}),iu(\"Array\").indexOf),yp=d,bp=Aa,_p=Array.prototype,P=(xa.exports=function(t){var e=t.indexOf;return t===_p||yp(_p,t)&&e===_p.indexOf?bp:e},t(mp)),wp={},o={get exports(){return wp},set exports(t){wp=t}},kp=kn.PROPER,Na=e,xp=b,Dp=ja.trim,Fa=(p({target:\"String\",proto:!0,forced:(dp=\"trim\",Na(function(){return!!xp.trim()||\"â€‹Â…á Ž\"!==\"â€‹Â…á Ž\".trim()||kp&&xp.trim.name!==dp}))},{trim:function(){return Dp(this)}}),iu(\"String\").trim),Sp=d,Cp=Fa,Tp=String.prototype,Mp=(o.exports=function(t){var e=t.trim;return\"string\"==typeof t||t===Tp||Sp(Tp,t)&&e===Tp.trim?Cp:e},t(wp)),Op={},ao={get exports(){return Op},set exports(t){Op=t}},Ep=(p({target:\"Object\",stat:!0,sham:!h},{create:Kn}),c.Object),Pp=(ao.exports=hp,t(Op)),Ip={},Va={get exports(){return Ip},set exports(t){Ip=t}},Ap=c,Lp=Li,Np=(Ap.JSON||(Ap.JSON={stringify:JSON.stringify}),Va.exports=function(t,e,i){return Lp(Ap.JSON.stringify,null,arguments)},t(Ip)),Rp={},Ra={get exports(){return Rp},set exports(t){Rp=t}},ls=\"function\"==typeof Bun&&Bun&&\"string\"==typeof Bun.version,Fp=TypeError,f=s,jp=Li,Yp=l,Hn=ls,Hp=y,zp=up,Bp=f.Function,Gp=/MSIE .\\./.test(Lt)||Hn&&((Ei=f.Bun.version.split(\".\")).length<3||0==Ei[0]&&(Ei[1]<3||3==Ei[1]&&0==Ei[2])),La=p,No=cp(s.setInterval,!0),Ga=(La({global:!0,bind:!0,forced:s.setInterval!==No},{setInterval:No}),p),_=cp(s.setTimeout,!0);Ga({global:!0,bind:!0,forced:s.setTimeout!==_},{setTimeout:_});Ra.exports=c.setTimeout;var Wp=t(Rp),Vp={},yo={get exports(){return Vp},set exports(t){Vp=t}},Up=mt,Xp=di,qp=pi,a=(p({target:\"Array\",proto:!0},{fill:function(t){for(var e=Up(this),i=qp(e),n=arguments.length,o=Xp(1<n?arguments[1]:void 0,i),n=2<n?arguments[2]:void 0,r=void 0===n?i:Xp(n,i);o<r;)e[o++]=t;return e}}),iu(\"Array\").fill),$p=d,Zp=a,Kp=Array.prototype,Jp=(yo.exports=function(t){var e=t.fill;return t===Kp||$p(Kp,t)&&e===Kp.fill?Zp:e},t(Vp)),Qp={};function tm(t){if(t){var e,i=t;for(e in tm.prototype)i[e]=tm.prototype[e];return i}}({get exports(){return Qp},set exports(t){Qp=t}}.exports=tm).prototype.on=tm.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this},tm.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},tm.prototype.off=tm.prototype.removeListener=tm.prototype.removeAllListeners=tm.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)this._callbacks={};else{var i,n=this._callbacks[\"$\"+t];if(n)if(1==arguments.length)delete this._callbacks[\"$\"+t];else{for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}0===n.length&&delete this._callbacks[\"$\"+t]}}return this},tm.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks[\"$\"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i)for(var n=0,o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e);return this},tm.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+t]||[]},tm.prototype.hasListeners=function(t){return!!this.listeners(t).length};Gt=Qp;function em(){return(em=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function im(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function nm(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}var om=\"function\"!=typeof 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 n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,rm=[\"\",\"webkit\",\"Moz\",\"MS\",\"ms\",\"o\"],Ya=\"undefined\"==typeof document?{style:{}}:document.createElement(\"div\"),sm=Math.round,am=Math.abs,lm=Date.now;function hm(t,e){for(var i,n=e[0].toUpperCase()+e.slice(1),o=0;o<rm.length;){if((i=(i=rm[o])?i+n:e)in t)return i;o++}}var um,cm,dm=\"undefined\"==typeof window?{}:window,pm=hm(Ya.style,\"touchAction\"),mm=void 0!==pm,fm=\"compute\",gm=\"manipulation\",vm=\"none\",ym=\"pan-x\",bm=\"pan-y\",_m=mm&&(um={},cm=dm.CSS&&dm.CSS.supports,[\"auto\",\"manipulation\",\"pan-y\",\"pan-x\",\"pan-x pan-y\",\"none\"].forEach(function(t){return um[t]=!cm||dm.CSS.supports(\"touch-action\",t)}),um),wm=\"ontouchstart\"in dm,km=void 0!==hm(dm,\"PointerEvent\"),xm=wm&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Dm=\"touch\",Sm=\"mouse\",Cm=25,Tm=1,Mm=4,Om=8,Em=[\"x\",\"y\"],Pm=[\"clientX\",\"clientY\"];function Im(t,e,i){if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(var n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function Am(t,e){return\"function\"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Lm(t,e){return-1<t.indexOf(e)}(w=Rm.prototype).set=function(t){t===fm&&(t=this.compute()),mm&&this.manager.element.style&&_m[t]&&(this.manager.element.style[pm]=t),this.actions=t.toLowerCase().trim()},w.update=function(){this.set(this.manager.options.touchAction)},w.compute=function(){var t,e,i,n=[];return Im(this.manager.recognizers,function(t){Am(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),Lm(t=n.join(\" \"),vm)||(e=Lm(t,ym),i=Lm(t,bm),e&&i)?vm:e||i?e?ym:bm:Lm(t,gm)?gm:\"auto\"},w.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,o=Lm(n,vm)&&!_m[vm],r=Lm(n,bm)&&!_m[bm],n=Lm(n,ym)&&!_m[ym];if(o){var s=1===t.pointers.length,a=t.distance<2,t=t.deltaTime<250;if(s&&a&&t)return}return n&&r?void 0:o||r&&6&i||n&&24&i?this.preventSrc(e):void 0}e.preventDefault()},w.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()};var Nm=Rm;function Rm(t,e){this.manager=t,this.set(e)}function Fm(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function jm(t){var e=t.length;if(1===e)return{x:sm(t[0].clientX),y:sm(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:sm(i/e),y:sm(n/e)}}function Ym(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:sm(t.pointers[i].clientX),clientY:sm(t.pointers[i].clientY)},i++;return{timeStamp:lm(),pointers:e,center:jm(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Hm(t,e,i){var n=e[(i=i||Em)[0]]-t[i[0]],e=e[i[1]]-t[i[1]];return Math.sqrt(n*n+e*e)}function zm(t,e,i){var n=e[(i=i||Em)[0]]-t[i[0]],e=e[i[1]]-t[i[1]];return 180*Math.atan2(e,n)/Math.PI}function Bm(t,e){return t===e?1:am(t)>=am(e)?t<0?2:4:e<0?8:16}function Gm(t,e,i){return{x:e/t||0,y:i/t||0}}function Wm(t,e,i){var n,o,r,s,a,l,h,u,c,d,p,m=i.pointers.length,f=i.changedPointers.length,g=e&Tm&&m-f==0,m=e&(Mm|Om)&&m-f==0;i.isFirst=!!g,i.isFinal=!!m,g&&(t.session={}),i.eventType=e,f=i,g=(m=t).session,e=f.pointers,n=e.length,g.firstInput||(g.firstInput=Ym(f)),1<n&&!g.firstMultiple?g.firstMultiple=Ym(f):1===n&&(g.firstMultiple=!1),n=g.firstInput,o=g.firstMultiple,r=(o||n).center,s=f.center=jm(e),f.timeStamp=lm(),f.deltaTime=f.timeStamp-n.timeStamp,f.angle=zm(r,s),f.distance=Hm(r,s),n=g,s=(r=f).center,d=n.offsetDelta||{},a=n.prevDelta||{},p=n.prevInput||{},r.eventType!==Tm&&p.eventType!==Mm||(a=n.prevDelta={x:p.deltaX||0,y:p.deltaY||0},d=n.offsetDelta={x:s.x,y:s.y}),r.deltaX=a.x+(s.x-d.x),r.deltaY=a.y+(s.y-d.y),f.offsetDirection=Bm(f.deltaX,f.deltaY),p=Gm(f.deltaTime,f.deltaX,f.deltaY),f.overallVelocityX=p.x,f.overallVelocityY=p.y,f.overallVelocity=am(p.x)>am(p.y)?p.x:p.y,f.scale=o?(n=o.pointers,Hm(e[0],e[1],Pm)/Hm(n[0],n[1],Pm)):1,f.rotation=o?(r=o.pointers,zm(e[1],e[0],Pm)+zm(r[1],r[0],Pm)):0,f.maxPointers=!g.prevInput||f.pointers.length>g.prevInput.maxPointers?f.pointers.length:g.prevInput.maxPointers,a=f,d=(s=g).lastInterval||a,p=a.timeStamp-d.timeStamp,a.eventType!==Om&&(Cm<p||void 0===d.velocity)?(l=(u=Gm(p,p=a.deltaX-d.deltaX,c=a.deltaY-d.deltaY)).x,h=u.y,u=am(u.x)>am(u.y)?u.x:u.y,c=Bm(p,c),s.lastInterval=a):(u=d.velocity,l=d.velocityX,h=d.velocityY,c=d.direction),a.velocity=u,a.velocityX=l,a.velocityY=h,a.direction=c,n=m.element,o=f.srcEvent,Fm(e=o.composedPath?o.composedPath()[0]:o.path?o.path[0]:o.target,n)&&(n=e),f.target=n,t.emit(\"hammer.input\",i),t.recognize(i),t.session.prevInput=i}function Vm(t){return t.trim().split(/\\s+/g)}function Um(e,t,i){Im(Vm(t),function(t){e.addEventListener(t,i,!1)})}function Xm(e,t,i){Im(Vm(t),function(t){e.removeEventListener(t,i,!1)})}function qm(t){t=t.ownerDocument||t;return t.defaultView||t.parentWindow||window}(xn=$m.prototype).handler=function(){},xn.init=function(){this.evEl&&Um(this.element,this.evEl,this.domHandler),this.evTarget&&Um(this.target,this.evTarget,this.domHandler),this.evWin&&Um(qm(this.element),this.evWin,this.domHandler)},xn.destroy=function(){this.evEl&&Xm(this.element,this.evEl,this.domHandler),this.evTarget&&Xm(this.target,this.evTarget,this.domHandler),this.evWin&&Xm(qm(this.element),this.evWin,this.domHandler)};Dn=$m;function $m(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){Am(e.options.enable,[e])&&i.handler(t)},this.init()}function Zm(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var Km,Jm={pointerdown:Tm,pointermove:2,pointerup:Mm,pointercancel:Om,pointerout:Om},Qm={2:Dm,3:\"pen\",4:Sm,5:\"kinect\"},tf=\"pointerdown\",ef=\"pointermove pointerup pointercancel\",nf=(dm.MSPointerEvent&&!dm.PointerEvent&&(tf=\"MSPointerDown\",ef=\"MSPointerMove MSPointerUp MSPointerCancel\"),im(of,Km=Dn),of.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace(\"ms\",\"\"),n=Jm[n],o=Qm[t.pointerType]||t.pointerType,r=o===Dm,s=Zm(e,t.pointerId,\"pointerId\");n&Tm&&(0===t.button||r)?s<0&&(e.push(t),s=e.length-1):n&(Mm|Om)&&(i=!0),s<0||(e[s]=t,this.callback(this.manager,n,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(s,1))},of);function of(){var t=of.prototype;return t.evEl=tf,t.evWin=ef,(t=Km.apply(this,arguments)||this).store=t.manager.session.pointerEvents=[],t}function rf(t){return Array.prototype.slice.call(t,0)}function sf(t,i,e){for(var n=[],o=[],r=0;r<t.length;){var s=i?t[r][i]:t[r];Zm(o,s)<0&&n.push(t[r]),o[r]=s,r++}return n=e?i?n.sort(function(t,e){return t[i]>e[i]}):n.sort():n}var af,lf={touchstart:Tm,touchmove:2,touchend:Mm,touchcancel:Om},hf=(im(uf,af=Dn),uf.prototype.handler=function(t){var e=lf[t.type],i=function(t,e){var i,n,o=rf(t.touches),r=this.targetIds;if(e&(2|Tm)&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=rf(t.changedTouches),a=[],l=this.target;if(n=o.filter(function(t){return Fm(t.target,l)}),e===Tm)for(i=0;i<n.length;)r[n[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),e&(Mm|Om)&&delete r[s[i].identifier],i++;return a.length?[sf(n.concat(a),\"identifier\",!0),a]:void 0}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Dm,srcEvent:t})},uf);function uf(){var t;return uf.prototype.evTarget=\"touchstart touchmove touchend touchcancel\",(t=af.apply(this,arguments)||this).targetIds={},t}var cf,df={mousedown:Tm,mousemove:2,mouseup:Mm},pf=(im(gf,cf=Dn),gf.prototype.handler=function(t){var e=df[t.type];e&Tm&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=Mm),this.pressed&&(e&Mm&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Sm,srcEvent:t}))},gf),mf=2500,ff=25;function gf(){var t=gf.prototype;return t.evEl=\"mousedown\",t.evWin=\"mousemove mouseup\",(t=cf.apply(this,arguments)||this).pressed=!1,t}function vf(t){var e,i,t=t.changedPointers[0];t.identifier===this.primaryTouch&&(e={x:t.clientX,y:t.clientY},i=this.lastTouches,this.lastTouches.push(e),setTimeout(function(){var t=i.indexOf(e);-1<t&&i.splice(t,1)},mf))}im(_f,yf=Dn),_f.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()};var yf,bf=_f;function _f(t,e){var r;return(r=yf.call(this,t,e)||this).handler=function(t,e,i){var n=i.pointerType===Dm,o=i.pointerType===Sm;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)!function(t,e){t&Tm?(this.primaryTouch=e.changedPointers[0].identifier,vf.call(this,e)):t&(Mm|Om)&&vf.call(this,e)}.call(nm(nm(r)),e,i);else if(o&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),o=Math.abs(i-o.y);if(r<=ff&&o<=ff)return!0}return!1}.call(nm(nm(r)),i))return;r.callback(t,e,i)}},r.touch=new hf(r.manager,r.handler),r.mouse=new pf(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}function wf(t,e,i){return Array.isArray(t)&&(Im(t,i[e],i),1)}var kf=1;function xf(t,e){e=e.manager;return e?e.get(t):t}function Df(t){return 16&t?\"cancel\":8&t?\"end\":4&t?\"move\":2&t?\"start\":\"\"}(g=Pf.prototype).set=function(t){return om(this.options,t),this.manager&&this.manager.touchAction.update(),this},g.recognizeWith=function(t){var e;return wf(t,\"recognizeWith\",this)||(e=this.simultaneous)[(t=xf(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},g.dropRecognizeWith=function(t){return wf(t,\"dropRecognizeWith\",this)||(t=xf(t,this),delete this.simultaneous[t.id]),this},g.requireFailure=function(t){var e;return wf(t,\"requireFailure\",this)||-1===Zm(e=this.requireFail,t=xf(t,this))&&(e.push(t),t.requireFailure(this)),this},g.dropRequireFailure=function(t){return wf(t,\"dropRequireFailure\",this)||(t=xf(t,this),-1<(t=Zm(this.requireFail,t))&&this.requireFail.splice(t,1)),this},g.hasRequireFailures=function(){return 0<this.requireFail.length},g.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},g.emit=function(e){var i=this,t=this.state;function n(t){i.manager.emit(t,e)}t<8&&n(i.options.event+Df(t)),n(i.options.event),e.additionalEvent&&n(e.additionalEvent),8<=t&&n(i.options.event+Df(t))},g.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},g.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},g.recognize=function(t){t=om({},t);Am(this.options.enable,[this,t])?(56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)):(this.reset(),this.state=32)},g.process=function(t){},g.getTouchAction=function(){},g.reset=function(){};var Sf,Cf,Tf=Pf,Aa=(im(Ef,Cf=Tf),(fe=Ef.prototype).getTouchAction=function(){return[gm]},fe.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime<i.time;if(this.reset(),t.eventType&Tm&&0===this.count)return this.failTimeout();if(o&&r&&n){if(t.eventType!==Mm)return this.failTimeout();o=!this.pTime||t.timeStamp-this.pTime<i.interval,r=!this.pCenter||Hm(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,r&&o?this.count+=1:this.count=1,this._input=t,0==this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=8,e.tryEmit()},i.interval),2):8}return 32},fe.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=32},this.options.interval),32},fe.reset=function(){clearTimeout(this._timer)},fe.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},Ef),Mf=(im(Of,Sf=Tf),(xa=Of.prototype).attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},xa.process=function(t){var e=this.state,i=t.eventType,n=6&e,t=this.attrTest(t);return n&&(i&Om||!t)?16|e:n||t?i&Mm?8|e:2&e?4|e:2:32},Of);function Of(t){return Sf.call(this,em({pointers:1},t=void 0===t?{}:t))||this}function Ef(t){return(t=Cf.call(this,em({event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},t=void 0===t?{}:t))||this).pTime=!1,t.pCenter=!1,t._timer=null,t._input=null,t.count=0,t}function Pf(t){this.options=em({enable:!0},t=void 0===t?{}:t),this.id=kf++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}function If(t){return 16===t?\"down\":8===t?\"up\":2===t?\"left\":4===t?\"right\":\"\"}im(Vf,Ff=Mf),(kn=Vf.prototype).getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(bm),24&t&&e.push(ym),e},kn.directionTest=function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(n=6&e.direction?(o=0===r?1:r<0?2:4,i=r!==this.pX,Math.abs(t.deltaX)):(o=0===s?1:s<0?8:16,i=s!==this.pY,Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},kn.attrTest=function(t){return Mf.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},kn.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=If(t.direction);e&&(t.additionalEvent=this.options.event+e),Ff.prototype.emit.call(this,t)};var Af,Lf,Nf,Rf,Ff,jf=Vf,Na=(im(Wf,Rf=Mf),(b=Wf.prototype).getTouchAction=function(){return jf.prototype.getTouchAction.call(this)},b.attrTest=function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:24&i&&(e=t.overallVelocityY),Rf.prototype.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&am(e)>this.options.velocity&&t.eventType&Mm},b.emit=function(t){var e=If(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},Wf),o=(im(Gf,Nf=Mf),(Fa=Gf.prototype).getTouchAction=function(){return[vm]},Fa.attrTest=function(t){return Nf.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},Fa.emit=function(t){var e;1!==t.scale&&(e=t.scale<1?\"in\":\"out\",t.additionalEvent=this.options.event+e),Nf.prototype.emit.call(this,t)},Gf),Va=(im(Bf,Lf=Mf),(ao=Bf.prototype).getTouchAction=function(){return[vm]},ao.attrTest=function(t){return Lf.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)},Bf),Hn=(im(zf,Af=Tf),(ls=zf.prototype).getTouchAction=function(){return[\"auto\"]},ls.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime>i.time;if(this._input=t,!o||!n||t.eventType&(Mm|Om)&&!r)this.reset();else if(t.eventType&Tm)this.reset(),this._timer=setTimeout(function(){e.state=8,e.tryEmit()},i.time);else if(t.eventType&Mm)return 8;return 32},ls.reset=function(){clearTimeout(this._timer)},ls.emit=function(t){8===this.state&&(t&&t.eventType&Mm?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=lm(),this.manager.emit(this.options.event,this._input)))},zf),Yf={domEvents:!1,touchAction:fm,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}},Hf=[[Va,{enable:!1}],[o,{enable:!1},[\"rotate\"]],[Na,{direction:6}],[jf,{direction:6},[\"swipe\"]],[Aa],[Aa,{event:\"doubletap\",taps:2},[\"tap\"]],[Hn]];function zf(t){return(t=Af.call(this,em({event:\"press\",pointers:1,time:251,threshold:9},t=void 0===t?{}:t))||this)._timer=null,t._input=null,t}function Bf(t){return Lf.call(this,em({event:\"rotate\",threshold:0,pointers:2},t=void 0===t?{}:t))||this}function Gf(t){return Nf.call(this,em({event:\"pinch\",threshold:0,pointers:2},t=void 0===t?{}:t))||this}function Wf(t){return Rf.call(this,em({event:\"swipe\",threshold:10,velocity:.3,direction:30,pointers:1},t=void 0===t?{}:t))||this}function Vf(t){return(t=Ff.call(this,em({event:\"pan\",threshold:10,pointers:1,direction:30},t=void 0===t?{}:t))||this).pX=null,t.pY=null,t}function Uf(i,n){var o,r=i.element;r.style&&(Im(i.options.cssProps,function(t,e){o=hm(r.style,e),n?(i.oldCssProps[o]=r.style[o],r.style[o]=t):r.style[o]=i.oldCssProps[o]||\"\"}),n||(i.oldCssProps={}))}(f=Kf.prototype).set=function(t){return om(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},f.stop=function(t){this.session.stopped=t?2:1},f.recognize=function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,o=e.curRecognizer;(!o||8&o.state)&&(o=e.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!==o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(o=e.curRecognizer=i),r++}},f.get=function(t){if(t instanceof Tf)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event===t)return e[i];return null},f.add=function(t){var e;return wf(t,\"add\",this)?this:((e=this.get(t.options.event))&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t)},f.remove=function(t){var e;return wf(t,\"remove\",this)||(e=this.get(t),t&&-1!==(e=Zm(t=this.recognizers,e))&&(t.splice(e,1),this.touchAction.update())),this},f.on=function(t,e){var i;return void 0!==t&&void 0!==e&&(i=this.handlers,Im(Vm(t),function(t){i[t]=i[t]||[],i[t].push(e)})),this},f.off=function(t,e){var i;return void 0!==t&&(i=this.handlers,Im(Vm(t),function(t){e?i[t]&&i[t].splice(Zm(i[t],e),1):delete i[t]})),this},f.emit=function(t,e){this.options.domEvents&&(i=t,n=e,(o=document.createEvent(\"Event\")).initEvent(i,!0,!0),(o.gesture=n).target.dispatchEvent(o));var i,n,o,r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var s=0;s<r.length;)r[s](e),s++}},f.destroy=function(){this.element&&Uf(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null};var Xf,qf=Kf,$f={touchstart:Tm,touchmove:2,touchend:Mm,touchcancel:Om},Ei=(im(Zf,Xf=Dn),Zf.prototype.handler=function(t){var e,i=$f[t.type];i===Tm&&(this.started=!0),this.started&&(e=function(t,e){var i=rf(t.touches),t=rf(t.changedTouches);return[i=e&(Mm|Om)?sf(i.concat(t),\"identifier\",!0):i,t]}.call(this,t,i),i&(Mm|Om)&&e[0].length-e[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:e[0],changedPointers:e[1],pointerType:Dm,srcEvent:t}))},Zf);function Zf(){var t=Zf.prototype;return t.evTarget=\"touchstart\",t.evWin=\"touchstart touchmove touchend touchcancel\",(t=Xf.apply(this,arguments)||this).started=!1,t}function Kf(t,e){var i=this;this.options=om({},Yf,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(km?nf:xm?hf:wm?bf:pf))(this,Wm),this.touchAction=new Nm(this,this.options.touchAction),Uf(this,!0),Im(this.options.recognizers,function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Jf(i,t,e){var n=\"DEPRECATED METHOD: \"+t+\"\\n\"+e+\" AT \\n\";return function(){var t=new Error(\"get-stack-trace\"),t=t&&t.stack?t.stack.replace(/^[^\\(]+?[\\n$]/gm,\"\").replace(/^\\s+at\\s+/gm,\"\").replace(/^Object.<anonymous>\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\",e=window.console&&(window.console.warn||window.console.log);return e&&e.call(window.console,n,t),i.apply(this,arguments)}}var Qf=Jf(function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)i&&void 0!==t[n[o]]||(t[n[o]]=e[n[o]]),o++;return t},\"extend\",\"Use `assign`.\"),La=Jf(function(t,e){return Qf(t,e,!0)},\"merge\",\"Use `assign`.\");function tg(t,e,i){var n,e=e.prototype;(n=t.prototype=Object.create(e)).constructor=t,n._super=e,i&&om(n,i)}function eg(t,e){return function(){return t.apply(e,arguments)}}I.VERSION=\"2.0.17-rc\",I.DIRECTION_ALL=30,I.DIRECTION_DOWN=16,I.DIRECTION_LEFT=2,I.DIRECTION_RIGHT=4,I.DIRECTION_UP=8,I.DIRECTION_HORIZONTAL=6,I.DIRECTION_VERTICAL=24,I.DIRECTION_NONE=1,I.DIRECTION_DOWN=16,I.INPUT_START=Tm,I.INPUT_MOVE=2,I.INPUT_END=Mm,I.INPUT_CANCEL=Om,I.STATE_POSSIBLE=1,I.STATE_BEGAN=2,I.STATE_CHANGED=4,I.STATE_ENDED=8,I.STATE_RECOGNIZED=8,I.STATE_CANCELLED=16,I.STATE_FAILED=32,I.Manager=qf,I.Input=Dn,I.TouchAction=Nm,I.TouchInput=hf,I.MouseInput=pf,I.PointerEventInput=nf,I.TouchMouseInput=bf,I.SingleTouchInput=Ei,I.Recognizer=Tf,I.AttrRecognizer=Mf,I.Tap=Aa,I.Pan=jf,I.Swipe=Na,I.Pinch=o,I.Rotate=Va,I.Press=Hn,I.on=Um,I.off=Xm,I.each=Im,I.merge=La,I.extend=Qf,I.bindFn=eg,I.assign=om,I.inherit=tg,I.bindFn=eg,I.prefixed=hm,I.toArray=rf,I.inArray=Zm,I.uniqueArray=sf,I.splitStr=Vm,I.boolOrFn=Am,I.hasParent=Fm,I.addEventListeners=Um,I.removeEventListeners=Xm,I.defaults=om({},Yf,{preset:Hf});No=I;function I(t,e){return void 0===e&&(e={}),new qf(t,em({recognizers:Hf.concat()},e))}Ga=No;function ig(e,t){var i,n=sc(e);return Wl&&(i=Wl(e),t&&(i=E(i).call(i,function(t){return Zl(e,t).enumerable})),n.push.apply(n,i)),n}function ng(e){for(var t=1;t<arguments.length;t++){var i,n=null!=arguments[t]?arguments[t]:{};t%2?O(i=ig(Object(n),!0)).call(i,function(t){S(e,t,n[t])}):sh?uh(e,sh(n)):O(i=ig(Object(n))).call(i,function(t){mh(e,t,Zl(n,t))})}return e}function og(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?rg(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?rg(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function rg(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var sg=zu(\"DELETE\");function ag(t){for(var e=arguments.length,i=new Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return lg.apply(void 0,Uu(t=[{},t]).call(t,i))}function lg(){var t=hg.apply(void 0,arguments);return function t(e){for(var i=0,n=sc(e);i<n.length;i++){var o=n[i];e[o]===sg?delete e[o]:\"object\"===x(e[o])&&null!==e[o]&&t(e[o])}}(t),t}function hg(){for(var t,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];if(i.length<2)return i[0];if(2<i.length)return hg.apply(void 0,Uu(t=[lg(i[0],i[1])]).call(t,Pu(qu(i).call(i,2))));var o,r=i[0],s=i[1],a=og(Zu(s));try{for(a.s();!(o=a.n()).done;){var l=o.value;Object.prototype.propertyIsEnumerable.call(s,l)&&(s[l]===sg?delete r[l]:null===r[l]||null===s[l]||\"object\"!==x(r[l])||\"object\"!==x(s[l])||C(r[l])||C(s[l])?r[l]=function e(t){return C(t)?T(t).call(t,function(t){return e(t)}):\"object\"===x(t)&&null!==t?hg({},t):t}(s[l]):r[l]=hg(r[l],s[l]))}}catch(e){a.e(e)}finally{a.f()}return r}var ug=\"undefined\"!=typeof window?window.Hammer||Ga:function(){return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}};function t(){}};function cg(e){var i=this,n=(this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement(\"div\")},this._dom.overlay.classList.add(\"vis-overlay\"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){i._dom.overlay.parentNode.removeChild(i._dom.overlay)}),ug(this._dom.overlay)),t=(n.on(\"tap\",M(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push(function(){n.destroy()}),[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"]);O(t).call(t,function(t){n.on(t,function(t){t.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(t){!function(t,e){for(;t;){if(t===e)return 1;t=t.parentNode}}(t.target,e)&&i.deactivate()},document.body.addEventListener(\"click\",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener(\"click\",i._onClick)})),this._escListener=function(t){(\"key\"in t?\"Escape\"===t.key:27===t.keyCode)&&i.deactivate()}}Gt(cg.prototype),cg.current=null,cg.prototype.destroy=function(){var t,e;this.deactivate();var i,n=og(jc(t=rd(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(i=n.n()).done;)(0,i.value)()}catch(t){n.e(t)}finally{n.f()}},cg.prototype.activate=function(){cg.current&&cg.current.deactivate(),(cg.current=this).active=!0,this._dom.overlay.style.display=\"none\",this._dom.container.classList.add(\"vis-active\"),this.emit(\"change\"),this.emit(\"activate\"),document.body.addEventListener(\"keydown\",this._escListener)},cg.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display=\"block\",this._dom.container.classList.remove(\"vis-active\"),document.body.removeEventListener(\"keydown\",this._escListener),this.emit(\"change\"),this.emit(\"deactivate\")},cg.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var dg=/^\\/?Date\\((-?\\d+)/i,pg=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i,mg=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,fg=/^rgb\\( *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *\\)$/i,gg=/^rgba\\( *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *([01]|0?\\.\\d+) *\\)$/i;function vg(t){return t instanceof Number||\"number\"==typeof t}function yg(t){return t instanceof String||\"string\"==typeof t}function bg(t){return\"object\"===x(t)&&null!==t}function _g(t,e,i,n){var o=!1;(o=!0===n?null===e[i]&&void 0!==t[i]:o)?delete t[i]:t[i]=e[i]}_=vd;function wg(t,e){var i,n,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];for(i in e)!Object.prototype.hasOwnProperty.call(e,i)&&!0!==o||(\"object\"===x(e[i])&&null!==e[i]&&Fd(e[i])===Object.prototype?void 0===t[i]?t[i]=wg({},e[i],o):\"object\"===x(t[i])&&null!==t[i]&&Fd(t[i])===Object.prototype?wg(t[i],e[i],o):_g(t,e,i,r):C(e[i])?t[i]=qu(n=e[i]).call(n):_g(t,e,i,r));return t}function kg(t){var e=x(t);return\"object\"===e?null===t?\"null\":t instanceof Boolean?\"Boolean\":t instanceof Number?\"Number\":t instanceof String?\"String\":C(t)?\"Array\":t instanceof Date?\"Date\":\"Object\":\"number\"===e?\"Number\":\"boolean\"===e?\"Boolean\":\"string\"===e?\"String\":void 0===e?\"undefined\":e}function xg(t,e){var i;return Uu(i=[]).call(i,Pu(t),[e])}function Dg(t){return qu(t).call(t)}Ra=Zd,a={asBoolean:function(t,e){return null!=(t=\"function\"==typeof t?t():t)?0!=t:e||null},asNumber:function(t,e){return null!=(t=\"function\"==typeof t?t():t)?Number(t)||e||null:e||null},asString:function(t,e){return null!=(t=\"function\"==typeof t?t():t)?String(t):e||null},asSize:function(t,e){return yg(t=\"function\"==typeof t?t():t)?t:vg(t)?t+\"px\":e||null},asElement:function(t,e){return(t=\"function\"==typeof t?t():t)||e||null}};function Sg(t){var e;switch(t.length){case 3:case 4:return(e=mg.exec(t))?{r:pp(e[1]+e[1],16),g:pp(e[2]+e[2],16),b:pp(e[3]+e[3],16)}:null;case 6:case 7:return(e=pg.exec(t))?{r:pp(e[1],16),g:pp(e[2],16),b:pp(e[3],16)}:null;default:return null}}function Cg(t,e,i){return\"#\"+qu(t=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(t,1)}function Tg(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),o=Math.max(t,Math.max(e,i));return n===o?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(o-n))/360,s:(o-n)/o,v:o}}var Mg=function(t){var i={};return O(t=t.split(\";\")).call(t,function(t){var e;\"\"!=Mp(t).call(t)&&(t=t.split(\":\"),e=Mp(e=t[0]).call(e),t=Mp(t=t[1]).call(t),i[e]=t)}),i},Og=function(e){var t;return T(t=sc(e)).call(t,function(t){return t+\": \"+e[t]}).join(\"; \")};function Eg(t,e,i){var n,o,r,s=Math.floor(6*t),t=6*t-s,a=i*(1-e),l=i*(1-t*e),h=i*(1-(1-t)*e);switch(s%6){case 0:n=i,o=h,r=a;break;case 1:n=l,o=i,r=a;break;case 2:n=a,o=i,r=h;break;case 3:n=a,o=l,r=i;break;case 4:n=h,o=a,r=i;break;case 5:n=i,o=a,r=l}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*r)}}function Pg(t,e,i){t=Eg(t,e,i);return Cg(t.r,t.g,t.b)}function Ig(t){var e=Sg(t);if(e)return Tg(e.r,e.g,e.b);throw new TypeError(\"'\".concat(t,\"' is not a valid color.\"))}function Ag(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Lg(t){return fg.test(t)}function Ng(t){return gg.test(t)}function Rg(t){if(null===t||\"object\"!==x(t))return null;if(t instanceof Element)return t;var e,i=Pp(t);for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&\"object\"==x(t[e])&&(i[e]=Rg(t[e]));return i}var Fg={black:\"#000000\",navy:\"#000080\",darkblue:\"#00008B\",mediumblue:\"#0000CD\",blue:\"#0000FF\",darkgreen:\"#006400\",green:\"#008000\",teal:\"#008080\",darkcyan:\"#008B8B\",deepskyblue:\"#00BFFF\",darkturquoise:\"#00CED1\",mediumspringgreen:\"#00FA9A\",lime:\"#00FF00\",springgreen:\"#00FF7F\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",midnightblue:\"#191970\",dodgerblue:\"#1E90FF\",lightseagreen:\"#20B2AA\",forestgreen:\"#228B22\",seagreen:\"#2E8B57\",darkslategray:\"#2F4F4F\",limegreen:\"#32CD32\",mediumseagreen:\"#3CB371\",turquoise:\"#40E0D0\",royalblue:\"#4169E1\",steelblue:\"#4682B4\",darkslateblue:\"#483D8B\",mediumturquoise:\"#48D1CC\",indigo:\"#4B0082\",darkolivegreen:\"#556B2F\",cadetblue:\"#5F9EA0\",cornflowerblue:\"#6495ED\",mediumaquamarine:\"#66CDAA\",dimgray:\"#696969\",slateblue:\"#6A5ACD\",olivedrab:\"#6B8E23\",slategray:\"#708090\",lightslategray:\"#778899\",mediumslateblue:\"#7B68EE\",lawngreen:\"#7CFC00\",chartreuse:\"#7FFF00\",aquamarine:\"#7FFFD4\",maroon:\"#800000\",purple:\"#800080\",olive:\"#808000\",gray:\"#808080\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",blueviolet:\"#8A2BE2\",darkred:\"#8B0000\",darkmagenta:\"#8B008B\",saddlebrown:\"#8B4513\",darkseagreen:\"#8FBC8F\",lightgreen:\"#90EE90\",mediumpurple:\"#9370D8\",darkviolet:\"#9400D3\",palegreen:\"#98FB98\",darkorchid:\"#9932CC\",yellowgreen:\"#9ACD32\",sienna:\"#A0522D\",brown:\"#A52A2A\",darkgray:\"#A9A9A9\",lightblue:\"#ADD8E6\",greenyellow:\"#ADFF2F\",paleturquoise:\"#AFEEEE\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",firebrick:\"#B22222\",darkgoldenrod:\"#B8860B\",mediumorchid:\"#BA55D3\",rosybrown:\"#BC8F8F\",darkkhaki:\"#BDB76B\",silver:\"#C0C0C0\",mediumvioletred:\"#C71585\",indianred:\"#CD5C5C\",peru:\"#CD853F\",chocolate:\"#D2691E\",tan:\"#D2B48C\",lightgrey:\"#D3D3D3\",palevioletred:\"#D87093\",thistle:\"#D8BFD8\",orchid:\"#DA70D6\",goldenrod:\"#DAA520\",crimson:\"#DC143C\",gainsboro:\"#DCDCDC\",plum:\"#DDA0DD\",burlywood:\"#DEB887\",lightcyan:\"#E0FFFF\",lavender:\"#E6E6FA\",darksalmon:\"#E9967A\",violet:\"#EE82EE\",palegoldenrod:\"#EEE8AA\",lightcoral:\"#F08080\",khaki:\"#F0E68C\",aliceblue:\"#F0F8FF\",honeydew:\"#F0FFF0\",azure:\"#F0FFFF\",sandybrown:\"#F4A460\",wheat:\"#F5DEB3\",beige:\"#F5F5DC\",whitesmoke:\"#F5F5F5\",mintcream:\"#F5FFFA\",ghostwhite:\"#F8F8FF\",salmon:\"#FA8072\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lightgoldenrodyellow:\"#FAFAD2\",oldlace:\"#FDF5E6\",red:\"#FF0000\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",deeppink:\"#FF1493\",orangered:\"#FF4500\",tomato:\"#FF6347\",hotpink:\"#FF69B4\",coral:\"#FF7F50\",darkorange:\"#FF8C00\",lightsalmon:\"#FFA07A\",orange:\"#FFA500\",lightpink:\"#FFB6C1\",pink:\"#FFC0CB\",gold:\"#FFD700\",peachpuff:\"#FFDAB9\",navajowhite:\"#FFDEAD\",moccasin:\"#FFE4B5\",bisque:\"#FFE4C4\",mistyrose:\"#FFE4E1\",blanchedalmond:\"#FFEBCD\",papayawhip:\"#FFEFD5\",lavenderblush:\"#FFF0F5\",seashell:\"#FFF5EE\",cornsilk:\"#FFF8DC\",lemonchiffon:\"#FFFACD\",floralwhite:\"#FFFAF0\",snow:\"#FFFAFA\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",ivory:\"#FFFFF0\",white:\"#FFFFFF\"},jg=(D(Yg,[{key:\"insertTo\",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:\"setUpdateCallback\",value:function(t){if(\"function\"!=typeof t)throw new Error(\"Function attempted to set as colorPicker update callback is not a function.\");this.updateCallback=t}},{key:\"setCloseCallback\",value:function(t){if(\"function\"!=typeof t)throw new Error(\"Function attempted to set as colorPicker closing callback is not a function.\");this.closeCallback=t}},{key:\"_isColorString\",value:function(t){if(\"string\"==typeof t)return Fg[t]}},{key:\"setColor\",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(\"none\"!==t){var i,n=this._isColorString(t);if(!0===yg(t=void 0!==n?n:t)?!0===Lg(t)?i={r:(n=t.substr(4).substr(0,t.length-5).split(\",\"))[0],g:n[1],b:n[2],a:1}:!0===Ng(t)?i={r:(n=t.substr(5).substr(0,t.length-6).split(\",\"))[0],g:n[1],b:n[2],a:n[3]}:!0===Ag(t)&&(i={r:(n=Sg(t)).r,g:n.g,b:n.b,a:1}):t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b&&(n=void 0!==t.a?t.a:\"1.0\",i={r:t.r,g:t.g,b:t.b,a:n}),void 0===i)throw new Error(\"Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: \"+Np(t));this._setColor(i,e)}}},{key:\"show\",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display=\"block\",this._generateHueCircle()}},{key:\"_hide\",value:function(){var t=this;!0===(!(0<arguments.length&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=vd({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display=\"none\",Wp(function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:\"_save\",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:\"_apply\",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:\"_loadLast\",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert(\"There is no last color to load...\")}},{key:\"_setColor\",value:function(t){!0===(!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=vd({},t));var e=Tg((this.color=t).r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),n=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+\"px\",this.colorPickerSelector.style.top=n-.5*this.colorPickerSelector.clientHeight+\"px\",this._updatePicker(t)}},{key:\"_setOpacity\",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:\"_setBrightness\",value:function(t){var e=Tg(this.color.r,this.color.g,this.color.b),t=(e.v=t/100,Eg(e.h,e.s,e.v));t.a=this.color.a,this.color=t,this._updatePicker()}},{key:\"_updatePicker\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.color,e=Tg(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext(\"2d\"),n=(void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),this.colorPickerCanvas.clientWidth),o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle=\"rgba(0,0,0,\"+(1-e.v)+\")\",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Jp(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\",this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}},{key:\"_setSize\",value:function(){this.colorPickerCanvas.style.width=\"100%\",this.colorPickerCanvas.style.height=\"100%\",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:\"_create\",value:function(){var t,e;this.frame=document.createElement(\"div\"),this.frame.className=\"vis-color-picker\",this.colorPickerDiv=document.createElement(\"div\"),this.colorPickerSelector=document.createElement(\"div\"),this.colorPickerSelector.className=\"vis-selector\",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement(\"canvas\"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext?(e=this.colorPickerCanvas.getContext(\"2d\"),this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)):((e=document.createElement(\"DIV\")).style.color=\"red\",e.style.fontWeight=\"bold\",e.style.padding=\"10px\",e.innerText=\"Error: your browser does not support HTML canvas\",this.colorPickerCanvas.appendChild(e)),this.colorPickerDiv.className=\"vis-color\",this.opacityDiv=document.createElement(\"div\"),this.opacityDiv.className=\"vis-opacity\",this.brightnessDiv=document.createElement(\"div\"),this.brightnessDiv.className=\"vis-brightness\",this.arrowDiv=document.createElement(\"div\"),this.arrowDiv.className=\"vis-arrow\",this.opacityRange=document.createElement(\"input\");try{this.opacityRange.type=\"range\",this.opacityRange.min=\"0\",this.opacityRange.max=\"100\"}catch(t){}this.opacityRange.value=\"100\",this.opacityRange.className=\"vis-range\",this.brightnessRange=document.createElement(\"input\");try{this.brightnessRange.type=\"range\",this.brightnessRange.min=\"0\",this.brightnessRange.max=\"100\"}catch(t){}this.brightnessRange.value=\"100\",this.brightnessRange.className=\"vis-range\",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement(\"div\"),this.brightnessLabel.className=\"vis-label vis-brightness\",this.brightnessLabel.innerText=\"brightness:\",this.opacityLabel=document.createElement(\"div\"),this.opacityLabel.className=\"vis-label vis-opacity\",this.opacityLabel.innerText=\"opacity:\",this.newColorDiv=document.createElement(\"div\"),this.newColorDiv.className=\"vis-new-color\",this.newColorDiv.innerText=\"new\",this.initialColorDiv=document.createElement(\"div\"),this.initialColorDiv.className=\"vis-initial-color\",this.initialColorDiv.innerText=\"initial\",this.cancelButton=document.createElement(\"div\"),this.cancelButton.className=\"vis-button vis-cancel\",this.cancelButton.innerText=\"cancel\",this.cancelButton.onclick=M(t=this._hide).call(t,this,!1),this.applyButton=document.createElement(\"div\"),this.applyButton.className=\"vis-button vis-apply\",this.applyButton.innerText=\"apply\",this.applyButton.onclick=M(e=this._apply).call(e,this),this.saveButton=document.createElement(\"div\"),this.saveButton.className=\"vis-button vis-save\",this.saveButton.innerText=\"save\",this.saveButton.onclick=M(e=this._save).call(e,this),this.loadButton=document.createElement(\"div\"),this.loadButton.className=\"vis-button vis-load\",this.loadButton.innerText=\"load last\",this.loadButton.onclick=M(e=this._loadLast).call(e,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:\"_bindHammer\",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new ug(this.colorPickerCanvas),this.hammer.get(\"pinch\").set({enable:!0}),this.hammer.on(\"hammer.input\",function(t){t.isFirst&&e._moveSelector(t)}),this.hammer.on(\"tap\",function(t){e._moveSelector(t)}),this.hammer.on(\"panstart\",function(t){e._moveSelector(t)}),this.hammer.on(\"panmove\",function(t){e._moveSelector(t)}),this.hammer.on(\"panend\",function(t){e._moveSelector(t)})}},{key:\"_generateHueCircle\",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext(\"2d\");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,o=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,r),this.centerCoordinates={x:.5*o,y:.5*r},this.r=.49*o;for(var s,a=2*Math.PI/360,l=1/this.r,h=0;h<360;h++)for(n=0;n<this.r;n++)e=this.centerCoordinates.x+n*Math.sin(a*h),i=this.centerCoordinates.y+n*Math.cos(a*h),s=Eg(.002777777777777778*h,n*l,1),t.fillStyle=\"rgb(\"+s.r+\",\"+s.g+\",\"+s.b+\")\",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle=\"rgba(0,0,0,1)\",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,r)}this.generated=!0}},{key:\"_moveSelector\",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,t=t.center.y-e.top,e=.5*this.colorPickerDiv.clientHeight,n=.5*this.colorPickerDiv.clientWidth,i=i-n,t=t-e,o=Math.atan2(i,t),i=.98*Math.min(Math.sqrt(i*i+t*t),n),t=Math.cos(o)*i+e,e=Math.sin(o)*i+n;this.colorPickerSelector.style.top=t-.5*this.colorPickerSelector.clientHeight+\"px\",this.colorPickerSelector.style.left=e-.5*this.colorPickerSelector.clientWidth+\"px\";n=(n=o/(2*Math.PI))<0?1+n:n,t=i/this.r,e=Tg(this.color.r,this.color.g,this.color.b),e.h=n,e.s=t,o=Eg(e.h,e.s,e.v);o.a=this.color.a,this.color=o,this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\",this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}}]),Yg);function Yg(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;k(this,Yg),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}function Hg(){for(var t,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];if(i.length<1)throw new TypeError(\"Invalid arguments.\");return 1===i.length?document.createTextNode(i[0]):((t=document.createElement(i[0])).appendChild(Hg.apply(void 0,Pu(qu(i).call(i,1)))),t)}D(Ug,[{key:\"setOptions\",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if(\"string\"==typeof t)this.options.filter=t;else if(C(t))this.options.filter=t.join();else if(\"object\"===x(t)){if(null==t)throw new TypeError(\"options cannot be null\");void 0!==t.container&&(this.options.container=t.container),void 0!==E(t)&&(this.options.filter=E(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else\"boolean\"==typeof t?(this.options.filter=!0,e=t):\"function\"==typeof t&&(this.options.filter=t,e=!0);!1===E(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:\"setModuleOptions\",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:\"_create\",value:function(){this._clean(),this.changedOptions=[];var t,e=E(this.options),i=0,n=!1;for(t in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,t)&&(this.allowCreation=!1,n=!1,\"function\"==typeof e?n=(n=e(t,[]))||this._handleObject(this.configureOptions[t],[t],!0):!0!==e&&-1===P(e).call(e,t)||(n=!0),!1!==n&&(this.allowCreation=!0,0<i&&this._makeItem([]),this._makeHeader(t),this._handleObject(this.configureOptions[t],[t])),i++);this._makeButton(),this._push()}},{key:\"_push\",value:function(){this.wrapper=document.createElement(\"div\"),this.wrapper.className=\"vis-configuration-wrapper\",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:\"_clean\",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:\"_getValue\",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:\"_makeItem\",value:function(t){if(!0!==this.allowCreation)return 0;var e=document.createElement(\"div\");e.className=\"vis-configuration vis-config-item vis-config-s\"+t.length;for(var i=arguments.length,n=new Array(1<i?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return O(n).call(n,function(t){e.appendChild(t)}),this.domElements.push(e),this.domElements.length}},{key:\"_makeHeader\",value:function(t){var e=document.createElement(\"div\");e.className=\"vis-configuration vis-config-header\",e.innerText=t,this._makeItem([],e)}},{key:\"_makeLabel\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=document.createElement(\"div\");if(n.className=\"vis-configuration vis-config-label vis-config-s\"+e.length,!0===i){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(Hg(\"i\",\"b\",t))}else n.innerText=t+\":\";return n}},{key:\"_makeDropdown\",value:function(t,e,i){var n=document.createElement(\"select\"),o=(n.className=\"vis-configuration vis-config-select\",0);void 0!==e&&-1!==P(t).call(t,e)&&(o=P(t).call(t,e));for(var r=0;r<t.length;r++){var s=document.createElement(\"option\");s.value=t[r],r===o&&(s.selected=\"selected\"),s.innerText=t[r],n.appendChild(s)}var a=this,e=(n.onchange=function(){a._update(this.value,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,e,n)}},{key:\"_makeRange\",value:function(t,e,i){var n=t[0],o=t[1],r=t[2],s=t[3],a=document.createElement(\"input\");a.className=\"vis-configuration vis-config-range\";try{a.type=\"range\",a.min=o,a.max=r}catch(t){}a.step=s;var s=\"\",l=0,h=(void 0!==e?(e<0&&1.2*e<o?(a.min=Math.ceil(1.2*e),l=a.min,s=\"range increased\"):e/1.2<o&&(a.min=Math.ceil(e/1.2),l=a.min,s=\"range increased\"),r<1.2*e&&1!==r&&(a.max=Math.ceil(1.2*e),l=a.max,s=\"range increased\"),a.value=e):a.value=n,document.createElement(\"input\")),u=(h.className=\"vis-configuration vis-config-rangeinput\",h.value=a.value,this),o=(a.onchange=function(){h.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){h.value=this.value},this._makeLabel(i[i.length-1],i)),r=this._makeItem(i,o,a,h);\"\"!==s&&this.popupHistory[r]!==l&&(this.popupHistory[r]=l,this._setupPopup(s,r))}},{key:\"_makeButton\",value:function(){var t,e=this;!0===this.options.showButton&&((t=document.createElement(\"div\")).className=\"vis-configuration vis-config-button\",t.innerText=\"generate options\",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className=\"vis-configuration vis-config-button hover\"},t.onmouseout=function(){t.className=\"vis-configuration vis-config-button\"},this.optionsContainer=document.createElement(\"div\"),this.optionsContainer.className=\"vis-configuration vis-config-option-container\",this.domElements.push(this.optionsContainer),this.domElements.push(t))}},{key:\"_setupPopup\",value:function(t,e){var i,n=this;!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit&&((i=document.createElement(\"div\")).id=\"vis-configuration-popup\",i.className=\"vis-configuration-popup\",i.innerText=t,i.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:e})}},{key:\"_removePopup\",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:\"_showPopupIfNeeded\",value:function(){var t,e=this;void 0!==this.popupDiv.html&&(t=this.domElements[this.popupDiv.index].getBoundingClientRect(),this.popupDiv.html.style.left=t.left+\"px\",this.popupDiv.html.style.top=t.top-30+\"px\",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Wp(function(){e.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Wp(function(){e._removePopup()},1800))}},{key:\"_makeCheckbox\",value:function(t,e,i){var n=document.createElement(\"input\"),o=(n.type=\"checkbox\",n.className=\"vis-configuration vis-config-checkbox\",n.checked=t,void 0===e||(n.checked=e)===t||\"object\"===x(t)&&e===t.enabled||this.changedOptions.push({path:i,value:e}),this),t=(n.onchange=function(){o._update(this.checked,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,t,n)}},{key:\"_makeTextInput\",value:function(t,e,i){var n=document.createElement(\"input\"),o=(n.type=\"text\",n.className=\"vis-configuration vis-config-text\",(n.value=e)!==t&&this.changedOptions.push({path:i,value:e}),this),t=(n.onchange=function(){o._update(this.value,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,t,n)}},{key:\"_makeColorField\",value:function(t,e,i){var n=this,t=t[1],o=document.createElement(\"div\"),t=(\"none\"!==(e=void 0===e?t:e)?(o.className=\"vis-configuration vis-config-colorBlock\",o.style.backgroundColor=e):o.className=\"vis-configuration vis-config-colorBlock none\",e=void 0===e?t:e,o.onclick=function(){n._showColorPicker(e,o,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,t,o)}},{key:\"_showColorPicker\",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(t){t=\"rgba(\"+t.r+\",\"+t.g+\",\"+t.b+\",\"+t.a+\")\";e.style.backgroundColor=t,n._update(t,i)}),this.colorPicker.setCloseCallback(function(){e.onclick=function(){n._showColorPicker(t,e,i)}})}},{key:\"_handleObject\",value:function(t){var e,i,n,o,r,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],l=!1,h=E(this.options),u=!1;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l=!0,i=t[e],n=xg(s,e),\"function\"==typeof h&&!1===(l=h(e,s))&&!C(i)&&\"string\"!=typeof i&&\"boolean\"!=typeof i&&i instanceof Object&&(this.allowCreation=!1,l=this._handleObject(i,n,!0),this.allowCreation=!1===a),!1!==l)&&(u=!0,o=this._getValue(n),C(i)?this._handleArray(i,o,n):\"string\"==typeof i?this._makeTextInput(i,o,n):\"boolean\"==typeof i?this._makeCheckbox(i,o,n):i instanceof Object?this.hideOption(s,e,this.moduleOptions)||(void 0!==i.enabled?(o=xg(n,\"enabled\"),!0===(o=this._getValue(o))?(r=this._makeLabel(e,n,!0),this._makeItem(n,r),u=this._handleObject(i,n)||u):this._makeCheckbox(i,o,n)):(r=this._makeLabel(e,n,!0),this._makeItem(n,r),u=this._handleObject(i,n)||u)):console.error(\"dont know how to handle\",i,e,n));return u}},{key:\"_handleArray\",value:function(t,e,i){\"string\"==typeof t[0]&&\"color\"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):\"string\"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):\"number\"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e)&&this.changedOptions.push({path:i,value:Number(e)})}},{key:\"_update\",value:function(t,e){t=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit(\"configChange\",t),this.initialized=!0,this.parent.setOptions(t)}},{key:\"_constructOptions\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=i;t=\"false\"!==(t=\"true\"===t||t)&&t;for(var o=0;o<e.length;o++)\"global\"!==e[o]&&(void 0===n[e[o]]&&(n[e[o]]={}),o!==e.length-1?n=n[e[o]]:n[e[o]]=t);return i}},{key:\"_printOptions\",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Hg(\"pre\",\"const options = \"+Np(t,null,2)))}},{key:\"getOptions\",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]);var zg,yo=Ug,Ya=(D(Vg,[{key:\"setPosition\",value:function(t,e){this.x=pp(t),this.y=pp(e)}},{key:\"setText\",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:\"show\",value:function(t){var e,i,n,o,r,s,a;!0===(t=void 0===t?!0:t)?(t=this.frame.clientHeight,e=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,n=this.frame.parentNode.clientWidth,r=o=0,\"flip\"==this.overflowMethod?(a=!(s=!1),this.y-t<this.padding&&(a=!1),o=(s=this.x+e>n-this.padding?!0:s)?this.x-e:this.x,r=a?this.y-t:this.y):((r=(r=this.y-t)+t+this.padding>i?i-t-this.padding:r)<this.padding&&(r=this.padding),(o=(o=this.x)+e+this.padding>n?n-e-this.padding:o)<this.padding&&(o=this.padding)),this.frame.style.left=o+\"px\",this.frame.style.top=r+\"px\",this.frame.style.visibility=\"visible\",this.hidden=!1):this.hide()}},{key:\"hide\",value:function(){this.hidden=!0,this.frame.style.left=\"0\",this.frame.style.top=\"0\",this.frame.style.visibility=\"hidden\"}},{key:\"destroy\",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),Vg),Bg=!1,Gg=\"background: #FFeeee; color: #dd0000\",w=(D(Wg,null,[{key:\"validate\",value:function(t,e,i){Bg=!1;var n=zg=e;return void 0!==i&&(n=e[i]),Wg.parse(t,n,[]),Bg}},{key:\"parse\",value:function(t,e,i){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&Wg.check(n,t,e,i)}},{key:\"check\",value:function(t,e,i,n){var o,r,s;void 0!==i[t]||void 0!==i.__any__?(r=!0,void 0===i[o=t]&&void 0!==i.__any__&&(o=\"__any__\",r=\"object\"===Wg.getType(e[t])),s=i[o],r&&void 0!==s.__type__&&(s=s.__type__),Wg.checkFields(t,e,i,o,s,n)):Wg.getSuggestion(t,i,n)}},{key:\"checkFields\",value:function(e,t,i,n,o,r){function s(t){console.error(\"%c\"+t+Wg.printLocation(r,e),Gg)}var a=Wg.getType(t[e]),l=o[a];void 0!==l?\"array\"===Wg.getType(l)&&-1===P(l).call(l,t[e])?(s('Invalid option detected in \"'+e+'\". Allowed values are:'+Wg.print(l)+' not \"'+t[e]+'\". '),Bg=!0):\"object\"===a&&\"__any__\"!==n&&(r=xg(r,e),Wg.parse(t[e],i[n],r)):void 0===o.any&&(s('Invalid type received for \"'+e+'\". Expected: '+Wg.print(sc(o))+\". Received [\"+a+'] \"'+t[e]+'\"'),Bg=!0)}},{key:\"getType\",value:function(t){var e=x(t);return\"object\"===e?null===t?\"null\":t instanceof Boolean?\"boolean\":t instanceof Number?\"number\":t instanceof String?\"string\":C(t)?\"array\":t instanceof Date?\"date\":void 0!==t.nodeType?\"dom\":!0===t._isAMomentObject?\"moment\":\"object\":\"number\"===e?\"number\":\"boolean\"===e?\"boolean\":\"string\"===e?\"string\":void 0===e?\"undefined\":e}},{key:\"getSuggestion\",value:function(t,e,i){var n=Wg.findInOptions(t,e,i,!1),o=Wg.findInOptions(t,zg,[],!0),o=void 0!==n.indexMatch?\" in \"+Wg.printLocation(n.path,t,\"\")+'Perhaps it was incomplete? Did you mean: \"'+n.indexMatch+'\"?\\n\\n':o.distance<=4&&n.distance>o.distance?\" in \"+Wg.printLocation(n.path,t,\"\")+\"Perhaps it was misplaced? Matching option found at: \"+Wg.printLocation(o.path,o.closestMatch,\"\"):n.distance<=8?'. Did you mean \"'+n.closestMatch+'\"?'+Wg.printLocation(n.path,t):\". Did you mean one of these: \"+Wg.print(sc(e))+Wg.printLocation(i,t);console.error('%cUnknown option detected: \"'+t+'\"'+o,Gg),Bg=!0}},{key:\"findInOptions\",value:function(t,e,i){var n,o=3<arguments.length&&void 0!==arguments[3]&&arguments[3],r=1e9,s=\"\",a=[],l=t.toLowerCase(),h=void 0;for(n in e){var u,c;void 0!==e[n].__type__&&!0===o?r>(c=Wg.findInOptions(t,e[n],xg(i,n))).distance&&(s=c.closestMatch,a=c.path,r=c.distance,h=c.indexMatch):(-1!==P(c=n.toLowerCase()).call(c,l)&&(h=n),r>(u=Wg.levenshteinDistance(t,n))&&(s=n,a=Dg(i),r=u))}return{closestMatch:s,path:a,distance:r,indexMatch:h}}},{key:\"printLocation\",value:function(t,e){for(var i=\"\\n\\n\"+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:\"Problem value found at: \\n\")+\"options = {\\n\",n=0;n<t.length;n++){for(var o=0;o<n+1;o++)i+=\" \";i+=t[n]+\": {\\n\"}for(var r=0;r<t.length+1;r++)i+=\" \";i+=e+\"\\n\";for(var s=0;s<t.length+1;s++){for(var a=0;a<t.length-s;a++)i+=\" \";i+=\"}\\n\"}return i+\"\\n\\n\"}},{key:\"print\",value:function(t){return Np(t).replace(/(\")|(\\[)|(\\])|(,\"__type__\")/g,\"\").replace(/(,)/g,\", \")}},{key:\"levenshteinDistance\",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;for(var i,n=[],o=0;o<=e.length;o++)n[o]=[o];for(i=0;i<=t.length;i++)n[0][i]=i;for(o=1;o<=e.length;o++)for(i=1;i<=t.length;i++)e.charAt(o-1)==t.charAt(i-1)?n[o][i]=n[o-1][i-1]:n[o][i]=Math.min(n[o-1][i-1]+1,Math.min(n[o][i-1]+1,n[o-1][i]+1));return n[e.length][t.length]}}]),Wg),xn=jg,g=Object.freeze({__proto__:null,Activator:cg,Alea:function(){for(var t,e,i,n,o,r,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return t=a.length?a:[uc()],e=Eu(function(){o=4022871197;for(var o,t=function(t){for(var e=t.toString(),i=0;i<e.length;i++){var n=.02519603282416938*(o+=e.charCodeAt(i));o=(n=(n-=o=n>>>0)*o)>>>0,o+=4294967296*(n-=o)}return 2.3283064365386963e-10*(o>>>0)},e=t(\" \"),i=t(\" \"),n=t(\" \"),r=0;r<arguments.length;r++)(e-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(e+=1),(i-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(i+=1),(n-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(n+=1);return[e,i,n]}(t),3),i=e[0],n=e[1],o=e[2],r=1,h.uint32=function(){return 4294967296*h()},h.fract53=function(){return h()+11102230246251565e-32*(2097152*h()|0)},h.algorithm=\"Alea\",h.seed=t,h.version=\"0.9\",h;function h(){var t=2091639*i+2.3283064365386963e-10*r;return i=n,n=o,o=t-(r=0|t)}},ColorPicker:xn,Configurator:yo,DELETE:sg,HSVToHex:Pg,HSVToRGB:Eg,Hammer:ug,Popup:Ya,RGBToHSV:Tg,RGBToHex:Cg,VALIDATOR_PRINT_STYLE:\"background: #FFeeee; color: #dd0000\",Validator:w,addClassName:function(t,e){var i=t.className.split(\" \"),e=e.split(\" \"),i=Uu(i).call(i,E(e).call(e,function(t){return!Ad(i).call(i,t)}));t.className=i.join(\" \")},addCssText:function(t,e){var i=Mg(t.style.cssText),e=Mg(e),i=ng(ng({},i),e);t.style.cssText=Og(i)},addEventListener:function(t,e,i,n){var o;t.addEventListener?(void 0===n&&(n=!1),\"mousewheel\"===e&&Ad(o=navigator.userAgent).call(o,\"Firefox\")&&(e=\"DOMMouseScroll\"),t.addEventListener(e,i,n)):t.attachEvent(\"on\"+e,i)},binarySearchCustom:function(t,e,i,n){for(var o=0,r=0,s=t.length-1;r<=s&&o<1e4;){var a=Math.floor((r+s)/2),l=t[a],l=e(void 0===n?l[i]:l[i][n]);if(0==l)return a;-1==l?r=a+1:s=a-1,o++}return-1},binarySearchValue:function(t,e,i,n,o){var r,s,a,l,h=0,u=0,c=t.length-1;for(o=null!=o?o:function(t,e){return t==e?0:t<e?-1:1};u<=c&&h<1e4;){if(l=Math.floor(.5*(c+u)),r=t[Math.max(0,l-1)][i],s=t[l][i],a=t[Math.min(t.length-1,l+1)][i],0==o(s,e))return l;if(o(r,e)<0&&0<o(s,e))return\"before\"==n?Math.max(0,l-1):l;if(o(s,e)<0&&0<o(a,e))return\"before\"==n?l:Math.min(t.length-1,l+1);o(s,e)<0?u=l+1:c=l-1,h++}return-1},bridgeObject:Rg,copyAndExtendArray:xg,copyArray:Dg,deepExtend:wg,deepObjectAssign:lg,easingFunctions:{linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},equalArray:function(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},extend:_,fillIfDefined:function t(e,i){var n,o,r,s=2<arguments.length&&void 0!==arguments[2]&&arguments[2];for(n in e)void 0!==i[n]&&(null===i[n]||\"object\"!==x(i[n])?_g(e,i,n,s):(o=e[n],r=i[n],bg(o)&&bg(r)&&t(o,r,s)))},forEach:function(t,e){if(C(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e(t[o],o,t)},getAbsoluteLeft:function(t){return t.getBoundingClientRect().left},getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:function(t){return t.getBoundingClientRect().top},getScrollBarWidth:function(){var t=document.createElement(\"p\"),e=(t.style.width=\"100%\",t.style.height=\"200px\",document.createElement(\"div\")),i=(e.style.position=\"absolute\",e.style.top=\"0px\",e.style.left=\"0px\",e.style.visibility=\"hidden\",e.style.width=\"200px\",e.style.height=\"150px\",e.style.overflow=\"hidden\",e.appendChild(t),document.body.appendChild(e),t.offsetWidth),t=(e.style.overflow=\"scroll\",t.offsetWidth);return i==t&&(t=e.clientWidth),document.body.removeChild(e),i-t},getTarget:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},getType:kg,hasParent:function(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},hexToHSV:Ig,hexToRGB:Sg,insertSort:function(t,e){for(var i=0;i<t.length;i++){for(var n=t[i],o=void 0,o=i;0<o&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[o]=n}return t},isDate:function(t){if(t instanceof Date)return!0;if(yg(t)){if(dg.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:vg,isObject:bg,isString:yg,isValidHex:Ag,isValidRGB:Lg,isValidRGBA:Ng,mergeOptions:function(t,e,i){function n(t){return null!=t}function o(t){return null!==t&&\"object\"===x(t)}var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(!o(t))throw new Error(\"Parameter mergeTarget must be an object\");if(!o(e))throw new Error(\"Parameter options must be an object\");if(!n(i))throw new Error(\"Parameter option must have a value\");if(!o(r))throw new Error(\"Parameter globalOptions must be an object\");var s=e[i],r=o(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return;return 1}(r)?r[i]:void 0,a=r?r.enabled:void 0;if(void 0!==s)if(\"boolean\"==typeof s)o(t[i])||(t[i]={}),t[i].enabled=s;else{if(null===s&&!o(t[i])){if(!n(r))return;t[i]=Pp(r)}if(o(s)){var l=!0,s=(void 0!==s.enabled?l=s.enabled:void 0!==a&&(l=r.enabled),t),a=e,r=i;o(s[r])||(s[r]={});var h,u=a[r],c=s[r];for(h in u)Object.prototype.hasOwnProperty.call(u,h)&&(c[h]=u[h]);t[i].enabled=l}}},option:a,overrideOpacity:function(t,e){var i;return Ad(t).call(t,\"rgba\")?t:Ad(t).call(t,\"rgb\")?\"rgba(\"+(i=t.substr(P(t).call(t,\"(\")+1).replace(\")\",\"\").split(\",\"))[0]+\",\"+i[1]+\",\"+i[2]+\",\"+e+\")\":null==(i=Sg(t))?t:\"rgba(\"+i.r+\",\"+i.g+\",\"+i.b+\",\"+e+\")\"},parseColor:function(t,e){var i,n,o;return yg(t)?!0===Ag(i=Lg(i=t)?Cg((n=T(n=i.substr(4).substr(0,i.length-5).split(\",\")).call(n,function(t){return pp(t)}))[0],n[1],n[2]):i)?(o={h:(n=Ig(i)).h,s:.8*n.s,v:Math.min(1,1.02*n.v)},{background:i,border:n=Pg((n={h:n.h,s:Math.min(1,1.25*n.s),v:.8*n.v}).h,n.s,n.v),highlight:{background:o=Pg(o.h,o.s,o.v),border:n},hover:{background:o,border:n}}):{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}:e?{background:t.background||e.background,border:t.border||e.border,highlight:yg(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:yg(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:yg(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:yg(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:function(t){(t=t||window.event)&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:ag,recursiveDOMDelete:function t(e){if(e)for(;!0===e.hasChildNodes();){var i=e.firstChild;i&&(t(i),e.removeChild(i))}},removeClassName:function(t,e){var i=t.className.split(\" \"),n=e.split(\" \"),i=E(i).call(i,function(t){return!Ad(n).call(n,t)});t.className=i.join(\" \")},removeCssText:function(t,e){var i,n=Mg(t.style.cssText),o=Mg(e);for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&delete n[i];t.style.cssText=Og(n)},removeEventListener:function(t,e,i,n){var o;t.removeEventListener?(void 0===n&&(n=!1),\"mousewheel\"===e&&Ad(o=navigator.userAgent).call(o,\"Firefox\")&&(e=\"DOMMouseScroll\"),t.removeEventListener(e,i,n)):t.detachEvent(\"on\"+e,i)},selectiveBridgeObject:function(t,e){if(null===e||\"object\"!==x(e))return null;for(var i=Pp(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&\"object\"==x(e[t[n]])&&(i[t[n]]=Rg(e[t[n]]));return i},selectiveDeepExtend:function(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(C(i))throw new TypeError(\"Arrays are not supported by deepExtend\");for(var o=0;o<t.length;o++){var r=t[o];if(Object.prototype.hasOwnProperty.call(i,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?wg(e[r],i[r],!1,n):_g(e,i,r,n);else{if(C(i[r]))throw new TypeError(\"Arrays are not supported by deepExtend\");_g(e,i,r,n)}}return e},selectiveExtend:function(t,e){if(!C(t))throw new Error(\"Array with property names expected as first argument\");for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];for(var r=0,s=n;r<s.length;r++)for(var a=s[r],l=0;l<t.length;l++){var h=t[l];a&&Object.prototype.hasOwnProperty.call(a,h)&&(e[h]=a[h])}return e},selectiveNotDeepExtend:function(t,e,i){var n,o=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(C(i))throw new TypeError(\"Arrays are not supported by deepExtend\");for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&!Ad(t).call(t,n))if(i[n]&&i[n].constructor===Object)void 0===e[n]&&(e[n]={}),e[n].constructor===Object?wg(e[n],i[n]):_g(e,i,n,o);else if(C(i[n])){e[n]=[];for(var r=0;r<i[n].length;r++)e[n].push(i[n][r])}else _g(e,i,n,o);return e},throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}},toArray:Ra,topMost:function(t,e){C(e)||(e=[e]);var i,n=og(t);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o){for(var r=o[e[0]],s=1;s<e.length;s++)r=r&&r[e[s]];if(void 0!==r)break}}}catch(t){n.e(t)}finally{n.f()}return r},updateProperty:function(t,e,i){return t[e]!==i&&(t[e]=i,!0)}});function Wg(){k(this,Wg)}function Vg(t,e){k(this,Vg),this.container=t,this.overflowMethod=e||\"cap\",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement(\"div\"),this.frame.className=\"vis-tooltip\",this.container.appendChild(this.frame)}function Ug(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:function(){return!1};k(this,Ug),this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},vd(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new jg(n),this.wrapper=void 0}function Xg(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function qg(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var i=0;i<t[e].redundant.length;i++)t[e].redundant[i].parentNode.removeChild(t[e].redundant[i]);t[e].redundant=[]}}function $g(t){Xg(t),qg(t),Xg(t)}function Zg(t,e,i){var n;return e.hasOwnProperty(t)?0<e[t].redundant.length?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElementNS(\"http://www.w3.org/2000/svg\",t),i.appendChild(n)):(n=document.createElementNS(\"http://www.w3.org/2000/svg\",t),e[t]={used:[],redundant:[]},i.appendChild(n)),e[t].used.push(n),n}function Kg(t,e,i,n){var o;return e.hasOwnProperty(t)?0<e[t].redundant.length?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElement(t),void 0!==n?i.insertBefore(o,n):i.appendChild(o)):(o=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(o,n):i.appendChild(o)),e[t].used.push(o),o}function Jg(t,e,i,n,o,r){var s;return\"circle\"==i.style?((s=Zg(\"circle\",n,o)).setAttributeNS(null,\"cx\",t),s.setAttributeNS(null,\"cy\",e),s.setAttributeNS(null,\"r\",.5*i.size)):((s=Zg(\"rect\",n,o)).setAttributeNS(null,\"x\",t-.5*i.size),s.setAttributeNS(null,\"y\",e-.5*i.size),s.setAttributeNS(null,\"width\",i.size),s.setAttributeNS(null,\"height\",i.size)),void 0!==i.styles&&s.setAttributeNS(null,\"style\",i.styles),s.setAttributeNS(null,\"class\",i.className+\" vis-point\"),r&&(i=Zg(\"text\",n,o),r.xOffset&&(t+=r.xOffset),r.yOffset&&(e+=r.yOffset),r.content&&(i.textContent=r.content),r.className&&i.setAttributeNS(null,\"class\",r.className+\" vis-label\"),i.setAttributeNS(null,\"x\",t),i.setAttributeNS(null,\"y\",e)),s}function Qg(t,e,i,n,o,r,s,a){0!=n&&(n<0&&(e-=n*=-1),(r=Zg(\"rect\",r,s)).setAttributeNS(null,\"x\",t-.5*i),r.setAttributeNS(null,\"y\",e),r.setAttributeNS(null,\"width\",i),r.setAttributeNS(null,\"height\",n),r.setAttributeNS(null,\"class\",o),a)&&r.setAttributeNS(null,\"style\",a)}function tv(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||\"en\":\"en\"}catch(t){return\"en\"}}fe=Object.freeze({__proto__:null,cleanupElements:qg,drawBar:Qg,drawPoint:Jg,getDOMElement:Kg,getNavigatorLanguage:tv,getSVGElement:Zg,prepareElements:Xg,resetElements:$g});function A(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}var ev={},xa={get exports(){return ev},set exports(t){ev=t}},iv={},kn=hp,nv=({get exports(){return iv},set exports(t){iv=t}}.exports=kn,xa.exports=iv,t(ev)),ov={},b={get exports(){return ov},set exports(t){ov=t}},rv={},Fa={get exports(){return rv},set exports(t){rv=t}},ao=(p({target:\"Object\",stat:!0},{setPrototypeOf:vo}),c.Object.setPrototypeOf),sv=(Fa.exports=ao,b.exports=rv,t(ov)),av={},f={get exports(){return av},set exports(t){av=t}},lv={},Dn=Iu,hv=({get exports(){return lv},set exports(t){lv=t}}.exports=Dn,f.exports=lv,t(av));function uv(t,e){var i;return(uv=sv?hv(i=sv).call(i):function(t,e){return t.__proto__=e,t})(t,e)}function cv(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=nv(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),bh(t,\"prototype\",{writable:!1}),e&&uv(t,e)}function dv(t,e){if(e&&(\"object\"===x(e)||\"function\"==typeof e))return e;if(void 0!==e)throw new TypeError(\"Derived constructors may only return object or undefined\");return A(t)}var pv={},Ei={get exports(){return pv},set exports(t){pv=t}},mv={},Aa=v,fv=({get exports(){return mv},set exports(t){mv=t}}.exports=Aa,Ei.exports=mv,t(pv));function L(t){var e;return(L=sv?hv(e=fv).call(e):function(t){return t.__proto__||fv(t)})(t)}var gv,vv,yv,bv={},Na={get exports(){return bv},set exports(t){bv=t}},_v={};function wv(t){return gv.exports=wv=\"function\"==typeof vv&&\"symbol\"==typeof yv?function(t){return typeof t}:function(t){return t&&\"function\"==typeof vv&&t.constructor===vv&&t!==vv.prototype?\"symbol\":typeof t},gv.exports.__esModule=!0,gv.exports.default=gv.exports,wv(t)}vv=_h,yv=qh,(gv={get exports(){return _v},set exports(t){_v=t}}).exports=wv,gv.exports.__esModule=!0,gv.exports.default=gv.exports;function kv(t,e){this.stopped=t,this.result=e}function xv(t,e,i){function n(t){return r&&Zv(r,\"normal\",t),new kv(!0,t)}function o(t){return d?(Gv(t),f?g(t[0],t[1],n):g(t[0],t[1])):f?g(t,n):g(t)}var r,s,a,l,h,u,c=i&&i.that,d=!(!i||!i.AS_ENTRIES),p=!(!i||!i.IS_RECORD),m=!(!i||!i.IS_ITERATOR),f=!(!i||!i.INTERRUPTED),g=zv(e,c);if(p)r=t.iterator;else if(m)r=t;else{if(!(i=$v(t)))throw Kv(Wv(t)+\" is not iterable\");if(Vv(i)){for(s=0,a=Uv(t);s<a;s++)if((l=o(t[s]))&&Xv(Jv,l))return l;return new kv(!1)}r=qv(t,i)}for(h=(p?t:r).next;!(u=Bv(h,r)).done;){try{l=o(u.value)}catch(t){Zv(r,\"throw\",t)}if(\"object\"==typeof l&&l&&Xv(Jv,l))return l}return new kv(!1)}function Dv(t,e){var i,n,o=ty(vy,this),r=(iy?i=iy(ay(),o?ey(this):vy):(i=o?this:ny(vy),oy(i,sy,\"Error\")),void 0!==e&&oy(i,\"message\",function(t,e){return void 0===t?arguments.length<2?\"\":e:Qv(t)}(e)),o=Dv,r=(e=i).stack,n=1,Yv&&(Hv?Hv(e,o):Fv(e,\"stack\",jv(r,n))),2<arguments.length&&(o=i,Ev(e=arguments[2]))&&\"cause\"in e&&Pv(o,\"cause\",e.cause),[]);return ry(t,ly,{that:r}),oy(i,\"errors\",r),i}var Sv={},o={get exports(){return Sv},set exports(t){Sv=t}},Cv={},Va=Lu,Tv=({get exports(){return Cv},set exports(t){Cv=t}}.exports=Va,o.exports=Cv,{}),Hn={get exports(){return Tv},set exports(t){Tv=t}},Mv={},La={get exports(){return Mv},set exports(t){Mv=t}},Ov=j,No=go,xn=Pi,yo=me,Ev=ce,Pv=ki,Iv=Error,Av=r(\"\".replace),Ya=String(Iv(\"zxcasd\").stack),Lv=/\\n\\s*at [^:]*:[^\\n]*/,Nv=Lv.test(Ya),Rv=ri,w=!e(function(){var t=Error(\"a\");return!(\"stack\"in t)||(Object.defineProperty(t,\"stack\",Rv(1,7)),7!==t.stack)}),Fv=ki,jv=function(t,e){if(Nv&&\"string\"==typeof t&&!Iv.prepareStackTrace)for(;e--;)t=Av(t,Lv,\"\");return t},Yv=w,Hv=Error.captureStackTrace,zv=ui,Bv=De,Gv=wt,Wv=Dt,Vv=Mo,Uv=pi,Xv=d,qv=Lo,$v=Ao,Zv=To,Kv=TypeError,Jv=kv.prototype,Qv=yt,_=p,ty=d,ey=m,iy=vo,ny=Kn,oy=ki,a=ri,ry=xv,sy=gt(\"toStringTag\"),ay=Error,ly=[].push;if(iy)iy(Dv,ay);else for(var hy=Dv,uy=ay,cy={name:!0},dy=No(uy),py=yo.f,my=xn.f,fy=0;fy<dy.length;fy++){var gy=dy[fy];Ov(hy,gy)||cy&&Ov(cy,gy)||py(hy,gy,my(uy,gy))}var vy=Dv.prototype=ny(ay.prototype,{constructor:a(1,Dv),message:a(1,\"\"),name:a(1,\"AggregateError\")});_({global:!0,constructor:!0,arity:2},{AggregateError:Dv});function yy(t){t=My(t),Ey&&t&&!t[Py]&&Oy(t,Py,{configurable:!0,get:function(){return this}})}function by(t,e){if(Iy(e,t))return t;throw Ay(\"Incorrect invocation\")}function _y(t){if(Ly(t))return t;throw Ry(Ny(t)+\" is not a constructor\")}function wy(t,e){return void 0===(t=Fy(t).constructor)||Yy(t=Fy(t)[Hy])?e:jy(t)}function ky(t){return function(){i0(t)}}function xy(t){i0(t.data)}function Dy(t){zy.postMessage(Jy(t),Cy.protocol+\"//\"+Cy.host)}function Sy(){this.head=null,this.tail=null}var Cy,Ty,Ra=\"undefined\"!=typeof process&&\"process\"==vt(process),My=xt,Oy=Cs,Ey=h,Py=gt(\"species\"),Iy=d,Ay=TypeError,Ly=oe,Ny=Dt,Ry=TypeError,Fy=wt,jy=_y,Yy=dt,Hy=gt(\"species\"),kn=/(?:ipad|iphone|ipod).*applewebkit/i.test(Lt),zy=s,By=Li,xa=ui,Gy=l,Wy=j,Fa=e,Vy=be,Uy=y,Xy=_t,qy=up,ao=kn,b=Ra,Dn=zy.setImmediate,f=zy.clearImmediate,$y=zy.process,Zy=zy.Dispatch,Ky=zy.Function,v=zy.MessageChannel,Jy=zy.String,Qy=0,t0={},e0=\"onreadystatechange\",i0=(Fa(function(){Cy=zy.location}),function(t){var e;Wy(t0,t)&&(e=t0[t],delete t0[t],e())}),Va=(Dn&&f||(Dn=function(t){qy(arguments.length,1);var e=Gy(t)?t:Ky(t),i=Uy(arguments,1);return t0[++Qy]=function(){By(e,void 0,i)},Ty(Qy),Qy},f=function(t){delete t0[t]},b?Ty=function(t){$y.nextTick(ky(t))}:Zy&&Zy.now?Ty=function(t){Zy.now(ky(t))}:v&&!ao?(Ei=(Aa=new v).port2,Aa.port1.onmessage=xy,Ty=xa(Ei.postMessage,Ei)):zy.addEventListener&&Gy(zy.postMessage)&&!zy.importScripts&&Cy&&\"file:\"!==Cy.protocol&&!Fa(Dy)?(Ty=Dy,zy.addEventListener(\"message\",xy,!1)):Ty=e0 in Xy(\"script\")?function(t){Vy.appendChild(Xy(\"script\"))[e0]=function(){Vy.removeChild(this),i0(t)}}:function(t){setTimeout(ky(t),0)}),{set:Dn,clear:f});Sy.prototype={add:function(t){var t={item:t,next:null},e=this.tail;e?e.next=t:this.head=t,this.tail=t},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};function n0(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}function o0(t){var i,n;this.promise=new t(function(t,e){if(void 0!==i||void 0!==n)throw D0(\"Bad Promise constructor\");i=t,n=e}),this.resolve=x0(i),this.reject=x0(n)}var r0,s0,a0,l0,h0,u0,o=Sy,go=/ipad|iphone|ipod/i.test(Lt)&&\"undefined\"!=typeof Pebble,Ya=/web0s(?!.*chrome)/i.test(Lt),w=s,m=ui,vo=Pi.f,c0=Va.set,yo=o,xn=kn,a=go,_=Ya,d0=Ra,oe=w.MutationObserver||w.WebKitMutationObserver,be=w.document,p0=w.process,y=w.Promise,b=vo(w,\"queueMicrotask\"),ao=b&&b.value,Aa=(ao||(l0=new yo,h0=function(){var t,e;for(d0&&(t=p0.domain)&&t.exit();e=l0.get();)try{e()}catch(t){throw l0.head&&u0(),t}t&&t.enter()},u0=xn||d0||_||!oe||!be?!a&&y&&y.resolve?((v=y.resolve(void 0)).constructor=y,a0=m(v.then,v),function(){a0(h0)}):d0?function(){p0.nextTick(h0)}:(c0=m(c0,w),function(){c0(h0)}):(r0=!0,s0=be.createTextNode(\"\"),new oe(h0).observe(s0,{characterData:!0}),function(){s0.data=r0=!r0}),ao=function(t){l0.head||u0(),l0.add(t)}),ao),xa=s.Promise,Ei=\"object\"==typeof Deno&&Deno&&\"object\"==typeof Deno.version,Fa=!Ei&&!Ra&&\"object\"==typeof window&&\"object\"==typeof document,Dn=s,m0=xa,f=l,Pi=zi,f0=ko,kn=gt,g0=Fa,v0=Ei,y0=jt,b0=m0&&m0.prototype,_0=kn(\"species\"),w0=!1,k0=f(Dn.PromiseRejectionEvent),go={CONSTRUCTOR:Pi(\"Promise\",function(){var t=f0(m0),e=t!==String(m0);if(!e&&66===y0)return!0;if(!b0.catch||!b0.finally)return!0;if(!y0||y0<51||!/native code/.test(t)){var t=new m0(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((t.constructor={})[_0]=i,!(w0=t.then(function(){})instanceof i))return!0}return!e&&(g0||v0)&&!k0}),REJECTION_EVENT:k0,SUBCLASSING:w0},Ya={},x0=St,D0=TypeError;Ya.f=function(t){return new o0(t)};function S0(t,e){var i,n,o,r,s=e.value,a=1==e.state,l=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{l?(a||(2===e.rejection&&(r=e,P0(F0,E0,function(){var t=r.facade;O0?$0.emit(\"rejectionHandled\",t):ib(\"rejectionhandled\",t,r.value)})),e.rejection=1),!0===l?i=s:(c&&c.enter(),i=l(s),c&&(c.exit(),o=!0)),i===t.promise?u(X0(\"Promise-chain cycle\")):(n=tb(i))?P0(n,i,h,u):h(i)):u(s)}catch(t){c&&!o&&c.exit(),u(t)}}function C0(t,e){return _b(t),wb(e)&&e.constructor===t?e:((0,(t=kb.f(t)).resolve)(e),t.promise)}var T0,M0,vo=p,O0=Ra,E0=s,P0=De,b=ro,yo=xo,xn=yy,I0=St,A0=l,L0=ce,N0=by,R0=wy,F0=Va.set,j0=Aa,Y0=n0,H0=o,_=u,a=xa,y=Ya,z0=\"Promise\",v=go.CONSTRUCTOR,B0=go.REJECTION_EVENT,G0=_.getterFor(z0),W0=_.set,m=a&&a.prototype,V0=a,U0=m,X0=E0.TypeError,q0=E0.document,$0=E0.process,Z0=y.f,K0=Z0,J0=!!(q0&&q0.createEvent&&E0.dispatchEvent),Q0=\"unhandledrejection\",tb=function(t){var e;return!(!L0(t)||!A0(e=t.then))&&e},eb=function(i,o){i.notified||(i.notified=!0,j0(function(){for(var t,n,e=i.reactions;t=e.get();)S0(t,i);i.notified=!1,o&&!i.rejection&&(n=i,P0(F0,E0,function(){var t,e=n.facade,i=n.value;if(nb(n)&&(t=Y0(function(){O0?$0.emit(\"unhandledRejection\",i,e):ib(Q0,e,i)}),n.rejection=O0||nb(n)?2:1,t.error))throw t.value}))}))},ib=function(t,e,i){var n;J0?((n=q0.createEvent(\"Event\")).promise=e,n.reason=i,n.initEvent(t,!1,!0),E0.dispatchEvent(n)):n={promise:e,reason:i},!B0&&(e=E0[\"on\"+t])?e(n):t===Q0&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}(\"Unhandled promise rejection\",i)},nb=function(t){return 1!==t.rejection&&!t.parent},ob=function(e,i,n){return function(t){e(i,t,n)}},rb=function(t,e,i){t.done||(t.done=!0,(t=i?i:t).value=e,t.state=2,eb(t,!0))},sb=function(i,t,e){if(!i.done){i.done=!0,e&&(i=e);try{if(i.facade===t)throw X0(\"Promise can't be resolved itself\");var n=tb(t);n?j0(function(){var e={done:!1};try{P0(n,t,ob(sb,e,i),ob(rb,e,i))}catch(t){rb(e,t,i)}}):(i.value=t,i.state=1,eb(i,!1))}catch(t){rb({done:!1},t,i)}}},ab=(v&&(U0=(V0=function(t){N0(this,U0),I0(t),P0(T0,this);var e=G0(this);try{t(ob(sb,e),ob(rb,e))}catch(t){rb(e,t)}}).prototype,(T0=function(t){W0(this,{type:z0,done:!1,notified:!1,parent:!1,reactions:new H0,rejection:!1,state:0,value:void 0})}).prototype=b(U0,\"then\",function(t,e){var i=G0(this),n=Z0(R0(this,V0));return i.parent=!0,n.ok=!A0(t)||t,n.fail=A0(e)&&e,n.domain=O0?$0.domain:void 0,0==i.state?i.reactions.add(n):j0(function(){S0(n,i)}),n.promise}),M0=function(){var t=new T0,e=G0(t);this.promise=t,this.resolve=ob(sb,e),this.reject=ob(rb,e)},y.f=Z0=function(t){return t===V0||void 0===t?new M0:K0(t)}),vo({global:!0,constructor:!0,wrap:!0,forced:v},{Promise:V0}),yo(V0,z0,!1,!0),xn(z0),xa),w=go.CONSTRUCTOR||!hs(function(t){ab.all(t).then(void 0,function(){})}),lb=De,hb=St,ub=Ya,cb=n0,db=xv,be=(p({target:\"Promise\",stat:!0,forced:w},{all:function(t){var a=this,e=ub.f(a),l=e.resolve,h=e.reject,i=cb(function(){var n=hb(a.resolve),o=[],r=0,s=1;db(t,function(t){var e=r++,i=!1;s++,lb(n,a,t).then(function(t){i||(i=!0,o[e]=t,--s)||l(o)},h)}),--s||l(o)});return i.error&&h(i.value),e.promise}}),p),pb=(xa&&xa.prototype,be({target:\"Promise\",proto:!0,forced:go.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),De),mb=St,fb=Ya,gb=n0,vb=xv,yb=(p({target:\"Promise\",stat:!0,forced:w},{race:function(t){var i=this,n=fb.f(i),o=n.reject,e=gb(function(){var e=mb(i.resolve);vb(t,function(t){pb(e,i,t).then(n.resolve,o)})});return e.error&&o(e.value),n.promise}}),De),bb=Ya,_b=(p({target:\"Promise\",stat:!0,forced:go.CONSTRUCTOR},{reject:function(t){var e=bb.f(this);return yb(e.reject,void 0,t),e.promise}}),wt),wb=ce,kb=Ya,oe=p,xb=xa,ao=go.CONSTRUCTOR,Db=C0,Sb=xt(\"Promise\"),Cb=!ao,Tb=(oe({target:\"Promise\",stat:!0,forced:!0},{resolve:function(t){return Db(Cb&&this===Sb?xb:this,t)}}),De),Mb=St,Ob=Ya,Eb=n0,Pb=xv,Ib=(p({target:\"Promise\",stat:!0,forced:w},{allSettled:function(t){var a=this,e=Ob.f(a),l=e.resolve,i=e.reject,n=Eb(function(){var n=Mb(a.resolve),o=[],r=0,s=1;Pb(t,function(t){var e=r++,i=!1;s++,Tb(n,a,t).then(function(t){i||(i=!0,o[e]={status:\"fulfilled\",value:t},--s)||l(o)},function(t){i||(i=!0,o[e]={status:\"rejected\",reason:t},--s)||l(o)})}),--s||l(o)});return n.error&&i(n.value),e.promise}}),De),Ab=St,Lb=xt,Nb=Ya,Rb=n0,Fb=xv,jb=\"No one promise resolved\",zi=(p({target:\"Promise\",stat:!0,forced:w},{any:function(t){var l=this,h=Lb(\"AggregateError\"),e=Nb.f(l),u=e.resolve,c=e.reject,i=Rb(function(){var n=Ab(l.resolve),o=[],r=0,s=1,a=!1;Fb(t,function(t){var e=r++,i=!1;s++,Ib(n,l,t).then(function(t){i||a||(a=!0,u(t))},function(t){i||a||(i=!0,o[e]=t,--s)||c(new h(o,jb))})}),--s||c(new h(o,jb))});return i.error&&c(i.value),e.promise}}),p),ko=e,Yb=xt,Hb=l,zb=wy,Bb=C0,Gb=xa&&xa.prototype,Fa=(zi({target:\"Promise\",proto:!0,real:!0,forced:!!xa&&ko(function(){Gb.finally.call({then:function(){}},function(){})})},{finally:function(e){var i=zb(this,Yb(\"Promise\")),t=Hb(e);return this.then(t?function(t){return Bb(i,e()).then(function(){return t})}:e,t?function(t){return Bb(i,e()).then(function(){throw t})}:e)}}),c.Promise),Wb=Ya,Vb=n0;p({target:\"Promise\",stat:!0,forced:!0},{try:function(t){var e=Wb.f(this),t=Vb(t);return(t.error?e.reject:e.resolve)(t.value),e.promise}});La.exports=Fa,Hn.exports=Mv;var Ub,Xb,qb,$b,Zb,Kb,Jb,Qb,t_,e_,i_,n_={},Ei={get exports(){return n_},set exports(t){n_=t}},o_={},kn=Nu;function r_(){Ub.exports=function(){return s},Ub.exports.__esModule=!0,Ub.exports.default=Ub.exports;var s={},t=Object.prototype,l=t.hasOwnProperty,h=qb||function(t,e,i){t[e]=i.value},e=\"function\"==typeof $b?$b:{},n=e.iterator||\"@@iterator\",i=e.asyncIterator||\"@@asyncIterator\",o=e.toStringTag||\"@@toStringTag\";function r(t,e,i){return qb(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{r({},\"\")}catch(t){r=function(t,e,i){return t[e]=i}}function a(t,e,i,n){var o,r,s,a,e=e&&e.prototype instanceof d?e:d,e=Zb(e.prototype),n=new w(n||[]);return h(e,\"_invoke\",{value:(o=t,r=i,s=n,a=\"suspendedStart\",function(t,e){if(\"executing\"===a)throw new Error(\"Generator is already running\");if(\"completed\"===a){if(\"throw\"===t)throw e;return x()}for(s.method=t,s.arg=e;;){var i=s.delegate;if(i){i=function t(e,i){var n=i.method,o=e.iterator[n];if(void 0===o)return i.delegate=null,\"throw\"===n&&e.iterator.return&&(i.method=\"return\",i.arg=void 0,t(e,i),\"throw\"===i.method)||\"return\"!==n&&(i.method=\"throw\",i.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),c;n=u(o,e.iterator,i.arg);if(\"throw\"===n.type)return i.method=\"throw\",i.arg=n.arg,i.delegate=null,c;o=n.arg;return o?o.done?(i[e.resultName]=o.value,i.next=e.nextLoc,\"return\"!==i.method&&(i.method=\"next\",i.arg=void 0),i.delegate=null,c):o:(i.method=\"throw\",i.arg=new TypeError(\"iterator result is not an object\"),i.delegate=null,c)}(i,s);if(i){if(i===c)continue;return i}}if(\"next\"===s.method)s.sent=s._sent=s.arg;else if(\"throw\"===s.method){if(\"suspendedStart\"===a)throw a=\"completed\",s.arg;s.dispatchException(s.arg)}else\"return\"===s.method&&s.abrupt(\"return\",s.arg);a=\"executing\";i=u(o,r,s);if(\"normal\"===i.type){if(a=s.done?\"completed\":\"suspendedYield\",i.arg===c)continue;return{value:i.arg,done:s.done}}\"throw\"===i.type&&(a=\"completed\",s.method=\"throw\",s.arg=i.arg)}})}),e}function u(t,e,i){try{return{type:\"normal\",arg:t.call(e,i)}}catch(t){return{type:\"throw\",arg:t}}}s.wrap=a;var c={};function d(){}function p(){}function m(){}var e={},f=(r(e,n,function(){return this}),Kb&&Kb(Kb(k([])))),g=(f&&f!==t&&l.call(f,n)&&(e=f),m.prototype=d.prototype=Zb(e));function v(t){var e;Jb(e=[\"next\",\"throw\",\"return\"]).call(e,function(e){r(t,e,function(t){return this._invoke(e,t)})})}function y(s,a){var e;h(this,\"_invoke\",{value:function(i,n){function t(){return new a(function(t,e){!function e(t,i,n,o){var r,t=u(s[t],s,i);if(\"throw\"!==t.type)return(i=(r=t.arg).value)&&\"object\"==Xb(i)&&l.call(i,\"__await\")?a.resolve(i.__await).then(function(t){e(\"next\",t,n,o)},function(t){e(\"throw\",t,n,o)}):a.resolve(i).then(function(t){r.value=t,n(r)},function(t){return e(\"throw\",t,n,o)});o(t.arg)}(i,n,t,e)})}return e=e?e.then(t,t):t()}})}function b(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 _(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:\"root\"}],Jb(t).call(t,b,this),this.reset(!0)}function k(e){if(e){var i,t=e[n];if(t)return t.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length))return i=-1,(t=function t(){for(;++i<e.length;)if(l.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:x}}function x(){return{value:void 0,done:!0}}return h(g,\"constructor\",{value:p.prototype=m,configurable:!0}),h(m,\"constructor\",{value:p,configurable:!0}),p.displayName=r(m,o,\"GeneratorFunction\"),s.isGeneratorFunction=function(t){t=\"function\"==typeof t&&t.constructor;return!!t&&(t===p||\"GeneratorFunction\"===(t.displayName||t.name))},s.mark=function(t){return Qb?Qb(t,m):(t.__proto__=m,r(t,o,\"GeneratorFunction\")),t.prototype=Zb(g),t},s.awrap=function(t){return{__await:t}},v(y.prototype),r(y.prototype,i,function(){return this}),s.AsyncIterator=y,s.async=function(t,e,i,n,o){void 0===o&&(o=t_);var r=new y(a(t,e,i,n),o);return s.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},v(g),r(g,o,\"Generator\"),r(g,n,function(){return this}),r(g,\"toString\",function(){return\"[object Generator]\"}),s.keys=function(t){var e,i=Object(t),n=[];for(e in i)n.push(e);return e_(n).call(n),function t(){for(;n.length;){var e=n.pop();if(e in i)return t.value=e,t.done=!1,t}return t.done=!0,t}},s.values=k,w.prototype={constructor:w,reset:function(t){var e;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,Jb(e=this.tryEntries).call(e,_),!t)for(var i in this)\"t\"===i.charAt(0)&&l.call(this,i)&&!isNaN(+i_(i).call(i,1))&&(this[i]=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(i){if(this.done)throw i;var n=this;function t(t,e){return r.type=\"throw\",r.arg=i,n.next=t,e&&(n.method=\"next\",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],r=o.completion;if(\"root\"===o.tryLoc)return t(\"end\");if(o.tryLoc<=this.prev){var s=l.call(o,\"catchLoc\"),a=l.call(o,\"finallyLoc\");if(s&&a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!a)throw new Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;0<=i;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&l.call(n,\"finallyLoc\")&&this.prev<n.finallyLoc){var o=n;break}}var r=(o=o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return r.type=t,r.arg=e,o?(this.method=\"next\",this.next=o.finallyLoc,c):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),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),_(i),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var i,n,o=this.tryEntries[e];if(o.tryLoc===t)return\"throw\"===(i=o.completion).type&&(n=i.arg,_(o)),n}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,e,i){return this.delegate={iterator:k(t),resultName:e,nextLoc:i},\"next\"===this.method&&(this.arg=void 0),c}},s}({get exports(){return o_},set exports(t){o_=t}}).exports=kn,Ei.exports=o_,Ub=Na,Xb=_v.default,qb=vh,$b=_h,Zb=ev,Kb=pv,Jb=Sv,Qb=ov,t_=Tv,e_=n_,i_=au,Ub.exports=r_,Ub.exports.__esModule=!0,Ub.exports.default=Ub.exports;var f=bv(),s_=f;try{regeneratorRuntime=f}catch(F){\"object\"==typeof globalThis?globalThis.regeneratorRuntime=f:Function(\"r\",\"regeneratorRuntime = r\")(f)}function a_(h){return function(t,e,i,n){p_(e);var o=m_(t),r=f_(o),s=g_(o),a=h?s-1:0,l=h?-1:1;if(i<2)for(;;){if(a in r){n=r[a],a+=l;break}if(a+=l,h?a<0:s<=a)throw v_(\"Reduce of empty array with no initial value\")}for(;h?0<=a:a<s;a+=l)a in r&&(n=e(n,r[a],a,o));return n}}function l_(t,e,i,n,o,r,s,a){for(var l,h,u=o,c=0,d=!!s&&T_(s,a);c<n;)c in i&&(l=d?d(i[c],c,e):i[c],0<r&&D_(l)?(h=S_(l),u=l_(t,e,l,h,u,r-1)-1):(C_(u+1),t[u]=l),u++),c++;return u}function h_(t){X_(t,Q_,{value:{objectID:\"O\"+t1++,weakData:{}}})}function u_(i,t,e){var n,r,s,o=-1!==i.indexOf(\"Map\"),a=-1!==i.indexOf(\"Weak\"),l=o?\"set\":\"add\",h=n1[i],u=h&&h.prototype,c={};m1&&h1(h)&&(a||u.forEach&&!r1(function(){(new h).entries().next()}))?(r=(n=t(function(t,e){f1(l1(t,r),{type:i,collection:new h}),null!=e&&a1(e,t[l],{that:t,AS_ENTRIES:o})})).prototype,s=g1(i),p1([\"add\",\"clear\",\"delete\",\"forEach\",\"get\",\"has\",\"set\",\"keys\",\"values\",\"entries\"],function(n){var o=\"add\"==n||\"set\"==n;n in u&&(!a||\"clear\"!=n)&&s1(r,n,function(t,e){var i=s(this).collection;return o||!a||u1(t)?(i=i[n](0===t?0:t,e),o?this:i):\"get\"==n&&void 0})}),a||d1(r,\"size\",{configurable:!0,get:function(){return s(this).collection.size}})):(n=e.getConstructor(t,i,o,l),o1.enable()),c1(n,i,!1,!0),c[i]=n,i1({global:!0,forced:!0},c),a||e.setStrong(n,i,o)}function c_(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:v1(t,n,e[n],i)}var d_={},Dn={get exports(){return d_},set exports(t){d_=t}},p_=St,m_=mt,f_=Oi,g_=pi,v_=TypeError,y_=[a_(!1),a_(!0)][0],Pi=(p({target:\"Array\",proto:!0,forced:!Ra&&79<jt&&jt<83||!Au(\"reduce\")},{reduce:function(t){var e=arguments.length;return y_(this,t,e,1<e?arguments[1]:void 0)}}),iu(\"Array\").reduce),b_=d,__=Pi,w_=Array.prototype,k_=(Dn.exports=function(t){var e=t.reduce;return t===w_||b_(w_,t)&&e===w_.reduce?__:e},t(d_)),x_={},Va={get exports(){return x_},set exports(t){x_=t}},D_=bo,S_=pi,C_=fh,T_=ui,M_=l_,O_=St,E_=mt,P_=pi,I_=Os,Aa=(p({target:\"Array\",proto:!0},{flatMap:function(t){var e,i=E_(this),n=P_(i);return O_(t),(e=I_(i,0)).length=M_(e,i,i,n,0,1,t,1<arguments.length?arguments[1]:void 0),e}}),iu(\"Array\").flatMap),A_=d,L_=Aa,N_=Array.prototype,R_=(Va.exports=function(t){var e=t.flatMap;return t===N_||A_(N_,t)&&e===N_.flatMap?L_:e},t(x_)),F_={},o={get exports(){return F_},set exports(t){F_=t}},j_={},_={get exports(){return j_},set exports(t){j_=t}},a=e(function(){var t;\"function\"==typeof ArrayBuffer&&(t=new ArrayBuffer(8),Object.isExtensible(t))&&Object.defineProperty(t,\"a\",{value:8})}),m=e,Y_=ce,H_=vt,z_=a,B_=Object.isExtensible,b=m(function(){B_(1)})||z_?function(t){return!!Y_(t)&&(!z_||\"ArrayBuffer\"!=H_(t))&&(!B_||B_(t))}:B_,y=!e(function(){return Object.isExtensible(Object.preventExtensions({}))}),G_=p,W_=r,vo=Si,V_=ce,U_=j,X_=me.f,q_=n,$_=_o,Z_=b,K_=y,J_=!1,Q_=ft(\"meta\"),t1=0,e1=_.exports={enable:function(){e1.enable=function(){},J_=!0;var o=q_.f,r=W_([].splice),t={};t[Q_]=1,o(t).length&&(q_.f=function(t){for(var e=o(t),i=0,n=e.length;i<n;i++)if(e[i]===Q_){r(e,i,1);break}return e},G_({target:\"Object\",stat:!0,forced:!0},{getOwnPropertyNames:$_.f}))},fastKey:function(t,e){if(!V_(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!U_(t,Q_)){if(!Z_(t))return\"F\";if(!e)return\"E\";h_(t)}return t[Q_].objectID},getWeakData:function(t,e){if(!U_(t,Q_)){if(!Z_(t))return!0;if(!e)return!1;h_(t)}return t[Q_].weakData},onFreeze:function(t){return K_&&J_&&Z_(t)&&!U_(t,Q_)&&h_(t),t}},i1=(vo[Q_]=!0,p),n1=s,o1=j_,r1=e,s1=ki,a1=xv,l1=by,h1=l,u1=ce,c1=xo,d1=me.f,p1=ut.forEach,m1=h,f1=u.set,g1=u.getterFor,v1=ro,y1=Kn,b1=Cs,_1=ui,w1=by,k1=dt,x1=xv,D1=So,S1=Co,C1=yy,T1=h,M1=j_.fastKey,O1=u.set,E1=u.getterFor,v={getConstructor:function(t,i,n,o){function r(t,e,i){var n,o=l(t),r=s(t,e);return r?r.value=i:(o.last=r={index:n=M1(e,!0),key:e,value:i,previous:e=o.last,next:void 0,removed:!1},o.first||(o.first=r),e&&(e.next=r),T1?o.size++:t.size++,\"F\"!==n&&(o.index[n]=r)),t}function s(t,e){var i,t=l(t),n=M1(e);if(\"F\"!==n)return t.index[n];for(i=t.first;i;i=i.next)if(i.key==e)return i}var t=t(function(t,e){w1(t,a),O1(t,{type:i,index:y1(null),first:void 0,last:void 0,size:0}),T1||(t.size=0),k1(e)||x1(e,t[o],{that:t,AS_ENTRIES:n})}),a=t.prototype,l=E1(i);return c_(a,{clear:function(){for(var t=l(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,T1?t.size=0:this.size=0},delete:function(t){var e,i,n=l(this),t=s(this,t);return t&&(e=t.next,i=t.previous,delete n.index[t.index],t.removed=!0,i&&(i.next=e),e&&(e.previous=i),n.first==t&&(n.first=e),n.last==t&&(n.last=i),T1?n.size--:this.size--),!!t},forEach:function(t){for(var e,i=l(this),n=_1(t,1<arguments.length?arguments[1]:void 0);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),c_(a,n?{get:function(t){t=s(this,t);return t&&t.value},set:function(t,e){return r(this,0===t?0:t,e)}}:{add:function(t){return r(this,t=0===t?0:t,t)}}),T1&&b1(a,\"size\",{configurable:!0,get:function(){return l(this).size}}),t},setStrong:function(t,e,i){var n=e+\" Iterator\",o=E1(e),r=E1(n);D1(t,e,function(t,e){O1(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=r(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?S1(\"keys\"==e?i.key:\"values\"==e?i.value:[i.key,i.value],!1):(t.target=void 0,S1(void 0,!0))},i?\"entries\":\"values\",!i,!0),C1(e)}};u_(\"Map\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v);o.exports=c.Map;var P1=t(F_),I1={},yo={get exports(){return I1},set exports(t){I1=t}};u_(\"Set\",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v);function A1(t,e){var i=t.length,n=B1(i/2);if(i<8){for(var o,r,s=t,a=e,l=s.length,h=1;h<l;){for(o=s[r=h];r&&0<a(s[r-1],o);)s[r]=s[--r];r!==h++&&(s[r]=o)}return s}for(var u=t,c=A1(z1(t,0,n),e),d=A1(z1(t,n),e),p=e,m=c.length,f=d.length,g=0,v=0;g<m||v<f;)u[g+v]=g<m&&v<f?p(c[g],d[v])<=0?c[g++]:d[v++]:g<m?c[g++]:d[v++];return u}yo.exports=c.Set;var L1=t(I1),N1={},R1=({get exports(){return N1},set exports(t){N1=t}}.exports=$a,t(N1)),F1={},xn={get exports(){return F1},set exports(t){F1=t}},j1={},be=Lo,Y1=({get exports(){return j1},set exports(t){j1=t}}.exports=be,xn.exports=j1,t(F1)),H1={},go={get exports(){return H1},set exports(t){H1=t}},z1=Ss,B1=Math.floor,ao=A1,oe=Lt.match(/firefox\\/(\\d+)/i),De=!!oe&&+oe[1],w=/MSIE|Trident/.test(Lt),zi=Lt.match(/AppleWebKit\\/(\\d+)\\./),xa=!!zi&&+zi[1],ko=p,Ya=r,G1=St,W1=mt,V1=pi,U1=Ru,X1=yt,La=e,q1=ao,Fa=Au,$1=De,Z1=w,K1=jt,J1=xa,Q1=[],tw=Ya(Q1.sort),ew=Ya(Q1.push),Hn=La(function(){Q1.sort(void 0)}),kn=La(function(){Q1.sort(null)}),Ei=Fa(\"sort\"),iw=!La(function(){if(K1)return K1<70;if(!($1&&3<$1)){if(Z1)return!0;if(J1)return J1<603;for(var t,e,i,n=\"\",o=65;o<76;o++){switch(t=String.fromCharCode(o),o){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(i=0;i<47;i++)Q1.push({k:t+i,v:e})}for(Q1.sort(function(t,e){return e.v-t.v}),i=0;i<Q1.length;i++)t=Q1[i].k.charAt(0),n.charAt(n.length-1)!==t&&(n+=t);return\"DGBEFHACIJK\"!==n}}),Na=(ko({target:\"Array\",proto:!0,forced:Hn||!kn||!Ei||!iw},{sort:function(t){void 0!==t&&G1(t);var e=W1(this);if(iw)return void 0===t?tw(e):tw(e,t);for(var i,n,o=[],r=V1(e),s=0;s<r;s++)s in e&&ew(o,e[s]);for(q1(o,(n=t,function(t,e){return void 0===e?-1:void 0===t?1:void 0!==n?+n(t,e)||0:X1(t)>X1(e)?1:-1})),i=V1(o),s=0;s<i;)e[s]=o[s++];for(;s<r;)U1(e,s++);return e}}),iu(\"Array\").sort),nw=d,ow=Na,rw=Array.prototype,sw=(go.exports=function(t){var e=t.sort;return t===rw||nw(rw,t)&&e===rw.sort?ow:e},t(H1)),aw={},f={get exports(){return aw},set exports(t){aw=t}},lw=ut.some,Oi=(p({target:\"Array\",proto:!0,forced:!Au(\"some\")},{some:function(t){return lw(this,t,1<arguments.length?arguments[1]:void 0)}}),iu(\"Array\").some),hw=d,uw=Oi,cw=Array.prototype,dw=(f.exports=function(t){var e=t.some;return t===cw||hw(cw,t)&&e===cw.some?uw:e},t(aw)),pw={},Ra={get exports(){return pw},set exports(t){pw=t}},Pi=iu(\"Array\").keys,mw=qt,fw=j,gw=d,vw=Pi,yw=Array.prototype,bw={DOMTokenList:!0,NodeList:!0},_w=(Ra.exports=function(t){var e=t.keys;return t===yw||gw(yw,t)&&e===yw.keys||fw(bw,mw(t))?vw:e},t(pw)),ww={},Dn={get exports(){return ww},set exports(t){ww=t}},bo=iu(\"Array\").values,kw=qt,xw=j,Dw=d,Sw=bo,Cw=Array.prototype,Tw={DOMTokenList:!0,NodeList:!0},Mw=(Dn.exports=function(t){var e=t.values;return t===Cw||Dw(Cw,t)&&e===Cw.values||xw(Tw,kw(t))?Sw:e},t(ww)),Ow={},Aa={get exports(){return Ow},set exports(t){Ow=t}},Va=iu(\"Array\").entries,Ew=qt,Pw=j,Iw=d,Aw=Va,Lw=Array.prototype,Nw={DOMTokenList:!0,NodeList:!0},Rw=(Aa.exports=function(t){var e=t.entries;return t===Lw||Iw(Lw,t)&&e===Lw.entries||Pw(Nw,Ew(t))?Aw:e},t(Ow)),Fw={},a={get exports(){return Fw},set exports(t){Fw=t}},m=p,jw=Li,Yw=Ht,Hw=_y,zw=wt,Bw=ce,Gw=Kn,Si=e,Ww=xt(\"Reflect\",\"construct\"),Vw=Object.prototype,Uw=[].push,Xw=Si(function(){function t(){}return!(Ww(function(){},[],t)instanceof t)}),qw=!Si(function(){Ww(function(){})}),n=Xw||qw,_o=(m({target:\"Reflect\",stat:!0,forced:n,sham:n},{construct:function(t,e){Hw(t),zw(e);var i=arguments.length<3?t:Hw(arguments[2]);if(qw&&!Xw)return Ww(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return jw(Uw,n,e),new(jw(Yw,t,n))}n=i.prototype,i=Gw(Bw(n)?n:Vw),n=jw(t,i,e);return Bw(n)?n:i}}),c.Reflect.construct),N=(a.exports=_o,t(Fw));let $w;const Zw=new Uint8Array(16);function Kw(){if($w||($w=\"undefined\"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))return $w(Zw);throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\")}const Jw=[];for(let t=0;t<256;++t)Jw.push((t+256).toString(16).slice(1));var Qw={randomUUID:\"undefined\"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tk(t,e,i){if(Qw.randomUUID&&!e&&!t)return Qw.randomUUID();var n=(t=t||{}).random||(t.rng||Kw)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(let t=0;t<16;++t)e[i+t]=n[t];return e}return t=n,(Jw[t[0]]+Jw[t[1]]+Jw[t[2]]+Jw[t[3]]+\"-\"+Jw[t[4]]+Jw[t[5]]+\"-\"+Jw[t[6]]+Jw[t[7]]+\"-\"+Jw[t[8]]+Jw[t[9]]+\"-\"+Jw[t[10]]+Jw[t[11]]+Jw[t[12]]+Jw[t[13]]+Jw[t[14]]+Jw[t[15]]).toLowerCase()}function ek(e,t){var i,n=sc(e);return Wl&&(i=Wl(e),t&&(i=E(i).call(i,function(t){return Zl(e,t).enumerable})),n.push.apply(n,i)),n}function ik(e){for(var t=1;t<arguments.length;t++){var i,n=null!=arguments[t]?arguments[t]:{};t%2?O(i=ek(Object(n),!0)).call(i,function(t){S(e,t,n[t])}):sh?uh(e,sh(n)):O(i=ek(Object(n))).call(i,function(t){mh(e,t,Zl(n,t))})}return e}function nk(i){var n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))}}function ok(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?rk(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?rk(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function rk(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}D(hk,[{key:\"all\",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:\"start\",value:function(){return this._source.on(\"add\",this._listeners.add),this._source.on(\"remove\",this._listeners.remove),this._source.on(\"update\",this._listeners.update),this}},{key:\"stop\",value:function(){return this._source.off(\"add\",this._listeners.add),this._source.off(\"remove\",this._listeners.remove),this._source.off(\"update\",this._listeners.update),this}},{key:\"_transformItems\",value:function(t){var e;return k_(e=this._transformers).call(e,function(t,e){return e(t)},t)}},{key:\"_add\",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:\"_update\",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:\"_remove\",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]);var sk=hk,ak=(D(lk,[{key:\"filter\",value:function(e){return this._transformers.push(function(t){return E(t).call(t,e)}),this}},{key:\"map\",value:function(e){return this._transformers.push(function(t){return T(t).call(t,e)}),this}},{key:\"flatMap\",value:function(e){return this._transformers.push(function(t){return R_(t).call(t,e)}),this}},{key:\"to\",value:function(t){return new sk(this._source,this._transformers,t)}}]),lk);function lk(t){k(this,lk),S(this,\"_source\",void 0),S(this,\"_transformers\",[]),this._source=t}function hk(t,e,i){var n;k(this,hk),S(this,\"_source\",void 0),S(this,\"_transformers\",void 0),S(this,\"_target\",void 0),S(this,\"_listeners\",{add:M(n=this._add).call(n,this),remove:M(n=this._remove).call(n,this),update:M(n=this._update).call(n,this)}),this._source=t,this._transformers=e,this._target=i}function uk(t){return\"string\"==typeof t||\"number\"==typeof t}D(pk,[{key:\"setOptions\",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:\"destroy\",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,i=0;i<e.length;i++){var n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:\"replace\",value:function(t,e){var n=this,o=t[e];if(!o)throw new Error(\"Method \"+e+\" undefined\");t[e]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];n.queue({args:e,fn:o,context:this})}}},{key:\"queue\",value:function(t){\"function\"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:\"_flushIfNeeded\",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),0<this.queue.length&&\"number\"==typeof this.delay&&(this._timeout=Wp(function(){t.flush()},this.delay))}},{key:\"flush\",value:function(){var t;O(t=rd(t=this._queue).call(t,0)).call(t,function(t){t.fn.apply(t.context||t.fn,t.args||[])})}}],[{key:\"extend\",value:function(t,e){var i=new pk(e);if(void 0!==t.flush)throw new Error(\"Target object already has a property flush\");t.flush=function(){i.flush()};var n=[{name:\"flush\",original:void 0}];if(e&&e.replace)for(var o=0;o<e.replace.length;o++){var r=e.replace[o];n.push({name:r,original:t[r]}),i.replace(t,r)}return i._extended={object:t,methods:n},i}}]);var ck=pk,b=(D(dk,[{key:\"_trigger\",value:function(e,i,n){var t;if(\"*\"===e)throw new Error(\"Cannot trigger event *\");O(t=Uu(t=[]).call(t,Pu(this._subscribers[e]),Pu(this._subscribers[\"*\"]))).call(t,function(t){t(e,i,null!=n?n:null)})}},{key:\"on\",value:function(t,e){\"function\"==typeof e&&this._subscribers[t].push(e)}},{key:\"off\",value:function(t,e){this._subscribers[t]=E(t=this._subscribers[t]).call(t,function(t){return t!==e})}}]),dk);function dk(){k(this,dk),S(this,\"_subscribers\",{\"*\":[],add:[],remove:[],update:[]}),S(this,\"subscribe\",dk.prototype.on),S(this,\"unsubscribe\",dk.prototype.off)}function pk(t){k(this,pk),S(this,\"delay\",void 0),S(this,\"max\",void 0),S(this,\"_queue\",[]),S(this,\"_timeout\",null),S(this,\"_extended\",null),this.delay=null,this.max=1/0,this.setOptions(t)}D(fk,[{key:R1,value:s_.mark(function t(){var e,i,n;return s_.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ok(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return n=Eu(n.value,2),i=n[0],n=n[1],t.next=7,[i,n];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}},t,this,[[1,11,14,17]])})},{key:\"entries\",value:s_.mark(function t(){var e,i,n;return s_.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ok(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return n=Eu(n.value,2),i=n[0],n=n[1],t.next=7,[i,n];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}},t,this,[[1,11,14,17]])})},{key:\"keys\",value:s_.mark(function t(){var e,i;return s_.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ok(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return i=Eu(i.value,1),i=i[0],t.next=7,i;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}},t,this,[[1,11,14,17]])})},{key:\"values\",value:s_.mark(function t(){var e,i;return s_.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ok(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return i=Eu(i.value,2),i=i[1],t.next=7,i;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}},t,this,[[1,11,14,17]])})},{key:\"toIdArray\",value:function(){var t;return T(t=Pu(this._pairs)).call(t,function(t){return t[0]})}},{key:\"toItemArray\",value:function(){var t;return T(t=Pu(this._pairs)).call(t,function(t){return t[1]})}},{key:\"toEntryArray\",value:function(){return Pu(this._pairs)}},{key:\"toObjectMap\",value:function(){var t,e=Pp(null),i=ok(this._pairs);try{for(i.s();!(t=i.n()).done;){var n=Eu(t.value,2),o=n[0],r=n[1];e[o]=r}}catch(t){i.e(t)}finally{i.f()}return e}},{key:\"toMap\",value:function(){return new P1(this._pairs)}},{key:\"toIdSet\",value:function(){return new L1(this.toIdArray())}},{key:\"toItemSet\",value:function(){return new L1(this.toItemArray())}},{key:\"cache\",value:function(){return new fk(Pu(this._pairs))}},{key:\"distinct\",value:function(t){var e,i=new L1,n=ok(this._pairs);try{for(n.s();!(e=n.n()).done;){var o=Eu(e.value,2),r=o[0],s=o[1];i.add(t(s,r))}}catch(t){n.e(t)}finally{n.f()}return i}},{key:\"filter\",value:function(o){var r=this._pairs;return new fk(S({},R1,s_.mark(function t(){var e,i,n;return s_.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ok(r),t.prev=1,e.s();case 3:if((n=e.n()).done)t.next=10;else{if(n=Eu(n.value,2),i=n[0],n=n[1],o(n,i))return t.next=8,[i,n];t.next=8}break;case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),e.e(t.t0);case 15:return t.prev=15,e.f(),t.finish(15);case 18:case\"end\":return t.stop()}},t,null,[[1,12,15,18]])})))}},{key:\"forEach\",value:function(t){var e,i=ok(this._pairs);try{for(i.s();!(e=i.n()).done;){var n=Eu(e.value,2),o=n[0];t(n[1],o)}}catch(t){i.e(t)}finally{i.f()}}},{key:\"map\",value:function(o){var r=this._pairs;return new fk(S({},R1,s_.mark(function t(){var e,i,n;return s_.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ok(r),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return n=Eu(n.value,2),i=n[0],n=n[1],t.next=7,[i,o(n,i)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}},t,null,[[1,11,14,17]])})))}},{key:\"max\",value:function(t){var e=Y1(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=Eu(i.value,2),s=r[0],r=r[1],s=t(r,s);o<s&&(o=s,n=r)}return n}},{key:\"min\",value:function(t){var e=Y1(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=Eu(i.value,2),s=r[0],r=r[1],s=t(r,s);s<o&&(o=s,n=r)}return n}},{key:\"reduce\",value:function(t,e){var i,n=ok(this._pairs);try{for(n.s();!(i=n.n()).done;){var o=Eu(i.value,2),r=o[0];e=t(e,o[1],r)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:\"sort\",value:function(o){var e=this;return new fk(S({},R1,function(){var t;return Y1(sw(t=Pu(e._pairs)).call(t,function(t,e){var t=Eu(t,2),i=t[0],t=t[1],e=Eu(e,2),n=e[0],e=e[1];return o(t,e,i,n)}))}))}}]);var mk=fk;function fk(t){k(this,fk),S(this,\"_pairs\",void 0),this._pairs=t}cv(wk,b),vk=nk(wk),D(wk,[{key:\"idProp\",get:function(){return this._idProp}},{key:\"setOptions\",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=ck.extend(this,{replace:[\"add\",\"update\",\"remove\"]})),t.queue&&\"object\"===x(t.queue)&&this._queue.setOptions(t.queue)))}},{key:\"add\",value:function(t,e){var i,n=this,o=[];if(C(t)){var r=T(t).call(t,function(t){return t[n._idProp]});if(dw(r).call(r,function(t){return n._data.has(t)}))throw new Error(\"A duplicate id was found in the parameter array.\");for(var s=0,a=t.length;s<a;s++)i=this._addItem(t[s]),o.push(i)}else{if(!t||\"object\"!==x(t))throw new Error(\"Unknown dataType\");i=this._addItem(t),o.push(i)}return o.length&&this._trigger(\"add\",{items:o},e),o}},{key:\"update\",value:function(t,e){function i(t){var e,i,n=t[h];null!=n&&o._data.has(n)?(e=t,n=vd({},o._data.get(n)),i=o._updateItem(e),s.push(i),l.push(e),a.push(n)):(i=o._addItem(t),r.push(i))}var o=this,r=[],s=[],a=[],l=[],h=this._idProp;if(C(t))for(var n=0,u=t.length;n<u;n++)t[n]&&\"object\"===x(t[n])?i(t[n]):console.warn(\"Ignoring input item, which is not an object at index \"+n);else{if(!t||\"object\"!==x(t))throw new Error(\"Unknown dataType\");i(t)}return r.length&&this._trigger(\"add\",{items:r},e),s.length&&this._trigger(\"update\",{items:s,oldData:a,data:l},e),Uu(r).call(r,s)}},{key:\"updateOnly\",value:function(t,e){var n=this,t=(C(t)||(t=[t]),T(t=T(t).call(t,function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error(\"Updating non-existent items is not allowed.\");return{oldData:e,update:t}})).call(t,function(t){var e=t.oldData,t=t.update,i=e[n._idProp],t=ag(e,t);return n._data.set(i,t),{id:i,oldData:e,updatedData:t}}));return t.length?(t={items:T(t).call(t,function(t){return t.id}),oldData:T(t).call(t,function(t){return t.oldData}),data:T(t).call(t,function(t){return t.updatedData})},this._trigger(\"update\",t,e),t.items):[]}},{key:\"get\",value:function(t,e){var i,n,o=void 0,r=void 0,s=void 0,e=(s=uk(t)?(o=t,e):C(t)?(r=t,e):t)&&\"Object\"===s.returnType?\"Object\":\"Array\",a=s&&E(s),l=[],h=void 0;if(null!=o)(h=this._data.get(o))&&a&&!a(h)&&(h=void 0);else if(null!=r)for(var u=0,c=r.length;u<c;u++)null==(h=this._data.get(r[u]))||a&&!a(h)||l.push(h);else for(var d=0,p=(i=Pu(_w(t=this._data).call(t))).length;d<p;d++)n=i[d],null==(h=this._data.get(n))||a&&!a(h)||l.push(h);if(s&&s.order&&null==o&&this._sort(l,s.order),s&&s.fields){var m=s.fields;if(null!=o&&null!=h)h=this._filterFields(h,m);else for(var f=0,g=l.length;f<g;f++)l[f]=this._filterFields(l[f],m)}if(\"Object\"!=e)return null!=o?null!=(t=h)?t:null:l;for(var v={},y=0,b=l.length;y<b;y++){var _=l[y];v[_[this._idProp]]=_}return v}},{key:\"getIds\",value:function(t){var e=this._data,i=t&&E(t),t=t&&t.order,n=Pu(_w(e).call(e)),o=[];if(i)if(t){for(var r=[],s=0,a=n.length;s<a;s++){var l=n[s],l=this._data.get(l);null!=l&&i(l)&&r.push(l)}this._sort(r,t);for(var h=0,u=r.length;h<u;h++)o.push(r[h][this._idProp])}else for(var c=0,d=n.length;c<d;c++){var p=n[c],p=this._data.get(p);null!=p&&i(p)&&o.push(p[this._idProp])}else if(t){for(var m=[],f=0,g=n.length;f<g;f++){var v=n[f];m.push(e.get(v))}this._sort(m,t);for(var y=0,b=m.length;y<b;y++)o.push(m[y][this._idProp])}else for(var _=0,w=n.length;_<w;_++){var k=n[_],k=e.get(k);null!=k&&o.push(k[this._idProp])}return o}},{key:\"getDataSet\",value:function(){return this}},{key:\"forEach\",value:function(t,e){var i=e&&E(e),n=this._data,o=Pu(_w(n).call(n));if(e&&e.order)for(var r=this.get(e),s=0,a=r.length;s<a;s++){var l=r[s];t(l,l[this._idProp])}else for(var h=0,u=o.length;h<u;h++){var c=o[h],d=this._data.get(c);null==d||i&&!i(d)||t(d,c)}}},{key:\"map\",value:function(t,e){for(var i=e&&E(e),n=[],o=this._data,r=Pu(_w(o).call(o)),s=0,a=r.length;s<a;s++){var l=r[s],h=this._data.get(l);null==h||i&&!i(h)||n.push(t(h,l))}return e&&e.order&&this._sort(n,e.order),n}},{key:\"_filterFields\",value:function(i,t){return i&&k_(t=C(t)?t:sc(t)).call(t,function(t,e){return t[e]=i[e],t},{})}},{key:\"_sort\",value:function(t,e){if(\"string\"==typeof e){var i=e;sw(t).call(t,function(t,e){t=t[i],e=e[i];return e<t?1:t<e?-1:0})}else{if(\"function\"!=typeof e)throw new TypeError(\"Order must be a function or a string\");sw(t).call(t,e)}}},{key:\"remove\",value:function(t,e){for(var i=[],n=[],o=C(t)?t:[t],r=0,s=o.length;r<s;r++){var a,l=this._remove(o[r]);l&&null!=(a=l[this._idProp])&&(i.push(a),n.push(l))}return i.length&&this._trigger(\"remove\",{items:i,oldData:n},e),i}},{key:\"_remove\",value:function(t){var e;return uk(t)?e=t:t&&\"object\"===x(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)?(t=this._data.get(e)||null,this._data.delete(e),--this.length,t):null}},{key:\"clear\",value:function(t){for(var e,i=Pu(_w(e=this._data).call(e)),n=[],o=0,r=i.length;o<r;o++)n.push(this._data.get(i[o]));return this._data.clear(),this.length=0,this._trigger(\"remove\",{items:i,oldData:n},t),i}},{key:\"max\",value:function(t){var e,i,n=null,o=null,r=ok(Mw(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var s=i.value,a=s[t];\"number\"==typeof a&&(null==o||o<a)&&(n=s,o=a)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:\"min\",value:function(t){var e,i,n=null,o=null,r=ok(Mw(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var s=i.value,a=s[t];\"number\"==typeof a&&(null==o||a<o)&&(n=s,o=a)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:\"distinct\",value:function(t){for(var e=this._data,i=Pu(_w(e).call(e)),n=[],o=0,r=0,s=i.length;r<s;r++){for(var a=i[r],l=e.get(a)[t],h=!1,u=0;u<o;u++)if(n[u]==l){h=!0;break}h||void 0===l||(n[o]=l,o++)}return n}},{key:\"_addItem\",value:function(t){t=t,e=this._idProp,null==t[e]&&(t[e]=tk());var e=t,t=e[this._idProp];if(this._data.has(t))throw new Error(\"Cannot add item: item with id \"+t+\" already exists\");return this._data.set(t,e),++this.length,t}},{key:\"_updateItem\",value:function(t){var e=t[this._idProp];if(null==e)throw new Error(\"Cannot update item: item has no id (item: \"+Np(t)+\")\");var i=this._data.get(e);if(i)return this._data.set(e,ik(ik({},i),t)),e;throw new Error(\"Cannot update item: no item with id \"+e+\" found\")}},{key:\"stream\",value:function(o){var r,t;return o?(r=this._data,new mk(S({},R1,s_.mark(function t(){var e,i,n;return s_.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ok(o),t.prev=1,e.s();case 3:if((i=e.n()).done)t.next=11;else{if(i=i.value,null!=(n=r.get(i)))return t.next=9,[i,n];t.next=9}break;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),e.e(t.t0);case 16:return t.prev=16,e.f(),t.finish(16);case 19:case\"end\":return t.stop()}},t,null,[[1,13,16,19]])})))):new mk(S({},R1,M(t=Rw(this._data)).call(t,this._data)))}}]);var gk,vk,yk=wk,bk=(cv(_k,b),gk=nk(_k),D(_k,[{key:\"idProp\",get:function(){return this.getDataSet().idProp}},{key:\"setData\",value:function(t){var e,i;if(this._data&&(this._data.off&&this._data.off(\"*\",this._listener),e=this._data.getIds({filter:E(this._options)}),i=this._data.get(e),this._ids.clear(),this.length=0,this._trigger(\"remove\",{items:e,oldData:i})),null!=t){this._data=t;for(var n=this._data.getIds({filter:E(this._options)}),o=0,r=n.length;o<r;o++){var s=n[o];this._ids.add(s)}this.length=n.length,this._trigger(\"add\",{items:n})}else this._data=new yk;this._data.on&&this._data.on(\"*\",this._listener)}},{key:\"refresh\",value:function(){for(var t=this._data.getIds({filter:E(this._options)}),e=Pu(this._ids),i={},n=[],o=[],r=[],s=0,a=t.length;s<a;s++){var l=t[s];i[l]=!0,this._ids.has(l)||(n.push(l),this._ids.add(l))}for(var h=0,u=e.length;h<u;h++){var c=e[h],d=this._data.get(c);null==d?console.error(\"If you see this, report it please.\"):i[c]||(o.push(c),r.push(d),this._ids.delete(c))}this.length+=n.length-o.length,n.length&&this._trigger(\"add\",{items:n}),o.length&&this._trigger(\"remove\",{items:o,oldData:r})}},{key:\"get\",value:function(t,e){var i,n,o;return null==this._data?null:(i=null,e=uk(t)||C(t)?(i=t,e):t,t=vd({},this._options,e),n=E(this._options),o=e&&E(e),n&&o&&(t.filter=function(t){return n(t)&&o(t)}),null==i?this._data.get(t):this._data.get(i,t))}},{key:\"getIds\",value:function(t){var e,i;return this._data.length?(e=E(this._options),i=null!=t?E(t):null,this._data.getIds({filter:i?e?function(t){return e(t)&&i(t)}:i:e,order:t&&t.order})):[]}},{key:\"forEach\",value:function(t,e){var i,n,o,r;this._data&&(n=E(this._options),r=(o=e&&E(e))?n?function(t){return n(t)&&o(t)}:o:n,O(i=this._data).call(i,t,{filter:r,order:e&&e.order}))}},{key:\"map\",value:function(t,e){var i,n,o,r;return this._data?(n=E(this._options),r=(o=e&&E(e))?n?function(t){return n(t)&&o(t)}:o:n,T(i=this._data).call(i,t,{filter:r,order:e&&e.order})):[]}},{key:\"getDataSet\",value:function(){return this._data.getDataSet()}},{key:\"stream\",value:function(t){return this._data.stream(t||S({},R1,M(t=_w(this._ids)).call(t,this._ids)))}},{key:\"dispose\",value:function(){var t;null!=(t=this._data)&&t.off&&this._data.off(\"*\",this._listener);var e,i=\"This data view has already been disposed of.\",n={get:function(){throw new Error(i)},set:function(){throw new Error(i)},configurable:!1},o=ok(Zu(_k.prototype));try{for(o.s();!(e=o.n()).done;){var r=e.value;mh(this,r,n)}}catch(t){o.e(t)}finally{o.f()}}},{key:\"_onEvent\",value:function(t,e,i){if(e&&e.items&&this._data){var n=e.items,o=[],r=[],s=[],a=[],l=[],h=[];switch(t){case\"add\":for(var u=0,c=n.length;u<c;u++){var d=n[u];this.get(d)&&(this._ids.add(d),o.push(d))}break;case\"update\":for(var p=0,m=n.length;p<m;p++){var f=n[p];this.get(f)?this._ids.has(f)?(r.push(f),l.push(e.data[p]),a.push(e.oldData[p])):(this._ids.add(f),o.push(f)):this._ids.has(f)&&(this._ids.delete(f),s.push(f),h.push(e.oldData[p]))}break;case\"remove\":for(var g=0,v=n.length;g<v;g++){var y=n[g];this._ids.has(y)&&(this._ids.delete(y),s.push(y),h.push(e.oldData[g]))}}this.length+=o.length-s.length,o.length&&this._trigger(\"add\",{items:o},i),r.length&&this._trigger(\"update\",{items:r,oldData:a,data:l},i),s.length&&this._trigger(\"remove\",{items:s,oldData:h},i)}}}]),_k);function _k(t,e){var i;return k(this,_k),S(A(i=gk.call(this)),\"length\",0),S(A(i),\"_listener\",void 0),S(A(i),\"_data\",void 0),S(A(i),\"_ids\",new L1),S(A(i),\"_options\",void 0),i._options=e||{},i._listener=M(e=i._onEvent).call(e,A(i)),i.setData(t),i}function wk(t,e){var i;return k(this,wk),S(A(i=vk.call(this)),\"flush\",void 0),S(A(i),\"length\",void 0),S(A(i),\"_options\",void 0),S(A(i),\"_data\",void 0),S(A(i),\"_idProp\",void 0),S(A(i),\"_queue\",null),t&&!C(t)&&(e=t,t=[]),i._options=e||{},i._data=new P1,i.length=0,i._idProp=i._options.fieldId||\"id\",t&&t.length&&i.add(t),i.setOptions(e),i}var kk=\"undefined\"!=typeof window&&window.moment||q(),xk=t(q()),Dk={},y={get exports(){return Dk},set exports(t){Dk=t}},_={},Sk={},vo={get exports(){return Sk},set exports(t){Sk=t}},ki={};function Ck(){return{\"align-content\":!1,\"align-items\":!1,\"align-self\":!1,\"alignment-adjust\":!1,\"alignment-baseline\":!1,all:!1,\"anchor-point\":!1,animation:!1,\"animation-delay\":!1,\"animation-direction\":!1,\"animation-duration\":!1,\"animation-fill-mode\":!1,\"animation-iteration-count\":!1,\"animation-name\":!1,\"animation-play-state\":!1,\"animation-timing-function\":!1,azimuth:!1,\"backface-visibility\":!1,background:!0,\"background-attachment\":!0,\"background-clip\":!0,\"background-color\":!0,\"background-image\":!0,\"background-origin\":!0,\"background-position\":!0,\"background-repeat\":!0,\"background-size\":!0,\"baseline-shift\":!1,binding:!1,bleed:!1,\"bookmark-label\":!1,\"bookmark-level\":!1,\"bookmark-state\":!1,border:!0,\"border-bottom\":!0,\"border-bottom-color\":!0,\"border-bottom-left-radius\":!0,\"border-bottom-right-radius\":!0,\"border-bottom-style\":!0,\"border-bottom-width\":!0,\"border-collapse\":!0,\"border-color\":!0,\"border-image\":!0,\"border-image-outset\":!0,\"border-image-repeat\":!0,\"border-image-slice\":!0,\"border-image-source\":!0,\"border-image-width\":!0,\"border-left\":!0,\"border-left-color\":!0,\"border-left-style\":!0,\"border-left-width\":!0,\"border-radius\":!0,\"border-right\":!0,\"border-right-color\":!0,\"border-right-style\":!0,\"border-right-width\":!0,\"border-spacing\":!0,\"border-style\":!0,\"border-top\":!0,\"border-top-color\":!0,\"border-top-left-radius\":!0,\"border-top-right-radius\":!0,\"border-top-style\":!0,\"border-top-width\":!0,\"border-width\":!0,bottom:!1,\"box-decoration-break\":!0,\"box-shadow\":!0,\"box-sizing\":!0,\"box-snap\":!0,\"box-suppress\":!0,\"break-after\":!0,\"break-before\":!0,\"break-inside\":!0,\"caption-side\":!1,chains:!1,clear:!0,clip:!1,\"clip-path\":!1,\"clip-rule\":!1,color:!0,\"color-interpolation-filters\":!0,\"column-count\":!1,\"column-fill\":!1,\"column-gap\":!1,\"column-rule\":!1,\"column-rule-color\":!1,\"column-rule-style\":!1,\"column-rule-width\":!1,\"column-span\":!1,\"column-width\":!1,columns:!1,contain:!1,content:!1,\"counter-increment\":!1,\"counter-reset\":!1,\"counter-set\":!1,crop:!1,cue:!1,\"cue-after\":!1,\"cue-before\":!1,cursor:!1,direction:!1,display:!0,\"display-inside\":!0,\"display-list\":!0,\"display-outside\":!0,\"dominant-baseline\":!1,elevation:!1,\"empty-cells\":!1,filter:!1,flex:!1,\"flex-basis\":!1,\"flex-direction\":!1,\"flex-flow\":!1,\"flex-grow\":!1,\"flex-shrink\":!1,\"flex-wrap\":!1,float:!1,\"float-offset\":!1,\"flood-color\":!1,\"flood-opacity\":!1,\"flow-from\":!1,\"flow-into\":!1,font:!0,\"font-family\":!0,\"font-feature-settings\":!0,\"font-kerning\":!0,\"font-language-override\":!0,\"font-size\":!0,\"font-size-adjust\":!0,\"font-stretch\":!0,\"font-style\":!0,\"font-synthesis\":!0,\"font-variant\":!0,\"font-variant-alternates\":!0,\"font-variant-caps\":!0,\"font-variant-east-asian\":!0,\"font-variant-ligatures\":!0,\"font-variant-numeric\":!0,\"font-variant-position\":!0,\"font-weight\":!0,grid:!1,\"grid-area\":!1,\"grid-auto-columns\":!1,\"grid-auto-flow\":!1,\"grid-auto-rows\":!1,\"grid-column\":!1,\"grid-column-end\":!1,\"grid-column-start\":!1,\"grid-row\":!1,\"grid-row-end\":!1,\"grid-row-start\":!1,\"grid-template\":!1,\"grid-template-areas\":!1,\"grid-template-columns\":!1,\"grid-template-rows\":!1,\"hanging-punctuation\":!1,height:!0,hyphens:!1,icon:!1,\"image-orientation\":!1,\"image-resolution\":!1,\"ime-mode\":!1,\"initial-letters\":!1,\"inline-box-align\":!1,\"justify-content\":!1,\"justify-items\":!1,\"justify-self\":!1,left:!1,\"letter-spacing\":!0,\"lighting-color\":!0,\"line-box-contain\":!1,\"line-break\":!1,\"line-grid\":!1,\"line-height\":!1,\"line-snap\":!1,\"line-stacking\":!1,\"line-stacking-ruby\":!1,\"line-stacking-shift\":!1,\"line-stacking-strategy\":!1,\"list-style\":!0,\"list-style-image\":!0,\"list-style-position\":!0,\"list-style-type\":!0,margin:!0,\"margin-bottom\":!0,\"margin-left\":!0,\"margin-right\":!0,\"margin-top\":!0,\"marker-offset\":!1,\"marker-side\":!1,marks:!1,mask:!1,\"mask-box\":!1,\"mask-box-outset\":!1,\"mask-box-repeat\":!1,\"mask-box-slice\":!1,\"mask-box-source\":!1,\"mask-box-width\":!1,\"mask-clip\":!1,\"mask-image\":!1,\"mask-origin\":!1,\"mask-position\":!1,\"mask-repeat\":!1,\"mask-size\":!1,\"mask-source-type\":!1,\"mask-type\":!1,\"max-height\":!0,\"max-lines\":!1,\"max-width\":!0,\"min-height\":!0,\"min-width\":!0,\"move-to\":!1,\"nav-down\":!1,\"nav-index\":!1,\"nav-left\":!1,\"nav-right\":!1,\"nav-up\":!1,\"object-fit\":!1,\"object-position\":!1,opacity:!1,order:!1,orphans:!1,outline:!1,\"outline-color\":!1,\"outline-offset\":!1,\"outline-style\":!1,\"outline-width\":!1,overflow:!1,\"overflow-wrap\":!1,\"overflow-x\":!1,\"overflow-y\":!1,padding:!0,\"padding-bottom\":!0,\"padding-left\":!0,\"padding-right\":!0,\"padding-top\":!0,page:!1,\"page-break-after\":!1,\"page-break-before\":!1,\"page-break-inside\":!1,\"page-policy\":!1,pause:!1,\"pause-after\":!1,\"pause-before\":!1,perspective:!1,\"perspective-origin\":!1,pitch:!1,\"pitch-range\":!1,\"play-during\":!1,position:!1,\"presentation-level\":!1,quotes:!1,\"region-fragment\":!1,resize:!1,rest:!1,\"rest-after\":!1,\"rest-before\":!1,richness:!1,right:!1,rotation:!1,\"rotation-point\":!1,\"ruby-align\":!1,\"ruby-merge\":!1,\"ruby-position\":!1,\"shape-image-threshold\":!1,\"shape-outside\":!1,\"shape-margin\":!1,size:!1,speak:!1,\"speak-as\":!1,\"speak-header\":!1,\"speak-numeral\":!1,\"speak-punctuation\":!1,\"speech-rate\":!1,stress:!1,\"string-set\":!1,\"tab-size\":!1,\"table-layout\":!1,\"text-align\":!0,\"text-align-last\":!0,\"text-combine-upright\":!0,\"text-decoration\":!0,\"text-decoration-color\":!0,\"text-decoration-line\":!0,\"text-decoration-skip\":!0,\"text-decoration-style\":!0,\"text-emphasis\":!0,\"text-emphasis-color\":!0,\"text-emphasis-position\":!0,\"text-emphasis-style\":!0,\"text-height\":!0,\"text-indent\":!0,\"text-justify\":!0,\"text-orientation\":!0,\"text-overflow\":!0,\"text-shadow\":!0,\"text-space-collapse\":!0,\"text-transform\":!0,\"text-underline-position\":!0,\"text-wrap\":!0,top:!1,transform:!1,\"transform-origin\":!1,\"transform-style\":!1,transition:!1,\"transition-delay\":!1,\"transition-duration\":!1,\"transition-property\":!1,\"transition-timing-function\":!1,\"unicode-bidi\":!1,\"vertical-align\":!1,visibility:!1,\"voice-balance\":!1,\"voice-duration\":!1,\"voice-family\":!1,\"voice-pitch\":!1,\"voice-range\":!1,\"voice-rate\":!1,\"voice-stress\":!1,\"voice-volume\":!1,volume:!1,\"white-space\":!1,widows:!1,width:!0,\"will-change\":!1,\"word-break\":!0,\"word-spacing\":!0,\"word-wrap\":!0,\"wrap-flow\":!1,\"wrap-through\":!1,\"writing-mode\":!1,\"z-index\":!1}}var Tk=/javascript\\s*\\:/gim;ki.whiteList=Ck(),ki.getDefaultWhiteList=Ck,ki.onAttr=function(t,e,i){},ki.onIgnoreAttr=function(t,e,i){},ki.safeAttrValue=function(t,e){return Tk.test(e)?\"\":e};var Mk=function(t){return String.prototype.trim?t.trim():t.replace(/(^\\s*)|(\\s*$)/g,\"\")},Ok=function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\\s*$)/g,\"\")},Ek=ki,Pk=function(n,o){\";\"!==(n=Ok(n))[n.length-1]&&(n+=\";\");var t=n.length,r=!1,s=0,a=0,l=\"\";function e(){var t,e,i;r||-1!==(e=(t=Mk(n.slice(s,a))).indexOf(\":\"))&&(i=Mk(t.slice(0,e)),e=Mk(t.slice(e+1)),i)&&(i=o(s,l.length,i,e,t))&&(l+=i+\"; \"),s=a+1}for(;a<t;a++){var i=n[a];if(\"/\"===i&&\"*\"===n[a+1]){var h=n.indexOf(\"*/\",a+2);if(-1===h)break;s=(a=h+1)+1,r=!1}else\"(\"===i?r=!0:\")\"===i?r=!1:\";\"===i?r||e():\"\\n\"===i&&e()}return Mk(l)};function Ik(t){return null==t}function Ak(t){(t=function(t){var e,i={};for(e in t)i[e]=t[e];return i}(t||{})).whiteList=t.whiteList||Ek.whiteList,t.onAttr=t.onAttr||Ek.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Ek.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Ek.safeAttrValue,this.options=t}Ak.prototype.process=function(t){var e,l,h,u,c;return(t=(t=t||\"\").toString())?(e=this.options,l=e.whiteList,h=e.onAttr,u=e.onIgnoreAttr,c=e.safeAttrValue,Pk(t,function(t,e,i,n,o){var r,s=l[i],a=!1;if(!0===s?a=s:\"function\"==typeof s?a=s(n):s instanceof RegExp&&(a=s.test(n)),!0!==a&&(a=!1),n=c(i,n))return s={position:e,sourcePosition:t,source:o,isWhite:a},a?Ik(r=h(i,n,s))?i+\":\"+n:r:Ik(r=u(i,n,s))?void 0:r})):\"\"};var Lk,l=vo,Nk=void 0,Rk=ki,Fk=Ak;for(Lk in(Nk=l.exports=function(t,e){return new Fk(e).process(t)}).FilterCSS=Fk,Rk)Nk[Lk]=Rk[Lk];\"undefined\"!=typeof window&&(window.filterCSS=l.exports);var me={indexOf:function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var n,o;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\\s*)|(\\s*$)/g,\"\")},spaceIndex:function(t){t=/\\s|\\n|\\t/.exec(t);return t?t.index:-1}},h=Sk.FilterCSS,u=Sk.getDefaultWhiteList,jk=me;var Yk=new h;function Hk(t){return t.replace(zk,\"<\").replace(Bk,\">\")}var zk=/</g,Bk=/>/g,Gk=/\"/g,Wk=/"/g,Vk=/&#([a-zA-Z0-9]*);?/gim,Uk=/:?/gim,Xk=/&newline;?/gim,qk=/((j\\s*a\\s*v\\s*a|v\\s*b|l\\s*i\\s*v\\s*e)\\s*s\\s*c\\s*r\\s*i\\s*p\\s*t\\s*|m\\s*o\\s*c\\s*h\\s*a):/gi,$k=/e\\s*x\\s*p\\s*r\\s*e\\s*s\\s*s\\s*i\\s*o\\s*n\\s*\\(.*/gi,Zk=/u\\s*r\\s*l\\s*\\(.*/gi;function Kk(t){return t.replace(Gk,\""\")}function Jk(t){return t.replace(Wk,'\"')}function Qk(t){return t.replace(Vk,function(t,e){return\"x\"===e[0]||\"X\"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})}function tx(t){return t.replace(Uk,\":\").replace(Xk,\" \")}function ex(t){for(var e=\"\",i=0,n=t.length;i<n;i++)e+=t.charCodeAt(i)<32?\" \":t.charAt(i);return jk.trim(e)}function ix(t){return ex(t=tx(t=Qk(t=Jk(t))))}function nx(t){return Hk(t=Kk(t))}_.whiteList={a:[\"target\",\"href\",\"title\"],abbr:[\"title\"],address:[],area:[\"shape\",\"coords\",\"href\",\"alt\"],article:[],aside:[],audio:[\"autoplay\",\"controls\",\"crossorigin\",\"loop\",\"muted\",\"preload\",\"src\"],b:[],bdi:[\"dir\"],bdo:[\"dir\"],big:[],blockquote:[\"cite\"],br:[],caption:[],center:[],cite:[],code:[],col:[\"align\",\"valign\",\"span\",\"width\"],colgroup:[\"align\",\"valign\",\"span\",\"width\"],dd:[],del:[\"datetime\"],details:[\"open\"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:[\"color\",\"size\",\"face\"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:[\"src\",\"alt\",\"title\",\"width\",\"height\"],ins:[\"datetime\"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:[\"width\",\"border\",\"align\",\"valign\"],tbody:[\"align\",\"valign\"],td:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],tfoot:[\"align\",\"valign\"],th:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],thead:[\"align\",\"valign\"],tr:[\"rowspan\",\"align\",\"valign\"],tt:[],u:[],ul:[],video:[\"autoplay\",\"controls\",\"crossorigin\",\"loop\",\"muted\",\"playsinline\",\"poster\",\"preload\",\"src\",\"height\",\"width\"]},_.getDefaultWhiteList=function(){return{a:[\"target\",\"href\",\"title\"],abbr:[\"title\"],address:[],area:[\"shape\",\"coords\",\"href\",\"alt\"],article:[],aside:[],audio:[\"autoplay\",\"controls\",\"crossorigin\",\"loop\",\"muted\",\"preload\",\"src\"],b:[],bdi:[\"dir\"],bdo:[\"dir\"],big:[],blockquote:[\"cite\"],br:[],caption:[],center:[],cite:[],code:[],col:[\"align\",\"valign\",\"span\",\"width\"],colgroup:[\"align\",\"valign\",\"span\",\"width\"],dd:[],del:[\"datetime\"],details:[\"open\"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:[\"color\",\"size\",\"face\"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:[\"src\",\"alt\",\"title\",\"width\",\"height\"],ins:[\"datetime\"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:[\"width\",\"border\",\"align\",\"valign\"],tbody:[\"align\",\"valign\"],td:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],tfoot:[\"align\",\"valign\"],th:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],thead:[\"align\",\"valign\"],tr:[\"rowspan\",\"align\",\"valign\"],tt:[],u:[],ul:[],video:[\"autoplay\",\"controls\",\"crossorigin\",\"loop\",\"muted\",\"playsinline\",\"poster\",\"preload\",\"src\",\"height\",\"width\"]}},_.onTag=function(t,e,i){},_.onIgnoreTag=function(t,e,i){},_.onTagAttr=function(t,e,i){},_.onIgnoreTagAttr=function(t,e,i){},_.safeAttrValue=function(t,e,i,n){if(i=ix(i),\"href\"===e||\"src\"===e){if(\"#\"===(i=jk.trim(i)))return\"#\";if(\"http://\"!==i.substr(0,7)&&\"https://\"!==i.substr(0,8)&&\"mailto:\"!==i.substr(0,7)&&\"tel:\"!==i.substr(0,4)&&\"data:image/\"!==i.substr(0,11)&&\"ftp://\"!==i.substr(0,6)&&\"./\"!==i.substr(0,2)&&\"../\"!==i.substr(0,3)&&\"#\"!==i[0]&&\"/\"!==i[0])return\"\"}else if(\"background\"===e){if(qk.lastIndex=0,qk.test(i))return\"\"}else if(\"style\"===e){if($k.lastIndex=0,$k.test(i))return\"\";if(Zk.lastIndex=0,Zk.test(i)&&(qk.lastIndex=0,qk.test(i)))return\"\";!1!==n&&(i=(n=n||Yk).process(i))}return nx(i)},_.escapeHtml=Hk,_.escapeQuote=Kk,_.unescapeQuote=Jk,_.escapeHtmlEntities=Qk,_.escapeDangerHtml5Entities=tx,_.clearNonPrintableCharacter=ex,_.friendlyAttrValue=ix,_.escapeAttrValue=nx,_.onIgnoreTagStripAll=function(){return\"\"},_.StripTagBody=function(r,s){\"function\"!=typeof s&&(s=function(){});var a=!Array.isArray(r),l=[],h=!1;return{onIgnoreTag:function(t,e,i){var n,o;return a||-1!==jk.indexOf(r,t)?i.isClosing?(o=i.position+(n=\"[/removed]\").length,l.push([!1!==h?h:i.position,o]),h=!1,n):(h=h||i.position,\"[removed]\"):s(t,e,i)},remove:function(e){var i=\"\",n=0;return jk.forEach(l,function(t){i+=e.slice(n,t[0]),n=t[1]}),i+=e.slice(n)}}},_.stripCommentTag=function(t){for(var e=\"\",i=0;i<t.length;){var n=t.indexOf(\"\\x3c!--\",i);if(-1===n){e+=t.slice(i);break}e+=t.slice(i,n);n=t.indexOf(\"--\\x3e\",n);if(-1===n)break;i=n+3}return e},_.stripBlankChar=function(t){return t.split(\"\").filter(function(t){t=t.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)}).join(\"\")},_.cssFilter=Yk,_.getDefaultCSSWhiteList=u;var o={},ox=me;var rx=/[^a-zA-Z0-9\\\\_:.-]/gim;function sx(t){return'\"'===t[0]&&'\"'===t[t.length-1]||\"'\"===t[0]&&\"'\"===t[t.length-1]?t.substr(1,t.length-2):t}o.parseTag=function(t,e,i){var n,o,r,s=\"\",a=0,l=!1,h=!1,u=0,c=t.length,d=\"\";t:for(u=0;u<c;u++){var p=t.charAt(u);if(!1===l)\"<\"===p&&(l=u);else if(!1===h){if(\"<\"===p)s+=i(t.slice(a,u)),a=l=u;else if(\">\"===p||u===c-1)s+=i(t.slice(a,l)),o=n=t.slice(l,u+1),r=void 0,r=ox.spaceIndex(o),o=-1===r?o.slice(1,-1):o.slice(1,r+1),d=o=\"/\"===(o=\"/\"===(o=ox.trim(o).toLowerCase()).slice(0,1)?o.slice(1):o).slice(-1)?o.slice(0,-1):o,s+=e(l,s.length,d,n,\"</\"===n.slice(0,2)),a=u+1,l=!1;else if('\"'===p||\"'\"===p)for(var m=1,f=t.charAt(u-m);\"\"===f.trim()||\"=\"===f;){if(\"=\"===f){h=p;continue t}f=t.charAt(u-++m)}}else if(p===h){h=!1;continue}}return a<c&&(s+=i(t.substr(a))),s},o.parseAttr=function(t,i){var e=0,n=0,o=[],r=!1,s=t.length;function a(t,e){(t=(t=ox.trim(t)).replace(rx,\"\").toLowerCase()).length<1||(t=i(t,e||\"\"))&&o.push(t)}for(var l=0;l<s;l++){var h,u=t.charAt(l);if(!1!==r||\"=\"!==u)if(!1===r||l!==n)/\\s|\\n|\\t/.test(u)&&(t=t.replace(/\\s|\\n|\\t/g,\" \"),!1===r?-1===(h=function(t,e){for(;e<t.length;e++){var i=t[e];if(\" \"!==i)return\"=\"===i?e:-1}}(t,l))?(a(ox.trim(t.slice(e,l))),r=!1,e=l+1):l=h-1:-1===(h=function(t,e){for(;0<e;e--){var i=t[e];if(\" \"!==i)return\"=\"===i?e:-1}}(t,l-1))&&(a(r,sx(ox.trim(t.slice(e,l)))),r=!1,e=l+1));else{if(-1===(h=t.indexOf(u,l+1)))break;a(r,ox.trim(t.slice(n+1,h))),r=!1,e=(l=h)+1}else r=t.slice(e,l),n='\"'===t.charAt(e=l+1)||\"'\"===t.charAt(e)?e:function(t,e){for(;e<t.length;e++){var i=t[e];if(\" \"!==i)return\"'\"===i||'\"'===i?e:-1}}(t,l+1)}return e<t.length&&(!1===r?a(t.slice(e)):a(r,sx(ox.trim(t.slice(e))))),ox.trim(o.join(\" \"))};var ax=Sk.FilterCSS,lx=_,hx=o.parseTag,ux=o.parseAttr,cx=me;function dx(t){return null==t}function px(t){(t=function(t){var e,i={};for(e in t)i[e]=t[e];return i}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options \"stripIgnoreTag\" and \"onIgnoreTag\" at the same time'),t.onIgnoreTag=lx.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e,i={};for(e in t)Array.isArray(t[e])?i[e.toLowerCase()]=t[e].map(function(t){return t.toLowerCase()}):i[e.toLowerCase()]=t[e];return i}(t.whiteList||t.allowList):t.whiteList=lx.whiteList,t.onTag=t.onTag||lx.onTag,t.onTagAttr=t.onTagAttr||lx.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||lx.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||lx.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||lx.safeAttrValue,t.escapeHtml=t.escapeHtml||lx.escapeHtml,!1===(this.options=t).css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new ax(t.css))}px.prototype.process=function(t){var a,l,h,u,c,d,p,m,e,i;return(t=(t=t||\"\").toString())?(i=this.options,a=i.whiteList,l=i.onTag,h=i.onIgnoreTag,u=i.onTagAttr,c=i.onIgnoreTagAttr,d=i.safeAttrValue,p=i.escapeHtml,m=this.cssFilter,i.stripBlankChar&&(t=lx.stripBlankChar(t)),i.allowCommentTag||(t=lx.stripCommentTag(t)),e=!1,i.stripIgnoreTagBody&&(e=lx.StripTagBody(i.stripIgnoreTagBody,h),h=e.onIgnoreTag),i=hx(t,function(t,e,o,i,n){var r,s,t={sourcePosition:t,position:e,isClosing:n,isWhite:Object.prototype.hasOwnProperty.call(a,o)},e=l(o,i,t);return dx(e)?t.isWhite?t.isClosing?\"</\"+o+\">\":(n=i,n=-1===(s=cx.spaceIndex(n))?{html:\"\",closing:\"/\"===n[n.length-2]}:{html:n=(s=\"/\"===(n=cx.trim(n.slice(s+1,-1)))[n.length-1])?cx.trim(n.slice(0,-1)):n,closing:s},r=a[o],s=ux(n.html,function(t,e){var i=-1!==cx.indexOf(r,t),n=u(o,t,e,i);return dx(n)?i?(e=d(o,t,e,m))?t+'=\"'+e+'\"':t:dx(n=c(o,t,e,i))?void 0:n:n}),i=\"<\"+o,s&&(i+=\" \"+s),n.closing&&(i+=\" /\"),i+\">\"):dx(e=h(o,i,t))?p(i):e:e},p),e?e.remove(i):i):\"\"};var mx,fx,v=y,gx=Dk,vx=_,yx=o,bx=px;function _x(t,e){return new bx(e).process(t)}for(mx in(gx=v.exports=_x).filterXSS=_x,gx.FilterXSS=bx,vx)gx[mx]=vx[mx];for(fx in yx)gx[fx]=yx[fx];\"undefined\"!=typeof window&&(window.filterXSS=v.exports),\"undefined\"!=typeof self&&\"undefined\"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=v.exports);var wx=Dk;function kx(e,t){var i,n=sc(e);return Wl&&(i=Wl(e),t&&(i=E(i).call(i,function(t){return Zl(e,t).enumerable})),n.push.apply(n,i)),n}function xx(e){for(var t=1;t<arguments.length;t++){var i,n=null!=arguments[t]?arguments[t]:{};t%2?O(i=kx(Object(n),!0)).call(i,function(t){S(e,t,n[t])}):sh?uh(e,sh(n)):O(i=kx(Object(n))).call(i,function(t){mh(e,t,Zl(n,t))})}return e}function Dx(t){var e;if(t)return(e=null!=(e=t.idProp)?e:t._idProp)&&(e=e,\"object\"===x(t=t))&&null!==t&&e===t.idProp&&\"function\"==typeof O(t)&&\"function\"==typeof t.get&&\"function\"==typeof t.getDataSet&&\"function\"==typeof t.getIds&&\"number\"==typeof t.length&&\"function\"==typeof T(t)&&\"function\"==typeof t.off&&\"function\"==typeof t.on&&\"function\"==typeof t.stream&&(e=e,\"object\"===x(t=t.getDataSet()))&&null!==t&&e===t.idProp&&\"function\"==typeof t.add&&\"function\"==typeof t.clear&&\"function\"==typeof t.distinct&&\"function\"==typeof O(t)&&\"function\"==typeof t.get&&\"function\"==typeof t.getDataSet&&\"function\"==typeof t.getIds&&\"number\"==typeof t.length&&\"function\"==typeof T(t)&&\"function\"==typeof t.max&&\"function\"==typeof t.min&&\"function\"==typeof t.off&&\"function\"==typeof t.on&&\"function\"==typeof t.remove&&\"function\"==typeof t.setOptions&&\"function\"==typeof t.stream&&\"function\"==typeof t.update&&\"function\"==typeof t.updateOnly}var Sx=/^\\/?Date\\((-?\\d+)/i,Cx=/^\\d+$/;function Tx(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if(\"string\"!=typeof e&&!(e instanceof String))throw new Error(\"Type must be a string\");switch(e){case\"boolean\":case\"Boolean\":return Boolean(t);case\"number\":case\"Number\":return yg(t)&&!isNaN(Date.parse(t))?xk(t).valueOf():Number(t.valueOf());case\"string\":case\"String\":return String(t);case\"Date\":try{return Tx(t,\"Moment\").toDate()}catch(i){throw i instanceof TypeError?new TypeError(\"Cannot convert object of type \"+kg(t)+\" to type \"+e):i}case\"Moment\":if(vg(t))return xk(t);if(t instanceof Date)return xk(t.valueOf());if(xk.isMoment(t))return xk(t);if(yg(t))return(i=Sx.exec(t))?xk(Number(i[1])):(i=Cx.exec(t),xk(i?Number(t):t));throw new TypeError(\"Cannot convert object of type \"+kg(t)+\" to type \"+e);case\"ISODate\":if(vg(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(xk.isMoment(t))return t.toDate().toISOString();if(yg(t))return(i=Sx.exec(t))?new Date(Number(i[1])).toISOString():xk(t).format();throw new Error(\"Cannot convert object of type \"+kg(t)+\" to type ISODate\");case\"ASPDate\":if(vg(t))return\"/Date(\"+t+\")/\";if(t instanceof Date||xk.isMoment(t))return\"/Date(\"+t.valueOf()+\")/\";if(yg(t))return\"/Date(\"+((i=Sx.exec(t))?new Date(Number(i[1])):new Date(t)).valueOf()+\")/\";throw new Error(\"Cannot convert object of type \"+kg(t)+\" to type ASPDate\");default:throw new Error(\"Unknown type \".concat(e))}}}function Mx(e,t){var i,n=1<arguments.length&&void 0!==t?t:{start:\"Date\",end:\"Date\"},t=e._idProp,o=new yk({fieldId:t}),r=T(i=new ak(e)).call(i,function(i){var t;return k_(t=sc(i)).call(t,function(t,e){return t[e]=Tx(i[e],n[e]),t},{})}).to(o);return r.all().start(),{add:function(){var t;return(t=e.getDataSet()).add.apply(t,arguments)},remove:function(){var t;return(t=e.getDataSet()).remove.apply(t,arguments)},update:function(){var t;return(t=e.getDataSet()).update.apply(t,arguments)},updateOnly:function(){var t;return(t=e.getDataSet()).updateOnly.apply(t,arguments)},clear:function(){var t;return(t=e.getDataSet()).clear.apply(t,arguments)},forEach:M(i=O(o)).call(i,o),get:M(i=o.get).call(i,o),getIds:M(i=o.getIds).call(i,o),off:M(i=o.off).call(i,o),on:M(i=o.on).call(i,o),get length(){return o.length},idProp:t,type:n,rawDS:e,coercedDS:o,dispose:function(){return r.stop()}}}function Ox(t){var e=new wx.FilterXSS(t);return function(t){return e.process(t)}}function Ex(t){return t}var Px=Ox(),R=xx(xx({},g),{},{convert:Tx,setupXSSProtection:function(t){t&&(!0===t.disabled?(Px=Ex,console.warn(\"You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!\")):t.filterOptions&&(Px=Ox(t.filterOptions)))}}),Ix=(mh(R,\"xss\",{get:function(){return Px}}),{}),yo={get exports(){return Ix},set exports(t){Ix=t}},$a=s,be=e,Ax=yt,Lx=ja.trim,Nx=r(\"\".charAt),Rx=$a.parseFloat,xn=$a.Symbol,Fx=xn&&xn.iterator,oe=1/Rx(\"\\t\\n\\v\\f\\r    â€â€‚         âŸã€€\\u2028\\u2029\\ufeff-0\")!=-1/0||Fx&&!be(function(){Rx(Object(Fx))})?function(t){var t=Lx(Ax(t)),e=Rx(t);return 0===e&&\"-\"==Nx(t,0)?-0:e}:Rx;p({global:!0,forced:parseFloat!=oe},{parseFloat:oe});yo.exports=c.parseFloat;var jx=t(Ix),Yx=(D(Vx,[{key:\"setOptions\",value:function(t){t&&R.extend(this.options,t)}},{key:\"redraw\",value:function(){return!1}},{key:\"destroy\",value:function(){}},{key:\"_isResized\",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),Vx),Hx={},Lt={get exports(){return Hx},set exports(t){Hx=t}},zx=tt,Bx=yt,Gx=pt,Wx=RangeError;function Vx(t,e){k(this,Vx),this.options=null,this.props=null}p({target:\"String\",proto:!0},{repeat:function(t){var e=Bx(Gx(this)),i=\"\",n=zx(t);if(n<0||n==1/0)throw Wx(\"Wrong number of repetitions\");for(;0<n;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i}});var zi=iu(\"String\").repeat,Ux=d,Xx=zi,qx=String.prototype,$x=(Lt.exports=function(t){var e=t.repeat;return\"string\"==typeof t||t===qx||Ux(qx,t)&&e===qx.repeat?Xx:e},t(Hx));function Zx(t,e,i){if(i&&!C(i))return Zx(t,e,[i]);if(e.hiddenDates=[],i&&1==C(i)){for(var n,o,r=0;r<i.length;r++)void 0===$x(i[r])&&((o={}).start=t(i[r].start).toDate().valueOf(),o.end=t(i[r].end).toDate().valueOf(),e.hiddenDates.push(o));sw(n=e.hiddenDates).call(n,function(t,e){return t.start-e.start})}}function Kx(t,e,i){if(i&&!C(i))return Kx(t,e,[i]);if(i&&void 0!==e.domProps.centerContainer.width){Zx(t,e,i);for(var n=t(e.range.start),o=t(e.range.end),r=(e.range.end-e.range.start)/e.domProps.centerContainer.width,s=0;s<i.length;s++)if(void 0!==$x(i[s])){var a=t(i[s].start),l=t(i[s].end);if(\"Invalid Date\"==a._d)throw new Error(\"Supplied start date is not valid: \".concat(i[s].start));if(\"Invalid Date\"==l._d)throw new Error(\"Supplied end date is not valid: \".concat(i[s].end));if(4*r<=l-a){var h=0,u=o.clone();switch($x(i[s])){case\"daily\":a.day()!=l.day()&&(h=1),a.dayOfYear(n.dayOfYear()),a.year(n.year()),a.subtract(7,\"days\"),l.dayOfYear(n.dayOfYear()),l.year(n.year()),l.subtract(7-h,\"days\"),u.add(1,\"weeks\");break;case\"weekly\":var c=l.diff(a,\"days\"),d=a.day();a.date(n.date()),a.month(n.month()),a.year(n.year()),l=a.clone(),a.day(d),l.day(d),l.add(c,\"days\"),a.subtract(1,\"weeks\"),l.subtract(1,\"weeks\"),u.add(1,\"weeks\");break;case\"monthly\":a.month()!=l.month()&&(h=1),a.month(n.month()),a.year(n.year()),a.subtract(1,\"months\"),l.month(n.month()),l.year(n.year()),l.subtract(1,\"months\"),l.add(h,\"months\"),u.add(1,\"months\");break;case\"yearly\":a.year()!=l.year()&&(h=1),a.year(n.year()),a.subtract(1,\"years\"),l.year(n.year()),l.subtract(1,\"years\"),l.add(h,\"years\"),u.add(1,\"years\");break;default:return void console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\",$x(i[s]))}for(;a<u;)switch(e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()}),$x(i[s])){case\"daily\":a.add(1,\"days\"),l.add(1,\"days\");break;case\"weekly\":a.add(1,\"weeks\"),l.add(1,\"weeks\");break;case\"monthly\":a.add(1,\"months\"),l.add(1,\"months\");break;case\"yearly\":a.add(1,\"y\"),l.add(1,\"y\");break;default:return void console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\",$x(i[s]))}e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()})}}Jx(e);var p=lD(e.range.start,e.hiddenDates),m=lD(e.range.end,e.hiddenDates),f=e.range.start,g=e.range.end;1==p.hidden&&(f=1==e.range.startToFront?p.startDate-1:p.endDate+1),1==m.hidden&&(g=1==e.range.endToFront?m.startDate-1:m.endDate+1),1!=p.hidden&&1!=m.hidden||e.range._applyRange(f,g)}}function Jx(t){for(var e=t.hiddenDates,i=[],n=0;n<e.length;n++)for(var o=0;o<e.length;o++)n!=o&&1!=e[o].remove&&1!=e[n].remove&&(e[o].start>=e[n].start&&e[o].end<=e[n].end?e[o].remove=!0:e[o].start>=e[n].start&&e[o].start<=e[n].end?(e[n].end=e[o].end,e[o].remove=!0):e[o].end>=e[n].start&&e[o].end<=e[n].end&&(e[n].start=e[o].start,e[o].remove=!0));for(n=0;n<e.length;n++)!0!==e[n].remove&&i.push(e[n]);t.hiddenDates=i,sw(t=t.hiddenDates).call(t,function(t,e){return t.start-e.start})}function Qx(t,e,i){for(var n=!1,o=e.current.valueOf(),r=0;r<e.hiddenDates.length;r++){var s=e.hiddenDates[r].start,a=e.hiddenDates[r].end;if(s<=o&&o<a){n=!0;break}}1==n&&o<e._end.valueOf()&&o!=i&&(i=t(i),t=t(a),i.year()!=t.year()?e.switchedYear=!0:i.month()!=t.month()?e.switchedMonth=!0:i.dayOfYear()!=t.dayOfYear()&&(e.switchedDay=!0),e.current=t)}function tD(t,e,i){if(0==t.body.hiddenDates.length)n=t.range.conversion(i);else{var n,o,r=lD(e,t.body.hiddenDates),r=(1==r.hidden&&(e=r.startDate),iD(t.body.hiddenDates,t.range.start,t.range.end));if(e<t.range.start)return n=t.range.conversion(i,r),o=nD(t.body.hiddenDates,e,n.offset),e=t.options.moment(e).toDate().valueOf(),-(n.offset-(e+=o).valueOf())*n.scale;n=(e=e>t.range.end?(o={start:t.range.start,end:e},oD(t.options.moment,t.body.hiddenDates,o,e)):oD(t.options.moment,t.body.hiddenDates,t.range,e),t.range.conversion(i,r))}return(e.valueOf()-n.offset)*n.scale}function eD(t,e,i){var n;return 0==t.body.hiddenDates.length?(n=t.range.conversion(i),new Date(e/n.scale+n.offset)):(n=iD(t.body.hiddenDates,t.range.start,t.range.end),n=(t.range.end-t.range.start-n)*e/i,e=sD(t.body.hiddenDates,t.range,n),new Date(e+n+t.range.start))}function iD(t,e,i){for(var n=0,o=0;o<t.length;o++){var r=t[o].start,s=t[o].end;e<=r&&s<i&&(n+=s-r)}return n}function nD(t,e,i){for(var n=0,o=0;o<t.length;o++){var r=t[o].start,s=t[o].end;e<=r&&s<=i&&(n+=s-r)}return n}function oD(t,e,i,n){return(n=t(n).toDate().valueOf())-rD(t,e,i,n)}function rD(t,e,i,n){var o=0;n=t(n).toDate().valueOf();for(var r=0;r<e.length;r++){var s=e[r].start,a=e[r].end;s>=i.start&&a<i.end&&a<=n&&(o+=a-s)}return o}function sD(t,e,i){for(var n=0,o=0,r=e.start,s=0;s<t.length;s++){var a=t[s].start,l=t[s].end;if(a>=e.start&&l<e.end){if(o+=a-r,r=l,i<=o)break;n+=l-a}}return n}function aD(t,e,i,n){t=lD(e,t);return 1==t.hidden?i<0?1==n?t.startDate-(t.endDate-e)-1:t.startDate-1:1==n?t.endDate+(e-t.startDate)+1:t.endDate+1:e}function lD(t,e){for(var i=0;i<e.length;i++){var n=e[i].start,o=e[i].end;if(n<=t&&t<o)return{hidden:!0,startDate:n,endDate:o}}return{hidden:!1,startDate:n,endDate:o}}ao=Object.freeze({__proto__:null,convertHiddenOptions:Zx,correctTimeForHidden:oD,getAccumulatedHiddenDuration:sD,getHiddenDurationBefore:rD,getHiddenDurationBeforeStart:nD,getHiddenDurationBetween:iD,getIsHidden:lD,printDates:function(t){for(var e=0;e<t.length;e++)console.log(e,new Date(t[e].start),new Date(t[e].end),t[e].start,t[e].end,t[e].remove)},removeDuplicates:Jx,snapAwayFromHidden:aD,stepOverHiddenDates:Qx,toScreen:tD,toTime:eD,updateHiddenDates:Kx});var hD=function(){cv(s,Yx);i=s,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,r=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function s(t,e){k(this,s),i=r.call(this);var i,n=kk().hours(0).minutes(0).seconds(0).milliseconds(0),o=n.clone().add(-3,\"days\").valueOf(),n=n.clone().add(3,\"days\").valueOf();return(i.millisecondsPerPixelCache=void 0)===e?(i.start=o,i.end=n):(i.start=e.start||o,i.end=e.end||n),i.rolling=!1,i.body=t,i.deltaDifference=0,i.scaleOffset=0,i.startToFront=!1,i.endToFront=!0,i.defaultOptions={rtl:!1,start:null,end:null,moment:kk,direction:\"horizontal\",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},i.options=R.extend({},i.defaultOptions),i.props={touch:{}},i.animationTimer=null,i.body.emitter.on(\"panstart\",M(o=i._onDragStart).call(o,A(i))),i.body.emitter.on(\"panmove\",M(n=i._onDrag).call(n,A(i))),i.body.emitter.on(\"panend\",M(t=i._onDragEnd).call(t,A(i))),i.body.emitter.on(\"mousewheel\",M(o=i._onMouseWheel).call(o,A(i))),i.body.emitter.on(\"touch\",M(n=i._onTouch).call(n,A(i))),i.body.emitter.on(\"pinch\",M(t=i._onPinch).call(t,A(i))),i.body.dom.rollingModeBtn.addEventListener(\"click\",M(o=i.startRolling).call(o,A(i))),i.setOptions(e),i}return D(s,[{key:\"setOptions\",value:function(t){t&&(R.selectiveExtend([\"animation\",\"direction\",\"min\",\"max\",\"zoomMin\",\"zoomMax\",\"moveable\",\"zoomable\",\"moment\",\"activate\",\"hiddenDates\",\"zoomKey\",\"zoomFriction\",\"rtl\",\"showCurrentTime\",\"rollingMode\",\"horizontalScroll\"],this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),\"start\"in t||\"end\"in t)&&this.setRange(t.start,t.end)}},{key:\"startRolling\",value:function(){var o=this;!function t(){o.stopRolling(),o.rolling=!0;var e=o.end-o.start,i=R.convert(new Date,\"Date\").valueOf(),n=o.options.rollingMode&&o.options.rollingMode.offset||.5;o.setRange(i-e*n,i+e*(1-n),{animation:!1}),1e3<(e=(e=1/o.conversion(o.body.domProps.center.width).scale/10)<30?30:e)&&(e=1e3),o.body.dom.rollingModeBtn.style.visibility=\"hidden\",o.currentTimeTimer=Wp(t,e)}()}},{key:\"stopRolling\",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility=\"visible\")}},{key:\"setRange\",value:function(t,e,o,r,s){!0!==(o=o||{}).byUser&&(o.byUser=!1);var a=this,l=null!=t?R.convert(t,\"Date\").valueOf():null,h=null!=e?R.convert(e,\"Date\").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,o.animation){var u,c,d=this.start,p=this.end,m=\"object\"===x(o.animation)&&\"duration\"in o.animation?o.animation.duration:500,t=\"object\"===x(o.animation)&&\"easingFunction\"in o.animation?o.animation.easingFunction:\"easeInOutQuad\",f=R.easingFunctions[t];if(f)return u=uc(),c=!1,function t(){if(!a.props.touch.dragging){var e=uc()-u,i=f(e/m),e=m<e,n=(g=a._applyRange(e||null===l?l:d+(l-d)*i,e||null===h?h:p+(h-p)*i),Kx(a.options.moment,a.body,a.options.hiddenDates),c=c||g,{start:new Date(a.start),end:new Date(a.end),byUser:o.byUser,event:o.event});if(s&&s(i,g,e),g&&a.body.emitter.emit(\"rangechange\",n),e){if(c&&(a.body.emitter.emit(\"rangechanged\",n),r))return r()}else a.animationTimer=Wp(t,20)}}();throw new Error(Uu(e=\"Unknown easing function \".concat(Np(t),\". Choose from: \")).call(e,sc(R.easingFunctions).join(\", \")))}var g=this._applyRange(l,h);if(Kx(this.options.moment,this.body,this.options.hiddenDates),g){var i={start:new Date(this.start),end:new Date(this.end),byUser:o.byUser,event:o.event};if(this.body.emitter.emit(\"rangechange\",i),clearTimeout(a.timeoutID),a.timeoutID=Wp(function(){a.body.emitter.emit(\"rangechanged\",i)},200),r)return r()}}},{key:\"getMillisecondsPerPixel\",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:\"_cancelAnimation\",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:\"_applyRange\",value:function(t,e){var i,n=null!=t?R.convert(t,\"Date\").valueOf():this.start,o=null!=e?R.convert(e,\"Date\").valueOf():this.end,r=null!=this.options.max?R.convert(this.options.max,\"Date\").valueOf():null,s=null!=this.options.min?R.convert(this.options.min,\"Date\").valueOf():null;if(isNaN(n)||null===n)throw new Error('Invalid start \"'.concat(t,'\"'));if(isNaN(o)||null===o)throw new Error('Invalid end \"'.concat(e,'\"'));o<n&&(o=n),null!==s&&n<s&&(n+=i=s-n,o+=i,null!=r)&&r<o&&(o=r),null!==r&&r<o&&(n-=i=o-r,o-=i,null!=s)&&n<s&&(n=s),null!==this.options.zoomMin&&o-n<(t=(t=jx(this.options.zoomMin))<0?0:t)&&(this.end-this.start===t&&n>=this.start-.5&&o<=this.end?(n=this.start,o=this.end):(n-=(i=t-(o-n))/2,o+=i/2)),null!==this.options.zoomMax&&(e=(e=jx(this.options.zoomMax))<0?0:e)<o-n&&(this.end-this.start===e&&n<this.start&&o>this.end?(n=this.start,o=this.end):(n+=(i=o-n-e)/2,o-=i/2));r=this.start!=n||this.end!=o;return n>=this.start&&n<=this.end||o>=this.start&&o<=this.end||this.start>=n&&this.start<=o||this.end>=n&&this.end<=o||this.body.emitter.emit(\"checkRangedItems\"),this.start=n,this.end=o,r}},{key:\"getRange\",value:function(){return{start:this.start,end:this.end}}},{key:\"conversion\",value:function(t,e){return s.conversion(this.start,this.end,t,e)}},{key:\"_onDragStart\",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root)&&(this.body.dom.root.style.cursor=\"move\")}},{key:\"_onDrag\",value:function(t){var e,i,n,o,r;t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(uD(n=this.options.direction),e=\"horizontal\"==n?t.deltaX:t.deltaY,e-=this.deltaDifference,i=this.props.touch.end-this.props.touch.start,i-=iD(this.body.hiddenDates,this.start,this.end),n=\"horizontal\"==n?this.body.domProps.center.width:this.body.domProps.center.height,n=this.options.rtl?e/n*i:-e/n*i,i=this.props.touch.start+n,n=this.props.touch.end+n,o=aD(this.body.hiddenDates,i,this.previousDelta-e,!0),r=aD(this.body.hiddenDates,n,this.previousDelta-e,!0),o!=i||r!=n?(this.deltaDifference+=e,this.props.touch.start=o,this.props.touch.end=r,this._onDrag(t)):(this.previousDelta=e,this._applyRange(i,n),o=new Date(this.start),r=new Date(this.end),this.body.emitter.emit(\"rangechange\",{start:o,end:r,byUser:!0,event:t}),this.body.emitter.emit(\"panmove\")))}},{key:\"_onDragEnd\",value:function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor=\"auto\"),this.body.emitter.emit(\"rangechanged\",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))}},{key:\"_onMouseWheel\",value:function(t){var e,i,n=0;t.wheelDelta?n=t.wheelDelta/120:t.detail?n=-t.detail/3:t.deltaY&&(n=-t.deltaY/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&n&&(i=this.options.zoomFriction||5,i=n<0?1-n/i:1/(1+n/i),e=this.rolling?(e=this.options.rollingMode&&this.options.rollingMode.offset||.5,this.start+(this.end-this.start)*e):(e=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center),this._pointerToDate(e)),this.zoom(i,e,n,t),t.preventDefault())}},{key:\"_onTouch\",value:function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,R.preventDefault(t)}},{key:\"_onPinch\",value:function(t){var e,i,n,o,r;this.options.zoomable&&this.options.moveable&&(R.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling(),e=1/(t.scale+this.scaleOffset),o=this.props.touch.centerDate,r=iD(this.body.hiddenDates,this.start,this.end),i=o-(n=rD(this.options.moment,this.body.hiddenDates,this,o))+(this.props.touch.start-(o-n))*e,n=o+(r=r-n)+(this.props.touch.end-(o+r))*e,this.startToFront=1-e<=0,this.endToFront=e-1<=0,o=aD(this.body.hiddenDates,i,1-e,!0),r=aD(this.body.hiddenDates,n,e-1,!0),o==i&&r==n||(this.props.touch.start=o,this.props.touch.end=r,this.scaleOffset=1-t.scale,i=o,n=r),this.setRange(i,n,{animation:!1,byUser:!0,event:t}),this.startToFront=!1,this.endToFront=!0)}},{key:\"_isInsideRange\",value:function(t){var t=t.center?t.center.x:t.clientX,e=this.body.dom.centerContainer.getBoundingClientRect(),e=this.options.rtl?t-e.left:e.right-t,t=this.body.util.toTime(e);return t>=this.start&&t<=this.end}},{key:\"_pointerToDate\",value:function(t){var e=this.options.direction;return uD(e),\"horizontal\"==e?this.body.util.toTime(t.x).valueOf():(e=this.body.domProps.center.height,e=this.conversion(e),t.y/e.scale+e.offset)}},{key:\"getPointer\",value:function(t,e){e=e.getBoundingClientRect();return this.options.rtl?{x:e.right-t.x,y:t.y-e.top}:{x:t.x-e.left,y:t.y-e.top}}},{key:\"zoom\",value:function(t,e,i,n){null==e&&(e=(this.start+this.end)/2);var o=iD(this.body.hiddenDates,this.start,this.end),r=rD(this.options.moment,this.body.hiddenDates,this,e),o=o-r,r=e-r+(this.start-(e-r))*t,e=e+o+(this.end-(e+o))*t,o=(this.startToFront=!(0<i),this.endToFront=!(0<-i),aD(this.body.hiddenDates,r,i,!0)),t=aD(this.body.hiddenDates,e,-i,!0),i=(o==r&&t==e||(r=o,e=t),{animation:!1,byUser:!0,event:n});this.setRange(r,e,i),this.startToFront=!1,this.endToFront=!0}},{key:\"move\",value:function(t){var e=this.end-this.start,i=this.start+e*t,e=this.end+e*t;this.start=i,this.end=e}},{key:\"moveTo\",value:function(t){var t=(this.start+this.end)/2-t,e=this.start-t,t=this.end-t;this.setRange(e,t,{animation:!1,byUser:!0,event:null})}}],[{key:\"conversion\",value:function(t,e,i,n){return void 0===n&&(n=0),0!=i&&e-t!=0?{offset:t,scale:i/(e-t-n)}:{offset:0,scale:1}}}]),s}();function uD(t){if(\"horizontal\"!=t&&\"vertical\"!=t)throw new TypeError('Unknown direction \"'.concat(t,'\". Choose \"horizontal\" or \"vertical\".'))}var cD={},De=c.setInterval;({get exports(){return cD},set exports(t){cD=t}}).exports=De;var dD=t(cD),pD=null,w=\"undefined\"!=typeof window?function n(o,t){var r,s,a=t||{preventDefault:!1};return o.Manager?((r=o).assign(t=function(t,e){var i=Object.create(a);return e&&r.assign(i,e),n(new r(t,i),i)},r),t.Manager=function(t,e){var i=Object.create(a);return e&&r.assign(i,e),n(new r.Manager(t,i),i)},t):(s=Object.create(o),(t=o.element).hammer||(t.hammer=[]),t.hammer.push(s),o.on(\"hammer.input\",function(t){!0!==a.preventDefault&&a.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(pD=t.target)}),s._handlers={},s.on=function(t,i){return e(t).forEach(function(t){var e=s._handlers[t];e||(s._handlers[t]=e=[],o.on(t,l)),e.push(i)}),s},s.off=function(t,i){return e(t).forEach(function(t){var e=s._handlers[t];e&&(0<(e=i?e.filter(function(t){return t!==i}):[]).length?s._handlers[t]=e:(o.off(t,l),delete s._handlers[t]))}),s},s.emit=function(t,e){pD=e.target,o.emit(t,e)},s.destroy=function(){var t=o.element.hammer,e=t.indexOf(s);-1!==e&&t.splice(e,1),t.length||delete o.element.hammer,s._handlers={},o.destroy()},s);function e(t){return t.match(/[^ ]+/g)}function l(t){if(\"hammer.input\"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1,i=(t.stopPropagation=function(){e=!0},t.srcEvent.stopPropagation.bind(t.srcEvent));\"function\"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()});for(var n=t.firstTarget=pD;n&&!e;){var o=n.hammer;if(o)for(var r,s=0;s<o.length;s++)if(r=o[s]._handlers[t.type])for(var a=0;a<r.length&&!e;a++)r[a](t);n=n.parentNode}}}(window.Hammer||Ga,{preventDefault:\"mouse\"}):function(){return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}};function e(){}},mD=w;function fD(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on(\"hammer.input\",e.inputHandler)}D(vD,[{key:\"setMoment\",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:\"setFormat\",value:function(t){var e=R.deepExtend({},vD.FORMAT);this.format=R.deepExtend(e,t)}},{key:\"setRange\",value:function(t,e,i){if(!(t instanceof Date&&e instanceof Date))throw\"No legal start or end date in method setRange\";this._start=null!=t?this.moment(t.valueOf()):uc(),this._end=null!=e?this.moment(e.valueOf()):uc(),this.autoScale&&this.setMinimumStep(i)}},{key:\"start\",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:\"roundToMinor\",value:function(){switch(\"week\"==this.scale&&this.current.weekday(0),this.scale){case\"year\":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case\"month\":this.current.date(1);case\"week\":case\"day\":case\"weekday\":this.current.hours(0);case\"hour\":this.current.minutes(0);case\"minute\":this.current.seconds(0);case\"second\":this.current.milliseconds(0)}if(1!=this.step){var t=this.current.clone();switch(this.scale){case\"millisecond\":this.current.subtract(this.current.milliseconds()%this.step,\"milliseconds\");break;case\"second\":this.current.subtract(this.current.seconds()%this.step,\"seconds\");break;case\"minute\":this.current.subtract(this.current.minutes()%this.step,\"minutes\");break;case\"hour\":this.current.subtract(this.current.hours()%this.step,\"hours\");break;case\"weekday\":case\"day\":this.current.subtract((this.current.date()-1)%this.step,\"day\");break;case\"week\":this.current.subtract(this.current.week()%this.step,\"week\");break;case\"month\":this.current.subtract(this.current.month()%this.step,\"month\");break;case\"year\":this.current.subtract(this.current.year()%this.step,\"year\")}t.isSame(this.current)||(this.current=this.moment(aD(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:\"hasNext\",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:\"next\",value:function(){var t,e=this.current.valueOf();switch(this.scale){case\"millisecond\":this.current.add(this.step,\"millisecond\");break;case\"second\":this.current.add(this.step,\"second\");break;case\"minute\":this.current.add(this.step,\"minute\");break;case\"hour\":this.current.add(this.step,\"hour\"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,\"hour\"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,\"hour\");break;case\"weekday\":case\"day\":this.current.add(this.step,\"day\");break;case\"week\":0!==this.current.weekday()?(this.current.weekday(0),this.current.add(this.step,\"week\")):!1===this.options.showMajorLabels||((t=this.current.clone()).add(1,\"week\"),t.isSame(this.current,\"month\"))?this.current.add(this.step,\"week\"):(this.current.add(this.step,\"week\"),this.current.date(1));break;case\"month\":this.current.add(this.step,\"month\");break;case\"year\":this.current.add(this.step,\"year\")}if(1!=this.step)switch(this.scale){case\"millisecond\":0<this.current.milliseconds()&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case\"second\":0<this.current.seconds()&&this.current.seconds()<this.step&&this.current.seconds(0);break;case\"minute\":0<this.current.minutes()&&this.current.minutes()<this.step&&this.current.minutes(0);break;case\"hour\":0<this.current.hours()&&this.current.hours()<this.step&&this.current.hours(0);break;case\"weekday\":case\"day\":this.current.date()<this.step+1&&this.current.date(1);break;case\"week\":this.current.week()<this.step&&this.current.week(1);break;case\"month\":this.current.month()<this.step&&this.current.month(0)}this.current.valueOf()==e&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Qx(this.moment,this,e)}},{key:\"getCurrent\",value:function(){return this.current.clone()}},{key:\"setScale\",value:function(t){t&&\"string\"==typeof t.scale&&(this.scale=t.scale,this.step=0<t.step?t.step:1,this.autoScale=!1)}},{key:\"setAutoScale\",value:function(t){this.autoScale=t}},{key:\"setMinimumStep\",value:function(t){var e;null!=t&&(e=31104e6,t<31104e9&&(this.scale=\"year\",this.step=1e3),t<15552e9&&(this.scale=\"year\",this.step=500),t<31104e8&&(this.scale=\"year\",this.step=100),t<50*e&&(this.scale=\"year\",this.step=50),t<10*e&&(this.scale=\"year\",this.step=10),t<5*e&&(this.scale=\"year\",this.step=5),t<e&&(this.scale=\"year\",this.step=1),t<7776e6&&(this.scale=\"month\",this.step=3),t<2592e6&&(this.scale=\"month\",this.step=1),t<6048e5&&this.options.showWeekScale&&(this.scale=\"week\",this.step=1),t<1728e5&&(this.scale=\"day\",this.step=2),t<864e5&&(this.scale=\"day\",this.step=1),t<432e5&&(this.scale=\"weekday\",this.step=1),t<144e5&&(this.scale=\"hour\",this.step=4),t<36e5&&(this.scale=\"hour\",this.step=1),t<9e5&&(this.scale=\"minute\",this.step=15),t<6e5&&(this.scale=\"minute\",this.step=10),t<3e5&&(this.scale=\"minute\",this.step=5),t<6e4&&(this.scale=\"minute\",this.step=1),t<15e3&&(this.scale=\"second\",this.step=15),t<1e4&&(this.scale=\"second\",this.step=10),t<5e3&&(this.scale=\"second\",this.step=5),t<1e3&&(this.scale=\"second\",this.step=1),t<200&&(this.scale=\"millisecond\",this.step=200),t<100&&(this.scale=\"millisecond\",this.step=100),t<50&&(this.scale=\"millisecond\",this.step=50),t<10&&(this.scale=\"millisecond\",this.step=10),t<5&&(this.scale=\"millisecond\",this.step=5),t<1)&&(this.scale=\"millisecond\",this.step=1)}},{key:\"isMajor\",value:function(){if(1==this.switchedYear)switch(this.scale){case\"year\":case\"month\":case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case\"millisecond\":case\"second\":case\"minute\":case\"hour\":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case\"millisecond\":return 0==t.milliseconds();case\"second\":return 0==t.seconds();case\"minute\":return 0==t.hours()&&0==t.minutes();case\"hour\":return 0==t.hours();case\"weekday\":case\"day\":return this.options.showWeekScale?1==t.isoWeekday():1==t.date();case\"week\":return 1==t.date();case\"month\":return 0==t.month();default:return!1}}},{key:\"getLabelMinor\",value:function(t){var e;return(t=null==t?this.current:t)instanceof Date&&(t=this.moment(t)),\"function\"==typeof this.format.minorLabels?this.format.minorLabels(t,this.scale,this.step):(e=this.format.minorLabels[this.scale],(\"week\"!==this.scale||1!==t.date()||0===t.weekday())&&e&&0<e.length?this.moment(t).format(e):\"\")}},{key:\"getLabelMajor\",value:function(t){var e;return(t=null==t?this.current:t)instanceof Date&&(t=this.moment(t)),\"function\"==typeof this.format.majorLabels?this.format.majorLabels(t,this.scale,this.step):(e=this.format.majorLabels[this.scale])&&0<e.length?this.moment(t).format(e):\"\"}},{key:\"getClassName\",value:function(){var t,e=this.moment,i=this.moment(this.current),n=i.locale?i.locale(\"en\"):i.lang(\"en\"),o=this.step,r=[];function s(t){return t/o%2==0?\" vis-even\":\" vis-odd\"}function a(t){return t.isSame(uc(),\"day\")?\" vis-today\":t.isSame(e().add(1,\"day\"),\"day\")?\" vis-tomorrow\":t.isSame(e().add(-1,\"day\"),\"day\")?\" vis-yesterday\":\"\"}function l(t){return t.isSame(uc(),\"week\")?\" vis-current-week\":\"\"}function h(t){return t.isSame(uc(),\"month\")?\" vis-current-month\":\"\"}switch(this.scale){case\"millisecond\":r.push(a(n)),r.push(s(n.milliseconds()));break;case\"second\":r.push(a(n)),r.push(s(n.seconds()));break;case\"minute\":r.push(a(n)),r.push(s(n.minutes()));break;case\"hour\":r.push(Uu(t=\"vis-h\".concat(n.hours())).call(t,4==this.step?\"-h\"+(n.hours()+4):\"\")),r.push(a(n)),r.push(s(n.hours()));break;case\"weekday\":r.push(\"vis-\".concat(n.format(\"dddd\").toLowerCase())),r.push(a(n)),r.push(l(n)),r.push(s(n.date()));break;case\"day\":r.push(\"vis-day\".concat(n.date())),r.push(\"vis-\".concat(n.format(\"MMMM\").toLowerCase())),r.push(a(n)),r.push(h(n)),r.push(this.step<=2?a(n):\"\"),r.push(this.step<=2?\"vis-\".concat(n.format(\"dddd\").toLowerCase()):\"\"),r.push(s(n.date()-1));break;case\"week\":r.push(\"vis-week\".concat(n.format(\"w\"))),r.push(l(n)),r.push(s(n.week()));break;case\"month\":r.push(\"vis-\".concat(n.format(\"MMMM\").toLowerCase())),r.push(h(n)),r.push(s(n.month()));break;case\"year\":r.push(\"vis-year\".concat(n.year())),r.push(n.isSame(uc(),\"year\")?\" vis-current-year\":\"\"),r.push(s(n.year()))}return E(r).call(r,String).join(\" \")}}],[{key:\"snap\",value:function(t,e,i){var n=kk(t);if(\"year\"==e){var t=n.year()+Math.round(n.month()/12);n.year(Math.round(t/i)*i),n.month(0),n.date(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0)}else if(\"month\"==e)15<n.date()?(n.date(1),n.add(1,\"month\")):n.date(1),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if(\"week\"==e)2<n.weekday()?(n.weekday(0),n.add(1,\"week\")):n.weekday(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if(\"day\"==e){switch(i){case 5:case 2:n.hours(24*Math.round(n.hours()/24));break;default:n.hours(12*Math.round(n.hours()/12))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if(\"weekday\"==e){switch(i){case 5:case 2:n.hours(12*Math.round(n.hours()/12));break;default:n.hours(6*Math.round(n.hours()/6))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if(\"hour\"==e)4===i?n.minutes(60*Math.round(n.minutes()/60)):n.minutes(30*Math.round(n.minutes()/30)),n.seconds(0),n.milliseconds(0);else if(\"minute\"==e){switch(i){case 15:case 10:n.minutes(5*Math.round(n.minutes()/5)),n.seconds(0);break;case 5:n.seconds(60*Math.round(n.seconds()/60));break;default:n.seconds(30*Math.round(n.seconds()/30))}n.milliseconds(0)}else if(\"second\"==e)switch(i){case 15:case 10:n.seconds(5*Math.round(n.seconds()/5)),n.milliseconds(0);break;case 5:n.milliseconds(1e3*Math.round(n.milliseconds()/1e3));break;default:n.milliseconds(500*Math.round(n.milliseconds()/500))}else\"millisecond\"==e&&(t=5<i?i/2:1,n.milliseconds(Math.round(n.milliseconds()/t)*t));return n}}]);var gD=vD;function vD(t,e,i,n,o){k(this,vD),this.moment=o&&o.moment||kk,this.options=o||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale=\"day\",this.step=1,this.setRange(t,e,i),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,C(n)?this.hiddenDates=n:this.hiddenDates=null!=n?[n]:[],this.format=vD.FORMAT}gD.FORMAT={minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",week:\"w\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",week:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}};var yD=function(){cv(r,Yx);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e){var i;return k(this,r),(i=o.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},i.props={range:{start:0,end:0,minimumStep:0},lineTop:0},i.defaultOptions={orientation:{axis:\"bottom\"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:R.extend({},gD.FORMAT),moment:kk,timeAxis:null},i.options=R.extend({},i.defaultOptions),i.body=t,i._create(),i.setOptions(e),i}return D(r,[{key:\"setOptions\",value:function(t){t&&(R.selectiveExtend([\"showMinorLabels\",\"showMajorLabels\",\"showWeekScale\",\"maxMinorChars\",\"hiddenDates\",\"timeAxis\",\"moment\",\"rtl\"],this.options,t),R.selectiveDeepExtend([\"format\"],this.options,t),\"orientation\"in t&&(\"string\"==typeof t.orientation?this.options.orientation.axis=t.orientation:\"object\"===x(t.orientation)&&\"axis\"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),\"locale\"in t)&&(\"function\"==typeof kk.locale?kk.locale(t.locale):kk.lang(t.locale))}},{key:\"_create\",value:function(){this.dom.foreground=document.createElement(\"div\"),this.dom.background=document.createElement(\"div\"),this.dom.foreground.className=\"vis-time-axis vis-foreground\",this.dom.background.className=\"vis-time-axis vis-background\"}},{key:\"destroy\",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:\"redraw\",value:function(){var t=this.props,e=this.dom.foreground,i=this.dom.background,n=\"top\"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,o=e.parentNode!==n,r=(this._calculateCharSize(),this.options.showMinorLabels&&\"none\"!==this.options.orientation.axis),s=this.options.showMajorLabels&&\"none\"!==this.options.orientation.axis,r=(t.minorLabelHeight=r?t.minorCharHeight:0,t.majorLabelHeight=s?t.majorCharHeight:0,t.height=t.minorLabelHeight+t.majorLabelHeight,t.width=e.offsetWidth,t.minorLineHeight=this.body.domProps.root.height-t.majorLabelHeight-(\"top\"==this.options.orientation.axis?this.body.domProps.bottom:this.body.domProps.top).height,t.minorLineWidth=1,t.majorLineHeight=t.minorLineHeight+t.majorLabelHeight,t.majorLineWidth=1,e.nextSibling),s=i.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),i.parentNode&&i.parentNode.removeChild(i),e.style.height=\"\".concat(this.props.height,\"px\"),this._repaintLabels(),r?n.insertBefore(e,r):n.appendChild(e),s?this.body.dom.backgroundVertical.insertBefore(i,s):this.body.dom.backgroundVertical.appendChild(i),this._isResized()||o}},{key:\"_repaintLabels\",value:function(){var t=this.options.orientation.axis,e=R.convert(this.body.range.start,\"Number\"),i=R.convert(this.body.range.end,\"Number\"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),n=n-rD(this.options.moment,this.body.hiddenDates,this.body.range,n),o=(n-=this.body.util.toTime(0).valueOf(),new gD(new Date(e),new Date(i),n,this.body.hiddenDates,this.options));o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var r,s,a,l,h,e=this.dom;e.redundant.lines=e.lines,e.redundant.majorTexts=e.majorTexts,e.redundant.minorTexts=e.minorTexts,e.lines=[],e.majorTexts=[],e.minorTexts=[];var u,c,d,p=0,m=void 0,f=0;for(o.start(),s=o.getCurrent(),l=this.body.util.toScreen(s);o.hasNext()&&f<1e3;)f++,h=o.isMajor(),d=o.getClassName(),r=s,a=l,o.next(),s=o.getCurrent(),u=p,p=(l=this.body.util.toScreen(s))-a,u=\"week\"===o.scale||.4*u<=p,this.options.showMinorLabels&&u&&(this._repaintMinorText(a,o.getLabelMinor(r),t,d).style.width=\"\".concat(p,\"px\")),h&&this.options.showMajorLabels?(0<a&&(null==m&&(m=a),this._repaintMajorText(a,o.getLabelMajor(r),t,d)),c=this._repaintMajorLine(a,p,t,d)):u?c=this._repaintMinorLine(a,p,t,d):c&&(c.style.width=\"\".concat(pp(c.style.width)+p,\"px\"));1e3!==f||bD||(console.warn(\"Something is wrong with the Timeline scale. Limited drawing of grid lines to \".concat(1e3,\" lines.\")),bD=!0),this.options.showMajorLabels&&(i=this.body.util.toTime(0),e=(n=o.getLabelMajor(i)).length*(this.props.majorCharWidth||10)+10,null==m||e<m)&&this._repaintMajorText(0,n,t,d),O(R).call(R,this.dom.redundant,function(t){for(;t.length;){var e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}})}},{key:\"_repaintMinorText\",value:function(t,e,i,n){var o=this.dom.redundant.minorTexts.shift(),r=(o||(r=document.createTextNode(\"\"),(o=document.createElement(\"div\")).appendChild(r),this.dom.foreground.appendChild(o)),this.dom.minorTexts.push(o),o.innerHTML=R.xss(e),\"top\"==i?this.props.majorLabelHeight:0);return this._setXY(o,t,r),o.className=\"vis-text vis-minor \".concat(n),o}},{key:\"_repaintMajorText\",value:function(t,e,i,n){var o=this.dom.redundant.majorTexts.shift(),r=(o||(r=document.createElement(\"div\"),(o=document.createElement(\"div\")).appendChild(r),this.dom.foreground.appendChild(o)),o.childNodes[0].innerHTML=R.xss(e),o.className=\"vis-text vis-major \".concat(n),\"top\"==i?0:this.props.minorLabelHeight);return this._setXY(o,t,r),this.dom.majorTexts.push(o),o}},{key:\"_setXY\",value:function(t,e,i){e=this.options.rtl?-1*e:e;t.style.transform=Uu(t=\"translate(\".concat(e,\"px, \")).call(t,i,\"px)\")}},{key:\"_repaintMinorLine\",value:function(t,e,i,n){var o=this.dom.redundant.lines.shift(),r=(o||(o=document.createElement(\"div\"),this.dom.background.appendChild(o)),this.dom.lines.push(o),this.props),e=(o.style.width=\"\".concat(e,\"px\"),o.style.height=\"\".concat(r.minorLineHeight,\"px\"),\"top\"==i?r.majorLabelHeight:this.body.domProps.top.height),i=t-r.minorLineWidth/2;return this._setXY(o,i,e),o.className=Uu(t=\"vis-grid \".concat(this.options.rtl?\"vis-vertical-rtl\":\"vis-vertical\",\" vis-minor \")).call(t,n),o}},{key:\"_repaintMajorLine\",value:function(t,e,i,n){var o=this.dom.redundant.lines.shift(),r=(o||(o=document.createElement(\"div\"),this.dom.background.appendChild(o)),this.dom.lines.push(o),this.props),e=(o.style.width=\"\".concat(e,\"px\"),o.style.height=\"\".concat(r.majorLineHeight,\"px\"),\"top\"==i?0:this.body.domProps.top.height),i=t-r.majorLineWidth/2;return this._setXY(o,i,e),o.className=Uu(t=\"vis-grid \".concat(this.options.rtl?\"vis-vertical-rtl\":\"vis-vertical\",\" vis-major \")).call(t,n),o}},{key:\"_calculateCharSize\",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement(\"DIV\"),this.dom.measureCharMinor.className=\"vis-text vis-minor vis-measure\",this.dom.measureCharMinor.style.position=\"absolute\",this.dom.measureCharMinor.appendChild(document.createTextNode(\"0\")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement(\"DIV\"),this.dom.measureCharMajor.className=\"vis-text vis-major vis-measure\",this.dom.measureCharMajor.style.position=\"absolute\",this.dom.measureCharMajor.appendChild(document.createTextNode(\"0\")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),r}(),bD=!1;function _D(t){for(var o=t&&t.preventDefault||!1,e=t&&t.container||window,n={},s={keydown:{},keyup:{}},a={},i=97;i<=122;i++)a[String.fromCharCode(i)]={code:i-97+65,shift:!1};for(i=65;i<=90;i++)a[String.fromCharCode(i)]={code:i,shift:!0};for(i=0;i<=9;i++)a[\"\"+i]={code:48+i,shift:!1};for(i=1;i<=12;i++)a[\"F\"+i]={code:111+i,shift:!1};for(i=0;i<=9;i++)a[\"num\"+i]={code:96+i,shift:!1};a[\"num*\"]={code:106,shift:!1},a[\"num+\"]={code:107,shift:!1},a[\"num-\"]={code:109,shift:!1},a[\"num/\"]={code:111,shift:!1},a[\"num.\"]={code:110,shift:!1},a.left={code:37,shift:!1},a.up={code:38,shift:!1},a.right={code:39,shift:!1},a.down={code:40,shift:!1},a.space={code:32,shift:!1},a.enter={code:13,shift:!1},a.shift={code:16,shift:void 0},a.esc={code:27,shift:!1},a.backspace={code:8,shift:!1},a.tab={code:9,shift:!1},a.ctrl={code:17,shift:!1},a.alt={code:18,shift:!1},a.delete={code:46,shift:!1},a.pageup={code:33,shift:!1},a.pagedown={code:34,shift:!1},a[\"=\"]={code:187,shift:!1},a[\"-\"]={code:189,shift:!1},a[\"]\"]={code:221,shift:!1},a[\"[\"]={code:219,shift:!1};function r(t){h(t,\"keydown\")}function l(t){h(t,\"keyup\")}function h(t,e){if(void 0!==s[e][t.keyCode]){for(var i=s[e][t.keyCode],n=0;n<i.length;n++)(void 0===i[n].shift||1==i[n].shift&&1==t.shiftKey||0==i[n].shift&&0==t.shiftKey)&&i[n].fn(t);1==o&&t.preventDefault()}}return n.bind=function(t,e,i){if(void 0===i&&(i=\"keydown\"),void 0===a[t])throw new Error(\"unsupported key: \"+t);void 0===s[i][a[t].code]&&(s[i][a[t].code]=[]),s[i][a[t].code].push({fn:e,shift:a[t].shift})},n.bindAll=function(t,e){for(var i in void 0===e&&(e=\"keydown\"),a)a.hasOwnProperty(i)&&n.bind(i,t,e)},n.getKey=function(t){for(var e in a)if(a.hasOwnProperty(e)){if(1==t.shiftKey&&1==a[e].shift&&t.keyCode==a[e].code)return e;if(0==t.shiftKey&&0==a[e].shift&&t.keyCode==a[e].code)return e;if(t.keyCode==a[e].code&&\"shift\"==e)return e}return\"unknown key, currently not supported\"},n.unbind=function(t,e,i){if(void 0===i&&(i=\"keydown\"),void 0===a[t])throw new Error(\"unsupported key: \"+t);if(void 0!==e){var n=[],o=s[i][a[t].code];if(void 0!==o)for(var r=0;r<o.length;r++)o[r].fn==e&&o[r].shift==a[t].shift||n.push(s[i][a[t].code][r]);s[i][a[t].code]=n}else s[i][a[t].code]=[]},n.reset=function(){s={keydown:{},keyup:{}}},n.destroy=function(){s={keydown:{},keyup:{}},e.removeEventListener(\"keydown\",r,!0),e.removeEventListener(\"keyup\",l,!0)},e.addEventListener(\"keydown\",r,!0),e.addEventListener(\"keyup\",l,!0),n}function wD(e){this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement(\"div\"),this.dom.overlay.className=\"vis-overlay\",this.dom.container.appendChild(this.dom.overlay),this.hammer=mD(this.dom.overlay),this.hammer.on(\"tap\",M(t=this._onTapOverlay).call(t,this));var i=this,t=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];O(t).call(t,function(t){i.hammer.on(t,function(t){t.stopPropagation()})}),document&&document.body&&(this.onClick=function(t){!function(t,e){for(;t;){if(t===e)return 1;t=t.parentNode}}(t.target,e)&&i.deactivate()},document.body.addEventListener(\"click\",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=_D(),this.escListener=M(t=this.deactivate).call(t,this)}Gt(wD.prototype),wD.current=null,wD.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener(\"click\",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},wD.prototype.activate=function(){var t;wD.current&&wD.current.deactivate(),(wD.current=this).active=!0,this.dom.overlay.style.display=\"none\",R.addClassName(this.dom.container,\"vis-active\"),this.emit(\"change\"),this.emit(\"activate\"),M(t=this.keycharm).call(t,\"esc\",this.escListener)},wD.prototype.deactivate=function(){wD.current===this&&(wD.current=null),this.active=!1,this.dom.overlay.style.display=\"\",R.removeClassName(this.dom.container,\"vis-active\"),this.keycharm.unbind(\"esc\",this.escListener),this.emit(\"change\"),this.emit(\"deactivate\")},wD.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var jt={current:\"current\",time:\"time\",deleteSelected:\"Delete selected\"},xa={current:\"attuale\",time:\"tempo\",deleteSelected:\"Cancella la selezione\"},Ya={current:\"huidige\",time:\"tijd\",deleteSelected:\"Selectie verwijderen\"},Fa={current:\"Aktuelle\",time:\"Zeit\",deleteSelected:\"Lösche Auswahl\"},La={current:\"actuel\",time:\"heure\",deleteSelected:\"Effacer la selection\"},ko={current:\"corriente\",time:\"hora\",deleteSelected:\"Eliminar selección\"},Hn={current:\"поточний\",time:\"чаÑ\",deleteSelected:\"Видалити обране\"},kn={current:\"текущее\",time:\"времÑ\",deleteSelected:\"Удалить выбранное\"},Ei={current:\"aktualny\",time:\"czas\",deleteSelected:\"UsuÅ„ wybrane\"},Na={current:\"atual\",time:\"data\",deleteSelected:\"Apagar selecionado\"},go={current:\"ç¾åœ¨\",time:\"時刻\",deleteSelected:\"é¸æŠžã•ã‚ŒãŸã‚‚ã®ã‚’削除\"},Oi={current:\"nuvarande\",time:\"tid\",deleteSelected:\"Radera valda\"},f={current:\"nÃ¥værende\",time:\"tid\",deleteSelected:\"Slett valgte\"},Pi={current:\"einamas\",time:\"laikas\",deleteSelected:\"PaÅ¡alinti pasirinktÄ…\"},kD={en:jt,en_EN:jt,en_US:jt,it:xa,it_IT:xa,it_CH:xa,nl:Ya,nl_NL:Ya,nl_BE:Ya,de:Fa,de_DE:Fa,fr:La,fr_FR:La,fr_CA:La,fr_BE:La,es:ko,es_ES:ko,uk:Hn,uk_UA:Hn,ru:kn,ru_RU:kn,pl:Ei,pl_PL:Ei,pt:Na,pt_BR:Na,pt_PT:Na,ja:go,ja_JP:go,lt:Pi,lt_LT:Pi,sv:Oi,sv_SE:Oi,nb:f,nn:f,nb_NO:f,nn_NO:f};var xD=function(){cv(r,Yx);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e){k(this,r),(i=o.call(this)).body=t,i.defaultOptions={moment:kk,locales:kD,locale:\"en\",id:void 0,title:void 0},i.options=R.extend({},i.defaultOptions),i.setOptions(e),i.options.locales=R.extend({},kD,i.options.locales);var i,n=i.defaultOptions.locales[i.defaultOptions.locale];return O(t=sc(i.options.locales)).call(t,function(t){i.options.locales[t]=R.extend({},n,i.options.locales[t])}),e&&null!=e.time?i.customTime=e.time:i.customTime=new Date,i.eventParams={},i._create(),i}return D(r,[{key:\"setOptions\",value:function(t){t&&R.selectiveExtend([\"moment\",\"locale\",\"locales\",\"id\",\"title\",\"rtl\",\"snap\"],this.options,t)}},{key:\"_create\",value:function(){var t=document.createElement(\"div\"),e=(t[\"custom-time\"]=this,t.className=\"vis-custom-time \".concat(this.options.id||\"\"),t.style.position=\"absolute\",t.style.top=\"0px\",t.style.height=\"100%\",this.bar=t,document.createElement(\"div\"));function i(t){this.body.range._onMouseWheel(t)}e.style.position=\"relative\",e.style.top=\"0px\",this.options.rtl?e.style.right=\"-10px\":e.style.left=\"-10px\",e.style.height=\"100%\",e.style.width=\"20px\",e.addEventListener?(e.addEventListener(\"mousewheel\",M(i).call(i,this),!1),e.addEventListener(\"DOMMouseScroll\",M(i).call(i,this),!1)):e.attachEvent(\"onmousewheel\",M(i).call(i,this)),t.appendChild(e),this.hammer=new mD(e),this.hammer.on(\"panstart\",M(t=this._onDragStart).call(t,this)),this.hammer.on(\"panmove\",M(e=this._onDrag).call(e,this)),this.hammer.on(\"panend\",M(t=this._onDragEnd).call(t,this)),this.hammer.get(\"pan\").set({threshold:5,direction:mD.DIRECTION_ALL}),this.hammer.get(\"press\").set({time:1e4})}},{key:\"destroy\",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:\"redraw\",value:function(){var t=this.body.dom.backgroundVertical,t=(this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar)),this.body.util.toScreen(this.customTime)),e=this.options.locales[this.options.locale];e||(this.warned||(console.warn(\"WARNING: options.locales['\".concat(this.options.locale,\"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization\")),this.warned=!0),e=this.options.locales.en);var i=this.options.title;return void 0===i?i=(i=Uu(e=\"\".concat(e.time,\": \")).call(e,this.options.moment(this.customTime).format(\"dddd, MMMM Do YYYY, H:mm:ss\"))).charAt(0).toUpperCase()+i.substring(1):\"function\"==typeof i&&(i=i.call(this,this.customTime)),this.options.rtl?this.bar.style.right=\"\".concat(t,\"px\"):this.bar.style.left=\"\".concat(t,\"px\"),this.bar.title=i,!1}},{key:\"hide\",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:\"setCustomTime\",value:function(t){this.customTime=R.convert(t,\"Date\"),this.redraw()}},{key:\"getCustomTime\",value:function(){return new Date(this.customTime.valueOf())}},{key:\"setCustomMarker\",value:function(t,e){var i=document.createElement(\"div\");i.className=\"vis-custom-time-marker\",i.innerHTML=R.xss(t),i.style.position=\"absolute\",e&&(i.setAttribute(\"contenteditable\",\"true\"),i.addEventListener(\"pointerdown\",function(){i.focus()}),i.addEventListener(\"input\",M(e=this._onMarkerChange).call(e,this)),i.title=t,i.addEventListener(\"blur\",M(e=function(t){this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}).call(e,this))),this.bar.appendChild(i)}},{key:\"setCustomTitle\",value:function(t){this.options.title=t}},{key:\"_onDragStart\",value:function(t){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,t.stopPropagation()}},{key:\"_onDrag\",value:function(t){var e,i,n,o;this.eventParams.dragging&&(e=this.options.rtl?-1*t.deltaX:t.deltaX,e=this.body.util.toScreen(this.eventParams.customTime)+e,e=this.body.util.toTime(e),i=this.body.util.getScale(),n=this.body.util.getStep(),o=(o=this.options.snap)?o(e,i,n):e,this.setCustomTime(o),this.body.emitter.emit(\"timechange\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}},{key:\"_onDragEnd\",value:function(t){this.eventParams.dragging&&(this.body.emitter.emit(\"timechanged\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}},{key:\"_onMarkerChange\",value:function(t){this.body.emitter.emit(\"markerchange\",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}},{key:\"_onMarkerChanged\",value:function(t){this.body.emitter.emit(\"markerchanged\",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}}],[{key:\"customTimeFromTarget\",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty(\"custom-time\"))return e[\"custom-time\"];e=e.parentNode}return null}}]),r}(),DD=(D(SD,[{key:\"_create\",value:function(t){var e=this,i=(this.dom={},this.dom.container=t,this.dom.container.style.position=\"relative\",this.dom.root=document.createElement(\"div\"),this.dom.background=document.createElement(\"div\"),this.dom.backgroundVertical=document.createElement(\"div\"),this.dom.backgroundHorizontal=document.createElement(\"div\"),this.dom.centerContainer=document.createElement(\"div\"),this.dom.leftContainer=document.createElement(\"div\"),this.dom.rightContainer=document.createElement(\"div\"),this.dom.center=document.createElement(\"div\"),this.dom.left=document.createElement(\"div\"),this.dom.right=document.createElement(\"div\"),this.dom.top=document.createElement(\"div\"),this.dom.bottom=document.createElement(\"div\"),this.dom.shadowTop=document.createElement(\"div\"),this.dom.shadowBottom=document.createElement(\"div\"),this.dom.shadowTopLeft=document.createElement(\"div\"),this.dom.shadowBottomLeft=document.createElement(\"div\"),this.dom.shadowTopRight=document.createElement(\"div\"),this.dom.shadowBottomRight=document.createElement(\"div\"),this.dom.rollingModeBtn=document.createElement(\"div\"),this.dom.loadingScreen=document.createElement(\"div\"),this.dom.root.className=\"vis-timeline\",this.dom.background.className=\"vis-panel vis-background\",this.dom.backgroundVertical.className=\"vis-panel vis-background vis-vertical\",this.dom.backgroundHorizontal.className=\"vis-panel vis-background vis-horizontal\",this.dom.centerContainer.className=\"vis-panel vis-center\",this.dom.leftContainer.className=\"vis-panel vis-left\",this.dom.rightContainer.className=\"vis-panel vis-right\",this.dom.top.className=\"vis-panel vis-top\",this.dom.bottom.className=\"vis-panel vis-bottom\",this.dom.left.className=\"vis-content\",this.dom.center.className=\"vis-content\",this.dom.right.className=\"vis-content\",this.dom.shadowTop.className=\"vis-shadow vis-top\",this.dom.shadowBottom.className=\"vis-shadow vis-bottom\",this.dom.shadowTopLeft.className=\"vis-shadow vis-top\",this.dom.shadowBottomLeft.className=\"vis-shadow vis-bottom\",this.dom.shadowTopRight.className=\"vis-shadow vis-top\",this.dom.shadowBottomRight.className=\"vis-shadow vis-bottom\",this.dom.rollingModeBtn.className=\"vis-rolling-mode-btn\",this.dom.loadingScreen.className=\"vis-loading-screen\",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on(\"rangechange\",function(){!0===e.initialDrawDone&&e._redraw()}),this.on(\"rangechanged\",function(){e.initialRangeChangeDone||(e.initialRangeChangeDone=!0)}),this.on(\"touch\",M(n=this._onTouch).call(n,this)),this.on(\"panmove\",M(n=this._onDrag).call(n,this)),this),n=(this._origRedraw=M(n=this._redraw).call(n,this),this._redraw=R.throttle(this._origRedraw),this.on(\"_change\",function(t){i.itemSet&&i.itemSet.initialItemSetDrawn&&t&&1==t.queue?i._redraw():i._origRedraw()}),this.hammer=new mD(this.dom.root),this.hammer.get(\"pinch\").set({enable:!0}));n&&(n.getTouchAction=function(){return[\"pan-y\"]}),this.hammer.get(\"pan\").set({threshold:5,direction:mD.DIRECTION_ALL}),this.timelineListeners={};var o,n=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];function r(t){this.isActive()&&this.emit(\"mousewheel\",t);var e,i,n=0,o=0;if(\"detail\"in t&&(o=-1*t.detail),\"wheelDelta\"in t&&(o=t.wheelDelta),\"wheelDeltaY\"in t&&(o=t.wheelDeltaY),\"wheelDeltaX\"in t&&(n=-1*t.wheelDeltaX),\"axis\"in t&&t.axis===t.HORIZONTAL_AXIS&&(n=-1*o,o=0),\"deltaY\"in t&&(o=-1*t.deltaY),\"deltaX\"in t&&(n=t.deltaX),t.deltaMode&&(1===t.deltaMode?(n*=40,o*=40):(n*=40,o*=800)),this.options.preferZoom){if(!this.options.zoomKey||t[this.options.zoomKey])return}else if(this.options.zoomKey&&t[this.options.zoomKey])return;(this.options.verticalScroll||this.options.horizontalScroll)&&(this.options.verticalScroll&&Math.abs(o)>=Math.abs(n)?(e=(i=this.props.scrollTop)+o,this.isActive()&&this._setScrollTop(e)!==i&&(this._redraw(),this.emit(\"scroll\",t),t.preventDefault())):this.options.horizontalScroll&&(e=(Math.abs(n)>=Math.abs(o)?n:o)/120*(this.range.end-this.range.start)/20,i=this.range.start+e,n=this.range.end+e,this.range.setRange(i,n,{animation:!1,byUser:!0,event:t}),t.preventDefault()))}O(n).call(n,function(e){function t(t){i.isActive()&&i.emit(e,t)}i.hammer.on(e,t),i.timelineListeners[e]=t}),fD(this.hammer,function(t){i.emit(\"touch\",t)}),n=this.hammer,(o=function(t){i.emit(\"release\",t)}).inputHandler=function(t){t.isFinal&&o(t)},n.on(\"hammer.input\",o.inputHandler);n=\"onwheel\"in document.createElement(\"div\")?\"wheel\":void 0!==document.onmousewheel?\"mousewheel\":this.dom.centerContainer.addEventListener?\"DOMMouseScroll\":\"onmousewheel\";function s(t){var e;i.options.verticalScroll&&(t.preventDefault(),i.isActive())&&(e=-t.target.scrollTop,i._setScrollTop(e),i._redraw(),i.emit(\"scrollSide\",t))}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(n,M(r).call(r,this),!1),this.dom.top.addEventListener(n,M(r).call(r,this),!1),this.dom.bottom.addEventListener(n,M(r).call(r,this),!1),this.dom.left.parentNode.addEventListener(\"scroll\",M(s).call(s,this)),this.dom.right.parentNode.addEventListener(\"scroll\",M(s).call(s,this));var a=!1;function l(t){var e;if(t.preventDefault&&(i.emit(\"dragover\",i.getEventProperties(t)),t.preventDefault()),-1<P(e=t.target.className).call(e,\"timeline\")&&!a)return t.dataTransfer.dropEffect=\"move\",!(a=!0)}function h(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData(\"text\"));if(!e||!e.content)return}catch(t){return!1}return a=!1,t.center={x:t.clientX,y:t.clientY},\"item\"!==e.target?i.itemSet._onAddItem(t):i.itemSet._onDropObjectOnItem(t),i.emit(\"drop\",i.getEventProperties(t)),!1}if(this.dom.center.addEventListener(\"dragover\",M(l).call(l,this),!1),this.dom.center.addEventListener(\"drop\",M(h).call(h,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error(\"No container provided\");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:\"setOptions\",value:function(e){var i,t,n,o;e&&(R.selectiveExtend([\"width\",\"height\",\"minHeight\",\"maxHeight\",\"autoResize\",\"start\",\"end\",\"clickToUse\",\"dataAttributes\",\"hiddenDates\",\"locale\",\"locales\",\"moment\",\"preferZoom\",\"rtl\",\"zoomKey\",\"horizontalScroll\",\"verticalScroll\",\"longSelectPressTime\",\"snap\"],this.options,e),this.dom.rollingModeBtn.style.visibility=\"hidden\",this.options.rtl&&(this.dom.container.style.direction=\"rtl\",this.dom.backgroundVertical.className=\"vis-panel vis-background vis-vertical-rtl\"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className=\"vis-panel vis-right vis-vertical-scroll\":this.dom.leftContainer.className=\"vis-panel vis-left vis-vertical-scroll\"),\"object\"!==x(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),\"orientation\"in e&&(\"string\"==typeof e.orientation?this.options.orientation={item:e.orientation,axis:e.orientation}:\"object\"===x(e.orientation)&&(\"item\"in e.orientation&&(this.options.orientation.item=e.orientation.item),\"axis\"in e.orientation)&&(this.options.orientation.axis=e.orientation.axis)),\"both\"===this.options.orientation.axis?this.timeAxis2||((i=this.timeAxis2=new yD(this.body)).setOptions=function(t){t=t?R.extend({},t):{};t.orientation=\"top\",yD.prototype.setOptions.call(i,t)},this.components.push(i)):this.timeAxis2&&(-1!==(n=P(n=this.components).call(n,this.timeAxis2))&&rd(t=this.components).call(t,n,1),this.timeAxis2.destroy(),this.timeAxis2=null),\"function\"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),\"hiddenDates\"in this.options&&Zx(this.options.moment,this.body,this.options.hiddenDates),\"clickToUse\"in e&&(e.clickToUse?this.activator||(this.activator=new wD(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()),O(t=this.components).call(t,function(t){return t.setOptions(e)}),\"configure\"in e&&(this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure),o=R.deepExtend({},this.options),O(n=this.components).call(n,function(t){R.deepExtend(o,t.options)}),this.configurator.setModuleOptions({global:o})),this._redraw()}},{key:\"isActive\",value:function(){return!this.activator||this.activator.active}},{key:\"destroy\",value:function(){var t,e;for(e in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(e)&&delete this.timelineListeners[e];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,O(t=this.components).call(t,function(t){return t.destroy()}),this.body=null}},{key:\"setCustomTime\",value:function(t,e){var i=E(i=this.customTimes).call(i,function(t){return e===t.options.id});if(0===i.length)throw new Error(\"No custom time bar found with id \".concat(Np(e)));0<i.length&&i[0].setCustomTime(t)}},{key:\"getCustomTime\",value:function(e){var t=E(t=this.customTimes).call(t,function(t){return t.options.id===e});if(0===t.length)throw new Error(\"No custom time bar found with id \".concat(Np(e)));return t[0].getCustomTime()}},{key:\"setCustomTimeMarker\",value:function(t,e,i){var n=E(n=this.customTimes).call(n,function(t){return t.options.id===e});if(0===n.length)throw new Error(\"No custom time bar found with id \".concat(Np(e)));0<n.length&&n[0].setCustomMarker(t,i)}},{key:\"setCustomTimeTitle\",value:function(t,e){var i=E(i=this.customTimes).call(i,function(t){return t.options.id===e});if(0===i.length)throw new Error(\"No custom time bar found with id \".concat(Np(e)));if(0<i.length)return i[0].setCustomTitle(t)}},{key:\"getEventProperties\",value:function(t){return{event:t}}},{key:\"addCustomTime\",value:function(t,e){t=void 0!==t?R.convert(t,\"Date\"):new Date;if(dw(i=this.customTimes).call(i,function(t){return t.options.id===e}))throw new Error(\"A custom time with id \".concat(Np(e),\" already exists\"));var i=new xD(this.body,R.extend({},this.options,{time:t,id:e,snap:(this.itemSet||this).options.snap}));return this.customTimes.push(i),this.components.push(i),this._redraw(),e}},{key:\"removeCustomTime\",value:function(e){var i=this,t=E(t=this.customTimes).call(t,function(t){return t.options.id===e});if(0===t.length)throw new Error(\"No custom time bar found with id \".concat(Np(e)));O(t).call(t,function(t){var e;rd(e=i.customTimes).call(e,P(e=i.customTimes).call(e,t),1),rd(e=i.components).call(e,P(e=i.components).call(e,t),1),t.destroy()})}},{key:\"getVisibleItems\",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:\"getItemsAtCurrentTime\",value:function(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:\"getVisibleGroups\",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:\"fit\",value:function(t,e){var i,n,o=this.getDataRange();null===o.min&&null===o.max||(n=o.max-o.min,i=new Date(o.min.valueOf()-.01*n),o=new Date(o.max.valueOf()+.01*n),n=!t||void 0===t.animation||t.animation,this.range.setRange(i,o,{animation:n},e))}},{key:\"getDataRange\",value:function(){throw new Error(\"Cannot invoke abstract method getDataRange\")}},{key:\"setWindow\",value:function(t,e,i,n){var o,r;\"function\"==typeof arguments[2]&&(n=arguments[2],i={}),1==arguments.length?(o=void 0===(r=t).animation||r.animation,this.range.setRange(r.start,r.end,{animation:o})):2==arguments.length&&\"function\"==typeof e?(o=void 0===(r=t).animation||r.animation,this.range.setRange(r.start,r.end,{animation:o},n=e)):(o=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:o},n))}},{key:\"moveTo\",value:function(t,e,i){\"function\"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.range.end-this.range.start,t=R.convert(t,\"Date\").valueOf(),e=!e||void 0===e.animation||e.animation;this.range.setRange(t-n/2,t+n/2,{animation:e},i)}},{key:\"getWindow\",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:\"zoomIn\",value:function(t,e,i){var n,o;!t||t<0||1<t||(\"function\"==typeof arguments[1]&&(i=arguments[1],e={}),o=(n=this.getWindow()).start.valueOf(),n=n.end.valueOf(),this.setWindow(o+(o=((o=n-o)-o/(1+t))/2),n-o,e,i))}},{key:\"zoomOut\",value:function(t,e,i){var n,o;!t||t<0||1<t||(\"function\"==typeof arguments[1]&&(i=arguments[1],e={}),o=(n=this.getWindow()).start.valueOf(),n=n.end.valueOf(),this.setWindow(o-(o=n-o)*t/2,n+o*t/2,e,i))}},{key:\"redraw\",value:function(){this._redraw()}},{key:\"_redraw\",value:function(){this.redrawCount++;var t=this.dom;if(t&&t.container&&0!=t.root.offsetWidth){var e=!1,i=this.options,n=this.props,o=(Kx(this.options.moment,this.body,this.options.hiddenDates),\"top\"==i.orientation?(R.addClassName(t.root,\"vis-top\"),R.removeClassName(t.root,\"vis-bottom\")):(R.removeClassName(t.root,\"vis-top\"),R.addClassName(t.root,\"vis-bottom\")),i.rtl?(R.addClassName(t.root,\"vis-rtl\"),R.removeClassName(t.root,\"vis-ltr\")):(R.addClassName(t.root,\"vis-ltr\"),R.removeClassName(t.root,\"vis-rtl\")),t.root.style.maxHeight=R.option.asSize(i.maxHeight,\"\"),t.root.style.minHeight=R.option.asSize(i.minHeight,\"\"),t.root.style.width=R.option.asSize(i.width,\"\"),t.root.offsetWidth),r=(n.border.left=1,n.border.right=1,n.border.top=1,n.border.bottom=1,n.center.height=t.center.offsetHeight,n.left.height=t.left.offsetHeight,n.right.height=t.right.offsetHeight,n.top.height=t.top.clientHeight||-n.border.top,n.bottom.height=Math.round(t.bottom.getBoundingClientRect().height)||t.bottom.clientHeight||-n.border.bottom,Math.max(n.left.height,n.center.height,n.right.height)),r=n.top.height+r+n.bottom.height+n.border.top+n.border.bottom,r=(t.root.style.height=R.option.asSize(i.height,\"\".concat(r,\"px\")),n.root.height=t.root.offsetHeight,n.background.height=n.root.height,n.root.height-n.top.height-n.bottom.height),r=(n.centerContainer.height=r,n.leftContainer.height=r,n.rightContainer.height=n.leftContainer.height,n.root.width=o,n.background.width=n.root.width,this.initialDrawDone||(n.scrollbarWidth=R.getScrollBarWidth()),t.leftContainer.clientWidth),o=t.rightContainer.clientWidth,s=(i.verticalScroll?i.rtl?(n.left.width=r||-n.border.left,n.right.width=o+n.scrollbarWidth||-n.border.right):(n.left.width=r+n.scrollbarWidth||-n.border.left,n.right.width=o||-n.border.right):(n.left.width=r||-n.border.left,n.right.width=o||-n.border.right),this._setDOM(),this._updateScrollTop()),a=(\"top\"!=i.orientation.item&&(s+=Math.max(n.centerContainer.height-n.center.height-n.border.top-n.border.bottom,0)),t.center.style.transform=\"translateY(\".concat(s,\"px)\"),0==n.scrollTop?\"hidden\":\"\"),l=n.scrollTop==n.scrollTopMin?\"hidden\":\"\",a=(t.shadowTop.style.visibility=a,t.shadowBottom.style.visibility=l,t.shadowTopLeft.style.visibility=a,t.shadowBottomLeft.style.visibility=l,t.shadowTopRight.style.visibility=a,t.shadowBottomRight.style.visibility=l,i.verticalScroll&&(t.rightContainer.className=\"vis-panel vis-right vis-vertical-scroll\",t.leftContainer.className=\"vis-panel vis-left vis-vertical-scroll\",t.shadowTopRight.style.visibility=\"hidden\",t.shadowBottomRight.style.visibility=\"hidden\",t.shadowTopLeft.style.visibility=\"hidden\",t.shadowBottomLeft.style.visibility=\"hidden\",t.left.style.top=\"0px\",t.right.style.top=\"0px\"),(!i.verticalScroll||n.center.height<n.centerContainer.height)&&(t.left.style.top=\"\".concat(s,\"px\"),t.right.style.top=\"\".concat(s,\"px\"),t.rightContainer.className=t.rightContainer.className.replace(new RegExp(\"(?:^|\\\\s)vis-vertical-scroll(?:\\\\s|$)\"),\" \"),t.leftContainer.className=t.leftContainer.className.replace(new RegExp(\"(?:^|\\\\s)vis-vertical-scroll(?:\\\\s|$)\"),\" \"),n.left.width=r||-n.border.left,n.right.width=o||-n.border.right,this._setDOM()),n.center.height>n.centerContainer.height);if(this.hammer.get(\"pan\").set({direction:a?mD.DIRECTION_ALL:mD.DIRECTION_HORIZONTAL}),this.hammer.get(\"press\").set({time:this.options.longSelectPressTime}),O(l=this.components).call(l,function(t){e=t.redraw()||e}),e){if(this.redrawCount<5)return void this.body.emitter.emit(\"_change\");console.log(\"WARNING: infinite loop in redraw?\")}else this.redrawCount=0;this.body.emitter.emit(\"changed\")}}},{key:\"_setDOM\",value:function(){var t=this.props,e=this.dom,i=(t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width,t.root.width-t.left.width-t.right.width);t.center.width=i,t.centerContainer.width=i,t.top.width=i,t.bottom.width=i,e.background.style.height=\"\".concat(t.background.height,\"px\"),e.backgroundVertical.style.height=\"\".concat(t.background.height,\"px\"),e.backgroundHorizontal.style.height=\"\".concat(t.centerContainer.height,\"px\"),e.centerContainer.style.height=\"\".concat(t.centerContainer.height,\"px\"),e.leftContainer.style.height=\"\".concat(t.leftContainer.height,\"px\"),e.rightContainer.style.height=\"\".concat(t.rightContainer.height,\"px\"),e.background.style.width=\"\".concat(t.background.width,\"px\"),e.backgroundVertical.style.width=\"\".concat(t.centerContainer.width,\"px\"),e.backgroundHorizontal.style.width=\"\".concat(t.background.width,\"px\"),e.centerContainer.style.width=\"\".concat(t.center.width,\"px\"),e.top.style.width=\"\".concat(t.top.width,\"px\"),e.bottom.style.width=\"\".concat(t.bottom.width,\"px\"),e.background.style.left=\"0\",e.background.style.top=\"0\",e.backgroundVertical.style.left=\"\".concat(t.left.width+t.border.left,\"px\"),e.backgroundVertical.style.top=\"0\",e.backgroundHorizontal.style.left=\"0\",e.backgroundHorizontal.style.top=\"\".concat(t.top.height,\"px\"),e.centerContainer.style.left=\"\".concat(t.left.width,\"px\"),e.centerContainer.style.top=\"\".concat(t.top.height,\"px\"),e.leftContainer.style.left=\"0\",e.leftContainer.style.top=\"\".concat(t.top.height,\"px\"),e.rightContainer.style.left=\"\".concat(t.left.width+t.center.width,\"px\"),e.rightContainer.style.top=\"\".concat(t.top.height,\"px\"),e.top.style.left=\"\".concat(t.left.width,\"px\"),e.top.style.top=\"0\",e.bottom.style.left=\"\".concat(t.left.width,\"px\"),e.bottom.style.top=\"\".concat(t.top.height+t.centerContainer.height,\"px\"),e.center.style.left=\"0\",e.left.style.left=\"0\",e.right.style.left=\"0\"}},{key:\"setCurrentTime\",value:function(t){if(!this.currentTime)throw new Error(\"Option showCurrentTime must be true\");this.currentTime.setCurrentTime(t)}},{key:\"getCurrentTime\",value:function(){if(this.currentTime)return this.currentTime.getCurrentTime();throw new Error(\"Option showCurrentTime must be true\")}},{key:\"_toTime\",value:function(t){return eD(this,t,this.props.center.width)}},{key:\"_toGlobalTime\",value:function(t){return eD(this,t,this.props.root.width)}},{key:\"_toScreen\",value:function(t){return tD(this,t,this.props.center.width)}},{key:\"_toGlobalScreen\",value:function(t){return tD(this,t,this.props.root.width)}},{key:\"_initAutoResize\",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:\"_startAutoResize\",value:function(){var i=this;this._stopAutoResize(),this._onResize=function(){var t,e;1==i.options.autoResize?i.dom.root&&(t=i.dom.root.offsetHeight,(e=i.dom.root.offsetWidth)==i.props.lastWidth&&t==i.props.lastHeight||(i.props.lastWidth=e,i.props.lastHeight=t,i.props.scrollbarWidth=R.getScrollBarWidth(),i.body.emitter.emit(\"_change\"))):i._stopAutoResize()},R.addEventListener(window,\"resize\",this._onResize),i.dom.root&&(i.props.lastWidth=i.dom.root.offsetWidth,i.props.lastHeight=i.dom.root.offsetHeight),this.watchTimer=dD(this._onResize,1e3)}},{key:\"_stopAutoResize\",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(R.removeEventListener(window,\"resize\",this._onResize),this._onResize=null)}},{key:\"_onTouch\",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:\"_onPinch\",value:function(t){this.touch.allowDragging=!1}},{key:\"_onDrag\",value:function(t){var e;t&&this.touch.allowDragging&&(t=t.deltaY,e=this._getScrollTop(),t=this._setScrollTop(this.touch.initialScrollTop+t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),t!=e)&&this.emit(\"verticalDrag\")}},{key:\"_setScrollTop\",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:\"_updateScrollTop\",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&(\"top\"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),0<this.props.scrollTop&&(this.props.scrollTop=0),this.props.scrollTop<t&&(this.props.scrollTop=t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:\"_getScrollTop\",value:function(){return this.props.scrollTop}},{key:\"_createConfigurator\",value:function(){throw new Error(\"Cannot invoke abstract method _createConfigurator\")}}]),SD);function SD(){k(this,SD)}Gt(DD.prototype);var CD=function(){cv(r,Yx);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e){k(this,r),(i=o.call(this)).body=t,i.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:kk,locales:kD,locale:\"en\"},i.options=R.extend({},i.defaultOptions),i.setOptions(e),i.options.locales=R.extend({},kD,i.options.locales);var i,n=i.defaultOptions.locales[i.defaultOptions.locale];return O(t=sc(i.options.locales)).call(t,function(t){i.options.locales[t]=R.extend({},n,i.options.locales[t])}),i.offset=0,i._create(),i}return D(r,[{key:\"_create\",value:function(){var t=document.createElement(\"div\");t.className=\"vis-current-time\",t.style.position=\"absolute\",t.style.top=\"0px\",t.style.height=\"100%\",this.bar=t}},{key:\"destroy\",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:\"setOptions\",value:function(t){t&&R.selectiveExtend([\"rtl\",\"showCurrentTime\",\"alignCurrentTime\",\"moment\",\"locale\",\"locales\"],this.options,t)}},{key:\"redraw\",value:function(){var t,e,i,n;return this.options.showCurrentTime?(e=this.body.dom.backgroundVertical,this.bar.parentNode!=e&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),e.appendChild(this.bar),this.start()),e=this.options.moment(uc()+this.offset),this.options.alignCurrentTime&&(e=e.startOf(this.options.alignCurrentTime)),i=this.body.util.toScreen(e),(n=this.options.locales[this.options.locale])||(this.warned||(console.warn(\"WARNING: options.locales['\".concat(this.options.locale,\"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization\")),this.warned=!0),n=this.options.locales.en),n=(n=Uu(t=Uu(t=\"\".concat(n.current,\" \")).call(t,n.time,\": \")).call(t,e.format(\"dddd, MMMM Do YYYY, H:mm:ss\"))).charAt(0).toUpperCase()+n.substring(1),this.options.rtl?this.bar.style.transform=\"translateX(\".concat(-1*i,\"px)\"):this.bar.style.transform=\"translateX(\".concat(i,\"px)\"),this.bar.title=n):(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop()),!1}},{key:\"start\",value:function(){var i=this;!function t(){i.stop();var e=1/i.body.range.conversion(i.body.domProps.center.width).scale/10;1e3<(e=e<30?30:e)&&(e=1e3),i.redraw(),i.body.emitter.emit(\"currentTimeTick\"),i.currentTimeTimer=Wp(t,e)}()}},{key:\"stop\",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:\"setCurrentTime\",value:function(t){var t=R.convert(t,\"Date\").valueOf(),e=uc();this.offset=t-e,this.redraw()}},{key:\"getCurrentTime\",value:function(){return new Date(uc()+this.offset)}}]),r}(),TD={},Ra={get exports(){return TD},set exports(t){TD=t}},bo=p,MD=ut.find,OD=!0,Dn=(\"find\"in[]&&Array(1).find(function(){OD=!1}),bo({target:\"Array\",proto:!0,forced:OD},{find:function(t){return MD(this,t,1<arguments.length?arguments[1]:void 0)}}),iu(\"Array\").find),ED=d,PD=Dn,ID=Array.prototype,AD=(Ra.exports=function(t){var e=t.find;return t===ID||ED(ID,t)&&e===ID.find?PD:e},t(TD)),LD={},qt={get exports(){return LD},set exports(t){LD=t}},j=p,ND=ut.findIndex,Va=\"findIndex\",RD=!0,Aa=(Va in[]&&Array(1)[Va](function(){RD=!1}),j({target:\"Array\",proto:!0,forced:RD},{findIndex:function(t){return ND(this,t,1<arguments.length?arguments[1]:void 0)}}),iu(\"Array\").findIndex),FD=d,jD=Aa,YD=Array.prototype,HD=(qt.exports=function(t){var e=t.findIndex;return t===YD||FD(YD,t)&&e===YD.findIndex?jD:e},t(LD));function zD(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var BD=.001;function GD(t){sw(t).call(t,function(t,e){return t.data.start-e.data.start})}function WD(t){sw(t).call(t,function(t,e){return(\"end\"in t.data?t.data.end:t.data.start)-(\"end\"in e.data?e.data.end:e.data.start)})}function VD(t,e,i,n){return null===ZD(t,e.item,!1,function(t){return t.stack&&(i||null===t.top)},function(t){return t.stack},function(t){return e.axis},n)}function UD(t,e,i){t=ZD(t,e.item,!1,function(t){return t.stack},function(t){return 1},function(t){return t.baseTop});i.height=t-i.top+.5*e.item.vertical}function XD(t,e,i,n){for(var o=0;o<t.length;o++)if(null==t[o].data.subgroup)t[o].top=e.item.vertical;else if(void 0!==t[o].data.subgroup&&n){var r,s=0;for(r in i)i.hasOwnProperty(r)&&1==i[r].visible&&i[r].index<i[t[o].data.subgroup].index&&(s+=i[r].height,i[t[o].data.subgroup].top=s);t[o].top=s+.5*e.item.vertical}n||qD(t,e,i)}function qD(t,e,i){var n;ZD(sw(n=Zd(i)).call(n,function(t,e){return t.index>e.index?1:t.index<e.index?-1:0}),{vertical:0},!0,function(t){return 1},function(t){return 1},function(t){return 0});for(var o=0;o<t.length;o++)void 0!==t[o].data.subgroup&&(t[o].top=i[t[o].data.subgroup].top+.5*e.item.vertical)}function $D(t,e,i){var n,o=!1,r=[];for(n in i)i[n].hasOwnProperty(\"index\")?r[i[n].index]=n:r.push(n);for(var s=0;s<r.length;s++)if(i.hasOwnProperty(n=r[s])){for(var a in o=o||i[n].stack,i[n].top=0,i)i[a].visible&&i[n].index>i[a].index&&(i[n].top+=i[a].height);for(var l=t[n],h=0;h<l.length;h++)void 0!==l[h].data.subgroup&&(l[h].top=i[l[h].data.subgroup].top+.5*e.item.vertical,i[n].stack)&&(l[h].baseTop=l[h].top);o&&i[n].stack&&UD(t[n],e,i[n])}}function ZD(t,l,e,n,h,u,c){var d=function(t){return t.start},p=function(t){return t.end};e||(d=!(!t[0]||!t[0].options.rtl)?function(t){return t.right}:function(t){return t.left},p=function(t){return d(t)+t.width+l.horizontal});var o,m=[],f=[],g=null,v=0,r=function(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?zD(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?zD(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(t);try{for(r.s();!(o=r.n()).done;)!function(){var e,t=o.value;n(t)?m.push(t):h(t)&&(e=d(t),null!==g&&e<g-BD&&(v=0),g=e,v=KD(f,function(t){return d(t)-BD>e},v),rd(f).call(f,v,0,t),v++)}()}catch(t){r.e(t)}finally{r.f()}for(var g=null,y=null,v=0,b=0,_=0,w=0,s=function(){var t=m.shift(),e=(t.top=u(t),d(t)),r=p(t);null!==g&&e<g-BD&&(v=_=b=0,y=null),g=e,b=KD(f,function(t){return e<p(t)-BD},b),(null===y||y<r-BD)&&(_=KD(f,function(t){return r<d(t)-BD},Math.max(b,_))),null!==y&&r<y-BD&&(_=function(t,e,n){for(e=e||0,i=(n=n||t.length)-1;i>=e;i--)if(o=t[i],r+BD>=d(o))return i;var o;return e-1}(f,b,horizontalOVerlapEndIndex)+1);for(var n=sw(a=E(a=qu(f).call(f,b,_)).call(a,function(t){return e<p(t)-BD&&r-BD>d(t)})).call(a,function(t,e){return t.top-e.top}),o=0;o<n.length;o++){var s=n[o];t.top-l.vertical+BD<s.top+s.height&&t.top+t.height+l.vertical-BD>s.top&&(t.top=s.top+s.height+l.vertical)}h(t)&&(v=KD(f,function(t){return d(t)-BD>e},v),rd(f).call(f,v,0,t),v++);var a=t.top+t.height;if(w<a&&(w=a),c&&c())return{v:null}};0<m.length;){var a=s();if(\"object\"===x(a))return a.v}return w}function KD(t,e,i){i=i||0;var n=HD(n=qu(t).call(t,i)).call(n,e);return-1===n?t.length:n+i}var Li=Object.freeze({__proto__:null,nostack:XD,orderByEnd:WD,orderByStart:GD,stack:VD,stackSubgroups:qD,stackSubgroupsWithInnerStack:$D,substack:UD}),JD=\"__background__\",QD=(D(tS,[{key:\"_create\",value:function(){var t=document.createElement(\"div\"),e=(this.itemSet.options.groupEditable.order?t.className=\"vis-label draggable\":t.className=\"vis-label\",this.dom.label=t,document.createElement(\"div\")),t=(e.className=\"vis-inner\",t.appendChild(e),this.dom.inner=e,document.createElement(\"div\"));t.className=\"vis-group\",(t[\"vis-group\"]=this).dom.foreground=t,this.dom.background=document.createElement(\"div\"),this.dom.background.className=\"vis-group\",this.dom.axis=document.createElement(\"div\"),this.dom.axis.className=\"vis-group\",this.dom.marker=document.createElement(\"div\"),this.dom.marker.style.visibility=\"hidden\",this.dom.marker.style.position=\"absolute\",this.dom.marker.innerHTML=\"\",this.dom.background.appendChild(this.dom.marker)}},{key:\"setData\",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var e;if(t&&t.subgroupVisibility)for(var i in t.subgroupVisibility)this.subgroupVisibility[i]=t.subgroupVisibility[i];if((e=this.itemSet.options&&this.itemSet.options.groupTemplate?(n=M(n=this.itemSet.options.groupTemplate).call(n,this))(t,this.dom.inner):t&&t.content)instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object&&e.isReactComponent||(e instanceof Object?n(t,this.dom.inner):this.dom.inner.innerHTML=null!=e?R.xss(e):R.xss(this.groupId||\"\"));this.dom.label.title=t&&t.title||\"\",this.dom.inner.firstChild?R.removeClassName(this.dom.inner,\"vis-hidden\"):R.addClassName(this.dom.inner,\"vis-hidden\"),t&&t.nestedGroups?(this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),R.addClassName(this.dom.label,\"vis-nesting-group\"),this.showNested?(R.removeClassName(this.dom.label,\"collapsed\"),R.addClassName(this.dom.label,\"expanded\")):(R.removeClassName(this.dom.label,\"expanded\"),R.addClassName(this.dom.label,\"collapsed\"))):this.nestedGroups&&(this.nestedGroups=null,R.removeClassName(this.dom.label,\"collapsed\"),R.removeClassName(this.dom.label,\"expanded\"),R.removeClassName(this.dom.label,\"vis-nesting-group\")),t&&(t.treeLevel||t.nestedInGroup)?(R.addClassName(this.dom.label,\"vis-nested-group\"),t.treeLevel?R.addClassName(this.dom.label,\"vis-group-level-\"+t.treeLevel):R.addClassName(this.dom.label,\"vis-group-level-unknown-but-gte1\")):R.addClassName(this.dom.label,\"vis-group-level-0\");var n=t&&t.className||null;n!=this.className&&(this.className&&(R.removeClassName(this.dom.label,this.className),R.removeClassName(this.dom.foreground,this.className),R.removeClassName(this.dom.background,this.className),R.removeClassName(this.dom.axis,this.className)),R.addClassName(this.dom.label,n),R.addClassName(this.dom.foreground,n),R.addClassName(this.dom.background,n),R.addClassName(this.dom.axis,n),this.className=n),this.style&&(R.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(R.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:\"getLabelWidth\",value:function(){return this.props.label.width}},{key:\"_didMarkerHeightChange\",value:function(){var t=this.dom.marker.clientHeight;if(t==this.lastMarkerHeight)return!1;this.lastMarkerHeight=t;var i={},n=0;if(O(R).call(R,this.items,function(t,e){t.dirty=!0,t.displayed&&(i[e]=t.redraw(!0),n=i[e].length)}),0<n)for(var e=0;e<n;e++)!function(e){O(R).call(R,i,function(t){t[e]()})}(e);return!0}},{key:\"_calculateGroupSizeAndPosition\",value:function(){var t=this.dom.foreground,e=t.offsetTop,i=t.offsetLeft,t=t.offsetWidth;this.top=e,this.right=i,this.width=t}},{key:\"_shouldBailItemsRedraw\",value:function(){var e=this,t=this.itemSet.options.onTimeout,t={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:t&&t.timeoutMs,userBailFunction:t&&t.callback,shouldBailStackItems:this.shouldBailStackItems},i=null;if(!this.itemSet.initialDrawDone){if(t.shouldBailStackItems)return!0;Math.abs(uc()-new Date(t.relativeBailingTime))>t.bailTimeMs&&(t.userBailFunction&&null==this.itemSet.userContinueNotBail?t.userBailFunction(function(t){e.itemSet.userContinueNotBail=t,i=!t}):i=0==e.itemSet.userContinueNotBail)}return i}},{key:\"_redrawItems\",value:function(t,e,i,n){var o=this;if(t||this.stackDirty||this.isVisible&&!e){var r,s,a={byEnd:E(t=this.orderedItems.byEnd).call(t,function(t){return!t.isCluster}),byStart:E(e=this.orderedItems.byStart).call(e,function(t){return!t.isCluster})},l={byEnd:Pu(new L1(E(e=T(t=this.orderedItems.byEnd).call(t,function(t){return t.cluster})).call(e,function(t){return!!t}))),byStart:Pu(new L1(E(e=T(t=this.orderedItems.byStart).call(t,function(t){return t.cluster})).call(e,function(t){return!!t})))},t=function(){var t,e=o._updateItemsInRange(a,E(e=o.visibleItems).call(e,function(t){return!t.isCluster}),n),i=o._updateClustersInRange(l,E(i=o.visibleItems).call(i,function(t){return t.isCluster}),n);return Uu(t=[]).call(t,Pu(e),Pu(i))},e=function(i){var t,n={};for(t in o.subgroups)!function(e){var t=E(t=o.visibleItems).call(t,function(t){return t.data.subgroup===e});n[e]=i?sw(t).call(t,function(t,e){return i(t.data,e.data)}):t}(t);return n};\"function\"==typeof this.itemSet.options.order?(r=this).doInnerStack&&this.itemSet.options.stackSubgroups?($D(e(this.itemSet.options.order),i,this.subgroups),this.visibleItems=t(),this._updateSubGroupHeights(i)):(this.visibleItems=t(),this._updateSubGroupHeights(i),s=sw(s=E(s=qu(s=this.visibleItems).call(s)).call(s,function(t){return t.isCluster||!t.isCluster&&!t.cluster})).call(s,function(t,e){return r.itemSet.options.order(t.data,e.data)}),this.shouldBailStackItems=VD(s,i,!0,M(s=this._shouldBailItemsRedraw).call(s,this))):(this.visibleItems=t(),this._updateSubGroupHeights(i),this.itemSet.options.stack?this.doInnerStack&&this.itemSet.options.stackSubgroups?$D(e(),i,this.subgroups):this.shouldBailStackItems=VD(this.visibleItems,i,!0,M(s=this._shouldBailItemsRedraw).call(s,this)):XD(this.visibleItems,i,this.subgroups,this.itemSet.options.stackSubgroups));for(var h=0;h<this.visibleItems.length;h++)this.visibleItems[h].repositionX(),void 0===this.subgroupVisibility[this.visibleItems[h].data.subgroup]||this.subgroupVisibility[this.visibleItems[h].data.subgroup]||this.visibleItems[h].hide();this.itemSet.options.cluster&&O(R).call(R,this.items,function(t){t.cluster&&t.displayed&&t.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit(\"destroyTimeline\"),this.stackDirty=!1}}},{key:\"_didResize\",value:function(t,e){t=R.updateProperty(this,\"height\",e)||t;var e=this.dom.inner.clientWidth,i=this.dom.inner.clientHeight;return t=R.updateProperty(this.props.label,\"width\",e)||t,R.updateProperty(this.props.label,\"height\",i)||t}},{key:\"_applyGroupHeight\",value:function(t){this.dom.background.style.height=\"\".concat(t,\"px\"),this.dom.foreground.style.height=\"\".concat(t,\"px\"),this.dom.label.style.height=\"\".concat(t,\"px\")}},{key:\"_updateItemsVerticalPosition\",value:function(t){for(var e=0,i=this.visibleItems.length;e<i;e++){var n=this.visibleItems[e];n.repositionY(t),this.isVisible||this.groupId==JD||n.displayed&&n.hide()}}},{key:\"redraw\",value:function(e,i,n,t){var o,r,s=this,a=!1,l=this.isVisible,h=[function(){n=s._didMarkerHeightChange.call(s)||n},M(h=this._updateSubGroupHeights).call(h,this,i),M(h=this._calculateGroupSizeAndPosition).call(h,this),function(){var t;s.isVisible=M(t=s._isGroupVisible).call(t,s)(e,i)},function(){var t;M(t=s._redrawItems).call(t,s)(n,l,i,e)},M(h=this._updateSubgroupsSizes).call(h,this),function(){var t;o=M(t=s._calculateHeight).call(t,s)(i)},M(h=this._calculateGroupSizeAndPosition).call(h,this),function(){var t;a=M(t=s._didResize).call(t,s)(a,o)},function(){var t;M(t=s._applyGroupHeight).call(t,s)(o)},function(){var t;M(t=s._updateItemsVerticalPosition).call(t,s)(i)},M(h=function(){return a=!s.isVisible&&s.height?!1:a}).call(h,this)];return t?h:(O(h).call(h,function(t){r=t()}),r)}},{key:\"_updateSubGroupHeights\",value:function(e){var i,n=this;0<sc(this.subgroups).length&&((i=this)._resetSubgroups(),O(R).call(R,this.visibleItems,function(t){void 0!==t.data.subgroup&&(i.subgroups[t.data.subgroup].height=Math.max(i.subgroups[t.data.subgroup].height,t.height+e.item.vertical),i.subgroups[t.data.subgroup].visible=void 0===n.subgroupVisibility[t.data.subgroup]||Boolean(n.subgroupVisibility[t.data.subgroup]))}))}},{key:\"_isGroupVisible\",value:function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop}},{key:\"_calculateHeight\",value:function(t){var e,i,n,o,r;return 0<(i=\"fixed\"===this.heightMode?R.toArray(this.items):this.visibleItems).length?(n=i[0].top,o=i[0].top+i[0].height,O(R).call(R,i,function(t){n=Math.min(n,t.top),o=Math.max(o,t.top+t.height)}),n>t.axis&&(r=n-t.axis,o-=r,O(R).call(R,i,function(t){t.top-=r})),e=Math.ceil(o+t.item.vertical/2),\"fitItems\"!==this.heightMode&&(e=Math.max(e,this.props.label.height))):e=this.props.label.height,e}},{key:\"show\",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:\"hide\",value:function(){var t=this.dom.label,t=(t.parentNode&&t.parentNode.removeChild(t),this.dom.foreground),t=(t.parentNode&&t.parentNode.removeChild(t),this.dom.background),t=(t.parentNode&&t.parentNode.removeChild(t),this.dom.axis);t.parentNode&&t.parentNode.removeChild(t)}},{key:\"add\",value:function(t){var e;(this.items[t.id]=t).setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),Ad(e=this.visibleItems).call(e,t)||(e=this.itemSet.body.range,this._checkIfVisible(t,this.visibleItems,e))}},{key:\"_addToSubgroup\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t.data.subgroup,i=(null!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[e].start)&&(this.subgroups[e].start=t.data.start),t.data.end||t.data.start);new Date(i)>new Date(this.subgroups[e].end)&&(this.subgroups[e].end=i),this.subgroups[e].items.push(t)}},{key:\"_updateSubgroupsSizes\",value:function(){var n=this;if(n.subgroups)for(var o in n.subgroups)!function(){var t=n.subgroups[o].items[0].data.end||n.subgroups[o].items[0].data.start,e=n.subgroups[o].items[0].data.start,i=t-1;O(t=n.subgroups[o].items).call(t,function(t){new Date(t.data.start)<new Date(e)&&(e=t.data.start);t=t.data.end||t.data.start;new Date(t)>new Date(i)&&(i=t)}),n.subgroups[o].start=e,n.subgroups[o].end=new Date(i-1)}()}},{key:\"orderSubgroups\",value:function(){if(void 0!==this.subgroupOrderer){var t=[];if(\"string\"==typeof this.subgroupOrderer){for(var e in this.subgroups)t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});sw(t).call(t,function(t,e){return t.sortField-e.sortField})}else if(\"function\"==typeof this.subgroupOrderer){for(var i in this.subgroups)t.push(this.subgroups[i].items[0].data);sw(t).call(t,this.subgroupOrderer)}if(0<t.length)for(var n=0;n<t.length;n++)this.subgroups[t[n].subgroup].index=n}}},{key:\"_resetSubgroups\",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:\"remove\",value:function(t){delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var e,i=P(i=this.visibleItems).call(i,t);-1!=i&&rd(e=this.visibleItems).call(e,i,1),void 0!==t.data.subgroup&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:\"_removeFromSubgroup\",value:function(t){var e,i,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;null!=n&&(e=this.subgroups[n])&&0<=(i=P(i=e.items).call(i,t))&&(rd(t=e.items).call(t,i,1),e.items.length?this._updateSubgroupsSizes():delete this.subgroups[n])}},{key:\"removeFromDataSet\",value:function(t){this.itemSet.removeItem(t.id)}},{key:\"order\",value:function(){for(var t=R.toArray(this.items),e=[],i=[],n=0;n<t.length;n++)void 0!==t[n].data.end&&i.push(t[n]),e.push(t[n]);this.orderedItems={byStart:e,byEnd:i},GD(this.orderedItems.byStart),WD(this.orderedItems.byEnd)}},{key:\"_updateItemsInRange\",value:function(t,e,i){var n=[],o={};if(this.isVisible||this.groupId==JD){var r=(i.end-i.start)/4,s=i.start-r,a=i.end+r;if(0<e.length)for(var l=0;l<e.length;l++)this._checkIfVisibleWithReference(e[l],n,o,i);r=R.binarySearchCustom(t.byStart,function(t){return t<s?-1:t<=a?0:1},\"data\",\"start\");if(this._traceVisible(r,t.byStart,n,o,function(t){return t.data.start<s||t.data.start>a}),1==this.checkRangedItems){this.checkRangedItems=!1;for(var h=0;h<t.byEnd.length;h++)this._checkIfVisibleWithReference(t.byEnd[h],n,o,i)}else{r=R.binarySearchCustom(t.byEnd,function(t){var e=t.start;return t.end<s?-1:e<=a?0:1},\"data\");this._traceVisible(r,t.byEnd,n,o,function(t){return t.data.end<s||t.data.start>a})}for(var u={},c=0,d=0;d<n.length;d++){var p=n[d];p.displayed||(u[d]=p.redraw(!0),c=u[d].length)}if(0<c)for(var m=0;m<c;m++)!function(e){O(R).call(R,u,function(t){t[e]()})}(m);for(var f=0;f<n.length;f++)n[f].repositionX()}else for(var g=0;g<e.length;g++){var v=e[g];v.displayed&&v.hide()}return n}},{key:\"_traceVisible\",value:function(t,e,i,n,o){if(-1!=t){for(var r=t;0<=r;r--){var s=e[r];if(o(s))break;s.isCluster&&!s.hasItems()||s.cluster||void 0===n[s.id]&&(n[s.id]=!0,i.push(s))}for(var a=t+1;a<e.length;a++){var l=e[a];if(o(l))break;l.isCluster&&!l.hasItems()||l.cluster||void 0===n[l.id]&&(n[l.id]=!0,i.push(l))}}}},{key:\"_checkIfVisible\",value:function(t,e,i){t.isVisible(i)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}},{key:\"_checkIfVisibleWithReference\",value:function(t,e,i,n){t.isVisible(n)?void 0===i[t.id]&&(i[t.id]=!0,e.push(t)):t.displayed&&t.hide()}},{key:\"_updateClustersInRange\",value:function(t,e,i){var n=[],o={};if(0<e.length)for(var r=0;r<e.length;r++)this._checkIfVisibleWithReference(e[r],n,o,i);for(var s=0;s<t.byStart.length;s++)this._checkIfVisibleWithReference(t.byStart[s],n,o,i);for(var a=0;a<t.byEnd.length;a++)this._checkIfVisibleWithReference(t.byEnd[a],n,o,i);for(var l={},h=0,u=0;u<n.length;u++){var c=n[u];c.displayed||(l[u]=c.redraw(!0),h=l[u].length)}if(0<h)for(var d=0;d<h;d++)O(R).call(R,l,function(t){t[d]()});for(var p=0;p<n.length;p++)n[p].repositionX();return n}},{key:\"changeSubgroup\",value:function(t,e,i){this._removeFromSubgroup(t,e),this._addToSubgroup(t,i),this.orderSubgroups()}},{key:\"dispose\",value:function(){var t;for(this.hide();t=this._disposeCallbacks.pop();)t()}}]),tS);function tS(t,e,i){var n=this;if(k(this,tS),this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=e&&e.subgroupOrder,this.itemSet=i,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],e&&e.nestedGroups&&(this.nestedGroups=e.nestedGroups,0==e.showNested?this.showNested=!1:this.showNested=!0),e&&e.subgroupStack)if(\"boolean\"==typeof e.subgroupStack)this.doInnerStack=e.subgroupStack,this.subgroupStackAll=e.subgroupStack;else for(var o in e.subgroupStack)this.subgroupStack[o]=e.subgroupStack[o],this.doInnerStack=this.doInnerStack||e.subgroupStack[o];e&&e.heightMode?this.heightMode=e.heightMode:this.heightMode=i.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;function r(){n.checkRangedItems=!0}this.itemSet.body.emitter.on(\"checkRangedItems\",r),this._disposeCallbacks.push(function(){n.itemSet.body.emitter.off(\"checkRangedItems\",r)}),this._create(),this.setData(e)}var eS=function(){cv(r,QD);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e,i){return k(this,r),(t=o.call(this,t,e,i)).width=0,t.height=0,t.top=0,t.left=0,t}return D(r,[{key:\"redraw\",value:function(t,e,i){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height=\"0\";for(var n=0,o=this.visibleItems.length;n<o;n++)this.visibleItems[n].repositionY(e);return!1}},{key:\"show\",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),r}();function iS(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}D(oS,[{key:\"select\",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed)&&this.redraw()}},{key:\"unselect\",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:\"setData\",value:function(t){null!=t.group&&this.data.group!=t.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0),null!=t.subgroup&&this.data.subgroup!=t.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:\"setSelectability\",value:function(t){t&&(this.selectable=void 0===t.selectable||Boolean(t.selectable))}},{key:\"setParent\",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:\"isVisible\",value:function(t){return!1}},{key:\"show\",value:function(){return!1}},{key:\"hide\",value:function(){return!1}},{key:\"redraw\",value:function(){}},{key:\"repositionX\",value:function(){}},{key:\"repositionY\",value:function(){}},{key:\"_repaintDragCenter\",value:function(){var t,e,i;this.selected&&this.editable.updateTime&&!this.dom.dragCenter?(e=this,(i=document.createElement(\"div\")).className=\"vis-drag-center\",(i.dragCenterItem=this).hammerDragCenter=new mD(i),this.hammerDragCenter.on(\"tap\",function(t){e.parent.itemSet.body.emitter.emit(\"click\",{event:t,item:e.id})}),this.hammerDragCenter.on(\"doubletap\",function(t){t.stopPropagation(),e.parent.itemSet._onUpdateItem(e),e.parent.itemSet.body.emitter.emit(\"doubleClick\",{event:t,item:e.id})}),this.hammerDragCenter.on(\"panstart\",function(t){t.stopPropagation(),e.parent.itemSet._onDragStart(t)}),this.hammerDragCenter.on(\"panmove\",M(t=e.parent.itemSet._onDrag).call(t,e.parent.itemSet)),this.hammerDragCenter.on(\"panend\",M(t=e.parent.itemSet._onDragEnd).call(t,e.parent.itemSet)),this.hammerDragCenter.get(\"press\").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(i,this.dom.dragLeft):this.dom.box.appendChild(i):this.dom.point&&this.dom.point.appendChild(i),this.dom.dragCenter=i):!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter)&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null)}},{key:\"_repaintDeleteButton\",value:function(t){var e,i,n,o=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;this.selected&&o&&!this.dom.deleteButton?(e=this,i=document.createElement(\"div\"),this.options.rtl?i.className=\"vis-delete-rtl\":i.className=\"vis-delete\",(n=this.options.locales[this.options.locale])||(this.warned||(console.warn(\"WARNING: options.locales['\".concat(this.options.locale,\"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization\")),this.warned=!0),n=this.options.locales.en),i.title=n.deleteSelected,this.hammerDeleteButton=new mD(i).on(\"tap\",function(t){t.stopPropagation(),e.parent.removeFromDataSet(e)}),t.appendChild(i),this.dom.deleteButton=i):this.selected&&o||!this.dom.deleteButton||(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:\"_repaintOnItemUpdateTimeTooltip\",value:function(t){var e,i;this.options.tooltipOnItemUpdateTime&&(i=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable,this.selected&&i&&!this.dom.onItemUpdateTimeTooltip?((i=document.createElement(\"div\")).className=\"vis-onUpdateTime-tooltip\",t.appendChild(i),this.dom.onItemUpdateTimeTooltip=i):!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null),this.dom.onItemUpdateTimeTooltip)&&(this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?\"visible\":\"hidden\",this.dom.onItemUpdateTimeTooltip.style.transform=\"translateX(-50%)\",this.dom.onItemUpdateTimeTooltip.style.left=\"50%\",t=this.parent.itemSet.body.domProps.scrollTop,(\"top\"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-t?(this.dom.onItemUpdateTimeTooltip.style.bottom=\"\",this.dom.onItemUpdateTimeTooltip.style.top=\"\".concat(this.height+2,\"px\")):(this.dom.onItemUpdateTimeTooltip.style.top=\"\",this.dom.onItemUpdateTimeTooltip.style.bottom=\"\".concat(this.height+2,\"px\")),this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template?e=M(i=this.options.tooltipOnItemUpdateTime.template).call(i,this)(this.data):(e=\"start: \".concat(kk(this.data.start).format(\"MM/DD/YYYY hh:mm\")),this.data.end&&(e+=\"<br> end: \".concat(kk(this.data.end).format(\"MM/DD/YYYY hh:mm\")))),this.dom.onItemUpdateTimeTooltip.innerHTML=R.xss(e))}},{key:\"_getItemData\",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:\"_updateContents\",value:function(t){var e,i,n=this._getItemData(),o=(this.dom.box||this.dom.point).getElementsByClassName(\"vis-item-visible-frame\")[0],r=this.options.visibleFrameTemplate?(i=M(i=this.options.visibleFrameTemplate).call(i,this),R.xss(i(n,o))):\"\";if(o)if(r instanceof Object&&!(r instanceof Element))i(n,o);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(r)){if(r instanceof Element)o.innerHTML=\"\",o.appendChild(r);else if(null!=r)o.innerHTML=R.xss(r);else if(\"background\"!=this.data.type||void 0!==this.data.content)throw new Error('Property \"content\" missing in item '.concat(this.id));this.itemVisibleFrameContent=r}if((o=this.options.template?(e=M(i=this.options.template).call(i,this))(n,t,this.data):this.data.content)instanceof Object&&!(o instanceof Element))e(n,t);else if(this._contentToString(this.content)!==this._contentToString(o)){if(o instanceof Element)t.innerHTML=\"\",t.appendChild(o);else if(null!=o)t.innerHTML=R.xss(o);else if(\"background\"!=this.data.type||void 0!==this.data.content)throw new Error('Property \"content\" missing in item '.concat(this.id));this.content=o}}},{key:\"_updateDataAttributes\",value:function(t){if(this.options.dataAttributes&&0<this.options.dataAttributes.length){var e=[];if(C(this.options.dataAttributes))e=this.options.dataAttributes;else{if(\"all\"!=this.options.dataAttributes)return;e=sc(this.data)}var i,n=function(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?iS(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?iS(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(e);try{for(n.s();!(i=n.n()).done;){var o=i.value,r=this.data[o];null!=r?t.setAttribute(\"data-\".concat(o),r):t.removeAttribute(\"data-\".concat(o))}}catch(t){n.e(t)}finally{n.f()}}}},{key:\"_updateStyle\",value:function(t){this.style&&(R.removeCssText(t,this.style),this.style=null),this.data.style&&(R.addCssText(t,this.data.style),this.style=this.data.style)}},{key:\"_contentToString\",value:function(t){return\"string\"!=typeof t&&t&&\"outerHTML\"in t?t.outerHTML:t}},{key:\"_updateEditStatus\",value:function(){this.options&&(\"boolean\"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:\"object\"===x(this.options.editable)&&(this.editable={},R.selectiveExtend([\"updateTime\",\"updateGroup\",\"remove\"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&(\"boolean\"==typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:\"object\"===x(this.data.editable)&&(this.editable={},R.selectiveExtend([\"updateTime\",\"updateGroup\",\"remove\"],this.editable,this.data.editable)))}},{key:\"getWidthLeft\",value:function(){return 0}},{key:\"getWidthRight\",value:function(){return 0}},{key:\"getTitle\",value:function(){var t;return this.options.tooltip&&this.options.tooltip.template?M(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data):this.data.title}}]);var nS=oS;function oS(t,e,i){var n=this,o=(k(this,oS),this.id=null,this.parent=null,this.data=t,this.dom=null,this.conversion=e||{},this.defaultOptions={locales:kD,locale:\"en\"},this.options=R.extend({},this.defaultOptions,i),this.options.locales=R.extend({},kD,this.options.locales),this.defaultOptions.locales[this.defaultOptions.locale]);O(e=sc(this.options.locales)).call(e,function(t){n.options.locales[t]=R.extend({},o,n.options.locales[t])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=i&&i.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(t),this.editable=null,this._updateEditStatus()}nS.prototype.stack=!0;Ht=function(){cv(r,nS);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e,i){if(k(this,r),(e=o.call(this,t,e,i)).props={dot:{width:0,height:0},line:{width:0,height:0}},t&&null==t.start)throw new Error('Property \"start\" missing in item '.concat(t));return e}return D(r,[{key:\"isVisible\",value:function(t){var e,i;return!this.cluster&&(e=this.data.align||this.options.align,i=this.width*t.getMillisecondsPerPixel(),\"right\"==e?this.data.start.getTime()>t.start&&this.data.start.getTime()-i<t.end:\"left\"==e?this.data.start.getTime()+i>t.start&&this.data.start.getTime()<t.end:this.data.start.getTime()+i/2>t.start&&this.data.start.getTime()-i/2<t.end)}},{key:\"_createDomElement\",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement(\"DIV\"),this.dom.content=document.createElement(\"DIV\"),this.dom.content.className=\"vis-item-content\",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement(\"DIV\"),this.dom.line.className=\"vis-line\",this.dom.dot=document.createElement(\"DIV\"),this.dom.dot.className=\"vis-dot\",(this.dom.box[\"vis-item\"]=this).dirty=!0)}},{key:\"_appendDomElement\",value:function(){if(!this.parent)throw new Error(\"Cannot redraw item: no parent attached\");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error(\"Cannot redraw item: parent has no foreground container element\");t.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var e=this.parent.dom.background;if(!e)throw new Error(\"Cannot redraw item: parent has no background container element\");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){t=this.parent.dom.axis;if(!e)throw new Error(\"Cannot redraw item: parent has no axis container element\");t.appendChild(this.dom.dot)}this.displayed=!0}},{key:\"_updateDirtyDomComponents\",value:function(){var t;this.dirty&&(this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box),t=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(t?\" vis-editable\":\" vis-readonly\"),this.dom.box.className=\"vis-item vis-box\".concat(t),this.dom.line.className=\"vis-item vis-line\".concat(t),this.dom.dot.className=\"vis-item vis-dot\".concat(t))}},{key:\"_getDomComponentsSizes\",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:\"_updateDomComponentsSizes\",value:function(t){this.options.rtl?this.dom.box.style.right=\"0px\":this.dom.box.style.left=\"0px\",this.props.dot.height=t.dot.height,this.props.dot.width=t.dot.width,this.props.line.width=t.line.width,this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:\"_repaintDomAdditionals\",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:\"redraw\",value:function(t){var e,i,n=this,o=[M(o=this._createDomElement).call(o,this),M(o=this._appendDomElement).call(o,this),M(o=this._updateDirtyDomComponents).call(o,this),function(){n.dirty&&(e=n._getDomComponentsSizes())},function(){var t;n.dirty&&M(t=n._updateDomComponentsSizes).call(t,n)(e)},M(o=this._repaintDomAdditionals).call(o,this)];return t?o:(O(o).call(o,function(t){i=t()}),i)}},{key:\"show\",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:\"hide\",value:function(){var t;this.displayed&&((t=this.dom).box.remove?t.box.remove():t.box.parentNode&&t.box.parentNode.removeChild(t.box),t.line.remove?t.line.remove():t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.remove?t.dot.remove():t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot),this.displayed=!1)}},{key:\"repositionXY\",value:function(){function t(t,e,i){var n;void 0===e&&void 0===i||(n=3<arguments.length&&void 0!==arguments[3]&&arguments[3]?-1*e:e,t.style.transform=void 0!==i?void 0!==e?Uu(t=\"translate(\".concat(n,\"px, \")).call(t,i,\"px)\"):\"translateY(\".concat(i,\"px)\"):\"translateX(\".concat(n,\"px)\"))}var e=this.options.rtl;t(this.dom.box,this.boxX,this.boxY,e),t(this.dom.dot,this.dotX,this.dotY,e),t(this.dom.line,this.lineX,this.lineY,e)}},{key:\"repositionX\",value:function(){var t=this.conversion.toScreen(this.data.start),e=(void 0===this.data.align?this.options:this.data).align,i=this.props.line.width,n=this.props.dot.width;\"right\"==e?(this.boxX=t-this.width,this.lineX=t-i,this.dotX=t-i/2-n/2):\"left\"==e?(this.boxX=t,this.lineX=t,this.dotX=t+i/2-n/2):(this.boxX=t-this.width/2,this.lineX=this.options.rtl?t-i:t-i/2,this.dotX=t-n/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:\"repositionY\",value:function(){var t=this.options.orientation.item,e=this.dom.line.style;\"top\"==t?(t=this.parent.top+this.top+1,this.boxY=this.top||0,e.height=\"\".concat(t,\"px\"),e.bottom=\"\",e.top=\"0\"):(t=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top,this.boxY=this.parent.height-this.top-(this.height||0),e.height=\"\".concat(t,\"px\"),e.top=\"\",e.bottom=\"0\"),this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:\"getWidthLeft\",value:function(){return this.width/2}},{key:\"getWidthRight\",value:function(){return this.width/2}}]),r}();ce=function(){cv(r,nS);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e,i){if(k(this,r),(e=o.call(this,t,e,i)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},t&&null==t.start)throw new Error('Property \"start\" missing in item '.concat(t));return e}return D(r,[{key:\"isVisible\",value:function(t){var e;return!this.cluster&&(e=this.width*t.getMillisecondsPerPixel(),this.data.start.getTime()+e>t.start)&&this.data.start<t.end}},{key:\"_createDomElement\",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement(\"div\"),this.dom.content=document.createElement(\"div\"),this.dom.content.className=\"vis-item-content\",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement(\"div\"),this.dom.point.appendChild(this.dom.dot),(this.dom.point[\"vis-item\"]=this).dirty=!0)}},{key:\"_appendDomElement\",value:function(){if(!this.parent)throw new Error(\"Cannot redraw item: no parent attached\");if(!this.dom.point.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error(\"Cannot redraw item: parent has no foreground container element\");t.appendChild(this.dom.point)}this.displayed=!0}},{key:\"_updateDirtyDomComponents\",value:function(){var t;this.dirty&&(this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point),t=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(t?\" vis-editable\":\" vis-readonly\"),this.dom.point.className=\"vis-item vis-point\".concat(t),this.dom.dot.className=\"vis-item vis-dot\".concat(t))}},{key:\"_getDomComponentsSizes\",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:\"_updateDomComponentsSizes\",value:function(t){this.props.dot.width=t.dot.width,this.props.dot.height=t.dot.height,this.props.content.height=t.content.height,this.options.rtl?this.dom.content.style.marginRight=\"\".concat(this.props.dot.width/2,\"px\"):this.dom.content.style.marginLeft=\"\".concat(this.props.dot.width/2,\"px\"),this.width=t.point.width,this.height=t.point.height,this.dom.dot.style.top=\"\".concat((this.height-this.props.dot.height)/2,\"px\");t=this.props.dot.width,t=this.options.rtl?t/2:t/2*-1;this.dom.dot.style.transform=\"translateX(\".concat(t,\"px\"),this.dirty=!1}},{key:\"_repaintDomAdditionals\",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:\"redraw\",value:function(t){var e,i,n=this,o=[M(o=this._createDomElement).call(o,this),M(o=this._appendDomElement).call(o,this),M(o=this._updateDirtyDomComponents).call(o,this),function(){n.dirty&&(e=n._getDomComponentsSizes())},function(){var t;n.dirty&&M(t=n._updateDomComponentsSizes).call(t,n)(e)},M(o=this._repaintDomAdditionals).call(o,this)];return t?o:(O(o).call(o,function(t){i=t()}),i)}},{key:\"repositionXY\",value:function(){var t=this.options.rtl;!function(t,e,i){var n;void 0===e&&void 0===i||(n=3<arguments.length&&void 0!==arguments[3]&&arguments[3]?-1*e:e,t.style.transform=void 0!==i?void 0!==e?Uu(t=\"translate(\".concat(n,\"px, \")).call(t,i,\"px)\"):\"translateY(\".concat(i,\"px)\"):\"translateX(\".concat(n,\"px)\"))}(this.dom.point,this.pointX,this.pointY,t)}},{key:\"show\",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:\"hide\",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:\"repositionX\",value:function(){var t=this.conversion.toScreen(this.data.start);this.pointX=t,this.options.rtl?this.right=t-this.props.dot.width:this.left=t-this.props.dot.width,this.repositionXY()}},{key:\"repositionY\",value:function(){var t=this.options.orientation.item;this.pointY=\"top\"==t?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:\"getWidthLeft\",value:function(){return this.props.dot.width}},{key:\"getWidthRight\",value:function(){return this.props.dot.width}}]),r}();var rS=function(){cv(r,nS);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e,i){if(k(this,r),(e=o.call(this,t,e,i)).props={content:{width:0}},e.overflow=!1,t){if(null==t.start)throw new Error('Property \"start\" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property \"end\" missing in item '.concat(t.id))}return e}return D(r,[{key:\"isVisible\",value:function(t){return!this.cluster&&this.data.start<t.end&&this.data.end>t.start}},{key:\"_createDomElement\",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement(\"div\"),this.dom.frame=document.createElement(\"div\"),this.dom.frame.className=\"vis-item-overflow\",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement(\"div\"),this.dom.visibleFrame.className=\"vis-item-visible-frame\",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement(\"div\"),this.dom.content.className=\"vis-item-content\",this.dom.frame.appendChild(this.dom.content),(this.dom.box[\"vis-item\"]=this).dirty=!0)}},{key:\"_appendDomElement\",value:function(){if(!this.parent)throw new Error(\"Cannot redraw item: no parent attached\");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error(\"Cannot redraw item: parent has no foreground container element\");t.appendChild(this.dom.box)}this.displayed=!0}},{key:\"_updateDirtyDomComponents\",value:function(){var t;this.dirty&&(this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box),t=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(t?\" vis-editable\":\" vis-readonly\"),this.dom.box.className=this.baseClassName+t,this.dom.content.style.maxWidth=\"none\")}},{key:\"_getDomComponentsSizes\",value:function(){return this.overflow=\"hidden\"!==window.getComputedStyle(this.dom.frame).overflow,this.whiteSpace=\"nowrap\"!==window.getComputedStyle(this.dom.content).whiteSpace,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:\"_updateDomComponentsSizes\",value:function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth=\"\",this.dirty=!1}},{key:\"_repaintDomAdditionals\",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:\"redraw\",value:function(t){var e,i,n=this,o=[M(o=this._createDomElement).call(o,this),M(o=this._appendDomElement).call(o,this),M(o=this._updateDirtyDomComponents).call(o,this),function(){var t;n.dirty&&(e=M(t=n._getDomComponentsSizes).call(t,n)())},function(){var t;n.dirty&&M(t=n._updateDomComponentsSizes).call(t,n)(e)},M(o=this._repaintDomAdditionals).call(o,this)];return t?o:(O(o).call(o,function(t){i=t()}),i)}},{key:\"show\",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:\"hide\",value:function(){var t;this.displayed&&((t=this.dom.box).parentNode&&t.parentNode.removeChild(t),this.displayed=!1)}},{key:\"repositionX\",value:function(t){var e=this.parent.width,i=this.conversion.toScreen(this.data.start),n=this.conversion.toScreen(this.data.end),o=(void 0===this.data.align?this.options:this.data).align,r=(!1===this.data.limitSize||void 0!==t&&!0!==t||(i<-e&&(i=-e),2*e<n&&(n=2*e)),Math.max(Math.round(1e3*(n-i))/1e3,1)),s=this.overflow?(this.options.rtl?this.right=i:this.left=i,this.width=r+this.props.content.width,this.props.content.width):(this.options.rtl?this.right=i:this.left=i,this.width=r,Math.min(n-i,this.props.content.width));switch(this.options.rtl?this.dom.box.style.transform=\"translateX(\".concat(-1*this.right,\"px)\"):this.dom.box.style.transform=\"translateX(\".concat(this.left,\"px)\"),this.dom.box.style.width=\"\".concat(r,\"px\"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),o){case\"left\":this.dom.content.style.transform=\"translateX(0)\";break;case\"right\":this.options.rtl?(a=-1*Math.max(r-s,0),this.dom.content.style.transform=\"translateX(\".concat(a,\"px)\")):this.dom.content.style.transform=\"translateX(\".concat(Math.max(r-s,0),\"px)\");break;case\"center\":this.options.rtl?(a=-1*Math.max((r-s)/2,0),this.dom.content.style.transform=\"translateX(\".concat(a,\"px)\")):this.dom.content.style.transform=\"translateX(\".concat(Math.max((r-s)/2,0),\"px)\");break;default:var a=this.overflow?0<n?Math.max(-i,0):-s:i<0?-i:0;this.options.rtl?this.dom.content.style.transform=\"translateX(\".concat(-1*a,\"px)\"):this.dom.content.style.transform=\"translateX(\".concat(a,\"px)\")}}},{key:\"repositionY\",value:function(){var t=this.options.orientation.item;this.dom.box.style.top=\"\".concat(\"top\"==t?this.top:this.parent.height-this.top-this.height,\"px\")}},{key:\"_repaintDragLeft\",value:function(){var t;(this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft?((t=document.createElement(\"div\")).className=\"vis-drag-left\",(t.dragLeftItem=this).dom.box.appendChild(t),this.dom.dragLeft=t):this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:\"_repaintDragRight\",value:function(){var t;(this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight?((t=document.createElement(\"div\")).className=\"vis-drag-right\",(t.dragRightItem=this).dom.box.appendChild(t),this.dom.dragRight=t):this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),r}();rS.prototype.baseClassName=\"vis-item vis-range\";var sS=function(){cv(r,nS);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e,i){if(k(this,r),(e=o.call(this,t,e,i)).props={content:{width:0}},e.overflow=!1,t){if(null==t.start)throw new Error('Property \"start\" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property \"end\" missing in item '.concat(t.id))}return e}return D(r,[{key:\"isVisible\",value:function(t){return this.data.start<t.end&&this.data.end>t.start}},{key:\"_createDomElement\",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement(\"div\"),this.dom.frame=document.createElement(\"div\"),this.dom.frame.className=\"vis-item-overflow\",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement(\"div\"),this.dom.content.className=\"vis-item-content\",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:\"_appendDomElement\",value:function(){if(!this.parent)throw new Error(\"Cannot redraw item: no parent attached\");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error(\"Cannot redraw item: parent has no background container element\");t.appendChild(this.dom.box)}this.displayed=!0}},{key:\"_updateDirtyDomComponents\",value:function(){var t;this.dirty&&(this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box),t=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\"),this.dom.box.className=this.baseClassName+t)}},{key:\"_getDomComponentsSizes\",value:function(){return this.overflow=\"hidden\"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:\"_updateDomComponentsSizes\",value:function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}},{key:\"_repaintDomAdditionals\",value:function(){}},{key:\"redraw\",value:function(t){var e,i,n=this,o=[M(o=this._createDomElement).call(o,this),M(o=this._appendDomElement).call(o,this),M(o=this._updateDirtyDomComponents).call(o,this),function(){var t;n.dirty&&(e=M(t=n._getDomComponentsSizes).call(t,n)())},function(){var t;n.dirty&&M(t=n._updateDomComponentsSizes).call(t,n)(e)},M(o=this._repaintDomAdditionals).call(o,this)];return t?o:(O(o).call(o,function(t){i=t()}),i)}},{key:\"repositionY\",value:function(t){var e,i,n=this.options.orientation.item;void 0!==this.data.subgroup?(i=this.data.subgroup,this.dom.box.style.height=\"\".concat(this.parent.subgroups[i].height,\"px\"),this.dom.box.style.top=\"\".concat(\"top\"==n?this.parent.top+this.parent.subgroups[i].top:this.parent.top+this.parent.height-this.parent.subgroups[i].top-this.parent.subgroups[i].height,\"px\"),this.dom.box.style.bottom=\"\"):this.parent instanceof eS?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=\"bottom\"==n?\"0\":\"\",this.dom.box.style.top=\"top\"==n?\"0\":\"\"):(e=this.parent.height,this.dom.box.style.top=\"\".concat(this.parent.top,\"px\"),this.dom.box.style.bottom=\"\"),this.dom.box.style.height=\"\".concat(e,\"px\")}}]),r}(),aS=(sS.prototype.baseClassName=\"vis-item vis-background\",sS.prototype.stack=!1,sS.prototype.show=rS.prototype.show,sS.prototype.hide=rS.prototype.hide,sS.prototype.repositionX=rS.prototype.repositionX,D(uS,[{key:\"setPosition\",value:function(t,e){this.x=pp(t),this.y=pp(e)}},{key:\"setText\",value:function(t){t instanceof Element?(this.frame.innerHTML=\"\",this.frame.appendChild(t)):this.frame.innerHTML=R.xss(t)}},{key:\"show\",value:function(t){var e,i,n,o,r,s,a;!0===(t=void 0===t?!0:t)?(t=this.frame.clientHeight,e=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,n=this.frame.parentNode.clientWidth,a=s=0,\"flip\"==this.overflowMethod||\"none\"==this.overflowMethod?(r=!(o=!1),s=(o=\"flip\"==this.overflowMethod&&(this.y-t<this.padding&&(r=!1),this.x+e>n-this.padding)?!0:o)?this.x-e:this.x,a=r?this.y-t:this.y):((a=(a=this.y-t)+t+this.padding>i?i-t-this.padding:a)<this.padding&&(a=this.padding),(s=(s=this.x)+e+this.padding>n?n-e-this.padding:s)<this.padding&&(s=this.padding)),this.frame.style.left=s+\"px\",this.frame.style.top=a+\"px\",this.frame.style.visibility=\"visible\",this.hidden=!1):this.hide()}},{key:\"hide\",value:function(){this.hidden=!0,this.frame.style.left=\"0\",this.frame.style.top=\"0\",this.frame.style.visibility=\"hidden\"}},{key:\"destroy\",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),uS),lS={},Kn={get exports(){return lS},set exports(t){lS=t}},hS=ut.every;function uS(t,e){k(this,uS),this.container=t,this.overflowMethod=e||\"cap\",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement(\"div\"),this.frame.className=\"vis-tooltip\",this.container.appendChild(this.frame)}p({target:\"Array\",proto:!0,forced:!Au(\"every\")},{every:function(t){return hS(this,t,1<arguments.length?arguments[1]:void 0)}});var Si=iu(\"Array\").every,cS=d,dS=Si,pS=Array.prototype,mS=(Kn.exports=function(t){var e=t.every;return t===pS||cS(pS,t)&&e===pS.every?dS:e},t(lS));function fS(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?gS(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?gS(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function gS(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var vS=function(){cv(r,nS);i=r,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function r(t,e,i){k(this,r);i=vd({},{fitOnDoubleClick:!0},i,{editable:!1});if((e=o.call(this,t,e,i)).props={content:{width:0,height:0}},t&&null!=t.uiItems)return e.id=tk(),e.group=t.group,e._setupRange(),e.emitter=e.data.eventEmitter,e.range=e.data.range,e.attached=!1,e.isCluster=!0,e.data.isCluster=!0,e;throw new Error('Property \"uiItems\" missing in item '+t.id)}return D(r,[{key:\"hasItems\",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:\"setUiItems\",value:function(t){this.detach(),this.data.uiItems=t,this._setupRange(),this.attach()}},{key:\"isVisible\",value:function(t){var e=this.data.end?this.data.end-this.data.start:0,i=this.width*t.getMillisecondsPerPixel(),e=Math.max(this.data.start.getTime()+e,this.data.start.getTime()+i);return this.data.start<t.end&&e>t.start&&this.hasItems()}},{key:\"getData\",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:\"redraw\",value:function(t){var e,i,n=[M(n=this._createDomElement).call(n,this),M(n=this._appendDomElement).call(n,this),M(n=this._updateDirtyDomComponents).call(n,this),M(n=function(){this.dirty&&(e=this._getDomComponentsSizes())}).call(n,this),M(n=function(){var t;this.dirty&&M(t=this._updateDomComponentsSizes).call(t,this)(e)}).call(n,this),M(n=this._repaintDomAdditionals).call(n,this)];return t?n:(O(n).call(n,function(t){i=t()}),i)}},{key:\"show\",value:function(){this.displayed||this.redraw()}},{key:\"hide\",value:function(){var t;this.displayed&&((t=this.dom).box.parentNode&&t.box.parentNode.removeChild(t.box),this.options.showStipes&&(t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode)&&t.dot.parentNode.removeChild(t.dot),this.displayed=!1)}},{key:\"repositionX\",value:function(){var t,e=this.conversion.toScreen(this.data.start),i=this.data.end?this.conversion.toScreen(this.data.end):0;i?this.repositionXWithRanges(e,i):(t=(void 0===this.data.align?this.options:this.data).align,this.repositionXWithoutRanges(e,t)),this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?\"block\":\"none\",this.dom.dot.style.display=this._isStipeVisible()?\"block\":\"none\",this._isStipeVisible())&&this.repositionStype(e,i)}},{key:\"repositionStype\",value:function(t,e){this.dom.line.style.display=\"block\",this.dom.dot.style.display=\"block\";var i=this.dom.line.offsetWidth,n=this.dom.dot.offsetWidth;e?(e=(i=i+t+(e-t)/2)-n/2,i=this.options.rtl?-1*i:i,e=this.options.rtl?-1*e:e,this.dom.line.style.transform=\"translateX(\".concat(i,\"px)\"),this.dom.dot.style.transform=\"translateX(\".concat(e,\"px)\")):(i=this.options.rtl?-1*t:t,e=this.options.rtl?-1*(t-n/2):t-n/2,this.dom.line.style.transform=\"translateX(\".concat(i,\"px)\"),this.dom.dot.style.transform=\"translateX(\".concat(e,\"px)\"))}},{key:\"repositionXWithoutRanges\",value:function(t,e){\"right\"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right=this.right+\"px\"):(this.left=t-this.width,this.dom.box.style.left=this.left+\"px\"):\"left\"==e?this.options.rtl?(this.right=t,this.dom.box.style.right=this.right+\"px\"):(this.left=t,this.dom.box.style.left=this.left+\"px\"):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right=this.right+\"px\"):(this.left=t-this.width/2,this.dom.box.style.left=this.left+\"px\")}},{key:\"repositionXWithRanges\",value:function(t,e){e=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(e,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+\"px\":this.dom.box.style.left=this.left+\"px\",this.dom.box.style.width=e+\"px\"}},{key:\"repositionY\",value:function(){var t,e=this.options.orientation.item;this.dom.box.style.top=\"top\"==e?(this.top||0)+\"px\":(this.parent.height-this.top-this.height||0)+\"px\",this.options.showStipes&&(\"top\"==e?(this.dom.line.style.top=\"0\",this.dom.line.style.height=this.parent.top+this.top+1+\"px\",this.dom.line.style.bottom=\"\"):(t=(e=this.parent.itemSet.props.height)-this.parent.top-this.parent.height+this.top,this.dom.line.style.top=e-t+\"px\",this.dom.line.style.bottom=\"0\"),this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+\"px\")}},{key:\"getWidthLeft\",value:function(){return this.width/2}},{key:\"getWidthRight\",value:function(){return this.width/2}},{key:\"move\",value:function(){this.repositionX(),this.repositionY()}},{key:\"attach\",value:function(){var t,e,i=fS(this.data.uiItems);try{for(i.s();!(e=i.n()).done;)e.value.cluster=this}catch(t){i.e(t)}finally{i.f()}this.data.items=T(t=this.data.uiItems).call(t,function(t){return t.data}),this.attached=!0,this.dirty=!0}},{key:\"detach\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var e,i=fS(this.data.uiItems);try{for(i.s();!(e=i.n()).done;)delete e.value.cluster}catch(t){i.e(t)}finally{i.f()}this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:\"_onDoubleClick\",value:function(){this._fit()}},{key:\"_setupRange\",value:function(){var t,e=T(e=this.data.uiItems).call(e,function(t){return{start:t.data.start.valueOf(),end:(t.data.end||t.data.start).valueOf()}}),e=(this.data.min=Math.min.apply(Math,Pu(T(e).call(e,function(t){return Math.min(t.start,t.end||t.start)}))),this.data.max=Math.max.apply(Math,Pu(T(e).call(e,function(t){return Math.max(t.start,t.end||t.start)}))),T(e=this.data.uiItems).call(e,function(t){return t.center})),e=k_(e).call(e,function(t,e){return t+e},0)/this.data.uiItems.length;dw(t=this.data.uiItems).call(t,function(t){return t.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(e),this.data.end=null)}},{key:\"_getUiItems\",value:function(){var t,e=this;return this.data.uiItems&&this.data.uiItems.length?E(t=this.data.uiItems).call(t,function(t){return t.cluster===e}):[]}},{key:\"_createDomElement\",value:function(){var t;this.dom||(this.dom={},this.dom.box=document.createElement(\"DIV\"),this.dom.content=document.createElement(\"DIV\"),this.dom.content.className=\"vis-item-content\",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement(\"DIV\"),this.dom.line.className=\"vis-cluster-line\",this.dom.line.style.display=\"none\",this.dom.dot=document.createElement(\"DIV\"),this.dom.dot.className=\"vis-cluster-dot\",this.dom.dot.style.display=\"none\"),this.options.fitOnDoubleClick&&(this.dom.box.ondblclick=M(t=r.prototype._onDoubleClick).call(t,this)),(this.dom.box[\"vis-item\"]=this).dirty=!0)}},{key:\"_appendDomElement\",value:function(){if(!this.parent)throw new Error(\"Cannot redraw item: no parent attached\");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error(\"Cannot redraw item: parent has no foreground container element\");t.appendChild(this.dom.box)}t=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!t)throw new Error(\"Cannot redraw item: parent has no background container element\");t.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var e=this.parent.dom.axis;if(!t)throw new Error(\"Cannot redraw item: parent has no axis container element\");e.appendChild(this.dom.dot)}}this.displayed=!0}},{key:\"_updateDirtyDomComponents\",value:function(){var t;this.dirty&&(this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box),t=this.baseClassName+\" \"+(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+\" vis-readonly\",this.dom.box.className=\"vis-item \"+t,this.options.showStipes&&(this.dom.line.className=\"vis-item vis-cluster-line \"+(this.selected?\" vis-selected\":\"\"),this.dom.dot.className=\"vis-item vis-cluster-dot \"+(this.selected?\" vis-selected\":\"\")),this.data.end)&&(this.dom.content.style.maxWidth=\"none\")}},{key:\"_getDomComponentsSizes\",value:function(){var t={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(t.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},t.line={width:this.dom.line.offsetWidth}),t}},{key:\"_updateDomComponentsSizes\",value:function(t){this.options.rtl?this.dom.box.style.right=\"0px\":this.dom.box.style.left=\"0px\",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:\"_repaintDomAdditionals\",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:\"_isStipeVisible\",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:\"_getFitRange\",value:function(){var t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:\"_fit\",value:function(){var t,e;this.emitter&&(e=(t=this._getFitRange()).fitStart,t=t.fitEnd,e={start:new Date(e),end:new Date(t),animation:!0},this.emitter.emit(\"fit\",e))}},{key:\"_getItemData\",value:function(){return this.data}}]),r}();function yS(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}vS.prototype.baseClassName=\"vis-item vis-range vis-cluster\";D(_S,[{key:\"createClusterItem\",value:function(t,e,i){return new vS(t,e,i)}},{key:\"setItems\",value:function(t,e){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,e&&e.applyOnChangedLevel&&(this.applyOnChangedLevel=e.applyOnChangedLevel)}},{key:\"updateData\",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:\"getClusters\",value:function(t,e,i){var n=\"boolean\"==typeof i?{}:i,o=n.maxItems,r=(r=n.clusterCriteria)||function(){return!0},o=o||1,n=-1,s=0;if(0<e){if(1<=e)return[];n=Math.abs(Math.round(Math.log(100/e)/Math.log(2))),s=Math.abs(Math.pow(2,n))}this.dataChanged&&(e=n!=this.cacheLevel,this.applyOnChangedLevel&&!e||(this._dropLevelsCache(),this._filterData())),this.cacheLevel=n;var a=this.cache[n];if(!a){for(var l in a=[],this.groups)if(this.groups.hasOwnProperty(l))for(var h=this.groups[l],u=h.length,c=0;c<u;){for(var d=h[c],p=1,m=c-1;0<=m&&d.center-h[m].center<s/2;)!h[m].cluster&&r(d.data,h[m].data)&&p++,m--;for(var f=c+1;f<h.length&&h[f].center-d.center<s/2;)r(d.data,h[f].data)&&p++,f++;for(var g=a.length-1;0<=g&&d.center-a[g].center<s;)d.group==a[g].group&&r(d.data,a[g].data)&&p++,g--;if(o<p){for(var v=p-o+1,y=[],b=c;y.length<v&&b<h.length;)r(h[c].data,h[b].data)&&y.push(h[b]),b++;var _=this.itemSet.getGroupId(d.data),_=this.itemSet.groups[_]||this.itemSet.groups.__ungrouped__,_=this._getClusterForItems(y,_,t,i);a.push(_),c+=v}else delete d.cluster,c+=1}this.cache[n]=a}return a}},{key:\"_filterData\",value:function(){var t={};this.groups=t;for(var e,i,n=0,o=Zd(this.items);n<o.length;n++){var r=o[n],s=r.parent?r.parent.groupId:\"\",a=t[s];a||(t[s]=a=[]),a.push(r),r.data.start&&(r.data.end?r.center=(r.data.start.valueOf()+r.data.end.valueOf())/2:r.center=r.data.start.valueOf())}for(e in t)t.hasOwnProperty(e)&&sw(i=t[e]).call(i,function(t,e){return t.center-e.center});this.dataChanged=!1}},{key:\"_getClusterForItems\",value:function(t,e,i,n){var o,r,s,i=T(i=i||[]).call(i,function(t){return{cluster:t,itemsIds:new L1(T(t=t.data.uiItems).call(t,function(t){return t.id}))}});if(i.length){var a,l=function(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?yS(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?yS(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(i);try{for(l.s();!(a=l.n()).done&&\"break\"!==function(){var e=a.value;if(e.itemsIds.size===t.length&&mS(t).call(t,function(t){return e.itemsIds.has(t.id)}))return s=e.cluster,\"break\"}(););}catch(t){l.e(t)}finally{l.f()}}return s?(s.setUiItems(t),s.group!==e&&(s.group&&s.group.remove(s),e)&&(e.add(s),s.group=e)):(i=n.titleTemplate||\"\",o={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},r='<div title=\"'+(i=i.replace(/{count}/,t.length))+'\">'+t.length+\"</div>\",n=vd({},n,this.itemSet.options),r={content:r,title:i,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range},s=this.createClusterItem(r,o,n),e&&(e.add(s),s.group=e),s.attach()),s}},{key:\"_dropLevelsCache\",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]);var bS=_S;function _S(t){k(this,_S),this.itemSet=t,this.groups={},this.cache={},this.cache[-1]=[]}function wS(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?kS(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?kS(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function kS(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var xS=\"__ungrouped__\",DS=\"__background__\",SS=function(){cv(u,Yx);i=u,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,o=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function u(t,e){k(this,u),(i=o.call(this)).body=t,i.defaultOptions={type:null,orientation:{item:\"bottom\"},align:\"auto\",stack:!0,stackSubgroups:!0,groupOrderSwap:function(t,e,i){var n=e.order;e.order=t.order,t.order=n},groupOrder:\"order\",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:gD.snap,onDropObjectOnItem:function(t,e,i){i(e)},onAdd:function(t,e){e(t)},onUpdate:function(t,e){e(t)},onMove:function(t,e){e(t)},onRemove:function(t,e){e(t)},onMoving:function(t,e){e(t)},onAddGroup:function(t,e){e(t)},onMoveGroup:function(t,e){e(t)},onRemoveGroup:function(t,e){e(t)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:\"flip\",delay:500},tooltipOnItemUpdateTime:!1},i.options=R.extend({},i.defaultOptions),i.options.rtl=e.rtl,i.options.onTimeout=e.onTimeout,i.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},i.dom={},i.props={},i.hammer=null;var i,r=A(i);return i.itemsData=null,i.groupsData=null,i.itemsSettingTime=null,i.initialItemSetDrawn=!1,i.userContinueNotBail=null,i.sequentialSelection=!1,i.itemListeners={add:function(t,e,i){r._onAdd(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()},update:function(t,e,i){r._onUpdate(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()},remove:function(t,e,i){r._onRemove(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()}},i.groupListeners={add:function(t,e,n){var o;r._onAddGroups(e.items),r.groupsData&&0<r.groupsData.length&&(o=r.groupsData.getDataSet(),O(e=o.get()).call(e,function(e){var t,i;e.nestedGroups&&(0!=e.showNested&&(e.showNested=!0),i=[],O(t=e.nestedGroups).call(t,function(t){t=o.get(t);t&&(t.nestedInGroup=e.id,0==e.showNested&&(t.visible=!1),i=Uu(i).call(i,t))}),o.update(i,n))}))},update:function(t,e,i){r._onUpdateGroups(e.items)},remove:function(t,e,i){r._onRemoveGroups(e.items)}},i.items={},i.groups={},i.groupIds=[],i.selection=[],i.popup=null,i.popupTimer=null,i.touchParams={},i.groupTouchParams={group:null,isDragging:!1},i._create(),i.setOptions(e),i.clusters=[],i}return D(u,[{key:\"_create\",value:function(){var e=this,t=document.createElement(\"div\"),i=(t.className=\"vis-itemset\",(t[\"vis-itemset\"]=this).dom.frame=t,document.createElement(\"div\")),i=(i.className=\"vis-background\",t.appendChild(i),this.dom.background=i,document.createElement(\"div\")),t=(i.className=\"vis-foreground\",t.appendChild(i),this.dom.foreground=i,document.createElement(\"div\")),i=(t.className=\"vis-axis\",this.dom.axis=t,document.createElement(\"div\")),t=(i.className=\"vis-labelset\",this.dom.labelSet=i,this._updateUngrouped(),new eS(DS,null,this));t.show(),this.groups[DS]=t,this.hammer=new mD(this.body.dom.centerContainer),this.hammer.on(\"hammer.input\",function(t){t.isFirst&&e._onTouch(t)}),this.hammer.on(\"panstart\",M(i=this._onDragStart).call(i,this)),this.hammer.on(\"panmove\",M(t=this._onDrag).call(t,this)),this.hammer.on(\"panend\",M(i=this._onDragEnd).call(i,this)),this.hammer.get(\"pan\").set({threshold:5,direction:mD.ALL}),this.hammer.get(\"press\").set({time:1e4}),this.hammer.on(\"tap\",M(t=this._onSelectItem).call(t,this)),this.hammer.on(\"press\",M(i=this._onMultiSelectItem).call(i,this)),this.hammer.get(\"press\").set({time:1e4}),this.hammer.on(\"doubletap\",M(t=this._onAddItem).call(t,this)),this.options.rtl?this.groupHammer=new mD(this.body.dom.rightContainer):this.groupHammer=new mD(this.body.dom.leftContainer),this.groupHammer.on(\"tap\",M(i=this._onGroupClick).call(i,this)),this.groupHammer.on(\"panstart\",M(t=this._onGroupDragStart).call(t,this)),this.groupHammer.on(\"panmove\",M(i=this._onGroupDrag).call(i,this)),this.groupHammer.on(\"panend\",M(t=this._onGroupDragEnd).call(t,this)),this.groupHammer.get(\"pan\").set({threshold:5,direction:mD.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener(\"mouseover\",M(i=this._onMouseOver).call(i,this)),this.body.dom.centerContainer.addEventListener(\"mouseout\",M(t=this._onMouseOut).call(t,this)),this.body.dom.centerContainer.addEventListener(\"mousemove\",M(i=this._onMouseMove).call(i,this)),this.body.dom.centerContainer.addEventListener(\"contextmenu\",M(t=this._onDragEnd).call(t,this)),this.body.dom.centerContainer.addEventListener(\"mousewheel\",M(i=this._onMouseWheel).call(i,this)),this.show()}},{key:\"setOptions\",value:function(n){var t,o=this;n&&(R.selectiveExtend([\"type\",\"rtl\",\"align\",\"order\",\"stack\",\"stackSubgroups\",\"selectable\",\"multiselect\",\"sequentialSelection\",\"multiselectPerGroup\",\"longSelectPressTime\",\"groupOrder\",\"dataAttributes\",\"template\",\"groupTemplate\",\"visibleFrameTemplate\",\"hide\",\"snap\",\"groupOrderSwap\",\"showTooltips\",\"tooltip\",\"tooltipOnItemUpdateTime\",\"groupHeightMode\",\"onTimeout\"],this.options,n),\"itemsAlwaysDraggable\"in n&&(\"boolean\"==typeof n.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=n.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):\"object\"===x(n.itemsAlwaysDraggable)&&(R.selectiveExtend([\"item\",\"range\"],this.options.itemsAlwaysDraggable,n.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),\"sequentialSelection\"in n&&\"boolean\"==typeof n.sequentialSelection&&(this.options.sequentialSelection=n.sequentialSelection),\"orientation\"in n&&(\"string\"==typeof n.orientation?this.options.orientation.item=\"top\"===n.orientation?\"top\":\"bottom\":\"object\"===x(n.orientation)&&\"item\"in n.orientation&&(this.options.orientation.item=n.orientation.item)),\"margin\"in n&&(\"number\"==typeof n.margin?(this.options.margin.axis=n.margin,this.options.margin.item.horizontal=n.margin,this.options.margin.item.vertical=n.margin):\"object\"===x(n.margin)&&(R.selectiveExtend([\"axis\"],this.options.margin,n.margin),\"item\"in n.margin)&&(\"number\"==typeof n.margin.item?(this.options.margin.item.horizontal=n.margin.item,this.options.margin.item.vertical=n.margin.item):\"object\"===x(n.margin.item)&&R.selectiveExtend([\"horizontal\",\"vertical\"],this.options.margin.item,n.margin.item))),O(t=[\"locale\",\"locales\"]).call(t,function(t){t in n&&(o.options[t]=n[t])}),\"editable\"in n&&(\"boolean\"==typeof n.editable?(this.options.editable.updateTime=n.editable,this.options.editable.updateGroup=n.editable,this.options.editable.add=n.editable,this.options.editable.remove=n.editable,this.options.editable.overrideItems=!1):\"object\"===x(n.editable)&&R.selectiveExtend([\"updateTime\",\"updateGroup\",\"add\",\"remove\",\"overrideItems\"],this.options.editable,n.editable)),\"groupEditable\"in n&&(\"boolean\"==typeof n.groupEditable?(this.options.groupEditable.order=n.groupEditable,this.options.groupEditable.add=n.groupEditable,this.options.groupEditable.remove=n.groupEditable):\"object\"===x(n.groupEditable)&&R.selectiveExtend([\"order\",\"add\",\"remove\"],this.options.groupEditable,n.groupEditable)),O(t=[\"onDropObjectOnItem\",\"onAdd\",\"onUpdate\",\"onRemove\",\"onMove\",\"onMoving\",\"onAddGroup\",\"onMoveGroup\",\"onRemoveGroup\"]).call(t,function(t){var e,i=n[t];if(i){if(\"function\"!=typeof i)throw new Error(Uu(e=\"option \".concat(t,\" must be a function \")).call(e,t,\"(item, callback)\"));o.options[t]=i}}),n.cluster?(vd(this.options,{cluster:n.cluster}),this.clusterGenerator||(this.clusterGenerator=new bS(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty())}},{key:\"markDirty\",value:function(t){this.groupIds=[],t&&(t.refreshItems&&O(R).call(R,this.items,function(t){t.dirty=!0,t.displayed&&t.redraw()}),t.restackGroups)&&O(R).call(R,this.groups,function(t,e){e!==DS&&(t.stackDirty=!0)})}},{key:\"destroy\",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:\"hide\",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:\"show\",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right:this.body.dom.left).appendChild(this.dom.labelSet)}},{key:\"setPopupTimer\",value:function(t){var e;this.clearPopupTimer(),t&&(e=this.options.tooltip.delay||\"number\"==typeof this.options.tooltip.delay?this.options.tooltip.delay:500,this.popupTimer=Wp(function(){t.show()},e))}},{key:\"clearPopupTimer\",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:\"setSelection\",value:function(e){var t;C(e=null==e?[]:e)||(e=[e]);var i,n=wS(E(t=this.selection).call(t,function(t){return-1===P(e).call(e,t)}));try{for(n.s();!(i=n.n()).done;){var o=i.value,r=this.getItemById(o);r&&r.unselect()}}catch(e){n.e(e)}finally{n.f()}this.selection=Pu(e);var s,a=wS(e);try{for(a.s();!(s=a.n()).done;){var l=s.value,h=this.getItemById(l);h&&h.select()}}catch(e){a.e(e)}finally{a.f()}}},{key:\"getSelection\",value:function(){var t;return Uu(t=this.selection).call(t,[])}},{key:\"getVisibleItems\",value:function(){var t,e,i,n=this.body.range.getRange(),o=(this.options.rtl?(t=this.body.util.toScreen(n.start),e=this.body.util.toScreen(n.end)):(e=this.body.util.toScreen(n.start),t=this.body.util.toScreen(n.end)),[]);for(i in this.groups)if(this.groups.hasOwnProperty(i)){var r,s=this.groups[i],a=wS(s.isVisible?s.visibleItems:[]);try{for(a.s();!(r=a.n()).done;){var l=r.value;this.options.rtl?l.right<e&&l.right+l.width>t&&o.push(l.id):l.left<t&&l.left+l.width>e&&o.push(l.id)}}catch(t){a.e(t)}finally{a.f()}}return o}},{key:\"getItemsAtCurrentTime\",value:function(t){this.options.rtl?(e=this.body.util.toScreen(t),i=this.body.util.toScreen(t)):(i=this.body.util.toScreen(t),e=this.body.util.toScreen(t));var e,i,n,o=[];for(n in this.groups)if(this.groups.hasOwnProperty(n)){var r,s=this.groups[n],a=wS(s.isVisible?s.visibleItems:[]);try{for(a.s();!(r=a.n()).done;){var l=r.value;this.options.rtl?l.right<i&&l.right+l.width>e&&o.push(l.id):l.left<e&&l.left+l.width>i&&o.push(l.id)}}catch(t){a.e(t)}finally{a.f()}}return o}},{key:\"getVisibleGroups\",value:function(){var t,e=[];for(t in this.groups)this.groups.hasOwnProperty(t)&&this.groups[t].isVisible&&e.push(t);return e}},{key:\"getItemById\",value:function(e){var t;return this.items[e]||AD(t=this.clusters).call(t,function(t){return t.id===e})}},{key:\"_deselect\",value:function(t){for(var e=this.selection,i=0,n=e.length;i<n;i++)if(e[i]==t){rd(e).call(e,i,1);break}}},{key:\"redraw\",value:function(){var t=this.options.margin,i=this.body.range,e=R.option.asSize,n=this.options,o=n.orientation.item,r=!1,s=this.dom.frame,a=(this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,s.className=\"vis-itemset\",this.options.cluster&&this._clusterItems(),r=this._orderGroups()||r,i.end-i.start),l=a!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,h=i.start!=this.lastRangeStart,u=n.stack!=this.lastStack,c=n.stackSubgroups!=this.lastStackSubgroups,d=l||h||u||c,p=(this.lastVisibleInterval=a,this.lastRangeStart=i.start,this.lastStack=n.stack,this.lastStackSubgroups=n.stackSubgroups,this.props.lastWidth=this.props.width,this._firstGroup()),m={item:t.item,axis:t.axis},f={item:t.item,axis:t.item.vertical/2},g=0,l=t.axis+t.item.vertical,v=(this.groups[DS].redraw(i,f,d),{}),y=0;if(O(R).call(R,this.groups,function(t,e){e!==DS&&(v[e]=t.redraw(i,t==p?m:f,d,!0),y=v[e].length)}),0<y){for(var b={},_=0;_<y;_++)!function(i){O(R).call(R,v,function(t,e){b[e]=t[i]()})}(_);O(R).call(R,this.groups,function(t,e){e!==DS&&(e=b[e],r=e||r,g+=t.height)}),g=Math.max(g,l)}return g=Math.max(g,l),s.style.height=e(g),this.props.width=s.offsetWidth,this.props.height=g,this.dom.axis.style.top=e(\"top\"==o?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right=\"0\":this.dom.axis.style.left=\"0\",this.hammer.get(\"press\").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,r=this._isResized()||r}},{key:\"_firstGroup\",value:function(){var t=\"top\"==this.options.orientation.item?0:this.groupIds.length-1,t=this.groupIds[t];return this.groups[t]||this.groups[xS]||null}},{key:\"_updateUngrouped\",value:function(){var t,e,i,n=this.groups[xS];if(this.groupsData){if(n)for(e in n.dispose(),delete this.groups[xS],this.items)this.items.hasOwnProperty(e)&&((t=this.items[e]).parent&&t.parent.remove(t),i=this.getGroupId(t.data),(i=this.groups[i])&&i.add(t)||t.hide())}else if(!n){for(e in n=new QD(null,null,this),this.groups[xS]=n,this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],n.add(t));n.show()}}},{key:\"getLabelSet\",value:function(){return this.dom.labelSet}},{key:\"setItems\",value:function(t){this.itemsSettingTime=new Date;var e,i,n=this,o=this.itemsData;if(t){if(!Dx(t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.itemsData=Mx(t)}else this.itemsData=null;o&&(O(R).call(R,this.itemListeners,function(t,e){o.off(e,t)}),o.dispose(),e=o.getIds(),this._onRemove(e)),this.itemsData&&(i=this.id,O(R).call(R,this.itemListeners,function(t,e){n.itemsData.on(e,t,i)}),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()),this.body.emitter.emit(\"_change\",{queue:!0})}},{key:\"getItems\",value:function(){return null!=this.itemsData?this.itemsData.rawDS:null}},{key:\"setGroups\",value:function(t){var e,i,n,o=this;if(this.groupsData&&(O(R).call(R,this.groupListeners,function(t,e){o.groupsData.off(e,t)}),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!Dx(t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.groupsData=t}else this.groupsData=null;this.groupsData&&(i=this.groupsData.getDataSet(),O(t=i.get()).call(t,function(e){var t;e.nestedGroups&&O(t=e.nestedGroups).call(t,function(t){t=i.get(t);t.nestedInGroup=e.id,0==e.showNested&&(t.visible=!1),i.update(t)})}),n=this.id,O(R).call(R,this.groupListeners,function(t,e){o.groupsData.on(e,t,n)}),e=this.groupsData.getIds(),this._onAddGroups(e)),this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit(\"_change\",{queue:!0})}},{key:\"getGroups\",value:function(){return this.groupsData}},{key:\"removeItem\",value:function(e){var i=this,t=this.itemsData.get(e);t&&this.options.onRemove(t,function(t){t&&i.itemsData.remove(e)})}},{key:\"_getType\",value:function(t){return t.type||this.options.type||(t.end?\"range\":\"box\")}},{key:\"getGroupId\",value:function(t){return\"background\"==this._getType(t)&&null==t.group?DS:this.groupsData?t.group:xS}},{key:\"_onUpdate\",value:function(t){var s=this,a=this;O(t).call(t,function(t){var e,i=a.itemsData.get(t),n=a.items[t],o=i?a._getType(i):null,r=u.types[o];if(n&&(r&&n instanceof r?a._updateItem(n,i):(e=n.selected,a._removeItem(n),n=null)),!n&&i){if(!r)throw new TypeError('Unknown item type \"'.concat(o,'\"'));(n=new r(i,a.conversion,a.options)).id=t,a._addItem(n),e&&(s.selection.push(t),n.select())}}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit(\"_change\",{queue:!0})}},{key:\"_onRemove\",value:function(t){var e=0,i=this;O(t).call(t,function(t){t=i.items[t];t&&(e++,i._removeItem(t))}),e&&(this._order(),this.body.emitter.emit(\"_change\",{queue:!0}))}},{key:\"_order\",value:function(){O(R).call(R,this.groups,function(t){t.order()})}},{key:\"_onUpdateGroups\",value:function(t){this._onAddGroups(t)}},{key:\"_onAddGroups\",value:function(t){var s=this;O(t).call(t,function(t){var e=s.groupsData.get(t),i=s.groups[t];if(i)i.setData(e);else{if(t==xS||t==DS)throw new Error(\"Illegal group id. \".concat(t,\" is a reserved id.\"));var n,o,r=Pp(s.options);for(n in R.extend(r,{height:null}),i=new QD(t,e,s),s.groups[t]=i,s.items)s.items.hasOwnProperty(n)&&(o=s.items[n]).data.group==t&&i.add(o);i.order(),i.show()}}),this.body.emitter.emit(\"_change\",{queue:!0})}},{key:\"_onRemoveGroups\",value:function(t){var i=this;O(t).call(t,function(t){var e=i.groups[t];e&&(e.dispose(),delete i.groups[t])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit(\"_change\",{queue:!0})}},{key:\"_orderGroups\",value:function(){var t,e,i;return!!this.groupsData&&(t=this.groupsData.getIds({order:this.options.groupOrder}),t=this._orderNestedGroups(t),(e=!R.equalArray(t,this.groupIds))&&(i=this.groups,O(t).call(t,function(t){i[t].hide()}),O(t).call(t,function(t){i[t].show()}),this.groupIds=t),e)}},{key:\"_orderNestedGroups\",value:function(t){var e=this;return function i(n,t){var o=[];return O(t).call(t,function(e){var t;o.push(e),n.groupsData.get(e).nestedGroups&&(t=T(t=n.groupsData.get({filter:function(t){return t.nestedInGroup==e},order:n.options.groupOrder})).call(t,function(t){return t.id}),o=Uu(o).call(o,i(n,t)))}),o}(this,E(t).call(t,function(t){return!e.groupsData.get(t).nestedInGroup}))}},{key:\"_addItem\",value:function(t){this.items[t.id]=t;var e=this.getGroupId(t.data),e=this.groups[e];e?e.data&&e.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,e&&e.add(t)}},{key:\"_updateItem\",value:function(t,e){t.setData(e);e=this.getGroupId(t.data),e=this.groups[e];e?e.data&&e.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}},{key:\"_removeItem\",value:function(t){t.hide(),delete this.items[t.id];var e,i=P(i=this.selection).call(i,t.id);-1!=i&&rd(e=this.selection).call(e,i,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:\"_constructByEndArray\",value:function(t){for(var e=[],i=0;i<t.length;i++)t[i]instanceof rS&&e.push(t[i]);return e}},{key:\"_onTouch\",value:function(t){this.touchParams.item=this.itemFromTarget(t),this.touchParams.dragLeftItem=t.target.dragLeftItem||!1,this.touchParams.dragRightItem=t.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:\"_getGroupIndex\",value:function(t){for(var e=0;e<this.groupIds.length;e++)if(t==this.groupIds[e])return e}},{key:\"_onDragStart\",value:function(i){var t,e,n,o,r,s,a=this;this.touchParams.itemIsDragging||(e=this.touchParams.item||null,n=this,e&&(e.selected||this.options.itemsAlwaysDraggable.item)?(!this.options.editable.overrideItems||this.options.editable.updateTime||this.options.editable.updateGroup)&&(null==e.editable||e.editable.updateTime||e.editable.updateGroup||this.options.editable.overrideItems)&&(s=this.touchParams.dragLeftItem,o=this.touchParams.dragRightItem,this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=e,s?(t={item:s,initialX:i.center.x,dragLeft:!0,data:this._cloneItemData(e.data)},this.touchParams.itemProps=[t]):o?(t={item:o,initialX:i.center.x,dragRight:!0,data:this._cloneItemData(e.data)},this.touchParams.itemProps=[t]):this.options.editable.add&&(i.srcEvent.ctrlKey||i.srcEvent.metaKey)?this._onDragStartAddItem(i):(this.groupIds.length<1&&this.redraw(),r=this._getGroupIndex(e.data.group),s=this.options.itemsAlwaysDraggable.item&&!e.selected?[e.id]:this.getSelection(),this.touchParams.itemProps=T(s).call(s,function(t){var t=n.items[t],e=n._getGroupIndex(t.data.group);return{item:t,initialX:i.center.x,groupOffset:r-e,data:a._cloneItemData(t.data)}})),i.stopPropagation()):this.options.editable.add&&(i.srcEvent.ctrlKey||i.srcEvent.metaKey)&&this._onDragStartAddItem(i))}},{key:\"_onDragStartAddItem\",value:function(t){var e=this.options.snap||null,i=this.dom.frame.getBoundingClientRect(),i=this.options.rtl?i.right-t.center.x+10:t.center.x-i.left-10,i=this.body.util.toTime(i),n=this.body.util.getScale(),o=this.body.util.getStep(),e=e?e(i,n,o):i,n={type:\"range\",start:e,end:e,content:\"new item\"},o=tk(),i=(n[this.itemsData.idProp]=o,this.groupFromTarget(t)),e=(i&&(n.group=i.groupId),new rS(n,this.conversion,this.options)),i=(e.id=o,e.data=this._cloneItemData(n),this._addItem(e),{item:this.touchParams.selectedItem=e,initialX:t.center.x,data:e.data});this.options.rtl?i.dragLeft=!0:i.dragRight=!0,this.touchParams.itemProps=[i],t.stopPropagation()}},{key:\"_onDrag\",value:function(a){var l,h,t,u,c,d,p,m,f,e,g=this;null!=this.popup&&this.options.showTooltips&&!this.popup.hidden&&(t=(e=this.body.dom.centerContainer).getBoundingClientRect(),this.popup.setPosition(a.center.x-t.left+e.offsetLeft,a.center.y-t.top+e.offsetTop),this.popup.show()),this.touchParams.itemProps&&(a.stopPropagation(),h=(l=this).options.snap||null,t=this.body.dom.root.offsetLeft,u=this.options.rtl?t+this.body.domProps.right.width:t+this.body.domProps.left.width,c=this.body.util.getScale(),d=this.body.util.getStep(),p=this.touchParams.selectedItem,m=(this.options.editable.overrideItems||null==p.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=p.editable&&p.editable.updateGroup,f=null,m&&p&&null!=p.data.group&&(e=l.groupFromTarget(a))&&(f=this._getGroupIndex(e.groupId)),O(t=this.touchParams.itemProps).call(t,function(e){var t,i,n,o,r=l.body.util.toTime(a.center.x-u),s=l.body.util.toTime(e.initialX-u),r=g.options.rtl?-(r-s):r-s,s=g._cloneItemData(e.item.data);(null==e.item.editable||e.item.editable.updateTime||e.item.editable.updateGroup||l.options.editable.overrideItems)&&(((g.options.editable.overrideItems||null==p.editable)&&g.options.editable.updateTime||!g.options.editable.overrideItems&&null!=p.editable&&p.editable.updateTime)&&(e.dragLeft?g.options.rtl?null!=s.end&&(i=R.convert(e.data.end,\"Date\"),o=new Date(i.valueOf()+r),s.end=h?h(o,c,d):o):null!=s.start&&(t=R.convert(e.data.start,\"Date\"),n=new Date(t.valueOf()+r),s.start=h?h(n,c,d):n):e.dragRight?g.options.rtl?null!=s.start&&(t=R.convert(e.data.start,\"Date\"),n=new Date(t.valueOf()+r),s.start=h?h(n,c,d):n):null!=s.end&&(i=R.convert(e.data.end,\"Date\"),o=new Date(i.valueOf()+r),s.end=h?h(o,c,d):o):null!=s.start&&(t=R.convert(e.data.start,\"Date\").valueOf(),n=new Date(t+r),null!=s.end?(o=(i=R.convert(e.data.end,\"Date\")).valueOf()-t.valueOf(),s.start=h?h(n,c,d):n,s.end=new Date(s.start.valueOf()+o)):s.start=h?h(n,c,d):n)),!m||e.dragLeft||e.dragRight||null==f||null==s.group||(r=f-e.groupOffset,r=Math.max(0,r),r=Math.min(l.groupIds.length-1,r),s.group=l.groupIds[r]),s=g._cloneItemData(s),l.options.onMoving(s,function(t){t&&e.item.setData(g._cloneItemData(t,\"Date\"))}))}),this.body.emitter.emit(\"_change\"))}},{key:\"_moveToGroup\",value:function(t,e){var i,e=this.groups[e];e&&e.groupId!=t.data.group&&((i=t.parent).remove(t),i.order(),t.data.group=e.groupId,e.add(t),e.order())}},{key:\"_onDragEnd\",value:function(t){var n,o=this;this.touchParams.itemIsDragging=!1,this.touchParams.itemProps&&(t.stopPropagation(),t=(n=this).touchParams.itemProps,this.touchParams.itemProps=null,O(t).call(t,function(e){var t,i=e.item.id;null!=n.itemsData.get(i)?(t=o._cloneItemData(e.item.data),n.options.onMove(t,function(t){t?(t[o.itemsData.idProp]=i,o.itemsData.update(t)):(e.item.setData(e.data),n.body.emitter.emit(\"_change\"))})):n.options.onAdd(e.item.data,function(t){n._removeItem(e.item),t&&n.itemsData.add(t),n.body.emitter.emit(\"_change\")})}))}},{key:\"_onGroupClick\",value:function(t){var e=this,i=this.groupFromTarget(t);Wp(function(){e.toggleGroupShowNested(i)},1)}},{key:\"toggleGroupShowNested\",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&t.nestedGroups){var i=this.groupsData.getDataSet(),n=(t.showNested=null!=e?!!e:!t.showNested,i.get(t.groupId));n.showNested=t.showNested;for(var o=t.nestedGroups,r=o;0<r.length;){for(var s=r,r=[],a=0;a<s.length;a++){var l=i.get(s[a]);l.nestedGroups&&(r=Uu(r).call(r,l.nestedGroups))}0<r.length&&(o=Uu(o).call(o,r))}if(n.showNested){for(var h=i.get(n.nestedGroups),u=0;u<h.length;u++){var c=h[u];c.nestedGroups&&0<c.nestedGroups.length&&(null==c.showNested||1==c.showNested)&&h.push.apply(h,Pu(i.get(c.nestedGroups)))}d=T(h).call(h,function(t){return null==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t})}else var d=T(e=i.get(o)).call(e,function(t){return null==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t});i.update(Uu(d).call(d,n)),n.showNested?(R.removeClassName(t.dom.label,\"collapsed\"),R.addClassName(t.dom.label,\"expanded\")):(R.removeClassName(t.dom.label,\"expanded\"),R.addClassName(t.dom.label,\"collapsed\"))}}},{key:\"toggleGroupDragClassName\",value:function(t){t.dom.label.classList.toggle(\"vis-group-is-dragging\"),t.dom.foreground.classList.toggle(\"vis-group-is-dragging\")}},{key:\"_onGroupDragStart\",value:function(t){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group)&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder}))}},{key:\"_onGroupDrag\",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData.getDataSet(),i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){var n=i.top<this.groupTouchParams.group.top,t=t.center?t.center.y:t.clientY,o=i.dom.foreground.getBoundingClientRect(),r=this.groupTouchParams.group.height;if(n){if(o.top+r<t)return}else{n=i.height;if(o.top+n-r>t)return}}if(i&&i!=this.groupTouchParams.group){var s,a,l,o=e.get(i.groupId),n=e.get(this.groupTouchParams.group.groupId),h=(n&&o&&(this.options.groupOrderSwap(n,o,e),e.update(n),e.update(o)),e.getIds({order:this.options.groupOrder}));if(!R.equalArray(h,this.groupTouchParams.originalOrder))for(var u=this.groupTouchParams.originalOrder,c=this.groupTouchParams.group.groupId,d=Math.min(u.length,h.length),p=0,m=0,f=0;p<d;){for(;p+m<d&&p+f<d&&h[p+m]==u[p+f];)p++;if(d<=p+m)break;h[p+m]==c?m=1:u[p+f]==c?f=1:(s=P(h).call(h,u[p+f]),l=e.get(h[p+m]),a=e.get(u[p+f]),this.options.groupOrderSwap(l,a,e),e.update(l),e.update(a),l=h[p+m],h[p+m]=u[p+f],h[s]=l,p++)}}}}},{key:\"_onGroupDragEnd\",value:function(t){var l,h,u;this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group&&(t.stopPropagation(),h=(l=this).groupTouchParams.group.groupId,u=l.groupsData.getDataSet(),t=R.extend({},u.get(h)),l.options.onMoveGroup(t,function(t){if(t)t[u._idProp]=h,u.update(t);else{var e=u.getIds({order:l.options.groupOrder});if(!R.equalArray(e,l.groupTouchParams.originalOrder))for(var i=l.groupTouchParams.originalOrder,n=Math.min(i.length,e.length),o=0;o<n;){for(;o<n&&e[o]==i[o];)o++;if(n<=o)break;var r=P(e).call(e,i[o]),s=u.get(e[o]),a=u.get(i[o]),s=(l.options.groupOrderSwap(s,a,u),u.update(s),u.update(a),e[o]);e[o]=i[o],e[r]=s,o++}}}),l.body.emitter.emit(\"groupDragged\",{groupId:h}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null)}},{key:\"_onSelectItem\",value:function(t){var e,i;this.options.selectable&&(e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),i=t.srcEvent&&t.srcEvent.shiftKey,e||i?this._onMultiSelectItem(t):(e=this.getSelection(),i=(i=this.itemFromTarget(t))&&i.selectable?[i.id]:[],this.setSelection(i),(0<(i=this.getSelection()).length||0<e.length)&&this.body.emitter.emit(\"select\",{items:i,event:t})))}},{key:\"_onMouseOver\",value:function(t){var e,i,n=this.itemFromTarget(t);n&&n!==this.itemFromRelatedTarget(t)&&(e=n.getTitle(),this.options.showTooltips&&e?(null==this.popup&&(this.popup=new aS(this.body.dom.root,this.options.tooltip.overflowMethod||\"flip\")),this.popup.setText(e),i=(e=this.body.dom.centerContainer).getBoundingClientRect(),this.popup.setPosition(t.clientX-i.left+e.offsetLeft,t.clientY-i.top+e.offsetTop),this.setPopupTimer(this.popup)):(this.clearPopupTimer(),null!=this.popup&&this.popup.hide()),this.body.emitter.emit(\"itemover\",{item:n.id,event:t}))}},{key:\"_onMouseOut\",value:function(t){var e=this.itemFromTarget(t);e&&e!==this.itemFromRelatedTarget(t)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit(\"itemout\",{item:e.id,event:t}))}},{key:\"_onMouseMove\",value:function(t){var e,i;this.itemFromTarget(t)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips)&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden&&(i=(e=this.body.dom.centerContainer).getBoundingClientRect(),this.popup.setPosition(t.clientX-i.left+e.offsetLeft,t.clientY-i.top+e.offsetTop),this.popup.show())}},{key:\"_onMouseWheel\",value:function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}},{key:\"_onUpdateItem\",value:function(t){var e;this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)&&(e=this,t)&&(t=e.itemsData.get(t.id),this.options.onUpdate(t,function(t){t&&e.itemsData.update(t)}))}},{key:\"_onDropObjectOnItem\",value:function(t){var e=this.itemFromTarget(t),t=JSON.parse(t.dataTransfer.getData(\"text\"));this.options.onDropObjectOnItem(t,e)}},{key:\"_onAddItem\",value:function(e){var t,i,n,o,r,s,a,l;this.options.selectable&&this.options.editable.add&&(o=(n=this).options.snap||null,r=this.dom.frame.getBoundingClientRect(),r=this.options.rtl?r.right-e.center.x:e.center.x-r.left,l=this.body.util.toTime(r),s=this.body.util.getScale(),a=this.body.util.getStep(),\"drop\"==e.type?((i=JSON.parse(e.dataTransfer.getData(\"text\"))).content=i.content||\"new item\",i.start=i.start||(o?o(l,s,a):l),i.type=i.type||\"box\",i[this.itemsData.idProp]=i.id||tk(),\"range\"!=i.type||i.end||(t=this.body.util.toTime(r+this.props.width/5),i.end=o?o(t,s,a):t)):((i={start:o?o(l,s,a):l,content:\"new item\"})[this.itemsData.idProp]=tk(),\"range\"===this.options.type&&(t=this.body.util.toTime(r+this.props.width/5),i.end=o?o(t,s,a):t)),(l=this.groupFromTarget(e))&&(i.group=l.groupId),i=this._cloneItemData(i),this.options.onAdd(i,function(t){t&&(n.itemsData.add(t),\"drop\"==e.type)&&n.setSelection([t.id])}))}},{key:\"_onMultiSelectItem\",value:function(t){var e=this;if(this.options.selectable){var i=this.itemFromTarget(t);if(i){var n=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var o,r,s=this.itemsData.get(i.id).group,a=void 0,l=(this.options.multiselectPerGroup&&0<n.length&&(a=this.itemsData.get(n[0]).group),this.options.multiselectPerGroup&&null!=a&&a!=s||n.push(i.id),u._getItemRange(this.itemsData.get(n)));if(!this.options.multiselectPerGroup||a==s)for(var h in n=[],this.items)this.items.hasOwnProperty(h)&&(o=(h=this.items[h]).data.start,r=void 0!==h.data.end?h.data.end:o,!(o>=l.min&&r<=l.max)||this.options.multiselectPerGroup&&a!=this.itemsData.get(h.id).group||h instanceof sS||n.push(h.id))}else{s=P(n).call(n,i.id);-1==s?n.push(i.id):rd(n).call(n,s,1)}i=E(n).call(n,function(t){return e.getItemById(t).selectable});this.setSelection(i),this.body.emitter.emit(\"select\",{items:this.getSelection(),event:t})}}}},{key:\"itemFromElement\",value:function(t){for(var e=t;e;){if(e.hasOwnProperty(\"vis-item\"))return e[\"vis-item\"];e=e.parentNode}return null}},{key:\"itemFromTarget\",value:function(t){return this.itemFromElement(t.target)}},{key:\"itemFromRelatedTarget\",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:\"groupFromTarget\",value:function(t){var e=t.center?t.center.y:t.clientY,i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(var n=0;n<i.length;n++){var o=i[n],o=this.groups[o],r=o.dom.foreground,s=r.getBoundingClientRect();if(e>=s.top&&e<s.top+r.offsetHeight)return o;if(\"top\"===this.options.orientation.item){if(n===this.groupIds.length-1&&e>s.top)return o}else if(0===n&&e<s.top+r.offset)return o}return null}},{key:\"_cloneItemData\",value:function(t,e){t=R.extend({},t);return e=e||this.itemsData.type,null!=t.start&&(t.start=R.convert(t.start,e&&e.start||\"Date\")),null!=t.end&&(t.end=R.convert(t.end,e&&e.end||\"Date\")),t}},{key:\"_clusterItems\",value:function(){if(this.options.cluster){var t=this.body.range.conversion(this.body.domProps.center.width).scale,e=this.clusterGenerator.getClusters(this.clusters,t,this.options.cluster);if(this.clusters!=e){if(this._detachAllClusters(),e){var i,n=wS(e);try{for(n.s();!(i=n.n()).done;)i.value.attach()}catch(t){n.e(t)}finally{n.f()}this.clusters=e}this._updateClusters(e)}}}},{key:\"_detachAllClusters\",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t,e=wS(this.clusters);try{for(e.s();!(t=e.n()).done;)t.value.detach()}catch(t){e.e(t)}finally{e.f()}}}},{key:\"_updateClusters\",value:function(t){if(this.clusters&&this.clusters.length){var e,i,n=new L1(T(t).call(t,function(t){return t.id})),o=!1,r=wS(E(i=this.clusters).call(i,function(t){return!n.has(t.id)}));try{for(r.s();!(e=r.n()).done;){var s,a,l=e.value,h=P(s=this.selection).call(s,l.id);-1!==h&&(l.unselect(),rd(a=this.selection).call(a,h,1),o=!0)}}catch(t){r.e(t)}finally{r.f()}o&&(i=this.getSelection(),this.body.emitter.emit(\"select\",{items:i,event:event}))}this.clusters=t||[]}}],[{key:\"_getItemRange\",value:function(t){var e=null,i=null;return O(t).call(t,function(t){(null==i||t.start<i)&&(i=t.start),null!=t.end?(null==e||t.end>e)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)}),{min:i,max:e}}},{key:\"itemSetFromTarget\",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty(\"vis-itemset\"))return e[\"vis-itemset\"];e=e.parentNode}return null}}]),u}();SS.types={background:sS,box:Ht,range:rS,point:ce},SS.prototype._onAdd=SS.prototype._onUpdate;var CS,TS=!1,MS=\"background: #FFeeee; color: #dd0000\",OS=(D(FS,null,[{key:\"validate\",value:function(t,e,i){TS=!1;var n=CS=e;return void 0!==i&&(n=e[i]),FS.parse(t,n,[]),TS}},{key:\"parse\",value:function(t,e,i){for(var n in t)t.hasOwnProperty(n)&&FS.check(n,t,e,i)}},{key:\"check\",value:function(t,e,i,n){var o,r,s;void 0!==i[t]||void 0!==i.__any__?(r=!0,void 0===i[o=t]&&void 0!==i.__any__&&(o=\"__any__\",r=\"object\"===FS.getType(e[t])),s=i[o],r&&void 0!==s.__type__&&(s=s.__type__),FS.checkFields(t,e,i,o,s,n)):FS.getSuggestion(t,i,n)}},{key:\"checkFields\",value:function(e,t,i,n,o,r){function s(t){console.log(\"%c\"+t+FS.printLocation(r,e),MS)}var a=FS.getType(t[e]),l=o[a];void 0!==l?\"array\"===FS.getType(l)&&-1===P(l).call(l,t[e])?(s('Invalid option detected in \"'+e+'\". Allowed values are:'+FS.print(l)+' not \"'+t[e]+'\". '),TS=!0):\"object\"===a&&\"__any__\"!==n&&(r=R.copyAndExtendArray(r,e),FS.parse(t[e],i[n],r)):void 0===o.any&&(s('Invalid type received for \"'+e+'\". Expected: '+FS.print(sc(o))+\". Received [\"+a+'] \"'+t[e]+'\"'),TS=!0)}},{key:\"getType\",value:function(t){var e=x(t);return\"object\"===e?null===t?\"null\":t instanceof Boolean?\"boolean\":t instanceof Number?\"number\":t instanceof String?\"string\":C(t)?\"array\":t instanceof Date?\"date\":void 0!==t.nodeType?\"dom\":!0===t._isAMomentObject?\"moment\":\"object\":\"number\"===e?\"number\":\"boolean\"===e?\"boolean\":\"string\"===e?\"string\":void 0===e?\"undefined\":e}},{key:\"getSuggestion\",value:function(t,e,i){var n=FS.findInOptions(t,e,i,!1),o=FS.findInOptions(t,CS,[],!0),o=void 0!==n.indexMatch?\" in \"+FS.printLocation(n.path,t,\"\")+'Perhaps it was incomplete? Did you mean: \"'+n.indexMatch+'\"?\\n\\n':o.distance<=4&&n.distance>o.distance?\" in \"+FS.printLocation(n.path,t,\"\")+\"Perhaps it was misplaced? Matching option found at: \"+FS.printLocation(o.path,o.closestMatch,\"\"):n.distance<=8?'. Did you mean \"'+n.closestMatch+'\"?'+FS.printLocation(n.path,t):\". Did you mean one of these: \"+FS.print(sc(e))+FS.printLocation(i,t);console.log('%cUnknown option detected: \"'+t+'\"'+o,MS),TS=!0}},{key:\"findInOptions\",value:function(t,e,i){var n,o=3<arguments.length&&void 0!==arguments[3]&&arguments[3],r=1e9,s=\"\",a=[],l=t.toLowerCase(),h=void 0;for(n in e){var u,c;void 0!==e[n].__type__&&!0===o?r>(c=FS.findInOptions(t,e[n],R.copyAndExtendArray(i,n))).distance&&(s=c.closestMatch,a=c.path,r=c.distance,h=c.indexMatch):(-1!==P(c=n.toLowerCase()).call(c,l)&&(h=n),r>(u=FS.levenshteinDistance(t,n))&&(s=n,a=R.copyArray(i),r=u))}return{closestMatch:s,path:a,distance:r,indexMatch:h}}},{key:\"printLocation\",value:function(t,e){for(var i=\"\\n\\n\"+(2<arguments.length&&void 0!==arguments[2]?arguments[2]:\"Problem value found at: \\n\")+\"options = {\\n\",n=0;n<t.length;n++){for(var o=0;o<n+1;o++)i+=\" \";i+=t[n]+\": {\\n\"}for(var r=0;r<t.length+1;r++)i+=\" \";i+=e+\"\\n\";for(var s=0;s<t.length+1;s++){for(var a=0;a<t.length-s;a++)i+=\" \";i+=\"}\\n\"}return i+\"\\n\\n\"}},{key:\"print\",value:function(t){return Np(t).replace(/(\\\")|(\\[)|(\\])|(,\"__type__\")/g,\"\").replace(/(\\,)/g,\", \")}},{key:\"levenshteinDistance\",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;for(var i,n=[],o=0;o<=e.length;o++)n[o]=[o];for(i=0;i<=t.length;i++)n[0][i]=i;for(o=1;o<=e.length;o++)for(i=1;i<=t.length;i++)e.charAt(o-1)==t.charAt(i-1)?n[o][i]=n[o-1][i-1]:n[o][i]=Math.min(n[o-1][i-1]+1,Math.min(n[o][i-1]+1,n[o-1][i]+1));return n[e.length][t.length]}}]),FS),m=\"string\",n=\"boolean\",a=\"number\",_o=\"date\",b=\"object\",vo=\"moment\",ES={configure:{enabled:{boolean:n},filter:{boolean:n,function:\"function\"},container:{dom:\"dom\"},__type__:{object:b,boolean:n,function:\"function\"}},align:{string:m},alignCurrentTime:{string:m,undefined:\"undefined\"},rtl:{boolean:n,undefined:\"undefined\"},rollingMode:{follow:{boolean:n},offset:{number:a,undefined:\"undefined\"},__type__:{object:b}},onTimeout:{timeoutMs:{number:a},callback:{function:\"function\"},__type__:{object:b}},verticalScroll:{boolean:n,undefined:\"undefined\"},horizontalScroll:{boolean:n,undefined:\"undefined\"},autoResize:{boolean:n},throttleRedraw:{number:a},clickToUse:{boolean:n},dataAttributes:{string:m,array:\"array\"},editable:{add:{boolean:n,undefined:\"undefined\"},remove:{boolean:n,undefined:\"undefined\"},updateGroup:{boolean:n,undefined:\"undefined\"},updateTime:{boolean:n,undefined:\"undefined\"},overrideItems:{boolean:n,undefined:\"undefined\"},__type__:{boolean:n,object:b}},end:{number:a,date:_o,string:m,moment:vo},format:{minorLabels:{millisecond:{string:m,undefined:\"undefined\"},second:{string:m,undefined:\"undefined\"},minute:{string:m,undefined:\"undefined\"},hour:{string:m,undefined:\"undefined\"},weekday:{string:m,undefined:\"undefined\"},day:{string:m,undefined:\"undefined\"},week:{string:m,undefined:\"undefined\"},month:{string:m,undefined:\"undefined\"},year:{string:m,undefined:\"undefined\"},__type__:{object:b,function:\"function\"}},majorLabels:{millisecond:{string:m,undefined:\"undefined\"},second:{string:m,undefined:\"undefined\"},minute:{string:m,undefined:\"undefined\"},hour:{string:m,undefined:\"undefined\"},weekday:{string:m,undefined:\"undefined\"},day:{string:m,undefined:\"undefined\"},week:{string:m,undefined:\"undefined\"},month:{string:m,undefined:\"undefined\"},year:{string:m,undefined:\"undefined\"},__type__:{object:b,function:\"function\"}},__type__:{object:b}},moment:{function:\"function\"},groupHeightMode:{string:m},groupOrder:{string:m,function:\"function\"},groupEditable:{add:{boolean:n,undefined:\"undefined\"},remove:{boolean:n,undefined:\"undefined\"},order:{boolean:n,undefined:\"undefined\"},__type__:{boolean:n,object:b}},groupOrderSwap:{function:\"function\"},height:{string:m,number:a},hiddenDates:{start:{date:_o,number:a,string:m,moment:vo},end:{date:_o,number:a,string:m,moment:vo},repeat:{string:m},__type__:{object:b,array:\"array\"}},itemsAlwaysDraggable:{item:{boolean:n,undefined:\"undefined\"},range:{boolean:n,undefined:\"undefined\"},__type__:{boolean:n,object:b}},limitSize:{boolean:n},locale:{string:m},locales:{__any__:{any:\"any\"},__type__:{object:b}},longSelectPressTime:{number:a},margin:{axis:{number:a},item:{horizontal:{number:a,undefined:\"undefined\"},vertical:{number:a,undefined:\"undefined\"},__type__:{object:b,number:a}},__type__:{object:b,number:a}},max:{date:_o,number:a,string:m,moment:vo},maxHeight:{number:a,string:m},maxMinorChars:{number:a},min:{date:_o,number:a,string:m,moment:vo},minHeight:{number:a,string:m},moveable:{boolean:n},multiselect:{boolean:n},multiselectPerGroup:{boolean:n},onAdd:{function:\"function\"},onDropObjectOnItem:{function:\"function\"},onUpdate:{function:\"function\"},onMove:{function:\"function\"},onMoving:{function:\"function\"},onRemove:{function:\"function\"},onAddGroup:{function:\"function\"},onMoveGroup:{function:\"function\"},onRemoveGroup:{function:\"function\"},onInitialDrawComplete:{function:\"function\"},order:{function:\"function\"},orientation:{axis:{string:m,undefined:\"undefined\"},item:{string:m,undefined:\"undefined\"},__type__:{string:m,object:b}},selectable:{boolean:n},sequentialSelection:{boolean:n},showCurrentTime:{boolean:n},showMajorLabels:{boolean:n},showMinorLabels:{boolean:n},showWeekScale:{boolean:n},stack:{boolean:n},stackSubgroups:{boolean:n},cluster:{maxItems:{number:a,undefined:\"undefined\"},titleTemplate:{string:m,undefined:\"undefined\"},clusterCriteria:{function:\"function\",undefined:\"undefined\"},showStipes:{boolean:n,undefined:\"undefined\"},fitOnDoubleClick:{boolean:n,undefined:\"undefined\"},__type__:{boolean:n,object:b}},snap:{function:\"function\",null:\"null\"},start:{date:_o,number:a,string:m,moment:vo},template:{function:\"function\"},loadingScreenTemplate:{function:\"function\"},groupTemplate:{function:\"function\"},visibleFrameTemplate:{string:m,function:\"function\"},showTooltips:{boolean:n},tooltip:{followMouse:{boolean:n},overflowMethod:{string:[\"cap\",\"flip\",\"none\"]},delay:{number:a},template:{function:\"function\"},__type__:{object:b}},tooltipOnItemUpdateTime:{template:{function:\"function\"},__type__:{boolean:n,object:b}},timeAxis:{scale:{string:m,undefined:\"undefined\"},step:{number:a,undefined:\"undefined\"},__type__:{object:b}},type:{string:m},width:{string:m,number:a},preferZoom:{boolean:n},zoomable:{boolean:n},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"shiftKey\",\"metaKey\",\"\"]},zoomFriction:{number:a},zoomMax:{number:a},zoomMin:{number:a},xss:{disabled:{boolean:n},filterOptions:{__any__:{any:\"any\"},__type__:{object:b}},__type__:{object:b}},__type__:{object:b}},PS={global:{align:[\"center\",\"left\",\"right\"],alignCurrentTime:[\"none\",\"year\",\"month\",\"quarter\",\"week\",\"isoWeek\",\"day\",\"date\",\"hour\",\"minute\",\"second\"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:\"\",format:{minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",week:\"w\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",week:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}},groupHeightMode:[\"auto\",\"fixed\",\"fitItems\"],groupsDraggable:!1,height:\"\",locale:\"\",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:\"\",maxHeight:\"\",maxMinorChars:[7,0,20,1],min:\"\",minHeight:\"\",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:[\"both\",\"bottom\",\"top\"],item:[\"bottom\",\"top\"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:\"\",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:\"flip\",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:[\"box\",\"point\",\"range\",\"background\"],width:\"100%\",zoomable:!0,zoomKey:[\"ctrlKey\",\"altKey\",\"shiftKey\",\"metaKey\",\"\"],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}},IS={black:\"#000000\",navy:\"#000080\",darkblue:\"#00008B\",mediumblue:\"#0000CD\",blue:\"#0000FF\",darkgreen:\"#006400\",green:\"#008000\",teal:\"#008080\",darkcyan:\"#008B8B\",deepskyblue:\"#00BFFF\",darkturquoise:\"#00CED1\",mediumspringgreen:\"#00FA9A\",lime:\"#00FF00\",springgreen:\"#00FF7F\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",midnightblue:\"#191970\",dodgerblue:\"#1E90FF\",lightseagreen:\"#20B2AA\",forestgreen:\"#228B22\",seagreen:\"#2E8B57\",darkslategray:\"#2F4F4F\",limegreen:\"#32CD32\",mediumseagreen:\"#3CB371\",turquoise:\"#40E0D0\",royalblue:\"#4169E1\",steelblue:\"#4682B4\",darkslateblue:\"#483D8B\",mediumturquoise:\"#48D1CC\",indigo:\"#4B0082\",darkolivegreen:\"#556B2F\",cadetblue:\"#5F9EA0\",cornflowerblue:\"#6495ED\",mediumaquamarine:\"#66CDAA\",dimgray:\"#696969\",slateblue:\"#6A5ACD\",olivedrab:\"#6B8E23\",slategray:\"#708090\",lightslategray:\"#778899\",mediumslateblue:\"#7B68EE\",lawngreen:\"#7CFC00\",chartreuse:\"#7FFF00\",aquamarine:\"#7FFFD4\",maroon:\"#800000\",purple:\"#800080\",olive:\"#808000\",gray:\"#808080\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",blueviolet:\"#8A2BE2\",darkred:\"#8B0000\",darkmagenta:\"#8B008B\",saddlebrown:\"#8B4513\",darkseagreen:\"#8FBC8F\",lightgreen:\"#90EE90\",mediumpurple:\"#9370D8\",darkviolet:\"#9400D3\",palegreen:\"#98FB98\",darkorchid:\"#9932CC\",yellowgreen:\"#9ACD32\",sienna:\"#A0522D\",brown:\"#A52A2A\",darkgray:\"#A9A9A9\",lightblue:\"#ADD8E6\",greenyellow:\"#ADFF2F\",paleturquoise:\"#AFEEEE\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",firebrick:\"#B22222\",darkgoldenrod:\"#B8860B\",mediumorchid:\"#BA55D3\",rosybrown:\"#BC8F8F\",darkkhaki:\"#BDB76B\",silver:\"#C0C0C0\",mediumvioletred:\"#C71585\",indianred:\"#CD5C5C\",peru:\"#CD853F\",chocolate:\"#D2691E\",tan:\"#D2B48C\",lightgrey:\"#D3D3D3\",palevioletred:\"#D87093\",thistle:\"#D8BFD8\",orchid:\"#DA70D6\",goldenrod:\"#DAA520\",crimson:\"#DC143C\",gainsboro:\"#DCDCDC\",plum:\"#DDA0DD\",burlywood:\"#DEB887\",lightcyan:\"#E0FFFF\",lavender:\"#E6E6FA\",darksalmon:\"#E9967A\",violet:\"#EE82EE\",palegoldenrod:\"#EEE8AA\",lightcoral:\"#F08080\",khaki:\"#F0E68C\",aliceblue:\"#F0F8FF\",honeydew:\"#F0FFF0\",azure:\"#F0FFFF\",sandybrown:\"#F4A460\",wheat:\"#F5DEB3\",beige:\"#F5F5DC\",whitesmoke:\"#F5F5F5\",mintcream:\"#F5FFFA\",ghostwhite:\"#F8F8FF\",salmon:\"#FA8072\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lightgoldenrodyellow:\"#FAFAD2\",oldlace:\"#FDF5E6\",red:\"#FF0000\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",deeppink:\"#FF1493\",orangered:\"#FF4500\",tomato:\"#FF6347\",hotpink:\"#FF69B4\",coral:\"#FF7F50\",darkorange:\"#FF8C00\",lightsalmon:\"#FFA07A\",orange:\"#FFA500\",lightpink:\"#FFB6C1\",pink:\"#FFC0CB\",gold:\"#FFD700\",peachpuff:\"#FFDAB9\",navajowhite:\"#FFDEAD\",moccasin:\"#FFE4B5\",bisque:\"#FFE4C4\",mistyrose:\"#FFE4E1\",blanchedalmond:\"#FFEBCD\",papayawhip:\"#FFEFD5\",lavenderblush:\"#FFF0F5\",seashell:\"#FFF5EE\",cornsilk:\"#FFF8DC\",lemonchiffon:\"#FFFACD\",floralwhite:\"#FFFAF0\",snow:\"#FFFAFA\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",ivory:\"#FFFFF0\",white:\"#FFFFFF\"},AS=(D(RS,[{key:\"insertTo\",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:\"setUpdateCallback\",value:function(t){if(\"function\"!=typeof t)throw new Error(\"Function attempted to set as colorPicker update callback is not a function.\");this.updateCallback=t}},{key:\"setCloseCallback\",value:function(t){if(\"function\"!=typeof t)throw new Error(\"Function attempted to set as colorPicker closing callback is not a function.\");this.closeCallback=t}},{key:\"_isColorString\",value:function(t){if(\"string\"==typeof t)return IS[t]}},{key:\"setColor\",value:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(\"none\"!==t){var i,n=this._isColorString(t);if(!0===R.isString(t=void 0!==n?n:t)?!0===R.isValidRGB(t)?i={r:(n=t.substr(4).substr(0,t.length-5).split(\",\"))[0],g:n[1],b:n[2],a:1}:!0===R.isValidRGBA(t)?i={r:(n=t.substr(5).substr(0,t.length-6).split(\",\"))[0],g:n[1],b:n[2],a:n[3]}:!0===R.isValidHex(t)&&(i={r:(n=R.hexToRGB(t)).r,g:n.g,b:n.b,a:1}):t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b&&(n=void 0!==t.a?t.a:\"1.0\",i={r:t.r,g:t.g,b:t.b,a:n}),void 0===i)throw new Error(\"Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: \"+Np(t));this._setColor(i,e)}}},{key:\"show\",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display=\"block\",this._generateHueCircle()}},{key:\"_hide\",value:function(){var t=this;!0===(!(0<arguments.length&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=R.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display=\"none\",Wp(function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:\"_save\",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:\"_apply\",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:\"_loadLast\",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert(\"There is no last color to load...\")}},{key:\"_setColor\",value:function(t){!0===(!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=R.extend({},t)),this.color=t;var e=R.RGBToHSV(t.r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),n=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+\"px\",this.colorPickerSelector.style.top=n-.5*this.colorPickerSelector.clientHeight+\"px\",this._updatePicker(t)}},{key:\"_setOpacity\",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:\"_setBrightness\",value:function(t){var e=R.RGBToHSV(this.color.r,this.color.g,this.color.b),t=(e.v=t/100,R.HSVToRGB(e.h,e.s,e.v));t.a=this.color.a,this.color=t,this._updatePicker()}},{key:\"_updatePicker\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.color,e=R.RGBToHSV(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext(\"2d\"),n=(void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),this.colorPickerCanvas.clientWidth),o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle=\"rgba(0,0,0,\"+(1-e.v)+\")\",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Jp(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\",this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}},{key:\"_setSize\",value:function(){this.colorPickerCanvas.style.width=\"100%\",this.colorPickerCanvas.style.height=\"100%\",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:\"_create\",value:function(){var t,e;this.frame=document.createElement(\"div\"),this.frame.className=\"vis-color-picker\",this.colorPickerDiv=document.createElement(\"div\"),this.colorPickerSelector=document.createElement(\"div\"),this.colorPickerSelector.className=\"vis-selector\",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement(\"canvas\"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext?(e=this.colorPickerCanvas.getContext(\"2d\"),this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)):((e=document.createElement(\"DIV\")).style.color=\"red\",e.style.fontWeight=\"bold\",e.style.padding=\"10px\",e.innerHTML=\"Error: your browser does not support HTML canvas\",this.colorPickerCanvas.appendChild(e)),this.colorPickerDiv.className=\"vis-color\",this.opacityDiv=document.createElement(\"div\"),this.opacityDiv.className=\"vis-opacity\",this.brightnessDiv=document.createElement(\"div\"),this.brightnessDiv.className=\"vis-brightness\",this.arrowDiv=document.createElement(\"div\"),this.arrowDiv.className=\"vis-arrow\",this.opacityRange=document.createElement(\"input\");try{this.opacityRange.type=\"range\",this.opacityRange.min=\"0\",this.opacityRange.max=\"100\"}catch(t){}this.opacityRange.value=\"100\",this.opacityRange.className=\"vis-range\",this.brightnessRange=document.createElement(\"input\");try{this.brightnessRange.type=\"range\",this.brightnessRange.min=\"0\",this.brightnessRange.max=\"100\"}catch(t){}this.brightnessRange.value=\"100\",this.brightnessRange.className=\"vis-range\",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement(\"div\"),this.brightnessLabel.className=\"vis-label vis-brightness\",this.brightnessLabel.innerHTML=\"brightness:\",this.opacityLabel=document.createElement(\"div\"),this.opacityLabel.className=\"vis-label vis-opacity\",this.opacityLabel.innerHTML=\"opacity:\",this.newColorDiv=document.createElement(\"div\"),this.newColorDiv.className=\"vis-new-color\",this.newColorDiv.innerHTML=\"new\",this.initialColorDiv=document.createElement(\"div\"),this.initialColorDiv.className=\"vis-initial-color\",this.initialColorDiv.innerHTML=\"initial\",this.cancelButton=document.createElement(\"div\"),this.cancelButton.className=\"vis-button vis-cancel\",this.cancelButton.innerHTML=\"cancel\",this.cancelButton.onclick=M(t=this._hide).call(t,this,!1),this.applyButton=document.createElement(\"div\"),this.applyButton.className=\"vis-button vis-apply\",this.applyButton.innerHTML=\"apply\",this.applyButton.onclick=M(e=this._apply).call(e,this),this.saveButton=document.createElement(\"div\"),this.saveButton.className=\"vis-button vis-save\",this.saveButton.innerHTML=\"save\",this.saveButton.onclick=M(e=this._save).call(e,this),this.loadButton=document.createElement(\"div\"),this.loadButton.className=\"vis-button vis-load\",this.loadButton.innerHTML=\"load last\",this.loadButton.onclick=M(e=this._loadLast).call(e,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:\"_bindHammer\",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new mD(this.colorPickerCanvas),this.hammer.get(\"pinch\").set({enable:!0}),fD(this.hammer,function(t){e._moveSelector(t)}),this.hammer.on(\"tap\",function(t){e._moveSelector(t)}),this.hammer.on(\"panstart\",function(t){e._moveSelector(t)}),this.hammer.on(\"panmove\",function(t){e._moveSelector(t)}),this.hammer.on(\"panend\",function(t){e._moveSelector(t)})}},{key:\"_generateHueCircle\",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext(\"2d\");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,o=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,r),this.centerCoordinates={x:.5*o,y:.5*r},this.r=.49*o;for(var s,a=2*Math.PI/360,l=1/this.r,h=0;h<360;h++)for(n=0;n<this.r;n++)e=this.centerCoordinates.x+n*Math.sin(a*h),i=this.centerCoordinates.y+n*Math.cos(a*h),s=R.HSVToRGB(.002777777777777778*h,n*l,1),t.fillStyle=\"rgb(\"+s.r+\",\"+s.g+\",\"+s.b+\")\",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle=\"rgba(0,0,0,1)\",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,r)}this.generated=!0}},{key:\"_moveSelector\",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,t=t.center.y-e.top,e=.5*this.colorPickerDiv.clientHeight,n=.5*this.colorPickerDiv.clientWidth,i=i-n,t=t-e,o=Math.atan2(i,t),i=.98*Math.min(Math.sqrt(i*i+t*t),n),t=Math.cos(o)*i+e,e=Math.sin(o)*i+n;this.colorPickerSelector.style.top=t-.5*this.colorPickerSelector.clientHeight+\"px\",this.colorPickerSelector.style.left=e-.5*this.colorPickerSelector.clientWidth+\"px\";n=(n=o/(2*Math.PI))<0?1+n:n,t=i/this.r,e=R.RGBToHSV(this.color.r,this.color.g,this.color.b),e.h=n,e.s=t,o=R.HSVToRGB(e.h,e.s,e.v);o.a=this.color.a,this.color=o,this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\",this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}}]),RS),LS=(D(NS,[{key:\"setOptions\",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if(\"string\"==typeof t)this.options.filter=t;else if(C(t))this.options.filter=t.join();else if(\"object\"===x(t)){if(null==t)throw new TypeError(\"options cannot be null\");void 0!==t.container&&(this.options.container=t.container),void 0!==E(t)&&(this.options.filter=E(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else\"boolean\"==typeof t?(this.options.filter=!0,e=t):\"function\"==typeof t&&(this.options.filter=t,e=!0);!1===E(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:\"setModuleOptions\",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:\"_create\",value:function(){this._clean(),this.changedOptions=[];var t,e=E(this.options),i=0,n=!1;for(t in this.configureOptions)this.configureOptions.hasOwnProperty(t)&&(this.allowCreation=!1,n=!1,\"function\"==typeof e?n=(n=e(t,[]))||this._handleObject(this.configureOptions[t],[t],!0):!0!==e&&-1===P(e).call(e,t)||(n=!0),!1!==n&&(this.allowCreation=!0,0<i&&this._makeItem([]),this._makeHeader(t),this._handleObject(this.configureOptions[t],[t])),i++);this._makeButton(),this._push()}},{key:\"_push\",value:function(){this.wrapper=document.createElement(\"div\"),this.wrapper.className=\"vis-configuration-wrapper\",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:\"_clean\",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:\"_getValue\",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:\"_makeItem\",value:function(t){if(!0!==this.allowCreation)return 0;var e=document.createElement(\"div\");e.className=\"vis-configuration vis-config-item vis-config-s\"+t.length;for(var i=arguments.length,n=new Array(1<i?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return O(n).call(n,function(t){e.appendChild(t)}),this.domElements.push(e),this.domElements.length}},{key:\"_makeHeader\",value:function(t){var e=document.createElement(\"div\");e.className=\"vis-configuration vis-config-header\",e.innerHTML=R.xss(t),this._makeItem([],e)}},{key:\"_makeLabel\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=document.createElement(\"div\");return n.className=\"vis-configuration vis-config-label vis-config-s\"+e.length,n.innerHTML=!0===i?R.xss(\"<i><b>\"+t+\":</b></i>\"):R.xss(t+\":\"),n}},{key:\"_makeDropdown\",value:function(t,e,i){var n=document.createElement(\"select\"),o=(n.className=\"vis-configuration vis-config-select\",0);void 0!==e&&-1!==P(t).call(t,e)&&(o=P(t).call(t,e));for(var r=0;r<t.length;r++){var s=document.createElement(\"option\");s.value=t[r],r===o&&(s.selected=\"selected\"),s.innerHTML=t[r],n.appendChild(s)}var a=this,e=(n.onchange=function(){a._update(this.value,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,e,n)}},{key:\"_makeRange\",value:function(t,e,i){var n=t[0],o=t[1],r=t[2],s=t[3],a=document.createElement(\"input\");a.className=\"vis-configuration vis-config-range\";try{a.type=\"range\",a.min=o,a.max=r}catch(t){}a.step=s;var s=\"\",l=0,h=(void 0!==e?(e<0&&1.2*e<o?(a.min=Math.ceil(1.2*e),l=a.min,s=\"range increased\"):e/1.2<o&&(a.min=Math.ceil(e/1.2),l=a.min,s=\"range increased\"),r<1.2*e&&1!==r&&(a.max=Math.ceil(1.2*e),l=a.max,s=\"range increased\"),a.value=e):a.value=n,document.createElement(\"input\")),u=(h.className=\"vis-configuration vis-config-rangeinput\",h.value=Number(a.value),this),o=(a.onchange=function(){h.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){h.value=this.value},this._makeLabel(i[i.length-1],i)),r=this._makeItem(i,o,a,h);\"\"!==s&&this.popupHistory[r]!==l&&(this.popupHistory[r]=l,this._setupPopup(s,r))}},{key:\"_makeButton\",value:function(){var t,e=this;!0===this.options.showButton&&((t=document.createElement(\"div\")).className=\"vis-configuration vis-config-button\",t.innerHTML=\"generate options\",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className=\"vis-configuration vis-config-button hover\"},t.onmouseout=function(){t.className=\"vis-configuration vis-config-button\"},this.optionsContainer=document.createElement(\"div\"),this.optionsContainer.className=\"vis-configuration vis-config-option-container\",this.domElements.push(this.optionsContainer),this.domElements.push(t))}},{key:\"_setupPopup\",value:function(t,e){var i,n=this;!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit&&((i=document.createElement(\"div\")).id=\"vis-configuration-popup\",i.className=\"vis-configuration-popup\",i.innerHTML=R.xss(t),i.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:e})}},{key:\"_removePopup\",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:\"_showPopupIfNeeded\",value:function(){var t,e=this;void 0!==this.popupDiv.html&&(t=this.domElements[this.popupDiv.index].getBoundingClientRect(),this.popupDiv.html.style.left=t.left+\"px\",this.popupDiv.html.style.top=t.top-30+\"px\",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Wp(function(){e.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Wp(function(){e._removePopup()},1800))}},{key:\"_makeCheckbox\",value:function(t,e,i){var n=document.createElement(\"input\"),o=(n.type=\"checkbox\",n.className=\"vis-configuration vis-config-checkbox\",n.checked=t,void 0===e||(n.checked=e)===t||\"object\"===x(t)&&e===t.enabled||this.changedOptions.push({path:i,value:e}),this),t=(n.onchange=function(){o._update(this.checked,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,t,n)}},{key:\"_makeTextInput\",value:function(t,e,i){var n=document.createElement(\"input\"),o=(n.type=\"text\",n.className=\"vis-configuration vis-config-text\",(n.value=e)!==t&&this.changedOptions.push({path:i,value:e}),this),t=(n.onchange=function(){o._update(this.value,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,t,n)}},{key:\"_makeColorField\",value:function(t,e,i){var n=this,t=t[1],o=document.createElement(\"div\"),t=(\"none\"!==(e=void 0===e?t:e)?(o.className=\"vis-configuration vis-config-colorBlock\",o.style.backgroundColor=e):o.className=\"vis-configuration vis-config-colorBlock none\",e=void 0===e?t:e,o.onclick=function(){n._showColorPicker(e,o,i)},this._makeLabel(i[i.length-1],i));this._makeItem(i,t,o)}},{key:\"_showColorPicker\",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(t){t=\"rgba(\"+t.r+\",\"+t.g+\",\"+t.b+\",\"+t.a+\")\";e.style.backgroundColor=t,n._update(t,i)}),this.colorPicker.setCloseCallback(function(){e.onclick=function(){n._showColorPicker(t,e,i)}})}},{key:\"_handleObject\",value:function(t){var e,i,n,o,r,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],l=!1,h=E(this.options),u=!1;for(e in t)t.hasOwnProperty(e)&&(l=!0,i=t[e],n=R.copyAndExtendArray(s,e),\"function\"==typeof h&&!1===(l=h(e,s))&&!C(i)&&\"string\"!=typeof i&&\"boolean\"!=typeof i&&i instanceof Object&&(this.allowCreation=!1,l=this._handleObject(i,n,!0),this.allowCreation=!1===a),!1!==l)&&(u=!0,o=this._getValue(n),C(i)?this._handleArray(i,o,n):\"string\"==typeof i?this._makeTextInput(i,o,n):\"boolean\"==typeof i?this._makeCheckbox(i,o,n):i instanceof Object?(o=!0)===(o=-1!==P(s).call(s,\"physics\")&&this.moduleOptions.physics.solver!==e?!1:o)&&(void 0!==i.enabled?(o=R.copyAndExtendArray(n,\"enabled\"),!0===(o=this._getValue(o))?(r=this._makeLabel(e,n,!0),this._makeItem(n,r),u=this._handleObject(i,n)||u):this._makeCheckbox(i,o,n)):(r=this._makeLabel(e,n,!0),this._makeItem(n,r),u=this._handleObject(i,n)||u)):console.error(\"dont know how to handle\",i,e,n));return u}},{key:\"_handleArray\",value:function(t,e,i){\"string\"==typeof t[0]&&\"color\"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):\"string\"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):\"number\"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e)&&this.changedOptions.push({path:i,value:Number(e)})}},{key:\"_update\",value:function(t,e){t=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit(\"configChange\",t),this.initialized=!0,this.parent.setOptions(t)}},{key:\"_constructOptions\",value:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=i;t=\"false\"!==(t=\"true\"===t||t)&&t;for(var o=0;o<e.length;o++)\"global\"!==e[o]&&(void 0===n[e[o]]&&(n[e[o]]={}),o!==e.length-1?n=n[e[o]]:n[e[o]]=t);return i}},{key:\"_printOptions\",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML=\"<pre>var options = \"+Np(t,null,2)+\"</pre>\"}},{key:\"getOptions\",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),NS);function NS(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1;k(this,NS),this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},R.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new AS(n),this.wrapper=void 0}function RS(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;k(this,RS),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}function FS(){k(this,FS)}ki=function(){cv(d,DD);i=d,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,c=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function d(t,e,i,n){var o;if(k(this,d),(o=c.call(this)).initTime=new Date,o.itemsDone=!1,!(A(o)instanceof d))throw new SyntaxError(\"Constructor must be called with the new operator\");!C(i)&&!Dx(i)&&i instanceof Object&&(h=n,n=i,i=h),n&&n.throttleRedraw&&console.warn('Timeline option \"throttleRedraw\" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var r,s=A(o);if(o.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:\"bottom\",item:\"bottom\"},moment:kk},o.options=R.deepExtend({},o.defaultOptions),n&&R.setupXSSProtection(n.xss),o._create(t),n&&void 0!==n.rtl)o.options.rtl=n.rtl;else{o.dom.root.style.visibility=\"hidden\";for(var a=o.dom.root;!r&&a;)r=window.getComputedStyle(a,null).direction,a=a.parentElement;o.options.rtl=r&&\"rtl\"==r.toLowerCase()}n&&(n.rollingMode&&(o.options.rollingMode=n.rollingMode),n.onInitialDrawComplete&&(o.options.onInitialDrawComplete=n.onInitialDrawComplete),n.onTimeout&&(o.options.onTimeout=n.onTimeout),n.loadingScreenTemplate)&&(o.options.loadingScreenTemplate=n.loadingScreenTemplate);var l,h=document.createElement(\"div\");function u(t,e){s.hasListeners(t)&&s.emit(t,s.getEventProperties(e))}return o.options.loadingScreenTemplate&&((l=(t=M(t=o.options.loadingScreenTemplate).call(t,A(o)))(o.dom.loadingScreen))instanceof Object&&!(l instanceof Element)?t(h):l instanceof Element?(h.innerHTML=\"\",h.appendChild(l)):null!=l&&(h.innerHTML=R.xss(l))),o.dom.loadingScreen.appendChild(h),o.components=[],o.body={dom:o.dom,domProps:o.props,emitter:{on:M(t=o.on).call(t,A(o)),off:M(l=o.off).call(l,A(o)),emit:M(h=o.emit).call(h,A(o))},hiddenDates:[],util:{getScale:function(){return s.timeAxis.step.scale},getStep:function(){return s.timeAxis.step.step},toScreen:M(t=s._toScreen).call(t,s),toGlobalScreen:M(l=s._toGlobalScreen).call(l,s),toTime:M(h=s._toTime).call(h,s),toGlobalTime:M(t=s._toGlobalTime).call(t,s)}},o.range=new hD(o.body,o.options),o.components.push(o.range),o.body.range=o.range,o.timeAxis=new yD(o.body,o.options),o.timeAxis2=null,o.components.push(o.timeAxis),o.currentTime=new CD(o.body,o.options),o.components.push(o.currentTime),o.itemSet=new SS(o.body,o.options),o.components.push(o.itemSet),o.itemsData=null,o.groupsData=null,o.dom.root.onclick=function(t){u(\"click\",t)},o.dom.root.ondblclick=function(t){u(\"doubleClick\",t)},o.dom.root.oncontextmenu=function(t){u(\"contextmenu\",t)},o.dom.root.onmouseover=function(t){u(\"mouseOver\",t)},window.PointerEvent?(o.dom.root.onpointerdown=function(t){u(\"mouseDown\",t)},o.dom.root.onpointermove=function(t){u(\"mouseMove\",t)},o.dom.root.onpointerup=function(t){u(\"mouseUp\",t)}):(o.dom.root.onmousemove=function(t){u(\"mouseMove\",t)},o.dom.root.onmousedown=function(t){u(\"mouseDown\",t)},o.dom.root.onmouseup=function(t){u(\"mouseUp\",t)}),o.initialFitDone=!1,o.on(\"changed\",function(){var t,e;null!=s.itemsData&&(s.initialFitDone||s.options.rollingMode||(s.initialFitDone=!0,null!=s.options.start||null!=s.options.end?(null!=s.options.start&&null!=s.options.end||(e=s.getItemRange()),t=null!=s.options.start?s.options.start:e.min,e=null!=s.options.end?s.options.end:e.max,s.setWindow(t,e,{animation:!1})):s.fit({animation:!1})),s.initialDrawDone||!s.initialRangeChangeDone&&(s.options.start||s.options.end)&&!s.options.rollingMode||(s.initialDrawDone=!0,s.itemSet.initialDrawDone=!0,s.dom.root.style.visibility=\"visible\",s.dom.loadingScreen.parentNode.removeChild(s.dom.loadingScreen),s.options.onInitialDrawComplete&&Wp(function(){return s.options.onInitialDrawComplete()},0)))}),o.on(\"destroyTimeline\",function(){s.destroy()}),n&&o.setOptions(n),o.body.emitter.on(\"fit\",function(t){o._onFit(t),o.redraw()}),i&&o.setGroups(i),e&&o.setItems(e),o._redraw(),o}return D(d,[{key:\"_createConfigurator\",value:function(){return new LS(this,this.dom.container,PS)}},{key:\"redraw\",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:\"setOptions\",value:function(t){var e;!0===OS.validate(t,ES)&&console.log(\"%cErrors have been found in the supplied options object.\",MS),DD.prototype.setOptions.call(this,t),\"type\"in t&&t.type!==this.options.type&&(this.options.type=t.type,t=this.itemsData)&&(e=this.getSelection(),this.setItems(null),this.setItems(t.rawDS),this.setSelection(e))}},{key:\"setItems\",value:function(t){this.itemsDone=!1,t=t?Dx(t)?Mx(t):Mx(new yk(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.itemSet&&this.itemSet.setItems(null!=t?t.rawDS:null)}},{key:\"setGroups\",value:function(t){t=t?(C(t)&&(t=new yk(t)),new bk(t,{filter:function(t){return!1!==t.visible}})):null;null!=this.groupsData&&\"function\"==typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=t,this.itemSet.setGroups(t)}},{key:\"setData\",value:function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}},{key:\"setSelection\",value:function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}},{key:\"getSelection\",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:\"focus\",value:function(t,e){var i,n,r,s,a,l,o,h;this.itemsData&&null!=t&&(t=C(t)?t:[t],h=this.itemsData.get(t),n=i=null,O(h).call(h,function(t){var e=t.start.valueOf(),t=(\"end\"in t?t.end:t.start).valueOf();(null===i||e<i)&&(i=e),(null===n||n<t)&&(n=t)}),null!==i)&&null!==n&&(s=(r=this).itemSet.items[t[0]],a=-1*this._getScrollTop(),l=null,o=function(){var t=HS(r,s);t.shouldScroll&&t.itemTop!=l.itemTop&&(r._setScrollTop(-t.scrollOffset),r._redraw())},h=!e||void 0===e.zoom||e.zoom,t=(i+n)/2,h=h?1.1*(n-i):Math.max(this.range.end-this.range.start,1.1*(n-i)),(e=!e||void 0===e.animation||e.animation)||(l={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(t-h/2,t+h/2,{animation:e},function(){o(),Wp(o,100)},function(t,e,i){var n,o=HS(r,s);!1===o||(l=l||o).itemTop==o.itemTop&&!l.shouldScroll||(l.itemTop!=o.itemTop&&o.shouldScroll&&(l=o,a=-1*r._getScrollTop()),o=a,n=l.scrollOffset,r._setScrollTop(-(i?n:o+(n-o)*t)),e)||r._redraw()}))}},{key:\"fit\",value:function(t,e){var i,t=!t||void 0===t.animation||t.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(i=this.getDataRange(),this.moveTo(i.min.valueOf(),{animation:t},e)):(i=this.getItemRange(),this.range.setRange(i.min,i.max,{animation:t},e))}},{key:\"getItemRange\",value:function(){var o=this,t=this.getDataRange(),r=null!==t.min?t.min.valueOf():null,s=null!==t.max?t.max.valueOf():null,a=null,l=null;if(null!=r&&null!=s){var e,i,n,t=s-r,h=(t=t<=0?10:t)/this.props.center.width,u={},c=0;if(O(R).call(R,this.itemSet.items,function(t,e){t.groupShowing&&(u[e]=t.redraw(!0),c=u[e].length)}),0<c)for(var d=0;d<c;d++)!function(e){O(R).call(R,u,function(t){t[e]()})}(d);O(R).call(R,this.itemSet.items,function(t){var e,i=jS(t),n=YS(t),i=o.options.rtl?(e=i-(t.getWidthRight()+10)*h,n+(t.getWidthLeft()+10)*h):(e=i-(t.getWidthLeft()+10)*h,n+(t.getWidthRight()+10)*h);e<r&&(r=e,a=t),s<i&&(s=i,l=t)}),a&&l&&(e=a.getWidthLeft()+10,i=l.getWidthRight()+10,0<(n=this.props.center.width-e-i))&&(s=this.options.rtl?(r=jS(a)-i*t/n,YS(l)+e*t/n):(r=jS(a)-e*t/n,YS(l)+i*t/n))}return{min:null!=r?new Date(r):null,max:null!=s?new Date(s):null}}},{key:\"getDataRange\",value:function(){var t,i=null,n=null;return this.itemsData&&O(t=this.itemsData).call(t,function(t){var e=R.convert(t.start,\"Date\").valueOf(),t=R.convert(null!=t.end?t.end:t.start,\"Date\").valueOf();(null===i||e<i)&&(i=e),(null===n||n<t)&&(n=t)}),{min:null!=i?new Date(i):null,max:null!=n?new Date(n):null}}},{key:\"getEventProperties\",value:function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=this.dom.centerContainer.getBoundingClientRect(),e=this.options.rtl?n.right-e:e-n.left,i=i-n.top,n=this.itemSet.itemFromTarget(t),o=this.itemSet.groupFromTarget(t),r=xD.customTimeFromTarget(t),s=this.itemSet.options.snap||null,a=this.body.util.getScale(),l=this.body.util.getStep(),h=this._toTime(e),s=s?s(h,a,l):h,a=R.getTarget(t),l=null;return null!=n?l=\"item\":null!=r?l=\"custom-time\":R.hasParent(a,this.timeAxis.dom.foreground)||this.timeAxis2&&R.hasParent(a,this.timeAxis2.dom.foreground)?l=\"axis\":R.hasParent(a,this.itemSet.dom.labelSet)?l=\"group-label\":R.hasParent(a,this.currentTime.bar)?l=\"current-time\":R.hasParent(a,this.dom.center)&&(l=\"background\"),{event:t,item:n?n.id:null,isCluster:!!n&&!!n.isCluster,items:n?n.items||[]:null,group:o?o.groupId:null,customTime:r?r.options.id:null,what:l,pageX:(t.srcEvent||t).pageX,pageY:(t.srcEvent||t).pageY,x:e,y:i,time:h,snappedTime:s}}},{key:\"toggleRollingMode\",value:function(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:\"_redraw\",value:function(){DD.prototype._redraw.call(this)}},{key:\"_onFit\",value:function(t){var e=t.start,i=t.end,t=t.animation;i?this.range.setRange(e,i,{animation:t}):this.moveTo(e.valueOf(),{animation:t})}}]),d}();function jS(t){return R.convert(t.data.start,\"Date\").valueOf()}function YS(t){t=null!=t.data.end?t.data.end:t.data.start;return R.convert(t,\"Date\").valueOf()}function HS(t,e){var i,n,o,r,s,a,l,h,u,c;return!!e.parent&&(i=(t.options.rtl?t.props.rightContainer:t.props.leftContainer).height,n=t.props.center.height,r=(o=e.parent).top,s=!0,a=t.timeAxis.options.orientation.axis,l=function(){return\"bottom\"==a?o.height-e.top-e.height:e.top},h=-1*t._getScrollTop(),u=r+l(),c=e.height,u<h?r+i<=r+l()+c&&(r+=l()-t.itemSet.options.margin.item.vertical):h+i<u+c?r+=l()+c-i+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:r=Math.min(r,n-i),itemTop:u})}D(BS,[{key:\"setCharHeight\",value:function(t){this.majorCharHeight=t}},{key:\"setHeight\",value:function(t){this.containerHeight=t}},{key:\"determineScale\",value:function(){for(var t=this._end-this._start,e=(this.scale=this.containerHeight/t,this.majorCharHeight/this.scale),i=0<t?Math.round(Math.log(t)/Math.LN10):0,t=(this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i),0),n=!1,o=t=i<0?i:t;Math.abs(o)<=Math.abs(i);o++){this.magnitudefactor=Math.pow(10,o);for(var r=0;r<this.minorSteps.length;r++)if(this.magnitudefactor*this.minorSteps[r]>=e){n=!0,this.minorStepIdx=r;break}if(!0===n)break}}},{key:\"is_major\",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:\"getStep\",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:\"getFirstMajor\",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:\"formatValue\",value:function(t){var e=t.toPrecision(5);return\"number\"==typeof(e=\"function\"==typeof this.formattingFunction?this.formattingFunction(t):e)?\"\".concat(e):\"string\"==typeof e?e:t.toPrecision(5)}},{key:\"getLines\",value:function(){for(var t=[],e=this.getStep(),i=(e-this._start%e)%e,n=this._start+i;1e-5<this._end-n;n+=e)n!=this._start&&t.push({major:this.is_major(n),y:this.convertValue(n),val:this.formatValue(n)});return t}},{key:\"followScale\",value:function(t){function e(){s.magnitudefactor*=2}function i(){s.magnitudefactor/=2}var n=this.minorStepIdx,o=this._start,r=this._end,s=this;t.minorStepIdx<=1&&this.minorStepIdx<=1||1<t.minorStepIdx&&1<this.minorStepIdx||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2!=n&&e(),e):(this.minorStepIdx=2,1!=n&&i(),i))();for(var a=t.convertValue(0),l=t.getStep()*t.scale,h=!1,u=0;!h&&u++<5;){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var c=this.containerHeight/this.scale,d=(this._start=o,this._end=this._start+c,this._end*this.scale),p=this.magnitudefactor*this.majorSteps[this.minorStepIdx],m=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign?(this._end+=(a-d)/this.scale,this._start=this._end-c):(this.autoScaleStart?this._start-=m/this.scale:this._start+=p-m/this.scale,this._end=this._start+c),!this.autoScaleEnd&&this._end>r+1e-5)i(),h=!1;else{if(!this.autoScaleStart&&this._start<o-1e-5){if(!(this.zeroAlign&&0<=o)){i(),h=!1;continue}console.warn(\"Can't adhere to given 'min' range, due to zeroalign\")}h=!(this.autoScaleStart&&this.autoScaleEnd&&c<r-o&&(e(),1))}}}},{key:\"convertValue\",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:\"screenToValue\",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]);var zS=BS;function BS(t,e,i,n,o,r){var s,a=6<arguments.length&&void 0!==arguments[6]&&arguments[6],l=7<arguments.length&&void 0!==arguments[7]&&arguments[7];k(this,BS),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=r,this._start=t,this._end=e,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=i,this.autoScaleEnd=n,this.formattingFunction=l,(i||n)&&(s=this,o=function(t){var e=t-t%(s.magnitudefactor*s.minorSteps[s.minorStepIdx]);return t%(s.magnitudefactor*s.minorSteps[s.minorStepIdx])>s.magnitudefactor*s.minorSteps[s.minorStepIdx]*.5?e+s.magnitudefactor*s.minorSteps[s.minorStepIdx]:e},i&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=o(this._start)),n&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=o(this._end)),this.determineScale())}function GS(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var WS=function(){cv(a,Yx);i=a,n=function(){if(\"undefined\"==typeof Reflect||!N)return!1;if(N.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N(Boolean,[],function(){})),!0}catch(t){return!1}}();var i,n,s=function(){var t,e=L(i);return dv(this,n?(t=L(this).constructor,N(e,arguments,t)):e.apply(this,arguments))};function a(t,e,i,n){k(this,a),(o=s.call(this)).id=tk(),o.body=t,o.defaultOptions={orientation:\"left\",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:\"40px\",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(t){return\"\".concat(jx(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return\"\".concat(jx(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},o.linegraphOptions=n,o.linegraphSVG=i,o.props={},o.DOMelements={lines:{},labels:{},title:{}},o.dom={},o.scale=void 0,o.range={start:0,end:0},o.options=R.extend({},o.defaultOptions),o.conversionFactor=1,o.setOptions(e),o.width=Number(\"\".concat(o.options.width).replace(\"px\",\"\")),o.minWidth=o.width,o.height=o.linegraphSVG.getBoundingClientRect().height,o.hidden=!1,o.stepPixels=25,o.zeroCrossing=-1,o.amountOfSteps=-1,o.lineOffset=0,o.master=!0,o.masterAxis=null,o.svgElements={},o.iconsRemoved=!1,o.groups={},o.amountOfGroups=0,o._create(),null==o.scale&&o._redrawLabels(),o.framework={svg:o.svg,svgElements:o.svgElements,options:o.options,groups:o.groups};var o,r=A(o);return o.body.emitter.on(\"verticalDrag\",function(){r.dom.lineContainer.style.top=\"\".concat(r.body.domProps.scrollTop,\"px\")}),o}return D(a,[{key:\"addGroup\",value:function(t,e){this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1}},{key:\"updateGroup\",value:function(t,e){this.groups.hasOwnProperty(t)||(this.amountOfGroups+=1),this.groups[t]=e}},{key:\"removeGroup\",value:function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],--this.amountOfGroups)}},{key:\"setOptions\",value:function(t){var e;t&&(e=!1,this.options.orientation!=t.orientation&&void 0!==t.orientation&&(e=!0),R.selectiveDeepExtend([\"orientation\",\"showMinorLabels\",\"showMajorLabels\",\"icons\",\"majorLinesOffset\",\"minorLinesOffset\",\"labelOffsetX\",\"labelOffsetY\",\"iconWidth\",\"width\",\"visible\",\"left\",\"right\",\"alignZeros\"],this.options,t),this.minWidth=Number(\"\".concat(this.options.width).replace(\"px\",\"\")),!0===e)&&this.dom.frame&&(this.hide(),this.show())}},{key:\"_create\",value:function(){this.dom.frame=document.createElement(\"div\"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement(\"div\"),this.dom.lineContainer.style.width=\"100%\",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position=\"relative\",this.dom.lineContainer.style.visibility=\"visible\",this.dom.lineContainer.style.display=\"block\",this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),this.svg.style.position=\"absolute\",this.svg.style.top=\"0px\",this.svg.style.height=\"100%\",this.svg.style.width=\"100%\",this.svg.style.display=\"block\",this.dom.frame.appendChild(this.svg)}},{key:\"_redrawGroupIcons\",value:function(){Xg(this.svgElements);var t=this.options.iconWidth,e=11.5,i=\"left\"===this.options.orientation?4:this.width-t-4,n=sc(this.groups);sw(n).call(n,function(t,e){return t<e?-1:1});var o,r=function(t,e){var i,n,o,r,s=void 0!==zu&&Hs(t)||t[\"@@iterator\"];if(s)return o=!(n=!0),{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){o=!0,i=t},f:function(){try{n||null==s.return||s.return()}finally{if(o)throw i}}};if(C(t)||(s=function(t){var e;if(t)return\"string\"==typeof t?GS(t,void 0):\"Map\"===(e=\"Object\"===(e=qu(e=Object.prototype.toString.call(t)).call(e,8,-1))&&t.constructor?t.constructor.name:e)||\"Set\"===e?cs(t):\"Arguments\"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?GS(t,void 0):void 0}(t))||e&&t&&\"number\"==typeof t.length)return s&&(t=s),r=0,{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e};throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}(n);try{for(r.s();!(o=r.n()).done;){var s=o.value;!0!==this.groups[s].visible||void 0!==this.linegraphOptions.visibility[s]&&!0!==this.linegraphOptions.visibility[s]||(this.groups[s].getLegend(t,15,this.framework,i,e),e+=19)}}catch(i){r.e(i)}finally{r.f()}qg(this.svgElements),this.iconsRemoved=!1}},{key:\"_cleanupIcons\",value:function(){!1===this.iconsRemoved&&(Xg(this.svgElements),qg(this.svgElements),this.iconsRemoved=!0)}},{key:\"show\",value:function(){this.hidden=!1,this.dom.frame.parentNode||(\"left\"===this.options.orientation?this.body.dom.left:this.body.dom.right).appendChild(this.dom.frame),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display=\"block\"}},{key:\"hide\",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display=\"none\"}},{key:\"setRange\",value:function(t,e){this.range.start=t,this.range.end=e}},{key:\"redraw\",value:function(){var t,e,i,n,o,r,s,a=!1,l=0;for(t in this.dom.lineContainer.style.top=\"\".concat(this.body.domProps.scrollTop,\"px\"),this.groups)!this.groups.hasOwnProperty(t)||!0!==this.groups[t].visible||void 0!==this.linegraphOptions.visibility[t]&&!0!==this.linegraphOptions.visibility[t]||l++;return 0===this.amountOfGroups||0===l?this.hide():(this.show(),this.height=Number(this.linegraphSVG.style.height.replace(\"px\",\"\")),this.dom.lineContainer.style.height=\"\".concat(this.height,\"px\"),this.width=!0===this.options.visible?Number(\"\".concat(this.options.width).replace(\"px\",\"\")):0,e=this.props,(i=this.dom.frame).className=\"vis-data-axis\",this._calculateCharSize(),n=this.options.orientation,o=this.options.showMinorLabels,r=this.options.showMajorLabels,s=this.body.dom.backgroundHorizontal.offsetWidth,e.minorLabelHeight=o?e.minorCharHeight:0,e.majorLabelHeight=r?e.majorCharHeight:0,e.minorLineWidth=s-this.lineOffset-this.width+2*this.options.minorLinesOffset,e.minorLineHeight=1,e.majorLineWidth=s-this.lineOffset-this.width+2*this.options.majorLinesOffset,e.majorLineHeight=1,\"left\"===n?(i.style.top=\"0\",i.style.left=\"0\",i.style.bottom=\"\",i.style.width=\"\".concat(this.width,\"px\"),i.style.height=\"\".concat(this.height,\"px\"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(i.style.top=\"\",i.style.bottom=\"0\",i.style.left=\"0\",i.style.width=\"\".concat(this.width,\"px\"),i.style.height=\"\".concat(this.height,\"px\"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),a=this._redrawLabels(),a=this._isResized()||a,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(n)),a}},{key:\"_redrawLabels\",value:function(){var n=this,o=(Xg(this.DOMelements.lines),Xg(this.DOMelements.labels),this.options.orientation),t=null!=this.options[o].range?this.options[o].range:{},e=!0,i=(null!=t.max&&(this.range.end=t.max,e=!1),!0),t=(null!=t.min&&(this.range.start=t.min,i=!1),this.scale=new zS(this.range.start,this.range.end,i,e,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[o].format),!1===this.master&&null!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display=\"none\"):this.dom.lineContainer.style.display=\"block\",this.maxLabelSize=0,this.scale.getLines()),i=(O(t).call(t,function(t){var e=t.y,i=t.major;n.options.showMinorLabels&&!1===i&&n._redrawLabel(e-2,t.val,o,\"vis-y-axis vis-minor\",n.props.minorCharHeight),i&&0<=e&&n._redrawLabel(e-2,t.val,o,\"vis-y-axis vis-major\",n.props.majorCharHeight),!0===n.master&&(i?n._redrawLine(e,o,\"vis-grid vis-horizontal vis-major\",n.options.majorLinesOffset,n.props.majorLineWidth):n._redrawLine(e,o,\"vis-grid vis-horizontal vis-minor\",n.options.minorLinesOffset,n.props.minorLineWidth))}),0),e=(void 0!==this.options[o].title&&void 0!==this.options[o].title.text&&(i=this.props.titleCharHeight),!0===this.options.icons?Math.max(this.options.iconWidth,i)+this.options.labelOffsetX+15:i+this.options.labelOffsetX+15);return this.maxLabelSize>this.width-e&&!0===this.options.visible?(this.width=this.maxLabelSize+e,this.options.width=\"\".concat(this.width,\"px\"),qg(this.DOMelements.lines),qg(this.DOMelements.labels),this.redraw(),!0):this.maxLabelSize<this.width-e&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+e),this.options.width=\"\".concat(this.width,\"px\"),qg(this.DOMelements.lines),qg(this.DOMelements.labels),this.redraw(),!0):(qg(this.DOMelements.lines),qg(this.DOMelements.labels),!1)}},{key:\"convertValue\",value:function(t){return this.scale.convertValue(t)}},{key:\"screenToValue\",value:function(t){return this.scale.screenToValue(t)}},{key:\"_redrawLabel\",value:function(t,e,i,n,o){var r=Kg(\"div\",this.DOMelements.labels,this.dom.frame),n=(r.className=n,r.innerHTML=R.xss(e),\"left\"===i?(r.style.left=\"-\".concat(this.options.labelOffsetX,\"px\"),r.style.textAlign=\"right\"):(r.style.right=\"-\".concat(this.options.labelOffsetX,\"px\"),r.style.textAlign=\"left\"),r.style.top=\"\".concat(t-.5*o+this.options.labelOffsetY,\"px\"),e+=\"\",Math.max(this.props.majorCharWidth,this.props.minorCharWidth));this.maxLabelSize<e.length*n&&(this.maxLabelSize=e.length*n)}},{key:\"_redrawLine\",value:function(t,e,i,n,o){var r;!0===this.master&&((r=Kg(\"div\",this.DOMelements.lines,this.dom.lineContainer)).className=i,r.innerHTML=\"\",\"left\"===e?r.style.left=\"\".concat(this.width-n,\"px\"):r.style.right=\"\".concat(this.width-n,\"px\"),r.style.width=\"\".concat(o,\"px\"),r.style.top=\"\".concat(t,\"px\"))}},{key:\"_redrawTitle\",value:function(t){var e;Xg(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text&&((e=Kg(\"div\",this.DOMelements.title,this.dom.frame)).className=\"vis-y-axis vis-title vis-\".concat(t),e.innerHTML=R.xss(this.options[t].title.text),void 0!==this.options[t].title.style&&R.addCssText(e,this.options[t].title.style),\"left\"===t?e.style.left=\"\".concat(this.props.titleCharHeight,\"px\"):e.style.right=\"\".concat(this.props.titleCharHeight,\"px\"),e.style.width=\"\".concat(this.height,\"px\")),qg(this.DOMelements.title)}},{key:\"_calculateCharSize\",value:function(){var t,e;\"minorCharHeight\"in this.props||(t=document.createTextNode(\"0\"),(e=document.createElement(\"div\")).className=\"vis-y-axis vis-minor vis-measure\",e.appendChild(t),this.dom.frame.appendChild(e),this.props.minorCharHeight=e.clientHeight,this.props.minorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)),\"majorCharHeight\"in this.props||(t=document.createTextNode(\"0\"),(e=document.createElement(\"div\")).className=\"vis-y-axis vis-major vis-measure\",e.appendChild(t),this.dom.frame.appendChild(e),this.props.majorCharHeight=e.clientHeight,this.props.majorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)),\"titleCharHeight\"in this.props||(t=document.createTextNode(\"0\"),(e=document.createElement(\"div\")).className=\"vis-y-axis vis-title vis-measure\",e.appendChild(t),this.dom.frame.appendChild(e),this.props.titleCharHeight=e.clientHeight,this.props.titleCharWidth=e.clientWidth,this.dom.frame.removeChild(e))}}]),a}();function VS(t,e){}function US(t,e){return{style:(e=void 0===e?{}:e).style||t.options.drawPoints.style,styles:e.styles||t.options.drawPoints.styles,size:e.size||t.options.drawPoints.size,className:e.className||t.className}}function XS(t,e){}function qS(t,e){}function $S(t,e,i,n){this.id=e,this.options=R.selectiveBridgeObject([\"sampling\",\"style\",\"sort\",\"yAxisOrientation\",\"barChart\",\"drawPoints\",\"shaded\",\"interpolation\",\"zIndex\",\"excludeFromStacking\",\"excludeFromLegend\"],i),this.usingDefaultStyle=void 0===t.className,this.groupsUsingDefaultStyles=n,this.zeroPosition=0,this.update(t),1==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===t.visible||t.visible}function ZS(t,e,i,n){this.body=t,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:\"top-left\"},right:{visible:!0,position:\"top-right\"}},this.side=i,this.options=R.extend({},this.defaultOptions),this.linegraphOptions=n,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(e)}VS.draw=function(t,e,i,n){n=n||0;r=void 0,i.options&&i.options.drawPoints&&i.options.drawPoints.onRender&&\"function\"==typeof i.options.drawPoints.onRender&&(r=i.options.drawPoints.onRender);for(var o,r,s=r=e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&\"function\"==typeof e.group.options.drawPoints.onRender?e.group.options.drawPoints.onRender:r,a=0;a<t.length;a++)s?!0!==(o=s(t[a],e))&&\"object\"!==x(o)||Jg(t[a].screen_x+n,t[a].screen_y,US(e,o),i.svgElements,i.svg,t[a].label):Jg(t[a].screen_x+n,t[a].screen_y,US(e),i.svgElements,i.svg,t[a].label)},VS.drawIcon=function(t,e,i,n,o,r){var o=.5*o,s=Zg(\"rect\",r.svgElements,r.svg);s.setAttributeNS(null,\"x\",e),s.setAttributeNS(null,\"y\",i-o),s.setAttributeNS(null,\"width\",n),s.setAttributeNS(null,\"height\",2*o),s.setAttributeNS(null,\"class\",\"vis-outline\"),Jg(e+.5*n,i,US(t),r.svgElements,r.svg)},XS.drawIcon=function(t,e,i,n,o,r){var s=.5*o,a=Zg(\"rect\",r.svgElements,r.svg),a=(a.setAttributeNS(null,\"x\",e),a.setAttributeNS(null,\"y\",i-s),a.setAttributeNS(null,\"width\",n),a.setAttributeNS(null,\"height\",2*s),a.setAttributeNS(null,\"class\",\"vis-outline\"),Math.round(.3*n)),l=t.options.barChart.width/a,h=Math.round(.4*o),o=Math.round(.75*o),n=Math.round((n-2*a)/3);Qg(e+.5*a+n,i+s-h-1,a,h,t.className+\" vis-bar\",r.svgElements,r.svg,t.style),Qg(e+1.5*a+n+2,i+s-o-1,a,o,t.className+\" vis-bar\",r.svgElements,r.svg,t.style),1==t.options.drawPoints.enabled&&(Jg(e+.5*a+n,i+s-h-1,h={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/l,className:t.className},r.svgElements,r.svg),Jg(e+1.5*a+n+2,i+s-o-1,h,r.svgElements,r.svg))},XS.draw=function(t,e,i){for(var n,o,r,s,a=[],l={},h=0,u=0;u<t.length;u++)if(\"bar\"===(r=i.groups[t[u]]).options.style&&!0===r.visible&&(void 0===i.options.groups.visibility[t[u]]||!0===i.options.groups.visibility[t[u]]))for(s=0;s<e[t[u]].length;s++)a.push({screen_x:e[t[u]][s].screen_x,screen_end:e[t[u]][s].screen_end,screen_y:e[t[u]][s].screen_y,x:e[t[u]][s].x,end:e[t[u]][s].end,y:e[t[u]][s].y,groupId:t[u],label:e[t[u]][s].label}),h+=1;if(0!==h)for(sw(a).call(a,function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x}),XS._getDataIntersections(l,a),u=0;u<a.length;u++){var c,d=null!=(r=i.groups[a[u].groupId]).options.barChart.minWidth?r.options.barChart.minWidth:.1*r.options.barChart.width,p=0,m=(void 0===l[c=a[u].screen_x]?(u+1<a.length&&(n=Math.abs(a[u+1].screen_x-c)),o=XS._getSafeDrawData(n,r,d)):((m=u+(l[c].amount-l[c].resolved))<a.length&&(n=Math.abs(a[m].screen_x-c)),o=XS._getSafeDrawData(n,r,d),l[c].resolved+=1,!0===r.options.stack&&!0!==r.options.excludeFromStacking?a[u].screen_y<r.zeroPosition?(p=l[c].accumulatedNegative,l[c].accumulatedNegative+=r.zeroPosition-a[u].screen_y):(p=l[c].accumulatedPositive,l[c].accumulatedPositive+=r.zeroPosition-a[u].screen_y):!0===r.options.barChart.sideBySide&&(o.width=o.width/l[c].amount,o.offset+=l[c].resolved*o.width-.5*o.width*(l[c].amount+1))),o.width),d=a[u].screen_x;null!=a[u].screen_end?d+=.5*(m=a[u].screen_end-a[u].screen_x):d+=o.offset,Qg(d,a[u].screen_y-p,m,r.zeroPosition-a[u].screen_y,r.className+\" vis-bar\",i.svgElements,i.svg,r.style),!0===r.options.drawPoints.enabled&&(c={screen_x:a[u].screen_x,screen_y:a[u].screen_y-p,x:a[u].x,y:a[u].y,groupId:a[u].groupId,label:a[u].label},VS.draw([c],r,i,o.offset))}},XS._getDataIntersections=function(t,e){for(var i,n=0;n<e.length;n++)n+1<e.length&&(i=Math.abs(e[n+1].screen_x-e[n].screen_x)),0===(i=0<n?Math.min(i,Math.abs(e[n-1].screen_x-e[n].screen_x)):i)&&(void 0===t[e[n].screen_x]&&(t[e[n].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[n].screen_x].amount+=1)},XS._getSafeDrawData=function(t,e,i){var n,o;return t<e.options.barChart.width&&0<t?(n=t<i?i:t,o=0,\"left\"===e.options.barChart.align?o-=.5*t:\"right\"===e.options.barChart.align&&(o+=.5*t)):(n=e.options.barChart.width,o=0,\"left\"===e.options.barChart.align?o-=.5*e.options.barChart.width:\"right\"===e.options.barChart.align&&(o+=.5*e.options.barChart.width)),{width:n,offset:o}},XS.getStackedYRange=function(t,e,i,n,o){var r;0<t.length&&(sw(t).call(t,function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x}),XS._getDataIntersections(r={},t),e[n]=XS._getStackedYRange(r,t),e[n].yAxisOrientation=o,i.push(n))},XS._getStackedYRange=function(t,e){for(var i,n,o=e[0].screen_y,r=e[0].screen_y,s=0;s<e.length;s++)void 0===t[i=e[s].screen_x]?(o=o>e[s].screen_y?e[s].screen_y:o,r=r<e[s].screen_y?e[s].screen_y:r):e[s].screen_y<0?t[i].accumulatedNegative+=e[s].screen_y:t[i].accumulatedPositive+=e[s].screen_y;for(n in t)t.hasOwnProperty(n)&&(o=(o=o>t[n].accumulatedNegative?t[n].accumulatedNegative:o)>t[n].accumulatedPositive?t[n].accumulatedPositive:o,r=(r=r<t[n].accumulatedNegative?t[n].accumulatedNegative:r)<t[n].accumulatedPositive?t[n].accumulatedPositive:r);return{min:o,max:r}},qS.calcPath=function(t,e){if(null!=t&&0<t.length)return 1==e.options.interpolation.enabled?qS._catmullRom(t,e):qS._linear(t)},qS.drawIcon=function(t,e,i,n,o,r){var o=.5*o,s=Zg(\"rect\",r.svgElements,r.svg);s.setAttributeNS(null,\"x\",e),s.setAttributeNS(null,\"y\",i-o),s.setAttributeNS(null,\"width\",n),s.setAttributeNS(null,\"height\",2*o),s.setAttributeNS(null,\"class\",\"vis-outline\"),(s=Zg(\"path\",r.svgElements,r.svg)).setAttributeNS(null,\"class\",t.className),void 0!==t.style&&s.setAttributeNS(null,\"style\",t.style),s.setAttributeNS(null,\"d\",\"M\"+e+\",\"+i+\" L\"+(e+n)+\",\"+i),1==t.options.shaded.enabled&&(s=Zg(\"path\",r.svgElements,r.svg),\"top\"==t.options.shaded.orientation?s.setAttributeNS(null,\"d\",\"M\"+e+\", \"+(i-o)+\"L\"+e+\",\"+i+\" L\"+(e+n)+\",\"+i+\" L\"+(e+n)+\",\"+(i-o)):s.setAttributeNS(null,\"d\",\"M\"+e+\",\"+i+\" L\"+e+\",\"+(i+o)+\" L\"+(e+n)+\",\"+(i+o)+\"L\"+(e+n)+\",\"+i),s.setAttributeNS(null,\"class\",t.className+\" vis-icon-fill\"),void 0!==t.options.shaded.style)&&\"\"!==t.options.shaded.style&&s.setAttributeNS(null,\"style\",t.options.shaded.style),1==t.options.drawPoints.enabled&&Jg(e+.5*n,i,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},r.svgElements,r.svg)},qS.drawShading=function(t,e,i,n){var o,r,s;1==e.options.shaded.enabled&&(s=Number(n.svg.style.height.replace(\"px\",\"\")),n=Zg(\"path\",n.svgElements,n.svg),o=\"L\",1==e.options.interpolation.enabled&&(o=\"C\"),r=0,r=\"top\"==e.options.shaded.orientation?0:\"bottom\"==e.options.shaded.orientation?s:Math.min(Math.max(0,e.zeroPosition),s),s=\"group\"==e.options.shaded.orientation&&null!=i?\"M\"+t[0][0]+\",\"+t[0][1]+\" \"+this.serializePath(t,o,!1)+\" L\"+i[i.length-1][0]+\",\"+i[i.length-1][1]+\" \"+this.serializePath(i,o,!0)+i[0][0]+\",\"+i[0][1]+\" Z\":\"M\"+t[0][0]+\",\"+t[0][1]+\" \"+this.serializePath(t,o,!1)+\" V\"+r+\" H\"+t[0][0]+\" Z\",n.setAttributeNS(null,\"class\",e.className+\" vis-fill\"),void 0!==e.options.shaded.style&&n.setAttributeNS(null,\"style\",e.options.shaded.style),n.setAttributeNS(null,\"d\",s))},qS.draw=function(t,e,i){var n;null!=t&&((i=Zg(\"path\",i.svgElements,i.svg)).setAttributeNS(null,\"class\",e.className),void 0!==e.style&&i.setAttributeNS(null,\"style\",e.style),n=\"L\",1==e.options.interpolation.enabled&&(n=\"C\"),i.setAttributeNS(null,\"d\",\"M\"+t[0][0]+\",\"+t[0][1]+\" \"+this.serializePath(t,n,!1)))},qS.serializePath=function(t,e,i){if(t.length<2)return\"\";var n,o=e;if(i)for(n=t.length-2;0<n;n--)o+=t[n][0]+\",\"+t[n][1]+\" \";else for(n=1;n<t.length;n++)o+=t[n][0]+\",\"+t[n][1]+\" \";return o},qS._catmullRomUniform=function(t){var e,i,n,o,r=[];r.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var s=t.length,a=0;a<s-1;a++)n=0==a?t[0]:t[a-1],o=t[a],e=t[a+1],i=a+2<s?t[a+2]:e,n={screen_x:(-n.screen_x+6*o.screen_x+e.screen_x)*(1/6),screen_y:(-n.screen_y+6*o.screen_y+e.screen_y)*(1/6)},o={screen_x:(o.screen_x+6*e.screen_x-i.screen_x)*(1/6),screen_y:(o.screen_y+6*e.screen_y-i.screen_y)*(1/6)},r.push([n.screen_x,n.screen_y]),r.push([o.screen_x,o.screen_y]),r.push([e.screen_x,e.screen_y]);return r},qS._catmullRom=function(t,e){var i=e.options.interpolation.alpha;if(0==i||void 0===i)return this._catmullRomUniform(t);var n,o,r,s,a,l,h,u,c,d,p,m,f=[];f.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var g=t.length,v=0;v<g-1;v++)s=0==v?t[0]:t[v-1],n=t[v],o=t[v+1],r=v+2<g?t[v+2]:o,p=Math.sqrt(Math.pow(s.screen_x-n.screen_x,2)+Math.pow(s.screen_y-n.screen_y,2)),d=Math.sqrt(Math.pow(n.screen_x-o.screen_x,2)+Math.pow(n.screen_y-o.screen_y,2)),c=Math.sqrt(Math.pow(o.screen_x-r.screen_x,2)+Math.pow(o.screen_y-r.screen_y,2)),h=Math.pow(c,i),c=Math.pow(c,2*i),u=Math.pow(d,i),d=Math.pow(d,2*i),m=Math.pow(p,i),a=2*(p=Math.pow(p,2*i))+3*m*u+d,0<(m=3*m*(m+u))&&(m=1/m),0<(l=3*h*(h+u))&&(l=1/l),s={screen_x:(-d*s.screen_x+a*n.screen_x+p*o.screen_x)*m,screen_y:(-d*s.screen_y+a*n.screen_y+p*o.screen_y)*m},p={screen_x:(c*n.screen_x+(a=2*c+3*h*u+d)*o.screen_x-d*r.screen_x)*l,screen_y:(c*n.screen_y+a*o.screen_y-d*r.screen_y)*l},0==s.screen_x&&0==s.screen_y&&(s=n),0==p.screen_x&&0==p.screen_y&&(p=o),f.push([s.screen_x,s.screen_y]),f.push([p.screen_x,p.screen_y]),f.push([o.screen_x,o.screen_y]);return f},qS._linear=function(t){for(var e=[],i=0;i<t.length;i++)e.push([t[i].screen_x,t[i].screen_y]);return e},$S.prototype.setItems=function(t){null!=t?(this.itemsData=t,1==sw(this.options)&&R.insertSort(this.itemsData,function(t,e){return t.x>e.x?1:-1})):this.itemsData=[]},$S.prototype.getItems=function(){return this.itemsData},$S.prototype.setZeroPosition=function(t){this.zeroPosition=t},$S.prototype.setOptions=function(t){void 0!==t&&(R.selectiveDeepExtend([\"sampling\",\"style\",\"sort\",\"yAxisOrientation\",\"barChart\",\"zIndex\",\"excludeFromStacking\",\"excludeFromLegend\"],this.options,t),\"function\"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),R.mergeOptions(this.options,t,\"interpolation\"),R.mergeOptions(this.options,t,\"drawPoints\"),R.mergeOptions(this.options,t,\"shaded\"),t.interpolation)&&\"object\"==x(t.interpolation)&&t.interpolation.parametrization&&(\"uniform\"==t.interpolation.parametrization?this.options.interpolation.alpha=0:\"chordal\"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization=\"centripetal\",this.options.interpolation.alpha=.5))},$S.prototype.update=function(t){this.group=t,this.content=t.content||\"graph\",this.className=t.className||this.className||\"vis-graph-group\"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},$S.prototype.getLegend=function(t,e,i,n,o){switch(null==i&&(i={svg:document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),svgElements:{},options:this.options,groups:[this]}),null==n&&(n=0),null==o&&(o=.5*e),this.options.style){case\"line\":qS.drawIcon(this,n,o,t,e,i);break;case\"points\":case\"point\":VS.drawIcon(this,n,o,t,e,i);break;case\"bar\":XS.drawIcon(this,n,o,t,e,i)}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},$S.prototype.getYRange=function(t){for(var e=t[0].y,i=t[0].y,n=0;n<t.length;n++)e=e>t[n].y?t[n].y:e,i=i<t[n].y?t[n].y:i;return{min:e,max:i,yAxisOrientation:this.options.yAxisOrientation}},(ZS.prototype=new Yx).clear=function(){this.groups={},this.amountOfGroups=0},ZS.prototype.addGroup=function(t,e){1!=e.options.excludeFromLegend&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},ZS.prototype.updateGroup=function(t,e){this.groups[t]=e},ZS.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],--this.amountOfGroups)},ZS.prototype._create=function(){this.dom.frame=document.createElement(\"div\"),this.dom.frame.className=\"vis-legend\",this.dom.frame.style.position=\"absolute\",this.dom.frame.style.top=\"10px\",this.dom.frame.style.display=\"block\",this.dom.textArea=document.createElement(\"div\"),this.dom.textArea.className=\"vis-legend-text\",this.dom.textArea.style.position=\"relative\",this.dom.textArea.style.top=\"0px\",this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),this.svg.style.position=\"absolute\",this.svg.style.top=\"0px\",this.svg.style.width=this.options.iconSize+5+\"px\",this.svg.style.height=\"100%\",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)},ZS.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},ZS.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},ZS.prototype.setOptions=function(t){R.selectiveDeepExtend([\"enabled\",\"orientation\",\"icons\",\"left\",\"right\"],this.options,t)},ZS.prototype.redraw=function(){var t=0,e=sc(this.groups);sw(e).call(e,function(t,e){return t<e?-1:1});for(var i=0;i<e.length;i++){var n=e[i];1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||t++}if(0==this.options[this.side].visible||0==this.amountOfGroups||0==this.options.enabled||0==t)this.hide();else{this.show(),\"top-left\"==this.options[this.side].position||\"bottom-left\"==this.options[this.side].position?(this.dom.frame.style.left=\"4px\",this.dom.frame.style.textAlign=\"left\",this.dom.textArea.style.textAlign=\"left\",this.dom.textArea.style.left=this.options.iconSize+15+\"px\",this.dom.textArea.style.right=\"\",this.svg.style.left=\"0px\",this.svg.style.right=\"\"):(this.dom.frame.style.right=\"4px\",this.dom.frame.style.textAlign=\"right\",this.dom.textArea.style.textAlign=\"right\",this.dom.textArea.style.right=this.options.iconSize+15+\"px\",this.dom.textArea.style.left=\"\",this.svg.style.right=\"0px\",this.svg.style.left=\"\"),\"top-left\"==this.options[this.side].position||\"top-right\"==this.options[this.side].position?(this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace(\"px\",\"\"))+\"px\",this.dom.frame.style.bottom=\"\"):(o=this.body.domProps.center.height-this.body.domProps.centerContainer.height,this.dom.frame.style.bottom=4+o+Number(this.body.dom.center.style.top.replace(\"px\",\"\"))+\"px\",this.dom.frame.style.top=\"\"),0==this.options.icons?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+\"px\",this.dom.textArea.style.right=\"\",this.dom.textArea.style.left=\"\",this.svg.style.width=\"0px\"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+\"px\",this.drawLegendIcons());for(var o,r=\"\",i=0;i<e.length;i++)n=e[i],1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||(r+=this.groups[n].content+\"<br />\");this.dom.textArea.innerHTML=R.xss(r),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+\"px\"}},ZS.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=sc(this.groups),e=(sw(t).call(t,function(t,e){return t<e?-1:1}),$g(this.svgElements),window.getComputedStyle(this.dom.frame).paddingTop),e=Number(e.replace(\"px\",\"\")),i=e,n=this.options.iconSize,o=.75*this.options.iconSize,r=e+.5*o+3;this.svg.style.width=n+5+e+\"px\";for(var s=0;s<t.length;s++){var a=t[s];1!=this.groups[a].visible||void 0!==this.linegraphOptions.visibility[a]&&1!=this.linegraphOptions.visibility[a]||(this.groups[a].getLegend(n,o,this.framework,i,r),r+=o+this.options.iconSpacing)}}};var KS=\"__ungrouped__\";function JS(t,e){this.id=tk(),this.body=t,this.defaultOptions={yAxisOrientation:\"left\",defaultGroup:\"default\",sort:!0,sampling:!0,stack:!1,graphHeight:\"400px\",shaded:{enabled:!1,orientation:\"bottom\"},style:\"line\",barChart:{width:50,sideBySide:!1,align:\"center\"},interpolation:{enabled:!0,parametrization:\"centripetal\",alpha:.5},drawPoints:{enabled:!0,size:6,style:\"square\"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=R.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var n=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(t,e,i){n._onAdd(e.items)},update:function(t,e,i){n._onUpdate(e.items)},remove:function(t,e,i){n._onRemove(e.items)}},this.groupListeners={add:function(t,e,i){n._onAddGroups(e.items)},update:function(t,e,i){n._onUpdateGroups(e.items)},remove:function(t,e,i){n._onRemoveGroups(e.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(e),this.groupsUsingDefaultStyles=[0],this.body.emitter.on(\"rangechanged\",function(){n.svg.style.left=R.option.asSize(-n.props.width),n.forceGraphUpdate=!0,n.redraw.call(n)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}(JS.prototype=new Yx)._create=function(){var t=document.createElement(\"div\");t.className=\"vis-line-graph\",this.dom.frame=t,this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),this.svg.style.position=\"relative\",this.svg.style.height=(\"\"+this.options.graphHeight).replace(\"px\",\"\")+\"px\",this.svg.style.display=\"block\",t.appendChild(this.svg),this.options.dataAxis.orientation=\"left\",this.yAxisLeft=new WS(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation=\"right\",this.yAxisRight=new WS(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new ZS(this.body,this.options.legend,\"left\",this.options.groups),this.legendRight=new ZS(this.body,this.options.legend,\"right\",this.options.groups),this.show()},JS.prototype.setOptions=function(t){t&&(void 0===t.graphHeight&&void 0!==t.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==t.graphHeight&&pp((t.graphHeight+\"\").replace(\"px\",\"\"))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),R.selectiveDeepExtend([\"sampling\",\"defaultGroup\",\"stack\",\"height\",\"graphHeight\",\"yAxisOrientation\",\"style\",\"barChart\",\"dataAxis\",\"sort\",\"groups\"],this.options,t),R.mergeOptions(this.options,t,\"interpolation\"),R.mergeOptions(this.options,t,\"drawPoints\"),R.mergeOptions(this.options,t,\"shaded\"),R.mergeOptions(this.options,t,\"legend\"),t.interpolation&&\"object\"==x(t.interpolation)&&t.interpolation.parametrization&&(\"uniform\"==t.interpolation.parametrization?this.options.interpolation.alpha=0:\"chordal\"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization=\"centripetal\",this.options.interpolation.alpha=.5)),this.yAxisLeft&&void 0!==t.dataAxis&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&void 0!==t.legend&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(KS))&&this.groups[KS].setOptions(t),this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit(\"_change\",{queue:!0}))},JS.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},JS.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},JS.prototype.setItems=function(t){var e,i,n=this,o=this.itemsData;if(t){if(!Dx(t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.itemsData=Mx(t)}else this.itemsData=null;o&&(O(R).call(R,this.itemListeners,function(t,e){o.off(e,t)}),o.dispose(),e=o.getIds(),this._onRemove(e)),this.itemsData&&(i=this.id,O(R).call(R,this.itemListeners,function(t,e){n.itemsData.on(e,t,i)}),e=this.itemsData.getIds(),this._onAdd(e))},JS.prototype.setGroups=function(t){var e,i,n=this;if(this.groupsData){O(R).call(R,this.groupListeners,function(t,e){n.groupsData.off(e,t)}),e=this.groupsData.getIds(),this.groupsData=null;for(var o=0;o<e.length;o++)this._removeGroup(e[o])}if(t){if(!Dx(t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.groupsData=t}else this.groupsData=null;this.groupsData&&(i=this.id,O(R).call(R,this.groupListeners,function(t,e){n.groupsData.on(e,t,i)}),e=this.groupsData.getIds(),this._onAddGroups(e))},JS.prototype._onUpdate=function(t){this._updateAllGroupData(t)},JS.prototype._onAdd=function(t){this._onUpdate(t)},JS.prototype._onRemove=function(t){this._onUpdate(t)},JS.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},JS.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},JS.prototype._onRemoveGroups=function(t){for(var e=0;e<t.length;e++)this._removeGroup(t[e]);this.forceGraphUpdate=!0,this.body.emitter.emit(\"_change\",{queue:!0})},JS.prototype._removeGroup=function(t){this.groups.hasOwnProperty(t)&&((\"right\"==this.groups[t].options.yAxisOrientation?(this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t),this.legendRight):(this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t),this.legendLeft)).redraw(),delete this.groups[t])},JS.prototype._updateGroup=function(t,e){this.groups.hasOwnProperty(e)?(this.groups[e].update(t),(\"right\"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.updateGroup(e,this.groups[e]),this.legendRight.updateGroup(e,this.groups[e]),this.yAxisLeft.removeGroup(e),this.legendLeft):(this.yAxisLeft.updateGroup(e,this.groups[e]),this.legendLeft.updateGroup(e,this.groups[e]),this.yAxisRight.removeGroup(e),this.legendRight)).removeGroup(e)):(this.groups[e]=new $S(t,e,this.options,this.groupsUsingDefaultStyles),(\"right\"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.addGroup(e,this.groups[e]),this.legendRight):(this.yAxisLeft.addGroup(e,this.groups[e]),this.legendLeft)).addGroup(e,this.groups[e])),this.legendLeft.redraw(),this.legendRight.redraw()},JS.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var i={},n=this.itemsData.get(),o=this.itemsData.idProp,r={};t&&T(t).call(t,function(t){r[t]=t});for(var s={},a=0;a<n.length;a++){var l=n[a],h=l.group;s.hasOwnProperty(h=null==h?KS:h)?s[h]++:s[h]=1}var u,c,d,p,m={};if(!e&&t)for(h in this.groups)this.groups.hasOwnProperty(h)&&(u=(p=this.groups[h]).getItems(),i[h]=E(u).call(u,function(t){return m[t[o]]=t[o],t[o]!==r[t[o]]}),u=s[h],s[h]-=i[h].length,i[h].length<u)&&(i[h][u-1]={});for(a=0;a<n.length;a++)null==(h=(l=n[a]).group)&&(h=KS),!e&&t&&l[o]!==r[l[o]]&&m.hasOwnProperty(l[o])||(i.hasOwnProperty(h)||(i[h]=new Array(s[h])),(c=R.bridgeObject(l)).x=R.convert(l.x,\"Date\"),c.end=R.convert(l.end,\"Date\"),c.orginalY=l.y,c.y=Number(l.y),c[o]=l[o],d=i[h].length-s[h]--,i[h][d]=c);for(h in this.groups)!this.groups.hasOwnProperty(h)||i.hasOwnProperty(h)||(i[h]=new Array(0));for(h in i)i.hasOwnProperty(h)&&(0==i[h].length?this.groups.hasOwnProperty(h)&&this._removeGroup(h):(p=void 0,null==(p=null!=this.groupsData?this.groupsData.get(h):p)&&(p={id:h,content:this.options.defaultGroup+h}),this._updateGroup(p,h),this.groups[h].setItems(i[h])));this.forceGraphUpdate=!0,this.body.emitter.emit(\"_change\",{queue:!0})}},JS.prototype.redraw=function(){var t=!1,t=(this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,this._isResized()||t),e=this.body.range.end-this.body.range.start,i=e!=this.lastVisibleInterval;return this.lastVisibleInterval=e,1==t&&(this.svg.style.width=R.option.asSize(3*this.props.width),this.svg.style.left=R.option.asSize(-this.props.width),-1==P(e=this.options.height+\"\").call(e,\"%\")&&1!=this.updateSVGheightOnResize||(this.updateSVGheight=!0)),1==this.updateSVGheight?(this.options.graphHeight!=this.props.height+\"px\"&&(this.options.graphHeight=this.props.height+\"px\",this.svg.style.height=this.props.height+\"px\"),this.updateSVGheight=!1):this.svg.style.height=(\"\"+this.options.graphHeight).replace(\"px\",\"\")+\"px\",1==t||1==i||1==this.abortedGraphUpdate||1==this.forceGraphUpdate?(t=this._updateGraph()||t,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+\"px\"):0!=this.lastStart&&(e=this.body.range.start-this.lastStart,i=this.body.range.end-this.body.range.start,0!=this.props.width)&&(e=e*(this.props.width/i),this.svg.style.left=-this.props.width-e+\"px\"),this.legendLeft.redraw(),this.legendRight.redraw(),t},JS.prototype._getSortedGroupIds=function(){var t,e,i=[];for(t in this.groups)!this.groups.hasOwnProperty(t)||1!=(e=this.groups[t]).visible||void 0!==this.options.groups.visibility[t]&&1!=this.options.groups.visibility[t]||i.push({id:t,zIndex:e.options.zIndex});R.insertSort(i,function(t,e){t=t.zIndex,e=e.zIndex;return(t=void 0===t?0:t)==(e=void 0===e?0:e)?0:t<e?-1:1});for(var n=new Array(i.length),o=0;o<i.length;o++)n[o]=i[o].id;return n},JS.prototype._updateGraph=function(){if(Xg(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e={},i=this.body.util.toGlobalTime(-this.body.domProps.root.width),n=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(0<o.length){var r={};for(this._getRelevantData(o,r,i,n),this._applySampling(o,r),a=0;a<o.length;a++)this._convertXcoordinates(r[o[a]]);if(this._getYRanges(o,r,e),1==this._updateYAxis(o,e))return qg(this.svgElements),this.abortedGraphUpdate=!0;this.abortedGraphUpdate=!1;for(var s=void 0,a=0;a<o.length;a++)t=this.groups[o[a]],!0!==this.options.stack||\"line\"!==this.options.style||null!=t.options.excludeFromStacking&&t.options.excludeFromStacking||(null!=s&&(this._stack(r[t.id],r[s.id]),1==t.options.shaded.enabled)&&\"group\"!==t.options.shaded.orientation&&(\"top\"==t.options.shaded.orientation&&\"group\"!==s.options.shaded.orientation?(s.options.shaded.orientation=\"group\",s.options.shaded.groupId=t.id):(t.options.shaded.orientation=\"group\",t.options.shaded.groupId=s.id)),s=t),this._convertYcoordinates(r[o[a]],t);var l={};for(a=0;a<o.length;a++)if(\"line\"===(t=this.groups[o[a]]).options.style&&1==t.options.shaded.enabled){var h=r[o[a]];if(null==h||0==h.length)continue;if(l.hasOwnProperty(o[a])||(l[o[a]]=qS.calcPath(h,t)),\"group\"===t.options.shaded.orientation){h=t.options.shaded.groupId;if(-1===P(o).call(o,h)){console.log(t.id+\": Unknown shading group target given:\"+h);continue}l.hasOwnProperty(h)||(l[h]=qS.calcPath(r[h],this.groups[h])),qS.drawShading(l[o[a]],t,l[h],this.framework)}else qS.drawShading(l[o[a]],t,void 0,this.framework)}for(XS.draw(o,r,this.framework),a=0;a<o.length;a++)if(t=this.groups[o[a]],0<r[o[a]].length)switch(t.options.style){case\"line\":l.hasOwnProperty(o[a])||(l[o[a]]=qS.calcPath(r[o[a]],t)),qS.draw(l[o[a]],t,this.framework);case\"point\":case\"points\":\"point\"!=t.options.style&&\"points\"!=t.options.style&&1!=t.options.drawPoints.enabled||VS.draw(r[o[a]],t,this.framework)}}}return qg(this.svgElements),!1},JS.prototype._stack=function(t,e){for(var i,n,o=0,r=0;r<t.length;r++){for(var s=void 0,a=void 0,l=o;l<e.length;l++){if(e[l].x===t[r].x){s=e[l],a=e[l],o=l;break}if(e[l].x>t[r].x){a=e[l],s=0==l?a:e[l-1],o=l;break}}void 0===a&&(s=e[e.length-1],a=e[e.length-1]),i=a.x-s.x,n=a.y-s.y,t[r].y=0==i?t[r].orginalY+a.y:t[r].orginalY+n/i*(t[r].x-s.x)+s.y}},JS.prototype._getRelevantData=function(t,e,i,n){var o,r,s;if(0<t.length)for(r=0;r<t.length;r++){var a=(o=this.groups[t[r]]).getItems();if(1==sw(o.options)){for(var l=function(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},h=Math.max(0,R.binarySearchValue(a,i,\"x\",\"before\",l)),u=Math.min(a.length,R.binarySearchValue(a,n,\"x\",\"after\",l)+1),c=(u<=0&&(u=a.length),new Array(u-h)),d=h;d<u;d++)s=o.itemsData[d],c[d-h]=s;e[t[r]]=c}else e[t[r]]=o.itemsData}},JS.prototype._applySampling=function(t,e){if(0<t.length)for(var i=0;i<t.length;i++)if(1==this.groups[t[i]].options.sampling){var n=e[t[i]];if(0<n.length){for(var o=n.length,r=o/(this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x)),s=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(r))),a=new Array(o),l=0;l<o;l+=s)a[Math.round(l/s)]=n[l];e[t[i]]=rd(a).call(a,0,Math.round(o/s))}}},JS.prototype._getYRanges=function(t,e,i){var n,o,r,s,a=[],l=[];if(0<t.length){for(r=0;r<t.length;r++)n=e[t[r]],s=this.groups[t[r]].options,0<n.length&&(o=this.groups[t[r]],!0===s.stack&&\"bar\"===s.style?\"left\"===s.yAxisOrientation?a=Uu(a).call(a,n):l=Uu(l).call(l,n):i[t[r]]=o.getYRange(n,t[r]));XS.getStackedYRange(a,i,t,\"__barStackLeft\",\"left\"),XS.getStackedYRange(l,i,t,\"__barStackRight\",\"right\")}},JS.prototype._updateYAxis=function(t,e){var i,n,o=!1,r=!1,s=!1,a=1e9,l=1e9,h=-1e9,u=-1e9;if(0<t.length){for(var c=0;c<t.length;c++){var d=this.groups[t[c]];d&&\"right\"!=d.options.yAxisOrientation?(r=!0,h=-(a=1e9)):d&&d.options.yAxisOrientation&&(s=!0,u=-(l=1e9))}for(c=0;c<t.length;c++)e.hasOwnProperty(t[c])&&!0!==e[t[c]].ignore&&(i=e[t[c]].min,n=e[t[c]].max,\"right\"!=e[t[c]].yAxisOrientation?(r=!0,a=i<a?i:a,h=h<n?n:h):(s=!0,l=i<l?i:l,u=u<n?n:u));1==r&&this.yAxisLeft.setRange(a,h),1==s&&this.yAxisRight.setRange(l,u)}o=this._toggleAxisVisiblity(r,this.yAxisLeft)||o,o=this._toggleAxisVisiblity(s,this.yAxisRight)||o,1==s&&1==r?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!r,this.yAxisRight.masterAxis=this.yAxisLeft;0==this.yAxisRight.master&&(this.yAxisLeft.lineOffset=1==s?this.yAxisRight.width:0,o=this.yAxisLeft.redraw()||o);for(var o=this.yAxisRight.redraw()||o,p=[\"__barStackLeft\",\"__barStackRight\",\"__lineStackLeft\",\"__lineStackRight\"],c=0;c<p.length;c++)-1!=P(t).call(t,p[c])&&rd(t).call(t,P(t).call(t,p[c]),1);return o},JS.prototype._toggleAxisVisiblity=function(t,e){var i=!1;return 0==t?e.dom.frame.parentNode&&0==e.hidden&&(e.hide(),i=!0):e.dom.frame.parentNode||1!=e.hidden||(e.show(),i=!0),i},JS.prototype._convertXcoordinates=function(t){for(var e=this.body.util.toScreen,i=0;i<t.length;i++)t[i].screen_x=e(t[i].x)+this.props.width,t[i].screen_y=t[i].y,null!=t[i].end?t[i].screen_end=e(t[i].end)+this.props.width:t[i].screen_end=void 0};var l=\"string\",h=\"boolean\",u=\"number\",me=\"date\",y=\"object\",_=\"moment\",QS={configure:{enabled:{boolean:h},filter:{boolean:h,function:\"function\"},container:{dom:\"dom\"},__type__:{object:y,boolean:h,function:\"function\"}},alignCurrentTime:{string:l,undefined:\"undefined\"},yAxisOrientation:{string:[\"left\",\"right\"]},defaultGroup:{string:l},sort:{boolean:h},sampling:{boolean:h},stack:{boolean:h},graphHeight:{string:l,number:u},shaded:{enabled:{boolean:h},orientation:{string:[\"bottom\",\"top\",\"zero\",\"group\"]},groupId:{object:y},__type__:{boolean:h,object:y}},style:{string:[\"line\",\"bar\",\"points\"]},barChart:{width:{number:u},minWidth:{number:u},sideBySide:{boolean:h},align:{string:[\"left\",\"center\",\"right\"]},__type__:{object:y}},interpolation:{enabled:{boolean:h},parametrization:{string:[\"centripetal\",\"chordal\",\"uniform\"]},alpha:{number:u},__type__:{object:y,boolean:h}},drawPoints:{enabled:{boolean:h},onRender:{function:\"function\"},size:{number:u},style:{string:[\"square\",\"circle\"]},__type__:{object:y,boolean:h,function:\"function\"}},dataAxis:{showMinorLabels:{boolean:h},showMajorLabels:{boolean:h},showWeekScale:{boolean:h},icons:{boolean:h},width:{string:l,number:u},visible:{boolean:h},alignZeros:{boolean:h},left:{range:{min:{number:u,undefined:\"undefined\"},max:{number:u,undefined:\"undefined\"},__type__:{object:y}},format:{function:\"function\"},title:{text:{string:l,number:u,undefined:\"undefined\"},style:{string:l,undefined:\"undefined\"},__type__:{object:y}},__type__:{object:y}},right:{range:{min:{number:u,undefined:\"undefined\"},max:{number:u,undefined:\"undefined\"},__type__:{object:y}},format:{function:\"function\"},title:{text:{string:l,number:u,undefined:\"undefined\"},style:{string:l,undefined:\"undefined\"},__type__:{object:y}},__type__:{object:y}},__type__:{object:y}},legend:{enabled:{boolean:h},icons:{boolean:h},left:{visible:{boolean:h},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:y}},right:{visible:{boolean:h},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:y}},__type__:{object:y,boolean:h}},groups:{visibility:{any:\"any\"},__type__:{object:y}},autoResize:{boolean:h},throttleRedraw:{number:u},clickToUse:{boolean:h},end:{number:u,date:me,string:l,moment:_},format:{minorLabels:{millisecond:{string:l,undefined:\"undefined\"},second:{string:l,undefined:\"undefined\"},minute:{string:l,undefined:\"undefined\"},hour:{string:l,undefined:\"undefined\"},weekday:{string:l,undefined:\"undefined\"},day:{string:l,undefined:\"undefined\"},week:{string:l,undefined:\"undefined\"},month:{string:l,undefined:\"undefined\"},quarter:{string:l,undefined:\"undefined\"},year:{string:l,undefined:\"undefined\"},__type__:{object:y}},majorLabels:{millisecond:{string:l,undefined:\"undefined\"},second:{string:l,undefined:\"undefined\"},minute:{string:l,undefined:\"undefined\"},hour:{string:l,undefined:\"undefined\"},weekday:{string:l,undefined:\"undefined\"},day:{string:l,undefined:\"undefined\"},week:{string:l,undefined:\"undefined\"},month:{string:l,undefined:\"undefined\"},quarter:{string:l,undefined:\"undefined\"},year:{string:l,undefined:\"undefined\"},__type__:{object:y}},__type__:{object:y}},moment:{function:\"function\"},height:{string:l,number:u},hiddenDates:{start:{date:me,number:u,string:l,moment:_},end:{date:me,number:u,string:l,moment:_},repeat:{string:l},__type__:{object:y,array:\"array\"}},locale:{string:l},locales:{__any__:{any:\"any\"},__type__:{object:y}},max:{date:me,number:u,string:l,moment:_},maxHeight:{number:u,string:l},maxMinorChars:{number:u},min:{date:me,number:u,string:l,moment:_},minHeight:{number:u,string:l},moveable:{boolean:h},multiselect:{boolean:h},orientation:{string:l},showCurrentTime:{boolean:h},showMajorLabels:{boolean:h},showMinorLabels:{boolean:h},showWeekScale:{boolean:h},snap:{function:\"function\",null:\"null\"},start:{date:me,number:u,string:l,moment:_},timeAxis:{scale:{string:l,undefined:\"undefined\"},step:{number:u,undefined:\"undefined\"},__type__:{object:y}},width:{string:l,number:u},zoomable:{boolean:h},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"]},zoomMax:{number:u},zoomMin:{number:u},zIndex:{number:u},__type__:{object:y}},tC={global:{alignCurrentTime:[\"none\",\"year\",\"month\",\"quarter\",\"week\",\"isoWeek\",\"day\",\"date\",\"hour\",\"minute\",\"second\"],sort:!0,sampling:!0,stack:!(JS.prototype._convertYcoordinates=function(t,e){var i=this.yAxisLeft,n=Number(this.svg.style.height.replace(\"px\",\"\"));\"right\"==e.options.yAxisOrientation&&(i=this.yAxisRight);for(var o=0;o<t.length;o++)t[o].screen_y=Math.round(i.convertValue(t[o].y));e.setZeroPosition(Math.min(n,i.convertValue(0)))}),shaded:{enabled:!1,orientation:[\"zero\",\"top\",\"bottom\",\"group\"]},style:[\"line\",\"bar\",\"points\"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:[\"left\",\"center\",\"right\"]},interpolation:{enabled:!0,parametrization:[\"centripetal\",\"chordal\",\"uniform\"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:[\"square\",\"circle\"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:\"\",style:\"\"}},right:{title:{text:\"\",style:\"\"}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},right:{visible:!0,position:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]}},autoResize:!0,clickToUse:!1,end:\"\",format:{minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",week:\"w\",month:\"MMM\",quarter:\"[Q]Q\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",week:\"MMMM YYYY\",month:\"YYYY\",quarter:\"YYYY\",year:\"\"}},height:\"\",locale:\"\",max:\"\",maxHeight:\"\",maxMinorChars:[7,0,20,1],min:\"\",minHeight:\"\",moveable:!0,orientation:[\"both\",\"bottom\",\"top\"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:\"\",width:\"100%\",zoomable:!0,zoomKey:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function eC(t,e,i,n){!C(i)&&!Dx(i)&&i instanceof Object&&(o=n,n=i,i=o),n&&n.throttleRedraw&&console.warn('Graph2d option \"throttleRedraw\" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var o,r=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:\"bottom\",item:\"bottom\"},moment:kk,width:null,height:null,maxHeight:null,minHeight:null},this.options=R.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:M(o=this.on).call(o,this),off:M(t=this.off).call(t,this),emit:M(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale:function(){return r.timeAxis.step.scale},getStep:function(){return r.timeAxis.step.step},toScreen:M(t=r._toScreen).call(t,r),toGlobalScreen:M(o=r._toGlobalScreen).call(o,r),toTime:M(t=r._toTime).call(t,r),toGlobalTime:M(o=r._toGlobalTime).call(o,r)}},this.range=new hD(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new yD(this.body),this.components.push(this.timeAxis),this.currentTime=new CD(this.body),this.components.push(this.currentTime),this.linegraph=new JS(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on(\"tap\",function(t){r.emit(\"click\",r.getEventProperties(t))}),this.on(\"doubletap\",function(t){r.emit(\"doubleClick\",r.getEventProperties(t))}),this.dom.root.oncontextmenu=function(t){r.emit(\"contextmenu\",r.getEventProperties(t))},this.initialFitDone=!1,this.on(\"changed\",function(){var t,e;null!=r.itemsData&&(r.initialFitDone||r.options.rollingMode||(r.initialFitDone=!0,null!=r.options.start||null!=r.options.end?(null!=r.options.start&&null!=r.options.end||(e=r.getItemRange()),t=null!=r.options.start?r.options.start:e.min,e=null!=r.options.end?r.options.end:e.max,r.setWindow(t,e,{animation:!1})):r.fit({animation:!1})),r.initialDrawDone||!r.initialRangeChangeDone&&(r.options.start||r.options.end)&&!r.options.rollingMode||(r.initialDrawDone=!0,r.dom.root.style.visibility=\"visible\",r.dom.loadingScreen.parentNode.removeChild(r.dom.loadingScreen),r.options.onInitialDrawComplete&&Wp(function(){return r.options.onInitialDrawComplete()},0)))}),n&&this.setOptions(n),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}(eC.prototype=new DD).setOptions=function(t){!0===OS.validate(t,QS)&&console.log(\"%cErrors have been found in the supplied options object.\",MS),DD.prototype.setOptions.call(this,t)},eC.prototype.setItems=function(t){var e=null==this.itemsData,t=t?Dx(t)?Mx(t):Mx(new yk(t)):null;this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.linegraph&&this.linegraph.setItems(null!=t?t.rawDS:null),e&&(null!=this.options.start||null!=this.options.end?(t=null!=this.options.start?this.options.start:null,e=null!=this.options.end?this.options.end:null,this.setWindow(t,e,{animation:!1})):this.fit({animation:!1}))},eC.prototype.setGroups=function(t){t=t?Dx(t)?t:new yk(t):null;this.groupsData=t,this.linegraph.setGroups(t)},eC.prototype.getLegend=function(t,e,i){return void 0===e&&(e=15),void 0===i&&(i=15),void 0!==this.linegraph.groups[t]?this.linegraph.groups[t].getLegend(e,i):\"cannot find group:'\"+t+\"'\"},eC.prototype.isGroupVisible=function(t){return void 0!==this.linegraph.groups[t]&&this.linegraph.groups[t].visible&&(void 0===this.linegraph.options.groups.visibility[t]||1==this.linegraph.options.groups.visibility[t])},eC.prototype.getDataRange=function(){var t,e=null,i=null;for(t in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(t)&&1==this.linegraph.groups[t].visible)for(var n=0;n<this.linegraph.groups[t].itemsData.length;n++)var o=this.linegraph.groups[t].itemsData[n],o=R.convert(o.x,\"Date\").valueOf(),e=null==e||o<e?o:e,i=null==i||i<o?o:i;return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}},eC.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,e=e-R.getAbsoluteLeft(this.dom.centerContainer),i=i-R.getAbsoluteTop(this.dom.centerContainer),n=this._toTime(e),o=xD.customTimeFromTarget(t),r=R.getTarget(t),s=null,r=(R.hasParent(r,this.timeAxis.dom.foreground)||this.timeAxis2&&R.hasParent(r,this.timeAxis2.dom.foreground)?s=\"axis\":R.hasParent(r,this.linegraph.yAxisLeft.dom.frame)||R.hasParent(r,this.linegraph.yAxisRight.dom.frame)?s=\"data-axis\":R.hasParent(r,this.linegraph.legendLeft.dom.frame)||R.hasParent(r,this.linegraph.legendRight.dom.frame)?s=\"legend\":null!=o?s=\"custom-time\":R.hasParent(r,this.currentTime.bar)?s=\"current-time\":R.hasParent(r,this.dom.center)&&(s=\"background\"),[]),a=this.linegraph.yAxisLeft,l=this.linegraph.yAxisRight;return!a.hidden&&0<this.itemsData.length&&r.push(a.screenToValue(i)),!l.hidden&&0<this.itemsData.length&&r.push(l.screenToValue(i)),{event:t,customTime:o?o.options.id:null,what:s,pageX:(t.srcEvent||t).pageX,pageY:(t.srcEvent||t).pageY,x:e,y:i,time:n,value:r}},eC.prototype._createConfigurator=function(){return new LS(this,this.dom.container,tC)},console.warn([\"This build has been deprecated.\",\"\",\"In case you are importing this through a URL it will result in a 404 eventually.\",\"In case you are importing this through Node it will be replaced by the peer build eventually.\",\"\",\"Please use the peer or standalone build instead.\",\"Peer: https://visjs.github.io/vis-timeline/examples/timeline/peer-build.html\",\"Standalone: https://visjs.github.io/vis-timeline/examples/timeline/standalone-build.html\"].join(\"\\n\"));o=tv(),kk.locale(o),v={Core:DD,DateUtil:ao,Range:hD,stack:Li,TimeStep:gD,components:{items:{Item:nS,BackgroundItem:sS,BoxItem:Ht,ClusterItem:vS,PointItem:ce,RangeItem:rS},BackgroundGroup:eS,Component:Yx,CurrentTime:CD,CustomTime:xD,DataAxis:WS,DataScale:zS,GraphGroup:$S,Group:QD,ItemSet:SS,Legend:ZS,LineGraph:JS,TimeAxis:yD}},s={util:g,DOMutil:fe,DataSet:yk,DataView:bk,Queue:ck,Timeline:ki,Graph2d:eC,timeline:v,moment:kk,Hammer:mD,keycharm:_D};F.DOMutil=fe,F.DataSet=yk,F.DataView=bk,F.Graph2d=eC,F.Hammer=mD,F.Queue=ck,F.Timeline=ki,F.default=s,F.keycharm=_D,F.moment=kk,F.timeline=v,F.util=g,Object.defineProperty(F,\"__esModule\",{value:!0})});"]}