@ons/design-system 73.4.1 → 73.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,4 +4,4 @@ var t,n,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",o=s.toS
4
4
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
5
5
  !function(t,r){"object"==typeof n&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).DOMPurify=r()}(this,function(){"use strict";const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:s,seal:a,create:o}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;s||(s=function(t){return t}),a||(a=function(t){return t}),l||(l=function(t,e,n){return t.apply(e,n)}),c||(c=function(t,e){return new t(...e)});const u=C(Array.prototype.forEach),h=C(Array.prototype.lastIndexOf),d=C(Array.prototype.pop),p=C(Array.prototype.push),f=C(Array.prototype.splice),g=C(String.prototype.toLowerCase),m=C(String.prototype.toString),b=C(String.prototype.match),y=C(String.prototype.replace),v=C(String.prototype.indexOf),x=C(String.prototype.trim),w=C(Object.prototype.hasOwnProperty),k=C(RegExp.prototype.test),A=(S=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(S,e)});var S;function C(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return l(t,e,r)}}function E(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;e&&e(t,null);let s=r.length;for(;s--;){let e=r[s];if("string"==typeof e){const t=i(e);t!==e&&(n(r)||(r[s]=t),e=t)}t[e]=!0}return t}function M(t){for(let e=0;e<t.length;e++){w(t,e)||(t[e]=null)}return t}function T(e){const n=o(null);for(const[r,i]of t(e)){w(e,r)&&(Array.isArray(i)?n[r]=M(i):i&&"object"==typeof i&&i.constructor===Object?n[r]=T(i):n[r]=i)}return n}function P(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return C(n.get);if("function"==typeof n.value)return C(n.value)}t=r(t)}return function(){return null}}const O=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=s(["#text"]),N=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),B=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),z=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=a(/<%[\w\W]*|[\w\W]*%>/gm),W=a(/\$\{[\w\W]*/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=a(/^aria-[\-\w]+$/),Y=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),$=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:X,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:$,DATA_ATTR:U,DOCTYPE_NAME:K,ERB_EXPR:q,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:G,MUSTACHE_EXPR:H,TMPLIT_EXPR:W});const J=1,Q=3,tt=7,et=8,nt=9,rt=function(){return"undefined"==typeof window?null:window};var it=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt();const r=t=>e(t);if(r.version="3.2.6",r.removed=[],!n||!n.document||n.document.nodeType!==nt||!n.Element)return r.isSupported=!1,r;let{document:i}=n;const a=i,l=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:S,Node:C,Element:M,NodeFilter:H,NamedNodeMap:q=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:U,trustedTypes:X}=n,G=M.prototype,V=P(G,"cloneNode"),$=P(G,"remove"),it=P(G,"nextSibling"),st=P(G,"childNodes"),at=P(G,"parentNode");if("function"==typeof S){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let ot,lt="";const{implementation:ct,createNodeIterator:ut,createDocumentFragment:ht,getElementsByTagName:dt}=i,{importNode:pt}=a;let ft={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof t&&"function"==typeof at&&ct&&void 0!==ct.createHTMLDocument;const{MUSTACHE_EXPR:gt,ERB_EXPR:mt,TMPLIT_EXPR:bt,DATA_ATTR:yt,ARIA_ATTR:vt,IS_SCRIPT_OR_DATA:xt,ATTR_WHITESPACE:wt,CUSTOM_ELEMENT:kt}=Z;let{IS_ALLOWED_URI:At}=Z,St=null;const Ct=E({},[...O,...L,...j,...I,...D]);let Et=null;const Mt=E({},[...N,...B,...F,...z]);let Tt=Object.seal(o(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Pt=null,Ot=null,Lt=!0,jt=!0,_t=!1,It=!0,Rt=!1,Dt=!0,Nt=!1,Bt=!1,Ft=!1,zt=!1,Ht=!1,qt=!1,Wt=!0,Ut=!1,Xt=!0,Yt=!1,Gt={},Vt=null;const Kt=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $t=null;const Zt=E({},["audio","video","img","source","image","track"]);let Jt=null;const Qt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml";let re=ne,ie=!1,se=null;const ae=E({},[te,ee,ne],m);let oe=E({},["mi","mo","mn","ms","mtext"]),le=E({},["annotation-xml"]);const ce=E({},["title","style","font","a","script"]);let ue=null;const he=["application/xhtml+xml","text/html"];let de=null,pe=null;const fe=i.createElement("form"),ge=function(t){return t instanceof RegExp||t instanceof Function},me=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pe||pe!==t){if(t&&"object"==typeof t||(t={}),t=T(t),ue=-1===he.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,de="application/xhtml+xml"===ue?m:g,St=w(t,"ALLOWED_TAGS")?E({},t.ALLOWED_TAGS,de):Ct,Et=w(t,"ALLOWED_ATTR")?E({},t.ALLOWED_ATTR,de):Mt,se=w(t,"ALLOWED_NAMESPACES")?E({},t.ALLOWED_NAMESPACES,m):ae,Jt=w(t,"ADD_URI_SAFE_ATTR")?E(T(Qt),t.ADD_URI_SAFE_ATTR,de):Qt,$t=w(t,"ADD_DATA_URI_TAGS")?E(T(Zt),t.ADD_DATA_URI_TAGS,de):Zt,Vt=w(t,"FORBID_CONTENTS")?E({},t.FORBID_CONTENTS,de):Kt,Pt=w(t,"FORBID_TAGS")?E({},t.FORBID_TAGS,de):T({}),Ot=w(t,"FORBID_ATTR")?E({},t.FORBID_ATTR,de):T({}),Gt=!!w(t,"USE_PROFILES")&&t.USE_PROFILES,Lt=!1!==t.ALLOW_ARIA_ATTR,jt=!1!==t.ALLOW_DATA_ATTR,_t=t.ALLOW_UNKNOWN_PROTOCOLS||!1,It=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Rt=t.SAFE_FOR_TEMPLATES||!1,Dt=!1!==t.SAFE_FOR_XML,Nt=t.WHOLE_DOCUMENT||!1,zt=t.RETURN_DOM||!1,Ht=t.RETURN_DOM_FRAGMENT||!1,qt=t.RETURN_TRUSTED_TYPE||!1,Ft=t.FORCE_BODY||!1,Wt=!1!==t.SANITIZE_DOM,Ut=t.SANITIZE_NAMED_PROPS||!1,Xt=!1!==t.KEEP_CONTENT,Yt=t.IN_PLACE||!1,At=t.ALLOWED_URI_REGEXP||Y,re=t.NAMESPACE||ne,oe=t.MATHML_TEXT_INTEGRATION_POINTS||oe,le=t.HTML_INTEGRATION_POINTS||le,Tt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ge(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Tt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ge(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Tt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Tt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Rt&&(jt=!1),Ht&&(zt=!0),Gt&&(St=E({},D),Et=[],!0===Gt.html&&(E(St,O),E(Et,N)),!0===Gt.svg&&(E(St,L),E(Et,B),E(Et,z)),!0===Gt.svgFilters&&(E(St,j),E(Et,B),E(Et,z)),!0===Gt.mathMl&&(E(St,I),E(Et,F),E(Et,z))),t.ADD_TAGS&&(St===Ct&&(St=T(St)),E(St,t.ADD_TAGS,de)),t.ADD_ATTR&&(Et===Mt&&(Et=T(Et)),E(Et,t.ADD_ATTR,de)),t.ADD_URI_SAFE_ATTR&&E(Jt,t.ADD_URI_SAFE_ATTR,de),t.FORBID_CONTENTS&&(Vt===Kt&&(Vt=T(Vt)),E(Vt,t.FORBID_CONTENTS,de)),Xt&&(St["#text"]=!0),Nt&&E(St,["html","head","body"]),St.table&&(E(St,["tbody"]),delete Pt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ot=t.TRUSTED_TYPES_POLICY,lt=ot.createHTML("")}else void 0===ot&&(ot=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return null}}(X,l)),null!==ot&&"string"==typeof lt&&(lt=ot.createHTML(""));s&&s(t),pe=t}},be=E({},[...L,...j,..._]),ye=E({},[...I,...R]),ve=function(t){p(r.removed,{element:t});try{at(t).removeChild(t)}catch(e){$(t)}},xe=function(t,e){try{p(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(zt||Ht)try{ve(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},we=function(t){let e=null,n=null;if(Ft)t="<remove></remove>"+t;else{const e=b(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ue&&re===ne&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=ot?ot.createHTML(t):t;if(re===ne)try{e=(new U).parseFromString(r,ue)}catch(t){}if(!e||!e.documentElement){e=ct.createDocument(re,"template",null);try{e.documentElement.innerHTML=ie?lt:r}catch(t){}}const s=e.body||e.documentElement;return t&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),re===ne?dt.call(e,Nt?"html":"body")[0]:Nt?e.documentElement:s},ke=function(t){return ut.call(t.ownerDocument||t,t,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},Ae=function(t){return t instanceof W&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof q)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Se=function(t){return"function"==typeof C&&t instanceof C};function Ce(t,e,n){u(t,t=>{t.call(r,e,n,pe)})}const Ee=function(t){let e=null;if(Ce(ft.beforeSanitizeElements,t,null),Ae(t))return ve(t),!0;const n=de(t.nodeName);if(Ce(ft.uponSanitizeElement,t,{tagName:n,allowedTags:St}),Dt&&t.hasChildNodes()&&!Se(t.firstElementChild)&&k(/<[/\w!]/g,t.innerHTML)&&k(/<[/\w!]/g,t.textContent))return ve(t),!0;if(t.nodeType===tt)return ve(t),!0;if(Dt&&t.nodeType===et&&k(/<[/\w]/g,t.data))return ve(t),!0;if(!St[n]||Pt[n]){if(!Pt[n]&&Te(n)){if(Tt.tagNameCheck instanceof RegExp&&k(Tt.tagNameCheck,n))return!1;if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))return!1}if(Xt&&!Vt[n]){const e=at(t)||t.parentNode,n=st(t)||t.childNodes;if(n&&e){for(let r=n.length-1;r>=0;--r){const i=V(n[r],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,it(t))}}}return ve(t),!0}return t instanceof M&&!function(t){let e=at(t);e&&e.tagName||(e={namespaceURI:re,tagName:"template"});const n=g(t.tagName),r=g(e.tagName);return!!se[t.namespaceURI]&&(t.namespaceURI===ee?e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===r||oe[r]):Boolean(be[n]):t.namespaceURI===te?e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&le[r]:Boolean(ye[n]):t.namespaceURI===ne?!(e.namespaceURI===ee&&!le[r])&&!(e.namespaceURI===te&&!oe[r])&&!ye[n]&&(ce[n]||!be[n]):!("application/xhtml+xml"!==ue||!se[t.namespaceURI]))}(t)?(ve(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!k(/<\/no(script|embed|frames)/i,t.innerHTML)?(Rt&&t.nodeType===Q&&(e=t.textContent,u([gt,mt,bt],t=>{e=y(e,t," ")}),t.textContent!==e&&(p(r.removed,{element:t.cloneNode()}),t.textContent=e)),Ce(ft.afterSanitizeElements,t,null),!1):(ve(t),!0)},Me=function(t,e,n){if(Wt&&("id"===e||"name"===e)&&(n in i||n in fe))return!1;if(jt&&!Ot[e]&&k(yt,e));else if(Lt&&k(vt,e));else if(!Et[e]||Ot[e]){if(!(Te(t)&&(Tt.tagNameCheck instanceof RegExp&&k(Tt.tagNameCheck,t)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(t))&&(Tt.attributeNameCheck instanceof RegExp&&k(Tt.attributeNameCheck,e)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(e))||"is"===e&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&k(Tt.tagNameCheck,n)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))))return!1}else if(Jt[e]);else if(k(At,y(n,wt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!$t[t]){if(_t&&!k(xt,y(n,wt,"")));else if(n)return!1}else;return!0},Te=function(t){return"annotation-xml"!==t&&b(t,kt)},Pe=function(t){Ce(ft.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Ae(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Et,forceKeepAttr:void 0};let i=e.length;for(;i--;){const s=e[i],{name:a,namespaceURI:o,value:l}=s,c=de(a),h=l;let p="value"===a?h:x(h);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Ce(ft.uponSanitizeAttribute,t,n),p=n.attrValue,!Ut||"id"!==c&&"name"!==c||(xe(a,t),p="user-content-"+p),Dt&&k(/((--!?|])>)|<\/(style|title)/i,p)){xe(a,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){xe(a,t);continue}if(!It&&k(/\/>/i,p)){xe(a,t);continue}Rt&&u([gt,mt,bt],t=>{p=y(p,t," ")});const f=de(t.nodeName);if(Me(f,c,p)){if(ot&&"object"==typeof X&&"function"==typeof X.getAttributeType)if(o);else switch(X.getAttributeType(f,c)){case"TrustedHTML":p=ot.createHTML(p);break;case"TrustedScriptURL":p=ot.createScriptURL(p)}if(p!==h)try{o?t.setAttributeNS(o,a,p):t.setAttribute(a,p),Ae(t)?ve(t):d(r.removed)}catch(e){xe(a,t)}}else xe(a,t)}Ce(ft.afterSanitizeAttributes,t,null)},Oe=function t(e){let n=null;const r=ke(e);for(Ce(ft.beforeSanitizeShadowDOM,e,null);n=r.nextNode();)Ce(ft.uponSanitizeShadowNode,n,null),Ee(n),Pe(n),n.content instanceof c&&t(n.content);Ce(ft.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,s=null,o=null;if(ie=!t,ie&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Se(t)){if("function"!=typeof t.toString)throw A("toString is not a function");if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}if(!r.isSupported)return t;if(Bt||me(e),r.removed=[],"string"==typeof t&&(Yt=!1),Yt){if(t.nodeName){const e=de(t.nodeName);if(!St[e]||Pt[e])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof C)n=we("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===J&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!zt&&!Rt&&!Nt&&-1===t.indexOf("<"))return ot&&qt?ot.createHTML(t):t;if(n=we(t),!n)return zt?null:qt?lt:""}n&&Ft&&ve(n.firstChild);const l=ke(Yt?t:n);for(;s=l.nextNode();)Ee(s),Pe(s),s.content instanceof c&&Oe(s.content);if(Yt)return t;if(zt){if(Ht)for(o=ht.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return(Et.shadowroot||Et.shadowrootmode)&&(o=pt.call(a,o,!0)),o}let h=Nt?n.outerHTML:n.innerHTML;return Nt&&St["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&k(K,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),Rt&&u([gt,mt,bt],t=>{h=y(h,t," ")}),ot&&qt?ot.createHTML(h):h},r.setConfig=function(){me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Bt=!0},r.clearConfig=function(){pe=null,Bt=!1},r.isValidAttribute=function(t,e,n){pe||me({});const r=de(t),i=de(e);return Me(r,i,n)},r.addHook=function(t,e){"function"==typeof e&&p(ft[t],e)},r.removeHook=function(t,e){if(void 0!==e){const n=h(ft[t],e);return-1===n?void 0:f(ft[t],n,1)[0]}return d(ft[t])},r.removeHooks=function(t){ft[t]=[]},r.removeAllHooks=function(){ft={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();return it})},{}],826:[function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(t){return s="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},s(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function l(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(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");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function y(t){return Array.isArray?Array.isArray(t):"[object Array]"===C(t)}function v(t){return"string"==typeof t}function x(t){return"number"==typeof t}function w(t){return!0===t||!1===t||function(t){return k(t)&&null!==t}(t)&&"[object Boolean]"==C(t)}function k(t){return"object"===s(t)}function A(t){return null!=t}function S(t){return!t.trim().length}function C(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var E=Object.prototype.hasOwnProperty,M=function(){function t(e){var n=this;a(this,t),this._keys=[],this._keyMap={};var r=0;e.forEach(function(t){var e=T(t);n._keys.push(e),n._keyMap[e.id]=e,r+=e.weight}),this._keys.forEach(function(t){t.weight/=r})}return l(t,[{key:"get",value:function(t){return this._keyMap[t]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),t}();function T(t){var e=null,n=null,r=null,i=1,s=null;if(v(t)||y(t))r=t,e=P(t),n=O(t);else{if(!E.call(t,"name"))throw new Error(function(t){return"Missing ".concat(t," property in key")}("name"));var a=t.name;if(r=a,E.call(t,"weight")&&(i=t.weight)<=0)throw new Error(function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")}(a));e=P(a),n=O(a),s=t.getFn}return{path:e,id:n,weight:i,src:r,getFn:s}}function P(t){return y(t)?t:t.split(".")}function O(t){return y(t)?t.join("."):t}var L={useExtendedSearch:!1,getFn:function(t,e){var n=[],r=!1;return function t(e,i,s){if(A(e))if(i[s]){var a=e[i[s]];if(!A(a))return;if(s===i.length-1&&(v(a)||x(a)||w(a)))n.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(a));else if(y(a)){r=!0;for(var o=0,l=a.length;o<l;o+=1)t(a[o],i,s+1)}else i.length&&t(a,i,s+1)}else n.push(e)}(t,v(e)?e.split("."):e,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},j=i(i(i(i({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,e){return t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),L),_=/[^ ]+/g;var I=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getFn,r=void 0===n?j.getFn:n,i=e.fieldNormWeight,s=void 0===i?j.fieldNormWeight:i;a(this,t),this.norm=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,e);return{get:function(e){var i=e.match(_).length;if(n.has(i))return n.get(i);var s=1/Math.pow(i,.5*t),a=parseFloat(Math.round(s*r)/r);return n.set(i,a),a},clear:function(){n.clear()}}}(s,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}return l(t,[{key:"setSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=t}},{key:"setIndexRecords",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=t}},{key:"setKeys",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach(function(e,n){t._keysMap[e.id]=n})}},{key:"create",value:function(){var t=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,v(this.docs[0])?this.docs.forEach(function(e,n){t._addString(e,n)}):this.docs.forEach(function(e,n){t._addObject(e,n)}),this.norm.clear())}},{key:"add",value:function(t){var e=this.size();v(t)?this._addString(t,e):this._addObject(t,e)}},{key:"removeAt",value:function(t){this.records.splice(t,1);for(var e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}},{key:"getValueForItemAtKeyId",value:function(t,e){return t[this._keysMap[e]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(t,e){if(A(t)&&!S(t)){var n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}}},{key:"_addObject",value:function(t,e){var n=this,r={i:e,$:{}};this.keys.forEach(function(e,i){var s=e.getFn?e.getFn(t):n.getFn(t,e.path);if(A(s))if(y(s)){for(var a=[],o=[{nestedArrIndex:-1,value:s}];o.length;){var l=o.pop(),c=l.nestedArrIndex,u=l.value;if(A(u))if(v(u)&&!S(u)){var h={v:u,i:c,n:n.norm.get(u)};a.push(h)}else y(u)&&u.forEach(function(t,e){o.push({nestedArrIndex:e,value:t})})}r.$[i]=a}else if(v(s)&&!S(s)){var d={v:s,n:n.norm.get(s)};r.$[i]=d}}),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),t}();function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?j.getFn:r,s=n.fieldNormWeight,a=void 0===s?j.fieldNormWeight:s,o=new I({getFn:i,fieldNormWeight:a});return o.setKeys(t.map(T)),o.setSources(e),o.create(),o}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.errors,r=void 0===n?0:n,i=e.currentLocation,s=void 0===i?0:i,a=e.expectedLocation,o=void 0===a?0:a,l=e.distance,c=void 0===l?j.distance:l,u=e.ignoreLocation,h=void 0===u?j.ignoreLocation:u,d=r/t.length;if(h)return d;var p=Math.abs(o-s);return c?d+p/c:p?1:d}var N=32;function B(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,s=void 0===i?j.location:i,a=r.distance,o=void 0===a?j.distance:a,l=r.threshold,c=void 0===l?j.threshold:l,u=r.findAllMatches,h=void 0===u?j.findAllMatches:u,d=r.minMatchCharLength,p=void 0===d?j.minMatchCharLength:d,f=r.includeMatches,g=void 0===f?j.includeMatches:f,m=r.ignoreLocation,b=void 0===m?j.ignoreLocation:m;if(e.length>N)throw new Error("Pattern length exceeds max of ".concat(N,"."));for(var y,v=e.length,x=t.length,w=Math.max(0,Math.min(s,x)),k=c,A=w,S=p>1||g,C=S?Array(x):[];(y=t.indexOf(e,A))>-1;){var E=D(e,{currentLocation:y,expectedLocation:w,distance:o,ignoreLocation:b});if(k=Math.min(E,k),A=y+v,S)for(var M=0;M<v;)C[y+M]=1,M+=1}A=-1;for(var T=[],P=1,O=v+x,L=1<<v-1,_=0;_<v;_+=1){for(var I=0,R=O;I<R;){D(e,{errors:_,currentLocation:w+R,expectedLocation:w,distance:o,ignoreLocation:b})<=k?I=R:O=R,R=Math.floor((O-I)/2+I)}O=R;var B=Math.max(1,w-R+1),F=h?x:Math.min(w+R,x)+v,z=Array(F+2);z[F+1]=(1<<_)-1;for(var H=F;H>=B;H-=1){var q=H-1,W=n[t.charAt(q)];if(S&&(C[q]=+!!W),z[H]=(z[H+1]<<1|1)&W,_&&(z[H]|=(T[H+1]|T[H])<<1|1|T[H+1]),z[H]&L&&(P=D(e,{errors:_,currentLocation:q,expectedLocation:w,distance:o,ignoreLocation:b}))<=k){if(k=P,(A=q)<=w)break;B=Math.max(1,2*w-A)}}if(D(e,{errors:_+1,currentLocation:w,expectedLocation:w,distance:o,ignoreLocation:b})>k)break;T=z}var U={isMatch:A>=0,score:Math.max(.001,P)};if(S){var X=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.minMatchCharLength,n=[],r=-1,i=-1,s=0,a=t.length;s<a;s+=1){var o=t[s];o&&-1===r?r=s:o||-1===r||((i=s-1)-r+1>=e&&n.push([r,i]),r=-1)}return t[s-1]&&s-r>=e&&n.push([r,s-1]),n}(C,p);X.length?g&&(U.indices=X):U.isMatch=!1}return U}function F(t){for(var e={},n=0,r=t.length;n<r;n+=1){var i=t.charAt(n);e[i]=(e[i]||0)|1<<r-n-1}return e}var z=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.location,s=void 0===i?j.location:i,o=r.threshold,l=void 0===o?j.threshold:o,c=r.distance,u=void 0===c?j.distance:c,h=r.includeMatches,d=void 0===h?j.includeMatches:h,p=r.findAllMatches,f=void 0===p?j.findAllMatches:p,g=r.minMatchCharLength,m=void 0===g?j.minMatchCharLength:g,b=r.isCaseSensitive,y=void 0===b?j.isCaseSensitive:b,v=r.ignoreLocation,x=void 0===v?j.ignoreLocation:v;if(a(this,t),this.options={location:s,threshold:l,distance:u,includeMatches:d,findAllMatches:f,minMatchCharLength:m,isCaseSensitive:y,ignoreLocation:x},this.pattern=y?e:e.toLowerCase(),this.chunks=[],this.pattern.length){var w=function(t,e){n.chunks.push({pattern:t,alphabet:F(t),startIndex:e})},k=this.pattern.length;if(k>N){for(var A=0,S=k%N,C=k-S;A<C;)w(this.pattern.substr(A,N),A),A+=N;if(S){var E=k-N;w(this.pattern.substr(E),E)}}else w(this.pattern,0)}}return l(t,[{key:"searchIn",value:function(t){var e=this.options,n=e.isCaseSensitive,r=e.includeMatches;if(n||(t=t.toLowerCase()),this.pattern===t){var i={isMatch:!0,score:0};return r&&(i.indices=[[0,t.length-1]]),i}var s=this.options,a=s.location,o=s.distance,l=s.threshold,c=s.findAllMatches,u=s.minMatchCharLength,h=s.ignoreLocation,d=[],p=0,f=!1;this.chunks.forEach(function(e){var n=e.pattern,i=e.alphabet,s=e.startIndex,m=B(t,n,i,{location:a+s,distance:o,threshold:l,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:h}),b=m.isMatch,y=m.score,v=m.indices;b&&(f=!0),p+=y,b&&v&&(d=[].concat(g(d),g(v)))});var m={isMatch:f,score:f?p/this.chunks.length:1};return f&&r&&(m.indices=d),m}}]),t}(),H=function(){function t(e){a(this,t),this.pattern=e}return l(t,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(t){return q(t,this.multiRegex)}},{key:"isSingleMatch",value:function(t){return q(t,this.singleRegex)}}]),t}();function q(t,e){var n=t.match(e);return n?n[1]:null}var W=function(t){u(n,t);var e=f(n);function n(t){return a(this,n),e.call(this,t)}return l(n,[{key:"search",value:function(t){var e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),n}(H),U=function(t){u(n,t);var e=f(n);function n(t){return a(this,n),e.call(this,t)}return l(n,[{key:"search",value:function(t){var e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),n}(H),X=function(t){u(n,t);var e=f(n);function n(t){return a(this,n),e.call(this,t)}return l(n,[{key:"search",value:function(t){var e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),n}(H),Y=function(t){u(n,t);var e=f(n);function n(t){return a(this,n),e.call(this,t)}return l(n,[{key:"search",value:function(t){var e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),n}(H),G=function(t){u(n,t);var e=f(n);function n(t){return a(this,n),e.call(this,t)}return l(n,[{key:"search",value:function(t){var e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),n}(H),V=function(t){u(n,t);var e=f(n);function n(t){return a(this,n),e.call(this,t)}return l(n,[{key:"search",value:function(t){var e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),n}(H),K=function(t){u(n,t);var e=f(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.location,o=void 0===s?j.location:s,l=i.threshold,c=void 0===l?j.threshold:l,u=i.distance,h=void 0===u?j.distance:u,d=i.includeMatches,p=void 0===d?j.includeMatches:d,f=i.findAllMatches,g=void 0===f?j.findAllMatches:f,m=i.minMatchCharLength,b=void 0===m?j.minMatchCharLength:m,y=i.isCaseSensitive,v=void 0===y?j.isCaseSensitive:y,x=i.ignoreLocation,w=void 0===x?j.ignoreLocation:x;return a(this,n),(r=e.call(this,t))._bitapSearch=new z(t,{location:o,threshold:c,distance:h,includeMatches:p,findAllMatches:g,minMatchCharLength:b,isCaseSensitive:v,ignoreLocation:w}),r}return l(n,[{key:"search",value:function(t){return this._bitapSearch.searchIn(t)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(H),$=function(t){u(n,t);var e=f(n);function n(t){return a(this,n),e.call(this,t)}return l(n,[{key:"search",value:function(t){for(var e,n=0,r=[],i=this.pattern.length;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,r.push([e,n-1]);var s=!!r.length;return{isMatch:s,score:s?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(H),Z=[W,$,X,Y,V,G,U,K],J=Z.length,Q=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;var tt=new Set([K.type,$.type]),et=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.isCaseSensitive,i=void 0===r?j.isCaseSensitive:r,s=n.includeMatches,o=void 0===s?j.includeMatches:s,l=n.minMatchCharLength,c=void 0===l?j.minMatchCharLength:l,u=n.ignoreLocation,h=void 0===u?j.ignoreLocation:u,d=n.findAllMatches,p=void 0===d?j.findAllMatches:d,f=n.location,g=void 0===f?j.location:f,m=n.threshold,b=void 0===m?j.threshold:m,y=n.distance,v=void 0===y?j.distance:y;a(this,t),this.query=null,this.options={isCaseSensitive:i,includeMatches:o,minMatchCharLength:c,findAllMatches:p,ignoreLocation:h,location:g,threshold:b,distance:v},this.pattern=i?e:e.toLowerCase(),this.query=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.split("|").map(function(t){for(var n=t.trim().split(Q).filter(function(t){return t&&!!t.trim()}),r=[],i=0,s=n.length;i<s;i+=1){for(var a=n[i],o=!1,l=-1;!o&&++l<J;){var c=Z[l],u=c.isMultiMatch(a);u&&(r.push(new c(u,e)),o=!0)}if(!o)for(l=-1;++l<J;){var h=Z[l],d=h.isSingleMatch(a);if(d){r.push(new h(d,e));break}}}return r})}(this.pattern,this.options)}return l(t,[{key:"searchIn",value:function(t){var e=this.query;if(!e)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;t=n.isCaseSensitive?t:t.toLowerCase();for(var i=0,s=[],a=0,o=0,l=e.length;o<l;o+=1){var c=e[o];s.length=0,i=0;for(var u=0,h=c.length;u<h;u+=1){var d=c[u],p=d.search(t),f=p.isMatch,m=p.indices,b=p.score;if(!f){a=0,i=0,s.length=0;break}if(i+=1,a+=b,r){var y=d.constructor.type;tt.has(y)?s=[].concat(g(s),g(m)):s.push(m)}}if(i){var v={isMatch:!0,score:a/i};return r&&(v.indices=s),v}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(t,e){return e.useExtendedSearch}}]),t}(),nt=[];function rt(t,e){for(var n=0,r=nt.length;n<r;n+=1){var i=nt[n];if(i.condition(t,e))return new i(t,e)}return new z(t,e)}var it="$and",st="$or",at="$path",ot="$val",lt=function(t){return!(!t[it]&&!t[st])},ct=function(t){return c({},it,Object.keys(t).map(function(e){return c({},e,t[e])}))};function ut(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n;return lt(t)||(t=ct(t)),function t(n){var i=Object.keys(n),s=function(t){return!!t[at]}(n);if(!s&&i.length>1&&!lt(n))return t(ct(n));if(function(t){return!y(t)&&k(t)&&!lt(t)}(n)){var a=s?n[at]:i[0],o=s?n[ot]:n[a];if(!v(o))throw new Error(function(t){return"Invalid value for key ".concat(t)}(a));var l={keyId:O(a),pattern:o};return r&&(l.searcher=rt(o,e)),l}var c={children:[],operator:i[0]};return i.forEach(function(e){var r=n[e];y(r)&&r.forEach(function(e){c.children.push(t(e))})}),c}(t)}function ht(t,e){var n=t.matches;e.matches=[],A(n)&&n.forEach(function(t){if(A(t.indices)&&t.indices.length){var n={indices:t.indices,value:t.value};t.key&&(n.key=t.key.src),t.idx>-1&&(n.refIndex=t.idx),e.matches.push(n)}})}function dt(t,e){e.score=t.score}var pt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;a(this,t),this.options=i(i({},j),n),this.options.useExtendedSearch,this._keyStore=new M(this.options.keys),this.setCollection(e,r)}return l(t,[{key:"setCollection",value:function(t,e){if(this._docs=t,e&&!(e instanceof I))throw new Error("Incorrect 'index' type");this._myIndex=e||R(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(t){A(t)&&(this._docs.push(t),this._myIndex.add(t))}},{key:"remove",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},e=[],n=0,r=this._docs.length;n<r;n+=1){var i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,e.push(i))}return e}},{key:"removeAt",value:function(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).limit,n=void 0===e?-1:e,r=this.options,i=r.includeMatches,s=r.includeScore,a=r.shouldSort,o=r.sortFn,l=r.ignoreFieldNorm,c=v(t)?v(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,e){var n=e.ignoreFieldNorm,r=void 0===n?j.ignoreFieldNorm:n;t.forEach(function(t){var e=1;t.matches.forEach(function(t){var n=t.key,i=t.norm,s=t.score,a=n?n.weight:null;e*=Math.pow(0===s&&a?Number.EPSILON:s,(a||1)*(r?1:i))}),t.score=e})}(c,{ignoreFieldNorm:l}),a&&c.sort(o),x(n)&&n>-1&&(c=c.slice(0,n)),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?j.includeMatches:r,s=n.includeScore,a=void 0===s?j.includeScore:s,o=[];return i&&o.push(ht),a&&o.push(dt),t.map(function(t){var n=t.idx,r={item:e[n],refIndex:n};return o.length&&o.forEach(function(e){e(t,r)}),r})}(c,this._docs,{includeMatches:i,includeScore:s})}},{key:"_searchStringList",value:function(t){var e=rt(t,this.options),n=this._myIndex.records,r=[];return n.forEach(function(t){var n=t.v,i=t.i,s=t.n;if(A(n)){var a=e.searchIn(n),o=a.isMatch,l=a.score,c=a.indices;o&&r.push({item:n,idx:i,matches:[{score:l,value:n,norm:s,indices:c}]})}}),r}},{key:"_searchLogical",value:function(t){var e=this,n=ut(t,this.options),r=function t(n,r,i){if(!n.children){var s=n.keyId,a=n.searcher,o=e._findMatches({key:e._keyStore.get(s),value:e._myIndex.getValueForItemAtKeyId(r,s),searcher:a});return o&&o.length?[{idx:i,item:r,matches:o}]:[]}for(var l=[],c=0,u=n.children.length;c<u;c+=1){var h=t(n.children[c],r,i);if(h.length)l.push.apply(l,g(h));else if(n.operator===it)return[]}return l},i=this._myIndex.records,s={},a=[];return i.forEach(function(t){var e=t.$,i=t.i;if(A(e)){var o=r(n,e,i);o.length&&(s[i]||(s[i]={idx:i,item:e,matches:[]},a.push(s[i])),o.forEach(function(t){var e,n=t.matches;(e=s[i].matches).push.apply(e,g(n))}))}}),a}},{key:"_searchObjectList",value:function(t){var e=this,n=rt(t,this.options),r=this._myIndex,i=r.keys,s=r.records,a=[];return s.forEach(function(t){var r=t.$,s=t.i;if(A(r)){var o=[];i.forEach(function(t,i){o.push.apply(o,g(e._findMatches({key:t,value:r[i],searcher:n})))}),o.length&&a.push({idx:s,item:r,matches:o})}}),a}},{key:"_findMatches",value:function(t){var e=t.key,n=t.value,r=t.searcher;if(!A(n))return[];var i=[];if(y(n))n.forEach(function(t){var n=t.v,s=t.i,a=t.n;if(A(n)){var o=r.searchIn(n),l=o.isMatch,c=o.score,u=o.indices;l&&i.push({score:c,key:e,value:n,idx:s,norm:a,indices:u})}});else{var s=n.v,a=n.n,o=r.searchIn(s),l=o.isMatch,c=o.score,u=o.indices;l&&i.push({score:c,key:e,value:s,norm:a,indices:u})}return i}}]),t}();pt.version="7.0.0",pt.createIndex=R,pt.parseIndex=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getFn,r=void 0===n?j.getFn:n,i=e.fieldNormWeight,s=void 0===i?j.fieldNormWeight:i,a=t.keys,o=t.records,l=new I({getFn:r,fieldNormWeight:s});return l.setKeys(a),l.setIndexRecords(o),l},pt.config=j,pt.parseQuery=ut,function(){nt.push.apply(nt,arguments)}(et);var ft=pt;e.exports=ft},{}],827:[function(t,e,n){var r,i;r="undefined"==typeof window?this:window,i=(t,e,n,r,i,s,a,o,l,c)=>(()=>{"use strict";var u,h,d,p={960:t=>{t.exports=o},620:t=>{t.exports=i},260:t=>{t.exports=a},28:t=>{t.exports=l},448:t=>{t.exports=r},820:t=>{t.exports=n},512:t=>{t.exports=e},184:t=>{t.exports=c},984:t=>{t.exports=s},944:e=>{e.exports=t}},f={};function g(t){var e=f[t];if(void 0!==e)return e.exports;var n=f[t]={exports:{}};return p[t](n,n.exports,g),n.exports}g.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return g.d(e,{a:e}),e},g.d=(t,e)=>{for(var n in e)g.o(e,n)&&!g.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},g.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var m={};g.d(m,{default:()=>Fi});var b=g(944),y=g.n(b),v=g(512),x=g.n(v),w=g(820),k=g.n(w);let{deg2rad:A}=y(),{fireEvent:S,isNumber:C,pick:E,relativeLength:M}=y();!function(t){t.getCenter=function(){let t,e,n,r=this.options,i=this.chart,s=2*(r.slicedOffset||0),a=i.plotWidth-2*s,o=i.plotHeight-2*s,l=r.center,c=Math.min(a,o),u=r.thickness,h=r.size,d=r.innerSize||0;"string"==typeof h&&(h=parseFloat(h)),"string"==typeof d&&(d=parseFloat(d));let p=[E(l?.[0],"50%"),E(l?.[1],"50%"),E(h&&h<0?void 0:r.size,"100%"),E(d&&d<0?void 0:r.innerSize||0,"0%")];for(!i.angular||this instanceof k()||(p[3]=0),e=0;e<4;++e)n=p[e],t=e<2||2===e&&/%$/.test(n),p[e]=M(n,[a,o,c,p[2]][e])+(t?s:0);return p[3]>p[2]&&(p[3]=p[2]),C(u)&&2*u<p[2]&&u>0&&(p[3]=p[2]-2*u),S(this,"afterGetCenter",{positions:p}),p},t.getStartAndEndRadians=function(t,e){let n=C(t)?t:0,r=C(e)&&e>n&&e-n<360?e:n+360;return{start:A*(n+-90),end:A*(r+-90)}}}(u||(u={}));let T=u,{addEvent:P,correctFloat:O,defined:L,pick:j}=y();function _(t){let e,n=this;return t&&n.pane.forEach(r=>{I(t.chartX-n.plotLeft,t.chartY-n.plotTop,r.center)&&(e=r)}),e}function I(t,e,n,r,i){let s=!0,a=n[0],o=n[1],l=Math.sqrt(Math.pow(t-a,2)+Math.pow(e-o,2));if(L(r)&&L(i)){let n=Math.atan2(O(e-o,8),O(t-a,8));i!==r&&(s=r>i?n>=r&&n<=Math.PI||n<=i&&n>=-Math.PI:n>=r&&n<=O(i,8))}return l<=Math.ceil(n[2]/2)&&s}function R(t){this.polar&&(t.options.inverted&&([t.x,t.y]=[t.y,t.x]),t.isInsidePlot=this.pane.some(e=>I(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)))}function D(t){let e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!I(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)}function N(t){let e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(n){return n.visible&&!(!t.shared&&n.directTouch)&&j(n.options.enableMouseTracking,!0)&&(!e.hoverPane||n.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0}let B={pane:{center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},background:{shape:"circle",borderRadius:0,borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}},{extend:F,merge:z,splat:H}=y();class q{constructor(t,e){this.coll="pane",this.init(t,e)}init(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)}setOptions(t){this.options=t=z(B.pane,this.chart.angular?{background:{}}:void 0,t)}render(){let t=this.options,e=this.chart.renderer;this.group||(this.group=e.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter();let n=this.options.background;if(n){let t=Math.max((n=H(n)).length,this.background.length||0);for(let e=0;e<t;e++)n[e]&&this.axis?this.renderBackground(z(B.background,n[e]),e):this.background[e]&&(this.background[e]=this.background[e].destroy(),this.background.splice(e,1))}}renderBackground(t,e){let n={class:"highcharts-pane "+(t.className||"")},r="animate";this.chart.styledMode||F(n,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),r="attr"),this.background[e][r]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(n)}updateCenter(t){this.center=(t||this.axis||{}).center=T.getCenter.call(this)}update(t,e){z(!0,this.options,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(t){t.pane===this&&(t.pane=null,t.update({},e))},this)}}q.compose=function(t,e){let n=t.prototype;n.getHoverPane||(n.collectionsWithUpdate.push("pane"),n.getHoverPane=_,P(t,"afterIsInsidePlot",R),P(e,"afterGetHoverData",D),P(e,"beforeGetHoverData",N))};let{area:{prototype:{pointClass:W,pointClass:{prototype:U}}}}=x().seriesTypes,{defined:X,isNumber:Y}=y(),{noop:G}=y(),{area:V,area:{prototype:K},column:{prototype:$}}=x().seriesTypes,{addEvent:Z,defined:J,extend:Q,isArray:tt,isNumber:et,pick:nt,merge:rt}=y();class it extends V{toYData(t){return[t.low,t.high]}highToXY(t){let e=this.chart,n=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=n.x-e.plotLeft,t.plotHigh=n.y-e.plotTop,t.plotLowX=t.plotX}getGraphPath(t){let e,n,r,i=[],s=[],a=K.getGraphPath,o=this.options,l=this.chart.polar,c=l&&!1!==o.connectEnds,u=o.connectNulls,h=o.step;for(e=(t=t||this.points).length;e--;){n=t[e];let a=l?{plotX:n.rectPlotX,plotY:n.yBottom,doCurve:!1}:{plotX:n.plotX,plotY:n.plotY,doCurve:!1};n.isNull||c||u||t[e+1]&&!t[e+1].isNull||s.push(a),r={polarPlotY:n.polarPlotY,rectPlotX:n.rectPlotX,yBottom:n.yBottom,plotX:nt(n.plotHighX,n.plotX),plotY:n.plotHigh,isNull:n.isNull},s.push(r),i.push(r),n.isNull||c||u||t[e-1]&&!t[e-1].isNull||s.push(a)}let d=a.call(this,t);h&&(!0===h&&(h="left"),o.step={left:"right",center:"center",right:"left"}[h]);let p=a.call(this,i),f=a.call(this,s);o.step=h;let g=[].concat(d,p);return!this.chart.polar&&f[0]&&"M"===f[0][0]&&(f[0]=["L",f[0][1],f[0][2]]),this.graphPath=g,this.areaPath=d.concat(f),g.isArea=!0,g.xMap=d.xMap,this.areaPath.xMap=d.xMap,g}drawDataLabels(){let t,e,n,r,i,s=this.points,a=s.length,o=[],l=this.options.dataLabels,c=this.chart.inverted;if(l){if(tt(l)?(r=l[0]||{enabled:!1},i=l[1]||{enabled:!1}):((r=Q({},l)).x=l.xHigh,r.y=l.yHigh,(i=Q({},l)).x=l.xLow,i.y=l.yLow),r.enabled||this.hasDataLabels?.()){for(t=a;t--;)if(e=s[t]){let{plotHigh:i=0,plotLow:s=0}=e;n=r.inside?i<s:i>s,e.y=e.high,e._plotY=e.plotY,e.plotY=i,o[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=n,c?r.align||(r.align=n?"right":"left"):r.verticalAlign||(r.verticalAlign=n?"top":"bottom")}for(this.options.dataLabels=r,K.drawDataLabels&&K.drawDataLabels.apply(this,arguments),t=a;t--;)(e=s[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=o[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(i.enabled||this.hasDataLabels?.()){for(t=a;t--;)if(e=s[t]){let{plotHigh:t=0,plotLow:r=0}=e;n=i.inside?t<r:t>r,e.below=!n,c?i.align||(i.align=n?"left":"right"):i.verticalAlign||(i.verticalAlign=n?"bottom":"top")}this.options.dataLabels=i,K.drawDataLabels&&K.drawDataLabels.apply(this,arguments)}if(r.enabled)for(t=a;t--;)(e=s[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=l}}alignDataLabel(){$.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let t={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:t,lowMarker:e}}=this;this.options.marker=rt(t,e),e.symbol&&(this.symbol=e.symbol)}return t}restoreMarkerSettings(t){this.options.marker=t.marker,this.symbol=t.symbol}drawPoints(){let t,e,n=this.points.length,r=this.modifyMarkerSettings();for(K.drawPoints.apply(this,arguments),this.restoreMarkerSettings(r),t=0;t<n;)(e=this.points[t]).graphics=e.graphics||[],e.origProps={plotY:e.plotY,plotX:e.plotX,isInside:e.isInside,negative:e.negative,zone:e.zone,y:e.y},(e.graphic||e.graphics[0])&&(e.graphics[0]=e.graphic),e.graphic=e.graphics[1],e.plotY=e.plotHigh,J(e.plotHighX)&&(e.plotX=e.plotHighX),e.y=nt(e.high,e.origProps.y),e.negative=e.y<(this.options.threshold||0),this.zones.length&&(e.zone=e.getZone()),this.chart.polar||(e.isInside=e.isTopInside=void 0!==e.plotY&&e.plotY>=0&&e.plotY<=this.yAxis.len&&e.plotX>=0&&e.plotX<=this.xAxis.len),t++;for(K.drawPoints.apply(this,arguments),t=0;t<n;)(e=this.points[t]).graphics=e.graphics||[],(e.graphic||e.graphics[1])&&(e.graphics[1]=e.graphic),e.graphic=e.graphics[0],e.origProps&&(Q(e,e.origProps),delete e.origProps),t++}hasMarkerChanged(t,e){let n=t.lowMarker,r=e.lowMarker||{};return n&&(!1===n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)||super.hasMarkerChanged(t,e)}}it.defaultOptions=rt(V.defaultOptions,{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),Z(it,"afterTranslate",function(){"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(t=>{let e=t.high,n=t.plotY;t.isNull?t.plotY=void 0:(t.plotLow=n,t.plotHigh=et(e)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(e):e,!1,!0,void 0,!0):void 0,this.dataModify&&(t.yBottom=t.plotHigh))})},{order:0}),Z(it,"afterTranslate",function(){this.points.forEach(t=>{if(this.chart.polar)this.highToXY(t),t.plotLow=t.plotY,t.tooltipPos=[((t.plotHighX||0)+(t.plotLowX||0))/2,((t.plotHigh||0)+(t.plotLow||0))/2];else{let e=t.pos(!1,t.plotLow),n=t.pos(!1,t.plotHigh);e&&n&&(e[0]=(e[0]+n[0])/2,e[1]=(e[1]+n[1])/2),t.tooltipPos=e}})},{order:3}),Q(it.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:class extends W{setState(){let t=this.state,e=this.series,n=e.chart.polar;X(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),X(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic,this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,n&&Y(this.plotHighX)&&(this.plotX=this.plotHighX),U.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],n&&Y(this.plotLowX)&&(this.plotX=this.plotLowX),e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0;let r=e.modifyMarkerSettings();U.setState.apply(this,arguments),e.restoreMarkerSettings(r)}haloPath(){let t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&Y(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=U.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&Y(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(U.haloPath.apply(this,arguments))),e}isValid(){return Y(this.low)&&Y(this.high)}},pointValKey:"low",setStackedPoints:G}),x().registerSeriesType("arearange",it);let st=it,{spline:{prototype:at}}=x().seriesTypes,{merge:ot,extend:lt}=y();class ct extends st{}ct.defaultOptions=ot(st.defaultOptions),lt(ct.prototype,{getPointSpline:at.getPointSpline}),x().registerSeriesType("areasplinerange",ct);var ut=g(448),ht=g.n(ut);let{noop:dt}=y(),{crisp:pt,extend:ft,merge:gt,pick:mt,relativeLength:bt}=y();class yt extends(ht()){pointAttribs(){return{}}getWhiskerPair(t,e,n,r,i){let s=i.whiskers.strokeWidth(),a=(n,r)=>{let i=bt(n,2*t)/2,a=pt(r,s);return[["M",pt(e-i),a],["L",pt(e+i),a]]};return[...a(n,i.highPlot),...a(r,i.lowPlot)]}translate(){let t=this.yAxis,e=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(n){e.forEach(function(e){null!==n[e]&&(n[e+"Plot"]=t.translate(n[e],0,1,0,1))}),n.plotHigh=n.highPlot})}drawPoints(){let t,e,n,r,i,s,a,o,l,c=this.points,u=this.options,h=this.chart,d=h.renderer,p=!1!==this.doQuartiles,f=this.options.whiskerLength;for(let g of c){let c=(s=g.graphic)?"animate":"attr",m=g.shapeArgs,b={},y={},v={},x={},w=g.color||this.color,k=g.options.whiskerLength||f;if(void 0!==g.plotY){let A;a=m.width,l=(o=m.x)+a,t=p?g.q1Plot:g.lowPlot,e=p?g.q3Plot:g.lowPlot,n=g.highPlot,r=g.lowPlot,s||(g.graphic=s=d.g("point").add(this.group),g.stem=d.path().addClass("highcharts-boxplot-stem").add(s),f&&(g.whiskers=d.path().addClass("highcharts-boxplot-whisker").add(s)),p&&(g.box=d.path(void 0).addClass("highcharts-boxplot-box").add(s)),g.medianShape=d.path(void 0).addClass("highcharts-boxplot-median").add(s)),h.styledMode||(y.stroke=g.stemColor||u.stemColor||w,y["stroke-width"]=mt(g.stemWidth,u.stemWidth,u.lineWidth),y.dashstyle=g.stemDashStyle||u.stemDashStyle||u.dashStyle,g.stem.attr(y),k&&(v.stroke=g.whiskerColor||u.whiskerColor||w,v["stroke-width"]=mt(g.whiskerWidth,u.whiskerWidth,u.lineWidth),v.dashstyle=g.whiskerDashStyle||u.whiskerDashStyle||u.dashStyle,g.whiskers.attr(v)),p&&(b.fill=g.fillColor||u.fillColor||w,b.stroke=u.lineColor||w,b["stroke-width"]=u.lineWidth||0,b.dashstyle=g.boxDashStyle||u.boxDashStyle||u.dashStyle,g.box.attr(b)),x.stroke=g.medianColor||u.medianColor||w,x["stroke-width"]=mt(g.medianWidth,u.medianWidth,u.lineWidth),x.dashstyle=g.medianDashStyle||u.medianDashStyle||u.dashStyle,g.medianShape.attr(x));let S=pt((g.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,g.stem.strokeWidth());if(A=[["M",S,e],["L",S,n],["M",S,t],["L",S,r]],g.stem[c]({d:A}),p){let n=g.box.strokeWidth();t=pt(t,n),e=pt(e,n),A=[["M",o=pt(o,n),e],["L",o,t],["L",l=pt(l,n),t],["L",l,e],["L",o,e],["Z"]],g.box[c]({d:A})}if(k){let t=a/2,e=this.getWhiskerPair(t,S,g.upperWhiskerLength??u.upperWhiskerLength??k,g.lowerWhiskerLength??u.lowerWhiskerLength??k,g);g.whiskers[c]({d:e})}A=[["M",o,i=pt(g.medianPlot,g.medianShape.strokeWidth())],["L",l,i]],g.medianShape[c]({d:A})}}}toYData(t){return[t.low,t.q1,t.median,t.q3,t.high]}}yt.defaultOptions=gt(ht().defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),ft(yt.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:dt,setStackedPoints:dt}),x().registerSeriesType("boxplot",yt);let vt=yt,xt={borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0};var wt=g(620),kt=g.n(wt),At=g(984),St=g.n(At);let{parse:Ct}=kt(),{noop:Et}=y(),{arrayMax:Mt,arrayMin:Tt,isNumber:Pt,merge:Ot,pick:Lt,stableSort:jt}=y(),_t=class{constructor(t,e){this.setState=Et,this.init(t,e)}init(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e}addToLegend(t){t.splice(this.options.legendIndex,0,this)}drawLegendSymbol(t){let e,n=Lt(t.options.itemDistance,20),r=this.legendItem||{},i=this.options,s=i.ranges,a=i.connectorDistance;if(!s||!s.length||!Pt(s[0].value))return void(t.options.bubbleLegend.autoRanges=!0);jt(s,function(t,e){return e.value-t.value}),this.ranges=s,this.setOptions(),this.render();let o=this.getMaxLabelSize(),l=this.ranges[0].radius,c=2*l;e=(e=a-l+o.width)>0?e:0,this.maxLabel=o,this.movementX="left"===i.labels.align?e:0,r.labelWidth=c+e+n,r.labelHeight=c+o.height/2}setOptions(){let t=this.ranges,e=this.options,n=this.chart.series[e.seriesIndex],r=this.legend.baseline,i={zIndex:e.zIndex,"stroke-width":e.borderWidth},s={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},o=n.options.marker.fillOpacity,l=this.chart.styledMode;t.forEach(function(c,u){l||(i.stroke=Lt(c.borderColor,e.borderColor,n.color),i.fill=Lt(c.color,e.color,1!==o?Ct(n.color).setOpacity(o).get("rgba"):n.color),s.stroke=Lt(c.connectorColor,e.connectorColor,n.color)),t[u].radius=this.getRangeRadius(c.value),t[u]=Ot(t[u],{center:t[0].radius-t[u].radius+r}),l||Ot(!0,t[u],{bubbleAttribs:Ot(i),connectorAttribs:Ot(s),labelAttribs:a})},this)}getRangeRadius(t){let e=this.options,n=this.options.seriesIndex,r=this.chart.series[n],i=e.ranges[0].value,s=e.ranges[e.ranges.length-1].value,a=e.minSize,o=e.maxSize;return r.getRadius.call(this,s,i,a,o,t)}render(){let t=this.legendItem||{},e=this.chart.renderer,n=this.options.zThreshold;for(let r of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group),this.ranges))r.value>=n&&this.renderRange(r);this.hideOverlappingLabels()}renderRange(t){let e=this.ranges[0],n=this.legend,r=this.options,i=r.labels,s=this.chart,a=s.series[r.seriesIndex],o=s.renderer,l=this.symbols,c=l.labels,u=t.center,h=Math.abs(t.radius),d=r.connectorDistance||0,p=i.align,f=n.options.rtl,g=r.borderWidth,m=r.connectorWidth,b=e.radius||0,y=u-h-g/2+m/2,v=(y%1?1:.5)-(m%2?0:.5),x=o.styledMode,w=f||"left"===p?-d:d;"center"===p&&(w=0,r.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(o.circle(b,u+v,h).attr(x?{}:t.bubbleAttribs).addClass((x?"highcharts-color-"+a.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(r.className||"")).add(this.legendItem.symbol)),l.connectors.push(o.path(o.crispLine([["M",b,y],["L",b+w,y]],r.connectorWidth)).attr(x?{}:t.connectorAttribs).addClass((x?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(r.connectorClassName||"")).add(this.legendItem.symbol));let k=o.text(this.formatLabel(t)).attr(x?{}:t.labelAttribs).css(x?{}:i.style).addClass("highcharts-bubble-legend-labels "+(r.labels.className||"")).add(this.legendItem.symbol),A={x:b+w+r.labels.x,y:y+r.labels.y+.4*k.getBBox().height};k.attr(A),c.push(k),k.placed=!0,k.alignAttr=A}getMaxLabelSize(){let t,e;return this.symbols.labels.forEach(function(n){e=n.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}}formatLabel(t){let e=this.options,n=e.labels.formatter,r=e.labels.format,{numberFormatter:i}=this.chart;return r?St().format(r,t,this.chart):n?n.call(t):i(t.value,1)}hideOverlappingLabels(){let t=this.chart,e=this.options.labels.allowOverlap,n=this.symbols;!e&&n&&(t.hideOverlappingLabels(n.labels),n.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&n.connectors[e].show():n.connectors[e].hide()}))}getRanges(){let t,e,n=this.legend.bubbleLegend,r=n.chart.series,i=n.options.ranges,s=Number.MAX_VALUE,a=-Number.MAX_VALUE;return r.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(e=t.getColumn("z").filter(Pt)).length&&(s=Lt(t.options.zMin,Math.min(s,Math.max(Tt(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),a=Lt(t.options.zMax,Math.max(a,Mt(e))))}),t=s===a?[{value:a}]:[{value:s},{value:(s+a)/2},{value:a,autoRanges:!0}],i.length&&i[0].radius&&t.reverse(),t.forEach(function(e,n){i&&i[n]&&(t[n]=Ot(i[n],e))}),t}predictBubbleSizes(){let t,e=this.chart,n=e.legend.options,r=n.floating,i="horizontal"===n.layout,s=i?e.legend.lastLineHeight:0,a=e.plotSizeX,o=e.plotSizeY,l=e.series[this.options.seriesIndex],c=l.getPxExtremes(),u=Math.ceil(c.minPxSize),h=Math.ceil(c.maxPxSize),d=Math.min(o,a),p=l.options.maxSize;return r||!/%$/.test(p)?t=h:(t=(d+s)*(p=parseFloat(p))/100/(p/100+1),(i&&o-t>=a||!i&&a-t>=o)&&(t=h)),[u,Math.ceil(t)]}updateRanges(t,e){let n=this.legend.options.bubbleLegend;n.minSize=t,n.maxSize=e,n.ranges=this.getRanges()}correctSizes(){let t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}},{setOptions:It}=y(),{composed:Rt}=y(),{addEvent:Dt,objectEach:Nt,pushUnique:Bt,wrap:Ft}=y();function zt(t,e,n){let r,i,s,a=this.legend,o=Ht(this)>=0;a&&a.options.enabled&&a.bubbleLegend&&a.options.bubbleLegend.autoRanges&&o?(r=a.bubbleLegend.options,i=a.bubbleLegend.predictBubbleSizes(),a.bubbleLegend.updateRanges(i[0],i[1]),r.placed||(a.group.placed=!1,a.allItems.forEach(t=>{(s=t.legendItem||{}).group&&(s.group.translateY=void 0)})),a.render(),r.placed||(this.getMargins(),this.axes.forEach(t=>{t.setScale(),t.updateNames(),Nt(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),r.placed=!0,t.call(this,e,n),a.bubbleLegend.correctSizes(),Xt(a,qt(a))):(t.call(this,e,n),a&&a.options.enabled&&a.bubbleLegend&&(a.render(),Xt(a,qt(a))))}function Ht(t){let e=t.series,n=0;for(;n<e.length;){if(e[n]&&e[n].isBubble&&e[n].visible&&e[n].dataTable.rowCount)return n;n++}return-1}function qt(t){let e,n,r,i=t.allItems,s=[],a=i.length,o=0,l=0;for(o=0;o<a;o++)if(n=i[o].legendItem||{},r=(i[o+1]||{}).legendItem||{},n.labelHeight&&(i[o].itemHeight=n.labelHeight),i[o]===i[a-1]||n.y!==r.y){for(s.push({height:0}),e=s[s.length-1];l<=o;l++)i[l].itemHeight>e.height&&(e.height=i[l].itemHeight);e.step=o}return s}function Wt(t){let e=this.bubbleLegend,n=this.options,r=n.bubbleLegend,i=Ht(this.chart);e&&e.ranges&&e.ranges.length&&(r.ranges.length&&(r.autoRanges=!!r.ranges[0].autoRanges),this.destroyItem(e)),i>=0&&n.enabled&&r.enabled&&(r.seriesIndex=i,this.bubbleLegend=new _t(r,this),this.bubbleLegend.addToLegend(t.allItems))}function Ut(t){let e;if(t.defaultPrevented)return!1;let n=t.legendItem,r=this.chart,i=n.visible;this&&this.bubbleLegend&&(n.visible=!i,n.ignoreSeries=i,e=Ht(r)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),n.visible=i)}function Xt(t,e){let n,r,i,s,a=t.allItems,o=t.options.rtl,l=0;a.forEach((t,a)=>{(s=t.legendItem||{}).group&&(n=s.group.translateX||0,r=s.y||0,((i=t.movementX)||o&&t.ranges)&&(i=o?n-t.options.maxSize/2:n+i,s.group.attr({translateX:i})),a>e[l].step&&l++,s.group.attr({translateY:Math.round(r+e[l].height/2)}),s.y=r+e[l].height/2)})}let Yt=function(t,e){Bt(Rt,"Series.BubbleLegend")&&(It({legend:{bubbleLegend:xt}}),Ft(t.prototype,"drawChartBox",zt),Dt(e,"afterGetAllItems",Wt),Dt(e,"itemClick",Ut))};var Gt=g(260),Vt=g.n(Gt);let{seriesTypes:{scatter:{prototype:{pointClass:Kt}}}}=x(),{extend:$t}=y();class Zt extends Kt{haloPath(t){let e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){let t=this.pos()||[0,0],{xAxis:n,yAxis:r,chart:i}=this.series;return i.renderer.symbols.circle(n.len-t[1]-e,r.len-t[0]-e,2*e,2*e)}return Vt().prototype.haloPath.call(this,e)}}$t(Zt.prototype,{ttBelow:!1});let{parse:Jt}=kt(),{composed:Qt,noop:te}=y(),{series:ee,seriesTypes:{column:{prototype:ne},scatter:re}}=x(),{addEvent:ie,arrayMax:se,arrayMin:ae,clamp:oe,extend:le,isNumber:ce,merge:ue,pick:he,pushUnique:de}=y();function pe(){let t,e=this.len,{coll:n,isXAxis:r,min:i}=this,s=(this.max||0)-(i||0),a=0,o=e,l=e/s;("xAxis"===n||"yAxis"===n)&&(this.series.forEach(e=>{if(e.bubblePadding&&e.reserveSpace()){this.allowZoomOutside=!0,t=!0;let n=e.getColumn(r?"x":"y");if(r&&((e.onPoint||e).getRadii(0,0,e),e.onPoint&&(e.radii=e.onPoint.radii)),s>0){let t=n.length;for(;t--;)if(ce(n[t])&&this.dataMin<=n[t]&&n[t]<=this.max){let r=e.radii&&e.radii[t]||0;a=Math.min((n[t]-i)*l-r,a),o=Math.max((n[t]-i)*l+r,o)}}}}),t&&s>0&&!this.logarithmic&&(o-=e,l*=(e+Math.max(0,a)-Math.min(o,e))/e,[["min","userMin",a],["max","userMax",o]].forEach(t=>{void 0===he(this.options[t[0]],this[t[1]])&&(this[t[0]]+=t[2]/l)})))}function fe(){let{ticks:t,tickPositions:e,dataMin:n=0,dataMax:r=0,categories:i}=this,s=this.options.type;if((i?.length||"category"===s)&&this.series.find(t=>t.bubblePadding)){let i=e.length;for(;i--;){let s=t[e[i]],a=s.pos||0;(a>r||a<n)&&s.label?.hide()}}}class ge extends re{static compose(t,e,n){Yt(e,n),de(Qt,"Series.Bubble")&&(ie(t,"foundExtremes",pe),ie(t,"afterRender",fe))}animate(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){let{graphic:e,plotX:n=0,plotY:r=0}=t;e&&e.width&&(this.hasRendered||e.attr({x:n,y:r,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)}getRadii(){let t,e,n,r=this.getColumn("z"),i=this.getColumn("y"),s=[],a=this.chart.bubbleZExtremes,{minPxSize:o,maxPxSize:l}=this.getPxExtremes();if(!a){let t,e=Number.MAX_VALUE,n=-Number.MAX_VALUE;this.chart.series.forEach(r=>{if(r.bubblePadding&&r.reserveSpace()){let i=(r.onPoint||r).getZExtremes();i&&(e=Math.min(he(e,i.zMin),i.zMin),n=Math.max(he(n,i.zMax),i.zMax),t=!0)}}),t?(a={zMin:e,zMax:n},this.chart.bubbleZExtremes=a):a={zMin:0,zMax:0}}for(e=0,t=r.length;e<t;e++)n=r[e],s.push(this.getRadius(a.zMin,a.zMax,o,l,n,i&&i[e]));this.radii=s}getRadius(t,e,n,r,i,s){let a=this.options,o="width"!==a.sizeBy,l=a.zThreshold,c=e-t,u=.5;if(null===s||null===i)return null;if(ce(i)){if(a.sizeByAbsoluteValue&&(i=Math.abs(i-l),e=c=Math.max(e-l,Math.abs(t-l)),t=0),i<t)return n/2-1;c>0&&(u=(i-t)/c)}return o&&u>=0&&(u=Math.sqrt(u)),Math.ceil(n+u*(r-n))/2}hasData(){return!!this.dataTable.rowCount}markerAttribs(t,e){let n=super.markerAttribs(t,e),{height:r=0,width:i=0}=n;return this.chart.inverted?le(n,{x:(t.plotX||0)-i/2,y:(t.plotY||0)-r/2}):n}pointAttribs(t,e){let n=this.options.marker.fillOpacity,r=ee.prototype.pointAttribs.call(this,t,e);return 1!==n&&(r.fill=Jt(r.fill).setOpacity(n).get("rgba")),r}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:t,options:e,radii:n}=this,{minPxSize:r}=this.getPxExtremes(),i=t.length;for(;i--;){let s=t[i],a=n?n[i]:0;"z"===this.zoneAxis&&(s.negative=(s.z||0)<(e.zThreshold||0)),ce(a)&&a>=r/2?(s.marker=le(s.marker,{radius:a,width:2*a,height:2*a}),s.dlBox={x:s.plotX-a,y:s.plotY-a,width:2*a,height:2*a}):(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)}}getPxExtremes(){let t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=e=>{let n;return"string"==typeof e&&(n=/%$/.test(e),e=parseInt(e,10)),n?t*e/100:e},n=e(he(this.options.minSize,8));return{minPxSize:n,maxPxSize:Math.max(e(he(this.options.maxSize,"20%")),n)}}getZExtremes(){let t=this.options,e=this.getColumn("z").filter(ce);if(e.length){let n=he(t.zMin,oe(ae(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),r=he(t.zMax,se(e));if(ce(n)&&ce(r))return{zMin:n,zMax:r}}}searchKDTree(t,e,n,r=te,i=te){return r=(t,e,n)=>{let r,i=t[n]||0,s=e[n]||0,a=!1;return i<0&&s<0?(r=i-(t.marker?.radius||0)>=s-(e.marker?.radius||0)?t:e,a=!0):r=i<s?t:e,[r,a]},i=(t,e,n)=>!n&&t>e||t<e,super.searchKDTree(t,e,n,r,i)}}ge.defaultOptions=ue(re.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{z:e}=this.point;return ce(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),le(ge.prototype,{alignDataLabel:ne.alignDataLabel,applyZones:te,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:Zt,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),ie(ge,"updatedData",t=>{delete t.target.chart.bubbleZExtremes}),ie(ge,"remove",t=>{delete t.target.chart.bubbleZExtremes}),x().registerSeriesType("bubble",ge);let{seriesTypes:{column:{prototype:{pointClass:{prototype:me}}},arearange:{prototype:{pointClass:be}}}}=x(),{extend:ye,isNumber:ve}=y();class xe extends be{isValid(){return ve(this.low)}}ye(xe.prototype,{setState:me.setState});let{noop:we}=y(),{seriesTypes:{arearange:ke,column:Ae,column:{prototype:Se}}}=x(),{addEvent:Ce,clamp:Ee,extend:Me,isNumber:Te,merge:Pe,pick:Oe}=y();class Le extends ke{setOptions(){return Pe(!0,arguments[0],{stacking:void 0}),ke.prototype.setOptions.apply(this,arguments)}translate(){return Se.translate.apply(this)}pointAttribs(){return Se.pointAttribs.apply(this,arguments)}translate3dPoints(){return Se.translate3dPoints.apply(this,arguments)}translate3dShapes(){return Se.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let t,e,n,r,i=this.yAxis,s=this.xAxis,a=s.startAngleRad,o=this.chart,l=this.xAxis.isRadial,c=Math.max(o.chartWidth,o.chartHeight)+999;this.points.forEach(u=>{let h=u.shapeArgs||{},d=this.options.minPointLength,p=u.plotY,f=i.translate(u.high,0,1,0,1);if(Te(f)&&Te(p))if(u.plotHigh=Ee(f,-c,c),u.plotLow=Ee(p,-c,c),r=u.plotHigh,Math.abs(t=Oe(u.rectPlotY,u.plotY)-u.plotHigh)<d?(e=d-t,t+=e,r-=e/2):t<0&&(t*=-1,r-=t),l&&this.polar)n=u.barX+a,u.shapeType="arc",u.shapeArgs=this.polar.arc(r+t,r,n,n+u.pointWidth);else{h.height=t,h.y=r;let{x:e=0,width:n=0}=h;u.shapeArgs=Pe(u.shapeArgs,this.crispCol(e,r,n,t)),u.tooltipPos=o.inverted?[i.len+i.pos-o.plotLeft-r-t/2,s.len+s.pos-o.plotTop-e-n/2,t]:[s.left-o.plotLeft+e+n/2,i.pos-o.plotTop+r+t/2,t]}})}}Le.defaultOptions=Pe(Ae.defaultOptions,ke.defaultOptions,{borderRadius:{where:"all"},pointRange:null,legendSymbol:"rectangle",marker:null,states:{hover:{halo:!1}}}),Ce(Le,"afterColumnTranslate",function(){Le.prototype.afterColumnTranslate.apply(this)},{order:5}),Me(Le.prototype,{directTouch:!0,pointClass:xe,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:Se.adjustForMissingColumns,animate:Se.animate,crispCol:Se.crispCol,drawGraph:we,drawPoints:Se.drawPoints,getSymbol:we,drawTracker:Se.drawTracker,getColumnMetrics:Se.getColumnMetrics}),x().registerSeriesType("columnrange",Le);let{column:je}=x().seriesTypes,{clamp:_e,merge:Ie,pick:Re}=y();class De extends je{translate(){let t=this.chart,e=this.options,n=this.dense=this.closestPointRange*this.xAxis.transA<2,r=this.borderWidth=Re(e.borderWidth,n?0:1),i=this.yAxis,s=e.threshold,a=Re(e.minPointLength,5),o=this.getColumnMetrics(),l=o.width,c=this.pointXOffset=o.offset,u=this.translatedThreshold=i.getThreshold(s),h=this.barW=Math.max(l,1+2*r);for(let n of(t.inverted&&(u-=.5),e.pointPadding&&(h=Math.ceil(h)),super.translate(),this.points)){let r,d,p,f,g,m,b,y,v,x,w,k=Re(n.yBottom,u),A=999+Math.abs(k),S=_e(n.plotY,-A,i.len+A),C=h/2,E=Math.min(S,k),M=Math.max(S,k)-E,T=n.plotX+c;e.centerInCategory&&(T=this.adjustForMissingColumns(T,l,n,o)),n.barX=T,n.pointWidth=l,n.tooltipPos=t.inverted?[i.len+i.pos-t.plotLeft-S,this.xAxis.len-T-C,M]:[T+C,S+i.pos-t.plotTop,M],r=s+(n.total||n.y),"percent"===e.stacking&&(r=s+(n.y<0)?-100:100);let P=i.toPixels(r,!0);p=(d=t.plotHeight-P-(t.plotHeight-u))?C*(E-P)/d:0,f=d?C*(E+M-P)/d:0,m=T-p+C,b=T+p+C,y=T+f+C,v=T-f+C,x=E-a,w=E+M,n.y<0&&(x=E,w=E+M+a),t.inverted&&(g=i.width-E,d=P-(i.width-u),p=C*(P-g)/d,f=C*(P-(g-M))/d,b=(m=T+C+p)-2*p,y=T-f+C,v=T+f+C,x=E,w=E+M-a,n.y<0&&(w=E+M+a)),n.shapeType="path",n.shapeArgs={x:m,y:x,width:b-m,height:M,d:[["M",m,x],["L",b,x],["L",y,w],["L",v,w],["Z"]]}}}}De.defaultOptions=Ie(je.defaultOptions,{}),x().registerSeriesType("columnpyramid",De);let{arearange:Ne}=x().seriesTypes,{addEvent:Be,merge:Fe,extend:ze}=y();class He extends vt{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||ht().prototype.getColumnMetrics.call(this)}drawDataLabels(){let t=this.pointValKey;if(Ne)for(let e of(Ne.prototype.drawDataLabels.call(this),this.points))e.y=e[t]}toYData(t){return[t.low,t.high]}}He.defaultOptions=Fe(vt.defaultOptions,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}),Be(He,"afterTranslate",function(){for(let t of this.points)t.plotLow=t.plotY},{order:0}),ze(He.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),x().registerSeriesType("errorbar",He);let{series:{prototype:{pointClass:qe}}}=x(),{noop:We}=y(),{series:Ue,seriesTypes:{column:Xe}}=x(),{clamp:Ye,isNumber:Ge,extend:Ve,merge:Ke,pick:$e,pInt:Ze,defined:Je}=y();class Qe extends Ue{translate(){let t=this.yAxis,e=this.options,n=t.center;this.generatePoints(),this.points.forEach(r=>{let i=Ke(e.dial,r.dial),s=Ze(i.radius)*n[2]/200,a=Ze(i.baseLength)*s/100,o=Ze(i.rearLength)*s/100,l=i.baseWidth,c=i.topWidth,u=e.overshoot,h=t.startAngleRad+t.translate(r.y,void 0,void 0,void 0,!0);(Ge(u)||!1===e.wrap)&&(u=Ge(u)?u/180*Math.PI:0,h=Ye(h,t.startAngleRad-u,t.endAngleRad+u)),h=180*h/Math.PI,r.shapeType="path";let d=i.path||[["M",-o,-l/2],["L",a,-l/2],["L",s,-c/2],["L",s,c/2],["L",a,l/2],["L",-o,l/2],["Z"]];r.shapeArgs={d:d,translateX:n[0],translateY:n[1],rotation:h},r.plotX=n[0],r.plotY=n[1],Je(r.y)&&t.max-t.min&&(r.percentage=(r.y-t.min)/(t.max-t.min)*100)})}drawPoints(){let t=this,e=t.chart,n=t.yAxis.center,r=t.pivot,i=t.options,s=i.pivot,a=e.renderer;t.points.forEach(n=>{let r=n.graphic,s=n.shapeArgs,o=s.d,l=Ke(i.dial,n.dial);r?(r.animate(s),s.d=o):n.graphic=a[n.shapeType](s).addClass("highcharts-dial").add(t.group),e.styledMode||n.graphic[r?"animate":"attr"]({stroke:l.borderColor,"stroke-width":l.borderWidth,fill:l.backgroundColor})}),r?r.animate({translateX:n[0],translateY:n[1]}):s&&(t.pivot=a.circle(0,0,s.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(n[0],n[1]).add(t.group),e.styledMode||t.pivot.attr({fill:s.backgroundColor,stroke:s.borderColor,"stroke-width":s.borderWidth}))}animate(t){let e=this;t||e.points.forEach(t=>{let n=t.graphic;n&&(n.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),n.animate({rotation:t.shapeArgs.rotation},e.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),Ue.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(t,e){Ue.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),$e(e,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}Qe.defaultOptions=Ke(Ue.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),Ve(Qe.prototype,{angular:!0,directTouch:!0,drawGraph:We,drawTracker:Xe.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:class extends qe{setState(t){this.state=t}},trackerGroups:["group","dataLabelsGroup"]}),x().registerSeriesType("gauge",Qe);let{composed:tn}=y(),{addEvent:en,pushUnique:nn}=y();function rn(){let t,e,n,r=this;r.container&&(t=en(r.container,"mousedown",t=>{let i=r.hoverPoint;i&&i.series&&i.series.hasDraggableNodes&&i.series.options.draggable&&(i.series.onMouseDown(i,t),e=en(r.container,"mousemove",t=>i&&i.series&&i.series.onMouseMove(i,t)),n=en(r.container.ownerDocument,"mouseup",t=>(e(),n(),i&&i.series&&i.series.onMouseUp(i,t))))})),en(r,"destroy",function(){t()})}let sn={compose:function(t){nn(tn,"DragNodes")&&en(t,"load",rn)},onMouseDown:function(t,e){let n=this.chart.pointer?.normalize(e)||e;t.fixedPosition={chartX:n.chartX,chartY:n.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){let n,r,i=this.chart,s=i.pointer?.normalize(e)||e,a=t.fixedPosition.chartX-s.chartX,o=t.fixedPosition.chartY-s.chartY,l=i.graphLayoutsLookup;(Math.abs(a)>5||Math.abs(o)>5)&&(n=t.fixedPosition.plotX-a,r=t.fixedPosition.plotY-o,i.isInsidePlot(n,r)&&(t.plotX=n,t.plotY=r,t.hasDragged=!0,this.redrawHalo(t),l.forEach(t=>{t.restartSimulation()})))}},onMouseUp:function(t){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}},{setAnimation:an}=y(),{composed:on}=y(),{addEvent:ln,pushUnique:cn}=y();function un(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(t=>{t.updateSimulation()}),this.redraw())}function hn(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(t=>{t.updateSimulation(!1)}),this.redraw())}function dn(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(t=>{t.stop()})}function pn(){let t,e=!1,n=n=>{n.maxIterations--&&isFinite(n.temperature)&&!n.isStable()&&!n.enableSimulation&&(n.beforeStep&&n.beforeStep(),n.step(),t=!1,e=!0)};if(this.graphLayoutsLookup){for(an(!1,this),this.graphLayoutsLookup.forEach(t=>t.start());!t;)t=!0,this.graphLayoutsLookup.forEach(n);e&&this.series.forEach(t=>{t&&t.layout&&t.render()})}}let fn={compose:function(t){cn(on,"GraphLayout")&&(ln(t,"afterPrint",un),ln(t,"beforePrint",hn),ln(t,"predraw",dn),ln(t,"render",pn))},integrations:{},layouts:{}};var gn=g(960),mn=g.n(gn);let{seriesTypes:{bubble:{prototype:{pointClass:bn}}}}=x(),{isNumber:yn}=y(),vn={attractive:function(t,e,n){let r=t.getMass(),i=-n.x*e*this.diffTemperature,s=-n.y*e*this.diffTemperature;t.fromNode.fixedPosition||(t.fromNode.plotX-=i*r.fromNode/t.fromNode.degree,t.fromNode.plotY-=s*r.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=i*r.toNode/t.toNode.degree,t.toNode.plotY+=s*r.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){let t=this.options.gravitationalConstant||0,e=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*t,n=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*t;this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=n/t.mass/t.degree)})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){let n=-t.options.friction,r=t.options.maxSpeed,i=e.prevX,s=e.prevY,a=(e.plotX+e.dispX-i)*n,o=(e.plotY+e.dispY-s)*n,l=Math.abs,c=l(a)/(a||1),u=l(o)/(o||1),h=c*Math.min(r,Math.abs(a)),d=u*Math.min(r,Math.abs(o));e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=h,e.plotY+=d,e.temperature=t.vectorLength({x:h,y:d})},repulsive:function(t,e,n){let r=e*this.diffTemperature/t.mass/t.degree;t.fixedPosition||(t.plotX+=n.x*r,t.plotY+=n.y*r)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t?1:0)}},{noop:xn}=y(),wn={barycenter:function(){let t,e,n=this.options.gravitationalConstant,r=this.box,i=this.nodes;for(let s of i)this.options.splitSeries&&!s.isParentNode?(t=s.series.parentNode.plotX,e=s.series.parentNode.plotY):(t=r.width/2,e=r.height/2),s.fixedPosition||(s.plotX-=(s.plotX-t)*n/(s.mass*Math.sqrt(i.length)),s.plotY-=(s.plotY-e)*n/(s.mass*Math.sqrt(i.length)))},getK:xn,integrate:vn.integrate,repulsive:function(t,e,n,r){let i=e*this.diffTemperature/t.mass/t.degree,s=n.x*i,a=n.y*i;t.fixedPosition||(t.plotX+=s,t.plotY+=a),r.fixedPosition||(r.plotX-=s,r.plotY-=a)},repulsiveForceFunction:function(t,e,n,r){return Math.min(t,(n.marker.radius+r.marker.radius)/2)}},kn={attractive:function(t,e,n,r){let i=t.getMass(),s=n.x/r*e,a=n.y/r*e;t.fromNode.fixedPosition||(t.fromNode.dispX-=s*i.fromNode/t.fromNode.degree,t.fromNode.dispY-=a*i.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=s*i.toNode/t.toNode.degree,t.toNode.dispY+=a*i.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return t*t/e},barycenter:function(){let t=this.options.gravitationalConstant,e=this.barycenter.xFactor,n=this.barycenter.yFactor;this.nodes.forEach(function(r){if(!r.fixedPosition){let i=r.getDegree(),s=i*(1+i/2);r.dispX+=(e-r.plotX)*t*s/r.degree,r.dispY+=(n-r.plotY)*t*s/r.degree}})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;let n=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==n&&(e.plotX+=e.dispX/n*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/n*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,n,r){t.dispX+=n.x/r*e/t.degree,t.dispY+=n.y/r*e/t.degree},repulsiveForceFunction:function(t,e){return e*e/t}};class An{constructor(t){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}divideBox(){let t=this.box.width/2,e=this.box.height/2;this.nodes[0]=new An({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new An({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new An({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new An({left:this.box.left,top:this.box.top+e,width:t,height:e})}getBoxPosition(t){let e=t.plotX<this.box.left+this.box.width/2,n=t.plotY<this.box.top+this.box.height/2;return e?n?0:3:n?1:2}insert(t,e){let n;this.isInternal?this.nodes[this.getBoxPosition(t)].insert(t,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,e-1),this.body=!0),this.nodes[this.getBoxPosition(t)].insert(t,e-1)):((n=new An({top:t.plotX||NaN,left:t.plotY||NaN,width:.1,height:.1})).body=t,n.isInternal=!1,this.nodes.push(n)):(this.isInternal=!1,this.body=t))}updateMassAndCenter(){let t=0,e=0,n=0;if(this.isInternal){for(let r of this.nodes)r.isEmpty||(t+=r.mass,e+=r.plotX*r.mass,n+=r.plotY*r.mass);e/=t,n/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,n=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=n}}let Sn=class{constructor(t,e,n,r){this.box={left:t,top:e,width:n,height:r},this.maxDepth=25,this.root=new An(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}calculateMassAndCenter(){this.visitNodeRecursive(null,null,function(t){t.updateMassAndCenter()})}insertNodes(t){for(let e of t)this.root.insert(e,this.maxDepth)}visitNodeRecursive(t,e,n){let r;if(t||(t=this.root),t===this.root&&e&&(r=e(t)),!1!==r){for(let i of t.nodes){if(i.isInternal){if(e&&(r=e(i)),!1===r)continue;this.visitNodeRecursive(i,e,n)}else i.body&&e&&e(i.body);n&&n(i)}t===this.root&&n&&n(t)}}},{win:Cn}=y(),{clamp:En,defined:Mn,isFunction:Tn,fireEvent:Pn,pick:On}=y();class Ln{constructor(){this.box={},this.currentStep=0,this.initialRendering=!0,this.links=[],this.nodes=[],this.series=[],this.simulation=!1}static compose(t){fn.compose(t),fn.integrations.euler=kn,fn.integrations.verlet=vn,fn.layouts["reingold-fruchterman"]=Ln}init(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=fn.integrations[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=On(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=On(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation}updateSimulation(t){this.enableSimulation=On(t,this.options.enableSimulation)}start(){let t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach(function(t){t.finishedAnimating=!0,t.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()}step(){let t=this.series;for(let t of(this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter()),this.forces||[]))this[t+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(let e of t)e.chart&&e.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&Cn.cancelAnimationFrame(this.simulation),this.simulation=Cn.requestAnimationFrame(()=>this.step())):(this.simulation=!1,this.series.forEach(t=>{Pn(t,"afterSimulation")}))}}stop(){this.simulation&&Cn.cancelAnimationFrame(this.simulation)}setArea(t,e,n,r){this.box={left:t,top:e,width:n,height:r}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(t,e){for(let n of t)-1===e.indexOf(n)&&e.push(n)}removeElementFromCollection(t,e){let n=e.indexOf(t);-1!==n&&e.splice(n,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(t){this.maxIterations=On(t,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(t){this.initialRendering=t}createQuadTree(){this.quadTree=new Sn(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let t=this.options.initialPositions;if(Tn(t))for(let e of(t.call(this),this.nodes))Mn(e.prevX)||(e.prevX=e.plotX),Mn(e.prevY)||(e.prevY=e.plotY),e.dispX=0,e.dispY=0;else"circle"===t?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let t,e=this.box,n=this.nodes,r=2*Math.PI/(n.length+1),i=n.filter(function(t){return 0===t.linksTo.length}),s={},a=this.options.initialPositionRadius,o=t=>{for(let e of t.linksFrom||[])s[e.toNode.id]||(s[e.toNode.id]=!0,l.push(e.toNode),o(e.toNode))},l=[];for(let t of i)l.push(t),o(t);if(l.length)for(let t of n)-1===l.indexOf(t)&&l.push(t);else l=n;for(let n=0,i=l.length;n<i;++n)(t=l[n]).plotX=t.prevX=On(t.plotX,e.width/2+a*Math.cos(n*r)),t.plotY=t.prevY=On(t.plotY,e.height/2+a*Math.sin(n*r)),t.dispX=0,t.dispY=0}setRandomPositions(){let t,e=this.box,n=this.nodes,r=n.length+1,i=t=>{let e=t*t/Math.PI;return e-Math.floor(e)};for(let s=0,a=n.length;s<a;++s)(t=n[s]).plotX=t.prevX=On(t.plotX,e.width*i(s)),t.plotY=t.prevY=On(t.plotY,e.height*i(r+s)),t.dispX=0,t.dispY=0}force(t,...e){this.integration[t].apply(this,e)}barycenterForces(){this.getBarycenter(),this.force("barycenter")}getBarycenter(){let t=0,e=0,n=0;for(let r of this.nodes)e+=r.plotX*r.mass,n+=r.plotY*r.mass,t+=r.mass;return this.barycenter={x:e,y:n,xFactor:e/t,yFactor:n/t},this.barycenter}barnesHutApproximation(t,e){let n,r,i=this.getDistXY(t,e),s=this.vectorLength(i);return t!==e&&0!==s&&(e.isInternal?e.boxSize/s<this.options.theta&&0!==s?(r=this.repulsiveForce(s,this.k),this.force("repulsive",t,r*e.mass,i,s),n=!1):n=!0:(r=this.repulsiveForce(s,this.k),this.force("repulsive",t,r*e.mass,i,s))),n}repulsiveForces(){if("barnes-hut"===this.approximation)for(let t of this.nodes)this.quadTree.visitNodeRecursive(null,e=>this.barnesHutApproximation(t,e));else{let t,e,n;for(let r of this.nodes)for(let i of this.nodes)r===i||r.fixedPosition||(n=this.getDistXY(r,i),0!==(e=this.vectorLength(n))&&(t=this.repulsiveForce(e,this.k),this.force("repulsive",r,t*i.mass,n,e)))}}attractiveForces(){let t,e,n;for(let r of this.links)r.fromNode&&r.toNode&&(t=this.getDistXY(r.fromNode,r.toNode),0!==(e=this.vectorLength(t))&&(n=this.attractiveForce(e,this.k),this.force("attractive",r,n,t,e)))}applyLimits(){for(let t of this.nodes)t.fixedPosition||(this.integration.integrate(this,t),this.applyLimitBox(t,this.box),t.dispX=0,t.dispY=0)}applyLimitBox(t,e){let n=t.radius;t.plotX=En(t.plotX,e.left+n,e.width-n),t.plotY=En(t.plotY,e.top+n,e.height-n)}coolDown(t,e,n){return t-e*n}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let t=0;for(let e of this.nodes)t+=e.temperature;return t}vectorLength(t){return Math.sqrt(t.x*t.x+t.y*t.y)}getDistR(t,e){let n=this.getDistXY(t,e);return this.vectorLength(n)}getDistXY(t,e){let n=t.plotX-e.plotX,r=t.plotY-e.plotY;return{x:n,y:r,absX:Math.abs(n),absY:Math.abs(r)}}}let jn=Ln,{addEvent:_n,pick:In}=y();function Rn(){let t=this.series,e=[];return t.forEach(t=>{t.parentNode&&t.parentNode.selected&&e.push(t.parentNode)}),e}function Dn(){this.allDataPoints&&delete this.allDataPoints}class Nn extends jn{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(t){jn.compose(t),fn.integrations.packedbubble=wn,fn.layouts.packedbubble=Nn;let e=t.prototype;e.getSelectedParentNodes||(_n(t,"beforeRedraw",Dn),e.getSelectedParentNodes=Rn)}beforeStep(){this.options.marker&&this.series.forEach(t=>{t&&t.calculateParentRadius()})}isStable(){let t=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&t<1e-5||this.temperature<=0}setCircularPositions(){let t,e,n=this.box,r=this.nodes,i=2*Math.PI/(r.length+1),s=this.options.initialPositionRadius,a=0;for(let o of r)this.options.splitSeries&&!o.isParentNode?(t=o.series.parentNode.plotX,e=o.series.parentNode.plotY):(t=n.width/2,e=n.height/2),o.plotX=o.prevX=In(o.plotX,t+s*Math.cos(o.index||a*i)),o.plotY=o.prevY=In(o.plotY,e+s*Math.sin(o.index||a*i)),o.dispX=0,o.dispY=0,a++}repulsiveForces(){let t,e,n,r=this,i=r.options.bubblePadding,s=r.nodes;s.forEach(a=>{a.degree=a.mass,a.neighbours=0,s.forEach(s=>{t=0,a!==s&&!a.fixedPosition&&(r.options.seriesInteraction||a.series===s.series)&&(n=r.getDistXY(a,s),(e=r.vectorLength(n)-(a.marker.radius+s.marker.radius+i))<0&&(a.degree+=.01,a.neighbours++,t=r.repulsiveForce(-e/Math.sqrt(a.neighbours),r.k,a,s)),r.force("repulsive",a,t*s.mass,n,s,e))})})}applyLimitBox(t,e){let n,r;this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit&&(n=this.getDistXY(t,t.series.parentNode),(r=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(n))<0&&r>-2*t.marker.radius&&(t.plotX-=.01*n.x,t.plotY-=.01*n.y)),super.applyLimitBox(t,e)}}fn.layouts.packedbubble=Nn;let{merge:Bn,syncTimeout:Fn}=y(),{animObject:zn}=y();var Hn=g(28),qn=g.n(Hn);let{deg2rad:Wn}=y(),{addEvent:Un,merge:Xn,uniqueKey:Yn,defined:Gn,extend:Vn}=y();function Kn(t,e){e=Xn(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);let n=this.renderer.url,r=this.text||this,i=r.textPath,{attributes:s,enabled:a}=e;if(t=t||i&&i.path,i&&i.undo(),t&&a){let e=Un(r,"afterModifyTree",e=>{if(t&&a){let i=t.attr("id");i||t.attr("id",i=Yn());let a={x:0,y:0};Gn(s.dx)&&(a.dx=s.dx,delete s.dx),Gn(s.dy)&&(a.dy=s.dy,delete s.dy),r.attr(a),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let o=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:Vn(s,{"text-anchor":s.textAnchor,href:`${n}#${i}`}),children:o}}});r.textPath={path:t,undo:e}}else r.attr({dx:0,dy:0}),delete r.textPath;return this.added&&(r.textCache="",this.renderer.buildText(r)),this}function $n(t){let e=t.bBox,n=this.element?.querySelector("textPath");if(n){let r=[],{b:i,h:s}=this.renderer.fontMetrics(this.element),a=s-i,o=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),l=n.innerHTML.replace(o,"").split(/<tspan class="highcharts-br"[^>]*>/),c=l.length,u=(t,e)=>{let{x:r,y:s}=e,o=(n.getRotationOfChar(t)-90)*Wn,l=Math.cos(o),c=Math.sin(o);return[[r-a*l,s-a*c],[r+i*l,s+i*c]]};for(let e=0,i=0;i<c;i++){let s=l[i].length;for(let a=0;a<s;a+=5)try{let t=e+a+i,[s,o]=u(t,n.getStartPositionOfChar(t));0===a?(r.push(o),r.push(s)):(0===i&&r.unshift(o),i===c-1&&r.push(s))}catch(t){break}e+=s-1;try{let t=e+i,s=n.getEndPositionOfChar(t),[a,o]=u(t,s);r.unshift(o),r.unshift(a)}catch(t){break}}r.length&&r.push(r[0].slice()),e.polygon=r}return e}function Zn(t){let e=t.labelOptions,n=t.point,r=e[n.formatPrefix+"TextPath"]||e.textPath;r&&!e.useHTML&&(this.setTextPath(n.getDataLabelPath?.(this)||n.graphic,r),n.dataLabelPath&&!r.enabled&&(n.dataLabelPath=n.dataLabelPath.destroy()))}let{parse:Jn}=kt(),{noop:Qn}=y(),{series:{prototype:tr},seriesTypes:{bubble:er}}=x(),{initDataLabels:nr,initDataLabelsDefer:rr}={initDataLabels:function(){let t=this.options.dataLabels;if(!this.dataLabelsGroup){let e=this.initDataLabelsGroup();return!this.chart.styledMode&&t?.style&&e.css(t.style),e.attr({opacity:0}),this.visible&&e.show(),e}return this.dataLabelsGroup.attr(Bn({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){let t=this.options.dataLabels;t?.defer&&this.options.layoutAlgorithm?.enableSimulation?Fn(()=>{this.deferDataLabels=!1},t?zn(t.animation).defer:0):this.deferDataLabels=!1}},{addEvent:ir,clamp:sr,defined:ar,extend:or,fireEvent:lr,isArray:cr,isNumber:ur,merge:hr,pick:dr}=y();!function(t){Un(t,"afterGetBBox",$n),Un(t,"beforeAddingDataLabel",Zn);let e=t.prototype;e.setTextPath||(e.setTextPath=Kn)}(qn());class pr extends er{constructor(){super(...arguments),this.parentNodeMass=0,this.deferDataLabels=!0}static compose(t,e,n){er.compose(t,e,n),sn.compose(e),Nn.compose(e)}accumulateAllPoints(){let t=this.chart,e=[];for(let n of t.series)if(n.is("packedbubble")&&n.reserveSpace()){let t=n.getColumn("value");for(let r=0;r<t.length;r++)e.push([null,null,t[r],n.index,r,{id:r,marker:{radius:0}}])}return e}addLayout(){let t,e=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},n=e.type||"packedbubble",r=this.chart.options.chart,i=this.chart.graphLayoutsStorage,s=this.chart.graphLayoutsLookup;i||(this.chart.graphLayoutsStorage=i={},this.chart.graphLayoutsLookup=s=[]),(t=i[n])||(e.enableSimulation=ar(r.forExport)?!r.forExport:e.enableSimulation,i[n]=t=new fn.layouts[n],t.init(e),s.splice(t.index,0,t)),this.layout=t,this.points.forEach(t=>{t.mass=2,t.degree=1,t.collisionNmb=1}),t.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),t.addElementsToCollection([this],t.series),t.addElementsToCollection(this.points,t.nodes)}addSeriesLayout(){let t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",n=this.chart.graphLayoutsStorage,r=this.chart.graphLayoutsLookup,i=hr(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),s=n[e+"-series"];s||(n[e+"-series"]=s=new fn.layouts[e],s.init(i),r.splice(s.index,0,s)),this.parentNodeLayout=s,this.createParentNodes()}calculateParentRadius(){let t=this.seriesBox();this.parentNodeRadius=sr(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let t=this.chart.series,e=this.options.zMin,n=this.options.zMax,r=1/0,i=-1/0;return e&&n?[e,n]:(t.forEach(t=>{t.getColumn("value").forEach(t=>{ar(t)&&(t>i&&(i=t),t<r&&(r=t))})}),[e=dr(e,r),n=dr(n,i)])}checkOverlap(t,e){let n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)-Math.abs(t[2]+e[2])<-.001}createParentNodes(){let t,e=this.pointClass,n=this.chart,r=this.parentNodeLayout,i=this.layout.options,s=this.parentNode,a={radius:this.parentNodeRadius,lineColor:this.color,fillColor:Jn(this.color).brighten(.4).get()};i.parentNodeOptions&&(a=hr(i.parentNodeOptions.marker||{},a)),this.parentNodeMass=0,this.points.forEach(t=>{this.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)}),this.calculateParentRadius(),r.nodes.forEach(e=>{e.seriesIndex===this.index&&(t=!0)}),r.setArea(0,0,n.plotWidth,n.plotHeight),t||(s||(s=new e(this,{mass:this.parentNodeRadius/2,marker:a,dataLabels:{inside:!1},states:{normal:{marker:a},hover:{marker:a}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(s.plotX=this.parentNode.plotX,s.plotY=this.parentNode.plotY),this.parentNode=s,r.addElementsToCollection([this],r.series),r.addElementsToCollection([s],r.nodes))}deferLayout(){let t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(t=>{t.removeElementFromCollection(this,t.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),tr.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(tr.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",tr.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let t=this.chart,e=this.layout.options.parentNodeOptions.marker,n={fill:e.fillColor||Jn(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":dr(e.lineWidth,this.options.lineWidth)},r={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&ar(this.parentNode.plotX)&&ar(this.parentNode.plotY)&&ar(this.parentNodeRadius)&&(r=hr({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},n),this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(n.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(r))}drawTracker(){let t,e=this.parentNode;super.drawTracker(),e&&(t=cr(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(t=>{(t.div||t.element).point=e}))}getPointRadius(){let t,e,n,r,i=this.chart,s=i.plotWidth,a=i.plotHeight,o=this.options,l=o.useSimulation,c=Math.min(s,a),u={},h=[],d=i.allDataPoints||[],p=d.length;["minSize","maxSize"].forEach(t=>{let e=parseInt(o[t],10),n=/%$/.test(o[t]);u[t]=n?c*e/100:e*Math.sqrt(p)}),i.minRadius=t=u.minSize/Math.sqrt(p),i.maxRadius=e=u.maxSize/Math.sqrt(p);let f=l?this.calculateZExtremes():[t,e];d.forEach((i,s)=>{n=l?sr(i[2],f[0],f[1]):i[2],0===(r=this.getRadius(f[0],f[1],t,e,n))&&(r=null),d[s][2]=r,h.push(r)}),this.radii=h}init(){return tr.init.apply(this,arguments),rr.call(this),this.eventsToUnbind.push(ir(this,"updatedData",function(){this.chart.series.forEach(t=>{t.type===this.type&&(t.isDirty=!0)},this)})),this}onMouseUp(t){if(t.fixedPosition&&!t.removed){let e,n=this.layout,r=this.parentNodeLayout;r&&n.options.dragBetweenSeries&&r.nodes.forEach(r=>{t&&t.marker&&r!==t.series.parentNode&&(e=n.getDistXY(t,r),n.vectorLength(e)-r.marker.radius-t.marker.radius<0&&(r.series.addPoint(hr(t.options,{plotX:t.plotX,plotY:t.plotY}),!1),n.removeElementFromCollection(t,n.nodes),t.remove()))}),sn.onMouseUp.apply(this,arguments)}}placeBubbles(t){let e,n,r=this.checkOverlap,i=this.positionBubble,s=[],a=1,o=0,l=0,c=[],u=t.sort((t,e)=>e[2]-t[2]);if(u.length){if(s.push([[0,0,u[0][2],u[0][3],u[0][4]]]),u.length>1)for(s.push([[0,0-u[1][2]-u[0][2],u[1][2],u[1][3],u[1][4]]]),n=2;n<u.length;n++)u[n][2]=u[n][2]||1,r(e=i(s[a][o],s[a-1][l],u[n]),s[a][0])?(s.push([]),l=0,s[a+1].push(i(s[a][o],s[a][0],u[n])),a++,o=0):a>1&&s[a-1][l+1]&&r(e,s[a-1][l+1])?(l++,s[a].push(i(s[a][o],s[a-1][l],u[n])),o++):(o++,s[a].push(e));this.chart.stages=s,this.chart.rawPositions=[].concat.apply([],s),this.resizeRadius(),c=this.chart.rawPositions}return c}pointAttribs(t,e){let n=this.options,r=t&&t.isParentNode,i=n.marker;r&&n.layoutAlgorithm&&n.layoutAlgorithm.parentNodeOptions&&(i=n.layoutAlgorithm.parentNodeOptions.marker);let s=i.fillOpacity,a=tr.pointAttribs.call(this,t,e);return 1!==s&&(a["fill-opacity"]=s),a}positionBubble(t,e,n){let r=Math.asin,i=Math.acos,s=Math.pow,a=Math.abs,o=(0,Math.sqrt)(s(t[0]-e[0],2)+s(t[1]-e[1],2)),l=i((s(o,2)+s(n[2]+e[2],2)-s(n[2]+t[2],2))/(2*(n[2]+e[2])*o)),c=r(a(t[0]-e[0])/o),u=(t[1]-e[1]<0?0:Math.PI)+l+c*((t[0]-e[0])*(t[1]-e[1])<0?1:-1),h=Math.cos(u),d=Math.sin(u);return[e[0]+(e[2]+n[2])*d,e[1]-(e[2]+n[2])*h,n[2],n[3],n[4]]}render(){let t=[];tr.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(e=>{cr(e.dataLabels)&&e.dataLabels.forEach(e=>{t.push(e)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))}resizeRadius(){let t,e,n,r,i,s=this.chart,a=s.rawPositions,o=Math.min,l=Math.max,c=s.plotLeft,u=s.plotTop,h=s.plotHeight,d=s.plotWidth;for(let s of(t=n=Number.POSITIVE_INFINITY,e=r=Number.NEGATIVE_INFINITY,a))i=s[2],t=o(t,s[0]-i),e=l(e,s[0]+i),n=o(n,s[1]-i),r=l(r,s[1]+i);let p=[e-t,r-n],f=[(d-c)/p[0],(h-u)/p[1]],g=o.apply([],f);if(Math.abs(g-1)>1e-10){for(let t of a)t[2]*=g;this.placeBubbles(a)}else s.diffY=h/2+u-n-(r-n)/2,s.diffX=d/2+c-t-(e-t)/2}seriesBox(){let t,e=this.chart,n=this.data,r=Math.max,i=Math.min,s=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return n.forEach(e=>{ar(e.plotX)&&ar(e.plotY)&&e.marker.radius&&(t=e.marker.radius,s[0]=i(s[0],e.plotX-t),s[1]=r(s[1],e.plotX+t),s[2]=i(s[2],e.plotY-t),s[3]=r(s[3],e.plotY+t))}),ur(s.width/s.height)?s:null}setVisible(){let t=this;tr.setVisible.apply(t,arguments),t.parentNodeLayout&&t.graph?t.visible?(t.graph.show(),t.parentNode.dataLabel&&t.parentNode.dataLabel.show()):(t.graph.hide(),t.parentNodeLayout.removeElementFromCollection(t.parentNode,t.parentNodeLayout.nodes),t.parentNode.dataLabel&&t.parentNode.dataLabel.hide()):t.layout&&(t.visible?t.layout.addElementsToCollection(t.points,t.layout.nodes):t.points.forEach(e=>{t.layout.removeElementFromCollection(e,t.layout.nodes)}))}translate(){let t,e,n,r=this.chart,i=this.data,s=this.index,a=this.options.useSimulation;for(let o of(this.generatePoints(),ar(r.allDataPoints)||(r.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),a?n=r.allDataPoints:(n=this.placeBubbles(r.allDataPoints),this.options.draggable=!1),n))o[3]===s&&(t=i[o[4]],e=dr(o[2],void 0),a||(t.plotX=o[0]-r.plotLeft+r.diffX,t.plotY=o[1]-r.plotTop+r.diffY),ur(e)&&(t.marker=or(t.marker,{radius:e,width:2*e,height:2*e}),t.radius=e));a&&this.deferLayout(),lr(this,"afterTranslate")}}pr.defaultOptions=hr(er.defaultOptions,{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{value:e}=this.point;return yn(e)?t(e,-1):""},parentNodeFormatter:function(){return this.name||""},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}),or(pr.prototype,{pointClass:class extends bn{destroy(){return this.series?.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),Vt().prototype.destroy.apply(this,arguments)}firePointEvent(){let t=this.series.options;if(this.isParentNode&&t.parentNode){let e=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,Vt().prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=e}else Vt().prototype.firePointEvent.apply(this,arguments)}select(){let t=this.series.chart;this.isParentNode?(t.getSelectedPoints=t.getSelectedParentNodes,Vt().prototype.select.apply(this,arguments),t.getSelectedPoints=mn().prototype.getSelectedPoints):Vt().prototype.select.apply(this,arguments)}},axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:nr,alignDataLabel:tr.alignDataLabel,indexateNodes:Qn,onMouseDown:sn.onMouseDown,onMouseMove:sn.onMouseMove,redrawHalo:sn.redrawHalo,searchPoint:Qn}),x().registerSeriesType("packedbubble",pr);let{noop:fr}=y(),{area:gr,line:mr,scatter:br}=x().seriesTypes,{extend:yr,merge:vr}=y();class xr extends br{getGraphPath(){let t=mr.prototype.getGraphPath.call(this),e=t.length+1;for(;e--;)(e===t.length||"M"===t[e][0])&&e>0&&t.splice(e,0,["Z"]);return this.areaPath=t,t}drawGraph(){this.options.fillColor=this.color,gr.prototype.drawGraph.call(this)}}xr.defaultOptions=vr(br.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}),yr(xr.prototype,{type:"polygon",drawTracker:mr.prototype.drawTracker,setStackedPoints:fr}),x().registerSeriesType("polygon",xr);let wr={circular:{gridLineWidth:1,labels:{align:void 0,x:0,y:void 0},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},radial:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",padding:5,x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},radialGauge:{endOnTick:!1,gridLineWidth:0,labels:{align:"center",distance:-25,x:0,y:void 0},lineWidth:1,minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickPosition:"inside",tickWidth:2,title:{rotation:0,text:""},zIndex:2}},{defaultOptions:kr}=y(),{composed:Ar,noop:Sr}=y(),{addEvent:Cr,correctFloat:Er,defined:Mr,extend:Tr,fireEvent:Pr,isObject:Or,merge:Lr,pick:jr,pushUnique:_r,relativeLength:Ir,wrap:Rr}=y();!function(t){function e(){this.autoConnect=this.isCircular&&void 0===jr(this.userMax,this.options.max)&&Er(this.endAngleRad-this.startAngleRad)===Er(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function n(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&!0!==this.options.labels.allowOverlap)return this.tickPositions.map(t=>this.ticks[t]&&this.ticks[t].label).filter(t=>!!t)}}function r(){return Sr}function i(t,e,n){let r,i,s,a=this.pane.center,o=t.value;return this.isCircular?(Mr(o)?t.point&&(t.point.shapeArgs||{}).start&&(o=this.chart.inverted?this.translate(t.point.rectPlotY,!0):t.point.x):(i=t.chartX||0,s=t.chartY||0,o=this.translate(Math.atan2(s-n,i-e)-this.startAngleRad,!0)),i=(r=this.getPosition(o)).x,s=r.y):(Mr(o)||(i=t.chartX,s=t.chartY),Mr(i)&&Mr(s)&&(n=a[1]+this.chart.plotTop,o=this.translate(Math.min(Math.sqrt(Math.pow(i-e,2)+Math.pow(s-n,2)),a[2]/2)-a[3]/2,!0))),[o,i||0,s||0]}function s(t,e,n){let r,i,s=this.pane.center,a=this.chart,o=this.left||0,l=this.top||0,c=jr(e,s[2]/2-this.offset);return void 0===n&&(n=this.horiz?0:this.center&&-this.center[3]/2),n&&(c+=n),this.isCircular||void 0!==e?((i=this.chart.renderer.symbols.arc(o+s[0],l+s[1],c,c,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[o+s[0]],i.yBounds=[l+s[1]-c]):(r=this.postTranslate(this.angleRad,c),i=[["M",this.center[0]+a.plotLeft,this.center[1]+a.plotTop],["L",r.x,r.y]]),i}function a(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function o(t,e,n){let r,i,s,a,o,l,c=this.chart,u=t=>{if("string"==typeof t){let e=parseInt(t,10);return b.test(t)&&(e=e*p/100),e}return t},h=this.center,d=this.startAngleRad,p=h[2]/2,f=Math.min(this.offset,0),g=this.left||0,m=this.top||0,b=/%$/,y=this.isCircular,v=jr(u(n.outerRadius),p),x=u(n.innerRadius),w=jr(u(n.thickness),10);if("polygon"===this.options.gridLineInterpolation)l=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0}));else{t=Math.max(t,this.min),e=Math.min(e,this.max);let u=this.translate(t),p=this.translate(e);y||(v=u||0,x=p||0),"circle"!==n.shape&&y?(r=d+(u||0),i=d+(p||0)):(r=-Math.PI/2,i=1.5*Math.PI,o=!0),v-=f,w-=f,l=c.renderer.symbols.arc(g+h[0],m+h[1],v,v,{start:Math.min(r,i),end:Math.max(r,i),innerR:jr(x,v-w),open:o,borderRadius:n.borderRadius}),y&&(s=(i+r)/2,a=g+h[0]+h[2]/2*Math.cos(s),l.xBounds=s>-Math.PI/2&&s<Math.PI/2?[a,c.plotWidth]:[0,a],l.yBounds=[m+h[1]+h[2]/2*Math.sin(s)],l.yBounds[0]+=s>-Math.PI&&s<0||s>Math.PI?-10:10)}return l}function l(t){let e,n,r,i,s,a,o,l,c,u=this.pane.center,h=this.chart,d=h.inverted,p=t.reverse,f=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},g=f.innerRadius||"0%",m=f.outerRadius||"100%",b=u[0]+h.plotLeft,y=u[1]+h.plotTop,v=this.height,x=t.isCrosshair,w=u[3]/2,k=t.value,A=this.getPosition(k),S=A.x,C=A.y;if(x&&(k=(l=this.getCrosshairPosition(t,b,y))[0],S=l[1],C=l[2]),this.isCircular)n=Math.sqrt(Math.pow(S-b,2)+Math.pow(C-y,2)),r="string"==typeof g?Ir(g,1):g/n,i="string"==typeof m?Ir(m,1):m/n,u&&w&&(r<(e=w/n)&&(r=e),i<e&&(i=e)),c=[["M",b+r*(S-b),y-r*(y-C)],["L",S-(1-i)*(S-b),C+(1-i)*(y-C)]];else if((k=this.translate(k))&&(k<0||k>v)&&(k=0),"circle"===this.options.gridLineInterpolation)c=this.getLinePath(0,k,w);else if(c=[],h[d?"yAxis":"xAxis"].forEach(t=>{t.pane===this.pane&&(s=t)}),s){o=s.tickPositions,s.autoConnect&&(o=o.concat([o[0]])),p&&(o=o.slice().reverse()),k&&(k+=w);for(let t=0;t<o.length;t++)a=s.getPosition(o[t],k),c.push(t?["L",a.x,a.y]:["M",a.x,a.y])}return c}function c(t,e){let n=this.translate(t);return this.postTranslate(this.isCircular?n:this.angleRad,jr(this.isCircular?e:n<0?0:n,this.center[2]/2)-this.offset)}function u(){let t=this.center,e=this.chart,n=this.options.title;return{x:e.plotLeft+t[0]+(n.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[n.align]*t[2]+(n.y||0)}}function h(t){t.beforeSetTickPositions=e,t.createLabelCollector=n,t.getCrosshairPosition=i,t.getLinePath=s,t.getOffset=a,t.getPlotBandPath=o,t.getPlotLinePath=l,t.getPosition=c,t.getTitlePosition=u,t.postTranslate=w,t.setAxisSize=A,t.setAxisTranslation=S,t.setOptions=C}function d(){let t=this.chart,e=this.options,n=t.angular&&this.isXAxis,r=this.pane,i=r&&r.options;if(!n&&r&&(t.angular||t.polar)){let t=2*Math.PI,n=(jr(i.startAngle,0)-90)*Math.PI/180,r=(jr(i.endAngle,jr(i.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=n,this.endAngleRad=r,this.offset=e.offset||0;let s=(n%t+t)%t,a=(r%t+t)%t;s>Math.PI&&(s-=t),a>Math.PI&&(a-=t),this.normalizedStartAngleRad=s,this.normalizedEndAngleRad=a}}function p(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function f(){if(this.chart&&this.chart.labelCollectors){let t=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;t>=0&&this.chart.labelCollectors.splice(t,1)}}function g(t){let e,n=this.chart,i=n.angular,s=n.polar,a=this.isXAxis,o=this.coll,l=t.userOptions.pane||0,c=this.pane=n.pane&&n.pane[l];"colorAxis"!==o?(i?(i&&a?(this.isHidden=!0,this.createLabelCollector=r,this.getOffset=Sr,this.redraw=k,this.render=k,this.setScale=Sr,this.setCategories=Sr,this.setTitle=Sr):h(this),e=!a):s&&(h(this),e=this.horiz),i||s?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&n.labelCollectors.push(this.labelCollector)):this.isRadial=!1,c&&e&&(c.axis=this),this.isCircular=e):this.isRadial=!1}function m(){this.isRadial&&this.beforeSetTickPositions()}function b(t){let e=this.label;if(!e)return;let n,r=this.axis,i=e.getBBox(),s=r.options.labels,a=(r.translate(this.pos)+r.startAngleRad+Math.PI/2)/Math.PI*180%360,o=Math.round(a),l=Mr(s.y)?0:-.3*i.height,c=s.y,u=20,h=s.align,d="end",p=o<0?o+360:o,f=p,g=0,m=0;r.isRadial&&(n=r.getPosition(this.pos,r.center[2]/2+Ir(jr(s.distance,-25),r.center[2]/2,-r.center[2]/2)),"auto"===s.rotation?e.attr({rotation:a}):Mr(c)||(c=r.chart.renderer.fontMetrics(e).b-i.height/2),Mr(h)||(r.isCircular?(i.width>r.len*r.tickInterval/(r.max-r.min)&&(u=0),h=a>u&&a<180-u?"left":a>180+u&&a<360-u?"right":"center"):h="center",e.attr({align:h})),"auto"===h&&2===r.tickPositions.length&&r.isCircular&&(p>90&&p<180?p=180-p:p>270&&p<=360&&(p=540-p),f>180&&f<=360&&(f=360-f),(r.pane.options.startAngle===o||r.pane.options.startAngle===o+360||r.pane.options.startAngle===o-360)&&(d="start"),h=o>=-90&&o<=90||o>=-360&&o<=-270||o>=270&&o<=360?"start"===d?"right":"left":"start"===d?"left":"right",f>70&&f<110&&(h="center"),p<15||p>=180&&p<195?g=.3*i.height:p>=15&&p<=35?g="start"===d?0:.75*i.height:p>=195&&p<=215?g="start"===d?.75*i.height:0:p>35&&p<=90?g="start"===d?-.25*i.height:i.height:p>215&&p<=270&&(g="start"===d?i.height:-.25*i.height),f<15?m="start"===d?-.15*i.height:.15*i.height:f>165&&f<=180&&(m="start"===d?.15*i.height:-.15*i.height),e.attr({align:h}),e.translate(m,g+l)),t.pos.x=n.x+(s.x||0),t.pos.y=n.y+(c||0))}function v(t){this.axis.getPosition&&Tr(t.pos,this.axis.getPosition(this.pos))}function x({options:e}){e.xAxis&&Lr(!0,t.radialDefaultOptions.circular,e.xAxis),e.yAxis&&Lr(!0,t.radialDefaultOptions.radialGauge,e.yAxis)}function w(t,e){let n=this.chart,r=this.center;return t=this.startAngleRad+t,{x:n.plotLeft+r[0]+Math.cos(t)*e,y:n.plotTop+r[1]+Math.sin(t)*e}}function k(){this.isDirty=!1}function A(){let t,e;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),t=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(e=this.postTranslate(this.angleRad,t[3]/2),t[0]=e.x-this.chart.plotLeft,t[1]=e.y-this.chart.plotTop),this.len=this.width=this.height=(t[2]-t[3])*jr(this.sector,1)/2)}function S(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function C(e){let{coll:n}=this,{angular:r,inverted:i,polar:s}=this.chart,a={};r?this.isXAxis||(a=Lr(kr.yAxis,t.radialDefaultOptions.radialGauge)):s&&(a=this.horiz?Lr(kr.xAxis,t.radialDefaultOptions.circular):Lr("xAxis"===n?kr.xAxis:kr.yAxis,t.radialDefaultOptions.radial)),i&&"yAxis"===n&&(a.stackLabels=Or(kr.yAxis,!0)?kr.yAxis.stackLabels:{},a.reversedStacks=!0);let o=this.options=Lr(a,e);o.plotBands||(o.plotBands=[]),Pr(this,"afterSetOptions")}function E(t,e,n,r,i,s,a){let o,l=this.axis;return l.isRadial?["M",e,n,"L",(o=l.getPosition(this.pos,l.center[2]/2+r)).x,o.y]:t.call(this,e,n,r,i,s,a)}t.radialDefaultOptions=Lr(wr),t.compose=function(t,e){return _r(Ar,"Axis.Radial")&&(Cr(t,"afterInit",d),Cr(t,"autoLabelAlign",p),Cr(t,"destroy",f),Cr(t,"init",g),Cr(t,"initialAxisTranslation",m),Cr(e,"afterGetLabelPosition",b),Cr(e,"afterGetPosition",v),Cr(y(),"setOptions",x),Rr(e.prototype,"getMarkPath",E)),t}}(h||(h={}));let Dr=h,{animObject:Nr}=y(),{composed:Br}=y(),{addEvent:Fr,defined:zr,find:Hr,isNumber:qr,merge:Wr,pick:Ur,pushUnique:Xr,relativeLength:Yr,splat:Gr,uniqueKey:Vr,wrap:Kr}=y();function $r(){(this.pane||[]).forEach(t=>{t.render()})}function Zr(t){let e=t.args[0].xAxis,n=t.args[0].yAxis,r=t.args[0].chart;e&&n&&("polygon"===n.gridLineInterpolation?(e.startOnTick=!0,e.endOnTick=!0):"polygon"===e.gridLineInterpolation&&r.inverted&&(n.startOnTick=!0,n.endOnTick=!0))}function Jr(){this.pane||(this.pane=[]),this.options.pane=Gr(this.options.pane||{}),this.options.pane.forEach(t=>{new q(t,this)},this)}function Qr(t){let e=t.args.marker,n=this.chart.xAxis[0],r=this.chart.yAxis[0],i=this.chart.inverted,s=i?r:n,a=i?n:r;if(this.chart.polar){t.preventDefault();let n=(e.attr?e.attr("start"):e.start)-s.startAngleRad,r=e.attr?e.attr("r"):e.r,i=(e.attr?e.attr("end"):e.end)-s.startAngleRad,o=e.attr?e.attr("innerR"):e.innerR;t.result.x=n+s.pos,t.result.width=i-n,t.result.y=a.len+a.pos-r,t.result.height=r-o}}function ti(t){let e=this.chart;if(e.polar&&e.hoverPane&&e.hoverPane.axis){t.preventDefault();let n=e.hoverPane.center,r=e.mouseDownX||0,i=e.mouseDownY||0,s=t.args.chartY,a=t.args.chartX,o=2*Math.PI,l=e.hoverPane.axis.startAngleRad,c=e.hoverPane.axis.endAngleRad,u=e.inverted?e.xAxis[0]:e.yAxis[0],h={},d="arc";if(h.x=n[0]+e.plotLeft,h.y=n[1]+e.plotTop,this.zoomHor){let t=l>0?c-l:Math.abs(l)+Math.abs(c),p=Math.atan2(i-e.plotTop-n[1],r-e.plotLeft-n[0])-l,f=Math.atan2(s-e.plotTop-n[1],a-e.plotLeft-n[0])-l;h.r=n[2]/2,h.innerR=n[3]/2,p<=0&&(p+=o),f<=0&&(f+=o),f<p&&(f=[p,p=f][0]),t<o&&l+f>c+(o-t)/2&&(f=p,p=l<=0?l:0);let g=h.start=Math.max(p+l,l),m=h.end=Math.min(f+l,c);if("polygon"===u.options.gridLineInterpolation){let t=e.hoverPane.axis,r=g-t.startAngleRad+t.pos,i=u.getPlotLinePath({value:u.max}),s=t.toValue(r),a=t.toValue(r+(m-g));if(s<t.getExtremes().min){let{min:e,max:n}=t.getExtremes();s=n-(e-s)}if(a<t.getExtremes().min){let{min:e,max:n}=t.getExtremes();a=n-(e-a)}a<s&&(a=[s,s=a][0]),(i=ii(i,s,a,t)).push(["L",n[0]+e.plotLeft,e.plotTop+n[1]]),h.d=i,d="path"}}if(this.zoomVert){let t=e.inverted?e.xAxis[0]:e.yAxis[0],o=Math.sqrt(Math.pow(r-e.plotLeft-n[0],2)+Math.pow(i-e.plotTop-n[1],2)),u=Math.sqrt(Math.pow(a-e.plotLeft-n[0],2)+Math.pow(s-e.plotTop-n[1],2));if(u<o&&(o=[u,u=o][0]),u>n[2]/2&&(u=n[2]/2),o<n[3]/2&&(o=n[3]/2),this.zoomHor||(h.start=l,h.end=c),h.r=u,h.innerR=o,"polygon"===t.options.gridLineInterpolation){let e=t.toValue(t.len+t.pos-o),n=t.toValue(t.len+t.pos-u),r=t.getPlotLinePath({value:n}).concat(t.getPlotLinePath({value:e,reverse:!0}));h.d=r,d="path"}}if(this.zoomHor&&this.zoomVert&&"polygon"===u.options.gridLineInterpolation){let t=e.hoverPane.axis,n=h.start||0,r=h.end||0,i=n-t.startAngleRad+t.pos,s=t.toValue(i),a=t.toValue(i+(r-n));if(h.d instanceof Array){let t=h.d.slice(0,h.d.length/2),n=h.d.slice(h.d.length/2,h.d.length);n=[...n].reverse();let r=e.hoverPane.axis;t=ii(t,s,a,r),(n=ii(n,s,a,r))&&(n[0][0]="L"),n=[...n].reverse(),h.d=t.concat(n),d="path"}}t.attrs=h,t.shapeType=d}}function ei(){let t=this.chart;t.polar&&(this.polar=new fi(this),t.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function ni(){if(this.chart.polar&&this.xAxis){let{xAxis:t,yAxis:e}=this,n=this.chart;this.kdByAngle=n.tooltip&&n.tooltip.shared,this.kdByAngle||n.inverted?this.searchPoint=ri:this.options.findNearestPointBy="xy";let r=this.points,i=r.length;for(;i--;)this.is("column")||this.is("columnrange")||this.polar.toXY(r[i]),n.hasParallelCoordinates||this.yAxis.reversed||(Ur(r[i].y,Number.MIN_VALUE)<e.min||r[i].x<t.min||r[i].x>t.max?(r[i].isNull=!0,r[i].plotY=NaN):r[i].isNull=r[i].isValid&&!r[i].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(Fr(this,"afterRender",function(){let t;n.polar&&!1!==this.options.clip&&(t=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2}):this.clipCircle=function(t,e,n,r,i){let s=Vr(),a=t.createElement("clipPath").attr({id:s}).add(t.defs),o=i?t.arc(e,n,r,i,0,2*Math.PI).add(a):t.circle(e,n,r).add(a);return o.id=s,o.clipPath=a,o}(n.renderer,t[0],t[1],t[2]/2,t[3]/2),this.group.clip(this.clipCircle),this.setClip=y().noop)})))}}function ri(t){let e=this.chart,n=this.xAxis,r=this.yAxis,i=n.pane&&n.pane.center,s=t.chartX-(i&&i[0]||0)-e.plotLeft,a=t.chartY-(i&&i[1]||0)-e.plotTop,o=e.inverted?{clientX:t.chartX-r.pos,plotY:t.chartY-n.pos}:{clientX:180+-180/Math.PI*Math.atan2(s,a)};return this.searchKDTree(o)}function ii(t,e,n,r){let i=r.tickInterval,s=r.tickPositions,a=Hr(s,t=>t>=n),o=Hr([...s].reverse(),t=>t<=e);return zr(a)||(a=s[s.length-1]),zr(o)||(o=s[0],a+=i,t[0][0]="L",t.unshift(t[t.length-3])),(t=t.slice(s.indexOf(o),s.indexOf(a)+1))[0][0]="M",t}function si(t,e){return Hr(this.pane||[],t=>t.options.id===e)||t.call(this,e)}function ai(t,e,n,r,i,s){let a,o,l,c=this.chart,u=Ur(r.inside,!!this.options.stacking);if(c.polar){if(a=e.rectPlotX/Math.PI*180,c.inverted)this.forceDL=c.isInsidePlot(e.plotX,e.plotY),u&&e.shapeArgs?(o=e.shapeArgs,i=Wr(i,{x:(l=this.yAxis.postTranslate(((o.start||0)+(o.end||0))/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-c.plotLeft,y:l.y-c.plotTop})):e.tooltipPos&&(i=Wr(i,{x:e.tooltipPos[0],y:e.tooltipPos[1]})),r.align=Ur(r.align,"center"),r.verticalAlign=Ur(r.verticalAlign,"middle");else{var h;let t,e;null===(h=r).align&&(t=a>20&&a<160?"left":a>200&&a<340?"right":"center",h.align=t),null===h.verticalAlign&&(e=a<45||a>315?"bottom":a>135&&a<225?"top":"middle",h.verticalAlign=e),r=h}k().prototype.alignDataLabel.call(this,e,n,r,i,s),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end?n.hide():n.show()}else t.call(this,e,n,r,i,s)}function oi(){let t,e,n,r,i,s,a,o,l,c,u,h,d,p=this.options,f=p.stacking,g=this.chart,m=this.xAxis,b=this.yAxis,v=b.reversed,x=b.center,w=m.startAngleRad,k=m.endAngleRad-w,A=p.threshold,S=0,C=0,E=0;if(m.isRadial)for(n=(t=this.points).length,r=b.translate(b.min),i=b.translate(b.max),A=p.threshold||0,g.inverted&&qr(A)&&zr(S=b.translate(A))&&(S<0?S=0:S>k&&(S=k),this.translatedThreshold=S+w);n--;){if(u=(e=t[n]).barX,a=e.x,o=e.y,e.shapeType="arc",g.inverted){e.plotY=b.translate(o),f&&b.stacking?(c=b.stacking.stacks[(o<0?"-":"")+this.stackKey],this.visible&&c&&c[a]&&!e.isNull&&(l=c[a].points[this.getStackIndicator(void 0,a,this.index).key],C=b.translate(l[0]),E=b.translate(l[1]),zr(C)&&(C=y().clamp(C,0,k)))):(C=S,E=e.plotY),C>E&&(E=[C,C=E][0]),v?E>r?E=r:C<i?C=i:(C>r||E<i)&&(C=E=k):C<r?C=r:E>i?E=i:(E<r||C>i)&&(C=E=0),b.min>b.max&&(C=E=v?k:0),C+=w,E+=w,x&&(e.barX=u+=x[3]/2),h=Math.max(u,0),d=Math.max(u+e.pointWidth,0);let t=p.borderRadius,n=Yr(("object"==typeof t?t.radius:t)||0,d-h);e.shapeArgs={x:x[0],y:x[1],r:d,innerR:h,start:C,end:E,borderRadius:n},e.opacity=C===E?0:void 0,e.plotY=(zr(this.translatedThreshold)&&(C<this.translatedThreshold?C:E))-w}else C=u+w,e.shapeArgs=this.polar.arc(e.yBottom,e.plotY,C,C+e.pointWidth),e.shapeArgs.borderRadius=0;this.polar.toXY(e),g.inverted?(s=b.postTranslate(e.rectPlotY,u+e.pointWidth/2),e.tooltipPos=[s.x-g.plotLeft,s.y-g.plotTop]):e.tooltipPos=[e.plotX,e.plotY],x&&(e.ttBelow=e.plotY>x[1])}}function li(t,e){let n,r,i=this;if(this.chart.polar){e=e||this.points;for(let t=0;t<e.length;t++)if(!e[t].isNull){n=t;break}!1!==this.options.connectEnds&&void 0!==n&&(this.connectEnds=!0,e.splice(e.length,0,e[n]),r=!0),e.forEach(t=>{void 0===t.polarPlotY&&i.polar.toXY(t)})}let s=t.apply(this,[].slice.call(arguments,1));return r&&e.pop(),s}function ci(t,e){let n=this.chart,r={xAxis:[],yAxis:[]};return n.polar?n.axes.forEach(t=>{if("colorAxis"===t.coll)return;let i=t.isXAxis,s=t.center,a=e.chartX-s[0]-n.plotLeft,o=e.chartY-s[1]-n.plotTop;r[i?"xAxis":"yAxis"].push({axis:t,value:t.translate(i?Math.PI-Math.atan2(a,o):Math.sqrt(Math.pow(a,2)+Math.pow(o,2)),!0)})}):r=t.call(this,e),r}function ui(t,e){this.chart.polar||t.call(this,e)}function hi(t,e){let n,r,i,s,a,o,l=this,c=this.chart,u=this.group,h=this.markerGroup,d=this.xAxis&&this.xAxis.center,p=c.plotLeft,f=c.plotTop,g=this.options.animation;c.polar?l.isRadialBar?e||(l.startAngleRad=Ur(l.translatedThreshold,l.xAxis.startAngleRad),y().seriesTypes.pie.prototype.animate.call(l,e)):(g=Nr(g),l.is("column")?e||(r=d[3]/2,l.points.forEach(t=>{i=t.graphic,a=(s=t.shapeArgs)&&s.r,o=s&&s.innerR,i&&s&&(i.attr({r:r,innerR:r}),i.animate({r:a,innerR:o},l.options.animation))})):e?(n={translateX:d[0]+p,translateY:d[1]+f,scaleX:.001,scaleY:.001},u.attr(n),h&&h.attr(n)):(n={translateX:p,translateY:f,scaleX:1,scaleY:1},u.animate(n,g),h&&h.animate(n,g))):t.call(this,e)}function di(t,e,n,r){let i,s;if(this.chart.polar)if(r){let t=(s=function t(e,n,r,i){let s,a,o,l,c,u,h=i?1:0,d=(s=n>=0&&n<=e.length-1?n:n<0?e.length-1+n:0)-1<0?e.length-(1+h):s-1,p=s+1>e.length-1?h:s+1,f=e[d],g=e[p],m=f.plotX,b=f.plotY,y=g.plotX,v=g.plotY,x=e[s].plotX,w=e[s].plotY;a=(1.5*x+m)/2.5,o=(1.5*w+b)/2.5,l=(1.5*x+y)/2.5,c=(1.5*w+v)/2.5;let k=Math.sqrt(Math.pow(a-x,2)+Math.pow(o-w,2)),A=Math.sqrt(Math.pow(l-x,2)+Math.pow(c-w,2)),S=Math.atan2(o-w,a-x);u=Math.PI/2+(S+Math.atan2(c-w,l-x))/2,Math.abs(S-u)>Math.PI/2&&(u-=Math.PI),a=x+Math.cos(u)*k,o=w+Math.sin(u)*k;let C={rightContX:l=x+Math.cos(Math.PI+u)*A,rightContY:c=w+Math.sin(Math.PI+u)*A,leftContX:a,leftContY:o,plotX:x,plotY:w};return r&&(C.prevPointCont=t(e,d,!1,i)),C}(e,r,!0,this.connectEnds)).prevPointCont&&s.prevPointCont.rightContX,n=s.prevPointCont&&s.prevPointCont.rightContY;i=["C",qr(t)?t:s.plotX,qr(n)?n:s.plotY,qr(s.leftContX)?s.leftContX:s.plotX,qr(s.leftContY)?s.leftContY:s.plotY,s.plotX,s.plotY]}else i=["M",n.plotX,n.plotY];else i=t.call(this,e,n,r);return i}function pi(t,e,n=this.plotY){if(!this.destroyed){let{plotX:r,series:i}=this,{chart:s}=i;return s.polar&&qr(r)&&qr(n)?[r+(e?s.plotLeft:0),n+(e?s.plotTop:0)]:t.call(this,e,n)}}class fi{static compose(t,e,n,r,i,s,a,o,l,c){if(q.compose(e,n),Dr.compose(t,i),Xr(Br,"Polar")){let t=e.prototype,i=s.prototype,u=n.prototype,h=r.prototype;if(Fr(e,"afterDrawChartBox",$r),Fr(e,"createAxes",Jr),Fr(e,"init",Zr),Kr(t,"get",si),Kr(u,"getCoordinates",ci),Kr(u,"pinch",ui),Fr(n,"getSelectionMarkerAttrs",ti),Fr(n,"getSelectionBox",Qr),Fr(r,"afterInit",ei),Fr(r,"afterTranslate",ni,{order:2}),Fr(r,"afterColumnTranslate",oi,{order:4}),Kr(h,"animate",hi),Kr(i,"pos",pi),o){let t=o.prototype;Kr(t,"alignDataLabel",ai),Kr(t,"animate",hi)}if(l&&Kr(l.prototype,"getGraphPath",li),c){let t=c.prototype;Kr(t,"getPointSpline",di),a&&(a.prototype.getPointSpline=t.getPointSpline)}}}constructor(t){this.series=t}arc(t,e,n,r){let i=this.series,s=i.xAxis.center,a=i.yAxis.len,o=s[3]/2,l=a-e+o,c=a-Ur(t,a)+o;return i.yAxis.reversed&&(l<0&&(l=o),c<0&&(c=o)),{x:s[0],y:s[1],r:l,innerR:c,start:n,end:r}}toXY(t){let e,n=this.series,r=n.chart,i=n.xAxis,s=n.yAxis,a=t.plotX,o=r.inverted,l=t.y,c=t.plotY,u=o?a:s.len-c;if(o&&n&&!n.isRadialBar&&(t.plotY=c=qr(l)?s.translate(l):0),t.rectPlotX=a,t.rectPlotY=c,s.center&&(u+=s.center[3]/2),qr(c)){let e=o?s.postTranslate(c,u):i.postTranslate(a,u);t.plotX=t.polarPlotX=e.x-r.plotLeft,t.plotY=t.polarPlotY=e.y-r.plotTop}n.kdByAngle?((e=(a/Math.PI*180+i.pane.options.startAngle)%360)<0&&(e+=360),t.clientX=e):t.clientX=t.plotX}}var gi=g(184),mi=g.n(gi);let{composed:bi}=y(),{addEvent:yi,objectEach:vi,pushUnique:xi}=y();!function(t){function e(){let t=this.waterfall.stacks;t&&(t.changed=!1,delete t.alreadyChanged)}function n(){let t=this.options.stackLabels;t&&t.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function r(){this.waterfall||(this.waterfall=new s(this))}function i(){let t=this.axes;for(let e of this.series)if(e.options.stacking){for(let e of t)e.isXAxis||(e.waterfall.stacks.changed=!0);break}}t.compose=function(t,s){xi(bi,"Axis.Waterfall")&&(yi(t,"init",r),yi(t,"afterBuildStacks",e),yi(t,"afterRender",n),yi(s,"beforeRedraw",i))};class s{constructor(t){this.axis=t,this.stacks={changed:!1}}renderStackTotals(){let t=this.axis,e=t.waterfall.stacks,n=t.stacking&&t.stacking.stackTotalGroup,r=new(mi())(t,t.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=r,n&&vi(e,t=>{vi(t,(t,e)=>{r.total=t.stackTotal,r.x=+e,t.label&&(r.label=t.label),mi().prototype.render.call(r,n),t.label=r.label,delete r.label})}),r.total=null}}t.Composition=s}(d||(d={}));let wi=d,{isNumber:ki}=y();class Ai extends ht().prototype.pointClass{getClassName(){let t=Vt().prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t}isValid(){return ki(this.y)||this.isSum||!!this.isIntermediateSum}}let{column:Si,line:Ci}=x().seriesTypes,{addEvent:Ei,arrayMax:Mi,arrayMin:Ti,correctFloat:Pi,crisp:Oi,extend:Li,isNumber:ji,merge:_i,objectEach:Ii,pick:Ri}=y();function Di(t,e){return Object.hasOwnProperty.call(t,e)}class Ni extends Si{generatePoints(){Si.prototype.generatePoints.apply(this);let t=this.getColumn("y",!0);for(let e=0,n=this.points.length;e<n;e++){let n=this.points[e],r=t[e];ji(r)&&(n.isIntermediateSum||n.isSum)&&(n.y=Pi(r))}}processData(t){let e,n,r,i,s,a,o=this.options,l=this.getColumn("y"),c=o.data,u=l.length,h=o.threshold||0;r=n=i=s=0;for(let t=0;t<u;t++)a=l[t],e=c?.[t]||{},"sum"===a||e.isSum?l[t]=Pi(r):"intermediateSum"===a||e.isIntermediateSum?(l[t]=Pi(n),n=0):(r+=a,n+=a),i=Math.min(r,i),s=Math.max(r,s);super.processData.call(this,t),o.stacking||(this.dataMin=i+h,this.dataMax=s)}toYData(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y}pointAttribs(t,e){let n=this.options.upColor;n&&!t.options.color&&ji(t.y)&&(t.color=t.y>0?n:void 0);let r=Si.prototype.pointAttribs.call(this,t,e);return delete r.dashstyle,r}getGraphPath(){return[["M",0,0]]}getCrispPath(){let t=this.data.filter(t=>ji(t.y)),e=this.yAxis,n=t.length,r=this.graph?.strokeWidth()||0,i=this.xAxis.reversed,s=this.yAxis.reversed,a=this.options.stacking,o=[];for(let l=1;l<n;l++){if(!this.options.connectNulls&&!ji(this.data[t[l].index-1].y))continue;let n=t[l].box,c=t[l-1],u=c.y||0,h=t[l-1].box;if(!n||!h)continue;let d=e.waterfall.stacks[this.stackKey],p=u>0?-h.height:0;if(d&&h&&n){let t,u=d[l-1];if(a){let n=u.connectorThreshold;t=Oi(e.translate(n,!1,!0,!1,!0)+(s?p:0),r)}else t=Oi(h.y+(c.minPointLengthOffset||0),r);o.push(["M",(h.x||0)+(i?0:h.width||0),t],["L",(n.x||0)+(i&&n.width||0),t])}if(h&&o.length&&(!a&&u<0&&!s||u>0&&s)){let t=o[o.length-2];t&&"number"==typeof t[2]&&(t[2]+=h.height||0);let e=o[o.length-1];e&&"number"==typeof e[2]&&(e[2]+=h.height||0)}}return o}drawGraph(){Ci.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(t){let e,n,r,i,s,a,o,l,c,u=this.options,h=t.waterfall?.stacks,d=u.threshold||0,p=this.stackKey,f=this.getColumn("x"),g=this.getColumn("y"),m=f.length,b=d,y=b,v=0,x=0,w=0,k=(t,r,i,s)=>{if(e){if(n)for(;i<n;i++)e.stackState[i]+=s;else e.stackState[0]=t,n=e.stackState.length;e.stackState.push(e.stackState[n-1]+r)}};if(t.stacking&&h&&this.reserveSpace()){c=h.changed,(l=h.alreadyChanged)&&0>l.indexOf(p)&&(c=!0),h[p]||(h[p]={});let t=h[p];if(t)for(let l=0;l<m;l++)(!t[o=f[l]]||c)&&(t[o]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:c&&t[o]?t[o].label:void 0}),e=t[o],(a=g[l])>=0?e.posTotal+=a:e.negTotal+=a,s=u.data[l],r=e.absolutePos=e.posTotal,i=e.absoluteNeg=e.negTotal,e.stackTotal=r+i,n=e.stackState.length,s&&s.isIntermediateSum?(k(w,x,0,w),w=x,x=d,b^=y,y^=b,b^=y):s&&s.isSum?(k(d,v,n,0),b=d):(k(b,a,0,v),s&&(v+=a,x+=a)),e.stateIndex++,e.threshold=b,b+=e.stackTotal;h.changed=!1,h.alreadyChanged||(h.alreadyChanged=[]),h.alreadyChanged.push(p)}}getExtremes(){let t,e,n,r=this.options.stacking;return r?(t=this.yAxis.waterfall.stacks,e=this.stackedYNeg=[],n=this.stackedYPos=[],Ii(t[this.stackKey],"overlap"===r?function(t){e.push(Ti(t.stackState)),n.push(Mi(t.stackState))}:function(t){e.push(t.negTotal+t.threshold),n.push(t.posTotal+t.threshold)}),{dataMin:Ti(e),dataMax:Mi(n)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}Ni.defaultOptions=_i(Si.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),Ni.compose=wi.compose,Li(Ni.prototype,{pointValKey:"y",showLine:!0,pointClass:Ai}),Ei(Ni,"afterColumnTranslate",function(){let t,e,n,r,{options:i,points:s,yAxis:a}=this,o=Ri(i.minPointLength,5),l=o/2,c=i.threshold||0,u=i.stacking,h=a.waterfall.stacks[this.stackKey],d=this.getColumn("y",!0),p=c,f=c;for(let i=0;i<s.length;i++){let g=s[i],m=d[i],b=Li({x:0,y:0,width:0,height:0},g.shapeArgs||{});g.box=b;let y=[0,m],v=g.y||0;if(u){if(h){let s=h[i];"overlap"===u?(e=s.stackState[s.stateIndex--],t=v>=0?e:e-v,Di(s,"absolutePos")&&delete s.absolutePos,Di(s,"absoluteNeg")&&delete s.absoluteNeg):(v>=0?(e=s.threshold+s.posTotal,s.posTotal-=v,t=e):(e=s.threshold+s.negTotal,s.negTotal-=v,t=e-v),!s.posTotal&&ji(s.absolutePos)&&Di(s,"absolutePos")&&(s.posTotal=s.absolutePos,delete s.absolutePos),!s.negTotal&&ji(s.absoluteNeg)&&Di(s,"absoluteNeg")&&(s.negTotal=s.absoluteNeg,delete s.absoluteNeg)),g.isSum||(s.connectorThreshold=s.threshold+s.stackTotal),a.reversed?(n=v>=0?t-v:t+v,r=t):(n=t,r=t-v),g.below=n<=c,b.y=a.translate(n,!1,!0,!1,!0),b.height=Math.abs(b.y-a.translate(r,!1,!0,!1,!0));let o=a.waterfall.dummyStackItem;o&&(o.x=i,o.label=h[i].label,o.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[i],this.stackedYPos[i],void 0,this.xAxis))}}else t=Math.max(f,f+v)+y[0],b.y=a.translate(t,!1,!0,!1,!0),g.isSum?(b.y=a.translate(y[1],!1,!0,!1,!0),b.height=Math.min(a.translate(y[0],!1,!0,!1,!0),a.len)-b.y,g.below=y[1]<=c):g.isIntermediateSum?(v>=0?(n=y[1]+p,r=p):(n=p,r=y[1]+p),a.reversed&&(n^=r,r^=n,n^=r),b.y=a.translate(n,!1,!0,!1,!0),b.height=Math.abs(b.y-Math.min(a.translate(r,!1,!0,!1,!0),a.len)),p+=y[1],g.below=n<=c):(b.height=m>0?a.translate(f,!1,!0,!1,!0)-b.y:a.translate(f,!1,!0,!1,!0)-a.translate(f-m,!1,!0,!1,!0),f+=m,g.below=f<c),b.height<0&&(b.y+=b.height,b.height*=-1);g.plotY=b.y,g.yBottom=b.y+b.height,b.height<=o&&!g.isNull?(b.height=o,b.y-=l,g.yBottom=b.y+b.height,g.plotY=b.y,g.minPointLengthOffset=v<0?-l:l):(g.isNull&&(b.width=0),g.minPointLengthOffset=0);let x=g.plotY+(g.negative?b.height:0);g.below&&(g.plotY+=b.height),g.tooltipPos&&(this.chart.inverted?g.tooltipPos[0]=a.len-x:g.tooltipPos[1]=x),g.isInside=this.isPointInside(g);let w=Oi(g.yBottom,this.borderWidth);b.y=Oi(b.y,this.borderWidth),b.height=w-b.y,_i(!0,g.shapeArgs,b)}},{order:2}),x().registerSeriesType("waterfall",Ni);let Bi=y();Bi.RadialAxis=Dr,ge.compose(Bi.Axis,Bi.Chart,Bi.Legend),pr.compose(Bi.Axis,Bi.Chart,Bi.Legend),q.compose(Bi.Chart,Bi.Pointer),fi.compose(Bi.Axis,Bi.Chart,Bi.Pointer,Bi.Series,Bi.Tick,Bi.Point,x().seriesTypes.areasplinerange,x().seriesTypes.column,x().seriesTypes.line,x().seriesTypes.spline),Ni.compose(Bi.Axis,Bi.Chart);let Fi=Bi;return m.default})(),"object"==typeof n&&"object"==typeof e?e.exports=i(r._Highcharts,r._Highcharts.SeriesRegistry,r._Highcharts.Series,r._Highcharts.Series.types.column,r._Highcharts.Color,r._Highcharts.Templating,r._Highcharts.Point,r._Highcharts.Chart,r._Highcharts.SVGElement,r._Highcharts.StackItem):"function"==typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts/highcharts"],function(t){return i(t,t.SeriesRegistry,t.Series,t.Series,["types"],["column"],t.Color,t.Templating,t.Point,t.Chart,t.SVGElement,t.StackItem)}):"object"==typeof n?n["highcharts/highcharts-more"]=i(r._Highcharts,r._Highcharts.SeriesRegistry,r._Highcharts.Series,r._Highcharts.Series.types.column,r._Highcharts.Color,r._Highcharts.Templating,r._Highcharts.Point,r._Highcharts.Chart,r._Highcharts.SVGElement,r._Highcharts.StackItem):r.Highcharts=i(r.Highcharts,r.Highcharts.SeriesRegistry,r.Highcharts.Series,r.Highcharts.Series.types.column,r.Highcharts.Color,r.Highcharts.Templating,r.Highcharts.Point,r.Highcharts.Chart,r.Highcharts.SVGElement,r.Highcharts.StackItem)},{}],828:[function(t,e,n){var r,i;r="undefined"==typeof window?this:window,i=()=>(()=>{"use strict";let t,e;var n,r,i,s,a,o,l,c,u,h,d,p,f,g,m,b,y,v={d:(t,e)=>{for(var n in e)v.o(e,n)&&!v.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},x={};v.d(x,{default:()=>th}),function(t){t.SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="12.1.2",t.win="undefined"!=typeof window?window:{},t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.pageLang=t.doc?.documentElement?.closest("[lang]")?.lang,t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"",t.isChrome=t.win.chrome,t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){let e=!1;if(!t.isMS){let n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return e}(),t.charts=[],t.composed=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(n||(n={}));let w=n,{charts:k,doc:A,win:S}=w;function C(t,e,n,r){let i=e?"Highcharts error":"Highcharts warning";32===t&&(t=`${i}: Deprecated member`);let s=j(t),a=s?`${i} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(void 0!==r){let t="";s&&(a+="?"),q(r,function(e,n){t+=`\n - ${n}: ${e}`,s&&(a+=encodeURI(n)+"="+encodeURI(e))}),a+=t}U(w,"displayError",{chart:n,code:t,message:a,params:r},function(){if(e)throw Error(a);S.console&&C.messages.indexOf(a)}),C.messages.push(a)}function E(t,e){return parseInt(t,e||10)}function M(t){return"string"==typeof t}function T(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function P(t,e){return!(!t||"object"!=typeof t||e&&T(t))}function O(t){return P(t)&&"number"==typeof t.nodeType}function L(t){let e=t&&t.constructor;return!(!P(t,!0)||O(t)||!e||!e.name||"Object"===e.name)}function j(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function _(t){return null!=t}function I(t,e,n){let r,i=M(e)&&!_(n),s=(e,n)=>{_(e)?t.setAttribute(n,e):i?(r=t.getAttribute(n))||"class"!==n||(r=t.getAttribute(n+"Name")):t.removeAttribute(n)};return M(e)?s(n,e):q(e,s),r}function R(t){return T(t)?t:[t]}function D(t,e){let n;for(n in t||(t={}),e)t[n]=e[n];return t}function N(){let t=arguments,e=t.length;for(let n=0;n<e;n++){let e=t[n];if(null!=e)return e}}function B(t,e){D(t.style,e)}function F(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function z(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}(C||(C={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};let H=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let n,r=t.length;for(n=0;n<r;n++)if(e(t[n],n))return t[n]};function q(t,e,n){for(let r in t)Object.hasOwnProperty.call(t,r)&&e.call(n||t[r],t[r],r,t)}function W(t,e,n){function r(e,n){let r=t.removeEventListener;r&&r.call(t,e,n,!1)}function i(n){let i,s;t.nodeName&&(e?(i={})[e]=!0:i=n,q(i,function(t,e){if(n[e])for(s=n[e].length;s--;)r(e,n[e][s].fn)}))}let s="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(s,"hcEvents")){let t=s.hcEvents;if(e){let s=t[e]||[];n?(t[e]=s.filter(function(t){return n!==t.fn}),r(e,n)):(i(t),t[e]=[])}else i(t),delete s.hcEvents}}function U(t,e,n,r){if(n=n||{},A.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==w)){let r=A.createEvent("Events");r.initEvent(e,!0,!0),n=D(r,n),t.dispatchEvent?t.dispatchEvent(n):t.fireEvent(e,n)}else if(t.hcEvents){n.target||D(n,{preventDefault:function(){n.defaultPrevented=!0},target:t,type:e});let r=[],i=t,s=!1;for(;i.hcEvents;)Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents[e]&&(r.length&&(s=!0),r.unshift.apply(r,i.hcEvents[e])),i=Object.getPrototypeOf(i);s&&r.sort((t,e)=>t.order-e.order),r.forEach(e=>{!1===e.fn.call(t,n)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(t,n)}let X=function(){let e=Math.random().toString(36).substring(2,9)+"-",n=0;return function(){return"highcharts-"+(t?"":e)+n++}}();S.jQuery&&(S.jQuery.fn.highcharts=function(){let t=[].slice.call(arguments);if(this[0])return t[0]?(new(w[M(t[0])?t.shift():"Chart"])(this[0],t[0],t[1]),this):k[I(this[0],"data-highcharts-chart")]});let Y={addEvent:function(t,e,n,r={}){let i="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(i,"hcEvents")||(i.hcEvents={});let s=i.hcEvents;w.Point&&t instanceof w.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let a=t.addEventListener;a&&a.call(t,e,n,!!w.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==e.indexOf("touch"):r.passive,capture:!1}),s[e]||(s[e]=[]);let o={fn:n,order:"number"==typeof r.order?r.order:1/0};return s[e].push(o),s[e].sort((t,e)=>t.order-e.order),function(){W(t,e,n)}},arrayMax:function(t){let e=t.length,n=t[0];for(;e--;)t[e]>n&&(n=t[e]);return n},arrayMin:function(t){let e=t.length,n=t[0];for(;e--;)t[e]<n&&(n=t[e]);return n},attr:I,clamp:function(t,e,n){return t>e?t<n?t:n:e},clearTimeout:function(t){_(t)&&clearTimeout(t)},correctFloat:z,createElement:function(t,e,n,r,i){let s=A.createElement(t);return e&&D(s,e),i&&B(s,{padding:"0",border:"none",margin:"0"}),n&&B(s,n),r&&r.appendChild(s),s},crisp:function(t,e=0,n){let r=e%2/2,i=n?-1:1;return(Math.round(t*i-r)+r)*i},css:B,defined:_,destroyObjectProperties:function(t,e,n){q(t,function(r,i){r!==e&&r?.destroy&&r.destroy(),(r?.destroy||!n)&&delete t[i]})},diffObjects:function(t,e,n,r){let i={};return function t(e,i,s,a){let o=n?i:e;q(e,function(n,l){if(!a&&r&&r.indexOf(l)>-1&&i[l]){n=R(n),s[l]=[];for(let e=0;e<Math.max(n.length,i[l].length);e++)i[l][e]&&(void 0===n[e]?s[l][e]=i[l][e]:(s[l][e]={},t(n[e],i[l][e],s[l][e],a+1)))}else P(n,!0)&&!n.nodeType?(s[l]=T(n)?[]:{},t(n,i[l]||{},s[l],a+1),0!==Object.keys(s[l]).length||"colorAxis"===l&&0===a||delete s[l]):(e[l]!==i[l]||l in e&&!(l in i))&&"__proto__"!==l&&"constructor"!==l&&(s[l]=o[l])})}(t,e,i,0),i},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){let n=t.length;for(;n--;)if(t[n]===e){t.splice(n,1);break}},error:C,extend:D,extendClass:function(t,e){let n=function(){};return D(n.prototype=new t,e),n},find:H,fireEvent:U,getAlignFactor:(t="")=>({center:.5,right:1,middle:.5,bottom:1}[t]||0),getClosestDistance:function(t,e){let n,r,i,s,a=!e;return t.forEach(t=>{if(t.length>1)for(s=r=t.length-1;s>0;s--)(i=t[s]-t[s-1])<0&&!a?(e?.(),e=void 0):i&&(void 0===n||i<n)&&(n=i)}),n},getMagnitude:F,getNestedProperty:function(t,e){let n=t.split(".");for(;n.length&&_(e);){let t=n.shift();if(void 0===t||"__proto__"===t)return;if("this"===t){let t;return P(e)&&(t=e["@this"]),t??e}let r=e[t.replace(/[\\'"]/g,"")];if(!_(r)||"function"==typeof r||"number"==typeof r.nodeType||r===S)return;e=r}return e},getStyle:function t(e,n,r){let i;if("width"===n){let n=Math.min(e.offsetWidth,e.scrollWidth),r=e.getBoundingClientRect&&e.getBoundingClientRect().width;return r<n&&r>=n-1&&(n=Math.floor(r)),Math.max(0,n-(t(e,"padding-left",!0)||0)-(t(e,"padding-right",!0)||0))}if("height"===n)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(t(e,"padding-top",!0)||0)-(t(e,"padding-bottom",!0)||0));let s=S.getComputedStyle(e,void 0);return s&&(i=s.getPropertyValue(n),N(r,"opacity"!==n)&&(i=E(i))),i},insertItem:function(t,e){let n,r=t.options.index,i=e.length;for(n=t.options.isInternal?i:0;n<i+1;n++)if(!e[n]||j(r)&&r<N(e[n].options.index,e[n]._i)||e[n].options.isInternal){e.splice(n,0,t);break}return n},isArray:T,isClass:L,isDOMElement:O,isFunction:function(t){return"function"==typeof t},isNumber:j,isObject:P,isString:M,merge:function(t,...e){let n,r=[t,...e],i={},s=function(t,e){return"object"!=typeof t&&(t={}),q(e,function(n,r){"__proto__"!==r&&"constructor"!==r&&(!P(n,!0)||L(n)||O(n)?t[r]=e[r]:t[r]=s(t[r]||{},n))}),t};!0===t&&(i=r[1],r=Array.prototype.slice.call(r,2));let a=r.length;for(n=0;n<a;n++)i=s(i,r[n]);return i},normalizeTickInterval:function(t,e,n,r,i){let s,a=t,o=t/(n=N(n,F(t)));for(!e&&(e=i?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?e=e.filter(function(t){return t%1==0}):n<=.1&&(e=[1/n]))),s=0;s<e.length&&(a=e[s],(!i||!(a*n>=t))&&(i||!(o<=(e[s]+(e[s+1]||e[s]))/2)));s++);return z(a*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:q,offset:function(t){let e=A.documentElement,n=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:n.width,height:n.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:N,pInt:E,pushUnique:function(t,e){return 0>t.indexOf(e)&&!!t.push(e)},relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:W,replaceNested:function(t,...e){let n,r;do{for(r of(n=t,e))t=t.replace(r[0],r[1])}while(t!==n);return t},splat:R,stableSort:function(t,e){let n,r,i=t.length;for(r=0;r<i;r++)t[r].safeI=r;for(t.sort(function(t,r){return 0===(n=e(t,r))?t.safeI-r.safeI:n}),r=0;r<i;r++)delete t[r].safeI},syncTimeout:function(t,e,n){return e>0?setTimeout(t,e,n):(t.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(t){return M(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)},uniqueKey:X,useSerialIds:function(e){return t=N(e,t)},wrap:function(t,e,n){let r=t[e];t[e]=function(){let t=arguments,e=this;return n.apply(this,[function(){return r.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},{pageLang:G,win:V}=w,{defined:K,error:$,extend:Z,isNumber:J,isObject:Q,isString:tt,merge:et,objectEach:nt,pad:rt,splat:it,timeUnits:st,ucfirst:at}=Y,ot=w.isSafari&&V.Intl&&!V.Intl.DateTimeFormat.prototype.formatRange,lt=t=>["D","L","M","X","J","V","S"].indexOf(t),ct=class{constructor(t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=V.Date,this.update(t)}update(t={}){this.dTLCache={},this.options=t=et(!0,this.options,t);let{timezoneOffset:e,useUTC:n}=t;this.Date=t.Date||V.Date||Date;let r=t.timezone;K(n)&&(r=n?"UTC":void 0),e&&e%60==0&&(r="Etc/GMT"+(e>0?"+":"")+e/60),this.variableTimezone="UTC"!==r&&0!==r?.indexOf("Etc/GMT"),this.timezone=r,["months","shortMonths","weekdays","shortWeekdays"].forEach(t=>{let e=/months/i.test(t),n=/short/.test(t),r={timeZone:"UTC"};r[e?"month":"weekday"]=n?"short":"long",this[t]=(e?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(t=>this.dateFormat(r,24*(e?31:1)*36e5*t))})}toParts(t){let[e,n,r,i,s,a,o]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, |\/|:)/g);return[i,+r-1,n,s,a,o,Math.floor(Number(t)||0)%1e3,lt(e)].map(Number)}dateTimeFormat(t,e,n=this.options.locale||G){let r=JSON.stringify(t)+n;tt(t)&&(t=this.str2dtf(t));let i=this.dTLCache[r];if(!i){t.timeZone??(t.timeZone=this.timezone);try{i=new Intl.DateTimeFormat(n,t)}catch(e){/Invalid time zone/i.test(e.message)?($(34),t.timeZone="UTC",i=new Intl.DateTimeFormat(n,t)):$(e.message,!1)}}return this.dTLCache[r]=i,i?.format(e)||""}str2dtf(t,e={}){let n={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(n).forEach(r=>{-1!==t.indexOf(r)&&Z(e,n[r])}),e}makeTime(t,e,n=1,r=0,i,s,a){let o=this.Date.UTC(t,e,n,r,i||0,s||0,a||0);if("UTC"!==this.timezone){let t=this.getTimezoneOffset(o);if(o+=t,-1!==[2,3,8,9,10,11].indexOf(e)&&(r<5||r>20)){let e=this.getTimezoneOffset(o);t!==e?o+=e-t:t-36e5!==this.getTimezoneOffset(o-36e5)||ot||(o-=36e5)}}return o}parse(t){if(!tt(t))return t??void 0;let e=(t=t.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(t),n=/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.test(t);e||n||(t+="Z");let r=Date.parse(t);return J(r)?r+(!e||n?this.getTimezoneOffset(r):0):void 0}getTimezoneOffset(t){if("UTC"!==this.timezone){let[e,n,r,i,s=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),a=-36e5*(r+s/60);if(J(a))return a}return 0}dateFormat(t,e,n){let r=w.defaultOptions?.lang;if(!K(e)||isNaN(e))return r?.invalidDate||"";if(tt(t=t??"%Y-%m-%d %H:%M:%S")){let n,r=/%\[([a-zA-Z]+)\]/g;for(;n=r.exec(t);)t=t.replace(n[0],this.dateTimeFormat(n[1],e))}if(tt(t)&&-1!==t.indexOf("%")){let n=this,[i,s,a,o,l,c,u,h]=this.toParts(e),d=r?.weekdays||this.weekdays,p=r?.shortWeekdays||this.shortWeekdays,f=r?.months||this.months,g=r?.shortMonths||this.shortMonths;nt(Z({a:p?p[h]:d[h].substr(0,3),A:d[h],d:rt(a),e:rt(a,2," "),w:h,b:g[s],B:f[s],m:rt(s+1),o:s+1,y:i.toString().substr(2,2),Y:i,H:rt(o),k:o,I:rt(o%12||12),l:o%12||12,M:rt(l),p:o<12?"AM":"PM",P:o<12?"am":"pm",S:rt(c),L:rt(u,3)},w.dateFormats),function(r,i){if(tt(t))for(;-1!==t.indexOf("%"+i);)t=t.replace("%"+i,"function"==typeof r?r.call(n,e):r)})}else if(Q(t)){let n=(this.getTimezoneOffset(e)||0)/36e5,r=this.timezone||"Etc/GMT"+(n>=0?"+":"")+n,{prefix:i="",suffix:s=""}=t;t=i+this.dateTimeFormat(Z({timeZone:r},t),e)+s}return n?at(t):t}resolveDTLFormat(t){return Q(t,!0)?Q(t,!0)&&(t=>void 0===t.main)(t)?{main:t}:t:{main:(t=it(t))[0],from:t[1],to:t[2]}}getTimeTicks(t,e,n,r){let i,s=this,a=[],o={},{count:l=1,unitRange:c}=t,[u,h,d,p,f,g]=s.toParts(e),m=(e||0)%1e3;if(r??(r=1),K(e)){if(m=c>=st.second?0:l*Math.floor(m/l),c>=st.second&&(g=c>=st.minute?0:l*Math.floor(g/l)),c>=st.minute&&(f=c>=st.hour?0:l*Math.floor(f/l)),c>=st.hour&&(p=c>=st.day?0:l*Math.floor(p/l)),c>=st.day&&(d=c>=st.month?1:Math.max(1,l*Math.floor(d/l))),c>=st.month&&(h=c>=st.year?0:l*Math.floor(h/l)),c>=st.year&&(u-=u%l),c===st.week){l&&(e=s.makeTime(u,h,d,p,f,g,m));let t=lt(this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"));d+=-t+r+(t<r?-7:0)}e=s.makeTime(u,h,d,p,f,g,m),s.variableTimezone&&K(n)&&(i=n-e>4*st.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(n));let t=e,b=1;for(;t<n;)a.push(t),c===st.year?t=s.makeTime(u+b*l,0):c===st.month?t=s.makeTime(u,h+b*l):!i||c!==st.day&&c!==st.week?i&&c===st.hour&&l>1?t=s.makeTime(u,h,d,p+b*l):t+=c*l:t=s.makeTime(u,h,d+b*l*(c===st.day?1:7)),b++;a.push(t),c<=st.hour&&a.length<1e4&&a.forEach(t=>{t%18e5==0&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(o[t]="day")})}return a.info=Z(t,{higherRanks:o,totalRange:c*l}),a}getDateFormat(t,e,n,r){let i=this.dateFormat("%m-%d %H:%M:%S.%L",e),s="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},o="millisecond",l=o;for(o in st){if(t===st.week&&+this.dateFormat("%w",e)===n&&i.substr(6)===s.substr(6)){o="week";break}if(st[o]>t){o=l;break}if(a[o]&&i.substr(a[o])!==s.substr(a[o]))break;"week"!==o&&(l=o)}return this.resolveDTLFormat(r[o]).main}},{isTouchDevice:ut}=w,{fireEvent:ht,merge:dt}=Y,pt={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{locale:void 0,loading:"Loading...",months:void 0,shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:t=>Math.sqrt(1-Math.pow(t-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"Week from %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:ut?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},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:"0.6em"},text:"Highcharts.com"}},ft=new ct(pt.time),gt={defaultOptions:pt,defaultTime:ft,getOptions:function(){return pt},setOptions:function(t){return ht(w,"setOptions",{options:t}),dt(!0,pt,t),t.time&&ft.update(pt.time),t.lang&&"locale"in t.lang&&ft.update({locale:t.lang.locale}),pt}},{isNumber:mt,merge:bt,pInt:yt,defined:vt}=Y;class xt{static parse(t){return t?new xt(t):xt.None}constructor(t){let e,n,r,i;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let s=w.Color;if(s&&s!==xt)return new s(t);if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(t=>new xt(t[1]));else if("string"==typeof t)for(this.input=t=xt.names[t.toLowerCase()]||t,r=xt.parsers.length;r--&&!n;)(e=(i=xt.parsers[r]).regex.exec(t))&&(n=i.parse(e));n&&(this.rgba=n)}get(t){let e=this.input,n=this.rgba;if("object"==typeof e&&void 0!==this.stops){let n=bt(e);return n.stops=[].slice.call(n.stops),this.stops.forEach((e,r)=>{n.stops[r]=[n.stops[r][0],e.get(t)]}),n}return n&&mt(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?`${n[3]}`:"rgba("+n.join(",")+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(mt(t)&&0!==t)for(let n=0;n<3;n++)e[n]+=yt(255*t),e[n]<0&&(e[n]=0),e[n]>255&&(e[n]=255);return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let n=this.rgba,r=t.rgba;if(!mt(n[0])||!mt(r[0]))return t.input||"none";let i=1!==r[3]||1!==n[3],s=(t,r)=>t+(n[r]-t)*(1-e),a=r.slice(0,3).map(s).map(Math.round);return i&&a.push(s(r[3],3)),(i?"rgba(":"rgb(")+a.join(",")+")"}}xt.names={white:"#ffffff",black:"#000000"},xt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[yt(t[1]),yt(t[2]),yt(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[yt(t[1]),yt(t[2]),yt(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[yt(t[1]+t[1],16),yt(t[2]+t[2],16),yt(t[3]+t[3],16),vt(t[4])?yt(t[4]+t[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(t){return[yt(t[1],16),yt(t[2],16),yt(t[3],16),vt(t[4])?yt(t[4],16)/255:1]}}],xt.None=new xt("");let{parse:wt}=xt,{win:kt}=w,{isNumber:At,objectEach:St}=Y;class Ct{constructor(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}dSetter(){let t=this.paths,e=t&&t[0],n=t&&t[1],r=this.now||0,i=[];if(1!==r&&e&&n)if(e.length===n.length&&r<1)for(let t=0;t<n.length;t++){let s=e[t],a=n[t],o=[];for(let t=0;t<a.length;t++){let e=s[t],n=a[t];At(e)&&At(n)&&("A"!==a[0]||4!==t&&5!==t)?o[t]=e+r*(n-e):o[t]=n}i.push(o)}else i=n;else i=this.toD||[];this.elem.attr("d",i,void 0,!0)}update(){let t=this.elem,e=this.prop,n=this.now,r=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,r&&r.call(t,n,this)}run(t,e,n){let r=this,i=r.options,s=function(t){return!s.stopped&&r.step(t)},a=kt.requestAnimationFrame||function(t){setTimeout(t,13)},o=function(){for(let t=0;t<Ct.timers.length;t++)Ct.timers[t]()||Ct.timers.splice(t--,1);Ct.timers.length&&a(o)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=n,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===Ct.timers.push(s)&&a(o)):(delete i.curAnim[this.prop],i.complete&&0===Object.keys(i.curAnim).length&&i.complete.call(this.elem))}step(t){let e,n,r=+new Date,i=this.options,s=this.elem,a=i.complete,o=i.duration,l=i.curAnim;return s.attr&&!s.element?e=!1:t||r>=o+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,n=!0,St(l,function(t){!0!==t&&(n=!1)}),n&&a&&a.call(s),e=!1):(this.pos=i.easing((r-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,n){let r,i,s,a,o=t.startX,l=t.endX,c=n.slice(),u=t.isArea,h=u?2:1,d=e&&n.length>e.length&&n.hasStackedCliffs,p=e&&e.slice();if(!p||d)return[c,c];function f(t,e){for(;t.length<i;){let n=t[0],r=e[i-t.length];if(r&&"M"===n[0]&&("C"===r[0]?t[0]=["C",n[1],n[2],n[1],n[2],n[1],n[2]]:t[0]=["L",n[1],n[2]]),t.unshift(n),u){let e=t.pop();t.push(t[t.length-1],e)}}}function g(t){for(;t.length<i;){let e=t[Math.floor(t.length/h)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),u){let n=t[Math.floor(t.length/h)].slice();t.splice(t.length/2,0,e,n)}else t.push(e)}}if(o&&l&&l.length){for(s=0;s<o.length;s++){if(o[s]===l[0]){r=s;break}if(o[0]===l[l.length-o.length+s]){r=s,a=!0;break}if(o[o.length-1]===l[l.length-o.length+s]){r=o.length-s;break}}void 0===r&&(p=[])}return p.length&&At(r)&&(i=c.length+r*h,a?(f(p,c),g(c)):(f(c,p),g(p))),[p,c]}fillSetter(){Ct.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,wt(this.start).tweenTo(wt(this.end),this.pos),void 0,!0)}}Ct.timers=[];let{defined:Et,getStyle:Mt,isArray:Tt,isNumber:Pt,isObject:Ot,merge:Lt,objectEach:jt,pick:_t}=Y;function It(t){return Ot(t)?Lt({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function Rt(t,e){let n=Ct.timers.length;for(;n--;)Ct.timers[n].elem!==t||e&&e!==Ct.timers[n].prop||(Ct.timers[n].stopped=!0)}let Dt={animate:function(t,e,n){let r,i,s,a,o="";Ot(n)||(a=arguments,n={duration:a[2],easing:a[3],complete:a[4]}),Pt(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=Lt(e),jt(e,function(a,l){Rt(t,l),s=new Ct(t,n,l),i=void 0,"d"===l&&Tt(e.d)?(s.paths=s.initPath(t,t.pathArray,e.d),s.toD=e.d,r=0,i=1):t.attr?r=t.attr(l):(r=parseFloat(Mt(t,l))||0,"opacity"!==l&&(o="px")),i||(i=a),"string"==typeof i&&i.match("px")&&(i=i.replace(/px/g,"")),s.run(r,i,o)})},animObject:It,getDeferredAnimation:function(t,e,n){let r=It(e),i=n?[n]:t.series,s=0,a=0;return i.forEach(t=>{let n=It(t.options.animation);s=Ot(e)&&Et(e.defer)?r.defer:Math.max(s,n.duration+n.defer),a=Math.min(r.duration,n.duration)}),t.renderer.forExport&&(s=0),{defer:Math.max(0,s-a),duration:Math.min(s,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=_t(t,e.options.chart.animation,!0)},stop:Rt},{SVG_NS:Nt,win:Bt}=w,{attr:Ft,createElement:zt,css:Ht,error:qt,isFunction:Wt,isString:Ut,objectEach:Xt,splat:Yt}=Y,{trustedTypes:Gt}=Bt,Vt=Gt&&Wt(Gt.createPolicy)&&Gt.createPolicy("highcharts",{createHTML:t=>t}),Kt=Vt?Vt.createHTML(""):"";class $t{static filterUserAttributes(t){return Xt(t,(e,n)=>{let r=!0;-1===$t.allowedAttributes.indexOf(n)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(r=Ut(e)&&$t.allowedReferences.some(t=>0===e.indexOf(t))),r||(qt(33,!1,void 0,{"Invalid attribute in config":`${n}`}),delete t[n]),Ut(e)&&t[n]&&(t[n]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((t,e)=>{let n=e.split(":").map(t=>t.trim()),r=n.shift();return r&&n.length&&(t[r.replace(/-([a-z])/g,t=>t[1].toUpperCase())]=n.join(":")),t},{})}static setElementHTML(t,e){t.innerHTML=$t.emptyHTML,e&&new $t(e).addToDOM(t)}constructor(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}addToDOM(t){return function t(e,n){let r;return Yt(e).forEach(function(e){let i,s=e.tagName,a=e.textContent?w.doc.createTextNode(e.textContent):void 0,o=$t.bypassHTMLFiltering;if(s)if("#text"===s)i=a;else if(-1!==$t.allowedTags.indexOf(s)||o){let r="svg"===s?Nt:n.namespaceURI||Nt,l=w.doc.createElementNS(r,s),c=e.attributes||{};Xt(e,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(c[e]=t)}),Ft(l,o?c:$t.filterUserAttributes(c)),e.style&&Ht(l,e.style),a&&l.appendChild(a),t(e.children||[],l),i=l}else qt(33,!1,void 0,{"Invalid tagName in config":s});i&&n.appendChild(i),r=i}),r}(this.nodes,t)}parseMarkup(t){let e,n=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=(new DOMParser).parseFromString(Vt?Vt.createHTML(t):t,"text/html")}catch(t){}if(!e){let n=zt("div");n.innerHTML=t,e={body:n}}let r=(t,e)=>{let n=t.nodeName.toLowerCase(),i={tagName:n};"#text"===n&&(i.textContent=t.textContent||"");let s=t.attributes;if(s){let t={};[].forEach.call(s,e=>{"data-style"===e.name?i.style=$t.parseStyle(e.value):t[e.name]=e.value}),i.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{r(t,e)}),e.length&&(i.children=e)}e.push(i)};return[].forEach.call(e.body.childNodes,t=>r(t,n)),n}}$t.allowedAttributes=["alt","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","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","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"],$t.allowedReferences=["https://","http://","mailto:","/","../","./","#"],$t.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","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"],$t.emptyHTML=Kt,$t.bypassHTMLFiltering=!1;let{defaultOptions:Zt,defaultTime:Jt}=gt,{pageLang:Qt}=w,{extend:te,getNestedProperty:ee,isArray:ne,isNumber:re,isObject:ie,isString:se,pick:ae,ucfirst:oe}=Y,le={add:(t,e)=>t+e,divide:(t,e)=>0!==e?t/e:"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!ne(t)&&t.map((n,r)=>he(e.body,te(ie(n)?n:{"@this":n},{"@index":r,"@first":0===r,"@last":r===t.length-1}))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:t=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>t<e,multiply:(t,e)=>t*e,ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,ucfirst:oe,unless:t=>!t},ce={},ue=t=>/^["'].+["']$/.test(t);function he(t="",e,n){let r,i,s,a=/\{([\p{L}\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/gu,o=/\(([\p{L}\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/gu,l=[],c=/f$/,u=/\.(\d)/,h=n?.options.lang||Zt.lang,d=n&&n.time||Jt,p=n&&n.numberFormatter||de,f=(t="")=>{let n;return"true"===t||"false"!==t&&((n=Number(t)).toString()===t?n:ue(t)?t.slice(1,-1):ee(t,e))},g=0;for(;null!==(r=a.exec(t));){let n=r,a=o.exec(r[1]);a&&(r=a,s=!0),i&&i.isBlock||(i={ctx:e,expression:r[1],find:r[0],isBlock:"#"===r[1].charAt(0),start:r.index,startInner:r.index+r[0].length,length:r[0].length});let c=(i.isBlock?n:r)[1].split(" ")[0].replace("#","");le[c]&&(i.isBlock&&c===i.fn&&g++,i.fn||(i.fn=c));let u="else"===r[1];if(i.isBlock&&i.fn&&(r[1]===`/${i.fn}`||u))if(g)!u&&g--;else{let e=i.startInner,n=t.substr(e,r.index-e);void 0===i.body?(i.body=n,i.startInner=r.index+r[0].length):i.elseBody=n,i.find+=n+r[0],u||(l.push(i),i=void 0)}else i.isBlock||l.push(i);if(a&&!i?.isBlock)break}return l.forEach(r=>{let i,s,{body:a,elseBody:l,expression:g,fn:m}=r;if(m){let t,o=[r],c=[],u=g.length,h=0;for(s=0;s<=u;s++){let e=g.charAt(s);t||'"'!==e&&"'"!==e?t===e&&(t=""):t=e,t||" "!==e&&s!==u||(c.push(g.substr(h,s-h)),h=s+1)}for(s=le[m].length;s--;)o.unshift(f(c[s+1]));i=le[m].apply(e,o),r.isBlock&&"boolean"==typeof i&&(i=he(i?a:l,e,n))}else{let t=ue(g)?[g]:g.split(":");if(i=f(t.shift()||""),t.length&&"number"==typeof i){let e=t.join(":");if(c.test(e)){let t=parseInt((e.match(u)||["","-1"])[1],10);null!==i&&(i=p(i,t,h.decimalPoint,e.indexOf(",")>-1?h.thousandsSep:""))}else i=d.dateFormat(e,i)}o.lastIndex=0,o.test(r.find)&&se(i)&&(i=`"${i}"`)}t=t.replace(r.find,ae(i,""))}),s?he(t,e,n):t}function de(t,e,n,r){e=+e;let i,s,[a,o]=(t=+t||0).toString().split("e").map(Number),l=this?.options?.lang||Zt.lang,c=(t.toString().split(".")[1]||"").split("e")[0].length,u=e,h={};n??(n=l.decimalPoint),r??(r=l.thousandsSep),-1===e?e=Math.min(c,20):re(e)?e&&o<0&&((s=e+o)>=0?(a=+a.toExponential(s).split("e")[0],e=s):(a=Math.floor(a),t=e<20?+(a*Math.pow(10,o)).toFixed(e):0,o=0)):e=2,o&&(e??(e=2),t=a),re(e)&&e>=0&&(h.minimumFractionDigits=e,h.maximumFractionDigits=e),""===r&&(h.useGrouping=!1);let d=r||n,p=d?"en":this?.locale||l.locale||Qt,f=JSON.stringify(h)+p;return i=(ce[f]??(ce[f]=new Intl.NumberFormat(p,h))).format(t),d&&(i=i.replace(/([,\.])/g,"_$1").replace(/_\,/g,r??",").replace("_.",n??".")),(e||0!=+i)&&(!(o<0)||u)||(i="0"),o&&0!=+i&&(i+="e"+(o<0?"":"+")+o),i}let pe={dateFormat:function(t,e,n){return Jt.dateFormat(t,e,n)},format:he,helpers:le,numberFormat:de};!function(t){let e;t.rendererTypes={},t.getRendererType=function(n=e){return t.rendererTypes[n]||t.rendererTypes[e]},t.registerRendererType=function(n,r,i){t.rendererTypes[n]=r,(!e||i)&&(e=n,w.Renderer=r)}}(r||(r={}));let fe=r,{clamp:ge,pick:me,pushUnique:be,stableSort:ye}=Y;(i||(i={})).distribute=function t(e,n,r){let i,s,a,o,l,c,u=e,h=u.reducedLen||n,d=(t,e)=>t.target-e.target,p=[],f=e.length,g=[],m=p.push,b=!0,y=0;for(i=f;i--;)y+=e[i].size;if(y>h){for(ye(e,(t,e)=>(e.rank||0)-(t.rank||0)),a=(c=e[0].rank===e[e.length-1].rank)?f/2:-1,s=c?a:f-1;a&&y>h;)o=e[i=Math.floor(s)],be(g,i)&&(y-=o.size),s+=a,c&&s>=e.length&&(a/=2,s=a);g.sort((t,e)=>e-t).forEach(t=>m.apply(p,e.splice(t,1)))}for(ye(e,d),e=e.map(t=>({size:t.size,targets:[t.target],align:me(t.align,.5)}));b;){for(i=e.length;i--;)o=e[i],l=(Math.min.apply(0,o.targets)+Math.max.apply(0,o.targets))/2,o.pos=ge(l-o.size*o.align,0,n-o.size);for(i=e.length,b=!1;i--;)i>0&&e[i-1].pos+e[i-1].size>e[i].pos&&(e[i-1].size+=e[i].size,e[i-1].targets=e[i-1].targets.concat(e[i].targets),e[i-1].align=.5,e[i-1].pos+e[i-1].size>n&&(e[i-1].pos=n-e[i-1].size),e.splice(i,1),b=!0)}return m.apply(u,p),i=0,e.some(e=>{let s=0;return(e.targets||[]).some(()=>(u[i].pos=e.pos+s,void 0!==r&&Math.abs(u[i].pos-u[i].target)>r?(u.slice(0,i+1).forEach(t=>delete t.pos),u.reducedLen=(u.reducedLen||n)-.1*n,u.reducedLen>.1*n&&t(u,n,r),!0):(s+=u[i].size,i++,!1)))}),ye(u,d),u};let ve=i,{animate:xe,animObject:we,stop:ke}=Dt,{deg2rad:Ae,doc:Se,svg:Ce,SVG_NS:Ee,win:Me,isFirefox:Te}=w,{addEvent:Pe,attr:Oe,createElement:Le,crisp:je,css:_e,defined:Ie,erase:Re,extend:De,fireEvent:Ne,getAlignFactor:Be,isArray:Fe,isFunction:ze,isNumber:He,isObject:qe,isString:We,merge:Ue,objectEach:Xe,pick:Ye,pInt:Ge,pushUnique:Ve,replaceNested:Ke,syncTimeout:$e,uniqueKey:Ze}=Y;class Je{_defaultGetter(t){let e=Ye(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,n){n.setAttribute(e,t)}add(t){let e,n=this.renderer,r=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&n.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this}addClass(t,e){let n=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return-1===n.indexOf(e)&&t.push(e),t},n?[n]:[]).join(" "))!==n&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,n,r=!0){let i=this.renderer,s=i.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=n):(t=this.alignOptions||{},e=this.alignByTranslate,n=this.alignTo);let o=!n||We(n)?n||"renderer":void 0;o&&(a&&Ve(s,this),n=void 0);let l=Ye(n,i[o],i),c=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*Be(t.align),u=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*Be(t.verticalAlign),h={"text-align":t?.align};return h[e?"translateX":"x"]=Math.round(c),h[e?"translateY":"y"]=Math.round(u),r&&(this[this.placed?"animate":"attr"](h),this.placed=!0),this.alignAttr=h,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,n){let r=we(Ye(e,this.renderer.globalAnimation,!0)),i=r.defer;return Se.hidden&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),$e(()=>{this.element&&xe(this,t,r)},i)):(this.attr(t,void 0,n||r.complete),Xe(t,function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let n=t.split(" "),r=n[n.length-1],i=n[0];if(i&&"none"!==i&&w.svg){this.fakeTS=!0,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,n){return 2*Number(e)+n}),this.removeTextOutline();let t=Se.createElementNS(Ee,"tspan");Oe(t,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":i,"stroke-linejoin":"round"});let n=e.querySelector("textPath")||e;[].forEach.call(n.childNodes,e=>{let n=e.cloneNode(!0);n.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(t=>n.removeAttribute(t)),t.appendChild(n)});let s=0;[].forEach.call(n.querySelectorAll("text tspan"),t=>{s+=Number(t.getAttribute("dy"))});let a=Se.createElementNS(Ee,"tspan");a.textContent="​",Oe(a,{x:Number(e.getAttribute("x")),dy:-s}),t.appendChild(a),n.insertBefore(t,n.firstChild)}}attr(t,e,n,r){let i,s,a,{element:o}=this,l=Je.symbolCustomAttribs,c=this;return"string"==typeof t&&void 0!==e&&(i=t,(t={})[i]=e),"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,o):(Xe(t,function(e,n){a=!1,r||ke(this,n),this.symbolName&&-1!==l.indexOf(n)&&(s||(this.symbolAttr(t),s=!0),a=!0),this.rotation&&("x"===n||"y"===n)&&(this.doTransform=!0),a||(this[n+"Setter"]||this._defaultSetter).call(this,e,n,o)},this),this.afterSetters()),n&&n.call(this),c}clip(t){if(t&&!t.clipPath){let e=Ze()+"-",n=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);De(t,{clipPath:n,id:e,count:0}),t.add(n)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let n=t.x||this.x||0,r=t.y||this.y||0,i=(t.width||this.width||0)+n,s=(t.height||this.height||0)+r,a=je(n,e),o=je(r,e);return De(t,{x:a,y:o,width:je(i,e)-a,height:je(s,e)-o}),Ie(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,n){let r,i,s,a,o,l,c,u,h,d,p,f=this.renderer,g=[];Ne(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?i="radialGradient":t.linearGradient&&(i="linearGradient"),i){if(s=t[i],o=f.gradients,l=t.stops,h=n.radialReference,Fe(s)&&(t[i]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===i&&h&&!Ie(s.gradientUnits)&&(a=s,s=Ue(s,f.getRadialAttr(h,a),{gradientUnits:"userSpaceOnUse"})),Xe(s,function(t,e){"id"!==e&&g.push(e,t)}),Xe(l,function(t){g.push(t)}),o[g=g.join(",")])d=o[g].attr("id");else{s.id=d=Ze();let t=o[g]=f.createElement(i).attr(s).add(f.defs);t.radAttr=a,t.stops=[],l.forEach(function(e){0===e[1].indexOf("rgba")?(c=(r=xt.parse(e[1])).get("rgb"),u=r.get("a")):(c=e[1],u=1);let n=f.createElement("stop").attr({offset:e[0],"stop-color":c,"stop-opacity":u}).add(t);t.stops.push(n)})}p="url("+f.url+"#"+d+")",n.setAttribute(e,p),n.gradient=g,t.toString=function(){return p}}})}css(t){let e,n=this.styles,r={},i=this.element,s=!n;if(n&&Xe(t,function(t,e){n&&n[e]!==t&&(r[e]=t,s=!0)}),s){n&&(t=De(n,r)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===i.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=Ge(t.width)),De(this.styles,t),e&&!Ce&&this.renderer.forExport&&delete t.width;let s=Te&&t.fontSize||null;s&&(He(s)||/^\d+$/.test(s))&&(t.fontSize+="px");let a=Ue(t);i.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(t=>a&&delete a[t]),a.color&&(a.fill=a.color)),_e(i,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,n=this["stroke-width"];if("inherit"===n&&(n=1),t=t&&t.toLowerCase()){let r=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(",");for(e=r.length;e--;)r[e]=""+Ge(r[e])*Ye(n,NaN);t=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t,e,n=this,r=n.element||{},i=n.renderer,s=r.ownerSVGElement,a="SPAN"===r.nodeName&&n.parentGroup||void 0;if(r.onclick=r.onmouseout=r.onmouseover=r.onmousemove=r.point=null,ke(n),n.clipPath&&s){let t=n.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(e){e.getAttribute("clip-path").indexOf(t.element.id)>-1&&e.removeAttribute("clip-path")}),n.clipPath=t.destroy()}if(n.connector=n.connector?.destroy(),n.stops){for(e=0;e<n.stops.length;e++)n.stops[e].destroy();n.stops.length=0,n.stops=void 0}for(n.safeRemoveChild(r);a&&a.div&&0===a.div.childNodes.length;)t=a.parentGroup,n.safeRemoveChild(a.div),delete a.div,a=t;n.alignOptions&&Re(i.alignedObjects,n),Xe(n,function(t,e){n[e]&&n[e].parentGroup===n&&n[e].destroy&&n[e].destroy(),delete n[e]})}dSetter(t,e,n){Fe(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((t,e,n)=>e&&e.join?(n?t+" ":"")+e.join(" "):(e||"").toString(),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(n.setAttribute(e,t),this[e]=t)}fillSetter(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)}hrefSetter(t,e,n){n.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let n,r,i,s,{alignValue:a,element:o,renderer:l,styles:c,textStr:u}=this,{cache:h,cacheKeys:d}=l,p=o.namespaceURI===this.SVG_NS,f=Ye(e,this.rotation,0),g=l.styledMode?o&&Je.prototype.getStyle.call(o,"font-size"):c.fontSize;if(Ie(u)&&(-1===(s=u.toString()).indexOf("<")&&(s=s.replace(/\d/g,"0")),s+=["",l.rootFontSize,g,f,this.textWidth,a,c.lineClamp,c.textOverflow,c.fontWeight].join(",")),s&&!t&&(n=h[s]),!n||n.polygon){if(p||l.forExport){try{i=this.fakeTS&&function(t){let e=o.querySelector(".highcharts-text-outline");e&&_e(e,{display:t})},ze(i)&&i("none"),n=o.getBBox?De({},o.getBBox()):{width:o.offsetWidth,height:o.offsetHeight,x:0,y:0},ze(i)&&i("")}catch(t){}(!n||n.width<0)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();r=n.height,p&&(n.height=r={"11px,17":14,"13px,20":16}[`${g||""},${Math.round(r)}`]||r),f&&(n=this.getRotatedBox(n,f));let e={bBox:n};Ne(this,"afterGetBBox",e),n=e.bBox}if(s&&(""===u||n.height>0)){for(;d.length>250;)delete h[d.shift()];h[s]||d.push(s),h[s]=n}return n}getRotatedBox(t,e){let{x:n,y:r,width:i,height:s}=t,{alignValue:a,translateY:o,rotationOriginX:l=0,rotationOriginY:c=0}=this,u=Be(a),h=Number(this.element.getAttribute("y")||0)-(o?0:r),d=e*Ae,p=(e-90)*Ae,f=Math.cos(d),g=Math.sin(d),m=i*f,b=i*g,y=Math.cos(p),v=Math.sin(p),[[x,w],[k,A]]=[l,c].map(t=>[t-t*f,t*g]),S=n+u*(i-m)+x+A+h*y,C=S+m,E=C-s*y,M=E-m,T=r+h-u*b-w+k+h*v,P=T+b,O=P-s*v,L=O-b,j=Math.min(S,C,E,M),_=Math.min(T,P,O,L);return{x:j,y:_,width:Math.max(S,C,E,M)-j,height:Math.max(T,P,O,L)-_,polygon:[[S,T],[C,P],[E,O],[M,L]]}}getStyle(t){return Me.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=Ee,this.element="span"===e||"body"===e?Le(e):Se.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},Ne(this,"afterInit")}on(t,e){let{onEvents:n}=this;return n[t]&&n[t](),n[t]=Pe(this.element,t,e),this}opacitySetter(t,e,n){let r=Number(Number(t).toFixed(3));this.opacity=r,n.setAttribute(e,r)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(We(t)?RegExp(`(^| )${t}( |$)`):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let 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}shadow(t){let{renderer:e}=this,n=Ue(90===this.parentGroup?.rotation?{offsetX:-1,offsetY:-1}:{},qe(t)?t:{}),r=e.shadowDefinition(n);return this.attr({filter:t?`url(${e.url}#${r})`:"none"})}show(t=!0){return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,n){this[e]=t,n.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t,e=this.getStyle("stroke-width"),n=0;return/px$/.test(e)?n=Ge(e):""!==e&&(Oe(t=Se.createElementNS(Ee,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),n=t.getBBox().width,t.parentNode.removeChild(t)),n}symbolAttr(t){let e=this;Je.symbolCustomAttribs.forEach(function(n){e[n]=Ye(t[n],e[n])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t){let e=this.element,n=e.getElementsByTagName("title")[0]||Se.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(n,e.firstChild):e.appendChild(n),n.textContent=Ke(Ye(t,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(t="transform"){let{element:e,matrix:n,rotation:r=0,rotationOriginX:i,rotationOriginY:s,scaleX:a,scaleY:o,translateX:l=0,translateY:c=0}=this,u=["translate("+l+","+c+")"];Ie(n)&&u.push("matrix("+n.join(",")+")"),r&&(u.push("rotate("+r+" "+Ye(i,e.getAttribute("x"),0)+" "+Ye(s,e.getAttribute("y")||0)+")"),"SPAN"===this.text?.element.tagName&&this.text.attr({rotation:r,rotationOriginX:(i||0)-this.padding,rotationOriginY:(s||0)-this.padding})),(Ie(a)||Ie(o))&&u.push("scale("+Ye(a,1)+" "+Ye(o,1)+")"),u.length&&!(this.text||this).textPath&&e.setAttribute(t,u.join(" "))}visibilitySetter(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t}xGetter(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let n,r,i,s,a,o=this.renderer,l=this.parentGroup,c=(l||o).element||o.box,u=this.element,h=c===o.box,d=!1,p=this.added;if(Ie(t)?(u.setAttribute("data-z-index",t),t=+t,this[e]===t&&(p=!1)):Ie(this[e])&&u.removeAttribute("data-z-index"),this[e]=t,p){for((t=this.zIndex)&&l&&(l.handleZ=!0),a=(n=c.childNodes).length-1;a>=0&&!d;a--)s=!Ie(i=(r=n[a]).getAttribute("data-z-index")),r!==u&&(t<0&&s&&!h&&!a?(c.insertBefore(u,n[a]),d=!0):(Ge(i)<=t||s&&(!Ie(t)||t>=0))&&(c.insertBefore(u,n[a+1]),d=!0));d||(c.insertBefore(u,n[h?3:0]),d=!0)}return d}}Je.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Je.prototype.strokeSetter=Je.prototype.fillSetter,Je.prototype.yGetter=Je.prototype.xGetter,Je.prototype.matrixSetter=Je.prototype.rotationOriginXSetter=Je.prototype.rotationOriginYSetter=Je.prototype.rotationSetter=Je.prototype.scaleXSetter=Je.prototype.scaleYSetter=Je.prototype.translateXSetter=Je.prototype.translateYSetter=Je.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};let Qe=Je,{defined:tn,extend:en,getAlignFactor:nn,isNumber:rn,merge:sn,pick:an,removeEvent:on}=Y;class ln extends Qe{constructor(t,e,n,r,i,s,a,o,l,c){let u;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=n,this.y=r,this.anchorX=s,this.anchorY=a,this.baseline=l,this.className=c,this.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&this.addClass("highcharts-"+c),this.text=t.text(void 0,0,0,o).attr({zIndex:1}),"string"==typeof i&&((u=/^url\((.*?)\)$/.test(i))||this.renderer.symbols[i])&&(this.symbolKey=i),this.bBox=ln.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||u,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=nn(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&rn(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(t){if(t){let e={};t=sn(t),ln.textProps.forEach(n=>{void 0!==t[n]&&(e[n]=t[n],delete t[n])}),this.text.css(e),"fontSize"in e||"fontWeight"in e?this.updateTextPadding():("width"in e||"textOverflow"in e)&&this.updateBoxSize()}return Qe.prototype.css.call(this,t)}destroy(){on(this.element,"mouseenter"),on(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Qe.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let{padding:n,height:r=0,translateX:i=0,translateY:s=0,width:a=0}=this,o=an(this.paddingLeft,n),l=e??(this.rotation||0),c={width:a,height:r,x:i+this.bBox.x-o,y:s+this.bBox.y-n+this.baselineOffset};return l&&(c=this.getRotatedBox(c,l)),c}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:an(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&tn(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){rn(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()}textSetter(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t,e=this.text,n={},r=this.padding,i=this.bBox=rn(this.widthSetting)&&rn(this.heightSetting)&&!this.textAlign||!tn(e.textStr)?ln.emptyBBox:e.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||i.height||0)+2*r;let s=this.renderer.fontMetrics(e);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||s).b,i.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!e.textPath){if(!this.box){let t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();t.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)}t=this.getCrispAdjust(),n.x=t,n.y=(this.baseline?-this.baselineOffset:0)+t,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(en(n,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text,e=t.styles.textAlign||this.textAlign;if(!t.textPath){this.updateBoxSize();let n=this.baseline?0:this.baselineOffset,r=(this.paddingLeft??this.padding)+nn(e)*(this.widthSetting??this.bBox.width);(r!==t.x||n!==t.y)&&(t.attr({align:e,x:r}),void 0!==n&&t.attr("y",n)),t.x=r,t.y=n}}widthSetter(t){this.widthSetting=rn(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=an(this.paddingLeft,t),n=an(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+n}xSetter(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)}ySetter(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}ln.emptyBBox={width:0,height:0,x:0,y:0},ln.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:cn,isNumber:un,pick:hn}=Y;function dn(t,e,n,r,i){let s=[];if(i){let a=i.start||0,o=hn(i.r,n),l=hn(i.r,r||n),c=2e-4/(i.borderRadius?1:Math.max(o,1)),u=Math.abs((i.end||0)-a-2*Math.PI)<c,h=(i.end||0)-(u?c:0),d=i.innerR,p=hn(i.open,u),f=Math.cos(a),g=Math.sin(a),m=Math.cos(h),b=Math.sin(h),y=hn(i.longArc,h-a-Math.PI<c?0:1),v=["A",o,l,0,y,hn(i.clockwise,1),t+o*m,e+l*b];v.params={start:a,end:h,cx:t,cy:e},s.push(["M",t+o*f,e+l*g],v),cn(d)&&((v=["A",d,d,0,y,cn(i.clockwise)?1-i.clockwise:0,t+d*f,e+d*g]).params={start:h,end:a,cx:t,cy:e},s.push(p?["M",t+d*m,e+d*b]:["L",t+d*m,e+d*b],v)),p||s.push(["Z"])}return s}function pn(t,e,n,r,i){return i&&i.r?fn(t,e,n,r,i):[["M",t,e],["L",t+n,e],["L",t+n,e+r],["L",t,e+r],["Z"]]}function fn(t,e,n,r,i){let s=i?.r||0;return[["M",t+s,e],["L",t+n-s,e],["A",s,s,0,0,1,t+n,e+s],["L",t+n,e+r-s],["A",s,s,0,0,1,t+n-s,e+r],["L",t+s,e+r],["A",s,s,0,0,1,t,e+r-s],["L",t,e+s],["A",s,s,0,0,1,t+s,e],["Z"]]}let gn={arc:dn,callout:function(t,e,n,r,i){let s=Math.min(i&&i.r||0,n,r),a=s+6,o=i&&i.anchorX,l=i&&i.anchorY||0,c=fn(t,e,n,r,{r:s});if(!un(o)||o<n&&o>0&&l<r&&l>0)return c;if(t+o>n-a)if(l>e+a&&l<e+r-a)c.splice(3,1,["L",t+n,l-6],["L",t+n+6,l],["L",t+n,l+6],["L",t+n,e+r-s]);else if(o<n){let i=l<e+a,u=i?e:e+r;c.splice(i?2:5,0,["L",o,l],["L",t+n-s,u])}else c.splice(3,1,["L",t+n,r/2],["L",o,l],["L",t+n,r/2],["L",t+n,e+r-s]);else if(t+o<a)if(l>e+a&&l<e+r-a)c.splice(7,1,["L",t,l+6],["L",t-6,l],["L",t,l-6],["L",t,e+s]);else if(o>0){let n=l<e+a,i=n?e:e+r;c.splice(n?1:6,0,["L",o,l],["L",t+s,i])}else c.splice(7,1,["L",t,r/2],["L",o,l],["L",t,r/2],["L",t,e+s]);else l>r&&o<n-a?c.splice(5,1,["L",o+6,e+r],["L",o,e+r+6],["L",o-6,e+r],["L",t+s,e+r]):l<0&&o>a&&c.splice(1,1,["L",o-6,e],["L",o,e-6],["L",o+6,e],["L",n-s,e]);return c},circle:function(t,e,n,r){return dn(t+n/2,e+r/2,n/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,n,r){return[["M",t+n/2,e],["L",t+n,e+r/2],["L",t+n/2,e+r],["L",t,e+r/2],["Z"]]},rect:pn,roundedRect:fn,square:pn,triangle:function(t,e,n,r){return[["M",t+n/2,e],["L",t+n,e+r],["L",t,e+r],["Z"]]},"triangle-down":function(t,e,n,r){return[["M",t,e],["L",t+n,e],["L",t+n/2,e+r],["Z"]]}},{doc:mn,SVG_NS:bn,win:yn}=w,{attr:vn,extend:xn,fireEvent:wn,isString:kn,objectEach:An,pick:Sn}=Y,Cn=(t,e)=>t.substring(0,e)+"…",En=class{constructor(t){let 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=!(!e||"ellipsis"!==e.textOverflow),this.lineClamp=e?.lineClamp,this.noWrap=!(!e||"nowrap"!==e.whiteSpace)}buildSVG(){let t=this.svgElement,e=t.element,n=t.renderer,r=Sn(t.textStr,"").toString(),i=-1!==r.indexOf("<"),s=e.childNodes,a=!t.added&&n.box,o=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(o!==t.textCache){t.textCache=o,delete t.actualWidth;for(let t=s.length;t--;)e.removeChild(s[t]);if(i||this.ellipsis||this.width||t.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))){if(""!==r){a&&a.appendChild(e);let n=new $t(r);this.modifyTree(n.nodes),n.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),a&&a.removeChild(e)}}else e.appendChild(mn.createTextNode(this.unescapeEntities(r)));kn(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}}modifyDOM(){let t,e=this.svgElement,n=vn(e.element,"x");for(e.firstLineMetrics=void 0;(t=e.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)e.element.removeChild(t);[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(t,r)=>{t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(t.previousSibling)),vn(t,{dy:this.getLineHeight(t.nextSibling),x:n}))});let r=this.width||0;if(!r)return;let i=(t,i)=>{let s=t.textContent||"",a=s.replace(/([^\^])-/g,"$1- ").split(" "),o=!this.noWrap&&(a.length>1||e.element.childNodes.length>1),l=this.getLineHeight(i),c=Math.max(0,r-.8*l),u=0,h=e.actualWidth;if(o){let s=[],o=[];for(;i.firstChild&&i.firstChild!==t;)o.push(i.firstChild),i.removeChild(i.firstChild);for(;a.length;)if(a.length&&!this.noWrap&&u>0&&(s.push(t.textContent||""),t.textContent=a.join(" ").replace(/- /g,"-")),this.truncate(t,void 0,a,0===u&&h||0,r,c,(t,e)=>a.slice(0,e).join(" ").replace(/- /g,"-")),h=e.actualWidth,u++,this.lineClamp&&u>=this.lineClamp){a.length&&(this.truncate(t,t.textContent||"",void 0,0,r,c,Cn),t.textContent=t.textContent?.replace("…","")+"…");break}o.forEach(e=>{i.insertBefore(e,t)}),s.forEach(e=>{i.insertBefore(mn.createTextNode(e),t);let r=mn.createElementNS(bn,"tspan");r.textContent="​",vn(r,{dy:l,x:n}),i.insertBefore(r,t)})}else this.ellipsis&&s&&this.truncate(t,s,void 0,0,r,c,Cn)},s=t=>{[].slice.call(t.childNodes).forEach(n=>{n.nodeType===yn.Node.TEXT_NODE?i(n,t):(-1!==n.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),s(n))})};s(e.element)}getLineHeight(t){let e=t.nodeType===yn.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(t){let e=(n,r)=>{let{attributes:i={},children:s,style:a={},tagName:o}=n,l=this.renderer.styledMode;if("b"===o||"strong"===o?l?i.class="highcharts-strong":a.fontWeight="bold":("i"===o||"em"===o)&&(l?i.class="highcharts-emphasized":a.fontStyle="italic"),a&&a.color&&(a.fill=a.color),"br"===o){i.class="highcharts-br",n.textContent="​";let e=t[r+1];e&&e.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else"a"===o&&s&&s.some(t=>"#text"===t.tagName)&&(n.children=[{children:s,tagName:"tspan"}]);"#text"!==o&&"a"!==o&&(n.tagName="tspan"),xn(n,{attributes:i,style:a}),s&&s.filter(t=>"#text"!==t.tagName).forEach(e)};t.forEach(e),wn(this.svgElement,"afterModifyTree",{nodes:t})}truncate(t,e,n,r,i,s,a){let o,l,c=this.svgElement,{rotation:u}=c,h=[],d=n&&!r?1:0,p=(e||n||"").length,f=p;n||(i=s);let g=function(e,i){let s=i||e,a=t.parentNode;if(a&&void 0===h[s]&&a.getSubStringLength)try{h[s]=r+a.getSubStringLength(0,n?s+1:s)}catch(t){}return h[s]};if(c.rotation=0,r+(l=g(t.textContent.length))>i){for(;d<=p;)f=Math.ceil((d+p)/2),n&&(o=a(n,f)),l=g(f,o&&o.length-1),d===p?d=p+1:l>i?p=f-1:d=f;0===p?t.textContent="":e&&p===e.length-1||(t.textContent=o||a(e||n,f)),this.ellipsis&&l>i&&this.truncate(t,t.textContent||"",void 0,0,i,s,Cn)}n&&n.splice(0,f),c.actualWidth=l,c.rotation=u}unescapeEntities(t,e){return An(this.renderer.escapes,function(n,r){e&&-1!==e.indexOf(n)||(t=t.toString().replace(RegExp(n,"g"),r))}),t}},{defaultOptions:Mn}=gt,{charts:Tn,deg2rad:Pn,doc:On,isFirefox:Ln,isMS:jn,isWebKit:_n,noop:In,SVG_NS:Rn,symbolSizes:Dn,win:Nn}=w,{addEvent:Bn,attr:Fn,createElement:zn,crisp:Hn,css:qn,defined:Wn,destroyObjectProperties:Un,extend:Xn,isArray:Yn,isNumber:Gn,isObject:Vn,isString:Kn,merge:$n,pick:Zn,pInt:Jn,replaceNested:Qn,uniqueKey:tr}=Y;class er{constructor(t,e,n,r,i,s,a){let o,l,c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=c.element;a||c.css(this.getStyle(r||{})),t.appendChild(u),Fn(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&Fn(u,"xmlns",this.SVG_NS),this.box=u,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(On.createTextNode("Created with Highcharts 12.1.2")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=i,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(e,n,!1),Ln&&t.getBoundingClientRect&&((o=function(){qn(t,{left:0,top:0}),l=t.getBoundingClientRect(),qn(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=Bn(Nn,"resize",o))}definition(t){return new $t([t]).addToDOM(this.defs.element)}getReferenceURL(){if((Ln||_n)&&On.getElementsByTagName("base").length){if(!Wn(e)){let t=tr(),n=new $t([{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(#${t})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(On.body);qn(n,{position:"fixed",top:0,left:0,zIndex:9e5});let r=On.elementFromPoint(6,6);e="hitme"===(r&&r.id),On.body.removeChild(n)}if(e)return Qn(Nn.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=Xn({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},t),this.style}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),Un(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(t){return new this.Element(this,t)}getRadialAttr(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]}}shadowDefinition(t){let e=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t).map(e=>`${e}-${t[e]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),n=$n({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector(`#${e}`)||this.definition({tagName:"filter",attributes:{id:e,filterUnits:n.filterUnits},children:this.getShadowFilterContent(n)}),e}getShadowFilterContent(t){return[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]}buildText(t){new En(t).buildSVG()}getContrast(t){let e=xt.parse(t).rgba.map(t=>{let e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),n=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(n+.05)>(n+.05)/.05?"#FFFFFF":"#000000"}button(t,e,n,r,i={},s,a,o,l,c){let u=this.label(t,e,n,l,void 0,void 0,c,void 0,"button"),h=this.styledMode,d=arguments,p=0;i=$n(Mn.global.buttonTheme,i),h&&(delete i.fill,delete i.stroke,delete i["stroke-width"]);let f=i.states||{},g=i.style||{};delete i.states,delete i.style;let m=[$t.filterUserAttributes(i)],b=[g];return h||["hover","select","disabled"].forEach((t,e)=>{m.push($n(m[0],$t.filterUserAttributes(d[e+5]||f[t]||{}))),b.push(m[e+1].style),delete m[e+1].style}),Bn(u.element,jn?"mouseover":"mouseenter",function(){3!==p&&u.setState(1)}),Bn(u.element,jn?"mouseout":"mouseleave",function(){3!==p&&u.setState(p)}),u.setState=(t=0)=>{if(1!==t&&(u.state=p=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!h){u.attr(m[t]);let e=b[t];Vn(e)&&u.css(e)}},u.attr(m[0]),!h&&(u.css(Xn({cursor:"default"},g)),c&&u.text.css({pointerEvents:"none"})),u.on("touchstart",t=>t.stopPropagation()).on("click",function(t){3!==p&&r.call(u,t)})}crispLine(t,e){let[n,r]=t;return Wn(n[1])&&n[1]===r[1]&&(n[1]=r[1]=Hn(n[1],e)),Wn(n[2])&&n[2]===r[2]&&(n[2]=r[2]=Hn(n[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return Yn(t)?e.d=t:Vn(t)&&Xn(e,t),this.createElement("path").attr(e)}circle(t,e,n){let r=Vn(t)?t:void 0===t?{}:{x:t,y:e,r:n},i=this.createElement("circle");return i.xSetter=i.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},i.attr(r)}arc(t,e,n,r,i,s){let a;Vn(t)?(e=(a=t).y,n=a.r,r=a.innerR,i=a.start,s=a.end,t=a.x):a={innerR:r,start:i,end:s};let o=this.symbol("arc",t,e,n,n,a);return o.r=n,o}rect(t,e,n,r,i,s){let a=Vn(t)?t:void 0===t?{}:{x:t,y:e,r:i,width:Math.max(n||0,0),height:Math.max(r||0,0)},o=this.createElement("rect");return this.styledMode||(void 0!==s&&(a["stroke-width"]=s,Xn(a,o.crisp(a))),a.fill="none"),o.rSetter=function(t,e,n){o.r=t,Fn(n,{rx:t,ry:t})},o.rGetter=function(){return o.r||0},o.attr(a)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(t,e,n){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:Zn(n,!0)?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,n,r,i,s){let a={preserveAspectRatio:"none"};Gn(e)&&(a.x=e),Gn(n)&&(a.y=n),Gn(r)&&(a.width=r),Gn(i)&&(a.height=i);let o=this.createElement("image").attr(a),l=function(e){o.attr({href:t}),s.call(o,e)};if(s){o.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let e=new Nn.Image;Bn(e,"load",l),e.src=t,e.complete&&l({})}else o.attr({href:t});return o}symbol(t,e,n,r,i,s){let a,o,l,c,u=this,h=/^url\((.*?)\)$/,d=h.test(t),p=!d&&(this.symbols[t]?t:"circle"),f=p&&this.symbols[p];if(f)"number"==typeof e&&(o=f.call(this.symbols,e||0,n||0,r||0,i||0,s)),a=this.path(o),u.styledMode||a.attr("fill","none"),Xn(a,{symbolName:p||void 0,x:e,y:n,width:r,height:i}),s&&Xn(a,s);else if(d){l=t.match(h)[1];let r=a=this.image(l);r.imgwidth=Zn(s&&s.width,Dn[l]&&Dn[l].width),r.imgheight=Zn(s&&s.height,Dn[l]&&Dn[l].height),c=t=>t.attr({width:t.width,height:t.height}),["width","height"].forEach(t=>{r[`${t}Setter`]=function(t,e){this[e]=t;let{alignByTranslate:n,element:r,width:i,height:a,imgwidth:o,imgheight:l}=this,c="width"===e?o:l,u=1;s&&"within"===s.backgroundSize&&i&&a&&o&&l?(u=Math.min(i/o,a/l),Fn(r,{width:Math.round(o*u),height:Math.round(l*u)})):r&&c&&r.setAttribute(e,c),!n&&o&&l&&this.translate(((i||0)-o*u)/2,((a||0)-l*u)/2)}}),Wn(e)&&r.attr({x:e,y:n}),r.isImg=!0,r.symbolUrl=t,Wn(r.imgwidth)&&Wn(r.imgheight)?c(r):(r.attr({width:0,height:0}),zn("img",{onload:function(){let t=Tn[u.chartIndex];0===this.width&&(qn(this,{position:"absolute",top:"-999em"}),On.body.appendChild(this)),Dn[l]={width:this.width,height:this.height},r.imgwidth=this.width,r.imgheight=this.height,r.element&&c(r),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,u.imgCount||!t||t.hasLoaded||t.onload()},src:l}),this.imgCount++)}return a}clipRect(t,e,n,r){return this.rect(t,e,n,r,0)}text(t,e,n,r){let i={};if(r&&(this.allowHTML||!this.forExport))return this.html(t,e,n);i.x=Math.round(e||0),n&&(i.y=Math.round(n)),Wn(t)&&(i.text=t);let s=this.createElement("text").attr(i);return r&&(!this.forExport||this.allowHTML)||(s.xSetter=function(t,e,n){let r=n.getElementsByTagName("tspan"),i=n.getAttribute(e);for(let n,s=0;s<r.length;s++)(n=r[s]).getAttribute(e)===i&&n.setAttribute(e,t);n.setAttribute(e,t)}),s}fontMetrics(t){let e=Jn(Qe.prototype.getStyle.call(t,"font-size")||0),n=e<24?e+3:Math.round(1.2*e);return{h:n,b:Math.round(.8*n),f:e}}rotCorr(t,e,n){let r=t;return e&&n&&(r=Math.max(r*Math.cos(e*Pn),4)),{x:-t/3*Math.sin(e*Pn),y:r}}pathToSegments(t){let e=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let i=0;i<t.length;i++)Kn(n[0])&&Gn(t[i])&&n.length===r[n[0].toUpperCase()]&&t.splice(i,0,n[0].replace("M","L").replace("m","l")),"string"==typeof t[i]&&(n.length&&e.push(n.slice(0)),n.length=0),n.push(t[i]);return e.push(n.slice(0)),e}label(t,e,n,r,i,s,a,o,l){return new ln(this,t,e,n,r,i,s,a,o,l)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}Xn(er.prototype,{Element:Qe,SVG_NS:Rn,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:gn,draw:In}),fe.registerRendererType("svg",er,!0);let{composed:nr}=w,{attr:rr,css:ir,createElement:sr,defined:ar,extend:or,getAlignFactor:lr,isNumber:cr,pInt:ur,pushUnique:hr}=Y;function dr(t,e,n){let r=this.div?.style||n.style;Qe.prototype[`${e}Setter`].call(this,t,e,n),r&&(r[e]=t)}let pr=(t,e)=>{if(!t.div){let n=rr(t.element,"class"),r=t.css,i=sr("div",n?{className:n}:void 0,{position:"absolute",left:`${t.translateX||0}px`,top:`${t.translateY||0}px`,...t.styles,display:t.display,opacity:t.opacity,visibility:t.visibility},t.parentGroup?.div||e);t.classSetter=(t,e,n)=>{n.setAttribute("class",t),i.className=t},t.translateXSetter=t.translateYSetter=(e,n)=>{t[n]=e,i.style["translateX"===n?"left":"top"]=`${e}px`,t.doTransform=!0},t.opacitySetter=t.visibilitySetter=dr,t.css=e=>(r.call(t,e),e.cursor&&(i.style.cursor=e.cursor),e.pointerEvents&&(i.style.pointerEvents=e.pointerEvents),t),t.on=function(){return Qe.prototype.on.apply({element:i,onEvents:t.onEvents},arguments),t},t.div=i}return t.div};class fr extends Qe{static compose(t){hr(nr,this.compose)&&(t.prototype.html=function(t,e,n){return new fr(this,"span").attr({text:t,x:Math.round(e),y:Math.round(n)})})}constructor(t,e){super(t,e),this.css({position:"absolute",...t.styledMode?{}:{fontFamily:t.style.fontFamily,fontSize:t.style.fontSize}})}getSpanCorrection(t,e,n){this.xCorr=-t*n,this.yCorr=-e}css(t){let e,{element:n}=this,r="SPAN"===n.tagName&&t&&"width"in t,i=r&&t.width;return r&&(delete t.width,this.textWidth=ur(i)||void 0,e=!0),"ellipsis"===t?.textOverflow&&(t.overflow="hidden"),t?.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),cr(Number(t?.fontSize))&&(t.fontSize=t.fontSize+"px"),or(this.styles,t),ir(n,t),e&&this.updateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}updateTransform(){if(!this.added)return void(this.alignOnAdd=!0);let{element:t,renderer:e,rotation:n,rotationOriginX:r,rotationOriginY:i,scaleX:s,scaleY:a,styles:o,textAlign:l="left",textWidth:c,translateX:u=0,translateY:h=0,x:d=0,y:p=0}=this,{display:f="block",whiteSpace:g}=o;if(ir(t,{marginLeft:`${u}px`,marginTop:`${h}px`}),"SPAN"===t.tagName){let o,u=[n,l,t.innerHTML,c,this.textAlign].join(","),h=-1*this.parentGroup?.padding||0;if(c!==this.oldTextWidth){let e=this.textPxLength?this.textPxLength:(ir(t,{width:"",whiteSpace:g||"nowrap"}),t.offsetWidth),r=c||0;(r>this.oldTextWidth||e>r)&&(/[ \-]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(ir(t,{width:e>r||n||s?c+"px":"auto",display:f,whiteSpace:g||"normal"}),this.oldTextWidth=c)}u!==this.cTT&&(o=e.fontMetrics(t).b,ar(n)&&(n!==(this.oldRotation||0)||l!==this.oldAlign)&&this.setSpanRotation(n,h,h),this.getSpanCorrection(!ar(n)&&!this.textWidth&&this.textPxLength||t.offsetWidth,o,lr(l)));let{xCorr:m=0,yCorr:b=0}=this,y={left:`${d+m}px`,top:`${p+b}px`,textAlign:l,transformOrigin:`${(r??d)-m-d-h}px ${(i??p)-b-p-h}px`};(s||a)&&(y.transform=`scale(${s??1},${a??1})`),ir(t,y),this.cTT=u,this.oldRotation=n,this.oldAlign=l}}setSpanRotation(t,e,n){ir(this.element,{transform:`rotate(${t}deg)`,transformOrigin:`${e}% ${n}px`})}add(t){let e,n=this.renderer.box.parentNode,r=[];if(this.parentGroup=t,t&&!(e=t.div)){let i=t;for(;i;)r.push(i),i=i.parentGroup;for(let t of r.reverse())e=pr(t,n)}return(e||n).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,$t.setElementHTML(this.element,t??""),this.textStr=t,this.doTransform=!0)}alignSetter(t){this.alignValue=this.textAlign=t,this.doTransform=!0}xSetter(t,e){this[e]=t,this.doTransform=!0}}let gr=fr.prototype;gr.visibilitySetter=gr.opacitySetter=dr,gr.ySetter=gr.rotationSetter=gr.rotationOriginXSetter=gr.rotationOriginYSetter=gr.xSetter,function(t){t.xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,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",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},t.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:t}=this.axis.chart;return t(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0}}(s||(s={}));let mr=s,{addEvent:br,isFunction:yr,objectEach:vr,removeEvent:xr}=Y;(a||(a={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},vr(e.events,function(e,n){t.eventOptions[n]!==e&&(t.eventOptions[n]&&(xr(t,n,t.eventOptions[n]),delete t.eventOptions[n]),yr(e)&&(t.eventOptions[n]=e,br(t,n,e,{order:0})))})};let wr=a,{deg2rad:kr}=w,{clamp:Ar,correctFloat:Sr,defined:Cr,destroyObjectProperties:Er,extend:Mr,fireEvent:Tr,getAlignFactor:Pr,isNumber:Or,merge:Lr,objectEach:jr,pick:_r}=Y,Ir=class{constructor(t,e,n,r,i){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,Tr(this,"init"),n||r||this.addLabel()}addLabel(){let t,e,n,r=this,i=r.axis,s=i.options,a=i.chart,o=i.categories,l=i.logarithmic,c=i.names,u=r.pos,h=_r(r.options&&r.options.labels,s.labels),d=i.tickPositions,p=u===d[0],f=u===d[d.length-1],g=(!h.step||1===h.step)&&1===i.tickInterval,m=d.info,b=r.label,y=this.parameters.category||(o?_r(o[u],c[u],u):u);l&&Or(y)&&(y=Sr(l.lin2log(y))),i.dateTime&&(m?t=(e=a.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid&&m.higherRanks[u]||m.unitName])).main:Or(y)&&(t=i.dateTime.getXDateFormat(y,s.dateTimeLabelFormats||{}))),r.isFirst=p,r.isLast=f;let v={axis:i,chart:a,dateTimeLabelFormat:t,isFirst:p,isLast:f,pos:u,tick:r,tickPositionInfo:m,value:y};Tr(this,"labelFormat",v);let x=t=>h.formatter?h.formatter.call(t,t):h.format?(t.text=i.defaultLabelFormatter.call(t),pe.format(h.format,t,a)):i.defaultLabelFormatter.call(t),w=x.call(v,v),k=e&&e.list;r.shortenLabel=k?function(){for(n=0;n<k.length;n++)if(Mr(v,{dateTimeLabelFormat:k[n]}),b.attr({text:x.call(v,v)}),b.getBBox().width<i.getSlotWidth(r)-2*(h.padding||0))return;b.attr({text:""})}:void 0,g&&i._addedPlotLB&&r.moveLabel(w,h),Cr(b)||r.movedLabel?b&&b.textStr!==w&&!g&&(!b.textWidth||h.style.width||b.styles.width||b.css({width:null}),b.attr({text:w}),b.textPxLength=b.getBBox().width):(r.label=b=r.createLabel(w,h),r.rotation=0)}createLabel(t,e,n){let r=this.axis,{renderer:i,styledMode:s}=r.chart,a=Cr(t)&&e.enabled?i.text(t,n?.x,n?.y,e.useHTML).add(r.labelGroup):void 0;if(a){let t=e.style.whiteSpace||"normal";s||a.css(Lr(e.style,{whiteSpace:"nowrap"})),a.textPxLength=a.getBBox().width,s||a.css({whiteSpace:t})}return a}destroy(){Er(this,this.axis)}getPosition(t,e,n,r){let i=this.axis,s=i.chart,a=r&&s.oldChartHeight||s.chartHeight,o={x:t?Sr(i.translate(e+n,void 0,void 0,r)+i.transB):i.left+i.offset+(i.opposite?(r&&s.oldChartWidth||s.chartWidth)-i.right-i.left:0),y:t?a-i.bottom+i.offset-(i.opposite?i.height:0):Sr(a-i.translate(e+n,void 0,void 0,r)-i.transB)};return o.y=Ar(o.y,-1e9,1e9),Tr(this,"afterGetPosition",{pos:o}),o}getLabelPosition(t,e,n,r,i,s,a,o){let l,c,u=this.axis,h=u.transA,d=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,p=u.staggerLines,f=u.tickRotCorr||{x:0,y:0},g=r||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),m=i.distance,b={};return l=0===u.side?n.rotation?-m:-n.getBBox().height:2===u.side?f.y+m:Math.cos(n.rotation*kr)*(f.y-n.getBBox(!1,0).height/2),Cr(i.y)&&(l=0===u.side&&u.horiz?i.y+l:i.y),t=t+_r(i.x,[0,1,0,-1][u.side]*m)+g+f.x-(s&&r?s*h*(d?-1:1):0),e=e+l-(s&&!r?s*h*(d?1:-1):0),p&&(c=a/(o||1)%p,u.opposite&&(c=p-c-1),e+=c*(u.labelOffset/p)),b.x=t,b.y=Math.round(e),Tr(this,"afterGetLabelPosition",{pos:b,tickmarkOffset:s,index:a}),b}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(t,e,n,r,i=!1,s){return s.crispLine([["M",t,e],["L",t+(i?0:-n),e+(i?n:0)]],r)}handleOverflow(t){let e,n,r,i=this.axis,s=i.options.labels,a=t.x,o=i.chart.chartWidth,l=i.chart.spacing,c=_r(i.labelLeft,Math.min(i.pos,l[3])),u=_r(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,o-l[1])),h=this.label,d=this.rotation,p=Pr(i.labelAlign||h.attr("align")),f=h.getBBox().width,g=i.getSlotWidth(this),m=g,b=1;d||"justify"!==s.overflow?d<0&&a-p*f<c?r=Math.round(a/Math.cos(d*kr)-c):d>0&&a+p*f>u&&(r=Math.round((o-a)/Math.cos(d*kr))):(e=a-p*f,n=a+(1-p)*f,e<c?m=t.x+m*(1-p)-c:n>u&&(m=u-t.x+m*p,b=-1),(m=Math.min(g,m))<g&&"center"===i.labelAlign&&(t.x+=b*(g-m-p*(g-Math.min(f,m)))),(f>m||i.autoRotation&&(h.styles||{}).width)&&(r=m)),r&&h&&(this.shortenLabel?this.shortenLabel():h.css(Mr({},{width:Math.floor(r)+"px",lineClamp:i.isRadial?0:1})))}moveLabel(t,e){let n,r=this,i=r.label,s=r.axis,a=!1;i&&i.textStr===t?(r.movedLabel=i,a=!0,delete r.label):jr(s.ticks,function(e){a||e.isNew||e===r||!e.label||e.label.textStr!==t||(r.movedLabel=e.label,a=!0,e.labelPos=r.movedLabel.xy,delete e.label)}),!a&&(r.labelPos||i)&&(n=r.labelPos||i.xy,r.movedLabel=r.createLabel(t,e,n),r.movedLabel&&r.movedLabel.attr({opacity:0}))}render(t,e,n){let r=this.axis,i=r.horiz,s=this.pos,a=_r(this.tickmarkOffset,r.tickmarkOffset),o=this.getPosition(i,s,a,e),l=o.x,c=o.y,u=r.pos,h=u+r.len,d=i?l:c;!r.chart.polar&&this.isNew&&(Sr(d)<u||d>h)&&(n=0);let p=_r(n,this.label&&this.label.newOpacity,1);n=_r(n,1),this.isActive=!0,this.renderGridLine(e,n),this.renderMark(o,n),this.renderLabel(o,e,p,t),this.isNew=!1,Tr(this,"afterRender")}renderGridLine(t,e){let n,r=this.axis,i=r.options,s={},a=this.pos,o=this.type,l=_r(this.tickmarkOffset,r.tickmarkOffset),c=r.chart.renderer,u=this.gridLine,h=i.gridLineWidth,d=i.gridLineColor,p=i.gridLineDashStyle;"minor"===this.type&&(h=i.minorGridLineWidth,d=i.minorGridLineColor,p=i.minorGridLineDashStyle),u||(r.chart.styledMode||(s.stroke=d,s["stroke-width"]=h||0,s.dashstyle=p),o||(s.zIndex=1),t&&(e=0),this.gridLine=u=c.path().attr(s).addClass("highcharts-"+(o?o+"-":"")+"grid-line").add(r.gridGroup)),u&&(n=r.getPlotLinePath({value:a+l,lineWidth:u.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&u[t||this.isNew?"attr":"animate"]({d:n,opacity:e})}renderMark(t,e){let n=this.axis,r=n.options,i=n.chart.renderer,s=this.type,a=n.tickSize(s?s+"Tick":"tick"),o=t.x,l=t.y,c=_r(r["minor"!==s?"tickWidth":"minorTickWidth"],!s&&n.isXAxis?1:0),u=r["minor"!==s?"tickColor":"minorTickColor"],h=this.mark,d=!h;a&&(n.opposite&&(a[0]=-a[0]),h||(this.mark=h=i.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||h.attr({stroke:u,"stroke-width":c})),h[d?"attr":"animate"]({d:this.getMarkPath(o,l,a[0],h.strokeWidth(),n.horiz,i),opacity:e}))}renderLabel(t,e,n,r){let i=this.axis,s=i.horiz,a=i.options,o=this.label,l=a.labels,c=l.step,u=_r(this.tickmarkOffset,i.tickmarkOffset),h=t.x,d=t.y,p=!0;o&&Or(h)&&(o.xy=t=this.getLabelPosition(h,d,o,s,l,u,r,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?p=!1:!s||l.step||l.rotation||e||0===n||this.handleOverflow(t),c&&r%c&&(p=!1),p&&Or(t.y)?(t.opacity=n,o[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(o.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:Rr}=Dt,{xAxis:Dr,yAxis:Nr}=mr,{defaultOptions:Br}=gt,{registerEventOptions:Fr}=wr,{deg2rad:zr}=w,{arrayMax:Hr,arrayMin:qr,clamp:Wr,correctFloat:Ur,defined:Xr,destroyObjectProperties:Yr,erase:Gr,error:Vr,extend:Kr,fireEvent:$r,getClosestDistance:Zr,insertItem:Jr,isArray:Qr,isNumber:ti,isString:ei,merge:ni,normalizeTickInterval:ri,objectEach:ii,pick:si,relativeLength:ai,removeEvent:oi,splat:li,syncTimeout:ci}=Y,ui=(t,e)=>ri(e,void 0,void 0,si(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount);Kr(Br,{xAxis:Dr,yAxis:ni(Dr,Nr)});class hi{constructor(t,e,n){this.init(t,e,n)}init(t,e,n=this.coll){let r="xAxis"===n,i=this.isZAxis||(t.inverted?!r:r);this.chart=t,this.horiz=i,this.isXAxis=r,this.coll=n,$r(this,"init",{userOptions:e}),this.opposite=si(e.opposite,this.opposite),this.side=si(e.side,this.side,i?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);let s=this.options,a=s.labels;this.type??(this.type=s.type||"linear"),this.uniqueNames??(this.uniqueNames=s.uniqueNames??!0),$r(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=si(s.reversed,this.reversed),this.visible=s.visible,this.zoomEnabled=s.zoomEnabled,this.hasNames="category"===this.type||!0===s.categories,this.categories=Qr(s.categories)&&s.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=Xr(s.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.offset=s.offset||0,this.max=void 0,this.min=void 0;let o=si(s.crosshair,li(t.options.tooltip.crosshairs)[r?0:1]);this.crosshair=!0===o?{}:o,-1===t.axes.indexOf(this)&&(r?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),Jr(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&r&&!Xr(this.reversed)&&(this.reversed=!0),this.labelRotation=ti(a.rotation)?a.rotation:void 0,Fr(this,s),$r(this,"afterInit")}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=ni(e,Br[this.coll],t),$r(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t,e,n=this.axis,{numberFormatter:r}=this.chart,i=ti(this.value)?this.value:NaN,s=n.chart.time,a=n.categories,o=this.dateTimeLabelFormat,l=Br.lang,c=l.numericSymbols,u=l.numericSymbolMagnitude||1e3,h=n.logarithmic?Math.abs(i):n.tickInterval,d=c&&c.length;if(a)e=`${this.value}`;else if(o)e=s.dateFormat(o,i,!0);else if(d&&c&&h>=1e3)for(;d--&&void 0===e;)h>=(t=Math.pow(u,d+1))&&10*i%t==0&&null!==c[d]&&0!==i&&(e=r(i/t,-1)+c[d]);return void 0===e&&(e=Math.abs(i)>=1e4?r(i,-1):r(i,-1,void 0,"")),e}getSeriesExtremes(){let t,e=this;$r(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(n=>{if(n.reserveSpace()){let r,i,s,a=n.options,o=a.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(o||0)&&(o=void 0),e.isXAxis)(r=n.getColumn("x")).length&&(r=e.logarithmic?r.filter(t=>t>0):r,i=(t=n.getXExtremes(r)).min,s=t.max,ti(i)||i instanceof Date||(r=r.filter(ti),i=(t=n.getXExtremes(r)).min,s=t.max),r.length&&(e.dataMin=Math.min(si(e.dataMin,i),i),e.dataMax=Math.max(si(e.dataMax,s),s)));else{let t=n.applyExtremes();ti(t.dataMin)&&(i=t.dataMin,e.dataMin=Math.min(si(e.dataMin,i),i)),ti(t.dataMax)&&(s=t.dataMax,e.dataMax=Math.max(si(e.dataMax,s),s)),Xr(o)&&(e.threshold=o),(!a.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),$r(this,"afterGetSeriesExtremes")}translate(t,e,n,r,i,s){let a=this.linkedParent||this,o=r&&a.old?a.old.min:a.min;if(!ti(o))return NaN;let l=a.minPixelPadding,c=(a.isOrdinal||a.brokenAxis?.hasBreaks||a.logarithmic&&i)&&a.lin2val,u=1,h=0,d=r&&a.old?a.old.transA:a.transA,p=0;return d||(d=a.transA),n&&(u*=-1,h=a.len),a.reversed&&(u*=-1,h-=u*(a.sector||a.len)),e?(p=(t=t*u+h-l)/d+o,c&&(p=a.lin2val(p))):(c&&(t=a.val2lin(t)),p=u*(t-o)*d+h+u*l+(ti(s)?d*s:0),a.isRadial||(p=Ur(p))),p}toPixels(t,e){return this.translate(this.chart?.time.parse(t)??NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e,n,r,i,s,a=this,o=a.chart,l=a.left,c=a.top,u=t.old,h=t.value,d=t.lineWidth,p=u&&o.oldChartHeight||o.chartHeight,f=u&&o.oldChartWidth||o.chartWidth,g=a.transB,m=t.translatedValue,b=t.force;function y(t,e,n){return"pass"!==b&&(t<e||t>n)&&(b?t=Wr(t,e,n):s=!0),t}let v={value:h,lineWidth:d,old:u,force:b,acrossPanes:t.acrossPanes,translatedValue:m};return $r(this,"getPlotLinePath",v,function(t){e=r=(m=Wr(m=si(m,a.translate(h,void 0,void 0,u)),-1e9,1e9))+g,n=i=p-m-g,ti(m)?a.horiz?(n=c,i=p-a.bottom+(a.options.isInternal?0:o.scrollablePixelsY||0),e=r=y(e,l,l+a.width)):(e=l,r=f-a.right+(o.scrollablePixelsX||0),n=i=y(n,c,c+a.height)):(s=!0,b=!1),t.path=s&&!b?void 0:o.renderer.crispLine([["M",e,n],["L",r,i]],d||1)}),v.path}getLinearTickPositions(t,e,n){let r,i,s,a=Ur(Math.floor(e/t)*t),o=Ur(Math.ceil(n/t)*t),l=[];if(Ur(a+t)===a&&(s=20),this.single)return[e];for(r=a;r<=o&&(l.push(r),(r=Ur(r+t,s))!==i);)i=r;return l}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return!0===t?si(e,"auto"):!1!==t?e:void 0}getMinorTickPositions(){let t,e=this.options,n=this.tickPositions,r=this.minorTickInterval,i=this.pointRangePadding||0,s=(this.min||0)-i,a=(this.max||0)+i,o=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:a-s,l=[];if(o&&o/r<this.len/3){let i=this.logarithmic;if(i)this.paddedTicks.forEach(function(t,e,n){e&&l.push.apply(l,i.getLogTickPositions(r,n[e-1],n[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),s,a,e.startOfWeek));else for(t=s+(n[0]-s)%r;t<=a&&t!==l[0];t+=r)l.push(t)}return 0!==l.length&&this.trimTicks(l),l}adjustForMinRange(){let t,e,n,r,i=this.options,s=this.logarithmic,a=this.chart.time,{max:o,min:l,minRange:c}=this;this.isXAxis&&void 0===c&&!s&&(c=Xr(i.min)||Xr(i.max)||Xr(i.floor)||Xr(i.ceiling)?null:Math.min(5*(Zr(this.series.map(t=>{let e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),ti(o)&&ti(l)&&ti(c)&&o-l<c&&(e=this.dataMax-this.dataMin>=c,t=(c-o+l)/2,n=[l-t,a.parse(i.min)??l-t],e&&(n[2]=s?s.log2lin(this.dataMin):this.dataMin),r=[(l=Hr(n))+c,a.parse(i.max)??l+c],e&&(r[2]=s?s.log2lin(this.dataMax):this.dataMax),(o=qr(r))-l<c&&(n[0]=o-c,n[1]=a.parse(i.min)??o-c,l=Hr(n))),this.minRange=c,this.min=l,this.max=o}getClosest(){let t,e;if(this.categories)e=1;else{let n=[];this.series.forEach(function(t){let r=t.closestPointRange,i=t.getColumn("x");1===i.length?n.push(i[0]):t.sorted&&Xr(r)&&t.reserveSpace()&&(e=Xr(e)?Math.min(e,r):r)}),n.length&&(n.sort((t,e)=>t-e),t=Zr([n]))}return t&&e?Math.min(t,e):t||e}nameToX(t){let e,n=Qr(this.options.categories),r=n?this.categories:this.names,i=t.options.x;return t.series.requireSorting=!1,Xr(i)||(i=this.uniqueNames&&r?n?r.indexOf(t.name):si(r.keys[t.name],-1):t.series.autoIncrement()),-1===i?!n&&r&&(e=r.length):ti(i)&&(e=i),void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e}updateNames(){let t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(e=>{e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints());let n=e.getColumn("x").slice();e.data.forEach((e,r)=>{let i=n[r];e?.options&&void 0!==e.name&&void 0!==(i=t.nameToX(e))&&i!==e.x&&(n[r]=e.x=i)}),e.dataTable.setColumn("x",n)}))}setAxisTranslation(){let t,e,n=this,r=n.max-n.min,i=n.linkedParent,s=!!n.categories,a=n.isXAxis,o=n.axisPointRange||0,l=0,c=0,u=n.transA;(a||s||o)&&(t=n.getClosest(),i?(l=i.minPointOffset,c=i.pointRangePadding):n.series.forEach(function(e){let r=s?1:a?si(e.options.pointRange,t,0):n.axisPointRange||0,i=e.options.pointPlacement;if(o=Math.max(o,r),!n.single||s){let t=e.is("xrange")?!a:a;l=Math.max(l,t&&ei(i)?0:r/2),c=Math.max(c,t&&"on"===i?0:r)}}),e=n.ordinal&&n.ordinal.slope&&t?n.ordinal.slope/t:1,n.minPointOffset=l*=e,n.pointRangePadding=c*=e,n.pointRange=Math.min(o,n.single&&s?1:r),a&&t&&(n.closestPointRange=t)),n.translationSlope=n.transA=u=n.staticScale||n.len/(r+c||1),n.transB=n.horiz?n.left:n.bottom,n.minPixelPadding=u*l,$r(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return ti(t)&&ti(e)&&t-e||void 0}setTickInterval(t){let e,n,r,i,s,{categories:a,chart:o,dataMax:l,dataMin:c,dateTime:u,isXAxis:h,logarithmic:d,options:p,softThreshold:f}=this,g=o.time,m=ti(this.threshold)?this.threshold:void 0,b=this.minRange||0,{ceiling:y,floor:v,linkedTo:x,softMax:w,softMin:k}=p,A=ti(x)&&o[this.coll]?.[x],S=p.tickPixelInterval,C=p.maxPadding,E=p.minPadding,M=0,T=ti(p.tickInterval)&&p.tickInterval>=0?p.tickInterval:void 0;if(u||a||A||this.getTickAmount(),i=si(this.userMin,g.parse(p.min)),s=si(this.userMax,g.parse(p.max)),A?(this.linkedParent=A,e=A.getExtremes(),this.min=si(e.min,e.dataMin),this.max=si(e.max,e.dataMax),this.type!==A.type&&Vr(11,!0,o)):(f&&Xr(m)&&ti(l)&&ti(c)&&(c>=m?(n=m,E=0):l<=m&&(r=m,C=0)),this.min=si(i,n,c),this.max=si(s,r,l)),ti(this.max)&&ti(this.min)&&(d&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,si(c,this.min))&&Vr(10,!0,o),this.min=Ur(d.log2lin(this.min),16),this.max=Ur(d.log2lin(this.max),16)),this.range&&ti(c)&&(this.userMin=this.min=i=Math.max(c,this.minFromRange()||0),this.userMax=s=this.max,this.range=void 0)),$r(this,"foundExtremes"),this.adjustForMinRange(),ti(this.min)&&ti(this.max)){if(!ti(this.userMin)&&ti(k)&&k<this.min&&(this.min=i=k),!ti(this.userMax)&&ti(w)&&w>this.max&&(this.max=s=w),a||this.axisPointRange||this.stacking?.usePercentage||A||!(M=this.max-this.min)||(!Xr(i)&&E&&(this.min-=M*E),Xr(s)||!C||(this.max+=M*C)),!ti(this.userMin)&&ti(v)&&(this.min=Math.max(this.min,v)),!ti(this.userMax)&&ti(y)&&(this.max=Math.min(this.max,y)),f&&ti(c)&&ti(l)){let t=m||0;!Xr(i)&&this.min<t&&c>=t?this.min=p.minRange?Math.min(t,this.max-b):t:!Xr(s)&&this.max>t&&l<=t&&(this.max=p.minRange?Math.max(t,this.min+b):t)}!o.polar&&this.min>this.max&&(Xr(p.min)?this.max=this.min:Xr(p.max)&&(this.min=this.max)),M=this.max-this.min}if(this.min!==this.max&&ti(this.min)&&ti(this.max)?A&&!T&&S===A.options.tickPixelInterval?this.tickInterval=T=A.tickInterval:this.tickInterval=si(T,this.tickAmount?M/Math.max(this.tickAmount-1,1):void 0,a?1:M*S/Math.max(this.len,S)):this.tickInterval=1,h&&!t){let t=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(e){e.forceCrop=e.forceCropping?.(),e.processData(t)}),$r(this,"postProcessData",{hasExtremesChanged:t})}this.setAxisTranslation(),$r(this,"initialAxisTranslation"),this.pointRange&&!T&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let P=si(p.minTickInterval,u&&!this.series.some(t=>!t.sorted)?this.closestPointRange:0);!T&&this.tickInterval<P&&(this.tickInterval=P),u||d||T||(this.tickInterval=ui(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let t,e=this.options,n=e.tickPositions,r=e.tickPositioner,i=this.getMinorTickInterval(),s=!this.isPanning,a=s&&e.startOnTick,o=s&&e.endOnTick,l=[];if(this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&Xr(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==e.allowDecimals),n)l=n.slice();else if(ti(this.min)&&ti(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))l=[this.min,this.max],Vr(19,!1,this.chart);else if(this.dateTime)l=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)l=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let t=this.tickInterval,e=t;for(;e<=2*t&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&l.length>this.tickAmount);)this.tickInterval=ui(this,e*=1.1)}l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),r&&(this.tickPositions=l,(t=r.apply(this,[this.min,this.max]))&&(l=t))}this.tickPositions=l,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/e.minorTicksPerMajor:i,this.paddedTicks=l.slice(0),this.trimTicks(l,a,o),!this.isLinked&&ti(this.min)&&ti(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some(t=>t.is("heatmap")&&"between"===t.options.pointPlacement)&&(this.min-=.5,this.max+=.5),n||t||this.adjustTickAmount()),$r(this,"afterSetTickPositions")}trimTicks(t,e,n){let r=t[0],i=t[t.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if($r(this,"trimTicks"),!this.isLinked){if(e&&r!==-1/0)this.min=r;else for(;this.min-s>t[0];)t.shift();if(n)this.max=i;else for(;this.max+s<t[t.length-1];)t.pop();0===t.length&&Xr(r)&&!this.options.tickPositions&&t.push((i+r)/2)}}alignToOthers(){let t,e=this,n=e.chart,r=[this],i=e.options,s=n.options.chart,a="yAxis"===this.coll&&s.alignThresholds,o=[];if(e.thresholdAlignment=void 0,(!1!==s.alignTicks&&i.alignTicks||a)&&!1!==i.startOnTick&&!1!==i.endOnTick&&!e.logarithmic){let i=t=>{let{horiz:e,options:n}=t;return[e?n.left:n.top,n.width,n.height,n.pane].join(",")},s=i(this);n[this.coll].forEach(function(n){let{series:a}=n;a.length&&a.some(t=>t.visible)&&n!==e&&i(n)===s&&(t=!0,r.push(n))})}if(t&&a){r.forEach(t=>{let n=t.getThresholdAlignment(e);ti(n)&&o.push(n)});let t=o.length>1?o.reduce((t,e)=>t+e,0)/o.length:void 0;r.forEach(e=>{e.thresholdAlignment=t})}return t}getThresholdAlignment(t){if((!ti(this.dataMin)||this!==t&&this.series.some(t=>t.isDirty||t.isDirtyData))&&this.getSeriesExtremes(),ti(this.threshold)){let t=Wr((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}getTickAmount(){let t=this.options,e=t.tickPixelInterval,n=t.tickAmount;Xr(t.tickInterval)||n||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/e)+1),n<4&&(this.finalTickAmt=n,n=5),this.tickAmount=n}adjustTickAmount(){let t,e,n,r=this,{finalTickAmt:i,max:s,min:a,options:o,tickPositions:l,tickAmount:c,thresholdAlignment:u}=r,h=l?.length,d=si(r.threshold,r.softThreshold?0:null),p=r.tickInterval,f=()=>l.push(Ur(l[l.length-1]+p)),g=()=>l.unshift(Ur(l[0]-p));if(ti(u)&&(n=u<.5?Math.ceil(u*(c-1)):Math.floor(u*(c-1)),o.reversed&&(n=c-1-n)),r.hasData()&&ti(a)&&ti(s)){let u=()=>{r.transA*=(h-1)/(c-1),r.min=o.startOnTick?l[0]:Math.min(a,l[0]),r.max=o.endOnTick?l[l.length-1]:Math.max(s,l[l.length-1])};if(ti(n)&&ti(r.threshold)){for(;l[n]!==d||l.length!==c||l[0]>a||l[l.length-1]<s;){for(l.length=0,l.push(r.threshold);l.length<c;)void 0===l[n]||l[n]>r.threshold?g():f();if(p>8*r.tickInterval)break;p*=2}u()}else if(h<c){for(;l.length<c;)l.length%2||a===d?f():g();u()}if(Xr(i)){for(e=t=l.length;e--;)(3===i&&e%2==1||i<=2&&e>0&&e<t-1)&&l.splice(e,1);r.finalTickAmt=void 0}}}setScale(){let{coll:t,stacking:e}=this,n=!1,r=!1;this.series.forEach(t=>{n=n||t.isDirtyData||t.isDirty,r=r||t.xAxis&&t.xAxis.isDirty||!1}),this.setAxisSize();let i=this.len!==(this.old&&this.old.len);i||n||r||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(e&&"yAxis"===t&&e.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),e&&"xAxis"===t&&e.buildStacks(),this.isDirty||(this.isDirty=i||this.min!==this.old?.min||this.max!==this.old?.max)):e&&e.cleanStacks(),n&&delete this.allExtremes,$r(this,"afterSetScale")}setExtremes(t,e,n=!0,r,i){let s=this.chart;this.series.forEach(t=>{delete t.kdTree}),t=s.time.parse(t),e=s.time.parse(e),$r(this,"setExtremes",i=Kr(i,{min:t,max:e}),t=>{this.userMin=t.min,this.userMax=t.max,this.eventArgs=t,n&&s.redraw(r)})}setAxisSize(){let t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(ai(si(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),s=this.height=Math.round(ai(si(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(ai(si(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop)),o=this.left=Math.round(ai(si(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-s-a,this.right=t.chartWidth-i-o,this.len=Math.max(r?i:s,0),this.pos=r?o:a}getExtremes(){let t=this.logarithmic;return{min:t?Ur(t.lin2log(this.min)):this.min,max:t?Ur(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,n=e?e.lin2log(this.min):this.min,r=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=n:t===1/0?t=r:n>t?t=n:r<t&&(t=r),this.translate(t,0,1,0,1)}autoLabelAlign(t){let e=(si(t,0)-90*this.side+720)%360,n={align:"center"};return $r(this,"autoLabelAlign",n,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),n.align}tickSize(t){let e,n=this.options,r=si(n["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),i=n["tick"===t?"tickLength":"minorTickLength"];r&&i&&("inside"===n[t+"Position"]&&(i=-i),e=[i,r]);let s={tickSize:e};return $r(this,"afterTickSize",s),s.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,n=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||t.box)}unsquish(){let t,e,n=this.options.labels,r=n.padding||0,i=this.horiz,s=this.tickInterval,a=this.len/(((this.categories?1:0)+this.max-this.min)/s),o=n.rotation,l=Ur(.8*this.labelMetrics().h),c=Math.max(this.max-this.min,0),u=function(t){let e=(t+2*r)/(a||1);return(e=e>1?Math.ceil(e):1)*s>c&&t!==1/0&&a!==1/0&&c&&(e=Math.ceil(c/s)),Ur(e*s)},h=s,d=Number.MAX_VALUE;if(i){if(!n.staggerLines&&(ti(o)?e=[o]:a<n.autoRotationLimit&&(e=n.autoRotation)),e){let n,r;for(let i of e)(i===o||i&&i>=-90&&i<=90)&&(r=(n=u(Math.abs(l/Math.sin(zr*i))))+Math.abs(i/360))<d&&(d=r,t=i,h=n)}}else h=u(.75*l);return this.autoRotation=e,this.labelRotation=si(t,ti(o)?o:0),n.step?s:h}getSlotWidth(t){let e=this.chart,n=this.horiz,r=this.options.labels,i=Math.max(this.tickPositions.length-(this.categories?0:1),1),s=e.margin[3];if(t&&ti(t.slotWidth))return t.slotWidth;if(n&&r.step<2&&!this.isRadial)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!n){let t=r.style.width;if(void 0!==t)return parseInt(String(t),10);if(s)return s-e.spacing[3]}return.33*e.chartWidth}renderUnsquish(){let t,e=this.chart,n=e.renderer,r=this.tickPositions,i=this.ticks,s=this.options.labels,a=s.style,o=this.horiz,l=this.getSlotWidth(),c=Math.max(1,Math.round(l-(o?2*(s.padding||0):s.distance||0))),u={},h=this.labelMetrics(),d=a.lineClamp,p=d??(Math.floor(this.len/(r.length*h.h))||1),f=0;ei(s.rotation)||(u.rotation=s.rotation||0),r.forEach(function(t){let e=i[t];e.movedLabel&&e.replaceMovedLabel();let n=e.label?.textPxLength||0;n>f&&(f=n)}),this.maxLabelLength=f,this.autoRotation?f>c&&f>h.h?u.rotation=this.labelRotation:this.labelRotation=0:l&&(t=c),u.rotation&&(t=f>.5*e.chartHeight?.33*e.chartHeight:f,d||(p=1)),this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(u.align=this.labelAlign),r.forEach(function(e){let n=i[e],r=n&&n.label,s=a.width,o={};r&&(r.attr(u),n.shortenLabel?n.shortenLabel():t&&!s&&"nowrap"!==a.whiteSpace&&(t<(r.textPxLength||0)||"SPAN"===r.element.tagName)?r.css(Kr(o,{width:`${t}px`,lineClamp:p})):!r.styles.width||o.width||s||r.css({width:"auto"}),n.rotation=u.rotation)},this),this.tickRotCorr=n.rotCorr(h.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&Xr(this.min)&&Xr(this.max)}addTitle(t){let e,n=this.chart.renderer,r=this.horiz,i=this.opposite,s=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=s.textAlign)||(e=(r?{low:"left",middle:"center",high:"right"}:{low:i?"right":"left",middle:"center",high:i?"left":"right"})[s.align]),this.axisTitle=n.text(s.text||"",0,0,s.useHTML).attr({zIndex:7,rotation:s.rotation||0,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(ni(s.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||s.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)}generateTick(t){let e=this.ticks;e[t]?e[t].addLabel():e[t]=new Ir(this,t)}createGroups(){let{axisParent:t,chart:e,coll:n,options:r}=this,i=e.renderer,s=(e,s,a)=>i.g(e).attr({zIndex:a}).addClass(`highcharts-${n.toLowerCase()}${s} `+(this.isRadial?`highcharts-radial-axis${s} `:"")+(r.className||"")).add(t);this.axisGroup||(this.gridGroup=s("grid","-grid",r.gridZIndex),this.axisGroup=s("axis","",r.zIndex),this.labelGroup=s("axis-labels","-labels",r.labels.zIndex))}getOffset(){let t,e,n,r,i=this,{chart:s,horiz:a,options:o,side:l,ticks:c,tickPositions:u,coll:h}=i,d=s.inverted&&!i.isZAxis?[1,0,3,2][l]:l,p=i.hasData(),f=o.title,g=o.labels,m=ti(o.crossing),b=s.axisOffset,y=s.clipOffset,v=[-1,1,1,-1][l],x=0,w=0,k=0;if(i.showAxis=t=p||o.showEmpty,i.staggerLines=i.horiz&&g.staggerLines||void 0,i.createGroups(),p||i.isLinked?(u.forEach(function(t){i.generateTick(t)}),i.renderUnsquish(),i.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===i.labelAlign,si(g.reserveSpace,!m&&null,"center"===i.labelAlign||null,i.reserveSpaceDefault)&&u.forEach(function(t){k=Math.max(c[t].getLabelSize(),k)}),i.staggerLines&&(k*=i.staggerLines),i.labelOffset=k*(i.opposite?-1:1)):ii(c,function(t,e){t.destroy(),delete c[e]}),f?.text&&!1!==f.enabled&&(i.addTitle(t),t&&!m&&!1!==f.reserveSpace&&(i.titleOffset=x=i.axisTitle.getBBox()[a?"height":"width"],w=Xr(e=f.offset)?0:si(f.margin,a?5:10))),i.renderLine(),i.offset=v*si(o.offset,b[l]?b[l]+(o.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},r=0===l?-i.labelMetrics().h:2===l?i.tickRotCorr.y:0,n=Math.abs(k)+w,k&&(n-=r,n+=v*(a?si(g.y,i.tickRotCorr.y+v*g.distance):si(g.x,v*g.distance))),i.axisTitleMargin=si(e,n),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(c,u)),"colorAxis"!==h&&y){let t=this.tickSize("tick");b[l]=Math.max(b[l],(i.axisTitleMargin||0)+x+v*i.offset,n,u&&u.length&&t?t[0]+v*i.offset:0);let e=!i.axisLine||o.offset?0:i.axisLine.strokeWidth()/2;y[d]=Math.max(y[d],e)}$r(this,"afterGetOffset")}getLinePath(t){let e=this.chart,n=this.opposite,r=this.offset,i=this.horiz,s=this.left+(n?this.width:0)+r,a=e.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(t*=-1),e.renderer.crispLine([["M",i?this.left:s,i?a:this.top],["L",i?e.chartWidth-this.right:s,i?a:e.chartHeight-this.bottom]],t)}renderLine(){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}))}getTitlePosition(t){let e=this.horiz,n=this.left,r=this.top,i=this.len,s=this.options.title,a=e?n:r,o=this.opposite,l=this.offset,c=s.x,u=s.y,h=this.chart.renderer.fontMetrics(t),d=t?Math.max(t.getBBox(!1,0).height-h.h-1,0):0,p={low:a+(e?0:i),middle:a+i/2,high:a+(e?i:0)}[s.align],f=(e?r+this.height:n)+(e?1:-1)*(o?-1:1)*(this.axisTitleMargin||0)+[-d,d,h.f,-d][this.side],g={x:e?p+c:f+(o?this.width:0)+l+c,y:e?f+u-(o?this.height:0)+l:p+u};return $r(this,"afterGetTitlePosition",{titlePosition:g}),g}renderMinorTick(t,e){let n=this.minorTicks;n[t]||(n[t]=new Ir(this,t,"minor")),e&&n[t].isNew&&n[t].render(null,!0),n[t].render(null,!1,1)}renderTick(t,e,n){let r=this.isLinked,i=this.ticks;(!r||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(i[t]||(i[t]=new Ir(this,t)),n&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))}render(){let t,e,n=this,r=n.chart,i=n.logarithmic,s=r.renderer,a=n.options,o=n.isLinked,l=n.tickPositions,c=n.axisTitle,u=n.ticks,h=n.minorTicks,d=n.alternateBands,p=a.stackLabels,f=a.alternateGridColor,g=a.crossing,m=n.tickmarkOffset,b=n.axisLine,y=n.showAxis,v=Rr(s.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[u,h,d].forEach(function(t){ii(t,function(t){t.isActive=!1})}),ti(g)){let t=this.isXAxis?r.yAxis[0]:r.xAxis[0],e=[1,-1,-1,1][this.side];if(t){let r=t.toPixels(g,!0);n.horiz&&(r=t.len-r),n.offset=e*r}}if(n.hasData()||o){let s=n.chart.hasRendered&&n.old&&ti(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(t){n.renderMinorTick(t,s)}),l.length&&(l.forEach(function(t,e){n.renderTick(t,e,s)}),m&&(0===n.min||n.single)&&(u[-1]||(u[-1]=new Ir(n,-1,null,!0)),u[-1].render(-1))),f&&l.forEach(function(s,a){e=void 0!==l[a+1]?l[a+1]+m:n.max-m,a%2==0&&s<n.max&&e<=n.max+(r.polar?-m:m)&&(d[s]||(d[s]=new w.PlotLineOrBand(n,{})),t=s+m,d[s].options={from:i?i.lin2log(t):t,to:i?i.lin2log(e):e,color:f,className:"highcharts-alternate-grid"},d[s].render(),d[s].isActive=!0)}),n._addedPlotLB||(n._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){n.addPlotBandOrLine(t)}))}[u,h,d].forEach(function(t){let e=[],n=v.duration;ii(t,function(t,n){t.isActive||(t.render(n,!1,0),t.isActive=!1,e.push(n))}),ci(function(){let n=e.length;for(;n--;)t[e[n]]&&!t[e[n]].isActive&&(t[e[n]].destroy(),delete t[e[n]])},t!==d&&r.hasRendered&&n?n:0)}),b&&(b[b.isPlaced?"animate":"attr"]({d:this.getLinePath(b.strokeWidth())}),b.isPlaced=!0,b[y?"show":"hide"](y)),c&&y&&(c[c.isNew?"attr":"animate"](n.getTitlePosition(c)),c.isNew=!1),p&&p.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,$r(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})}getKeepProps(){return this.keepProps||hi.keepProps}destroy(t){let e=this,n=e.plotLinesAndBands,r=this.eventOptions;if($r(this,"destroy",{keepEvents:t}),t||oi(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){Yr(t)}),n){let t=n.length;for(;t--;)n[t].destroy()}for(let t in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[t]=e.plotLinesAndBandsGroups[t].destroy();ii(e,function(t,n){-1===e.getKeepProps().indexOf(n)&&delete e[n]}),this.eventOptions=r}drawCrosshair(t,e){let n,r,i,s,a=this.crosshair,o=si(a&&a.snap,!0),l=this.chart,c=this.cross;if($r(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),a&&!1!==(Xr(e)||!o)){if(o?Xr(e)&&(r=si("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):r=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),Xr(r)&&(s={value:e&&(this.isXAxis?e.x:si(e.stackY,e.y)),translatedValue:r},l.polar&&Kr(s,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),n=this.getPlotLinePath(s)||null),!Xr(n))return void this.hideCrosshair();i=this.categories&&!this.isRadial,c||(this.cross=c=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(i?"category ":"thin ")+(a.className||"")).attr({zIndex:si(a.zIndex,2)}).add(),!l.styledMode&&(c.attr({stroke:a.color||(i?xt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":si(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&c.attr({dashstyle:a.dashStyle}))),c.show().attr({d:n}),i&&!a.width&&c.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();$r(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){this.cross&&this.cross.hide(),$r(this,"afterHideCrosshair")}update(t,e){let n=this.chart;t=ni(this.userOptions,t),this.destroy(!0),this.init(n,t),n.isDirtyBox=!0,si(e,!0)&&n.redraw()}remove(t){let e=this.chart,n=this.coll,r=this.series,i=r.length;for(;i--;)r[i]&&r[i].remove(!1);Gr(e.axes,this),Gr(e[n]||[],this),e.orderItems(n),this.destroy(),e.isDirtyBox=!0,si(t,!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}}hi.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"];let{addEvent:di,getMagnitude:pi,normalizeTickInterval:fi,timeUnits:gi}=Y;!function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(){"datetime"===this.type?this.dateTime||(this.dateTime=new r(this)):this.dateTime=void 0}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,di(t,"afterSetType",n)),t};class r{constructor(t){this.axis=t}normalizeTimeTickInterval(t,e){let n,r=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]],i=r[r.length-1],s=gi[i[0]],a=i[1];for(n=0;n<r.length&&(s=gi[(i=r[n])[0]],a=i[1],!(r[n+1]&&t<=(s*a[a.length-1]+gi[r[n+1][0]])/2));n++);return s===gi.year&&t<5*s&&(a=[1,2,5]),{unitRange:s,count:fi(t/s,a,"year"===i[0]?Math.max(pi(t/s),1):1),unitName:i[0]}}getXDateFormat(t,e){let{axis:n}=this,r=n.chart.time;return n.closestPointRange?r.getDateFormat(n.closestPointRange,t,n.options.startOfWeek,e)||r.resolveDTLFormat(e.year).main:r.resolveDTLFormat(e.day).main}}t.Additions=r}(o||(o={}));let mi=o,{addEvent:bi,normalizeTickInterval:yi,pick:vi}=Y;!function(t){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new r(this))}function n(){let t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),bi(t,"afterSetType",e),bi(t,"afterInit",n)),t};class r{constructor(t){this.axis=t}getLogTickPositions(t,e,n,r){let i=this.axis,s=i.len,a=i.options,o=[];if(r||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),o=i.getLinearTickPositions(t,e,n);else if(t>=.08){let i,s,a,l,c,u,h;for(i=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],s=Math.floor(e);s<n+1&&!h;s++)for(a=0,l=i.length;a<l&&!h;a++)(c=this.log2lin(this.lin2log(s)*i[a]))>e&&(!r||u<=n)&&void 0!==u&&o.push(u),u>n&&(h=!0),u=c}else{let l=this.lin2log(e),c=this.lin2log(n),u=r?i.getMinorTickInterval():a.tickInterval,h=a.tickPixelInterval/(r?5:1),d=r?s/i.tickPositions.length:s;t=yi(t=vi("auto"===u?null:u,this.minorAutoInterval,(c-l)*h/(d||1))),o=i.getLinearTickPositions(t,l,c).map(this.log2lin),r||(this.minorAutoInterval=t/5)}return r||(i.tickInterval=t),o}lin2log(t){return Math.pow(10,t)}log2lin(t){return Math.log(t)/Math.LN10}}t.Additions=r}(l||(l={}));let xi=l,{erase:wi,extend:ki,isNumber:Ai}=Y;!function(t){let e;function n(t){return this.addPlotBandOrLine(t,"plotBands")}function r(t,n){let r=this.userOptions,i=new e(this,t);if(this.visible&&(i=i.render()),i){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(t=>{this.addPlotBandOrLine(t)})),n){let e=r[n]||[];e.push(t),r[n]=e}this.plotLinesAndBands.push(i)}return i}function i(t){return this.addPlotBandOrLine(t,"plotLines")}function s(t,e,n){n=n||this.options;let r,i,s=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),a=[],o=this.horiz,l=!Ai(this.min)||!Ai(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,c=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),u=1;if(c&&s)for(l&&(i=c.toString()===s.toString(),u=0),r=0;r<c.length;r+=2){let t=c[r],e=c[r+1],n=s[r],l=s[r+1];("M"===t[0]||"L"===t[0])&&("M"===e[0]||"L"===e[0])&&("M"===n[0]||"L"===n[0])&&("M"===l[0]||"L"===l[0])&&(o&&n[1]===t[1]?(n[1]+=u,l[1]+=u):o||n[2]!==t[2]||(n[2]+=u,l[2]+=u),a.push(["M",t[1],t[2]],["L",e[1],e[2]],["L",l[1],l[2]],["L",n[1],n[2]],["Z"])),a.isFlat=i}return a}function a(t){this.removePlotBandOrLine(t)}function o(t){let e=this.plotLinesAndBands,n=this.options,r=this.userOptions;if(e){let i=e.length;for(;i--;)e[i].id===t&&e[i].destroy();[n.plotLines||[],r.plotLines||[],n.plotBands||[],r.plotBands||[]].forEach(function(e){for(i=e.length;i--;)(e[i]||{}).id===t&&wi(e,e[i])})}}function l(t){this.removePlotBandOrLine(t)}t.compose=function(t,c){let u=c.prototype;return u.addPlotBand||(e=t,ki(u,{addPlotBand:n,addPlotLine:i,addPlotBandOrLine:r,getPlotBandPath:s,removePlotBand:a,removePlotLine:l,removePlotBandOrLine:o})),c}}(c||(c={}));let Si=c,{addEvent:Ci,arrayMax:Ei,arrayMin:Mi,defined:Ti,destroyObjectProperties:Pi,erase:Oi,fireEvent:Li,merge:ji,objectEach:_i,pick:Ii}=Y;class Ri{static compose(t,e){return Ci(t,"afterInit",function(){this.labelCollectors.push(()=>{let t=[];for(let e of this.axes)for(let{label:n,options:r}of e.plotLinesAndBands)n&&!r?.label?.allowOverlap&&t.push(n);return t})}),Si.compose(Ri,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){Li(this,"render");let t,{axis:e,options:n}=this,{horiz:r,logarithmic:i}=e,{color:s,events:a,zIndex:o=0}=n,{renderer:l,time:c}=e.chart,u={},h=c.parse(n.to),d=c.parse(n.from),p=c.parse(n.value),f=n.borderWidth,g=n.label,{label:m,svgElem:b}=this,y=[],v=Ti(d)&&Ti(h),x=Ti(p),w=!b,k={class:"highcharts-plot-"+(v?"band ":"line ")+(n.className||"")},A=v?"bands":"lines";if(!e.chart.styledMode&&(x?(k.stroke=s||"#999999",k["stroke-width"]=Ii(n.width,1),n.dashStyle&&(k.dashstyle=n.dashStyle)):v&&(k.fill=s||"#e6e9ff",f&&(k.stroke=n.borderColor,k["stroke-width"]=f))),u.zIndex=o,A+="-"+o,(t=e.plotLinesAndBandsGroups[A])||(e.plotLinesAndBandsGroups[A]=t=l.g("plot-"+A).attr(u).add()),b||(this.svgElem=b=l.path().attr(k).add(t)),Ti(p))y=e.getPlotLinePath({value:i?.log2lin(p)??p,lineWidth:b.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!Ti(d)||!Ti(h))return;y=e.getPlotBandPath(i?.log2lin(d)??d,i?.log2lin(h)??h,n)}return!this.eventsAdded&&a&&(_i(a,(t,e)=>{b?.on(e,t=>{a[e].apply(this,[t])})}),this.eventsAdded=!0),!w&&b.d||!y?.length?b&&(y?(b.show(),b.animate({d:y})):b.d&&(b.hide(),m&&(this.label=m=m.destroy()))):b.attr({d:y}),g&&(Ti(g.text)||Ti(g.formatter))&&y?.length&&e.width>0&&e.height>0&&!y.isFlat?(g=ji({align:r&&v?"center":void 0,x:r?!v&&4:10,verticalAlign:!r&&v?"middle":void 0,y:r?v?16:10:v?6:-4,rotation:r&&!v?90:0,...v?{inside:!0}:{}},g),this.renderLabel(g,y,v,o)):m&&m.hide(),this}renderLabel(t,e,n,r){let i=this.axis,s=i.chart.renderer,a=t.inside,o=this.label;o||(this.label=o=s.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(t.className||""),zIndex:r}),i.chart.styledMode||o.css(ji({fontSize:"0.8em",textOverflow:n&&!a?"":"ellipsis"},t.style)),o.add());let l=e.xBounds||[e[0][1],e[1][1],n?e[2][1]:e[0][1]],c=e.yBounds||[e[0][2],e[1][2],n?e[2][2]:e[0][2]],u=Mi(l),h=Mi(c),d=Ei(l)-u;o.align(t,!1,{x:u,y:h,width:d,height:Ei(c)-h}),(!o.alignValue||"left"===o.alignValue||Ti(a))&&o.css({width:(t.style?.width||(n&&a?d:90===o.rotation?i.height-(o.alignAttr.y-i.top):(t.clip?i.width:i.chart.chartWidth)-(o.alignAttr.x-i.left)))+"px"}),o.show(!0)}getLabelText(t){return Ti(t.formatter)?t.formatter.call(this):t.text}destroy(){Oi(this.axis.plotLinesAndBands,this),delete this.axis,Pi(this)}}let{animObject:Di}=Dt,{format:Ni}=pe,{composed:Bi,dateFormats:Fi,doc:zi,isSafari:Hi}=w,{distribute:qi}=ve,{addEvent:Wi,clamp:Ui,css:Xi,discardElement:Yi,extend:Gi,fireEvent:Vi,isArray:Ki,isNumber:$i,isObject:Zi,isString:Ji,merge:Qi,pick:ts,pushUnique:es,splat:ns,syncTimeout:rs}=Y;class is{constructor(t,e,n){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=n}bodyFormatter(t){return t.map(t=>{let e=t.series.tooltipOptions,n=t.formatPrefix||"point";return(e[n+"Formatter"]||t.tooltipFormatter).call(t,e[n+"Format"]||"")})}cleanSplit(t){this.chart.series.forEach(function(e){let n=e&&e.tt;n&&(!n.isActive||t?e.tt=n.destroy():n.isActive=!1)})}defaultFormatter(t){let e,n=this.points||ns(this);return(e=(e=[t.headerFooterFormatter(n[0])]).concat(t.bodyFormatter(n))).push(t.headerFooterFormatter(n[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),Yi(this.container)),Y.clearTimeout(this.hideTimer)}getAnchor(t,e){let n,{chart:r,pointer:i}=this,s=r.inverted,a=r.plotTop,o=r.plotLeft;if((t=ns(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=i.normalize(e)),n=[e.chartX-o,e.chartY-a];else if(t[0].tooltipPos)n=t[0].tooltipPos;else{let r=0,i=0;t.forEach(function(t){let e=t.pos(!0);e&&(r+=e[0],i+=e[1])}),r/=t.length,i/=t.length,this.shared&&t.length>1&&e&&(s?r=e.chartX:i=e.chartY),n=[r-o,i-a]}return n.map(Math.round)}getClassName(t,e,n){let r=this.options,i=t.series,s=i.options;return[r.className,"highcharts-label",n&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+ts(t.colorIndex,i.colorIndex),s&&s.className].filter(Ji).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let n=this,r=this.chart.styledMode,i=this.options,s=this.split&&this.allowShared,a=this.container,o=this.chart.renderer;if(this.label){let t=!this.label.hasClass("highcharts-label");(!s&&t||s&&!t)&&this.destroy()}if(!this.label){if(this.outside){let t=this.chart,e=t.options.chart.style,n=fe.getRendererType();this.container=a=w.doc.createElement("div"),a.className="highcharts-tooltip-container "+(t.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),Xi(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),this.renderer=o=new n(a,0,0,e,void 0,void 0,o.styledMode)}if(s?this.label=o.g("tooltip"):(this.label=o.label("",t,e,i.shape,void 0,void 0,i.useHTML,void 0,"tooltip").attr({padding:i.padding,r:i.borderRadius}),r||this.label.attr({fill:i.backgroundColor,"stroke-width":i.borderWidth||0}).css(i.style).css({pointerEvents:i.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),n.outside){let t=this.label;[t.xSetter,t.ySetter].forEach((e,r)=>{t[r?"ySetter":"xSetter"]=i=>{e.call(t,n.distance),t[r?"y":"x"]=i,a&&(a.style[r?"top":"left"]=`${i}px`)}})}this.label.attr({zIndex:8}).shadow(i.shadow).add()}return a&&!a.parentElement&&w.doc.body.appendChild(a),this.label}getPlayingField(){let{body:t,documentElement:e}=zi,{chart:n,distance:r,outside:i}=this;return{width:i?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*r-2:n.chartWidth,height:i?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):n.chartHeight}}getPosition(t,e,n){let r,{distance:i,chart:s,outside:a,pointer:o}=this,{inverted:l,plotLeft:c,plotTop:u,polar:h}=s,{plotX:d=0,plotY:p=0}=n,f={},g=l&&n.h||0,{height:m,width:b}=this.getPlayingField(),y=o.getChartPosition(),v=t=>t*y.scaleX,x=t=>t*y.scaleY,w=n=>{let r="x"===n;return[n,r?b:m,r?t:e].concat(a?[r?v(t):x(e),r?y.left-i+v(d+c):y.top-i+x(p+u),0,r?b:m]:[r?t:e,r?d+c:p+u,r?c:u,r?c+s.plotWidth:u+s.plotHeight])},k=w("y"),A=w("x"),S=!!n.negative;!h&&s.hoverSeries?.yAxis?.reversed&&(S=!S);let C=!this.followPointer&&ts(n.ttBelow,!h&&!l===S),E=function(t,e,n,r,s,o,l){let c=a?"y"===t?x(i):v(i):i,u=(n-r)/2,h=r<s-i,d=s+i+r<e,p=s-c-n+u,m=s+c-u;if(C&&d)f[t]=m;else if(!C&&h)f[t]=p;else if(h)f[t]=Math.min(l-r,p-g<0?p:p-g);else{if(!d)return!1;f[t]=Math.max(o,m+g+n>e?m:m+g)}},M=function(t,e,n,r,s){if(s<i||s>e-i)return!1;f[t]=s<n/2?1:s>e-r/2?e-r-2:s-n/2},T=function(t){[k,A]=[A,k],r=t},P=()=>{!1!==E.apply(0,k)?!1!==M.apply(0,A)||r||(T(!0),P()):r?f.x=f.y=0:(T(!0),P())};return(l&&!h||this.len>1)&&T(),P(),f}hide(t){let e=this;Y.clearTimeout(this.hideTimer),t=ts(t,this.options.hideDelay),this.isHidden||(this.hideTimer=rs(function(){let n=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:()=>{n.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))}init(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=ts(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))}shouldStickOnContact(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.pointer.inClass(t.target,"highcharts-tooltip"))}move(t,e,n,r){let i=this,s=Di(!i.isHidden&&i.options.animation),a={x:t,y:e};i.followPointer||(i.len||0)>1||(a.anchorX=n,a.anchorY=r),s.step=()=>i.drawTracker(),i.getLabel().animate(a,s)}refresh(t,e){let{chart:n,options:r,pointer:i,shared:s}=this,a=ns(t),o=a[0],l=r.format,c=r.formatter||this.defaultFormatter,u=n.styledMode,h=this.allowShared;if(!r.enabled||!o.series)return;Y.clearTimeout(this.hideTimer),this.allowShared=!(!Ki(t)&&t.series&&t.series.noSharedTooltip),h=h&&!this.allowShared,this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;let d=this.getAnchor(t,e),p=d[0],f=d[1];s&&this.allowShared&&(i.applyInactiveState(a),a.forEach(t=>t.setState("hover")),o.points=a),this.len=a.length;let g=Ji(l)?Ni(l,o,n):c.call(o,this);o.points=void 0;let m=o.series;if(this.distance=ts(m.tooltipOptions.distance,16),!1===g)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(g,a);else{let t=p,s=f;if(e&&i.isDirectTouch&&(t=e.chartX-n.plotLeft,s=e.chartY-n.plotTop),!n.polar&&!1!==m.options.clip&&!a.some(e=>i.isDirectTouch||e.series.shouldShowTooltip(t,s)))return void this.hide();{let t=this.getLabel(h&&this.tt||{});(!r.style.width||u)&&t.css({width:(this.outside?this.getPlayingField():n.spacingBox).width+"px"}),t.attr({class:this.getClassName(o),text:g&&g.join?g.join(""):g}),this.outside&&t.attr({x:Ui(t.x||0,0,this.getPlayingField().width-(t.width||0)-1)}),u||t.attr({stroke:r.borderColor||o.color||m.color||"#666666"}),this.updatePosition({plotX:p,plotY:f,negative:o.negative,ttBelow:o.ttBelow,h:d[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}Vi(this,"refresh")}renderSplit(t,e){let n=this,{chart:r,chart:{chartWidth:i,chartHeight:s,plotHeight:a,plotLeft:o,plotTop:l,scrollablePixelsY:c=0,scrollablePixelsX:u,styledMode:h},distance:d,options:p,options:{positioner:f},pointer:g}=n,{scrollLeft:m=0,scrollTop:b=0}=r.scrollablePlotArea?.scrollingContainer||{},y=n.outside&&"number"!=typeof u?zi.documentElement.getBoundingClientRect():{left:m,right:m+i,top:b,bottom:b+s},v=n.getLabel(),x=this.renderer||r.renderer,w=!(!r.xAxis[0]||!r.xAxis[0].opposite),{left:k,top:A}=g.getChartPosition(),S=l+b,C=0,E=a-c;function M(t,e,r,i,s=!0){let a,o;return r?(a=w?0:E,o=Ui(t-i/2,y.left,y.right-i-(n.outside?k:0))):(a=e-S,o=Ui(o=s?t-i-d:t+d,s?o:y.left,y.right)),{x:o,y:a}}Ji(t)&&(t=[!1,t]);let T=t.slice(0,e.length+1).reduce(function(t,r,i){if(!1!==r&&""!==r){let s=e[i-1]||{isHeader:!0,plotX:e[0].plotX,plotY:a,series:{}},c=s.isHeader,u=c?n:s.series,g=u.tt=function(t,e,r){let i=t,{isHeader:s,series:a}=e;if(!i){let t={padding:p.padding,r:p.borderRadius};h||(t.fill=p.backgroundColor,t["stroke-width"]=p.borderWidth??1),i=x.label("",0,0,p[s?"headerShape":"shape"],void 0,void 0,p.useHTML).addClass(n.getClassName(e,!0,s)).attr(t).add(v)}return i.isActive=!0,i.attr({text:r}),h||i.css(p.style).attr({stroke:p.borderColor||e.color||a.color||"#333333"}),i}(u.tt,s,r.toString()),m=g.getBBox(),b=m.width+g.strokeWidth();c&&(C=m.height,E+=C,w&&(S-=C));let{anchorX:k,anchorY:A}=function(t){let e,n,{isHeader:r,plotX:i=0,plotY:s=0,series:c}=t;if(r)e=Math.max(o+i,o),n=l+a/2;else{let{xAxis:t,yAxis:r}=c;e=t.pos+Ui(i,-d,t.len+d),c.shouldShowTooltip(0,r.pos-l+s,{ignoreX:!0})&&(n=r.pos+s)}return{anchorX:e=Ui(e,y.left-d,y.right+d),anchorY:n}}(s);if("number"==typeof A){let e=m.height+1,r=f?f.call(n,b,e,s):M(k,A,c,b);t.push({align:f?0:void 0,anchorX:k,anchorY:A,boxWidth:b,point:s,rank:ts(r.rank,c?1:0),size:e,target:r.y,tt:g,x:r.x})}else g.isActive=!1}return t},[]);!f&&T.some(t=>{let{outside:e}=n,r=(e?k:0)+t.anchorX;return r<y.left&&r+t.boxWidth<y.right||r<k-y.left+t.boxWidth&&y.right-r>r})&&(T=T.map(t=>{let{x:e,y:n}=M(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return Gi(t,{target:n,x:e})})),n.cleanSplit(),qi(T,E);let P={left:k,right:k};T.forEach(function(t){let{x:e,boxWidth:r,isHeader:i}=t;!i&&(n.outside&&k+e<P.left&&(P.left=k+e),!i&&n.outside&&P.left+r>P.right&&(P.right=k+e))}),T.forEach(function(t){let{x:e,anchorX:r,anchorY:i,pos:s,point:{isHeader:a}}=t,o={visibility:void 0===s?"hidden":"inherit",x:e,y:(s||0)+S,anchorX:r,anchorY:i};if(n.outside&&e<r){let t=k-P.left;t>0&&(a||(o.x=e+t,o.anchorX=r+t),a&&(o.x=(P.right-P.left)/2,o.anchorX=r+t))}t.tt.attr(o)});let{container:O,outside:L,renderer:j}=n;if(L&&O&&j){let{width:t,height:e,x:n,y:r}=v.getBBox();j.setSize(t+n,e+r,!1),O.style.left=P.left+"px",O.style.top=A+"px"}Hi&&v.attr({opacity:1===v.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact())return void(this.tracker&&(this.tracker=this.tracker.destroy()));let t=this.chart,e=this.label,n=this.shared?t.hoverPoints:t.hoverPoint;if(!e||!n)return;let r={x:0,y:0,width:0,height:0},i=this.getAnchor(n),s=e.getBBox();i[0]+=t.plotLeft-(e.translateX||0),i[1]+=t.plotTop-(e.translateY||0),r.x=Math.min(0,i[0]),r.y=Math.min(0,i[1]),r.width=i[0]<0?Math.max(Math.abs(i[0]),s.width-i[0]):Math.max(Math.abs(i[0]),s.width),r.height=i[1]<0?Math.max(Math.abs(i[1]),s.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),s.height),this.tracker?this.tracker.attr(r):(this.tracker=e.renderer.rect(r).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(t,e){let n=t.series,r=n.tooltipOptions,i=n.xAxis,s=i&&i.dateTime,a={isFooter:e,point:t},o=r.xDateFormat||"",l=r[e?"footerFormat":"headerFormat"];return Vi(this,"headerFormatter",a,function(e){if(s&&!o&&$i(t.key)&&(o=s.getXDateFormat(t.key,r.dateTimeLabelFormats)),s&&o){if(Zi(o)){let t=o;Fi[0]=e=>n.chart.time.dateFormat(t,e),o="%0"}(t.tooltipDateKeys||["key"]).forEach(t=>{l=l.replace(RegExp("point\\."+t+"([ \\)}])",""),`(point.${t}:${o})$1`)})}n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=Ni(l,t,this.chart)}),a.text||""}update(t){this.destroy(),this.init(this.chart,Qi(!0,this.options,t))}updatePosition(t){let e,{chart:n,container:r,distance:i,options:s,pointer:a,renderer:o}=this,{height:l=0,width:c=0}=this.getLabel(),{left:u,top:h,scaleX:d,scaleY:p}=a.getChartPosition(),f=(s.positioner||this.getPosition).call(this,c,l,t),g=w.doc,m=(t.plotX||0)+n.plotLeft,b=(t.plotY||0)+n.plotTop;o&&r&&(s.positioner&&(f.x+=u-i,f.y+=h-i),e=(s.borderWidth||0)+2*i+2,o.setSize(Ui(c+e,0,g.documentElement.clientWidth)-1,l+e,!1),(1!==d||1!==p)&&(Xi(r,{transform:`scale(${d}, ${p})`}),m*=d,b*=p),m+=u-f.x,b+=h-f.y),this.move(Math.round(f.x),Math.round(f.y||0),m,b)}}!function(t){t.compose=function(e){es(Bi,"Core.Tooltip")&&Wi(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new t(e,e.options.tooltip,this))})}}(is||(is={}));let ss=is,{animObject:as}=Dt,{defaultOptions:os}=gt,{format:ls}=pe,{addEvent:cs,crisp:us,erase:hs,extend:ds,fireEvent:ps,getNestedProperty:fs,isArray:gs,isFunction:ms,isNumber:bs,isObject:ys,merge:vs,pick:xs,syncTimeout:ws,removeEvent:ks,uniqueKey:As}=Y;class Ss{animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach(function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)}),n.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(ds({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})}applyOptions(t,e){let n=this.series,r=n.options.pointValKey||n.pointValKey;return ds(this,t=Ss.prototype.optionsToObject.call(this,t)),this.options=this.options?ds(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=Ss.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state="select"),"name"in this&&void 0===e&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n?this.x=e??n.autoIncrement():bs(t.x)&&n.options.relativeXValue?this.x=n.autoIncrement(t.x):"string"==typeof this.x&&(e??(e=n.chart.time.parse(this.x)),bs(e)&&(this.x=e)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t=this,e=t.series,n=e.chart,r=e.options.dataSorting,i=n.hoverPoints,s=as(t.series.chart.renderer.globalAnimation),a=()=>{for(let e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(ks(t),t.destroyElements()),t)delete t[e]};t.legendItem&&n.legend.destroyItem(t),i&&(t.setState(),hs(i,t),i.length||(n.hoverPoints=null)),t===n.hoverPoint&&t.onMouseOut(),r&&r.enabled?(this.animateBeforeDestroy(),ws(a,s.duration)):a(),n.pointCount--}this.destroyed=!0}destroyElements(t){let e=this,n=e.getGraphicalProps(t);n.singular.forEach(function(t){e[t]=e[t].destroy()}),n.plural.forEach(function(t){e[t].forEach(function(t){t&&t.element&&t.destroy()}),delete e[t]})}firePointEvent(t,e,n){let r=this,i=this.series.options;r.manageEvent(t),"click"===t&&i.allowPointSelect&&(n=function(t){!r.destroyed&&r.select&&r.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),ps(r,t,e,n)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t){let e,n,r=this,i=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","connector"),t.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper"),n=i.length;n--;)r[e=i[n]]&&s.singular.push(e);return["graphic","dataLabel"].forEach(function(e){let n=e+"s";t[e]&&r[n]&&s.plural.push(n)}),s}getNestedProperty(t){return t?0===t.indexOf("custom.")?fs(t,this.options):this[t]:void 0}getZone(){let t,e=this.series,n=e.zones,r=e.zoneAxis||"y",i=0;for(t=n[0];this[r]>=t.value;)t=n[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(t,e,n){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,n),this.id??(this.id=As()),this.resolveColor(),t.chart.pointCount++,ps(this,"afterInit")}isValid(){return(bs(this.x)||this.x instanceof Date)&&bs(this.y)}optionsToObject(t){let e,n=this.series,r=n.options.keys,i=r||n.pointArrayMap||["y"],s=i.length,a={},o=0,l=0;if(bs(t)||null===t)a[i[0]]=t;else if(gs(t))for(!r&&t.length>s&&("string"==(e=typeof t[0])?n.xAxis?.dateTime?a.x=n.chart.time.parse(t[0]):a.name=t[0]:"number"===e&&(a.x=t[0]),o++);l<s;)r&&void 0===t[o]||(i[l].indexOf(".")>0?Ss.prototype.setNestedProperty(a,t[o],i[l]):a[i[l]]=t[o]),o++,l++;else"object"==typeof t&&(a=t,t.dataLabels&&(n.hasDataLabels=()=>!0),t.marker&&(n._hasPointMarkers=!0));return a}pos(t,e=this.plotY){if(!this.destroyed){let{plotX:n,series:r}=this,{chart:i,xAxis:s,yAxis:a}=r,o=0,l=0;if(bs(n)&&bs(e))return t&&(o=s?s.pos:i.plotLeft,l=a?a.pos:i.plotTop),i.inverted&&s&&a?[a.len-e+l,s.len-n+o]:[n+o,e+l]}}resolveColor(){let t,e,n,r=this.series,i=r.chart.options.chart,s=r.chart.styledMode,a=i.colorCount;delete this.nonZonedColor,r.options.colorByPoint?(s||(t=(e=r.options.colors||r.chart.options.colors)[r.colorCounter],a=e.length),n=r.colorCounter,r.colorCounter++,r.colorCounter===a&&(r.colorCounter=0)):(s||(t=r.color),n=r.colorIndex),this.colorIndex=xs(this.options.colorIndex,n),this.color=xs(this.options.color,t)}setNestedProperty(t,e,n){return n.split(".").reduce(function(t,n,r,i){let s=i.length-1===r;return t[n]=s?e:ys(t[n],!0)?t[n]:{},t[n]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:n=["y"],tooltipOptions:r}=this.series,{valueDecimals:i="",valuePrefix:s="",valueSuffix:a=""}=r;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),n.forEach(e=>{e="{point."+e,(s||a)&&(t=t.replace(RegExp(e+"}","g"),s+e+"}"+a)),t=t.replace(RegExp(e+"}","g"),e+":,."+i+"f}")}),ls(t,this,e)}update(t,e,n,r){let i,s=this,a=s.series,o=s.graphic,l=a.chart,c=a.options;function u(){s.applyOptions(t);let r=o&&s.hasMockGraphic,u=null===s.y?!r:r;o&&u&&(s.graphic=o.destroy(),delete s.hasMockGraphic),ys(t,!0)&&(o&&o.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=o.destroy()),t?.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy())),i=s.index;let h={};for(let t of a.dataColumnKeys())h[t]=s[t];a.dataTable.setRow(h,i),c.data[i]=ys(c.data[i],!0)||ys(t,!0)?s.options:xs(t,c.data[i]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(n)}e=xs(e,!0),!1===r?u():s.firePointEvent("update",{options:t},u)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let n=this,r=n.series,i=r.chart;t=xs(t,!n.selected),this.selectedStaging=t,n.firePointEvent(t?"select":"unselect",{accumulate:e},function(){n.selected=n.options.selected=t,r.options.data[r.data.indexOf(n)]=n.options,n.setState(t&&"select"),e||i.getSelectedPoints().forEach(function(t){let e=t.series;t.selected&&t!==n&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(i.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(t){let{inverted:e,pointer:n}=this.series.chart;n&&(t=t?n.normalize(t):n.getChartCoordinatesFromPoint(this,e),n.runPointActions(t,this))}onMouseOut(){let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){let e=vs(this.series.options.point,this.options),n=e.events?.[t];!ms(n)||this.hcEvents?.[t]&&-1!==this.hcEvents?.[t]?.map(t=>t.fn).indexOf(n)?this.importedUserEvent&&!n&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(ks(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(this.importedUserEvent?.(),this.importedUserEvent=cs(this,t,n),this.hcEvents&&(this.hcEvents[t].userEvent=!0))}setState(t,e){let n,r,i,s,a=this.series,o=this.state,l=a.options.states[t||"normal"]||{},c=os.plotOptions[a.type].marker&&a.options.marker,u=c&&!1===c.enabled,h=c&&c.states&&c.states[t||"normal"]||{},d=!1===h.enabled,p=this.marker||{},f=a.chart,g=c&&a.markerAttribs,m=a.halo,b=a.stateMarkerGraphic;if((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===l.enabled||t&&(d||u&&!1===h.enabled)||t&&p.states&&p.states[t]&&!1===p.states[t].enabled)return;if(this.state=t,g&&(n=a.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),t&&this.graphic.addClass("highcharts-point-"+t),!f.styledMode){r=a.pointAttribs(this,t),i=xs(f.options.chart.animation,l.animation);let e=r.opacity;a.options.inactiveOtherPoints&&bs(e)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:e},i),t.connector&&t.connector.animate({opacity:e},i))}),this.graphic.animate(r,i)}n&&this.graphic.animate(n,xs(f.options.chart.animation,h.animation,c.animation)),b&&b.hide()}else t&&h&&(s=p.symbol||a.symbol,b&&b.currentSymbol!==s&&(b=b.destroy()),n&&(b?b[e?"animate":"attr"]({x:n.x,y:n.y}):s&&(a.stateMarkerGraphic=b=f.renderer.symbol(s,n.x,n.y,n.width,n.height,vs(c,h)).add(a.markerGroup),b.currentSymbol=s)),!f.styledMode&&b&&"inactive"!==this.state&&b.attr(a.pointAttribs(this,t))),b&&(b[t&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));let y=l.halo,v=this.graphic||b,x=v&&v.visibility||"inherit";y&&y.size&&v&&"hidden"!==x&&!this.isCluster?(m||(a.halo=m=f.renderer.path().add(v.parentGroup)),m.show()[e?"animate":"attr"]({d:this.haloPath(y.size)}),m.attr({class:"highcharts-halo highcharts-color-"+xs(this.colorIndex,a.colorIndex)+(this.className?" "+this.className:""),visibility:x,zIndex:-1}),m.point=this,f.styledMode||m.attr(ds({fill:this.color||a.color,"fill-opacity":y.opacity},$t.filterUserAttributes(y.attributes||{})))):m?.point?.haloPath&&!m.point.destroyed&&m.animate({d:m.point.haloPath(0)},null,m.hide),ps(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(us(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let Cs=Ss,{parse:Es}=xt,{charts:Ms,composed:Ts,isTouchDevice:Ps}=w,{addEvent:Os,attr:Ls,css:js,extend:_s,find:Is,fireEvent:Rs,isNumber:Ds,isObject:Ns,objectEach:Bs,offset:Fs,pick:zs,pushUnique:Hs,splat:qs}=Y;class Ws{applyInactiveState(t){let e,n=[];(t||[]).forEach(function(t){e=t.series,n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&(n=n.concat(e.linkedSeries)),e.navigatorSeries&&n.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===n.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})}destroy(){let t=this;this.eventsToUnbind.forEach(t=>t()),this.eventsToUnbind=[],!w.chartCount&&(Ws.unbindDocumentMouseUp.forEach(t=>t.unbind()),Ws.unbindDocumentMouseUp.length=0,Ws.unbindDocumentTouchEnd&&(Ws.unbindDocumentTouchEnd=Ws.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),Bs(t,function(e,n){t[n]=void 0})}getSelectionMarkerAttrs(t,e){let n={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return Rs(this,"getSelectionMarkerAttrs",n,n=>{let r,{chart:i,zoomHor:s,zoomVert:a}=this,{mouseDownX:o=0,mouseDownY:l=0}=i,c=n.attrs;c.x=i.plotLeft,c.y=i.plotTop,c.width=s?1:i.plotWidth,c.height=a?1:i.plotHeight,s&&(r=t-o,c.width=Math.max(1,Math.abs(r)),c.x=(r>0?0:r)+o),a&&(r=e-l,c.height=Math.max(1,Math.abs(r)),c.y=(r>0?0:r)+l)}),n}drag(t){let e,{chart:n}=this,{mouseDownX:r=0,mouseDownY:i=0}=n,{panning:s,panKey:a,selectionMarkerFill:o}=n.options.chart,l=n.plotLeft,c=n.plotTop,u=n.plotWidth,h=n.plotHeight,d=Ns(s)?s.enabled:s,p=a&&t[`${a}Key`],f=t.chartX,g=t.chartY,m=this.selectionMarker;if((!m||!m.touch)&&(f<l?f=l:f>l+u&&(f=l+u),g<c?g=c:g>c+h&&(g=c+h),this.hasDragged=Math.sqrt(Math.pow(r-f,2)+Math.pow(i-g,2)),this.hasDragged>10)){e=n.isInsidePlot(r-l,i-c,{visiblePlotOnly:!0});let{shapeType:a,attrs:u}=this.getSelectionMarkerAttrs(f,g);(n.hasCartesianSeries||n.mapView)&&this.hasZoom&&e&&!p&&!m&&(this.selectionMarker=m=n.renderer[a](),m.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||m.attr({fill:o||Es("#334eff").setOpacity(.25).get()})),m&&m.attr(u),e&&!m&&d&&n.pan(t,s)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:t.getBBox()};return Rs(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:n,selectionMarker:r}=this;for(let t of n.axes)t.isPanning&&(t.isPanning=!1,(t.options.startOnTick||t.options.endOnTick||t.series.some(t=>t.boosted))&&(t.forceRedraw=!0,t.setExtremes(t.userMin,t.userMax,!1),e=!0));if(e&&n.redraw(),r&&t){if(this.hasDragged){let e=this.getSelectionBox(r);n.transform({axes:n.axes.filter(t=>t.zoomEnabled&&("xAxis"===t.coll&&this.zoomX||"yAxis"===t.coll&&this.zoomY)),selection:{originalEvent:t,xAxis:[],yAxis:[],...e},from:e})}Ds(n.index)&&(this.selectionMarker=r.destroy())}n&&Ds(n.index)&&(js(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(t,e,n){let r;return t.forEach(function(t){let i=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),s=t.searchPoint(n,i);Ns(s,!0)&&s.series&&(!Ns(r,!0)||function(t,n){let r=t.distX-n.distX,i=t.dist-n.dist,s=n.series.group?.zIndex-t.series.group?.zIndex;return 0!==r&&e?r:0!==i?i:0!==s?s:t.series.index>n.series.index?-1:1}(r,s)>0)&&(r=s)}),r}getChartCoordinatesFromPoint(t,e){let{xAxis:n,yAxis:r}=t.series,i=t.shapeArgs;if(n&&r){let s=t.clientX??t.plotX??0,a=t.plotY||0;return t.isNode&&i&&Ds(i.x)&&Ds(i.y)&&(s=i.x,a=i.y),e?{chartX:r.len+r.pos-a,chartY:n.len+n.pos-s}:{chartX:s+n.pos,chartY:a+r.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=Fs(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:n,offsetWidth:r}=t;return r>2&&n>2&&(this.chartPosition.scaleX=e.width/r,this.chartPosition.scaleY=e.height/n),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};for(let n of this.chart.axes)e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])});return e}getHoverData(t,e,n,r,i,s){let a,o=[],l=function(t){return t.visible&&!(!i&&t.directTouch)&&zs(t.options.enableMouseTracking,!0)},c=e,u={chartX:s?s.chartX:void 0,chartY:s?s.chartY:void 0,shared:i};Rs(this,"beforeGetHoverData",u),a=c&&!c.stickyTracking?[c]:n.filter(t=>t.stickyTracking&&(u.filter||l)(t));let h=r&&t||!s?t:this.findNearestKDPoint(a,i,s);return c=h&&h.series,h&&(i&&!c.noSharedTooltip?(a=n.filter(function(t){return u.filter?u.filter(t):l(t)&&!t.noSharedTooltip})).forEach(function(t){let e=Is(t.points,function(t){return t.x===h.x&&!t.isNull});Ns(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),o.push(e))}):o.push(h)),Rs(this,"afterGetHoverData",u={hoverPoint:h}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:o}}getPointFromEvent(t){let e,n=t.target;for(;n&&!e;)e=n.point,n=n.parentNode;return e}onTrackerMouseOut(t){let e=this.chart,n=t.relatedTarget,r=e.hoverSeries;this.isDirectTouch=!1,!r||!n||r.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+r.index)&&this.inClass(n,"highcharts-tracker")||r.onMouseOut()}inClass(t,e){let n,r=t;for(;r;){if(n=Ls(r,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}r=r.parentElement}}constructor(t,e){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!e.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),Rs(this,"afterInit")}normalize(t,e){let n=t.touches,r=n?n.length?n.item(0):zs(n.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let i=r.pageX-e.left,s=r.pageY-e.top;return _s(t,{chartX:Math.round(i/=e.scaleX),chartY:Math.round(s/=e.scaleY)})}onContainerClick(t){let e=this.chart,n=e.hoverPoint,r=this.normalize(t),i=e.plotLeft,s=e.plotTop;!e.cancelClick&&(n&&this.inClass(r.target,"highcharts-tracker")?(Rs(n.series,"click",_s(r,{point:n})),e.hoverPoint&&n.firePointEvent("click",r)):(_s(r,this.getCoordinates(r)),e.isInsidePlot(r.chartX-i,r.chartY-s,{visiblePlotOnly:!0})&&Rs(e,"click",r)))}onContainerMouseDown(t){let e=!(1&~(t.buttons||t.button));t=this.normalize(t),w.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||e)&&(this.zoomOption(t),e&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=Ms[zs(Ws.hoverChartIndex,-1)]||{};t=this.normalize(t),this.onContainerMouseMove(t),e&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.reset(),e.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,n=e.tooltip,r=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(r))&&this.drag(r),!e.openMenu&&(this.inClass(r.target,"highcharts-tracker")||e.isInsidePlot(r.chartX-e.plotLeft,r.chartY-e.plotTop,{visiblePlotOnly:!0}))&&(!n||!n.shouldStickOnContact(r))&&(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))}onDocumentTouchEnd(t){this.onDocumentMouseUp(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,n=e.tooltip,r=this.chartPosition,i=this.normalize(t,r);!r||e.isInsidePlot(i.chartX-e.plotLeft,i.chartY-e.plotTop,{visiblePlotOnly:!0})||n&&n.shouldStickOnContact(i)||i.target!==e.container.ownerDocument&&this.inClass(i.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){Ms[zs(Ws.hoverChartIndex,-1)]?.pointer?.drop(t)}pinch(t){let e=this,{chart:n,hasZoom:r,lastTouches:i}=e,s=[].map.call(t.touches||[],t=>e.normalize(t)),a=s.length,o=1===a&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),l=n.tooltip,c=1===a&&zs(l?.options.followTouchMove,!0);a>1?e.initiated=!0:c&&(e.initiated=!1),r&&e.initiated&&!o&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(e.pinchDown=s,e.res=!0,n.mouseDownX=t.chartX):c?this.runPointActions(e.normalize(t)):i&&(Rs(n,"touchpan",{originalEvent:t,touches:s},()=>{let e=t=>{let e=t[0],n=t[1]||e;return{x:e.chartX,y:e.chartY,width:n.chartX-e.chartX,height:n.chartY-e.chartY}};n.transform({axes:n.axes.filter(t=>t.zoomEnabled&&(this.zoomHor&&t.horiz||this.zoomVert&&!t.horiz)),to:e(s),from:e(i),trigger:t.type})}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=s}reset(t,e){let n=this.chart,r=n.hoverSeries,i=n.hoverPoint,s=n.hoverPoints,a=n.tooltip,o=a&&a.shared?s:i;t&&o&&qs(o).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?a&&o&&qs(o).length&&(a.refresh(o),a.shared&&s?s.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))}):i&&(i.setState(i.state,!0),n.axes.forEach(function(t){t.crosshair&&i.series[t.coll]===t&&t.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),s&&s.forEach(function(t){t.setState()}),r&&r.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach(function(t){t.hideCrosshair()}),n.hoverPoints=n.hoverPoint=void 0)}runPointActions(t,e,n){let r=this.chart,i=r.series,s=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,a=!!s&&s.shared,o=e||r.hoverPoint,l=o&&o.series||r.hoverSeries,c=(!t||"touchmove"!==t.type)&&(!!e||l&&l.directTouch&&this.isDirectTouch),u=this.getHoverData(o,l,i,c,a,t);o=u.hoverPoint,l=u.hoverSeries;let h=u.hoverPoints,d=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,p=a&&l&&!l.noSharedTooltip;if(o&&(n||o!==r.hoverPoint||s&&s.isHidden)){if((r.hoverPoints||[]).forEach(function(t){-1===h.indexOf(t)&&t.setState()}),r.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(h),(h||[]).forEach(function(t){t.setState("hover")}),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!o.series)return;r.hoverPoints=h,r.hoverPoint=o,o.firePointEvent("mouseOver",void 0,()=>{s&&o&&s.refresh(p?h:o,t)})}else if(d&&s&&!s.isHidden){let e=s.getAnchor([{}],t);r.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:e[0],plotY:e[1]})}this.unDocMouseMove||(this.unDocMouseMove=Os(r.container.ownerDocument,"mousemove",t=>Ms[Ws.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(t)),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach(function(e){let n,i=zs((e.crosshair||{}).snap,!0);!i||(n=r.hoverPoint)&&n.series[e.coll]===e||(n=Is(h,t=>t.series&&t.series[e.coll]===e)),n||!i?e.drawCrosshair(t,n):e.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Os(t,"mouseenter",this.onContainerMouseEnter.bind(this)),Os(t,"mouseleave",this.onContainerMouseLeave.bind(this))),Ws.unbindDocumentMouseUp.some(t=>t.doc===e)||Ws.unbindDocumentMouseUp.push({doc:e,unbind:Os(e,"mouseup",this.onDocumentMouseUp.bind(this))});let n=this.chart.renderTo.parentElement;for(;n&&"BODY"!==n.tagName;)this.eventsToUnbind.push(Os(n,"scroll",()=>{delete this.chartPosition})),n=n.parentElement;this.eventsToUnbind.push(Os(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),Os(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Ws.unbindDocumentTouchEnd||(Ws.unbindDocumentTouchEnd=Os(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),Os(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!Ps)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,n=e.container,r=zs(e.options.tooltip?.followTouchMove,!0)&&e.series.some(t=>t.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&r?(t.push(Os(n,"pointerdown",t=>{t.target?.hasPointerCapture(t.pointerId)&&t.target?.releasePointerCapture(t.pointerId)}),Os(n,"pointermove",t=>{e.pointer?.getPointFromEvent(t)?.onMouseOver(t)})),e.styledMode||js(n,{"touch-action":"none"}),n.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!r&&(t.forEach(t=>t()),t.length=0,e.styledMode||js(n,{"touch-action":zs(e.options.chart.style?.["touch-action"],"manipulation")}),n.className=n.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(t){let e=this.chart,n=w.charts[zs(Ws.hoverChartIndex,-1)];if(n&&n!==e){let r={relatedTarget:e.container};t&&!t?.relatedTarget&&Object.assign({},t,r),n.pointer?.onContainerMouseLeave(t||r)}n&&n.mouseIsDown||(Ws.hoverChartIndex=e.index)}touch(t,e){let n,{chart:r,pinchDown:i=[]}=this;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(n=!!i[0]&&Math.pow(i[0].chartX-t.chartX,2)+Math.pow(i[0].chartY-t.chartY,2)>=16),zs(n,!0)&&this.pinch(t)):e&&this.reset():2===t.touches.length&&this.pinch(t)}touchSelect(t){return!(!this.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)}zoomOption(t){let e,n,r=this.chart,i=r.inverted,s=r.zooming.type||"";/touch/.test(t.type)&&(s=zs(r.zooming.pinchType,s)),this.zoomX=e=/x/.test(s),this.zoomY=n=/y/.test(s),this.zoomHor=e&&!i||n&&i,this.zoomVert=n&&!i||e&&i,this.hasZoom=e||n}}Ws.unbindDocumentMouseUp=[],function(t){t.compose=function(e){Hs(Ts,"Core.Pointer")&&Os(e,"beforeRender",function(){this.pointer=new t(this,this.options)})}}(Ws||(Ws={}));let Us=Ws,{fireEvent:Xs,isArray:Ys,objectEach:Gs,uniqueKey:Vs}=Y,Ks=class{constructor(t={}){this.autoId=!t.id,this.columns={},this.id=t.id||Vs(),this.modified=this,this.rowCount=0,this.versionTag=Vs();let e=0;Gs(t.columns||{},(t,n)=>{this.columns[n]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,Gs(this.columns,e=>{Ys(e)&&(e.length=t)})}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRow(t,e){return(e||Object.keys(this.columns)).map(e=>this.columns[e]?.[t])}setColumn(t,e=[],n=0,r){this.setColumns({[t]:e},n,r)}setColumns(t,e,n){let r=this.rowCount;Gs(t,(t,e)=>{this.columns[e]=t.slice(),r=t.length}),this.applyRowCount(r),n?.silent||(Xs(this,"afterSetColumns"),this.versionTag=Vs())}setRow(t,e=this.rowCount,n,r){let{columns:i}=this,s=n?this.rowCount+1:e+1;Gs(t,(t,a)=>{let o=i[a]||!1!==r?.addColumns&&Array(s);o&&(n?o.splice(e,0,t):o[e]=t,i[a]=o)}),s>this.rowCount&&this.applyRowCount(s),r?.silent||(Xs(this,"afterSetRows"),this.versionTag=Vs())}},{extend:$s,merge:Zs,pick:Js}=Y;!function(t){function e(t,e,n){let r,i=this.legendItem=this.legendItem||{},{chart:s,options:a}=this,{baseline:o=0,symbolWidth:l,symbolHeight:c}=t,u=this.symbol||"circle",h=c/2,d=s.renderer,p=i.group,f=o-Math.round((t.fontMetrics?.b||c)*(n?.4:.3)),g={},m=a.marker,b=0;if(s.styledMode||(g["stroke-width"]=Math.min(a.lineWidth||0,24),a.dashStyle?g.dashstyle=a.dashStyle:"square"===a.linecap||(g["stroke-linecap"]="round")),i.line=d.path().addClass("highcharts-graph").attr(g).add(p),n&&(i.area=d.path().addClass("highcharts-area").add(p)),g["stroke-linecap"]&&(b=Math.min(i.line.strokeWidth(),l)/2),l){let t=[["M",b,f],["L",l-b,f]];i.line.attr({d:t}),i.area?.attr({d:[...t,["L",l-b,o],["L",b,o]]})}if(m&&!1!==m.enabled&&l){let t=Math.min(Js(m.radius,h),h);0===u.indexOf("url")&&(m=Zs(m,{width:c,height:c}),t=0),i.symbol=r=d.symbol(u,l/2-t,f-t,2*t,2*t,$s({context:"legend"},m)).addClass("highcharts-point").add(p),r.isMarker=!0}}t.areaMarker=function(t,n){e.call(this,t,n,!0)},t.lineMarker=e,t.rectangle=function(t,e){let n=e.legendItem||{},r=t.options,i=t.symbolHeight,s=r.squareSymbol,a=s?i:t.symbolWidth;n.symbol=this.chart.renderer.rect(s?(t.symbolWidth-i)/2:0,t.baseline-i+1,a,i,Js(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(n.group)}}(u||(u={}));let Qs=u,{defaultOptions:ta}=gt,{extend:ea,extendClass:na,merge:ra}=Y;!function(t){function e(e,n){let r=ta.plotOptions||{},i=n.defaultOptions,s=n.prototype;return s.type=e,s.pointClass||(s.pointClass=Cs),!t.seriesTypes[e]&&(i&&(r[e]=i),t.seriesTypes[e]=n,!0)}t.seriesTypes=w.seriesTypes,t.registerSeriesType=e,t.seriesType=function(n,r,i,s,a){let o=ta.plotOptions||{};if(r=r||"",o[n]=ra(o[r],i),delete t.seriesTypes[n],e(n,na(t.seriesTypes[r]||function(){},s)),t.seriesTypes[n].prototype.type=n,a){class e extends Cs{}ea(e.prototype,a),t.seriesTypes[n].prototype.pointClass=e}return t.seriesTypes[n]}}(h||(h={}));let ia=h,{animObject:sa,setAnimation:aa}=Dt,{defaultOptions:oa}=gt,{registerEventOptions:la}=wr,{svg:ca,win:ua}=w,{seriesTypes:ha}=ia,{arrayMax:da,arrayMin:pa,clamp:fa,correctFloat:ga,crisp:ma,defined:ba,destroyObjectProperties:ya,diffObjects:va,erase:xa,error:wa,extend:ka,find:Aa,fireEvent:Sa,getClosestDistance:Ca,getNestedProperty:Ea,insertItem:Ma,isArray:Ta,isNumber:Pa,isString:Oa,merge:La,objectEach:ja,pick:_a,removeEvent:Ia,syncTimeout:Ra}=Y;class Da{constructor(){this.zoneAxis="y"}init(t,e){let n;Sa(this,"init",{options:e}),this.dataTable??(this.dataTable=new Ks);let r=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);let i=this.options,s=!1!==i.visible;this.linkedSeries=[],this.bindAxes(),ka(this,{name:i.name,state:"",visible:s,selected:!0===i.selected}),la(this,i);let a=i.events;(a&&a.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(n=r[r.length-1]),this._i=_a(n&&n._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",Ma(this,r)),i.dataSorting&&i.dataSorting.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(i.data,!1),Sa(this,"afterInit")}is(t){return ha[t]&&this instanceof ha[t]}bindAxes(){let t,e=this,n=e.options,r=e.chart;Sa(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(i){(r[i]||[]).forEach(function(r){t=r.options,(_a(n[i],0)===r.index||void 0!==n[i]&&n[i]===t.id)&&(Ma(e,r.series),e[i]=r,r.isDirty=!0)}),e[i]||e.optionalAxis===i||wa(18,!0,r)})}),Sa(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(t,e){let n=t.marker,r=e.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}autoIncrement(t){let e,n=this.options,{pointIntervalUnit:r,relativeXValue:i}=this.options,s=this.chart.time,a=this.xIncrement??s.parse(n.pointStart)??0;if(this.pointInterval=e=_a(this.pointInterval,n.pointInterval,1),i&&Pa(t)&&(e*=t),r){let t=s.toParts(a);"day"===r?t[2]+=e:"month"===r?t[1]+=e:"year"===r&&(t[0]+=e),e=s.makeTime.apply(s,t)-a}return i&&Pa(t)?a+e:(this.xIncrement=a+e,a)}setDataSortingOptions(){let t=this.options;ka(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),ba(t.pointRange)||(t.pointRange=1)}setOptions(t){let e,n=this.chart,r=n.options.plotOptions,i=n.userOptions||{},s=La(t),a=n.styledMode,o={plotOptions:r,userOptions:s};Sa(this,"setOptions",o);let l=o.plotOptions[this.type],c=i.plotOptions||{},u=c.series||{},h=oa.plotOptions[this.type]||{},d=c[this.type]||{};this.userOptions=o.userOptions;let p=La(l,r.series,d,s);this.tooltipOptions=La(oa.tooltip,oa.plotOptions.series?.tooltip,h?.tooltip,n.userOptions.tooltip,c.series?.tooltip,d.tooltip,s.tooltip),this.stickyTracking=_a(s.stickyTracking,d.stickyTracking,u.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||p.stickyTracking),null===l.marker&&delete p.marker,this.zoneAxis=p.zoneAxis||"y";let f=this.zones=(p.zones||[]).map(t=>({...t}));return(p.negativeColor||p.negativeFillColor)&&!p.zones&&(e={value:p[this.zoneAxis+"Threshold"]||p.threshold||0,className:"highcharts-negative"},a||(e.color=p.negativeColor,e.fillColor=p.negativeFillColor),f.push(e)),f.length&&ba(f[f.length-1].value)&&f.push(a?{}:{color:this.color,fillColor:this.fillColor}),Sa(this,"afterSetOptions",{options:p}),p}getName(){return _a(this.options.name,"Series "+(this.index+1))}getCyclic(t,e,n){let r,i,s=this.chart,a=`${t}Index`,o=`${t}Counter`,l=n?.length||s.options.chart.colorCount;!e&&(ba(i=_a("color"===t?this.options.colorIndex:void 0,this[a]))?r=i:(s.series.length||(s[o]=0),r=s[o]%l,s[o]+=1),n&&(e=n[r])),void 0!==r&&(this[a]=r),this[t]=e}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||oa.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)}getColumn(t,e){return(e?this.dataTable.modified:this.dataTable).getColumn(t,!0)||[]}findPointIndex(t,e){let n,r,i,s=t.id,a=t.x,o=this.points,l=this.options.dataSorting;if(s){let t=this.chart.get(s);t instanceof Cs&&(n=t)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let e=e=>!e.touched&&e.index===t.index;if(l&&l.matchByName?e=e=>!e.touched&&e.name===t.name:this.options.relativeXValue&&(e=e=>!e.touched&&e.options.x===t.x),!(n=Aa(o,e)))return}return n&&void 0!==(i=n&&n.index)&&(r=!0),void 0===i&&Pa(a)&&(i=this.getColumn("x").indexOf(a,e)),-1!==i&&void 0!==i&&this.cropped&&(i=i>=this.cropStart?i-this.cropStart:i),!r&&Pa(i)&&o[i]&&o[i].touched&&(i=void 0),i}updateData(t,e){let n,r,i,s,a=this.options,o=a.dataSorting,l=this.points,c=[],u=this.requireSorting,h=t.length===l.length,d=!0;if(this.xIncrement=null,t.forEach(function(t,e){let r,i=ba(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=i.x;i.id||Pa(d)?(-1===(r=this.findPointIndex(i,s))||void 0===r?c.push(t):l[r]&&t!==a.data[r]?(l[r].update(t,!1,null,!1),l[r].touched=!0,u&&(s=r+1)):l[r]&&(l[r].touched=!0),(!h||e!==r||o&&o.enabled||this.hasDerivedData)&&(n=!0)):c.push(t)},this),n)for(r=l.length;r--;)(i=l[r])&&!i.touched&&i.remove&&i.remove(!1,e);else!h||o&&o.enabled?d=!1:(t.forEach(function(t,e){t===l[e].y||l[e].destroyed||l[e].update(t,!1,null,!1)}),c.length=0);if(l.forEach(function(t){t&&(t.touched=!1)}),!d)return!1;c.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this);let p=this.getColumn("x");return null===this.xIncrement&&p.length&&(this.xIncrement=da(p),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,n,r){let i,s,a,o=this.points,l=o&&o.length||0,c=this.options,u=this.chart,h=c.dataSorting,d=this.xAxis,p=c.turboThreshold,f=this.dataTable,g=this.dataColumnKeys(),m=this.pointValKey||"y",b=(this.pointArrayMap||[]).length,y=c.keys,v=0,x=1;u.options.chart.allowMutatingData||(c.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,a=La(!0,t));let w=(t=a||t||[]).length;if(h&&h.enabled&&(t=this.sortData(t)),u.options.chart.allowMutatingData&&!1!==r&&w&&l&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(s=this.updateData(t,n)),!s){this.xIncrement=null,this.colorCounter=0;let e=p&&w>p;if(e){let n=this.getFirstValidPoint(t),r=this.getFirstValidPoint(t,w-1,-1),i=t=>!(!Ta(t)||!y&&!Pa(t[0]));if(Pa(n)&&Pa(r)){let e=[],n=[];for(let r of t)e.push(this.autoIncrement()),n.push(r);f.setColumns({x:e,[m]:n})}else if(i(n)&&i(r))if(b){let e=n.length===b?1:0,r=Array(g.length).fill(0).map(()=>[]);for(let n of t){e&&r[0].push(this.autoIncrement());for(let t=e;t<=b;t++)r[t]?.push(n[t-e])}f.setColumns(g.reduce((t,e,n)=>(t[e]=r[n],t),{}))}else{y&&(v=y.indexOf("x"),x=y.indexOf("y"),v=v>=0?v:0,x=x>=0?x:1),1===n.length&&(x=0);let e=[],r=[];if(v===x)for(let n of t)e.push(this.autoIncrement()),r.push(n[x]);else for(let n of t)e.push(n[v]),r.push(n[x]);f.setColumns({x:e,[m]:r})}else e=!1}if(!e){let e=g.reduce((t,e)=>(t[e]=[],t),{});for(i=0;i<w;i++){let n=this.pointClass.prototype.applyOptions.apply({series:this},[t[i]]);for(let t of g)e[t][i]=n[t]}f.setColumns(e)}for(Oa(this.getColumn("y")[0])&&wa(14,!0,u),this.data=[],this.options.data=this.userOptions.data=t,i=l;i--;)o[i]?.destroy();d&&(d.minRange=d.userMinRange),this.isDirty=u.isDirtyBox=!0,this.isDirtyData=!!o,n=!1}"point"===c.legendType&&(this.processData(),this.generatePoints()),e&&u.redraw(n)}sortData(t){let e=this,n=e.options.dataSorting.sortKey||"y",r=function(t,e){return ba(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(n,i){t[i]=r(e,n),t[i].index=i},this),t.concat().sort((t,e)=>{let r=Ea(n,t),i=Ea(n,e);return i<r?-1:i>r?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){let n=e.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach(function(n,s){i[s]=r(e,n),t[s]&&(i[s].x=t[s].x,i[s].index=s)}),e.setData(i,!1))}),t}getProcessedData(t){let e,n,r,i,s,a=this,{dataTable:o,isCartesian:l,options:c,xAxis:u}=a,h=c.cropThreshold,d=t||a.getExtremesFromAll,p=u?.logarithmic,f=o.rowCount,g=0,m=a.getColumn("x"),b=o,y=!1;return u&&(i=(r=u.getExtremes()).min,s=r.max,y=!(!u.categories||u.names.length),l&&a.sorted&&!d&&(!h||f>h||a.forceCrop)&&(m[f-1]<i||m[0]>s?b=new Ks:a.getColumn(a.pointValKey||"y").length&&(m[0]<i||m[f-1]>s)&&(b=(e=this.cropData(o,i,s)).modified,g=e.start,n=!0))),m=b.getColumn("x")||[],{modified:b,cropped:n,cropStart:g,closestPointRange:Ca([p?m.map(p.log2lin):m],()=>a.requireSorting&&!y&&wa(15,!1,a.chart))}}processData(t){let e=this.xAxis,n=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let r=this.getProcessedData();n.modified=r.modified,this.cropped=r.cropped,this.cropStart=r.cropStart,this.closestPointRange=this.basePointRange=r.closestPointRange,Sa(this,"afterProcessData")}cropData(t,e,n){let r,i,s=t.getColumn("x",!0)||[],a=s.length,o={},l=0,c=a;for(r=0;r<a;r++)if(s[r]>=e){l=Math.max(0,r-1);break}for(i=r;i<a;i++)if(s[i]>n){c=i+1;break}for(let e of this.dataColumnKeys()){let n=t.getColumn(e,!0);n&&(o[e]=n.slice(l,c))}return{modified:new Ks({columns:o}),start:l,end:c}}generatePoints(){let t,e,n,r,i,s=this.options,a=this.processedData||s.data,o=this.dataTable.modified,l=this.getColumn("x",!0),c=this.pointClass,u=o.rowCount,h=this.cropStart||0,d=this.hasGroupedData,p=s.keys,f=[],g=s.dataGrouping&&s.dataGrouping.groupAll?h:0,m=this.xAxis?.categories,b=this.pointArrayMap||["y"],y=this.dataColumnKeys(),v=this.data;if(!v&&!d){let t=[];t.length=a?.length||0,v=this.data=t}for(p&&d&&(this.options.keys=!1),r=0;r<u;r++)e=h+r,d?((n=new c(this,o.getRow(r,y)||[])).dataGroup=this.groupMap[g+r],n.dataGroup?.options&&(n.options=n.dataGroup.options,ka(n,n.dataGroup.options),delete n.dataLabels)):(n=v[e],i=a?a[e]:o.getRow(r,b),n||void 0===i||(v[e]=n=new c(this,i,l[r]))),n&&(n.index=d?g+r:e,f[r]=n,n.category=m?.[n.x]??n.x,n.key=n.name??n.category);if(this.options.keys=p,v&&(u!==(t=v.length)||d))for(r=0;r<t;r++)r!==h||d||(r+=u),v[r]&&(v[r].destroyElements(),v[r].plotX=void 0);this.data=v,this.points=f,Sa(this,"afterGeneratePoints")}getXExtremes(t){return{min:pa(t),max:da(t)}}getExtremes(t,e){let n,r,i,{xAxis:s,yAxis:a}=this,o=e||this.getExtremesFromAll||this.options.getExtremesFromAll,l=o&&this.cropped?this.dataTable:this.dataTable.modified,c=l.rowCount,u=t||this.stackedYData,h=u?[u]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(t=>l.getColumn(t,!0)||[])||[],d=this.getColumn("x",!0),p=[],f=this.requireSorting&&!this.is("column")?1:0,g=!!a&&a.positiveValuesOnly,m=o||this.cropped||!s,b=0,y=0;for(s&&(b=(n=s.getExtremes()).min,y=n.max),i=0;i<c;i++)if(r=d[i],m||(d[i+f]||r)>=b&&(d[i-f]||r)<=y)for(let t of h){let e=t[i];Pa(e)&&(e>0||!g)&&p.push(e)}let v={activeYData:p,dataMin:pa(p),dataMax:da(p)};return Sa(this,"afterGetExtremes",{dataExtremes:v}),v}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,n=1){let r=t.length,i=e;for(;i>=0&&i<r;){if(ba(t[i]))return t[i];i+=n}}translate(){this.generatePoints();let t,e,n,r,i=this.options,s=i.stacking,a=this.xAxis,o=this.enabledDataSorting,l=this.yAxis,c=this.points,u=c.length,h=this.pointPlacementToXValue(),d=!!h,p=i.threshold,f=i.startFromThreshold?p:0,g=Number.MAX_VALUE;function m(t){return fa(t,-1e9,1e9)}for(t=0;t<u;t++){let i,u,b,y=c[t],v=y.x,x=y.y,w=y.low,k=s&&l.stacking?.stacks[(this.negStacks&&x<(f?0:p)?"-":"")+this.stackKey];e=a.translate(v,!1,!1,!1,!0,h),y.plotX=Pa(e)?ga(m(e)):void 0,s&&this.visible&&k&&k[v]&&(r=this.getStackIndicator(r,v,this.index),!y.isNull&&r.key&&(b=(u=k[v]).points[r.key]),u&&Ta(b)&&(w=b[0],x=b[1],w===f&&r.key===k[v].base&&(w=_a(Pa(p)?p:l.min)),l.positiveValuesOnly&&ba(w)&&w<=0&&(w=void 0),y.total=y.stackTotal=_a(u.total),y.percentage=ba(y.y)&&u.total?y.y/u.total*100:void 0,y.stackY=x,this.irregularWidths||u.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),y.yBottom=ba(w)?m(l.translate(w,!1,!0,!1,!0)):void 0,this.dataModify&&(x=this.dataModify.modifyValue(x,t)),Pa(x)&&void 0!==y.plotX&&(i=Pa(i=l.translate(x,!1,!0,!1,!0))?m(i):void 0),y.plotY=i,y.isInside=this.isPointInside(y),y.clientX=d?ga(a.translate(v,!1,!1,!1,!0,h)):e,y.negative=(y.y||0)<(p||0),y.isNull||!1===y.visible||(void 0!==n&&(g=Math.min(g,Math.abs(e-n))),n=e),y.zone=this.zones.length?y.getZone():void 0,!y.graphic&&this.group&&o&&(y.isNew=!0)}this.closestPointRangePx=g,Sa(this,"afterTranslate")}getValidPoints(t,e,n){let r=this.chart;return(t||this.points||[]).filter(function(t){let{plotX:i,plotY:s}=t;return!(!(n||!t.isNull&&Pa(s))||e&&!r.isInsidePlot(i,s,{inverted:r.inverted}))&&!1!==t.visible})}getClipBox(){let{chart:t,xAxis:e,yAxis:n}=this,{x:r,y:i,width:s,height:a}=La(t.clipBox);return e&&e.len!==t.plotSizeX&&(s=e.len),n&&n.len!==t.plotSizeY&&(a=n.len),t.inverted&&!this.invertible&&([s,a]=[a,s]),{x:r,y:i,width:s,height:a}}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:n}=this,r=t.sharedClips,i=t.renderer,s=this.getClipBox(),a=this.getSharedClipKey(),o=r[a];o?o.animate(s):r[a]=o=i.clipRect(s),e&&e.clip(!1===this.options.clip?void 0:o),n&&n.clip()}animate(t){let{chart:e,group:n,markerGroup:r}=this,i=e.inverted,s=sa(this.options.animation),a=[this.getSharedClipKey(),s.duration,s.easing,s.defer].join(","),o=e.sharedClips[a],l=e.sharedClips[a+"m"];if(t&&n){let t=this.getClipBox();if(o)o.attr("height",t.height);else{t.width=0,i&&(t.x=e.plotHeight),o=e.renderer.clipRect(t),e.sharedClips[a]=o;let n={x:-99,y:-99,width:i?e.plotWidth+199:99,height:i?99:e.plotHeight+199};l=e.renderer.clipRect(n),e.sharedClips[a+"m"]=l}n.clip(o),r?.clip(l)}else if(o&&!o.hasClass("highcharts-animating")){let t=this.getClipBox(),n=s.step;(r?.element.childNodes.length||e.series.length>1)&&(s.step=function(t,e){n&&n.apply(e,arguments),"width"===e.prop&&l?.element&&l.attr(i?"height":"width",t+99)}),o.addClass("highcharts-animating").animate(t,s)}}afterAnimate(){this.setClip(),ja(this.chart.sharedClips,(t,e,n)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete n[e])}),this.finishedAnimating=!0,Sa(this,"afterAnimate")}drawPoints(t=this.points){let e,n,r,i,s,a,o,l=this.chart,c=l.styledMode,{colorAxis:u,options:h}=this,d=h.marker,p=this[this.specialGroup||"markerGroup"],f=this.xAxis,g=_a(d.enabled,!f||!!f.isRadial||null,this.closestPointRangePx>=d.enabledThreshold*d.radius);if(!1!==d.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++)if(i=(r=(n=t[e]).graphic)?"animate":"attr",s=n.marker||{},a=!!n.marker,(g&&void 0===s.enabled||s.enabled)&&!n.isNull&&!1!==n.visible){let t=_a(s.symbol,this.symbol,"rect");o=this.markerAttribs(n,n.selected&&"select"),this.enabledDataSorting&&(n.startXPos=f.reversed?-(o.width||0):f.width);let e=!1!==n.isInside;if(!r&&e&&((o.width||0)>0||n.hasImage)&&(n.graphic=r=l.renderer.symbol(t,o.x,o.y,o.width,o.height,a?s:d).add(p),this.enabledDataSorting&&l.hasRendered&&(r.attr({x:n.startXPos}),i="animate")),r&&"animate"===i&&r[e?"show":"hide"](e).animate(o),r){let t=this.pointAttribs(n,c||!n.selected?void 0:"select");c?u&&r.css({fill:t.fill}):r[i](t)}r&&r.addClass(n.getClassName(),!0)}else r&&(n.graphic=r.destroy())}markerAttribs(t,e){let n,r,i=this.options,s=i.marker,a=t.marker||{},o=a.symbol||s.symbol,l={},c=_a(a.radius,s&&s.radius);e&&(n=s.states[e],c=_a((r=a.states&&a.states[e])&&r.radius,n&&n.radius,c&&c+(n&&n.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(c=0);let u=t.pos();return Pa(c)&&u&&(i.crisp&&(u[0]=ma(u[0],t.hasImage?0:"rect"===o?s?.lineWidth||0:1)),l.x=u[0]-c,l.y=u[1]-c),c&&(l.width=l.height=2*c),l}pointAttribs(t,e){let n,r,i,s,a=this.options.marker,o=t&&t.options,l=o&&o.marker||{},c=o&&o.color,u=t&&t.color,h=t&&t.zone&&t.zone.color,d=this.color,p=_a(l.lineWidth,a.lineWidth),f=1;return d=c||h||u||d,i=l.fillColor||a.fillColor||d,s=l.lineColor||a.lineColor||d,e=e||"normal",n=a.states[e]||{},p=_a((r=l.states&&l.states[e]||{}).lineWidth,n.lineWidth,p+_a(r.lineWidthPlus,n.lineWidthPlus,0)),i=r.fillColor||n.fillColor||i,{stroke:s=r.lineColor||n.lineColor||s,"stroke-width":p,fill:i,opacity:f=_a(r.opacity,n.opacity,f)}}destroy(t){let e,n,r,i=this,s=i.chart,a=/AppleWebKit\/533/.test(ua.navigator.userAgent),o=i.data||[];for(Sa(i,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(i.axisTypes||[]).forEach(function(t){(r=i[t])&&r.series&&(xa(r.series,i),r.isDirty=r.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),e=o.length;e--;)(n=o[e])&&n.destroy&&n.destroy();for(let t of i.zones)ya(t,void 0,!0);Y.clearTimeout(i.animationTimeout),ja(i,function(t,e){t instanceof Qe&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()}),s.hoverSeries===i&&(s.hoverSeries=void 0),xa(s.series,i),s.orderItems("series"),ja(i,function(e,n){t&&"hcEvents"===n||delete i[n]})}applyZones(){let{area:t,chart:e,graph:n,zones:r,points:i,xAxis:s,yAxis:a,zoneAxis:o}=this,{inverted:l,renderer:c}=e,u=this[`${o}Axis`],{isXAxis:h,len:d=0,minPointOffset:p=0}=u||{},f=(n?.strokeWidth()||0)/2+1,g=(t,e=0,n=0)=>{l&&(n=d-n);let{translated:r=0,lineClip:i}=t,s=n-r;i?.push(["L",e,Math.abs(s)<f?n-f*(s<=0?-1:1):r])};if(r.length&&(n||t)&&u&&Pa(u.min)){let e=u.getExtremes().max+p,f=t=>{t.forEach((e,n)=>{("M"===e[0]||"L"===e[0])&&(t[n]=[e[0],h?d-e[1]:e[1],h?e[2]:d-e[2]])})};if(r.forEach(t=>{t.lineClip=[],t.translated=fa(u.toPixels(_a(t.value,e),!0)||0,0,d)}),n&&!this.showLine&&n.hide(),t&&t.hide(),"y"===o&&i.length<s.len)for(let t of i){let{plotX:e,plotY:n,zone:i}=t,s=i&&r[r.indexOf(i)-1];i&&g(i,e,n),s&&g(s,e,n)}let m=[],b=u.toPixels(u.getExtremes().min-p,!0);r.forEach(e=>{let r=e.lineClip||[],i=Math.round(e.translated||0);s.reversed&&r.reverse();let{clip:o,simpleClip:u}=e,d=0,p=0,g=s.len,y=a.len;h?(d=i,g=b):(p=i,y=b);let v=[["M",d,p],["L",g,p],["L",g,y],["L",d,y],["Z"]],x=[v[0],...r,v[1],v[2],...m,v[3],v[4]];m=r.reverse(),b=i,l&&(f(x),t&&f(v)),o?(o.animate({d:x}),u?.animate({d:v})):(o=e.clip=c.path(x),t&&(u=e.simpleClip=c.path(v))),n&&e.graph?.clip(o),t&&e.area?.clip(u)})}else this.visible&&(n&&n.show(),t&&t.show())}plotGroup(t,e,n,r,i){let s=this[t],a=!s,o={visibility:n,zIndex:r||.1};return ba(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(o.opacity=this.opacity),s||(this[t]=s=this.chart.renderer.g().add(i)),s.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(ba(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(s.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),s.attr(o)[a?"attr":"animate"](this.getPlotBox(e)),s}getPlotBox(t){let e=this.xAxis,n=this.yAxis,r=this.chart,i=r.inverted&&!r.polar&&e&&this.invertible&&"series"===t;return r.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:r.plotLeft,translateY:n?n.top:r.plotTop,rotation:i?90:0,rotationOriginX:i?(e.len-n.len)/2:0,rotationOriginY:i?(e.len+n.len)/2:0,scaleX:i?-1:1,scaleY:1}}removeEvents(t){let{eventsToUnbind:e}=this;t||Ia(this),e.length&&(e.forEach(t=>{t()}),e.length=0)}render(){let t=this,{chart:e,options:n,hasRendered:r}=t,i=sa(n.animation),s=t.visible?"inherit":"hidden",a=n.zIndex,o=e.seriesGroup,l=t.finishedAnimating?0:i.duration;Sa(this,"render"),t.plotGroup("group","series",s,a,o),t.markerGroup=t.plotGroup("markerGroup","markers",s,a,o),!1!==n.clip&&t.setClip(),l&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),n.enableMouseTracking&&t.drawTracker?.(),l&&t.animate?.(),r||(l&&i.defer&&(l+=i.defer),t.animationTimeout=Ra(()=>{t.afterAnimate()},l||0)),t.isDirty=!1,t.hasRendered=!0,Sa(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:n,yAxis:r}=this,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:i?r.len-t.chartX+r.pos:t.chartY-r.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,n=e.options.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,Ra(function(){e.kdTree=function t(n,r,i){let s,a,o=n?.length;if(o)return s=e.kdAxisArray[r%i],n.sort((t,e)=>(t[s]||0)-(e[s]||0)),{point:n[a=Math.floor(o/2)],left:t(n.slice(0,a),r+1,i),right:t(n.slice(a+1),r+1,i)}}(e.getValidPoints(void 0,!e.directTouch),n,n),e.buildingKdTree=!1},e.options.kdNow||"touchstart"===t?.type?0:1)}searchKDTree(t,e,n,r,i){let s=this,[a,o]=this.kdAxisArray,l=e?"distX":"dist",c=(s.options.findNearestPointBy||"").indexOf("y")>-1?2:1,u=!!s.isBubble,h=r||((t,e,n)=>[(t[n]||0)<(e[n]||0)?t:e,!1]),d=i||((t,e)=>t<e);if(this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function t(e,n,r,i){let c=n.point,p=s.kdAxisArray[r%i],f=c,g=!1;!function(t,e){let n=t[a],r=e[a],i=ba(n)&&ba(r)?n-r:null,s=t[o],l=e[o],c=ba(s)&&ba(l)?s-l:0,h=u&&e.marker?.radius||0;e.dist=Math.sqrt((i&&i*i||0)+c*c)-h,e.distX=ba(i)?Math.abs(i)-h:Number.MAX_VALUE}(e,c);let m=(e[p]||0)-(c[p]||0)+(u&&c.marker?.radius||0),b=m<0?"left":"right",y=m<0?"right":"left";return n[b]&&([f,g]=h(c,t(e,n[b],r+1,i),l)),n[y]&&d(Math.sqrt(m*m),f[l],g)&&(f=h(f,t(e,n[y],r+1,i),l)[0]),f}(t,this.kdTree,c,c)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,n=t.pointPlacement;return"between"===n&&(n=e.reversed?-.5:.5),Pa(n)?n*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:n,yAxis:r}=this,{plotX:i=-1,plotY:s=-1}=t;return s>=0&&s<=(r?r.len:e.plotHeight)&&i>=0&&i<=(n?n.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,n=e.trackByArea,r=[].concat((n?t.areaPath:t.graphPath)||[]),i=t.chart,s=i.pointer,a=i.renderer,o=i.options.tooltip?.snap||0,l=()=>{e.enableMouseTracking&&i.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(ca?1e-4:.002)+")",u=t.tracker;u?u.attr({d:r}):t.graph&&(t.tracker=u=a.path(r).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||u.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:n?c:"none","stroke-width":t.graph.strokeWidth()+(n?0:2*o)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",t=>{s?.onTrackerMouseOut(t)}),e.cursor&&!i.styledMode&&t.css({cursor:e.cursor}),t.on("touchstart",l))})),Sa(this,"afterDrawTracker")}addPoint(t,e,n,r,i){let s,a,o=this.options,{chart:l,data:c,dataTable:u,xAxis:h}=this,d=h&&h.hasNames&&h.names,p=o.data,f=this.getColumn("x");e=_a(e,!0);let g={series:this};this.pointClass.prototype.applyOptions.apply(g,[t]);let m=g.x;if(a=f.length,this.requireSorting&&m<f[a-1])for(s=!0;a&&f[a-1]>m;)a--;u.setRow(g,a,!0,{addColumns:!1}),d&&g.name&&(d[m]=g.name),p?.splice(a,0,t),(s||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):([c,p,...Object.values(u.getColumns())].filter(ba).forEach(t=>{t.shift()}),u.rowCount-=1,Sa(u,"afterDeleteRows"))),!1!==i&&Sa(this,"addPoint",{point:g}),this.isDirty=!0,this.isDirtyData=!0,e&&l.redraw(r)}removePoint(t,e,n){let r=this,{chart:i,data:s,points:a,dataTable:o}=r,l=s[t],c=function(){[a?.length===s.length?a:void 0,s,r.options.data,...Object.values(o.getColumns())].filter(ba).forEach(e=>{e.splice(t,1)}),o.rowCount-=1,Sa(o,"afterDeleteRows"),l?.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&i.redraw()};aa(n,i),e=_a(e,!0),l?l.firePointEvent("remove",null,c):c()}remove(t,e,n,r){let i=this,s=i.chart;function a(){i.destroy(r),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(r),_a(t,!0)&&s.redraw(e)}!1!==n?Sa(i,"remove",null,a):a()}update(t,e){Sa(this,"update",{options:t=va(t,this.userOptions)});let n,r,i=this,s=i.chart,a=i.userOptions,o=i.initialType||i.type,l=s.options.plotOptions,c=ha[o].prototype,u=i.finishedAnimating&&{animation:!1},h={},d=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],p=t.type||a.type||s.options.chart.type,f=!(this.hasDerivedData||p&&p!==this.type||void 0!==t.keys||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(t=>i.hasOptionChanged(t)));p=p||o,f?(d.push("data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==t.visible&&d.push("area","graph"),i.parallelArrays.forEach(function(t){d.push(t+"Data")}),t.data&&(t.dataSorting&&ka(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t=La(a,{index:void 0===a.index?i.index:a.index,pointStart:l?.series?.pointStart??a.pointStart??i.getColumn("x")[0]},!f&&{data:i.options.data},t,u),f&&t.data&&(t.data=i.options.data),(d=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(d)).forEach(function(t){d[t]=i[t],delete i[t]});let g=!1;if(ha[p]){if(g=p!==i.type,i.remove(!1,!1,!1,!0),g)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,ha[p].prototype);else{let t=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(r in c)i[r]=void 0;ka(i,ha[p].prototype),t?i.hcEvents=t:delete i.hcEvents}}else wa(17,!0,s,{missingModuleFor:p});if(d.forEach(function(t){i[t]=d[t]}),i.init(s,t),f&&this.points)for(let t of(!1===(n=i.options).visible?(h.graphic=1,h.dataLabel=1):(this.hasMarkerChanged(n,a)&&(h.graphic=1),i.hasDataLabels?.()||(h.dataLabel=1)),this.points))t&&t.series&&(t.resolveColor(),Object.keys(h).length&&t.destroyElements(h),!1===n.showInLegend&&t.legendItem&&s.legend.destroyItem(t));i.initialType=o,s.linkSeries(),s.setSortedData(),g&&i.linkedSeries.length&&(i.isDirtyData=!0),Sa(this,"afterUpdate"),_a(e,!0)&&s.redraw(!!f&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.chart,n=this.options[t],r=e.options.plotOptions,i=this.userOptions[t],s=_a(r?.[this.type]?.[t],r?.series?.[t]);return i&&!ba(s)?n!==i:n!==_a(s,n)}onMouseOver(){let t=this.chart,e=t.hoverSeries,n=t.pointer;n?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&Sa(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,n=e.tooltip,r=e.hoverPoint;e.hoverSeries=null,r&&r.onMouseOut(),this&&t.events.mouseOut&&Sa(this,"mouseOut"),n&&!this.stickyTracking&&(!n.shared||this.noSharedTooltip)&&n.hide(),e.series.forEach(function(t){t.setState("",!0)})}setState(t,e){let n=this,r=n.options,i=n.graph,s=r.inactiveOtherPoints,a=r.states,o=_a(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation),l=r.lineWidth,c=r.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach(function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))}),n.state=t,!n.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),c=_a(a[t].opacity,c)),i&&!i.dashstyle&&Pa(l))for(let t of[i,...this.zones.map(t=>t.graph)])t?.animate({"stroke-width":l},o);s||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},o)})}e&&s&&n.points&&n.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach(function(e){e.setState&&e.setState(t)})}setVisible(t,e){let n=this,r=n.chart,i=r.options.chart.ignoreHiddenSeries,s=n.visible;n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!s:t;let a=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(t=>{n[t]?.[a]()}),(r.hoverSeries===n||r.hoverPoint?.series===n)&&n.onMouseOut(),n.legendItem&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&r.series.forEach(t=>{t.options.stacking&&t.visible&&(t.isDirty=!0)}),n.linkedSeries.forEach(e=>{e.setVisible(t,!1)}),i&&(r.isDirtyBox=!0),Sa(n,a),!1!==e&&r.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),Sa(this,t?"select":"unselect")}shouldShowTooltip(t,e,n={}){return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)}drawLegendSymbol(t,e){Qs[this.options.legendSymbol||"rectangle"]?.call(this,t,e)}}Da.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},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(){let{numberFormatter:t}=this.series.chart;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",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:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},Da.types=ia.seriesTypes,Da.registerType=ia.registerSeriesType,ka(Da.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Cs,requireSorting:!0,sorted:!0}),ia.series=Da;let Na=Da,{animObject:Ba,setAnimation:Fa}=Dt,{registerEventOptions:za}=wr,{composed:Ha,marginNames:qa}=w,{distribute:Wa}=ve,{format:Ua}=pe,{addEvent:Xa,createElement:Ya,css:Ga,defined:Va,discardElement:Ka,find:$a,fireEvent:Za,isNumber:Ja,merge:Qa,pick:to,pushUnique:eo,relativeLength:no,stableSort:ro,syncTimeout:io}=Y;class so{constructor(t,e){this.allItems=[],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.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),za(this,e),Xa(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),Xa(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=to(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=Qa(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=to(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0}update(t,e){let n=this.chart;this.setOptions(Qa(!0,this.options,t)),"events"in this.options&&za(this,this.options),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,to(e,!0)&&n.redraw(),Za(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let n=t.color,{area:r,group:i,label:s,line:a,symbol:o}=t.legendItem||{};if((t instanceof Na||t instanceof Cs)&&(t.color=t.options?.legendSymbolColor||n),i?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:n={}}=this,i=n.color,{fillColor:l,fillOpacity:c,lineColor:u,marker:h}=t.options,d=t=>(!e&&(t.fill&&(t.fill=i),t.stroke&&(t.stroke=i)),t);s?.css(Qa(e?this.itemStyle:n)),a?.attr(d({stroke:u||t.color})),o&&o.attr(d(h&&o.isMarker?t.pointAttribs():{fill:t.color})),r?.attr(d({fill:l||t.color,"fill-opacity":l?1:c??.75}))}t.color=n,Za(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:n=0,y:r=0}=t.legendItem||{},i=this.options,s=i.symbolPadding,a=!i.rtl,o=t.checkbox;if(e&&e.element){let i={translateX:a?n:this.legendWidth-n-2*s-4,translateY:r};e[Va(e.translateY)?"animate":"attr"](i,void 0,()=>{Za(this,"afterPositionItem",{item:t})})}o&&(o.x=n,o.y=r)}destroyItem(t){let e=t.checkbox,n=t.legendItem||{};for(let t of["group","label","line","symbol"])n[t]&&(n[t]=n[t].destroy());e&&Ka(e),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group&&this.group.alignAttr,n=this.clipHeight||this.legendHeight,r=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(i){let s,a=i.checkbox;a&&(s=t+r+a.y+(this.scrollOffset||0)+3,Ga(a,{left:e.translateX+i.checkboxOffset+a.x-20+"px",top:s+"px",display:this.proximate||s>t-6&&s<t+n-6?"":"none"}))},this))}renderTitle(){let t,e=this.options,n=this.padding,r=e.title,i=0;r.text&&(this.title||(this.title=this.chart.renderer.label(r.text,n-3,n-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(r.style),this.title.add(this.group)),r.width||this.title.css({width:this.maxLegendWidth+"px"}),i=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?Ua(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})}renderItem(t){let e=t.legendItem=t.legendItem||{},n=this.chart,r=n.renderer,i=this.options,s="horizontal"===i.layout,a=this.symbolWidth,o=i.symbolPadding||0,l=this.itemStyle,c=this.itemHiddenStyle,u=s?to(i.itemDistance,20):0,h=!i.rtl,d=!t.series,p=!d&&t.series.drawLegendSymbol?t.series:t,f=p.options,g=!!this.createCheckboxForItem&&f&&f.showCheckbox,m=i.useHTML,b=t.options.className,y=e.label,v=a+o+u+(g?20:0);!y&&(e.group=r.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+t.colorIndex+(b?" "+b:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=r.text("",h?a+o:-o,this.baseline||0,m),n.styledMode||y.css(Qa(t.visible?l:c)),y.attr({align:h?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=r.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=to(i.symbolHeight,this.fontMetrics.f),i.squareSymbol&&(this.symbolWidth=to(i.symbolWidth,Math.max(this.symbolHeight,16)),v=this.symbolWidth+o+u+(g?20:0),h&&y.attr("x",this.symbolWidth+o))),p.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,m)),g&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(n.styledMode||!l.width)&&y.css({width:(i.itemWidth||this.widthOption||n.spacingBox.width)-v+"px"}),this.setText(t);let x=y.getBBox(),w=this.fontMetrics&&this.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=i.itemWidth||e.labelWidth||x.width+v,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(x.height>1.5*w?x.height:w))}layoutItem(t){let e=this.options,n=this.padding,r="horizontal"===e.layout,i=t.itemHeight,s=this.itemMarginBottom,a=this.itemMarginTop,o=r?to(e.itemDistance,20):0,l=this.maxLegendWidth,c=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,u=t.legendItem||{};r&&this.itemX-n+c>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=a+this.itemY+s,this.lastLineHeight=Math.max(i,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=c:(this.itemY+=a+i+s,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(t.checkbox?0:o):c)+n,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach(function(e){let n=e&&e.options;e&&to(n.showInLegend,!Va(n.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===n.legendType?e.data:e)))}),Za(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let 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)}adjustMargins(t,e){let n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(s,a){s.test(i)&&!Va(t[a])&&(n[qa[a]]=Math.max(n[qa[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+to(r.margin,12)+e[a]+(n.titleOffset[a]||0)))})}proximatePositions(){let t,e=this.chart,n=[],r="left"===this.options.align;for(let i of(this.allItems.forEach(function(t){let i,s,a,o,l=r;t.yAxis&&(t.xAxis.options.reversed&&(l=!l),t.points&&(i=$a(l?t.points:t.points.slice(0).reverse(),function(t){return Ja(t.plotY)})),s=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,o=t.yAxis.top-e.plotTop,a=t.visible?(i?i.plotY:t.yAxis.height)+(o-.3*s):o+t.yAxis.height,n.push({target:a,size:s,item:t}))},this),Wa(n,e.plotHeight)))t=i.item.legendItem||{},Ja(i.pos)&&(t.y=e.plotTop-e.spacing[0]+i.pos)}render(){let t,e,n,r,i=this.chart,s=i.renderer,a=this.options,o=this.padding,l=this.getAllItems(),c=this.group,u=this.box;this.itemX=o,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=no(a.width,i.spacingBox.width-o),r=i.spacingBox.width-2*o-a.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(r/=2),this.maxLegendWidth=this.widthOption||r,c||(this.group=c=s.g("legend").addClass(a.className||"").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(c),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),ro(l,(t,e)=>(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)),a.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(this.widthOption||this.offsetWidth)+o,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n)+o,u||(this.box=u=s.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(c)),i.styledMode||u.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),e>0&&n>0&&u[u.placed?"animate":"attr"](u.crisp.call({},{x:0,y:0,width:e,height:n},u.strokeWidth())),c[t?"show":"hide"](),i.styledMode&&"none"===c.getStyle("display")&&(e=n=0),this.legendWidth=e,this.legendHeight=n,t&&this.align(),this.proximate||this.positionItems(),Za(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,n=this.options,r=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?r+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(r-=e.titleOffset[2]),r!==t.y&&(t=Qa(t,{y:r})),e.hasRendered||(this.group.placed=!1),this.group.align(Qa(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,t)}handleOverflow(t){let e,n,r,i=this,s=this.chart,a=s.renderer,o=this.options,l=o.y,c="top"===o.verticalAlign,u=this.padding,h=o.maxHeight,d=o.navigation,p=to(d.animation,!0),f=d.arrowSize||12,g=this.pages,m=this.allItems,b=function(t){"number"==typeof t?w.attr({height:t}):w&&(i.clipRect=w.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=t?"rect("+u+"px,9999px,"+(u+t)+"px,0)":"auto")},y=function(t){return i[t]=a.circle(0,0,1.3*f).translate(f/2,f/2).add(x),s.styledMode||i[t].attr("fill","rgba(0,0,0,0.0001)"),i[t]},v=s.spacingBox.height+(c?-l:l)-u,x=this.nav,w=this.clipRect;return"horizontal"!==o.layout||"middle"===o.verticalAlign||o.floating||(v/=2),h&&(v=Math.min(v,h)),g.length=0,t&&v>0&&t>v&&!1!==d.enabled?(this.clipHeight=e=Math.max(v-20-this.titleHeight-u,0),this.currentPage=to(this.currentPage,1),this.fullHeight=t,m.forEach((t,i)=>{let s=(r=t.legendItem||{}).y||0,a=Math.round(r.label.getBBox().height),o=g.length;(!o||s-g[o-1]>e&&(n||s)!==g[o-1])&&(g.push(n||s),o++),r.pageIx=o-1,n&&((m[i-1].legendItem||{}).pageIx=o-1),i===m.length-1&&s+a-g[o-1]>e&&s>g[o-1]&&(g.push(s),r.pageIx=o),s!==n&&(n=s)}),w||(w=i.clipRect=a.clipRect(0,u-2,9999,0),i.contentGroup.clip(w)),b(e),x||(this.nav=x=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,f,f).add(x),y("upTracker").on("click",function(){i.scroll(-1,p)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&d.style&&this.pager.css(d.style),this.pager.add(x),this.down=a.symbol("triangle-down",0,0,f,f).add(x),y("downTracker").on("click",function(){i.scroll(1,p)})),i.scroll(0),t=v):x&&(b(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let n=this.chart,r=this.pages,i=r.length,s=this.clipHeight,a=this.options.navigation,o=this.pager,l=this.padding,c=this.currentPage+t;c>i&&(c=i),c>0&&(void 0!==e&&Fa(e,n),this.nav.attr({translateX:l,translateY:s+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"})}),o.attr({text:c+"/"+i}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:c===i?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===c?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===c?"default":"pointer"}),this.down.attr({fill:c===i?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===i?"default":"pointer"})),this.scrollOffset=-r[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),io(()=>{Za(this,"afterScroll",{currentPage:c})},Ba(to(e,n.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,n){let r=this,i=t.legendItem||{},s=r.chart.renderer.boxWrapper,a=t instanceof Cs,o=t instanceof Na,l="highcharts-legend-"+(a?"point":"series")+"-active",c=r.chart.styledMode,u=n?[e,i.symbol]:[i.group],h=e=>{r.allItems.forEach(n=>{t!==n&&[n].concat(n.linkedSeries||[]).forEach(t=>{t.setState(e,!a)})})};for(let n of u)n&&n.on("mouseover",function(){t.visible&&h("inactive"),t.setState("hover"),t.visible&&s.addClass(l),c||e.css(r.options.itemHoverStyle)}).on("mouseout",function(){r.chart.styledMode||e.css(Qa(t.visible?r.itemStyle:r.itemHiddenStyle)),h(""),s.removeClass(l),t.setState()}).on("click",function(e){s.removeClass(l),Za(r,"itemClick",{browserEvent:e,legendItem:t},function(){t.setVisible&&t.setVisible(),h(t.visible?"inactive":"")}),a?t.firePointEvent("legendItemClick",{browserEvent:e}):o&&Za(t,"legendItemClick",{browserEvent:e})})}createCheckboxForItem(t){t.checkbox=Ya("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),Xa(t.checkbox,"click",function(e){let n=e.target;Za(t.series||t,"checkboxClick",{checked:n.checked,item:t},function(){t.select()})})}}!function(t){t.compose=function(e){eo(Ha,"Core.Legend")&&Xa(e,"beforeMargins",function(){this.legend=new t(this,this.options.legend)})}}(so||(so={}));let ao=so,{animate:oo,animObject:lo,setAnimation:co}=Dt,{defaultOptions:uo}=gt,{numberFormat:ho}=pe,{registerEventOptions:po}=wr,{charts:fo,doc:go,marginNames:mo,svg:bo,win:yo}=w,{seriesTypes:vo}=ia,{addEvent:xo,attr:wo,createElement:ko,css:Ao,defined:So,diffObjects:Co,discardElement:Eo,erase:Mo,error:To,extend:Po,find:Oo,fireEvent:Lo,getAlignFactor:jo,getStyle:_o,isArray:Io,isNumber:Ro,isObject:Do,isString:No,merge:Bo,objectEach:Fo,pick:zo,pInt:Ho,relativeLength:qo,removeEvent:Wo,splat:Uo,syncTimeout:Xo,uniqueKey:Yo}=Y;class Go{static chart(t,e,n){return new Go(t,e,n)}constructor(t,e,n){this.sharedClips={};let r=[...arguments];(No(t)||t.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:zo(t.zoomType,e.type),key:zo(t.zoomKey,e.key),pinchType:zo(t.pinchType,e.pinchType),singleTouch:zo(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:Bo(e.resetButton,t.resetZoomButton)}}init(t,e){Lo(this,"init",{args:arguments},function(){let n=Bo(uo,t),r=n.chart,i=this.renderTo||r.renderTo;this.userOptions=Po({},t),(this.renderTo=No(i)?go.getElementById(i):i)||To(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.locale=n.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new ct(Po(n.time||{},{locale:this.locale})),n.time=this.time.options,this.numberFormatter=(r.numberFormatter||ho).bind(this),this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=fo.length,fo.push(this),w.chartCount++,po(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Lo(this,"afterInit"),this.firstRender()})}initSeries(t){let e=this.options.chart,n=t.type||e.type,r=vo[n];r||To(17,!0,this,{missingModuleFor:n});let i=new r;return"function"==typeof i.init&&i.init(this,t),i}setSortedData(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})}orderItems(t,e=0){let n=this[t],r=this.options[t]=Uo(this.options[t]).slice(),i=this.userOptions[t]=this.userOptions[t]?Uo(this.userOptions[t]).slice():[];if(this.hasRendered&&(r.splice(e),i.splice(e)),n)for(let t=e,s=n.length;t<s;++t){let e=n[t];e&&(e.index=t,e instanceof Na&&(e.name=e.getName()),e.options.isInternal||(r[t]=e.options,i[t]=e.userOptions))}}isInsidePlot(t,e,n={}){let{inverted:r,plotBox:i,plotLeft:s,plotTop:a,scrollablePlotBox:o}=this,{scrollLeft:l=0,scrollTop:c=0}=n.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},u=n.series,h=n.visiblePlotOnly&&o||i,d=n.inverted?e:t,p=n.inverted?t:e,f={x:d,y:p,isInsidePlot:!0,options:n};if(!n.ignoreX){let t=u&&(r&&!this.polar?u.yAxis:u.xAxis)||{pos:s,len:1/0},e=n.paneCoordinates?t.pos+d:s+d;e>=Math.max(l+s,t.pos)&&e<=Math.min(l+s+h.width,t.pos+t.len)||(f.isInsidePlot=!1)}if(!n.ignoreY&&f.isInsidePlot){let t=!r&&n.axis&&!n.axis.isXAxis&&n.axis||u&&(r?u.xAxis:u.yAxis)||{pos:a,len:1/0},e=n.paneCoordinates?t.pos+p:a+p;e>=Math.max(c+a,t.pos)&&e<=Math.min(c+a+h.height,t.pos+t.len)||(f.isInsidePlot=!1)}return Lo(this,"afterIsInsidePlot",f),f.isInsidePlot}redraw(t){Lo(this,"beforeRedraw");let e,n,r,i,s=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,o=this.pointer,l=this.legend,c=this.userOptions.legend,u=this.renderer,h=u.isHidden(),d=[],p=this.isDirtyBox,f=this.isDirtyLegend;for(u.rootFontSize=u.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),co(!!this.hasRendered&&t,this),h&&this.temporaryDisplay(),this.layOutTitles(!1),r=a.length;r--;)if(((i=a[r]).options.stacking||i.options.centerInCategory)&&(n=!0,i.isDirty)){e=!0;break}if(e)for(r=a.length;r--;)(i=a[r]).options.stacking&&(i.isDirty=!0);a.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):c&&(c.labelFormatter||c.labelFormat)&&(f=!0)),t.isDirtyData&&Lo(t,"updatedData")}),f&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),n&&this.getStacks(),s.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),s.forEach(function(t){t.isDirty&&(p=!0)}),s.forEach(function(t){let e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,d.push(function(){Lo(t,"afterSetExtremes",Po(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(p||n)&&t.redraw()}),p&&this.drawChartBox(),Lo(this,"predraw"),a.forEach(function(t){(p||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),o&&o.reset(!0),u.draw(),Lo(this,"redraw"),Lo(this,"render"),h&&this.temporaryDisplay(!0),d.forEach(function(t){t.call()})}get(t){let e=this.series;function n(e){return e.id===t||e.options&&e.options.id===t}let r=Oo(this.axes,n)||Oo(this.series,n);for(let t=0;!r&&t<e.length;t++)r=Oo(e[t].points||[],n);return r}createAxes(){let t=this.userOptions;for(let e of(Lo(this,"createAxes"),["xAxis","yAxis"]))for(let n of t[e]=Uo(t[e]||{}))new hi(this,n,e);Lo(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(e=>{zo(e.selectedStaging,e.selected)&&t.push(e)}),t),[])}getSelectedSeries(){return this.series.filter(t=>t.selected)}setTitle(t,e,n){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(n)}applyDescription(t,e){let n=this,r=this.options[t]=Bo(this.options[t],e),i=this[t];i&&e&&(this[t]=i=i.destroy()),r&&!i&&((i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,r){n.applyDescription(t,e),n.layOutTitles(r)},this.styledMode||i.css(Po("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),i.textPxLength=i.getBBox().width,i.css({whiteSpace:r.style?.whiteSpace}),this[t]=i)}layOutTitles(t=!0){let e=[0,0,0],{options:n,renderer:r,spacingBox:i}=this;["title","subtitle","caption"].forEach(t=>{let n=this[t],s=this.options[t],a=Bo(i),o=n?.textPxLength||0;if(n&&s){Lo(this,"layOutTitle",{alignTo:a,key:t,textPxLength:o});let i=r.fontMetrics(n),l=i.b,c=i.h,u=s.verticalAlign||"top",h="top"===u,d=h&&s.minScale||1,p="title"===t?h?-3:0:h?e[0]+2:0,f=Math.min(a.width/o,1),g=Math.max(d,f),m=Bo({y:"bottom"===u?l:p+l},{align:"title"===t?f<d?"left":"center":this.title?.alignValue},s),b=s.width||(f>d?this.chartWidth:a.width)/g;n.alignValue!==m.align&&(n.placed=!1);let y=Math.round(n.css({width:`${b}px`}).getBBox(s.useHTML).height);if(m.height=y,n.align(m,!1,a).attr({align:m.align,scaleX:g,scaleY:g,"transform-origin":`${a.x+o*g*jo(m.align)} ${c}`}),!s.floating){let t=y*(y<1.2*c?1:g);"top"===u?e[0]=Math.ceil(e[0]+t):"bottom"===u&&(e[2]=Math.ceil(e[2]+t))}}},this),e[0]&&"top"===(n.title?.verticalAlign||"top")&&(e[0]+=n.title?.margin||0),e[2]&&"bottom"===n.caption?.verticalAlign&&(e[2]+=n.caption?.margin||0);let s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,Lo(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t=[].map.call(this.renderTo.children,t=>{if(t!==this.container){let e=t.style.display;return t.style.display="none",[t,e]}}),e={width:_o(this.renderTo,"width",!0)||0,height:_o(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([t,e])=>{t.style.display=e}),e}getChartSize(){let t=this.options.chart,e=t.width,n=t.height,r=this.getContainerBox(),i=r.height<=1||!this.renderTo.parentElement?.style.height&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,e||r.width||600),this.chartHeight=Math.max(0,qo(n,this.chartWidth)||(i?400:r.height)),this.containerBox=r}temporaryDisplay(t){let e,n=this.renderTo;if(t)for(;n&&n.style;)n.hcOrigStyle&&(Ao(n,n.hcOrigStyle),delete n.hcOrigStyle),n.hcOrigDetached&&(go.body.removeChild(n),n.hcOrigDetached=!1),n=n.parentNode;else for(;n&&n.style&&(go.body.contains(n)||n.parentNode||(n.hcOrigDetached=!0,go.body.appendChild(n)),("none"===_o(n,"display",!1)||n.hcOricDetached)&&(n.hcOrigStyle={display:n.style.display,height:n.style.height,overflow:n.style.overflow},e={display:"block",overflow:"hidden"},n!==this.renderTo&&(e.height=0),Ao(n,e),n.offsetWidth||n.style.setProperty("display","block","important")),(n=n.parentNode)!==go.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,n=e.chart,r="data-highcharts-chart",i=Yo(),s=this.renderTo,a=Ho(wo(s,r));Ro(a)&&fo[a]&&fo[a].hasRendered&&fo[a].destroy(),wo(s,r,this.index),s.innerHTML=$t.emptyHTML,n.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize();let o=this.chartHeight,l=this.chartWidth;Ao(s,{overflow:"hidden"}),this.styledMode||(t=Po({position:"relative",overflow:"hidden",width:l+"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",padding:"0px"},n.style||{}));let c=ko("div",{id:i},t,s);this.container=c,this.getChartSize(),l===this.chartWidth||(l=this.chartWidth,this.styledMode||Ao(c,{width:zo(n.style?.width,l+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c.style.cursor;let u=n.renderer||!bo?fe.getRendererType(n.renderer):er;if(this.renderer=new u(c,l,o,void 0,n.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),co(void 0,this),this.setClassName(n.className),this.styledMode)for(let t in e.defs)this.renderer.definition(e.defs[t]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,Lo(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:n,titleOffset:r}=this;this.resetMargins(),r[0]&&!So(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+e[0])),r[2]&&!So(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,e),Lo(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],n=t.colorAxis,r=t.margin,i=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?i(t.axes):n&&n.length&&i(n),mo.forEach(function(n,i){So(r[i])||(t[n]+=e[i])}),t.setChartSize()}getOptions(){return Co(this.userOptions,uo)}reflow(t){let e=this,n=e.containerBox,r=e.getContainerBox();delete e.pointer?.chartPosition,!e.isPrinting&&!e.isResizing&&n&&r.width&&((r.width!==n.width||r.height!==n.height)&&(Y.clearTimeout(e.reflowTimeout),e.reflowTimeout=Xo(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerBox=r)}setReflow(){let t=this,e=e=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{let t=xo(yo,"resize",e);xo(this,"destroy",t)}}setSize(t,e,n){let r=this,i=r.renderer;r.isResizing+=1,co(n,r);let s=i.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==t&&(r.options.chart.width=t),void 0!==e&&(r.options.chart.height=e),r.getChartSize();let{chartWidth:a,chartHeight:o,scrollablePixelsX:l=0,scrollablePixelsY:c=0}=r;(r.isDirtyBox||a!==r.oldChartWidth||o!==r.oldChartHeight)&&(r.styledMode||(s?oo:Ao)(r.container,{width:`${a+l}px`,height:`${o+c}px`},s),r.setChartSize(!0),i.setSize(a,o,s),r.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(s),r.oldChartHeight=void 0,Lo(r,"resize"),setTimeout(()=>{r&&Lo(r,"endResize")},lo(s).duration)),r.isResizing-=1}setChartSize(t){let e,n,r,i,{chartHeight:s,chartWidth:a,inverted:o,spacing:l,renderer:c}=this,u=this.clipOffset,h=Math[o?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=i=Math.max(0,Math.round(s-n-this.marginBottom)),this.plotSizeX=o?i:r,this.plotSizeY=o?r:i,this.spacingBox=c.spacingBox={x:l[3],y:l[0],width:a-l[3]-l[1],height:s-l[0]-l[2]},this.plotBox=c.plotBox={x:e,y:n,width:r,height:i},u&&(this.clipBox={x:h(u[3]),y:h(u[0]),width:h(this.plotSizeX-u[1]-u[3]),height:h(this.plotSizeY-u[0]-u[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),c.alignElements()),Lo(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){Lo(this,"resetMargins");let t=this,e=t.options.chart,n=e.plotBorderWidth||0,r=n/2;["margin","spacing"].forEach(function(n){let r=e[n],i=Do(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach(function(r,s){t[n][s]=zo(e[n+r],i[s])})}),mo.forEach(function(e,n){t[e]=zo(t.margin[n],t.spacing[n])}),t.axisOffset=[0,0,0,0],t.clipOffset=[r,r,r,r],t.plotBorderWidth=n}drawChartBox(){let t,e,n,r=this.options.chart,i=this.renderer,s=this.chartWidth,a=this.chartHeight,o=this.styledMode,l=this.plotBGImage,c=r.backgroundColor,u=r.plotBackgroundColor,h=r.plotBackgroundImage,d=this.plotLeft,p=this.plotTop,f=this.plotWidth,g=this.plotHeight,m=this.plotBox,b=this.clipRect,y=this.clipBox,v=this.chartBackground,x=this.plotBackground,w=this.plotBorder,k="animate";v||(this.chartBackground=v=i.rect().addClass("highcharts-background").add(),k="attr"),o?t=e=v.strokeWidth():(e=(t=r.borderWidth||0)+(r.shadow?8:0),n={fill:c||"none"},(t||v["stroke-width"])&&(n.stroke=r.borderColor,n["stroke-width"]=t),v.attr(n).shadow(r.shadow)),v[k]({x:e/2,y:e/2,width:s-e-t%2,height:a-e-t%2,r:r.borderRadius}),k="animate",x||(k="attr",this.plotBackground=x=i.rect().addClass("highcharts-plot-background").add()),x[k](m),!o&&(x.attr({fill:u||"none"}).shadow(r.plotShadow),h&&(l?(h!==l.attr("href")&&l.attr("href",h),l.animate(m)):this.plotBGImage=i.image(h,d,p,f,g).add())),b?b.animate({width:y.width,height:y.height}):this.clipRect=i.clipRect(y),k="animate",w||(k="attr",this.plotBorder=w=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||w.attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"}),w[k](w.crisp({x:d,y:p,width:f,height:g},-w.strokeWidth())),this.isDirtyBox=!1,Lo(this,"afterDrawChartBox")}propFromSeries(){let t,e,n,r=this,i=r.options.chart,s=r.options.series;["inverted","angular","polar"].forEach(function(a){for(e=vo[i.type],n=i[a]||e&&e.prototype[a],t=s&&s.length;!n&&t--;)(e=vo[s[t].type])&&e.prototype[a]&&(n=!0);r[a]=n})}linkSeries(t){let e=this,n=e.series;n.forEach(function(t){t.linkedSeries.length=0}),n.forEach(function(t){let{linkedTo:n}=t.options;if(No(n)){let r;(r=":previous"===n?e.series[t.index-1]:e.get(n))&&r.linkedParent!==t&&(r.linkedSeries.push(t),t.linkedParent=r,r.enabledDataSorting&&t.setDataSortingOptions(),t.visible=zo(t.options.visible,r.options.visible,t.visible))}}),Lo(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t,e=this.axes,n=this.colorAxis,r=this.renderer,i=this.options.chart.axisLayoutRuns||2,s=t=>{t.forEach(t=>{t.visible&&t.render()})},a=0,o=!0,l=0;for(let t of(this.setTitle(),Lo(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=t,{labels:n}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&n.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){a=e.tickLength,t.createGroups();let r=new Ir(t,0,"",!0),i=r.createLabel("x",n);if(r.destroy(),i&&zo(n.reserveSpace,!Ro(e.crossing))&&(a=i.getBBox().height+n.distance+Math.max(e.offset||0,0)),a){i?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(o||t||i>1)&&l<i;){let n=this.plotWidth,r=this.plotHeight;for(let n of e)0===l?n.setScale():(n.horiz&&o||!n.horiz&&t)&&n.setTickInterval(!0);0===l?this.getAxisMargins():this.getMargins(),o=n/this.plotWidth>(l?1:1.1),t=r/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?s(e):n&&n.length&&s(n),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,n=Bo(!0,this.options.credits,t);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){n.href&&(yo.location.href=n.href)}).attr({align:n.position.align,zIndex:8}),e.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})}destroy(){let t,e=this,n=e.axes,r=e.series,i=e.container,s=i&&i.parentNode;for(Lo(e,"destroy"),e.renderer.forExport?Mo(fo,e):fo[e.index]=void 0,w.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),Wo(e),t=n.length;t--;)n[t]=n[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=r.length;t--;)r[t]=r[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){let n=e[t];n&&n.destroy&&(e[t]=n.destroy())}),i&&(i.innerHTML=$t.emptyHTML,Wo(i),s&&Eo(i)),Fo(e,function(t,n){delete e[n]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let n=Io(e.series)?e.series:[];e.series=[],n.forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSortedData(),Lo(t,"beforeRender"),t.render(),t.pointer?.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),Lo(this,"load"),Lo(this,"render"),So(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;!t||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||To('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))}addSeries(t,e,n){let r,i=this;return t&&(e=zo(e,!0),Lo(i,"addSeries",{options:t},function(){r=i.initSeries(t),i.isDirtyLegend=!0,i.linkSeries(),r.enabledDataSorting&&r.setData(t.data,!1),Lo(i,"afterAddSeries",{series:r}),e&&i.redraw(n)})),r}addAxis(t,e,n,r){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:n,animation:r})}addColorAxis(t,e,n){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:n})}createAxis(t,e){let n=new hi(this,e.axis,t);return zo(e.redraw,!0)&&this.redraw(e.animation),n}showLoading(t){let e=this,n=e.options,r=n.loading,i=function(){s&&Ao(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},s=e.loadingDiv,a=e.loadingSpan;s||(e.loadingDiv=s=ko("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),a||(e.loadingSpan=a=ko("span",{className:"highcharts-loading-inner"},null,s),xo(e,"redraw",i)),s.className="highcharts-loading",$t.setElementHTML(a,zo(t,n.lang.loading,"")),e.styledMode||(Ao(s,Po(r.style,{zIndex:10})),Ao(a,r.labelStyle),e.loadingShown||(Ao(s,{opacity:0,display:""}),oo(s,{opacity:r.style.opacity||.5},{duration:r.showDuration||0}))),e.loadingShown=!0,i()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||oo(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){Ao(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,n,r){let i,s,a,o=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=t.isResponsiveOptions,u=[];Lo(o,"update",{options:t}),c||o.setResponsive(!1,!0),t=Co(t,o.options),o.userOptions=Bo(o.userOptions,t);let h=t.chart;h&&(Bo(!0,o.options.chart,h),this.setZoomOptions(),"className"in h&&o.setClassName(h.className),("inverted"in h||"polar"in h||"type"in h)&&(o.propFromSeries(),i=!0),"alignTicks"in h&&(i=!0),"events"in h&&po(this,h),Fo(h,function(t,e){-1!==o.propsRequireUpdateSeries.indexOf("chart."+e)&&(s=!0),-1!==o.propsRequireDirtyBox.indexOf(e)&&(o.isDirtyBox=!0),-1===o.propsRequireReflow.indexOf(e)||(o.isDirtyBox=!0,c||(a=!0))}),!o.styledMode&&h.style&&o.renderer.setStyle(o.options.chart.style||{})),!o.styledMode&&t.colors&&(this.options.colors=t.colors),Fo(t,function(e,n){o[n]&&"function"==typeof o[n].update?o[n].update(e,!1):"function"==typeof o[l[n]]?o[l[n]](e):"colors"!==n&&-1===o.collectionsWithUpdate.indexOf(n)&&Bo(!0,o.options[n],t[n]),"chart"!==n&&-1!==o.propsRequireUpdateSeries.indexOf(n)&&(s=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(Uo(t[e]).forEach(function(t,r){let i,s=So(t.id);s&&(i=o.get(t.id)),!i&&o[e]&&(i=o[e][zo(t.index,r)])&&(s&&So(i.options.id)||i.options.isInternal)&&(i=void 0),i&&i.coll===e&&(i.update(t,!1),n&&(i.touched=!0)),!i&&n&&o.collectionsWithInit[e]&&(o.collectionsWithInit[e][0].apply(o,[t].concat(o.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),n&&o[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:u.push(t)}))}),u.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),i&&o.axes.forEach(function(t){t.update({},!1)}),s&&o.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this);let d=h&&h.width,p=h&&(No(h.height)?qo(h.height,d||o.chartWidth):h.height);a||Ro(d)&&d!==o.chartWidth||Ro(p)&&p!==o.chartHeight?o.setSize(d,p,r):zo(e,!0)&&o.redraw(r),Lo(o,"afterUpdate",{options:t,redraw:e,animation:r})}setSubtitle(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)}setCaption(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}showResetZoom(){let t=this,e=uo.lang,n=t.zooming.resetButton,r=n.theme,i="chart"===n.relativeTo||"spacingBox"===n.relativeTo?null:"plotBox";function s(){t.zoomOut()}Lo(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,s,r).attr({align:n.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,i)}),Lo(this,"afterShowResetZoom")}zoomOut(){Lo(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let n=this,r="object"==typeof e?e:{enabled:e,type:"x"},i=r.type,s=i&&n[{x:"xAxis",xy:"axes",y:"yAxis"}[i]].filter(t=>t.options.panningEnabled&&!t.options.isInternal),a=n.options.chart;a?.panning&&(a.panning=r),Lo(this,"pan",{originalEvent:t},()=>{n.transform({axes:s,event:t,to:{x:t.chartX-(n.mouseDownX||0),y:t.chartY-(n.mouseDownY||0)},trigger:"pan"}),Ao(n.container,{cursor:"move"})})}transform(t){let e,n,{axes:r=this.axes,event:i,from:s={},reset:a,selection:o,to:l={},trigger:c}=t,{inverted:u,time:h}=this,d=!1;for(let t of(this.hoverPoints?.forEach(t=>t.setState()),r)){let{horiz:r,len:p,minPointOffset:f=0,options:g,reversed:m}=t,b=r?"width":"height",y=r?"x":"y",v=zo(l[b],t.len),x=zo(s[b],t.len),w=10>Math.abs(v)?1:v/x,k=(s[y]||0)+x/2-t.pos,A=k-((l[y]??t.pos)+v/2-t.pos)/w,S=m&&!u||!m&&u?-1:1;if(!a&&(k<0||k>t.len))continue;let C=t.toValue(A,!0)+(o||t.isOrdinal?0:f*S),E=t.toValue(A+p/w,!0)-(o||t.isOrdinal?0:f*S||0),M=t.allExtremes;if(C>E&&([C,E]=[E,C]),1===w&&!a&&"yAxis"===t.coll&&!M){for(let e of t.series){let t=e.getExtremes(e.getProcessedData(!0).modified.getColumn("y")||[],!0);M??(M={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Ro(t.dataMin)&&Ro(t.dataMax)&&(M.dataMin=Math.min(t.dataMin,M.dataMin),M.dataMax=Math.max(t.dataMax,M.dataMax))}t.allExtremes=M}let{dataMin:T,dataMax:P,min:O,max:L}=Po(t.getExtremes(),M||{}),j=h.parse(g.min),_=h.parse(g.max),I=T??j,R=P??_,D=E-C,N=t.categories?0:Math.min(D,R-I),B=I-N*(So(j)?0:g.minPadding),F=R+N*(So(_)?0:g.maxPadding),z=t.allowZoomOutside||1===w||"zoom"!==c&&w>1,H=Math.min(j??B,B,z?O:B),q=Math.max(_??F,F,z?L:F);(!t.isOrdinal||t.options.overscroll||1!==w||a)&&(C<H&&(C=H,w>=1&&(E=C+D)),E>q&&(E=q,w>=1&&(C=E-D)),(a||t.series.length&&(C!==O||E!==L)&&C>=H&&E<=q)&&(o?o[t.coll].push({axis:t,min:C,max:E}):(t.isPanning="zoom"!==c,t.isPanning&&(n=!0),t.setExtremes(a?void 0:C,a?void 0:E,!1,!1,{move:A,trigger:c,scale:w}),!a&&(C>H||E<q)&&"mousewheel"!==c&&(e=!0)),d=!0),i&&(this[r?"mouseDownX":"mouseDownY"]=i[r?"chartX":"chartY"]))}return d&&(o?Lo(this,"selection",o,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!e||n||this.resetZoomButton?!e&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===c&&(this.options.chart.animation??this.pointCount<100)))),d}}Po(Go.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Go.prototype.addAxis,[!0]],yAxis:[Go.prototype.addAxis,[!1]],series:[Go.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"]});let{stop:Vo}=Dt,{composed:Ko}=w,{addEvent:$o,createElement:Zo,css:Jo,defined:Qo,erase:tl,merge:el,pushUnique:nl}=Y;function rl(){let t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new sl(this)),t?.applyFixed()}function il(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class sl{static compose(t,e,n){nl(Ko,this.compose)&&($o(t,"afterInit",il),$o(e,"afterSetChartSize",t=>this.afterSetSize(t.target,t)),$o(e,"render",rl),$o(n,"show",il))}static afterSetSize(t,e){let n,r,i,{minWidth:s,minHeight:a}=t.options.chart.scrollablePlotArea||{},{clipBox:o,plotBox:l,inverted:c,renderer:u}=t;if(!u.forExport&&(s?(t.scrollablePixelsX=n=Math.max(0,s-t.chartWidth),n&&(t.scrollablePlotBox=el(t.plotBox),l.width=t.plotWidth+=n,o[c?"height":"width"]+=n,i=!0)):a&&(t.scrollablePixelsY=r=Math.max(0,a-t.chartHeight),Qo(r)&&(t.scrollablePlotBox=el(t.plotBox),l.height=t.plotHeight+=r,o[c?"width":"height"]+=r,i=!1)),Qo(i)&&!e.skipAxes))for(let e of t.axes)(e.horiz===i||t.hasParallelCoordinates&&"yAxis"===e.coll)&&(e.setAxisSize(),e.setAxisTranslation())}constructor(t){let e,n=t.options.chart,r=fe.getRendererType(),i=n.scrollablePlotArea||{},s=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(a.overflowX="auto"),t.scrollablePixelsY&&(a.overflowY="auto"),this.chart=t;let o=this.parentDiv=Zo("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),l=this.scrollingContainer=Zo("div",{className:"highcharts-scrolling"},a,o),c=this.innerContainer=Zo("div",{className:"highcharts-inner-container"},void 0,l),u=this.fixedDiv=Zo("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(n.style?.zIndex||0)+2,top:0},void 0,!0),h=this.fixedRenderer=new r(u,t.chartWidth,t.chartHeight,n.style);this.mask=h.path().attr({fill:n.backgroundColor||"#fff","fill-opacity":i.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),l.parentNode.insertBefore(u,l),Jo(t.renderTo,{overflow:"visible"}),$o(t,"afterShowResetZoom",s),$o(t,"afterApplyDrilldown",s),$o(t,"afterLayOutTitles",s),$o(l,"scroll",()=>{let{pointer:n,hoverPoint:r}=t;n&&(delete n.chartPosition,r&&(e=r),n.runPointActions(void 0,e,!0))}),c.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:n,scrollingContainer:r}=this,{axisOffset:i,chartWidth:s,chartHeight:a,container:o,plotHeight:l,plotLeft:c,plotTop:u,plotWidth:h,scrollablePixelsX:d=0,scrollablePixelsY:p=0}=t,{scrollPositionX:f=0,scrollPositionY:g=0}=t.options.chart.scrollablePlotArea||{},m=s+d,b=a+p;e.setSize(s,a),(n??!0)&&(this.isDirty=!1,this.moveFixedElements()),Vo(t.container),Jo(o,{width:`${m}px`,height:`${b}px`}),t.renderer.boxWrapper.attr({width:m,height:b,viewBox:[0,0,m,b].join(" ")}),t.chartBackground?.attr({width:m,height:b}),Jo(r,{width:`${s}px`,height:`${a}px`}),Qo(n)||(r.scrollLeft=d*f,r.scrollTop=p*g);let y=u-i[0]-1,v=c-i[3]-1,x=u+l+i[2]+1,w=c+h+i[1]+1,k=c+h-d,A=u+l-p,S=[["M",0,0]];d?S=[["M",0,y],["L",c-1,y],["L",c-1,x],["L",0,x],["Z"],["M",k,y],["L",s,y],["L",s,x],["L",k,x],["Z"]]:p&&(S=[["M",v,0],["L",v,u-1],["L",w,u-1],["L",w,0],["Z"],["M",v,A],["L",v,a],["L",w,a],["L",w,A],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:S})}moveFixedElements(){let t,{container:e,inverted:n,scrollablePixelsX:r,scrollablePixelsY:i}=this.chart,s=this.fixedRenderer,a=sl.fixedSelectors;if(r&&!n?t=".highcharts-yaxis":r&&n||i&&!n?t=".highcharts-xaxis":i&&n&&(t=".highcharts-yaxis"),!t||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===t)for(let t of[".highcharts-xaxis",".highcharts-yaxis"])for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])tl(a,e);else for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])nl(a,e);for(let t of a)[].forEach.call(e.querySelectorAll(t),t=>{(t.namespaceURI===s.SVG_NS?s.box:s.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}}sl.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:al}=pe,{series:ol}=ia,{destroyObjectProperties:ll,fireEvent:cl,getAlignFactor:ul,isNumber:hl,pick:dl}=Y,pl=class{constructor(t,e,n,r,i){let s=t.chart.inverted,a=t.reversed;this.axis=t;let o=this.isNegative=!!n!=!!a;this.options=e=e||{},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(s?o?"left":"right":"center"),verticalAlign:e.verticalAlign||(s?"middle":o?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(s?o?"right":"left":"center")}destroy(){ll(this,this.axis)}render(t){let e=this.axis.chart,n=this.options,r=n.format,i=r?al(r,this,e):n.formatter.call(this);if(this.label)this.label.attr({text:i,visibility:"hidden"});else{this.label=e.renderer.label(i,null,void 0,n.shape,void 0,void 0,n.useHTML,!1,"stack-labels");let r={r:n.borderRadius||0,text:i,padding:dl(n.padding,5),visibility:"hidden"};e.styledMode||(r.fill=n.backgroundColor,r.stroke=n.borderColor,r["stroke-width"]=n.borderWidth,this.label.css(n.style||{})),this.label.attr(r),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,cl(this,"afterRender")}setOffset(t,e,n,r,i,s){let{alignOptions:a,axis:o,label:l,options:c,textAlign:u}=this,h=o.chart,d=this.getStackBox({xOffset:t,width:e,boxBottom:n,boxTop:r,defaultX:i,xAxis:s}),{verticalAlign:p}=a;if(l&&d){let t,e=l.getBBox(void 0,0),n=l.padding,r="justify"===dl(c.overflow,"justify");a.x=c.x||0,a.y=c.y||0;let{x:i,y:s}=this.adjustStackPosition({labelBox:e,verticalAlign:p,textAlign:u});d.x-=i,d.y-=s,l.align(a,!1,d),(t=h.isInsidePlot(l.alignAttr.x+a.x+i,l.alignAttr.y+a.y+s))||(r=!1),r&&ol.prototype.justifyDataLabel.call(o,l,a,l.alignAttr,e,d),l.attr({x:l.alignAttr.x,y:l.alignAttr.y,rotation:c.rotation,rotationOriginX:e.width*ul(c.textAlign||"center"),rotationOriginY:e.height/2}),dl(!r&&c.crop,!0)&&(t=hl(l.x)&&hl(l.y)&&h.isInsidePlot(l.x-n+(l.width||0),l.y)&&h.isInsidePlot(l.x+n,l.y)),l[t?"show":"hide"]()}cl(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition({labelBox:t,verticalAlign:e,textAlign:n}){return{x:t.width/2+t.width/2*(2*ul(n)-1),y:t.height/2*2*(1-ul(e))}}getStackBox(t){let e=this.axis,n=e.chart,{boxTop:r,defaultX:i,xOffset:s,width:a,boxBottom:o}=t,l=e.stacking.usePercentage?100:dl(r,this.total,0),c=e.toPixels(l),u=t.xAxis||n.xAxis[0],h=dl(i,u.translate(this.x))+s,d=Math.abs(c-e.toPixels(o||hl(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),p=n.inverted,f=this.isNegative;return p?{x:(f?c:c-d)-n.plotLeft,y:u.height-h-a+u.top-n.plotTop,width:d,height:a}:{x:h+u.transB-n.plotLeft,y:(f?c-d:c)-n.plotTop,width:a,height:d}}},{getDeferredAnimation:fl}=Dt,{series:{prototype:gl}}=ia,{addEvent:ml,correctFloat:bl,defined:yl,destroyObjectProperties:vl,fireEvent:xl,isNumber:wl,objectEach:kl,pick:Al}=Y;function Sl(){let t=this.inverted;this.axes.forEach(t=>{t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(e=>{let n=e.xAxis&&e.xAxis.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,Al(e.options.stack,""),t?n.top:n.left,t?n.height:n.width].join(","))})}function Cl(){let t=this.stacking;if(t){let e=t.stacks;kl(e,(t,n)=>{vl(t),delete e[n]}),t.stackTotalGroup?.destroy()}}function El(){this.stacking||(this.stacking=new jl(this))}function Ml(t,e,n,r){return!yl(t)||t.x!==e||r&&t.stackKey!==r?t={x:e,index:0,key:r,stackKey:r}:t.index++,t.key=[n,e,t.index].join(","),t}function Tl(){let t,e=this,n=e.yAxis,r=e.stackKey||"",i=n.stacking.stacks,s=e.getColumn("x",!0),a=e.options.stacking,o=e[a+"Stacker"];o&&[r,"-"+r].forEach(n=>{let r,a,l,c=s.length;for(;c--;)r=s[c],t=e.getStackIndicator(t,r,e.index,n),a=i[n]?.[r],(l=a?.points[t.key||""])&&o.call(e,l,a,c)})}function Pl(t,e,n){let r=e.total?100/e.total:0;t[0]=bl(t[0]*r),t[1]=bl(t[1]*r),this.stackedYData[n]=t[1]}function Ol(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?gl.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function Ll(t,e){let n,r,i,s,a,o,l,c=e||this.options.stacking;if(!c||!this.reserveSpace()||({group:"xAxis"}[c]||"yAxis")!==t.coll)return;let u=this.getColumn("x",!0),h=this.getColumn(this.pointValKey||"y",!0),d=[],p=h.length,f=this.options,g=f.threshold||0,m=f.startFromThreshold?g:0,b=f.stack,y=e?`${this.type},${c}`:this.stackKey||"",v="-"+y,x=this.negStacks,w=t.stacking,k=w.stacks,A=w.oldStacks;for(w.stacksTouched+=1,l=0;l<p;l++){let e=u[l]||0,p=h[l],f=wl(p)&&p||0;o=(n=this.getStackIndicator(n,e,this.index)).key||"",k[a=(r=x&&f<(m?0:g))?v:y]||(k[a]={}),k[a][e]||(A[a]?.[e]?(k[a][e]=A[a][e],k[a][e].total=null):k[a][e]=new pl(t,t.options.stackLabels,!!r,e,b)),i=k[a][e],null!==p?(i.points[o]=i.points[this.index]=[Al(i.cumulative,m)],yl(i.cumulative)||(i.base=o),i.touched=w.stacksTouched,n.index>0&&!1===this.singleStacks&&(i.points[o][0]=i.points[this.index+","+e+",0"][0])):(delete i.points[o],delete i.points[this.index]);let S=i.total||0;"percent"===c?(s=r?y:v,S=x&&k[s]?.[e]?(s=k[s][e]).total=Math.max(s.total||0,S)+Math.abs(f):bl(S+Math.abs(f))):"group"===c?wl(p)&&S++:S=bl(S+f),i.cumulative="group"===c?(S||1)-1:bl(Al(i.cumulative,m)+f),i.total=S,null!==p&&(i.points[o].push(i.cumulative),d[l]=i.cumulative,i.hasValidPoints=!0)}"percent"===c&&(w.usePercentage=!0),"group"!==c&&(this.stackedYData=d),w.oldStacks={}}class jl{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,n=this.axis,r=n.series,i="xAxis"===n.coll,s=n.options.reversedStacks,a=r.length;for(this.resetStacks(),this.usePercentage=!1,e=a;e--;)t=r[s?e:a-e-1],i&&t.setGroupedPoints(n),t.setStackedPoints(n);if(!i)for(e=0;e<a;e++)r[e].modifyStacks();xl(n,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,kl(this.stacks,t=>{kl(t,t=>{t.cumulative=t.total})}))}resetStacks(){kl(this.stacks,t=>{kl(t,(e,n)=>{wl(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[n]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){let t=this.axis,e=t.chart,n=e.renderer,r=this.stacks,i=fl(e,t.options.stackLabels?.animation||!1),s=this.stackTotalGroup=this.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(e.plotLeft,e.plotTop),kl(r,t=>{kl(t,t=>{t.render(s)})}),s.animate({opacity:1},i)}}(d||(d={})).compose=function(t,e,n){let r=e.prototype,i=n.prototype;r.getStacks||(ml(t,"init",El),ml(t,"destroy",Cl),r.getStacks=Sl,i.getStackIndicator=Ml,i.modifyStacks=Tl,i.percentStacker=Pl,i.setGroupedPoints=Ol,i.setStackedPoints=Ll)};let _l=d,{defined:Il,merge:Rl,isObject:Dl}=Y;class Nl extends Na{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode;[this,...this.zones].forEach((r,i)=>{let s,a=r.graph,o=a?"animate":"attr",l=r.dashStyle||t.dashStyle;a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):e.length&&(r.graph=a=this.chart.renderer.path(e).addClass("highcharts-graph"+(i?` highcharts-zone-graph-${i-1} `:" ")+(i&&r.className||"")).attr({zIndex:1}).add(this.group)),a&&!n&&(s={stroke:!i&&t.lineColor||r.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},l?s.dashstyle=l:"square"!==t.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[o](s).shadow(t.shadow&&Rl({filterUnits:"userSpaceOnUse"},Dl(t.shadow)?t.shadow:{}))),a&&(a.startX=e.xMap,a.isArea=e.isArea)})}getGraphPath(t,e,n){let r,i=this,s=i.options,a=[],o=[],l=s.step,c=(t=t||i.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,!(s.connectNulls&&!e&&!n))).forEach(function(c,u){let h,d=c.plotX,p=c.plotY,f=t[u-1],g=c.isNull||"number"!=typeof p;(c.leftCliff||f&&f.rightCliff)&&!n&&(r=!0),g&&!Il(e)&&u>0?r=!s.connectNulls:g&&!e?r=!0:(0===u||r?h=[["M",c.plotX,c.plotY]]:i.getPointSpline?h=[i.getPointSpline(t,c,u)]:l?(h=1===l?[["L",f.plotX,p]]:2===l?[["L",(f.plotX+d)/2,f.plotY],["L",(f.plotX+d)/2,p]]:[["L",d,f.plotY]]).push(["L",d,p]):h=[["L",d,p]],o.push(c.x),l&&(o.push(c.x),2===l&&o.push(c.x)),a.push.apply(a,h),r=!1)}),a.xMap=o,i.graphPath=a,a}}Nl.defaultOptions=Rl(Na.defaultOptions,{legendSymbol:"lineMarker"}),ia.registerSeriesType("line",Nl);let{seriesTypes:{line:Bl}}=ia,{extend:Fl,merge:zl,objectEach:Hl,pick:ql}=Y;class Wl extends Bl{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((n,r)=>{let i={},s=n.fillColor||e.fillColor,a=n.area,o=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):(i.zIndex=0,(a=n.area=this.chart.renderer.path(t).addClass("highcharts-area"+(r?` highcharts-zone-area-${r-1} `:" ")+(r&&n.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(i.fill=s||n.color||this.color,i["fill-opacity"]=s?1:e.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[o](i),a.startX=t.xMap,a.shiftUnit=e.step?2:1})}getGraphPath(t){let e,n,r,i=Bl.prototype.getGraphPath,s=this.options,a=s.stacking,o=this.yAxis,l=[],c=[],u=this.index,h=o.stacking.stacks[this.stackKey],d=s.threshold,p=Math.round(o.getThreshold(s.threshold)),f=ql(s.connectNulls,"percent"===a),g=function(n,r,i){let s,f,g=t[n],m=a&&h[g.x].points[u],b=g[i+"Null"]||0,y=g[i+"Cliff"]||0,v=!0;y||b?(s=(b?m[0]:m[1])+y,f=m[0]+y,v=!!b):!a&&t[r]&&t[r].isNull&&(s=f=d),void 0!==s&&(c.push({plotX:e,plotY:null===s?p:o.getThreshold(s),isNull:v,isCliff:!0}),l.push({plotX:e,plotY:null===f?p:o.getThreshold(f),doCurve:!1}))};t=t||this.points,a&&(t=this.getStackPoints(t));for(let i=0,s=t.length;i<s;++i)a||(t[i].leftCliff=t[i].rightCliff=t[i].leftNull=t[i].rightNull=void 0),n=t[i].isNull,e=ql(t[i].rectPlotX,t[i].plotX),r=a?ql(t[i].yBottom,p):p,n&&!f||(f||g(i,i-1,"left"),n&&!a&&f||(c.push(t[i]),l.push({x:i,plotX:e,plotY:r})),f||g(i,i+1,"right"));let m=i.call(this,c,!0,!0);l.reversed=!0;let b=i.call(this,l,!0,!0),y=b[0];y&&"M"===y[0]&&(b[0]=["L",y[1],y[2]]);let v=m.concat(b);v.length&&v.push(["Z"]);let x=i.call(this,c,!1,f);return this.chart.series.length>1&&a&&c.some(t=>t.isCliff)&&(v.hasStackedCliffs=x.hasStackedCliffs=!0),v.xMap=m.xMap,this.areaPath=v,x}getStackPoints(t){let e=this,n=[],r=[],i=this.xAxis,s=this.yAxis,a=s.stacking.stacks[this.stackKey],o={},l=s.series,c=l.length,u=s.options.reversedStacks?1:-1,h=l.indexOf(e);if(t=t||this.points,this.options.stacking){for(let e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,o[t[e].x]=t[e];Hl(a,function(t,e){null!==t.total&&r.push(e)}),r.sort(function(t,e){return t-e});let d=l.map(t=>t.visible);r.forEach(function(t,p){let f,g,m=0;if(o[t]&&!o[t].isNull)n.push(o[t]),[-1,1].forEach(function(n){let i=1===n?"rightNull":"leftNull",s=a[r[p+n]],m=0;if(s){let n=h;for(;n>=0&&n<c;){let r=l[n].index;!(f=s.points[r])&&(r===e.index?o[t][i]=!0:d[n]&&(g=a[t].points[r])&&(m-=g[1]-g[0])),n+=u}}o[t][1===n?"rightCliff":"leftCliff"]=m});else{let e=h;for(;e>=0&&e<c;){let n=l[e].index;if(f=a[t].points[n]){m=f[1];break}e+=u}m=ql(m,0),m=s.translate(m,0,1,0,1),n.push({isNull:!0,plotX:i.translate(t,0,0,0,1),x:t,plotY:m,yBottom:m})}})}return n}}Wl.defaultOptions=zl(Bl.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Fl(Wl.prototype,{singleStacks:!1}),ia.registerSeriesType("area",Wl);let{line:Ul}=ia.seriesTypes,{merge:Xl,pick:Yl}=Y;class Gl extends Ul{getPointSpline(t,e,n){let r,i,s,a,o=e.plotX||0,l=e.plotY||0,c=t[n-1],u=t[n+1];function h(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(h(c)&&h(u)){let t=c.plotX||0,n=c.plotY||0,h=u.plotX||0,d=u.plotY||0,p=0;r=(1.5*o+t)/2.5,i=(1.5*l+n)/2.5,s=(1.5*o+h)/2.5,a=(1.5*l+d)/2.5,s!==r&&(p=(a-i)*(s-o)/(s-r)+l-a),i+=p,a+=p,i>n&&i>l?(i=Math.max(n,l),a=2*l-i):i<n&&i<l&&(i=Math.min(n,l),a=2*l-i),a>d&&a>l?(a=Math.max(d,l),i=2*l-a):a<d&&a<l&&(a=Math.min(d,l),i=2*l-a),e.rightContX=s,e.rightContY=a,e.controlPoints={low:[r,i],high:[s,a]}}let d=["C",Yl(c.rightContX,c.plotX,0),Yl(c.rightContY,c.plotY,0),Yl(r,o,0),Yl(i,l,0),o,l];return c.rightContX=c.rightContY=void 0,d}}Gl.defaultOptions=Xl(Ul.defaultOptions),ia.registerSeriesType("spline",Gl);let Vl=Gl,{area:Kl,area:{prototype:$l}}=ia.seriesTypes,{extend:Zl,merge:Jl}=Y;class Ql extends Vl{}Ql.defaultOptions=Jl(Vl.defaultOptions,Kl.defaultOptions),Zl(Ql.prototype,{getGraphPath:$l.getGraphPath,getStackPoints:$l.getStackPoints,drawGraph:$l.drawGraph}),ia.registerSeriesType("areaspline",Ql);let{animObject:tc}=Dt,{parse:ec}=xt,{noop:nc}=w,{clamp:rc,crisp:ic,defined:sc,extend:ac,fireEvent:oc,isArray:lc,isNumber:cc,merge:uc,pick:hc,objectEach:dc}=Y;class pc extends Na{animate(t){let e,n,r=this,i=this.yAxis,s=i.pos,a=i.reversed,o=r.options,{clipOffset:l,inverted:c}=this.chart,u={},h=c?"translateX":"translateY";t&&l?(u.scaleY=.001,n=rc(i.toPixels(o.threshold||0),s,s+i.len),c?(n+=a?-Math.floor(l[0]):Math.ceil(l[2]),u.translateX=n-i.len):(n+=a?Math.ceil(l[0]):-Math.floor(l[2]),u.translateY=n),r.clipBox&&r.setClip(),r.group.attr(u)):(e=Number(r.group.attr(h)),r.group.animate({scaleY:1},ac(tc(r.options.animation),{step:function(t,n){r.group&&(u[h]=e+n.pos*(s-e),r.group.attr(u))}})))}init(t,e){super.init.apply(this,arguments);let n=this;(t=n.chart).hasRendered&&t.series.forEach(function(t){t.type===n.type&&(t.isDirty=!0)})}getColumnMetrics(){let t,e=this,n=e.options,r=e.xAxis,i=e.yAxis,s=r.options.reversedStacks,a=r.reversed&&!s||!r.reversed&&s,o={},l=0;!1===n.grouping?l=1:e.chart.series.forEach(function(n){let r,s=n.yAxis,a=n.options;n.type===e.type&&n.reserveSpace()&&i.len===s.len&&i.pos===s.pos&&(a.stacking&&"group"!==a.stacking?(void 0===o[t=n.stackKey]&&(o[t]=l++),r=o[t]):!1!==a.grouping&&(r=l++),n.columnIndex=r)});let c=Math.min(Math.abs(r.transA)*(!r.brokenAxis?.hasBreaks&&r.ordinal?.slope||n.pointRange||r.closestPointRange||r.tickInterval||1),r.len),u=c*n.groupPadding,h=(c-2*u)/(l||1),d=Math.min(n.maxPointWidth||r.len,hc(n.pointWidth,h*(1-2*n.pointPadding))),p=(e.columnIndex||0)+(a?1:0);return e.columnMetrics={width:d,offset:(h-d)/2+(u+p*h-c/2)*(a?-1:1),paddedWidth:h,columnCount:l},e.columnMetrics}crispCol(t,e,n,r){let i=this.borderWidth,s=this.chart.inverted;return r=ic(e+r,i,s)-(e=ic(e,i,s)),this.options.crisp&&(n=ic(t+n,i)-(t=ic(t,i))),{x:t,y:e,width:n,height:r}}adjustForMissingColumns(t,e,n,r){if(!n.isNull&&r.columnCount>1){let i=this.xAxis.series.filter(t=>t.visible).map(t=>t.index),s=0,a=0;dc(this.xAxis.stacking?.stacks,t=>{let e="number"==typeof n.x?t[n.x.toString()]?.points:void 0,r=e?.[this.index],o={};if(e&&lc(r)){let t=this.index,n=Object.keys(e).filter(t=>!t.match(",")&&e[t]&&e[t].length>1).map(parseFloat).filter(t=>-1!==i.indexOf(t)).filter(e=>{let n=this.chart.series[e].options,r=n.stacking&&n.stack;if(sc(r)){if(cc(o[r]))return t===e&&(t=o[r]),!1;o[r]=e}return!0}).sort((t,e)=>e-t);s=n.indexOf(t),a=n.length}}),s=this.xAxis.reversed?a-1-s:s;let o=(a-1)*r.paddedWidth+e;t=(n.plotX||0)+o/2-e-s*r.paddedWidth}return t}translate(){let t=this,e=t.chart,n=t.options,r=t.dense=t.closestPointRange*t.xAxis.transA<2,i=t.borderWidth=hc(n.borderWidth,r?0:1),s=t.xAxis,a=t.yAxis,o=n.threshold,l=hc(n.minPointLength,5),c=t.getColumnMetrics(),u=c.width,h=t.pointXOffset=c.offset,d=t.dataMin,p=t.dataMax,f=t.translatedThreshold=a.getThreshold(o),g=t.barW=Math.max(u,1+2*i);n.pointPadding&&n.crisp&&(g=Math.ceil(g)),Na.prototype.translate.apply(t),t.points.forEach(function(r){let i,m=hc(r.yBottom,f),b=999+Math.abs(m),y=r.plotX||0,v=rc(r.plotY,-b,a.len+b),x=Math.min(v,m),w=Math.max(v,m)-x,k=u,A=y+h,S=g;l&&Math.abs(w)<l&&(w=l,i=!a.reversed&&!r.negative||a.reversed&&r.negative,cc(o)&&cc(p)&&r.y===o&&p<=o&&(a.min||0)<o&&(d!==p||(a.max||0)<=o)&&(i=!i,r.negative=!r.negative),x=Math.abs(x-f)>l?m-l:f-(i?l:0)),sc(r.options.pointWidth)&&(A-=Math.round(((k=S=Math.ceil(r.options.pointWidth))-u)/2)),n.centerInCategory&&(A=t.adjustForMissingColumns(A,k,r,c)),r.barX=A,r.pointWidth=k,r.tooltipPos=e.inverted?[rc(a.len+a.pos-e.plotLeft-v,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),s.len+s.pos-e.plotTop-A-S/2,w]:[s.left-e.plotLeft+A+S/2,rc(v+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),w],r.shapeType=t.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=t.crispCol(A,r.isNull?f:x,S,r.isNull?0:w)}),oc(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let n,r,i,s=this.options,a=this.pointAttrToOptions||{},o=a.stroke||"borderColor",l=a["stroke-width"]||"borderWidth",c=t&&t.color||this.color,u=t&&t[o]||s[o]||c,h=t&&t.options.dashStyle||s.dashStyle,d=t&&t[l]||s[l]||this[l]||0,p=hc(t&&t.opacity,s.opacity,1);t&&this.zones.length&&(r=t.getZone(),c=t.options.color||r&&(r.color||t.nonZonedColor)||this.color,r&&(u=r.borderColor||u,h=r.dashStyle||h,d=r.borderWidth||d)),e&&t&&(i=(n=uc(s.states[e],t.options.states&&t.options.states[e]||{})).brightness,c=n.color||void 0!==i&&ec(c).brighten(n.brightness).get()||c,u=n[o]||u,d=n[l]||d,h=n.dashStyle||h,p=hc(n.opacity,p));let f={fill:c,stroke:u,"stroke-width":d,opacity:p};return h&&(f.dashstyle=h),f}drawPoints(t=this.points){let e,n=this,r=this.chart,i=n.options,s=r.renderer,a=i.animationLimit||250;t.forEach(function(t){let o=t.plotY,l=t.graphic,c=!!l,u=l&&r.pointCount<a?"animate":"attr";cc(o)&&null!==t.y?(e=t.shapeArgs,l&&t.hasNewShapeType()&&(l=l.destroy()),n.enabledDataSorting&&(t.startXPos=n.xAxis.reversed?-(e&&e.width||0):n.xAxis.width),!l&&(t.graphic=l=s[t.shapeType](e).add(t.group||n.group),l&&n.enabledDataSorting&&r.hasRendered&&r.pointCount<a&&(l.attr({x:t.startXPos}),c=!0,u="animate")),l&&c&&l[u](uc(e)),r.styledMode||l[u](n.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&i.shadow),l&&(l.addClass(t.getClassName(),!0),l.attr({visibility:t.visible?"inherit":"hidden"}))):l&&(t.graphic=l.destroy())})}drawTracker(t=this.points){let e,n=this,r=n.chart,i=r.pointer,s=function(t){i?.normalize(t);let e=i?.getPointFromEvent(t),s=!r.scrollablePlotArea||r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0});i&&e&&n.options.enableMouseTracking&&s&&(i.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=lc(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){(e.div||e.element).point=t})}),n._hasTracking||(n.trackerGroups.forEach(function(t){n[t]&&(n[t].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){i?.onTrackerMouseOut(t)}).on("touchstart",s),!r.styledMode&&n.options.cursor&&n[t].css({cursor:n.options.cursor}))}),n._hasTracking=!0),oc(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),Na.prototype.remove.apply(t,arguments)}}pc.defaultOptions=uc(Na.defaultOptions,{borderRadius:3,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"}),ac(pc.prototype,{directTouch:!0,getSymbol:nc,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),ia.registerSeriesType("column",pc);let fc=pc,{getDeferredAnimation:gc}=Dt,{format:mc}=pe,{defined:bc,extend:yc,fireEvent:vc,getAlignFactor:xc,isArray:wc,isString:kc,merge:Ac,objectEach:Sc,pick:Cc,pInt:Ec,splat:Mc}=Y;!function(t){function e(){return l(this).some(t=>t?.enabled)}function n(t,e,n,r,i){let{chart:s,enabledDataSorting:a}=this,o=this.isCartesian&&s.inverted,l=t.plotX,c=t.plotY,u=n.rotation||0,h=bc(l)&&bc(c)&&s.isInsidePlot(l,Math.round(c),{inverted:o,paneCoordinates:!0,series:this}),d=0===u&&"justify"===Cc(n.overflow,a?"none":"justify"),p=this.visible&&!1!==t.visible&&bc(l)&&(t.series.forceDL||a&&!d||h||Cc(n.inside,!!this.options.stacking)&&r&&s.isInsidePlot(l,o?r.x+1:r.y+r.height-1,{inverted:o,paneCoordinates:!0,series:this})),f=t.pos();if(p&&f){var g;let l=e.getBBox(),c=e.getBBox(void 0,0);if(r=yc({x:f[0],y:Math.round(f[1]),width:0,height:0},r||{}),"plotEdges"===n.alignTo&&this.isCartesian&&(r[o?"x":"y"]=0,r[o?"width":"height"]=this.yAxis?.len||0),yc(n,{width:l.width,height:l.height}),g=r,a&&this.xAxis&&!d&&this.setDataLabelStartPos(t,e,i,h,g),e.align(Ac(n,{width:c.width,height:c.height}),!1,r,!1),e.alignAttr.x+=xc(n.align)*(c.width-l.width),e.alignAttr.y+=xc(n.verticalAlign)*(c.height-l.height),e[e.placed?"animate":"attr"]({"text-align":e.alignAttr["text-align"]||"center",x:e.alignAttr.x+(l.width-c.width)/2,y:e.alignAttr.y+(l.height-c.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),d&&r.height>=0)this.justifyDataLabel(e,n,e.alignAttr,l,r,i);else if(Cc(n.crop,!0)){let{x:t,y:n}=e.alignAttr;p=s.isInsidePlot(t,n,{paneCoordinates:!0,series:this})&&s.isInsidePlot(t+l.width-1,n+l.height-1,{paneCoordinates:!0,series:this})}n.shape&&!u&&e[i?"attr":"animate"]({anchorX:f[0],anchorY:f[1]})}i&&a&&(e.placed=!1),p||a&&!d?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function r(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function i(t){let e=this.hasRendered||0,n=this.initDataLabelsGroup().attr({opacity:+e});return!e&&n&&(this.visible&&n.show(),this.options.animation?n.animate({opacity:1},t):n.attr({opacity:1})),n}function s(t){let e;t=t||this.points;let n=this,r=n.chart,i=n.options,s=r.renderer,{backgroundColor:a,plotBackgroundColor:c}=r.options.chart,u=s.getContrast(kc(c)&&c||kc(a)&&a||"#000000"),h=l(n),{animation:d,defer:p}=h[0],f=p?gc(r,d,n):{defer:0,duration:0};vc(this,"drawDataLabels"),n.hasDataLabels?.()&&(e=this.initDataLabels(f),t.forEach(t=>{let a=t.dataLabels||[];Mc(o(h,t.dlOptions||t.options?.dataLabels)).forEach((o,l)=>{let c,h,d,p,f=o.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){let n=e.filter;if(n){let e=n.operator,r=t[n.property],i=n.value;return">"===e&&r>i||"<"===e&&r<i||">="===e&&r>=i||"<="===e&&r<=i||"=="===e&&r==i||"==="===e&&r===i||"!="===e&&r!=i||"!=="===e&&r!==i}return!0}(t,o),{backgroundColor:g,borderColor:m,distance:b,style:y={}}=o,v={},x=a[l],w=!x;f&&(h=bc(c=Cc(o[t.formatPrefix+"Format"],o.format))?mc(c,t,r):(o[t.formatPrefix+"Formatter"]||o.formatter).call(t,o),d=o.rotation,!r.styledMode&&(y.color=Cc(o.color,y.color,kc(n.color)?n.color:void 0,"#000000"),"contrast"===y.color?("none"!==g&&(p=g),t.contrastColor=s.getContrast("auto"!==p&&p||t.color||n.color),y.color=p||!bc(b)&&o.inside||0>Ec(b||0)||i.stacking?t.contrastColor:u):delete t.contrastColor,i.cursor&&(y.cursor=i.cursor)),v={r:o.borderRadius||0,rotation:d,padding:o.padding,zIndex:1},r.styledMode||(v.fill="auto"===g?t.color:g,v.stroke="auto"===m?t.color:m,v["stroke-width"]=o.borderWidth),Sc(v,(t,e)=>{void 0===t&&delete v[e]})),!x||f&&bc(h)&&!!x.div==!!o.useHTML&&(x.rotation&&o.rotation||x.rotation===o.rotation)||(x=void 0,w=!0),f&&bc(h)&&(x?v.text=h:(x=s.label(h,0,0,o.shape,void 0,void 0,o.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(o.className||"")+(o.useHTML?" highcharts-tracker":"")),x&&(x.options=o,x.attr(v),r.styledMode?y.width&&x.css({width:y.width,textOverflow:y.textOverflow,whiteSpace:y.whiteSpace}):x.css(y).shadow(o.shadow),vc(x,"beforeAddingDataLabel",{labelOptions:o,point:t}),x.added||x.add(e),n.alignDataLabel(t,x,o,void 0,w),x.isActive=!0,a[l]&&a[l]!==x&&a[l].destroy(),a[l]=x))});let l=a.length;for(;l--;)a[l]&&a[l].isActive?a[l].isActive=!1:(a[l]?.destroy(),a.splice(l,1));t.dataLabel=a[0],t.dataLabels=a})),vc(this,"afterDrawDataLabels")}function a(t,e,n,r,i,s){let a,o,l=this.chart,c=e.align,u=e.verticalAlign,h=t.box?0:t.padding||0,d=l.inverted?this.yAxis:this.xAxis,p=d?d.left-l.plotLeft:0,f=l.inverted?this.xAxis:this.yAxis,g=f?f.top-l.plotTop:0,{x:m=0,y:b=0}=e;return(a=(n.x||0)+h+p)<0&&("right"===c&&m>=0?(e.align="left",e.inside=!0):m-=a,o=!0),(a=(n.x||0)+r.width-h+p)>l.plotWidth&&("left"===c&&m<=0?(e.align="right",e.inside=!0):m+=l.plotWidth-a,o=!0),(a=n.y+h+g)<0&&("bottom"===u&&b>=0?(e.verticalAlign="top",e.inside=!0):b-=a,o=!0),(a=(n.y||0)+r.height-h+g)>l.plotHeight&&("top"===u&&b<=0?(e.verticalAlign="bottom",e.inside=!0):b+=l.plotHeight-a,o=!0),o&&(e.x=m,e.y=b,t.placed=!s,t.align(e,void 0,i)),o}function o(t,e){let n,r=[];if(wc(t)&&!wc(e))r=t.map(function(t){return Ac(t,e)});else if(wc(e)&&!wc(t))r=e.map(function(e){return Ac(t,e)});else if(wc(t)||wc(e)){if(wc(t)&&wc(e))for(n=Math.max(t.length,e.length);n--;)r[n]=Ac(t[n],e[n])}else r=Ac(t,e);return r}function l(t){let e=t.chart.options.plotOptions;return Mc(o(o(e?.series?.dataLabels,e?.[t.type]?.dataLabels),t.options.dataLabels))}function c(t,e,n,r,i){let s=this.chart,a=s.inverted,o=this.xAxis,l=o.reversed,c=((a?e.height:e.width)||0)/2,u=t.pointWidth,h=u?u/2:0;e.startXPos=a?i.x:l?-c-h:o.width-c+h,e.startYPos=a?l?this.yAxis.height-c+h:-c-h:i.y,r?"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&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){let o=t.prototype;o.initDataLabels||(o.initDataLabels=i,o.initDataLabelsGroup=r,o.alignDataLabel=n,o.drawDataLabels=s,o.justifyDataLabel=a,o.setDataLabelStartPos=c,o.hasDataLabels=e)}}(p||(p={}));let Tc=p,{composed:Pc}=w,{series:Oc}=ia,{merge:Lc,pick:jc,pushUnique:_c}=Y;!function(t){function e(t,e,n,r,i){let s=this.chart.inverted,a=t.series,o=(a.xAxis?a.xAxis.len:this.chart.plotSizeX)||0,l=(a.yAxis?a.yAxis.len:this.chart.plotSizeY)||0,c=t.dlBox||t.shapeArgs,u=jc(t.below,t.plotY>jc(this.translatedThreshold,l)),h=jc(n.inside,!!this.options.stacking);if(c){if(r=Lc(c),"allow"!==n.overflow||!1!==n.crop){r.y<0&&(r.height+=r.y,r.y=0);let t=r.y+r.height-l;t>0&&t<r.height-1&&(r.height-=t)}s&&(r={x:l-r.y-r.height,y:o-r.x-r.width,width:r.height,height:r.width}),h||(s?(r.x+=u?0:r.width,r.width=0):(r.y+=u?r.height:0,r.height=0))}n.align=jc(n.align,!s||h?"center":u?"right":"left"),n.verticalAlign=jc(n.verticalAlign,s||h?"middle":u?"top":"bottom"),Oc.prototype.alignDataLabel.call(this,t,e,n,r,i),n.inside&&t.contrastColor&&e.css({color:t.contrastColor})}t.compose=function(t){Tc.compose(Oc),_c(Pc,"ColumnDataLabel")&&(t.prototype.alignDataLabel=e)}}(f||(f={}));let Ic=f,{extend:Rc,merge:Dc}=Y;class Nc extends fc{}Nc.defaultOptions=Dc(fc.defaultOptions,{}),Rc(Nc.prototype,{inverted:!0}),ia.registerSeriesType("bar",Nc);let{column:Bc,line:Fc}=ia.seriesTypes,{addEvent:zc,extend:Hc,merge:qc}=Y;class Wc extends Fc{applyJitter(){let t=this,e=this.options.jitter,n=this.points.length;e&&this.points.forEach(function(r,i){["x","y"].forEach(function(s,a){if(e[s]&&!r.isNull){let o=`plot${s.toUpperCase()}`,l=t[`${s}Axis`],c=e[s]*l.transA;if(l&&!l.logarithmic){let t=Math.max(0,(r[o]||0)-c),e=Math.min(l.len,(r[o]||0)+c);r[o]=t+(e-t)*function(t){let e=1e4*Math.sin(t);return e-Math.floor(e)}(i+a*n),"x"===s&&(r.clientX=r.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}Wc.defaultOptions=qc(Fc.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),Hc(Wc.prototype,{drawTracker:Bc.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),zc(Wc,"afterTranslate",function(){this.applyJitter()}),ia.registerSeriesType("scatter",Wc);let{deg2rad:Uc}=w,{fireEvent:Xc,isNumber:Yc,pick:Gc,relativeLength:Vc}=Y;!function(t){t.getCenter=function(){let t,e,n,r=this.options,i=this.chart,s=2*(r.slicedOffset||0),a=i.plotWidth-2*s,o=i.plotHeight-2*s,l=r.center,c=Math.min(a,o),u=r.thickness,h=r.size,d=r.innerSize||0;"string"==typeof h&&(h=parseFloat(h)),"string"==typeof d&&(d=parseFloat(d));let p=[Gc(l?.[0],"50%"),Gc(l?.[1],"50%"),Gc(h&&h<0?void 0:r.size,"100%"),Gc(d&&d<0?void 0:r.innerSize||0,"0%")];for(!i.angular||this instanceof Na||(p[3]=0),e=0;e<4;++e)n=p[e],t=e<2||2===e&&/%$/.test(n),p[e]=Vc(n,[a,o,c,p[2]][e])+(t?s:0);return p[3]>p[2]&&(p[3]=p[2]),Yc(u)&&2*u<p[2]&&u>0&&(p[3]=p[2]-2*u),Xc(this,"afterGetCenter",{positions:p}),p},t.getStartAndEndRadians=function(t,e){let n=Yc(t)?t:0,r=Yc(e)&&e>n&&e-n<360?e:n+360;return{start:Uc*(n+-90),end:Uc*(r+-90)}}}(g||(g={}));let Kc=g,{setAnimation:$c}=Dt,{addEvent:Zc,defined:Jc,extend:Qc,isNumber:tu,pick:eu,relativeLength:nu}=Y;class ru extends Cs{getConnectorPath(t){let e=t.dataLabelPosition,n=t.options||{},r=n.connectorShape,i=this.connectorShapes[r]||r;return e&&i.call(this,{...e.computed,alignment:e.alignment},e.connectorPosition,n)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let 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,borderRadius:e.borderRadius})}constructor(t,e,n){super(t,e,n),this.half=0,this.name??(this.name="Slice");let r=t=>{this.slice("select"===t.type)};Zc(this,"select",r),Zc(this,"unselect",r)}isValid(){return tu(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,n){let r=this.series;$c(n,r.chart),e=eu(e,!0),this.sliced=this.options.sliced=t=Jc(t)?t:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}Qc(ru.prototype,{connectorShapes:{fixedOffset:function(t,e,n){let r=e.breakAt,i=e.touchingSliceAt,s=n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*r.x-i.x,2*r.y-i.y,r.x,r.y]:["L",r.x,r.y];return[["M",t.x,t.y],s,["L",i.x,i.y]]},straight:function(t,e){let n=e.touchingSliceAt;return[["M",t.x,t.y],["L",n.x,n.y]]},crookedLine:function(t,e,n){let{angle:r=this.angle||0,breakAt:i,touchingSliceAt:s}=e,{series:a}=this,[o,l,c]=a.center,u=c/2,{plotLeft:h,plotWidth:d}=a.chart,p="left"===t.alignment,{x:f,y:g}=t,m=i.x;if(n.crookDistance){let t=nu(n.crookDistance,1);m=p?o+u+(d+h-o-u)*(1-t):h+(o-u)*t}else m=o+(l-g)*Math.tan(r-Math.PI/2);let b=[["M",f,g]];return(p?m<=f&&m>=i.x:m>=f&&m<=i.x)&&b.push(["L",m,g]),b.push(["L",i.x,i.y],["L",s.x,s.y]),b}}});let{getStartAndEndRadians:iu}=Kc,{noop:su}=w,{clamp:au,extend:ou,fireEvent:lu,merge:cu,pick:uu}=Y;class hu extends Na{animate(t){let e=this,n=e.points,r=e.startAngleRad;t||n.forEach(function(t){let n=t.graphic,i=t.shapeArgs;n&&i&&(n.attr({r:uu(t.startR,e.center&&e.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},e.options.animation))})}drawEmpty(){let t,e,n=this.startAngleRad,r=this.endAngleRad,i=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,n,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:gn.arc(t,e,this.center[2]/2,0,{start:n,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t,e,n,r){let i=this.center,s=this.radii?this.radii[n.index]||0:i[2]/2,a=r.dataLabelPosition,o=a?.distance||0,l=Math.asin(au((t-i[1])/(s+o),-1,1));return i[0]+Math.cos(l)*(s+o)*(e?-1:1)+(o>0?(e?-1:1)*(r.padding||0):0)}hasData(){return!!this.dataTable.rowCount}redrawPoints(){let t,e,n,r,i=this,s=i.chart;this.drawEmpty(),i.group&&!s.styledMode&&i.group.shadow(i.options.shadow),i.points.forEach(function(a){let o={};e=a.graphic,!a.isNull&&e?(r=a.shapeArgs,t=a.getTranslate(),s.styledMode||(n=i.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(e.setRadialReference(i.center).attr(r).attr(t),s.styledMode||e.attr(n).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(e.setRadialReference(i.center),s.styledMode||cu(!0,o,n),cu(!0,o,r,t),e.animate(o)),e.attr({visibility:a.visible?"inherit":"hidden"}),e.addClass(a.getClassName(),!0)):e&&(a.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e})}translate(t){lu(this,"translate"),this.generatePoints();let e,n,r,i,s,a,o,l=this.options,c=l.slicedOffset,u=iu(l.startAngle,l.endAngle),h=this.startAngleRad=u.start,d=(this.endAngleRad=u.end)-h,p=this.points,f=l.ignoreHiddenPoint,g=p.length,m=0;for(t||(this.center=t=this.getCenter()),a=0;a<g;a++){o=p[a],e=h+m*d,o.isValid()&&(!f||o.visible)&&(m+=o.percentage/100),n=h+m*d;let l={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*n)/1e3};o.shapeType="arc",o.shapeArgs=l,(r=(n+e)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),o.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)},i=Math.cos(r)*t[2]/2,s=Math.sin(r)*t[2]/2,o.tooltipPos=[t[0]+.7*i,t[1]+.7*s],o.half=r<-Math.PI/2||r>Math.PI/2?1:0,o.angle=r}lu(this,"afterTranslate")}updateTotals(){let t,e,n=this.points,r=n.length,i=this.options.ignoreHiddenPoint,s=0;for(t=0;t<r;t++)(e=n[t]).isValid()&&(!i||e.visible)&&(s+=e.y);for(t=0,this.total=s;t<r;t++)(e=n[t]).percentage=s>0&&(e.visible||!i)?e.y/s*100:0,e.total=s}}hu.defaultOptions=cu(Na.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.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}}}),ou(hu.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:fc.prototype.drawTracker,getCenter:Kc.getCenter,getSymbol:su,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:fc.prototype.pointAttribs,pointClass:ru,requireSorting:!1,searchPoint:su,trackerGroups:["group","dataLabelsGroup"]}),ia.registerSeriesType("pie",hu);let{composed:du,noop:pu}=w,{distribute:fu}=ve,{series:gu}=ia,{arrayMax:mu,clamp:bu,defined:yu,pick:vu,pushUnique:xu,relativeLength:wu}=Y;!function(t){let e={radialDistributionY:function(t,e){return(e.dataLabelPosition?.top||0)+t.distributeBox.pos},radialDistributionX:function(t,e,n,r,i){let s=i.dataLabelPosition;return t.getX(n<(s?.top||0)+2||n>(s?.bottom||0)-2?r:n,e.half,e,i)},justify:function(t,e,n,r){return r[0]+(t.half?-1:1)*(n+(e.dataLabelPosition?.distance||0))},alignToPlotEdges:function(t,e,n,r){let i=t.getBBox().width;return e?i+r:n-i-r},alignToConnectors:function(t,e,n,r){let i,s=0;return t.forEach(function(t){(i=t.dataLabel.getBBox().width)>s&&(s=i)}),e?s+r:n-s-r}};function n(t,e){let n=Math.PI/2,{start:r=0,end:i=0}=t.shapeArgs||{},s=t.angle||0;e>0&&r<n&&i>n&&s>n/2&&s<1.5*n&&(s=s<=n?Math.max(n/2,(r+n)/2):Math.min(1.5*n,(n+i)/2));let{center:a,options:o}=this,l=a[2]/2,c=Math.cos(s),u=Math.sin(s),h=a[0]+c*l,d=a[1]+u*l,p=Math.min((o.slicedOffset||0)+(o.borderWidth||0),e/5);return{natural:{x:h+c*e,y:d+u*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:s,breakAt:{x:h+c*p,y:d+u*p},touchingSliceAt:{x:h,y:d}},distance:e}}function r(){let t,e,n,r=this,i=r.points,s=r.chart,a=s.plotWidth,o=s.plotHeight,l=s.plotLeft,c=Math.round(s.chartWidth/3),u=r.center,h=u[2]/2,d=u[1],p=[[],[]],f=[0,0,0,0],g=r.dataLabelPositioners,m=0;r.visible&&r.hasDataLabels?.()&&(i.forEach(t=>{(t.dataLabels||[]).forEach(t=>{t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),gu.prototype.drawDataLabels.apply(r),i.forEach(t=>{(t.dataLabels||[]).forEach((e,n)=>{let r=u[2]/2,i=e.options,s=wu(i?.distance||0,r);0===n&&p[t.half].push(t),!yu(i?.style?.width)&&e.getBBox().width>c&&(e.css({width:Math.round(.7*c)+"px"}),e.shortened=!0),e.dataLabelPosition=this.getDataLabelPosition(t,s),m=Math.max(m,s)})}),p.forEach((t,i)=>{let c,p,b,y=t.length,v=[],x=0;y&&(r.sortByAngle(t,i-.5),m>0&&(c=Math.max(0,d-h-m),p=Math.min(d+h+m,s.plotHeight),t.forEach(t=>{(t.dataLabels||[]).forEach(e=>{let n=e.dataLabelPosition;n&&n.distance>0&&(n.top=Math.max(0,d-h-n.distance),n.bottom=Math.min(d+h+n.distance,s.plotHeight),x=e.getBBox().height||21,e.lineHeight=s.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:(e.dataLabelPosition?.natural.y||0)-n.top+e.lineHeight/2,size:x,rank:t.y},v.push(t.distributeBox))})}),fu(v,b=p+x-c,b/5)),t.forEach(s=>{(s.dataLabels||[]).forEach(c=>{let d=c.options||{},p=s.distributeBox,m=c.dataLabelPosition,b=m?.natural.y||0,y=d.connectorPadding||0,x=c.lineHeight||21,w=(x-c.getBBox().height)/2,k=0,A=b,S="inherit";if(m){if(v&&yu(p)&&m.distance>0&&(void 0===p.pos?S="hidden":(n=p.size,A=g.radialDistributionY(s,c))),d.justify)k=g.justify(s,c,h,u);else switch(d.alignTo){case"connectors":k=g.alignToConnectors(t,i,a,l);break;case"plotEdges":k=g.alignToPlotEdges(c,i,a,l);break;default:k=g.radialDistributionX(r,s,A-w,b,c)}if(m.attribs={visibility:S,align:m.alignment},m.posAttribs={x:k+(d.x||0)+({left:y,right:-y}[m.alignment]||0),y:A+(d.y||0)-x/2},m.computed.x=k,m.computed.y=A-w,vu(d.crop,!0)){let t;k-(e=c.getBBox().width)<y&&1===i?(t=Math.round(e-k+y),f[3]=Math.max(t,f[3])):k+e>a-y&&0===i&&(t=Math.round(k+e-a+y),f[1]=Math.max(t,f[1])),A-n/2<0?f[0]=Math.max(Math.round(n/2-A),f[0]):A+n/2>o&&(f[2]=Math.max(Math.round(A+n/2-o),f[2])),m.sideOverflow=t}}})}))}),(0===mu(f)||this.verifyDataLabelOverflow(f))&&(this.placeDataLabels(),this.points.forEach(e=>{(e.dataLabels||[]).forEach(n=>{let{connectorColor:i,connectorWidth:a=1}=n.options||{},o=n.dataLabelPosition;if(a){let l;t=n.connector,o&&o.distance>0?(l=!t,t||(n.connector=t=s.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(r.dataLabelsGroup)),s.styledMode||t.attr({"stroke-width":a,stroke:i||e.color||"#666666"}),t[l?"attr":"animate"]({d:e.getConnectorPath(n)}),t.attr({visibility:o.attribs?.visibility})):t&&(n.connector=t.destroy())}})})))}function i(){this.points.forEach(t=>{(t.dataLabels||[]).forEach(t=>{let e=t.dataLabelPosition;e?(e.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-e.sideOverflow,0)+"px",textOverflow:(t.options?.style||{}).textOverflow||"ellipsis"}),t.shortened=!0),t.attr(e.attribs),t[t.moved?"animate":"attr"](e.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function s(t){let e=this.center,n=this.options,r=n.center,i=n.minSize||80,s=i,a=null!==n.size;return!a&&(null!==r[0]?s=Math.max(e[2]-Math.max(t[1],t[3]),i):(s=Math.max(e[2]-t[1]-t[3],i),e[0]+=(t[3]-t[1])/2),null!==r[1]?s=bu(s,i,e[2]-Math.max(t[0],t[2])):(s=bu(s,i,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(n.thickness?Math.max(0,s-2*n.thickness):Math.max(0,wu(n.innerSize||0,s)),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}t.compose=function(t){if(Tc.compose(gu),xu(du,"PieDataLabel")){let a=t.prototype;a.dataLabelPositioners=e,a.alignDataLabel=pu,a.drawDataLabels=r,a.getDataLabelPosition=n,a.placeDataLabels=i,a.verifyDataLabelOverflow=s}}}(m||(m={}));let ku=m;!function(t){t.getCenterOfPoints=function(t){let e=t.reduce((t,e)=>(t.x+=e.x,t.y+=e.y,t),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},t.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},t.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},t.pointInPolygon=function({x:t,y:e},n){let r,i,s=n.length,a=!1;for(r=0,i=s-1;r<s;i=r++){let[s,o]=n[r],[l,c]=n[i];o>e!=c>e&&t<(l-s)*(e-o)/(c-o)+s&&(a=!a)}return a}}(b||(b={}));let{pointInPolygon:Au}=b,{addEvent:Su,fireEvent:Cu,objectEach:Eu,pick:Mu}=Y;function Tu(t){let e,n,r,i,s,a=t.length,o=(t,e)=>!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y),l=(t,e)=>{for(let n of t)if(Au({x:n[0],y:n[1]},e))return!0;return!1},c=!1;for(let n=0;n<a;n++)(e=t[n])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){if(t&&(!t.alignAttr||t.placed)){let e=t.box?0:t.padding||0,n=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},r=t.getBBox();return t.width=r.width,t.height=r.height,{x:n.x+(t.parentGroup?.translateX||0)+e,y:n.y+(t.parentGroup?.translateY||0)+e,width:(t.width||0)-2*e,height:(t.height||0)-2*e,polygon:r?.polygon}}}(e));t.sort((t,e)=>(e.labelrank||0)-(t.labelrank||0));for(let e=0;e<a;++e){i=(n=t[e])&&n.absoluteBox;let c=i?.polygon;for(let u=e+1;u<a;++u){s=(r=t[u])&&r.absoluteBox;let e=!1;if(i&&s&&n!==r&&0!==n.newOpacity&&0!==r.newOpacity&&"hidden"!==n.visibility&&"hidden"!==r.visibility){let t=s.polygon;if(c&&t&&c!==t?l(c,t)&&(e=!0):o(i,s)&&(e=!0),e){let t=n.labelrank<r.labelrank?n:r,e=t.text;t.newOpacity=0,e?.element.querySelector("textPath")&&e.hide()}}}}for(let e of t)Pu(e,this)&&(c=!0);c&&Cu(this,"afterHideAllOverlappingLabels")}function Pu(t,e){let n,r,i=!1;return t&&(r=t.newOpacity,t.oldOpacity!==r&&(t.hasClass("highcharts-data-label")?(t[r?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=function(){e.styledMode||t.css({pointerEvents:r?"auto":"none"})},i=!0,t[t.isOld?"animate":"attr"]({opacity:r},void 0,n),Cu(e,"afterHideOverlappingLabel")):t.attr({opacity:r})),t.isOld=!0),i}function Ou(){let t=this,e=[];for(let n of t.labelCollectors||[])e=e.concat(n());for(let n of t.yAxis||[])n.stacking&&n.options.stackLabels&&!n.options.stackLabels.allowOverlap&&Eu(n.stacking.stacks,t=>{Eu(t,t=>{t.label&&e.push(t.label)})});for(let n of t.series||[])if(n.visible&&n.hasDataLabels?.()){let r=n=>{for(let r of n)r.visible&&(r.dataLabels||[]).forEach(n=>{let i=n.options||{};n.labelrank=Mu(i.labelrank,r.labelrank,r.shapeArgs?.height),i.allowOverlap??Number(i.distance)>0?(n.oldOpacity=n.opacity,n.newOpacity=1,Pu(n,t)):e.push(n)})};r(n.nodes||[]),r(n.points)}this.hideOverlappingLabels(e)}let Lu={compose:function(t){let e=t.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=Tu,Su(t,"render",Ou))}},{defaultOptions:ju}=gt,{noop:_u}=w,{addEvent:Iu,extend:Ru,isObject:Du,merge:Nu,relativeLength:Bu}=Y,Fu={radius:0,scope:"stack",where:void 0},zu=_u,Hu=_u;function qu(t,e,n,r,i={}){let s=zu(t,e,n,r,i),{innerR:a=0,r:o=n,start:l=0,end:c=0}=i;if(i.open||!i.borderRadius)return s;let u=c-l,h=Math.sin(u/2),d=Math.max(Math.min(Bu(i.borderRadius||0,o-a),(o-a)/2,o*h/(1+h)),0),p=Math.min(d,u/Math.PI*2*a),f=s.length-1;for(;f--;)!function(t,e,n){let r,i,s,a=t[e],o=t[e+1];if("Z"===o[0]&&(o=t[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==o[0]?"A"===a[0]&&("M"===o[0]||"L"===o[0])&&(r=o,i=a):(r=a,i=o,s=!0),r&&i&&i.params){let a=i[1],o=i[5],l=i.params,{start:c,end:u,cx:h,cy:d}=l,p=o?a-n:a+n,f=p?Math.asin(n/p):0,g=o?f:-f,m=Math.cos(f)*p;s?(l.start=c+g,r[1]=h+m*Math.cos(c),r[2]=d+m*Math.sin(c),t.splice(e+1,0,["A",n,n,0,0,1,h+a*Math.cos(l.start),d+a*Math.sin(l.start)])):(l.end=u-g,i[6]=h+a*Math.cos(l.end),i[7]=d+a*Math.sin(l.end),t.splice(e+1,0,["A",n,n,0,0,1,h+m*Math.cos(u),d+m*Math.sin(u)])),i[4]=Math.abs(l.end-l.start)<Math.PI?0:1}}(s,f,f>1?p:d);return s}function Wu(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:t,yAxis:e}=this,n="percent"===t.stacking,r=ju.plotOptions?.[this.type]?.borderRadius,i=Uu(t.borderRadius,Du(r)?r:{}),s=e.options.reversed;for(let r of this.points){let{shapeArgs:a}=r;if("roundedRect"===r.shapeType&&a){let{width:o=0,height:l=0,y:c=0}=a,u=c,h=l;if("stack"===i.scope&&r.stackTotal){let i=e.translate(n?100:r.stackTotal,!1,!0,!1,!0),s=e.translate(t.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(i,s),0,Math.abs(i-s));u=a.y,h=a.height}let d=(r.negative?-1:1)*(s?-1:1)==-1,p=i.where;!p&&this.is("waterfall")&&Math.abs((r.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p="all"),p||(p="end");let f=Math.min(Bu(i.radius,o),o/2,"all"===p?l/2:1/0)||0;"end"===p&&(d&&(u-=f),h+=f),Ru(a,{brBoxHeight:h,brBoxY:u,r:f})}}}}function Uu(t,e){return Du(t)||(t={radius:t||0}),Nu(Fu,e,t)}function Xu(){let t=Uu(this.options.borderRadius);for(let e of this.points){let n=e.shapeArgs;n&&(n.borderRadius=Bu(t.radius,(n.r||0)-(n.innerR||0)))}}function Yu(t,e,n,r,i={}){let s=Hu(t,e,n,r,i),{r:a=0,brBoxHeight:o=r,brBoxY:l=e}=i,c=e-l,u=l+o-(e+r),h=c-a>-.1?0:a,d=u-a>-.1?0:a,p=Math.max(h&&c,0),f=Math.max(d&&u,0),g=[t+h,e],m=[t+n-h,e],b=[t+n,e+h],y=[t+n,e+r-d],v=[t+n-d,e+r],x=[t+d,e+r],w=[t,e+r-d],k=[t,e+h],A=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(p){let t=A(h,h-p);g[0]-=t,m[0]+=t,b[1]=k[1]=e+h-p}if(r<h-p){let i=A(h,h-p-r);b[0]=y[0]=t+n-h+i,v[0]=Math.min(b[0],v[0]),x[0]=Math.max(y[0],x[0]),w[0]=k[0]=t+h-i,b[1]=k[1]=e+r}if(f){let t=A(d,d-f);v[0]+=t,x[0]-=t,y[1]=w[1]=e+r-d+f}if(r<d-f){let i=A(d,d-f-r);b[0]=y[0]=t+n-d+i,m[0]=Math.min(b[0],m[0]),g[0]=Math.max(y[0],g[0]),w[0]=k[0]=t+d-i,y[1]=w[1]=e}return s.length=0,s.push(["M",...g],["L",...m],["A",h,h,0,0,1,...b],["L",...y],["A",d,d,0,0,1,...v],["L",...x],["A",d,d,0,0,1,...w],["L",...k],["A",h,h,0,0,1,...g],["Z"]),s}let{diffObjects:Gu,extend:Vu,find:Ku,merge:$u,pick:Zu,uniqueKey:Ju}=Y;!function(t){function e(t,e){let n=t.condition;(n.callback||function(){return this.chartWidth<=Zu(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Zu(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Zu(n.minWidth,0)&&this.chartHeight>=Zu(n.minHeight,0)}).call(this)&&e.push(t._id)}function n(t,e){let n,r=this.options.responsive,i=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach(t=>{void 0===t._id&&(t._id=Ju()),this.matchResponsiveRule(t,s)},this);let a=$u(...s.map(t=>Ku((r||{}).rules||[],e=>e._id===t)).map(t=>t&&t.chartOptions));a.isResponsiveOptions=!0,s=s.toString()||void 0;let o=i&&i.ruleIds;s===o||(i&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(i.undoOptions,t,!0),this.updatingResponsive=!1),s?((n=Gu(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:a,undoOptions:n},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}t.compose=function(t){let r=t.prototype;return r.matchResponsiveRule||Vu(r,{matchResponsiveRule:e,setResponsive:n}),t}}(y||(y={}));let Qu=y;w.AST=$t,w.Axis=hi,w.Chart=Go,w.Color=xt,w.DataLabel=Tc,w.DataTableCore=Ks,w.Fx=Ct,w.HTMLElement=fr,w.Legend=ao,w.LegendSymbol=Qs,w.OverlappingDataLabels=w.OverlappingDataLabels||Lu,w.PlotLineOrBand=Ri,w.Point=Cs,w.Pointer=Us,w.RendererRegistry=fe,w.Series=Na,w.SeriesRegistry=ia,w.StackItem=pl,w.SVGElement=Qe,w.SVGRenderer=er,w.Templating=pe,w.Tick=Ir,w.Time=ct,w.Tooltip=ss,w.animate=Dt.animate,w.animObject=Dt.animObject,w.chart=Go.chart,w.color=xt.parse,w.dateFormat=pe.dateFormat,w.defaultOptions=gt.defaultOptions,w.distribute=ve.distribute,w.format=pe.format,w.getDeferredAnimation=Dt.getDeferredAnimation,w.getOptions=gt.getOptions,w.numberFormat=pe.numberFormat,w.seriesType=ia.seriesType,w.setAnimation=Dt.setAnimation,w.setOptions=gt.setOptions,w.stop=Dt.stop,w.time=gt.defaultTime,w.timers=Ct.timers,function(t,e,n){let r=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let i=n.prototype.symbols;Iu(t,"afterColumnTranslate",Wu,{order:9}),Iu(r,"afterTranslate",Xu),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),zu=i.arc,Hu=i.roundedRect,i.arc=qu,i.roundedRect=Yu}}(w.Series,w.SVGElement,w.SVGRenderer),Ic.compose(w.Series.types.column),Tc.compose(w.Series),mi.compose(w.Axis),fr.compose(w.SVGRenderer),ao.compose(w.Chart),xi.compose(w.Axis),Lu.compose(w.Chart),ku.compose(w.Series.types.pie),Ri.compose(w.Chart,w.Axis),Us.compose(w.Chart),Qu.compose(w.Chart),sl.compose(w.Axis,w.Chart,w.Series),_l.compose(w.Axis,w.Chart,w.Series),ss.compose(w.Pointer),Y.extend(w,Y);let th=w;return x.default})(),"object"==typeof n&&"object"==typeof e?(r._Highcharts=i(),e.exports=r._Highcharts):"function"==typeof define&&define.amd?define("highcharts/highcharts",[],i):"object"==typeof n?(r._Highcharts=i(),n.highcharts=r._Highcharts):(r.Highcharts&&r.Highcharts.error(16,!0),r.Highcharts=i())},{}],829:[function(t,e,n){var r,i;r="undefined"==typeof window?this:window,i=(t,e,n,r,i,s,a,o,l,c,u)=>(()=>{"use strict";let h;var d,p,f,g,m={660:t=>{t.exports=n},532:t=>{t.exports=i},620:t=>{t.exports=s},632:t=>{t.exports=r},260:t=>{t.exports=c},608:t=>{t.exports=o},540:t=>{t.exports=l},820:t=>{t.exports=u},512:t=>{t.exports=a},984:t=>{t.exports=e},944:e=>{e.exports=t}},b={};function y(t){var e=b[t];if(void 0!==e)return e.exports;var n=b[t]={exports:{}};return m[t](n,n.exports,y),n.exports}y.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return y.d(e,{a:e}),e},y.d=(t,e)=>{for(var n in e)y.o(e,n)&&!y.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},y.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var v={};y.d(v,{default:()=>rs});var x=y(944),w=y.n(x);let{doc:k,win:A}=w(),{css:S}=w(),C=A.EventTarget&&new A.EventTarget||"none";function E(t){if("function"==typeof A.MouseEvent)return new A.MouseEvent(t.type,t);if(k.createEvent){let e=k.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||A,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return M(t.type)}function M(t,e,n){let r=e||{x:0,y:0};if("function"==typeof A.MouseEvent)return new A.MouseEvent(t,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:n||C,view:A,detail:"click"===t?1:0,screenX:r.x,screenY:r.y,clientX:r.x,clientY:r.y});if(k.createEvent){let e=k.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t,!0,!0,A,"click"===t?1:0,r.x,r.y,r.x,r.y,!1,!1,!1,!1,0,null),e}return{type:t}}let T={addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=" "+e)},cloneMouseEvent:E,cloneTouchEvent:function(t){let e=t=>{let e=[];for(let n=0;n<t.length;++n){let r=t.item(n);r&&e.push(r)}return e};if("function"==typeof A.TouchEvent){let n=new A.TouchEvent(t.type,{touches:e(t.touches),targetTouches:e(t.targetTouches),changedTouches:e(t.changedTouches),ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:t.detail,view:t.view});return t.defaultPrevented&&n.preventDefault(),n}let n=E(t);return n.touches=t.touches,n.changedTouches=t.changedTouches,n.targetTouches=t.targetTouches,n},escapeStringForHTML:function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(t){return k.getElementById(t)},getFakeMouseEvent:M,getHeadingTagNameForElement:function(t){let e=t=>"h"+Math.min(6,parseInt(t.slice(1),10)+1),n=t=>/^H[1-6]$/i.test(t),r=t=>{let i=(t=>{let e=t;for(;e=e.previousSibling;){let t=e.tagName||"";if(n(t))return t}return""})(t);if(i)return e(i);let s=t.parentElement;if(!s)return"h6";let a=s.tagName;return n(a)?e(a):r(s)};return r(t)},removeChildNodes:function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp(e,"g"),"")},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){let e=t.childNodes.length;for(;e--;)t.appendChild(t.childNodes[e])},simulatedEventTarget:C,stripHTMLTagsFromString:function(t,e=!1){return"string"==typeof t?e?t.replace(/<\/?[^>]+(>|$)/g,""):t.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){S(t,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}};var P=y(984),O=y.n(P);let{format:L}=O(),{getNestedProperty:j,pick:_}=w();!function(t){function e(t,e,n){let r,i,s=(t,e)=>{let n=t.slice(e||0),r=n.indexOf("{"),i=n.indexOf("}");if(r>-1&&i>r)return{statement:n.substring(r+1,i),begin:e+r+1,end:e+i}},a=[],o=0;do{r=s(t,o),(i=t.substring(o,r&&r.begin-1)).length&&a.push({value:i,type:"constant"}),r&&a.push({value:r.statement,type:"statement"}),o=r?r.end+1:o+1}while(r);return a.forEach(t=>{"statement"===t.type&&(t.value=function(t,e){let n,r,i=t.indexOf("#each("),s=t.indexOf("#plural("),a=t.indexOf("["),o=t.indexOf("]");if(i>-1){let s,a=t.slice(i).indexOf(")")+i,o=t.substring(0,i),l=t.substring(a+1),c=t.substring(i+6,a).split(","),u=Number(c[1]);if(r="",n=j(c[0],e)){s=(u=isNaN(u)?n.length:u)<0?n.length+u:Math.min(u,n.length);for(let t=0;t<s;++t)r+=o+n[t]+l}return r.length?r:""}if(s>-1){var l;let n=t.slice(s).indexOf(")")+s,i=t.substring(s+8,n).split(",");switch(Number(j(i[0],e))){case 0:r=_(i[4],i[1]);break;case 1:r=_(i[2],i[1]);break;case 2:r=_(i[3],i[1]);break;default:r=i[1]}return r?(l=r).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(a>-1){let r,i=t.substring(0,a),s=Number(t.substring(a+1,o));return n=j(i,e),!isNaN(s)&&n&&(s<0?void 0===(r=n[n.length+s])&&(r=n[0]):void 0===(r=n[s])&&(r=n[n.length-1])),void 0!==r?r:""}return"{"+t+"}"}(t.value,e))}),L(a.reduce((t,e)=>t+e.value,""),e,n)}function n(t,n){let r=t.split("."),i=this.options.lang,s=0;for(;s<r.length;++s)i=i&&i[r[s]];return"string"==typeof i?e(i,n,this):""}t.compose=function(t){let e=t.prototype;e.langFormat||(e.langFormat=n)},t.i18nFormat=e}(d||(d={}));let I=d,{doc:R}=w(),{stripHTMLTagsFromString:D}=T,{defined:N,find:B,fireEvent:F}=w();function z(t){if(t.points&&t.points.length){let e=B(t.points,t=>!!t.graphic);return e&&e.graphic&&e.graphic.element}}function H(t){let e=z(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}let q={fireEventOnWrappedOrUnwrappedElement:function t(e,n){let r=n.type,i=e.hcEvents;R.createEvent&&(e.dispatchEvent||e.fireEvent)?e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(r,n):i&&i[r]?F(e,r,n):e.element&&t(e.element,n)},getChartTitle:function(t){return D(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}),t.renderer.forExport)},getAxisDescription:function(t){return t&&(t.options.accessibility?.description||t.axisTitle?.textStr||t.options.id||t.categories&&"categories"||t.dateTime&&"Time"||"values")},getAxisRangeDescription:function(t){let e=t.options||{};return e.accessibility&&void 0!==e.accessibility.rangeDescription?e.accessibility.rangeDescription:t.categories?function(t){let e=t.chart;return t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""}(t):!t.dateTime||0!==t.min&&0!==t.dataMin?function(t){let e=t.chart,n=e.options,r=n&&n.accessibility&&n.accessibility.screenReaderSection.axisRangeDateFormat||"",i={min:t.dataMin||t.min||0,max:t.dataMax||t.max||0},s=function(n){return t.dateTime?e.time.dateFormat(r,i[n]):i[n].toString()};return e.langFormat("accessibility.axis.rangeFromTo",{chart:e,axis:t,rangeFrom:s("min"),rangeTo:s("max")})}(t):function(t){let e=t.chart,n={},r=t.dataMin||t.min||0,i=t.dataMax||t.max||0,s="Seconds";n.Seconds=(i-r)/1e3,n.Minutes=n.Seconds/60,n.Hours=n.Minutes/60,n.Days=n.Hours/24,["Minutes","Hours","Days"].forEach(function(t){n[t]>2&&(s=t)});let a=n[s].toFixed("Seconds"!==s&&"Minutes"!==s?1:0);return e.langFormat("accessibility.axis.timeRange"+s,{chart:e,axis:t,range:a.replace(".0","")})}(t)},getPointFromXY:function(t,e,n){let r,i=t.length;for(;i--;)if(r=B(t[i].points||[],function(t){return t.x===e&&t.y===n}))return r},getSeriesFirstPointElement:z,getSeriesFromName:function(t,e){return e?(t.series||[]).filter(function(t){return t.name===e}):t.series},getSeriesA11yElement:H,unhideChartElementFromAT:function t(e,n){n.setAttribute("aria-hidden",!1),n!==e.renderTo&&n.parentNode&&n.parentNode!==R.body&&(Array.prototype.forEach.call(n.parentNode.childNodes,function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)}),t(e,n.parentNode))},hideSeriesFromAT:function(t){let e=H(t);e&&e.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(t){let e=t.series.xAxis,n=t.series.yAxis,r=e&&e.scrollbar?e:n,i=r&&r.scrollbar;if(i&&N(i.to)&&N(i.from)){let e=i.to-i.from,n=function(t,e){if(!N(t.dataMin)||!N(t.dataMax))return 0;let n=t.toPixels(t.dataMin),r=t.toPixels(t.dataMax),i="xAxis"===t.coll?"x":"y";return(t.toPixels(e[i]||0)-n)/(r-n)}(r,t);i.updatePosition(n-e/2,n+e/2),F(i,"changed",{from:i.from,to:i.to,trigger:"scrollbar",DOMEvent:null})}}},{doc:W}=w(),{removeElement:U}=T,X=class{constructor(){this.elements=[]}createElement(){let t=W.createElement.apply(W,arguments);return this.elements.push(t),t}removeElement(t){U(t),this.elements.splice(this.elements.indexOf(t),1)}destroyCreatedElements(){this.elements.forEach(function(t){U(t)}),this.elements=[]}},{addEvent:Y}=w(),G=class{constructor(){this.eventRemovers=[]}addEvent(){let t=Y.apply(w(),arguments);return this.eventRemovers.push({element:arguments[0],remover:t}),t}removeEvent(t){let e=this.eventRemovers.map(t=>t.remover).indexOf(t);this.eventRemovers[e].remover(),this.eventRemovers.splice(e,1)}removeAddedEvents(){this.eventRemovers.map(t=>t.remover).forEach(t=>t()),this.eventRemovers=[]}},{fireEventOnWrappedOrUnwrappedElement:V}=q,{getFakeMouseEvent:K}=T,$=class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(t,e){this.chart=t,this.eventProvider=new G,this.domElementProvider=new X,this.proxyProvider=e,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(t,e,n,r){return this.eventProvider.addEvent(t,e,n,r)}createElement(t,e){return this.domElementProvider.createElement(t,e)}fakeClickEvent(t){V(t,K("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}},{find:Z}=w(),J=class{constructor(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(t){let e=t.which||t.keyCode,n=this.response.noHandler,r=Z(this.keyCodeMap,function(t){return t[0].indexOf(e)>-1});return r?n=r[1].call(this,e,t):9===e&&(n=this.response[t.shiftKey?"prev":"next"]),n}},{unhideChartElementFromAT:Q,getChartTitle:tt}=q,{doc:et}=w(),{stripHTMLTagsFromString:nt}=T,rt=class extends ${onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let t=this.chart,e="highcharts-title-"+t.index,n=nt(t.langFormat("accessibility.svgContainerTitle",{chartTitle:tt(t)}));if(n.length){let r=this.svgTitleElement=this.svgTitleElement||et.createElementNS("http://www.w3.org/2000/svg","title");r.textContent=n,r.id=e,t.renderTo.insertBefore(r,t.renderTo.firstChild)}}setSVGContainerLabel(){let t=this.chart,e=t.langFormat("accessibility.svgContainerLabel",{chartTitle:tt(t)});t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)}setGraphicContainerAttrs(){let t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:tt(t)});e.length&&t.container.setAttribute("aria-label",e)}setRenderToAttrs(){let t=this.chart,e="disabled"!==t.options.accessibility.landmarkVerbosity,n=t.langFormat("accessibility.chartContainerLabel",{title:tt(t),chart:t});n&&(t.renderTo.setAttribute("role",e?"region":"group"),t.renderTo.setAttribute("aria-label",n))}makeCreditsAccessible(){let t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",t.langFormat("accessibility.credits",{creditsStr:nt(e.textStr,t.renderer.forExport)})),Q(t,e.element))}getKeyboardNavigation(){let t=this.chart;return new J(t,{keyCodeMap:[],validate:function(){return!0},init:function(){let e=t.accessibility;e&&e.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}},{addEvent:it,pick:st}=w();!function(t){let e=["x","y","transform","width","height","r","d","stroke-width"];function n(){let t=this.focusElement,e=this.options.accessibility.keyboardNavigation.focusBorder;t&&(t.removeFocusBorder(),e.enabled&&t.addFocusBorder(e.margin,{stroke:e.style.color,strokeWidth:e.style.lineWidth,r:e.style.borderRadius}))}function r(t,e){let n=this.options.accessibility.keyboardNavigation.focusBorder,r=e||t.element;r&&r.focus&&(r.hcEvents&&r.hcEvents.focusin||it(r,"focusin",function(){}),r.focus(),n.hideBrowserFocusOutline&&(r.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=t,this.renderFocusBorder()}function i(t,n){this.focusBorder&&this.removeFocusBorder();let r=this.getBBox(),i=st(t,3),s=this.parentGroup,a=this.scaleX||s&&s.scaleX,o=this.scaleY||s&&s.scaleY,l=(a?!o:o)?Math.abs(a||o||1):(Math.abs(a||1)+Math.abs(o||1))/2,c=this.renderer.fontMetrics(this).h;r.x+=this.translateX?this.translateX:0,r.y+=this.translateY?this.translateY:0;let u=r.x-i,h=r.y-i,d=r.width+2*i,p=r.height+2*i,f=!!this.text;if("text"===this.element.nodeName||f){let t,e,n=!!this.rotation,s=f?{x:n?1:0,y:0}:(t=0,e=0,"middle"===this.attr("text-anchor")?t=e=.5:this.rotation?t=.25:e=.75,{x:t,y:e}),a=+this.attr("x"),o=+this.attr("y");if(isNaN(a)||(u=a-r.width*s.x-i),isNaN(o)||(h=o-("start"===this.attr("text-anchor")?c:r.height)*s.y-i),f&&n){let t=d;d=p,p=t,isNaN(a)||(u=a-r.height*s.x-i),isNaN(o)||(h=o-r.width*s.y-i)}}this.focusBorder=this.renderer.rect(u,h,d,p,parseInt((n&&n.r||0).toString(),10)/l).addClass("highcharts-focus-border").attr({zIndex:99}).add(s),this.renderer.styledMode||this.focusBorder.attr({stroke:n&&n.stroke,"stroke-width":(n&&n.strokeWidth||0)/l}),function(t,...n){t.focusBorderUpdateHooks||(t.focusBorderUpdateHooks={},e.forEach(e=>{let r=e+"Setter",i=t[r]||t._defaultSetter;t.focusBorderUpdateHooks[r]=i,t[r]=function(){let e=i.apply(t,arguments);return t.addFocusBorder.apply(t,n),e}}))}(this,t,n),function(t){if(t.focusBorderDestroyHook)return;let e=t.destroy;t.destroy=function(){return t.focusBorder&&t.focusBorder.destroy&&t.focusBorder.destroy(),e.apply(t,arguments)},t.focusBorderDestroyHook=e}(this)}function s(){var t;(t=this).focusBorderUpdateHooks&&(Object.keys(t.focusBorderUpdateHooks).forEach(e=>{let n=t.focusBorderUpdateHooks[e];n===t._defaultSetter?delete t[e]:t[e]=n}),delete t.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}t.compose=function(t,e){let a=t.prototype,o=e.prototype;a.renderFocusBorder||(a.renderFocusBorder=n,a.setFocusToElement=r),o.addFocusBorder||(o.addFocusBorder=i,o.removeFocusBorder=s)}}(p||(p={}));let at=p;var ot=y(660),lt=y.n(ot);let{doc:ct}=w(),{addClass:ut,visuallyHideElement:ht}=T,{attr:dt}=w(),pt=class{constructor(t,e){this.chart=t,this.domElementProvider=new X,this.announceRegion=this.addAnnounceRegion(e)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(t){lt().setElementHTML(this.announceRegion,t),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=lt().emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(t){let e=this.chart.announcerContainer||this.createAnnouncerContainer(),n=this.domElementProvider.createElement("div");return dt(n,{"aria-hidden":!1,"aria-live":t,"aria-atomic":!0}),this.chart.styledMode?ut(n,"highcharts-visually-hidden"):ht(n),e.appendChild(n),n}createAnnouncerContainer(){let t=this.chart,e=ct.createElement("div");return dt(e,{"aria-hidden":!1,class:"highcharts-announcer-container"}),e.style.position="relative",t.renderTo.insertBefore(e,t.renderTo.firstChild),t.announcerContainer=e,e}},{escapeStringForHTML:ft,stripHTMLTagsFromString:gt}=T;function mt(t){return(t.annotations||[]).reduce((t,e)=>(e.options&&!1!==e.options.visible&&(t=t.concat(e.labels)),t),[])}function bt(t){return t.options&&t.options.accessibility&&t.options.accessibility.description||t.graphic&&t.graphic.text&&t.graphic.text.textStr||""}function yt(t){let e=t.options&&t.options.accessibility&&t.options.accessibility.description;if(e)return e;let n=t.chart,r=bt(t),i=t.points,s=i.filter(t=>!!t.graphic).map(t=>{let e=t.accessibility&&t.accessibility.valueDescription||(t=>t.graphic&&t.graphic.element&&t.graphic.element.getAttribute("aria-label")||"")(t),n=t&&t.series.name||"";return(n?n+", ":"")+"data point "+e}).filter(t=>!!t),a=s.length,o=a>1?"MultiplePoints":a?"SinglePoint":"NoPoints",l={annotationText:r,annotation:t,numPoints:a,annotationPoint:s[0],additionalAnnotationPoints:s.slice(1)};return n.langFormat("accessibility.screenReaderSection.annotations.description"+o,l)}function vt(t){return mt(t).map(e=>{let n=ft(gt(yt(e),t.renderer.forExport));return n?`<li>${n}</li>`:""})}let xt={getAnnotationsInfoHTML:function(t){let e=t.annotations;return e&&e.length?`<ul style="list-style-type: none">${vt(t).join(" ")}</ul>`:""},getAnnotationLabelDescription:yt,getAnnotationListItems:vt,getPointAnnotationTexts:function(t){let e=mt(t.series.chart).filter(e=>e.points.indexOf(t)>-1);return e.length?e.map(t=>`${bt(t)}`):[]}},{getAnnotationsInfoHTML:wt}=xt,{getAxisDescription:kt,getAxisRangeDescription:At,getChartTitle:St,unhideChartElementFromAT:Ct}=q,{format:Et}=O(),{doc:Mt}=w(),{addClass:Tt,getElement:Pt,getHeadingTagNameForElement:Ot,stripHTMLTagsFromString:Lt,visuallyHideElement:jt}=T,{attr:_t,pick:It,replaceNested:Rt}=w();function Dt(t){return Rt(t,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}let Nt=class extends ${constructor(){super(...arguments),this.screenReaderSections={}}init(){let t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"aftergetTableAST",function(t){e.onDataTableCreated(t)}),this.addEvent(t,"afterViewData",function(t){t.wasHidden&&(e.dataTableDiv=t.element,setTimeout(function(){e.focusDataTable()},300))}),this.addEvent(t,"afterHideData",function(){e.viewDataTableButton&&e.viewDataTableButton.setAttribute("aria-expanded","false")}),t.exporting&&this.addEvent(t,"afterPrint",function(){e.updateAllScreenReaderSections()}),this.announcer=new pt(t,"assertive")}initRegionsDefinitions(){let t=this,e=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(n){let r=e.screenReaderSection.beforeChartFormatter;return r?r(n):t.defaultBeforeChartFormatter(n)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),void 0!==t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(n){let r=e.screenReaderSection.afterChartFormatter;return r?r(n):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&e.keyboardNavigation.enabled&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let t=this;Object.keys(this.screenReaderSections).forEach(function(e){t.updateScreenReaderSection(e)})}getLinkedDescriptionElement(){let t=this.chart.options.accessibility.linkedDescription;if(!t)return;if("string"!=typeof t)return t;let e=Et(t,this.chart),n=Mt.querySelectorAll(e);return 1===n.length?n[0]:void 0}setLinkedDescriptionAttrs(){let t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),Tt(t,"highcharts-linked-description"))}updateScreenReaderSection(t){let e=this.chart,n=this.screenReaderSections[t],r=n.buildContent(e),i=n.element=n.element||this.createElement("div"),s=i.firstChild||this.createElement("div");r?(this.setScreenReaderSectionAttribs(i,t),lt().setElementHTML(s,r),i.appendChild(s),n.insertIntoDOM(i,e),e.styledMode?Tt(s,"highcharts-visually-hidden"):jt(s),Ct(e,s),n.afterInserted&&n.afterInserted()):(i.parentNode&&i.parentNode.removeChild(i),n.element=null)}setScreenReaderSectionAttribs(t,e){let n=this.chart,r=n.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:n,chartTitle:St(n)});_t(t,{id:`highcharts-screen-reader-region-${e}-${n.index}`,"aria-label":r||void 0}),t.style.position="relative",r&&t.setAttribute("role","all"===n.options.accessibility.landmarkVerbosity?"region":"group")}defaultBeforeChartFormatter(){let t=this.chart,e=t.options.accessibility.screenReaderSection.beforeChartFormat;if(!e)return"";let n=this.getAxesDescription(),r=t.sonify&&t.options.sonification&&t.options.sonification.enabled,i="highcharts-a11y-sonify-data-btn-"+t.index,s="hc-linkto-highcharts-data-table-"+t.index,a=wt(t),o=t.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:t}),l={headingTagName:Ot(t.renderTo),chartTitle:St(t),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:n.xAxis,yAxisDescription:n.yAxis,playAsSoundButton:r?this.getSonifyButtonText(i):"",viewTableButton:t.getCSV?this.getDataTableButtonText(s):"",annotationsTitle:a?o:"",annotationsList:a},c=I.i18nFormat(e,l,t);return this.dataTableButtonId=s,this.sonifyButtonId=i,Dt(c)}defaultAfterChartFormatter(){let t=this.chart,e=t.options.accessibility.screenReaderSection.afterChartFormat;if(!e)return"";let n={endOfChartMarker:this.getEndOfChartMarkerText()};return Dt(I.i18nFormat(e,n,t))}getLinkedDescription(){let t=this.linkedDescriptionElement;return Lt(t&&t.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let t=this.chart.options,e=t.caption,n=e&&e.text,r=this.getLinkedDescription();return t.accessibility.description||r||n||""}getTypeDescriptionText(){let t=this.chart;return t.types?t.options.accessibility.typeDescription||function(t,e){let n=e[0],r=t.series&&t.series[0]||{},i=t.mapView&&t.mapView.geoMap&&t.mapView.geoMap.title,s={numSeries:t.series.length,numPoints:r.points&&r.points.length,chart:t,mapTitle:i};return n?"map"===n||"tiledwebmap"===n?s.mapTitle?t.langFormat("accessibility.chartTypes.mapTypeDescription",s):t.langFormat("accessibility.chartTypes.unknownMap",s):t.types.length>1?t.langFormat("accessibility.chartTypes.combinationChart",s):function(t,e,n){let r=e[0],i=t.langFormat("accessibility.seriesTypeDescriptions."+r,n),s=t.series&&t.series.length<2?"Single":"Multiple";return(t.langFormat("accessibility.chartTypes."+r+s,n)||t.langFormat("accessibility.chartTypes.default"+s,n))+(i?" "+i:"")}(t,e,s):t.langFormat("accessibility.chartTypes.emptyChart",s)}(t,t.types):""}getDataTableButtonText(t){let e=this.chart;return'<button id="'+t+'">'+e.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:e,chartTitle:St(e)})+"</button>"}getSonifyButtonText(t){let e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'<button id="'+t+'">'+e.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:e,chartTitle:St(e)})+"</button>"}getSubtitleText(){let t=this.chart.options.subtitle;return Lt(t&&t.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let t=Pt(`highcharts-end-of-chart-marker-${this.chart.index}`);if(t)return t.outerHTML;let e=this.chart,n=e.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:e});return'<div id="highcharts-end-of-chart-marker-'+e.index+'">'+n+"</div>"}onDataTableCreated(t){let e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let n=t.tree.attributes||{};n.tabindex=-1,n.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=n}}focusDataTable(){let t=this.dataTableDiv,e=t&&t.getElementsByTagName("table")[0];e&&e.focus&&e.focus()}initSonifyButton(t){let e=this.sonifyButton=Pt(t),n=this.chart,r=t=>{e&&(e.setAttribute("aria-hidden","true"),e.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation();let r=n.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:n});this.announcer.announce(r),setTimeout(()=>{e&&(e.removeAttribute("aria-hidden"),e.removeAttribute("aria-label")),n.sonify&&n.sonify()},1e3)};e&&n&&(e.setAttribute("tabindex",-1),e.onclick=function(t){(n.options.accessibility&&n.options.accessibility.screenReaderSection.onPlayAsSoundClick||r).call(this,t,n)})}initDataTableButton(t){let e=this.viewDataTableButton=Pt(t),n=this.chart,r=t.replace("hc-linkto-","");e&&(_t(e,{tabindex:-1,"aria-expanded":!!Pt(r)}),e.onclick=n.options.accessibility.screenReaderSection.onViewDataTableClick||function(){n.viewData()})}getAxesDescription(){let t=this.chart,e=function(e,n){let r=t[e];return r.length>1||r[0]&&It(r[0].options.accessibility&&r[0].options.accessibility.enabled,n)},n=!!t.types&&0>t.types.indexOf("map")&&0>t.types.indexOf("treemap")&&0>t.types.indexOf("tilemap"),r=!!t.hasCartesianSeries,i=e("xAxis",!t.angular&&r&&n),s=e("yAxis",r&&n),a={};return i&&(a.xAxis=this.getAxisDescriptionText("xAxis")),s&&(a.yAxis=this.getAxisDescriptionText("yAxis")),a}getAxisDescriptionText(t){let e=this.chart,n=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(n.length>1?"Plural":"Singular"),{chart:e,names:n.map(function(t){return kt(t)}),ranges:n.map(function(t){return At(t)}),numAxes:n.length})}destroy(){this.announcer&&this.announcer.destroy()}},{attr:Bt}=w(),{getChartTitle:Ft,unhideChartElementFromAT:zt}=q,{getFakeMouseEvent:Ht}=T;function qt(t){return t.exportSVGElements&&t.exportSVGElements[0]}class Wt extends ${init(){let t=this.chart,e=this;this.addEvent(t,"exportMenuShown",function(){e.onMenuShown()}),this.addEvent(t,"exportMenuHidden",function(){e.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let t=this.chart.exportContextMenu;t&&t.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let t=this.chart,e=t.exportContextMenu;e&&(this.addAccessibleContextMenuAttribs(),zt(t,e)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(t){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",t)}onChartRender(){let t=this.chart,e=t.focusElement,n=t.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&e&&e===t.exportingGroup&&(e.focusBorder?t.setFocusToElement(e,this.exportButtonProxy.innerElement):n&&n.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let t=this.chart,e=this.proxyProvider,n=qt(t);(function(t){let e=t.options.exporting,n=qt(t);return!!(e&&!1!==e.enabled&&e.accessibility&&e.accessibility.enabled&&n&&n.element)})(t)&&n&&(this.exportButtonProxy=e.addProxyElement("chartMenu",{click:n},"button",{"aria-label":t.langFormat("accessibility.exporting.menuButtonLabel",{chart:t,chartTitle:Ft(t)}),"aria-expanded":!1,title:t.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let t=this.chart,e=t.exportDivElements;if(e&&e.length){e.forEach(t=>{t&&("LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1))});let n=e[0]&&e[0].parentNode;n&&Bt(n,{"aria-hidden":void 0,"aria-label":t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t}),role:"list"})}}getKeyboardNavigation(){let t=this.keyCodes,e=this.chart,n=this;return new J(e,{keyCodeMap:[[[t.left,t.up],function(){return n.onKbdPrevious(this)}],[[t.right,t.down],function(){return n.onKbdNext(this)}],[[t.enter,t.space],function(){return n.onKbdClick(this)}]],validate:function(){return!!e.exporting&&!1!==e.options.exporting.enabled&&!1!==e.options.exporting.accessibility.enabled},init:function(){let t=n.exportButtonProxy,r=n.chart.exportingGroup;t&&r&&e.setFocusToElement(r,t.innerElement)},terminate:function(){e.hideExportMenu()}})}onKbdPrevious(t){let e=this.chart,n=e.options.accessibility,r=t.response,i=e.highlightedExportItemIx||0;for(;i--;)if(e.highlightExportItem(i))return r.success;return n.keyboardNavigation.wrapAround?(e.highlightLastExportItem(),r.success):r.prev}onKbdNext(t){let e=this.chart,n=e.options.accessibility,r=t.response;for(let t=(e.highlightedExportItemIx||0)+1;t<e.exportDivElements.length;++t)if(e.highlightExportItem(t))return r.success;return n.keyboardNavigation.wrapAround?(e.highlightExportItem(0),r.success):r.next}onKbdClick(t){let e=this.chart,n=e.exportDivElements[e.highlightedExportItemIx],r=qt(e).element;return e.openMenu?this.fakeClickEvent(n):(this.fakeClickEvent(r),e.highlightExportItem(0)),t.response.success}}!function(t){function e(){let t=qt(this);if(t){let e=t.element;e.onclick&&e.onclick(Ht("click"))}}function n(){let t=this.exportDivElements;t&&this.exportContextMenu&&this.openMenu&&(t.forEach(t=>{t&&"highcharts-menu-item"===t.className&&t.onmouseout&&t.onmouseout(Ht("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function r(t){let e=this.exportDivElements&&this.exportDivElements[t],n=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(e&&"LI"===e.tagName&&(!e.children||!e.children.length)){let r=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return e.focus&&r&&e.focus(),n&&n.onmouseout&&n.onmouseout(Ht("mouseout")),e.onmouseover&&e.onmouseover(Ht("mouseover")),this.highlightedExportItemIx=t,!0}return!1}function i(){if(this.exportDivElements){let t=this.exportDivElements.length;for(;t--;)if(this.highlightExportItem(t))return!0}return!1}t.compose=function(t){let s=t.prototype;s.hideExportMenu||(s.hideExportMenu=n,s.highlightExportItem=r,s.highlightLastExportItem=i,s.showExportMenu=e)}}(Wt||(Wt={}));let Ut=Wt,{doc:Xt,win:Yt}=w(),{addEvent:Gt,defined:Vt,fireEvent:Kt}=w(),{getElement:$t,simulatedEventTarget:Zt}=T;class Jt{constructor(t,e){this.currentModuleIx=NaN,this.modules=[],this.init(t,e)}init(t,e){let n=this.eventProvider=new G;this.chart=t,this.components=e,this.modules=[],this.currentModuleIx=0,this.update(),n.addEvent(this.tabindexContainer,"keydown",t=>this.onKeydown(t)),n.addEvent(this.tabindexContainer,"focus",t=>this.onFocus(t)),["mouseup","touchend"].forEach(t=>n.addEvent(Xt,t,t=>this.onMouseUp(t))),["mousedown","touchstart"].forEach(e=>n.addEvent(t.renderTo,e,()=>{this.isClickingChart=!0}))}update(t){let e=this.chart.options.accessibility,n=e&&e.keyboardNavigation,r=this.components;this.updateContainerTabindex(),n&&n.enabled&&t&&t.length?(this.modules=t.reduce(function(t,e){let n=r[e].getKeyboardNavigation();return t.concat(n)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let t=$t(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),t?(this.makeElementAnExitAnchor(t),this.exitAnchor=t):this.createExitAnchor()}move(t){let e=this.modules&&this.modules[this.currentModuleIx];e&&e.terminate&&e.terminate(t),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=t;let n=this.modules&&this.modules[this.currentModuleIx];if(n){if(n.validate&&!n.validate())return this.move(t);if(n.init)return n.init(t),!0}return this.currentModuleIx=0,this.exiting=!0,t>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(t){let e=this.chart,n=t.relatedTarget&&e.container.contains(t.relatedTarget),r=e.options.accessibility,i=r&&r.keyboardNavigation;if(i&&i.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!n){let t=this.getFirstValidModuleIx();null!==t&&(this.currentModuleIx=t,this.modules[t].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(t){if(delete this.isClickingChart,!this.keyboardReset&&t.relatedTarget!==Zt){let e=this.chart;if(!t.target||!e.container.contains(t.target)){let t=this.modules&&this.modules[this.currentModuleIx||0];t&&t.terminate&&t.terminate(),this.currentModuleIx=0}e.focusElement&&(e.focusElement.removeFocusBorder(),delete e.focusElement),this.keyboardReset=!0}}onKeydown(t){let e,n=t||Yt.event,r=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],i=n.target;if((!i||"INPUT"!==i.nodeName||i.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,r)){let t=r.run(n);t===r.response.success?e=!0:t===r.response.prev?e=this.move(-1):t===r.response.next&&(e=this.move(1)),e&&(n.preventDefault(),n.stopPropagation())}}updateContainerTabindex(){let t,e=this.chart.options.accessibility,n=e&&e.keyboardNavigation,r=!(n&&!1===n.enabled),i=this.chart,s=i.container;i.renderTo.hasAttribute("tabindex")?(s.removeAttribute("tabindex"),t=i.renderTo):t=s,this.tabindexContainer=t;let a=t.getAttribute("tabindex");r&&!a?t.setAttribute("tabindex","0"):r||i.container.removeAttribute("tabindex")}createExitAnchor(){let t=this.chart,e=this.exitAnchor=Xt.createElement("div");t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)}makeElementAnExitAnchor(t){let e=this.tabindexContainer.getAttribute("tabindex")||0;t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex",e),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)}removeExitAnchor(){if(this.exitAnchor){let t=this.eventProvider.eventRemovers.find(t=>t.element===this.exitAnchor);t&&Vt(t.remover)&&this.eventProvider.removeEvent(t.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(t){let e=this.chart,n=this;this.eventProvider.addEvent(t,"focus",function(t){let r=t||Yt.event,i=!(r.relatedTarget&&e.container.contains(r.relatedTarget)||n.exiting);if(e.focusElement&&delete e.focusElement,i){if(n.tabbingInBackwards=!0,n.tabindexContainer.focus(),delete n.tabbingInBackwards,r.preventDefault(),n.modules&&n.modules.length){n.currentModuleIx=n.modules.length-1;let t=n.modules[n.currentModuleIx];t&&t.validate&&!t.validate()?n.move(-1):t&&t.init(-1)}}else n.exiting=!1})}getFirstValidModuleIx(){let t=this.modules.length;for(let e=0;e<t;++e){let t=this.modules[e];if(!t.validate||t.validate())return e}return null}destroy(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")}}!function(t){function e(){let t=this;Kt(this,"dismissPopupContent",{},function(){t.tooltip&&t.tooltip.hide(0),t.hideExportMenu()})}function n(t){27===(t.which||t.keyCode)&&w().charts&&w().charts.forEach(t=>{t&&t.dismissPopupContent&&t.dismissPopupContent()})}t.compose=function(t){Ut.compose(t);let r=t.prototype;return r.dismissPopupContent||(r.dismissPopupContent=e,Gt(Xt,"keydown",n)),t}}(Jt||(Jt={}));let Qt=Jt;var te=y(632),ee=y.n(te);let{animObject:ne}=w(),{doc:re}=w(),{addEvent:ie,fireEvent:se,isNumber:ae,pick:oe,syncTimeout:le}=w(),{getChartTitle:ce}=q,{stripHTMLTagsFromString:ue,addClass:he,removeClass:de}=T;function pe(t){let e=t.legend&&t.legend.allItems,n=t.options.legend.accessibility||{},r=t.colorAxis&&t.colorAxis.some(t=>!t.dataClasses||!t.dataClasses.length);return!(!e||!e.length||r||!1===n.enabled)}function fe(t,e){let n=e.legendItem||{};for(let r of(e.setState(t?"hover":"",!0),["group","label","symbol"])){let e=n[r],i=e&&e.element||e;i&&se(i,t?"mouseover":"mouseout")}}class ge extends ${constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let t=this;this.recreateProxies(),this.addEvent(ee(),"afterScroll",function(){this.chart===t.chart&&(t.proxyProvider.updateGroupProxyElementPositions("legend"),t.updateLegendItemProxyVisibility(),t.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(t.highlightedLegendItemIx))}),this.addEvent(ee(),"afterPositionItem",function(e){this.chart===t.chart&&this.chart.renderer&&t.updateProxyPositionForItem(e.item)}),this.addEvent(ee(),"afterRender",function(){this.chart===t.chart&&this.chart.renderer&&t.recreateProxies()&&le(()=>t.proxyProvider.updateGroupProxyElementPositions("legend"),ne(oe(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let t,e=this.chart,n=e.legend,r=n.allItems||[],i=n.currentPage||1,s=n.clipHeight||0;r.forEach(r=>{if(r.a11yProxyElement){let a=n.pages&&n.pages.length,o=r.a11yProxyElement.element,l=!1;if(t=r.legendItem||{},a){let e=t.pageIx||0;l=(t.y||0)+(t.label?Math.round(t.label.getBBox().height):0)-n.pages[e]>s||e!==i-1}l?e.styledMode?he(o,"highcharts-a11y-invisible"):o.style.visibility="hidden":(de(o,"highcharts-a11y-invisible"),o.style.visibility="")}})}onChartRender(){pe(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(t){let e=this.chart,n=e.legend,r=(n.currentPage||1)+t,i=n.pages||[];if(r>0&&r<=i.length){let t=0;for(let i of n.allItems)((i.legendItem||{}).pageIx||0)+1===r&&e.highlightLegendItem(t)&&(this.highlightedLegendItemIx=t),++t}}updateProxyPositionForItem(t){t.a11yProxyElement&&t.a11yProxyElement.refreshPosition()}recreateProxies(){let t=re.activeElement,e=this.proxyGroup,n=t&&e&&e.contains(t);return this.removeProxies(),!!pe(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),n&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let t=this.chart,e=ue((t.legend&&t.legend.options.title&&t.legend.options.title.text||"").replace(/<br ?\/?>/g," "),t.renderer.forExport),n=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:ce(t)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":n})}addLegendProxyGroup(){let t="all"===this.chart.options.accessibility.landmarkVerbosity?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:t})}proxyLegendItems(){let t,e=this;((this.chart.legend||{}).allItems||[]).forEach(n=>{(t=n.legendItem||{}).label&&t.label.element&&e.proxyLegendItem(n)})}proxyLegendItem(t){let e=t.legendItem||{};if(!e.label||!e.group)return;let n=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:ue(t.name,this.chart.renderer.forExport),item:t}),r={tabindex:-1,"aria-pressed":t.visible,"aria-label":n},i=e.group.div?e.label:e.group;t.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:e.label,visual:i.element},"button",r)}getKeyboardNavigation(){let t=this.keyCodes,e=this,n=this.chart;return new J(n,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onKbdClick(this)}],[[t.pageDown,t.pageUp],function(n){let r=n===t.pageDown?1:-1;return e.highlightAdjacentLegendPage(r),this.response.success}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(){n.highlightLegendItem(0),e.highlightedLegendItemIx=0},terminate:function(){e.highlightedLegendItemIx=-1,n.legend.allItems.forEach(t=>fe(!1,t))}})}onKbdArrowKey(t,e){let{keyCodes:{left:n,up:r},highlightedLegendItemIx:i,chart:s}=this,a=s.legend.allItems.length,o=s.options.accessibility.keyboardNavigation.wrapAround,l=e===n||e===r?-1:1;return s.highlightLegendItem(i+l)?this.highlightedLegendItemIx+=l:o&&a>1&&(this.highlightedLegendItemIx=l>0?0:a-1,s.highlightLegendItem(this.highlightedLegendItemIx)),t.response.success}onKbdClick(t){let e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&e.a11yProxyElement.click(),t.response.success}shouldHaveLegendNavigation(){if(!pe(this.chart))return!1;let t=this.chart,e=(t.options.legend||{}).accessibility||{};return!!(t.legend.display&&e.keyboardNavigation&&e.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}!function(t){function e(t){let e=this.legend.allItems,n=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,r=e[t],i=r?.legendItem||{};if(r){ae(n)&&e[n]&&fe(!1,e[n]),function(t,e){let n=(t.allItems[e].legendItem||{}).pageIx,r=t.currentPage;void 0!==n&&n+1!==r&&t.scroll(1+n-r)}(this.legend,t);let s=i.label,a=r.a11yProxyElement&&r.a11yProxyElement.innerElement;return s&&s.element&&a&&this.setFocusToElement(s,a),fe(!0,r),!0}return!1}function n(t){let e=this.chart.options.accessibility,n=t.item;e.enabled&&n&&n.a11yProxyElement&&n.a11yProxyElement.innerElement.setAttribute("aria-pressed",t.visible?"true":"false")}t.compose=function(t,r){let i=t.prototype;i.highlightLegendItem||(i.highlightLegendItem=e,ie(r,"afterColorizeItem",n))}}(ge||(ge={}));let me=ge;var be=y(532),ye=y.n(be);let{isTouchDevice:ve}=w(),{addEvent:xe,merge:we,pick:ke}=w(),Ae=[];function Se(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function Ce(){let t,e,n,r=this.legend,i=this.navigator;if(i){t=r&&r.options,e=i.xAxis,n=i.yAxis;let{scrollbarHeight:s,scrollButtonSize:a}=i;this.inverted?(i.left=i.opposite?this.chartWidth-s-i.height:this.spacing[3]+s,i.top=this.plotTop+a):(i.left=ke(e.left,this.plotLeft+a),i.top=i.navigatorOptions.top||this.chartHeight-i.height-s-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&"proximate"!==t.layout&&t.enabled&&!t.floating?r.legendHeight+ke(t.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&n&&(this.inverted?e.options.left=n.options.left=i.left:e.options.top=n.options.top=i.top,e.setAxisSize(),n.setAxisSize())}}function Ee(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new h(this),ke(t.redraw,!0)&&this.redraw(t.animation))}function Me(){let t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new h(this))}function Te(){let t=this.options,e=t.navigator,n=t.rangeSelector;if((e&&e.enabled||n&&n.enabled)&&(!ve&&"x"===this.zooming.type||ve&&"x"===this.zooming.pinchType))return!1}function Pe(t){let e=t.navigator;if(e&&t.xAxis[0]){let n=t.xAxis[0].getExtremes();e.render(n.min,n.max)}}function Oe(t){let e=t.options.navigator||{},n=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||n.enabled)&&(we(!0,this.options.navigator,e),we(!0,this.options.scrollbar,n),delete t.options.navigator,delete t.options.scrollbar)}let Le=function(t,e){if(w().pushUnique(Ae,t)){let n=t.prototype;h=e,n.callbacks.push(Pe),xe(t,"afterAddSeries",Se),xe(t,"afterSetChartSize",Ce),xe(t,"afterUpdate",Ee),xe(t,"beforeRender",Me),xe(t,"beforeShowResetZoom",Te),xe(t,"update",Oe)}},{isTouchDevice:je}=w(),{addEvent:_e,correctFloat:Ie,defined:Re,isNumber:De,pick:Ne}=w();function Be(){this.navigatorAxis||(this.navigatorAxis=new ze(this))}function Fe(t){let e,n=this.chart,r=n.options,i=r.navigator,s=this.navigatorAxis,a=n.zooming.pinchType,o=r.rangeSelector,l=n.zooming.type;if(this.isXAxis&&(i?.enabled||o?.enabled))if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||je&&"xy"===a)&&this.options.range){let e=s.previousZoom;Re(t.min)?s.previousZoom=[this.min,this.max]:e&&(t.min=e[0],t.max=e[1],s.previousZoom=void 0)}void 0!==e&&t.preventDefault()}class ze{static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),_e(t,"init",Be),_e(t,"setExtremes",Fe))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,n,r){let i=this.axis,s=(i.pointRange||0)/2,a=Ne(n,i.translate(t,!0,!i.horiz)),o=Ne(r,i.translate(e,!0,!i.horiz));return Re(n)||(a=Ie(a+s)),Re(r)||(o=Ie(o-s)),De(a)&&De(o)||(a=o=void 0),{min:a,max:o}}}var He=y(620),qe=y.n(He),We=y(512),Ue=y.n(We);let{parse:Xe}=qe(),{seriesTypes:Ye}=Ue(),Ge={height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:Xe("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===Ye.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}},{defined:Ve,isNumber:Ke,pick:$e}=w(),Ze=function(t,e,n,r,i){return i&&i.r?function(t,e,n,r,i){let s=i?.r||0;return[["M",t+s,e],["L",t+n-s,e],["A",s,s,0,0,1,t+n,e+s],["L",t+n,e+r-s],["A",s,s,0,0,1,t+n-s,e+r],["L",t+s,e+r],["A",s,s,0,0,1,t,e+r-s],["L",t,e+s],["A",s,s,0,0,1,t+s,e],["Z"]]}(t,e,n,r,i):[["M",t,e],["L",t+n,e],["L",t+n,e+r],["L",t,e+r],["Z"]]},{relativeLength:Je}=w(),Qe={"navigator-handle":function(t,e,n,r,i={}){let s=i.width?i.width/2:n,a=Je(i.borderRadius||0,Math.min(2*s,r));return[["M",-1.5,(r=i.height||r)/2-3.5],["L",-1.5,r/2+4.5],["M",.5,r/2-3.5],["L",.5,r/2+4.5],...Ze(-s-1,.5,2*s+1,r,{r:a})]}};var tn=y(608),en=y.n(tn);let{defined:nn}=w(),{setOptions:rn}=w(),{composed:sn}=w(),{getRendererType:an}=en(),{setFixedRange:on}={setFixedRange:function(t){let e=this.xAxis[0];nn(e.dataMax)&&nn(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}},{addEvent:ln,extend:cn,pushUnique:un}=w();function hn(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let dn=function(t,e,n){ze.compose(e),un(sn,"Navigator")&&(t.prototype.setFixedRange=on,cn(an().prototype.symbols,Qe),ln(n,"afterUpdate",hn),rn({navigator:Ge}))},{composed:pn}=w(),{addEvent:fn,defined:gn,pick:mn,pushUnique:bn}=w();!function(t){let e;function n(t){let e=mn(t.options&&t.options.min,t.min),n=mn(t.options&&t.options.max,t.max);return{axisMin:e,axisMax:n,scrollMin:gn(t.dataMin)?Math.min(e,t.min,t.dataMin,mn(t.threshold,1/0)):e,scrollMax:gn(t.dataMax)?Math.max(n,t.max,t.dataMax,mn(t.threshold,-1/0)):n}}function r(){let t=this.scrollbar,e=t&&!t.options.opposite,n=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[n]+=t.size+(t.options.margin||0))}function i(){let t=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),fn(t.scrollbar,"changed",function(e){let r,i,{axisMin:s,axisMax:a,scrollMin:o,scrollMax:l}=n(t),c=l-o;if(gn(s)&&gn(a))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(r=o+c*this.to,i=o+c*this.from):(r=o+c*(1-this.from),i=o+c*(1-this.to)),this.shouldUpdateExtremes(e.DOMType)){let n="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(i,r,!0,n,e)}else this.setRange(this.from,this.to)}))}function s(){let t,e,r,{scrollMin:i,scrollMax:s}=n(this),a=this.scrollbar,o=this.axisTitleMargin+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,c=this.options.margin||0;if(a&&l){if(this.horiz)this.opposite||(l[1]+=o),a.position(this.left,this.top+this.height+2+l[1]-(this.opposite?c:0),this.width,this.height),this.opposite||(l[1]+=c),t=1;else{let e;this.opposite&&(l[0]+=o),e=a.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:c):this.opposite?0:c,a.position(e,this.top,this.width,this.height),this.opposite&&(l[0]+=c),t=0}if(l[t]+=a.size+(a.options.margin||0),isNaN(i)||isNaN(s)||!gn(this.min)||!gn(this.max)||this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){let t=this.pointRange/(this.dataMax+1);e=t*this.min,r=t*(this.max+1),a.setRange(e,r)}else e=(this.min-i)/(s-i),r=(this.max-i)/(s-i),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,r):a.setRange(1-r,1-e)}}t.compose=function(t,n){bn(pn,"Axis.Scrollbar")&&(e=n,fn(t,"afterGetOffset",r),fn(t,"afterInit",i),fn(t,"afterRender",s))}}(f||(f={}));let yn=f,vn={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:xn}=w(),{addEvent:wn,correctFloat:kn,crisp:An,defined:Sn,destroyObjectProperties:Cn,fireEvent:En,merge:Mn,pick:Tn,removeEvent:Pn}=w();class On{static compose(t){yn.compose(t,On)}static swapXY(t,e){return e&&t.forEach(t=>{let e,n=t.length;for(let r=0;r<n;r+=2)"number"==typeof(e=t[r+1])&&(t[r+1]=t[r+2],t[r+2]=e)}),t}constructor(t,e,n){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,n)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,n=this.scrollbarGroup.element,r=this.track.element,i=this.mouseDownHandler.bind(this),s=this.mouseMoveHandler.bind(this),a=this.mouseUpHandler.bind(this),o=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[r,"click",this.trackClick.bind(this)],[n,"mousedown",i],[n.ownerDocument,"mousemove",s],[n.ownerDocument,"mouseup",a],[n,"touchstart",i],[n.ownerDocument,"touchmove",s],[n.ownerDocument,"touchend",a]];o.forEach(function(t){wn.apply(null,t)}),this._events=o}buttonToMaxClick(t){let e=(this.to-this.from)*Tn(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),En(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=kn(this.to-this.from)*Tn(this.options.step,.2);this.updatePosition(kn(this.from-e),kn(this.to-e)),En(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let e=this.options,n=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-n),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-n)}}destroy(){let t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,Cn(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,n=this.scrollbarButtons,r=this.options,i=this.size,s=e.g().add(this.group);if(n.push(s),r.buttonsEnabled){let a=e.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:i,height:i,r:r.buttonBorderRadius},a.strokeWidth()));let o=e.path(On.swapXY([["M",i/2+(t?-1:1),i/2-3],["L",i/2+(t?-1:1),i/2+3],["L",i/2+(t?2:-2),i/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(n[t]);this.chart.styledMode||o.attr({fill:r.buttonArrowColor})}}init(t,e,n){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=Mn(vn,xn.scrollbar,e),this.options.margin=Tn(this.options.margin,10),this.chart=n,this.size=Tn(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let e=this.chart.pointer?.normalize(t)||t,n=this.cursorToScrollbarPosition(e);this.chartX=n.chartX,this.chartY=n.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let e,n=this.chart.pointer?.normalize(t)||t,r=this.options.vertical?"chartY":"chartX",i=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(e=this.cursorToScrollbarPosition(n)[r]-this[r],this.hasDragged=!0,this.updatePosition(i[0]+e,i[1]+e),this.hasDragged&&En(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&En(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,e,n,r){let{buttonsEnabled:i,margin:s=0,vertical:a}=this.options,o=this.rendered?"animate":"attr",l=r,c=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=n,this.height=r,this.xOffset=l,this.yOffset=c,a?(this.width=this.yOffset=n=c=this.size,this.xOffset=l=0,this.yOffset=c=i?this.size:0,this.barWidth=r-(i?2*n:0),this.x=t+=s):(this.height=r=this.size,this.xOffset=l=i?this.size:0,this.barWidth=n-(i?2*r:0),this.y=this.y+s),this.group[o]({translateX:t,translateY:this.y}),this.track[o]({width:n,height:r}),this.scrollbarButtons[1][o]({translateX:a?0:n-l,translateY:a?r-c:0})}removeEvents(){this._events.forEach(function(t){Pn.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,n=this.size,r=this.chart.styledMode,i=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=i,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:n,width:n}).add(i),r||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});let s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-An(0,s),y:-An(0,s)}),this.scrollbarGroup=t.g().add(i),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:n-s,width:n-s,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(On.swapXY([["M",-3,n/4],["L",-3,2*n/3],["M",0,n/4],["L",0,2*n/3],["M",3,n/4],["L",3,2*n/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),r||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-An(0,this.scrollbarStrokeWidth),-An(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let n,r,i=this.options,s=i.vertical,a=i.minWidth,o=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!Sn(o))return;let c=o*Math.min(e,1);n=Math.ceil(o*(t=Math.max(t,0))),this.calculatedWidth=r=kn(c-n),r<a&&(n=(o-a+r)*t,r=a);let u=Math.floor(n+this.xOffset+this.yOffset),h=r/2-.5;this.from=t,this.to=e,s?(this.scrollbarGroup[l]({translateY:u}),this.scrollbar[l]({height:r}),this.scrollbarRifles[l]({translateY:h}),this.scrollbarTop=u,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:u}),this.scrollbar[l]({width:r}),this.scrollbarRifles[l]({translateX:h}),this.scrollbarLeft=u,this.scrollbarTop=0),r<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===i.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return Tn(this.options.liveRedraw,w().svg&&!w().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!Sn(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,n=this.to-this.from,r=this.y+this.scrollbarTop,i=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>r||!this.options.vertical&&e.chartX>i?this.updatePosition(this.from+n,this.to+n):this.updatePosition(this.from-n,this.to-n),En(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,Mn(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=kn(1-kn(e-t)),e=1),t<0&&(e=kn(e-t),t=0),this.from=t,this.to=e}}On.defaultOptions=vn,xn.scrollbar=Mn(!0,On.defaultOptions,xn.scrollbar);var Ln=y(540),jn=y.n(Ln);let{defaultOptions:_n}=w(),{isTouchDevice:In}=w(),{prototype:{symbols:Rn}}=jn(),{addEvent:Dn,clamp:Nn,correctFloat:Bn,defined:Fn,destroyObjectProperties:zn,erase:Hn,extend:qn,find:Wn,fireEvent:Un,isArray:Xn,isNumber:Yn,merge:Gn,pick:Vn,removeEvent:Kn,splat:$n}=w();function Zn(t,...e){let n=[].filter.call(e,Yn);if(n.length)return Math[t].apply(0,n)}class Jn{static compose(t,e,n){Le(t,Jn),dn(t,e,n)}constructor(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}drawHandle(t,e,n,r){let i=this.navigatorOptions.handles.height;this.handles[e][r](n?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-i)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-i/2-1)})}drawOutline(t,e,n,r){let i,s,a=this.navigatorOptions.maskInside,o=this.outline.strokeWidth(),l=o/2,c=o%2/2,u=this.scrollButtonSize,h=this.size,d=this.top,p=this.height,f=d-l,g=d+p,m=this.left;n?(i=d+e+c,s=[["M",m+p,d-u-c],["L",m+p,i],["L",m,i],["M",m,e=d+t+c],["L",m+p,e],["L",m+p,d+h+u]],a&&s.push(["M",m+p,i-l],["L",m+p,e+l])):(m-=u,s=[["M",m,f],["L",t+=m+u-c,f],["L",t,g],["M",e+=m+u-c,g],["L",e,f],["L",m+h+2*u,f]],a&&s.push(["M",t-l,f],["L",e+l,f])),this.outline[r]({d:s})}drawMasks(t,e,n,r){let i,s,a,o,l=this.left,c=this.top,u=this.height;n?(a=[l,l,l],o=[c,c+t,c+e],s=[u,u,u],i=[t,e-t,this.size-e]):(a=[l,l+t,l+e],o=[c,c,c],s=[t,e-t,this.size-e],i=[u,u,u]),this.shades.forEach((t,e)=>{t[r]({x:a[e],y:o[e],width:s[e],height:i[e]})})}renderElements(){let t=this,e=t.navigatorOptions,n=e.maskInside,r=t.chart,i=r.inverted,s=r.renderer,a={cursor:i?"ns-resize":"ew-resize"},o=t.navigatorGroup??(t.navigatorGroup=s.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!n,n,!n].forEach((n,i)=>{let l=t.shades[i]??(t.shades[i]=s.rect().addClass("highcharts-navigator-mask"+(1===i?"-inside":"-outside")).add(o));r.styledMode||(l.attr({fill:n?e.maskFill:"rgba(0,0,0,0)"}),1===i&&l.css(a))}),t.outline||(t.outline=s.path().addClass("highcharts-navigator-outline").add(o)),r.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let n=e.handles,{height:i,width:l}=n;[0,1].forEach(e=>{let c=n.symbols[e];if(t.handles[e]&&t.handles[e].symbolUrl===c){if(!t.handles[e].isImg&&t.handles[e].symbolName!==c){let n=Rn[c].call(Rn,-l/2-1,0,l,i);t.handles[e].attr({d:n}),t.handles[e].symbolName=c}}else t.handles[e]?.destroy(),t.handles[e]=s.symbol(c,-l/2-1,0,l,i,n),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(o),t.addMouseEvents();r.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-l/2),rotationOriginY:(i+l)/2}),r.styledMode||t.handles[e].attr({fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.lineWidth,width:n.width,height:n.height,x:-l/2-1,y:0}).css(a)})}}update(t,e=!1){let n=this.chart,r=n.options.chart.inverted!==n.scrollbar?.options.vertical;if(Gn(!0,n.options.navigator,t),this.navigatorOptions=n.options.navigator||{},this.setOpposite(),Fn(t.enabled)||r)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(n);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{Kn(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push(Dn(t,"updatedData",this.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=t.height??this.height;let e=this.getXAxisOffsets();this.xAxis.update({...t.xAxis,offsets:e,[n.inverted?"width":"height"]:this.height,[n.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...t.yAxis,[n.inverted?"width":"height"]:this.height},!1)}e&&n.redraw()}render(t,e,n,r){let i,s,a,o,l,c=this.chart,u=this.xAxis,h=u.pointRange||0,d=u.navigatorAxis.fake?c.xAxis[0]:u,p=this.navigatorEnabled,f=this.rendered,g=c.inverted,m=c.xAxis[0].minRange,b=c.xAxis[0].options.maxRange,y=this.scrollButtonSize,v=this.scrollbarHeight;if(this.hasDragged&&!Fn(n))return;if(this.isDirty&&this.renderElements(),t=Bn(t-h/2),e=Bn(e+h/2),!Yn(t)||!Yn(e)){if(!f)return;n=0,r=Vn(u.width,d.width)}this.left=Vn(u.left,c.plotLeft+y+(g?c.plotWidth:0));let x=this.size=o=Vn(u.len,(g?c.plotHeight:c.plotWidth)-2*y);i=g?v:o+2*y,n=Vn(n,u.toPixels(t,!0)),r=Vn(r,u.toPixels(e,!0)),Yn(n)&&Math.abs(n)!==1/0||(n=0,r=i);let w=u.toValue(n,!0),k=u.toValue(r,!0),A=Math.abs(Bn(k-w));A<m?this.grabbedLeft?n=u.toPixels(k-m-h,!0):this.grabbedRight&&(r=u.toPixels(w+m+h,!0)):Fn(b)&&Bn(A-h)>b&&(this.grabbedLeft?n=u.toPixels(k-b-h,!0):this.grabbedRight&&(r=u.toPixels(w+b+h,!0))),this.zoomedMax=Nn(Math.max(n,r),0,x),this.zoomedMin=Nn(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(n,r),0,x),this.range=this.zoomedMax-this.zoomedMin,x=Math.round(this.zoomedMax);let S=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:"inherit"}),l=f&&!this.hasDragged?"animate":"attr",this.drawMasks(S,x,g,l),this.drawOutline(S,x,g,l),this.navigatorOptions.handles.enabled&&(this.drawHandle(S,0,g,l),this.drawHandle(x,1,g,l))),this.scrollbar&&(g?(a=this.top-y,s=this.left-v+(p||!d.opposite?0:(d.titleOffset||0)+d.axisTitleMargin),v=o+2*y):(a=this.top+(p?this.height:-v),s=this.left-y),this.scrollbar.position(s,a,i,v),this.scrollbar.setRange(this.zoomedMin/(o||1),this.zoomedMax/(o||1))),this.rendered=!0,this.isDirty=!1,Un(this,"afterRender")}addMouseEvents(){let t,e,n=this,r=n.chart,i=r.container,s=[];n.mouseMoveHandler=t=function(t){n.onMouseMove(t)},n.mouseUpHandler=e=function(t){n.onMouseUp(t)},(s=n.getPartsEvents("mousedown")).push(Dn(r.renderTo,"mousemove",t),Dn(i.ownerDocument,"mouseup",e),Dn(r.renderTo,"touchmove",t),Dn(i.ownerDocument,"touchend",e)),s.concat(n.getPartsEvents("touchstart")),n.eventsToUnbind=s,n.series&&n.series[0]&&s.push(Dn(n.series[0].xAxis,"foundExtremes",function(){r.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,n=[];return["shades","handles"].forEach(function(r){e[r].forEach(function(i,s){n.push(Dn(i.element,t,function(t){e[r+"Mousedown"](t,s)}))})}),n}shadesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let n,r,i,s,a=this.chart,o=this.xAxis,l=this.zoomedMin,c=this.size,u=this.range,h=this.left,d=t.chartX;a.inverted&&(d=t.chartY,h=this.top),1===e?(this.grabbedCenter=d,this.fixedWidth=u,this.dragOffset=d-l):(s=d-h-u/2,0===e?s=Math.max(0,s):2===e&&s+u>=c&&(s=c-u,this.reversedExtremes?(s-=u,r=this.getUnionExtremes().dataMin):n=this.getUnionExtremes().dataMax),s!==l&&(this.fixedWidth=u,Fn((i=o.navigatorAxis.toFixedRange(s,s+u,r,n)).min)&&Un(this,"setRange",{min:Math.min(i.min,i.max),max:Math.max(i.min,i.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let n=this.chart,r=n.xAxis[0],i=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=i?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=i?r.max:r.min),n.setFixedRange(void 0)}onMouseMove(t){let e,n=this,r=n.chart,i=n.navigatorSize,s=n.range,a=n.dragOffset,o=r.inverted,l=n.left;(!t.touches||0!==t.touches[0].pageX)&&(e=(t=r.pointer?.normalize(t)||t).chartX,o&&(l=n.top,e=t.chartY),n.grabbedLeft?(n.hasDragged=!0,n.render(0,0,e-l,n.otherHandlePos)):n.grabbedRight?(n.hasDragged=!0,n.render(0,0,n.otherHandlePos,e-l)):n.grabbedCenter&&(n.hasDragged=!0,e<a?e=a:e>i+a-s&&(e=i+a-s),n.render(0,0,e-a,e-a+s)),n.hasDragged&&n.scrollbar&&Vn(n.scrollbar.options.liveRedraw,!In&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){n.onMouseUp(t)},0)))}onMouseUp(t){let e,n,r,i,s,a,o=this.chart,l=this.xAxis,c=this.scrollbar,u=t.DOMEvent||t,h=o.inverted,d=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!c||!c.hasDragged)||"scrollbar"===t.trigger)&&(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?i=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?r.dataMin:r.dataMax),0===this.zoomedMin&&(i=this.reversedExtremes?r.dataMax:r.dataMin),Fn((a=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,i,s)).min)&&Un(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:u}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&Yn(this.zoomedMin)&&Yn(this.zoomedMax)&&(n=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(n,e,h,d),this.outline&&this.drawOutline(n,e,h,d),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(n,0,h,d),this.drawHandle(e,1,h,d)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){Kn(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&Kn(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(t){let e=t.options,n=e.navigator||{},r=n.enabled,i=e.scrollbar||{},s=i.enabled,a=r&&n.height||0,o=s&&i.height||0,l=i.buttonsEnabled&&o||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=a,this.scrollbarHeight=o,this.scrollButtonSize=l,this.scrollbarEnabled=s,this.navigatorEnabled=r,this.navigatorOptions=n,this.scrollbarOptions=i,this.setOpposite();let c=this,u=c.baseSeries,h=t.xAxis.length,d=t.yAxis.length,p=u&&u[0]&&u[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,c.navigatorEnabled){let e=this.getXAxisOffsets();c.xAxis=new(ye())(t,Gn({breaks:p.options.breaks,ordinal:p.options.ordinal,overscroll:p.options.overscroll},n.xAxis,{type:"datetime",yAxis:n.yAxis?.id,index:h,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:p.options.ordinal?0:p.options.minPadding,maxPadding:p.options.ordinal?0:p.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:a}:{offsets:e,height:a}),"xAxis"),c.yAxis=new(ye())(t,Gn(n.yAxis,{alignTicks:!1,offset:0,index:d,isInternal:!0,reversed:Vn(n.yAxis&&n.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:a}:{height:a}),"yAxis"),u||n.series.data?c.updateNavigatorSeries(!1):0===t.series.length&&(c.unbindRedraw=Dn(t,"beforeRedraw",function(){t.series.length>0&&!c.series&&(c.setBaseSeries(),c.unbindRedraw())})),c.reversedExtremes=t.inverted&&!c.xAxis.reversed||!t.inverted&&c.xAxis.reversed,c.renderElements(),c.addMouseEvents()}else c.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,n){let r=t.xAxis[0],i=r.getExtremes(),s=r.len-2*l,a=Zn("min",r.options.min,i.dataMin),o=Zn("max",r.options.max,i.dataMax)-a;return n?e*o/s+a:s*(e-a)/o},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},c.xAxis.navigatorAxis.axis=c.xAxis,c.xAxis.navigatorAxis.toFixedRange=ze.prototype.toFixedRange.bind(c.xAxis.navigatorAxis);if(t.options.scrollbar.enabled){let e=Gn(t.options.scrollbar,{vertical:t.inverted});!Yn(e.margin)&&c.navigatorEnabled&&(e.margin=t.inverted?-3:3),t.scrollbar=c.scrollbar=new On(t.renderer,e,t),Dn(c.scrollbar,"changed",function(t){let e=c.size,n=e*this.to,r=e*this.from;c.hasDragged=c.scrollbar.hasDragged,c.render(0,0,r,n),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){c.onMouseUp(t)})})}c.addBaseSeriesEvents(),c.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,n=this.chart;this.opposite=Vn(t.opposite,!(e||!n.inverted))}getUnionExtremes(t){let e,n=this.chart.xAxis[0],r=this.chart.time,i=this.xAxis,s=i.options,a=n.options;return t&&null===n.dataMin||(e={dataMin:Vn(r.parse(s?.min),Zn("min",r.parse(a.min),n.dataMin,i.dataMin,i.min)),dataMax:Vn(r.parse(s?.max),Zn("max",r.parse(a.max),n.dataMax,i.dataMax,i.max))}),e}setBaseSeries(t,e){let n=this.chart,r=this.baseSeries=[];t=t||n.options&&n.options.navigator.baseSeries||(n.series.length?Wn(n.series,t=>!t.options.isInternal).index:0),(n.series||[]).forEach((e,n)=>{!e.options.isInternal&&(e.options.showInNavigator||(n===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&r.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)}updateNavigatorSeries(t,e){let n,r,i,s=this,a=s.chart,o=s.baseSeries,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=s.series=(s.series||[]).filter(t=>{let e=t.baseSeries;return!(0>o.indexOf(e)&&(e&&(Kn(e,"updatedData",s.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))}),u=s.navigatorOptions.series;o&&o.length&&o.forEach(t=>{let h=t.navigatorSeries,d=qn({color:t.color,visible:t.visible},Xn(u)?_n.navigator.series:u);if(h&&!1===s.navigatorOptions.adaptToUpdatedData)return;l.name="Navigator "+o.length,i=(n=t.options||{}).navigatorOptions||{},d.dataLabels=$n(d.dataLabels),(r=Gn(n,l,d,i)).pointRange=Vn(d.pointRange,i.pointRange,_n.plotOptions[r.type||"line"].pointRange);let p=i.data||d.data;s.hasNavigatorData=s.hasNavigatorData||!!p,r.data=p||n.data?.slice(0),h&&h.options?h.update(r,e):(t.navigatorSeries=a.initSeries(r),a.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}),(u.data&&!(o&&o.length)||Xn(u))&&(s.hasNavigatorData=!1,(u=$n(u)).forEach((t,e)=>{l.name="Navigator "+(c.length+1),(r=Gn(_n.navigator.series,{color:a.series[e]&&!a.series[e].options.isInternal&&a.series[e].color||a.options.colors[e]||a.options.colors[0]},l,t)).data=t.data,r.data&&(s.hasNavigatorData=!0,c.push(a.initSeries(r)))})),t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(Dn(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(n=>{n.eventsToUnbind.push(Dn(n,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),n.eventsToUnbind.push(Dn(n,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&n.xAxis&&n.eventsToUnbind.push(Dn(n,"updatedData",this.updatedDataHandler)),n.eventsToUnbind.push(Dn(n,"remove",function(){e&&Hn(e,n),this.navigatorSeries&&t.series&&(Hn(t.series,this.navigatorSeries),Fn(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.getColumn("x")[0]??t)},t)}modifyNavigatorAxisExtremes(){let t=this.xAxis;if(void 0!==t.getExtremes){let e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}}modifyBaseAxisExtremes(){let t,e,n=this.chart.navigator,r=this.getExtremes(),i=r.min,s=r.max,a=r.dataMin,o=r.dataMax,l=s-i,c=n.stickToMin,u=n.stickToMax,h=Vn(this.ordinal?.convertOverscroll(this.options.overscroll),0),d=n.series&&n.series[0],p=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(c&&(t=(e=a)+l),u&&(t=o+h,c||(e=Math.max(a,t-l,n.getBaseSeriesMin(d&&d.xData?d.xData[0]:-Number.MAX_VALUE)))),p&&(c||u)&&Yn(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),n.stickToMin=n.stickToMax=null}updatedDataHandler(){let t=this.chart.navigator,e=this.navigatorSeries,n=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=Vn(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,n),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,null,!1))}shouldStickToMin(t,e){let n=e.getBaseSeriesMin(t.getColumn("x")[0]),r=t.xAxis,i=r.max,s=r.min,a=r.options.range;return!(!Yn(i)||!Yn(s))&&(a&&i-n>0?i-n<a:s<=n)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(Dn(this.chart,"redraw",function(){let t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),Dn(this.chart,"getMargins",function(){let t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.height+t.scrollbarHeight:0)+t.navigatorOptions.margin}),Dn(Jn,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(Hn(this.chart.xAxis,this.xAxis),Hn(this.chart.axes,this.xAxis)),this.yAxis&&(Hn(this.chart.yAxis,this.yAxis),Hn(this.chart.axes,this.yAxis)),(this.series||[]).forEach(t=>{t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(t=>{this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),[this.handles].forEach(t=>{zn(t)}),this.navigatorEnabled=!1}}let{animObject:Qn}=w(),{format:tr}=O(),{clamp:er,pick:nr,syncTimeout:rr}=w(),{getFakeMouseEvent:ir}=T,{getAxisRangeDescription:sr,fireEventOnWrappedOrUnwrappedElement:ar}=q,or=class extends ${init(){let t=this.chart,e=this;this.announcer=new pt(t,"polite"),this.addEvent(Jn,"afterRender",function(){this.chart===e.chart&&this.chart.renderer&&rr(()=>{e.proxyProvider.updateGroupProxyElementPositions("navigator"),e.updateHandleValues()},Qn(nr(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){let t=this.chart,e=t.options,n=e.navigator;if(n.enabled&&n.accessibility?.enabled){let n=e.accessibility.landmarkVerbosity,r=e.lang.accessibility?.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:"all"===n?"region":"group","aria-label":tr(r,{chart:t},t)});let i=e.lang.accessibility?.navigator.handleLabel;[0,1].forEach(e=>{let n=this.getHandleByIx(e);if(n){let r=this.proxyProvider.addProxyElement("navigator",{click:n},"input",{type:"range","aria-label":tr(i,{handleIx:e,chart:t},t)});this[e?"maxHandleProxy":"minHandleProxy"]=r.innerElement,r.innerElement.style.pointerEvents="none",r.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(t){let e=this,n=this.chart,r=t?this.maxHandleProxy:this.minHandleProxy,i=this.keyCodes;return new J(n,{keyCodeMap:[[[i.left,i.right,i.up,i.down],function(s){if(r){let a=s===i.left||s===i.up?-1:1;r.value=""+er(parseFloat(r.value)+a,0,100),e.updateNavigator(()=>{let i=e.getHandleByIx(t);i&&n.setFocusToElement(i,r)})}return this.response.success}]],init:()=>{n.setFocusToElement(this.getHandleByIx(t),r)},validate:()=>!!(this.getHandleByIx(t)&&r&&n.options.navigator.accessibility?.enabled)})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let t=this.chart.navigator;if(t&&this.minHandleProxy&&this.maxHandleProxy){let e=t.size;this.minHandleProxy.value=""+Math.round(t.zoomedMin/e*100),this.maxHandleProxy.value=""+Math.round(t.zoomedMax/e*100)}}getHandleByIx(t){let e=this.chart.navigator;return e&&e.handles&&e.handles[t]}updateNavigator(t){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((t=>{let e=this.chart,{navigator:n,pointer:r}=e;if(n&&r&&this.minHandleProxy&&this.maxHandleProxy){let i=r.getChartPosition(),s=parseFloat(this.minHandleProxy.value)/100*n.size,a=parseFloat(this.maxHandleProxy.value)/100*n.size;[[0,"mousedown",n.zoomedMin],[0,"mousemove",s],[0,"mouseup",s],[1,"mousedown",n.zoomedMax],[1,"mousemove",a],[1,"mouseup",a]].forEach(([t,e,r])=>{let s=this.getHandleByIx(t)?.element;s&&ar(s,ir(e,{x:i.left+n.left+r,y:i.top+n.top},s))}),t&&t();let o=e.options.lang.accessibility?.navigator.changeAnnouncement,l=sr(e.xAxis[0]);this.announcer.announce(tr(o,{axisRangeDescription:l,chart:e},e))}}).bind(this,t),20)}},{getPointAnnotationTexts:lr}=xt,{getAxisDescription:cr,getSeriesFirstPointElement:ur,getSeriesA11yElement:hr,unhideChartElementFromAT:dr}=q,{format:pr,numberFormat:fr}=O(),{reverseChildNodes:gr,stripHTMLTagsFromString:mr}=T,{find:br,isNumber:yr,isString:vr,pick:xr,defined:wr}=w();function kr(t){let e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==e&&t.points&&t.points.length>=+e)}function Ar(t,e){let n=t.series,r=n.chart,i=r.options.accessibility.point||{},s=n.options.accessibility&&n.options.accessibility.point||{},a=n.tooltipOptions||{},o=r.options.lang;return yr(e)?fr(e,s.valueDecimals||i.valueDecimals||a.valueDecimals||-1,o.decimalPoint,o.accessibility.thousandsSep||o.thousandsSep):e}function Sr(t,e){let n=t[e];return t.chart.langFormat("accessibility.series."+e+"Description",{name:cr(n),series:t})}function Cr(t){let e=t.series,n=e.chart.series.length>1||e.options.name,r=function(t){let e=t.series,n=e.chart,r=e.options.accessibility,i=r&&r.point&&r.point.valueDescriptionFormat||n.options.accessibility.point.valueDescriptionFormat,s=xr(e.xAxis&&e.xAxis.options.accessibility&&e.xAxis.options.accessibility.enabled,!n.angular&&"flowmap"!==e.type),a=s?function(t){let e=function(t){let e=t.series,n=e.chart,r=e.options.accessibility&&e.options.accessibility.point||{},i=n.options.accessibility.point||{},s=e.xAxis&&e.xAxis.dateTime;if(s){let e=s.getXDateFormat(t.x||0,n.options.tooltip.dateTimeLabelFormats),a=r.dateFormatter&&r.dateFormatter(t)||i.dateFormatter&&i.dateFormatter(t)||r.dateFormat||i.dateFormat||e;return n.time.dateFormat(a,t.x||0,void 0)}}(t),n=(t.series.xAxis||{}).categories&&wr(t.category)&&(""+t.category).replace("<br/>"," "),r=wr(t.id)&&0>(""+t.id).indexOf("highcharts-"),i="x, "+t.x;return t.name||e||n||(r?t.id:i)}(t):"";return pr(i,{point:t,index:wr(t.index)?t.index+1:"",xDescription:a,value:function(t){let e=t.series,n=e.chart.options.accessibility.point||{},r=e.chart.options.accessibility&&e.chart.options.accessibility.point||{},i=e.tooltipOptions||{},s=r.valuePrefix||n.valuePrefix||i.valuePrefix||"",a=r.valueSuffix||n.valueSuffix||i.valueSuffix||"",o=Ar(t,t[void 0!==t.value?"value":"y"]);return t.isNull?e.chart.langFormat("accessibility.series.nullPointValue",{point:t}):e.pointArrayMap?function(t,e,n){let r=e||"",i=n||"",s=function(e){let n=Ar(t,xr(t[e],t.options[e]));return void 0!==n?e+": "+r+n+i:n};return t.series.pointArrayMap.reduce(function(t,e){let n=s(e);return n?t+(t.length?", ":"")+n:t},"")}(t,s,a):s+o+a}(t),separator:s?", ":""},n)}(t),i=t.options&&t.options.accessibility&&t.options.accessibility.description,s=n?" "+e.name+".":"",a=function(t){let e=t.series.chart,n=lr(t);return n.length?e.langFormat("accessibility.series.pointAnnotationsDescription",{point:t,annotations:n}):""}(t);return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=r,r+(i?" "+i:"")+s+(a?" "+a:"")}function Er(t){let e=t.chart,n=e.types||[],r=function(t){let e=(t.options.accessibility||{}).description;return e&&t.chart.langFormat("accessibility.series.description",{description:e,series:t})||""}(t),i=function(n){return e[n]&&e[n].length>1&&t[n]},s=t.index+1,a=Sr(t,"xAxis"),o=Sr(t,"yAxis"),l={seriesNumber:s,series:t,chart:e},c=n.length>1?"Combination":"",u=e.langFormat("accessibility.series.summary."+t.type+c,l)||e.langFormat("accessibility.series.summary.default"+c,l),h=(i("yAxis")?" "+o+".":"")+(i("xAxis")?" "+a+".":"");return pr(xr(t.options.accessibility&&t.options.accessibility.descriptionFormat,e.options.accessibility.series.descriptionFormat,""),{seriesDescription:u,authorDescription:r?" "+r:"",axisDescription:h,series:t,chart:e,seriesNumber:s},void 0)}let Mr={defaultPointDescriptionFormatter:Cr,defaultSeriesDescriptionFormatter:Er,describeSeries:function(t){let e=t.chart,n=ur(t),r=hr(t),i=e.is3d&&e.is3d();r&&(r.lastChild!==n||i||gr(r),function(t){let e=function(t){let e=t.options.accessibility||{};return!kr(t)&&!e.exposeAsGroupOnly}(t),n=function(t){let e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!t.points||!(t.points.length<+e.pointNavigationEnabledThreshold||!1===e.pointNavigationEnabledThreshold))}(t),r=t.chart.options.accessibility.point.describeNull;(e||n)&&t.points.forEach(n=>{let i=n.graphic&&n.graphic.element||function(t){let e=t.series,n=e&&e.chart,r=e&&e.is("sunburst"),i=t.isNull,s=n&&n.options.accessibility.point.describeNull;return i&&!r&&s}(n)&&function(t){let e=t.series,n=function(t){let e=t.index;return t.series&&t.series.data&&wr(e)&&br(t.series.data,function(t){return!!(t&&void 0!==t.index&&t.index>e&&t.graphic&&t.graphic.element)})||null}(t),r=n&&n.graphic,i=r?r.parentGroup:e.graph||e.group,s=function(t,e){let n=t.series.chart.renderer.rect(e.x,e.y,1,1);return n.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),n}(t,n?{x:xr(t.plotX,n.plotX,0),y:xr(t.plotY,n.plotY,0)}:{x:xr(t.plotX,0),y:xr(t.plotY,0)});if(i&&i.element)return t.graphic=s,t.hasMockGraphic=!0,s.add(i),i.element.insertBefore(s.element,r?r.element:null),s.element}(n),s=n.options&&n.options.accessibility&&!1===n.options.accessibility.enabled;if(i){if(n.isNull&&!r)return void i.setAttribute("aria-hidden",!0);i.setAttribute("tabindex","-1"),t.chart.styledMode||(i.style.outline="none"),e&&!s?function(t,e){let n=t.series,r=n.options.accessibility?.point||{},i=n.chart.options.accessibility.point||{},s=mr(vr(r.descriptionFormat)&&pr(r.descriptionFormat,t,n.chart)||r.descriptionFormatter?.(t)||vr(i.descriptionFormat)&&pr(i.descriptionFormat,t,n.chart)||i.descriptionFormatter?.(t)||Cr(t),n.chart.renderer.forExport);e.setAttribute("role","img"),e.setAttribute("aria-label",s)}(n,i):i.setAttribute("aria-hidden",!0)}})}(t),dr(e,r),function(t){let e=t.chart,n=e.options.chart,r=n.options3d&&n.options3d.enabled,i=e.series.length>1,s=e.options.accessibility.series.describeSingleSeries,a=(t.options.accessibility||{}).exposeAsGroupOnly;return!(r&&i)&&(i||s||a||kr(t))}(t)?function(t,e){let n=t.options.accessibility||{},r=t.chart.options.accessibility,i=r.landmarkVerbosity;n.exposeAsGroupOnly?e.setAttribute("role","img"):"all"===i?e.setAttribute("role","region"):e.setAttribute("role","group"),e.setAttribute("tabindex","-1"),t.chart.styledMode||(e.style.outline="none"),e.setAttribute("aria-label",mr(r.series.descriptionFormatter&&r.series.descriptionFormatter(t)||Er(t),t.chart.renderer.forExport))}(t,r):r.removeAttribute("aria-label"))}},{composed:Tr}=w(),{addEvent:Pr,defined:Or,pushUnique:Lr}=w(),{getChartTitle:jr}=q,{defaultPointDescriptionFormatter:_r,defaultSeriesDescriptionFormatter:Ir}=Mr;function Rr(t){return!!t.options.accessibility.announceNewData.enabled}class Dr{constructor(t){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=t}init(){let t=this.chart,e=t.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new G,this.announcer=new pt(t,e),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let t=this,e=this.chart,n=this.eventProvider;n.addEvent(e,"afterApplyDrilldown",function(){t.lastAnnouncementTime=0}),n.addEvent(e,"afterAddSeries",function(e){t.onSeriesAdded(e.series)}),n.addEvent(e,"redraw",function(){t.announceDirtyData()})}onSeriesAdded(t){Rr(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=Or(this.dirty.newSeries)?void 0:t)}announceDirtyData(){let t=this.chart,e=this;if(t.options.accessibility.announceNewData&&this.dirty.hasDirty){let t=this.dirty.newPoint;t&&(t=function(t){let e=t.series.data.filter(e=>t.x===e.x&&t.y===e.y);return 1===e.length?e[0]:t}(t)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(t=>e.dirty.allSeries[t]),this.dirty.newSeries,t),this.dirty={allSeries:{}}}}queueAnnouncement(t,e,n){let r=this.chart.options.accessibility.announceNewData;if(r.enabled){let i=+new Date,s=i-this.lastAnnouncementTime,a=Math.max(0,r.minAnnounceInterval-s),o=function(t,e){let n=(t||[]).concat(e||[]).reduce((t,e)=>(t[e.name+e.index]=e,t),{});return Object.keys(n).map(t=>n[t])}(this.queuedAnnouncement&&this.queuedAnnouncement.series,t),l=this.buildAnnouncementMessage(o,e,n);l&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:i,message:l,series:o},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},a))}}buildAnnouncementMessage(t,e,n){let r=this.chart,i=r.options.accessibility.announceNewData;if(i.announcementFormatter){let r=i.announcementFormatter(t,e,n);if(!1!==r)return r.length?r:null}let s=w().charts&&w().charts.length>1?"Multiple":"Single",a=e?"newSeriesAnnounce"+s:n?"newPointAnnounce"+s:"newDataAnnounce",o=jr(r);return r.langFormat("accessibility.announceNewData."+a,{chartTitle:o,seriesDesc:e?Ir(e):null,pointDesc:n?_r(n):null,point:n,series:e})}}!function(t){function e(t){let e=this.chart,n=e.accessibility?.components.series.newDataAnnouncer;n&&n.chart===e&&Rr(e)&&(n.dirty.newPoint=Or(n.dirty.newPoint)?void 0:t.point)}function n(){let t=this.chart,e=t.accessibility?.components.series.newDataAnnouncer;e&&e.chart===t&&Rr(t)&&(e.dirty.hasDirty=!0,e.dirty.allSeries[this.name+this.index]=this)}t.compose=function(t){Lr(Tr,"A11y.NDA")&&(Pr(t,"addPoint",e),Pr(t,"updatedData",n))}}(Dr||(Dr={}));let Nr=Dr,{doc:Br}=w(),{attr:Fr,css:zr,merge:Hr}=w(),{fireEventOnWrappedOrUnwrappedElement:qr}=q,{cloneMouseEvent:Wr,cloneTouchEvent:Ur,getFakeMouseEvent:Xr,removeElement:Yr}=T,Gr=class{constructor(t,e,n="button",r,i){this.chart=t,this.target=e,this.eventProvider=new G;let s=this.innerElement=Br.createElement(n),a=this.element=r?Br.createElement(r):s;t.styledMode||this.hideElementVisually(s),r&&("li"!==r||t.styledMode||(a.style.listStyle="none"),a.appendChild(s),this.element=a),this.updateTarget(e,i)}click(){let t=this.getTargetPosition();t.x+=t.width/2,t.y+=t.height/2;let e=Xr("click",t);qr(this.target.click,e)}updateTarget(t,e){this.target=t,this.updateCSSClassName();let n=e||{};Object.keys(n).forEach(t=>{null===n[t]&&delete n[t]});let r=this.getTargetAttr(t.click,"aria-label");Fr(this.innerElement,Hr(r?{"aria-label":r}:{},n)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,t.click),this.refreshPosition()}refreshPosition(){let t=this.getTargetPosition();zr(this.innerElement,{width:(t.width||1)+"px",height:(t.height||1)+"px",left:(Math.round(t.x)||0)+"px",top:(Math.round(t.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),Yr(this.element)}updateCSSClassName(){let t=t=>t.indexOf("highcharts-no-tooltip")>-1,e=this.chart.legend,n=e.group&&e.group.div,r=t(n&&n.className||""),i=t(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=r||i?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(t,e){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(n=>{let r=0===n.indexOf("touch");this.eventProvider.addEvent(t,n,t=>{let n=r?Ur(t):Wr(t);e&&qr(e,n),t.stopPropagation(),r||t.preventDefault()},{passive:!1})})}hideElementVisually(t){zr(t,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let t=this.target.click,e=t.element?t.element:t,n=this.target.visual||e,r=this.chart.renderTo,i=this.chart.pointer;if(r&&n?.getBoundingClientRect&&i){let t=n.getBoundingClientRect(),e=i.getChartPosition();return{x:(t.left-e.left)/e.scaleX,y:(t.top-e.top)/e.scaleY,width:t.right/e.scaleX-t.left/e.scaleX,height:t.bottom/e.scaleY-t.top/e.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(t,e){return t.element?t.element.getAttribute(e):t.getAttribute(e)}},{doc:Vr}=w(),{attr:Kr,css:$r}=w(),{unhideChartElementFromAT:Zr}=q,{removeChildNodes:Jr}=T,Qr=class{constructor(t){this.chart=t,this.domElementProvider=new X,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(t,e,n="button",r){let i=this.groups[t];if(!i)throw Error("ProxyProvider.addProxyElement: Invalid group key "+t);let s="ul"===i.type||"ol"===i.type?"li":void 0,a=new Gr(this.chart,e,n,s,r);return i.proxyContainerElement.appendChild(a.element),i.proxyElements.push(a),a}addGroup(t,e="div",n){let r,i=this.groups[t];if(i)return i.groupElement;let s=this.domElementProvider.createElement(e);return n&&n.role&&"div"!==e?(r=this.domElementProvider.createElement("div")).appendChild(s):r=s,r.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+t.replace(/\W/g,"-"),this.groups[t]={proxyContainerElement:s,groupElement:r,type:e,proxyElements:[]},Kr(r,n||{}),"ul"===e&&s.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(r),this.updateGroupOrder(this.groupOrder),r}updateGroupAttrs(t,e){let n=this.groups[t];if(!n)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+t);Kr(n.groupElement,e)}updateGroupOrder(t){if(this.groupOrder=t.slice(),this.isDOMOrderGroupOrder())return;let e=t.indexOf("series"),n=e>-1?t.slice(0,e):t,r=e>-1?t.slice(e+1):[],i=Vr.activeElement;["before","after"].forEach(t=>{let e=this["before"===t?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];Jr(e),("before"===t?n:r).forEach(t=>{let n=this.groups[t];n&&e.appendChild(n.groupElement)})}),(this.beforeChartProxyPosContainer.contains(i)||this.afterChartProxyPosContainer.contains(i))&&i&&i.focus&&i.focus()}clearGroup(t){let e=this.groups[t];if(!e)throw Error("ProxyProvider.clearGroup: Invalid group key "+t);Jr(e.proxyContainerElement)}removeGroup(t){let e=this.groups[t];e&&(this.domElementProvider.removeElement(e.groupElement),e.groupElement!==e.proxyContainerElement&&this.domElementProvider.removeElement(e.proxyContainerElement),delete this.groups[t])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(t){let e=this.groups[t];e&&e.proxyElements.forEach(t=>t.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(t){let e=this.domElementProvider.createElement("div");return e.setAttribute("aria-hidden","false"),e.className="highcharts-a11y-proxy-container"+(t?"-"+t:""),$r(e,{top:"0",left:"0"}),this.chart.styledMode||(e.style.whiteSpace="nowrap",e.style.position="absolute"),e}getCurrentGroupOrderInDOM(){let t=t=>{let e=Object.keys(this.groups),n=e.length;for(;n--;){let r=e[n],i=this.groups[r];if(i&&t===i.groupElement)return r}},e=e=>{let n=[],r=e.children;for(let e=0;e<r.length;++e){let i=t(r[e]);i&&n.push(i)}return n},n=e(this.beforeChartProxyPosContainer),r=e(this.afterChartProxyPosContainer);return n.push("series"),n.concat(r)}isDOMOrderGroupOrder(){let t=this.getCurrentGroupOrderInDOM(),e=this.groupOrder.filter(t=>"series"===t||!!this.groups[t]),n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0}updatePosContainerPositions(){let t=this.chart;if(t.renderer.forExport)return;let e=t.renderer.box;t.container.insertBefore(this.afterChartProxyPosContainer,e.nextSibling),t.container.insertBefore(this.beforeChartProxyPosContainer,e),Zr(this.chart,this.afterChartProxyPosContainer),Zr(this.chart,this.beforeChartProxyPosContainer)}},{unhideChartElementFromAT:ti,getAxisRangeDescription:ei}=q,{addEvent:ni,attr:ri}=w();class ii extends ${init(){let t=this.chart;this.announcer=new pt(t,"polite")}onChartUpdate(){let t=this.chart,e=this,n=t.rangeSelector;n&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),n.buttons&&n.buttons.length&&n.buttons.forEach(t=>{e.setRangeButtonAttrs(t)}),n.maxInput&&n.minInput&&["minInput","maxInput"].forEach(function(r,i){let s=n[r];s&&(ti(t,s),e.setRangeInputAttrs(s,"accessibility.rangeSelector."+(i?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let t=this.chart,e=t.rangeSelector,n=e&&e.dropdown,r=e&&e.buttons||[],i=t=>t.setAttribute("aria-hidden",!0);e&&e.hasVisibleDropdown&&n?(ti(t,n),r.forEach(t=>i(t.element))):(n&&i(n),r.forEach(e=>ti(t,e.element)))}setDropdownAttrs(){let t=this.chart,e=t.rangeSelector&&t.rangeSelector.dropdown;if(e){let n=t.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:t.options.lang.rangeSelectorZoom});e.setAttribute("aria-label",n),e.setAttribute("tabindex",-1)}}setRangeButtonAttrs(t){ri(t.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(t,e){let n=this.chart;ri(t,{tabindex:-1,"aria-label":n.langFormat(e,{chart:n})})}onButtonNavKbdArrowKey(t,e){let n=t.response,r=this.keyCodes,i=this.chart,s=i.options.accessibility.keyboardNavigation.wrapAround,a=e===r.left||e===r.up?-1:1;return i.highlightRangeSelectorButton(i.highlightedRangeSelectorItemIx+a)?n.success:s?(t.init(a),n.success):n[a>0?"next":"prev"]}onButtonNavKbdClick(t){let e=t.response,n=this.chart;return 3!==n.oldRangeSelectorItemState&&this.fakeClickEvent(n.rangeSelector.buttons[n.highlightedRangeSelectorItemIx].element),e.success}onAfterBtnClick(){let t=this.chart,e=ei(t.xAxis[0]),n=t.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:t,axisRangeDescription:e});n&&this.announcer.announce(n)}onInputKbdMove(t){let e=this.chart,n=e.rangeSelector,r=e.highlightedInputRangeIx=(e.highlightedInputRangeIx||0)+t;if(r>1||r<0){if(e.accessibility)return e.accessibility.keyboardNavigation.exiting=!0,e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation.move(t)}else if(n){let t=n[r?"maxDateBox":"minDateBox"],i=n[r?"maxInput":"minInput"];t&&i&&e.setFocusToElement(t,i)}return!0}onInputNavInit(t){let e=this,n=this.chart,r=t>0?0:1,i=n.rangeSelector,s=i&&i[r?"maxDateBox":"minDateBox"],a=i&&i.minInput,o=i&&i.maxInput;if(n.highlightedInputRangeIx=r,s&&a&&o){n.setFocusToElement(s,r?o:a),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let t=t=>{(t.which||t.keyCode)===this.keyCodes.tab&&e.onInputKbdMove(t.shiftKey?-1:1)&&(t.preventDefault(),t.stopPropagation())},i=ni(a,"keydown",t),l=ni(o,"keydown",t);this.removeInputKeydownHandler=()=>{i(),l()}}}onInputNavTerminate(){let t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let t=this.chart,e=t.rangeSelector,n=e&&e.dropdown;e&&n&&(t.setFocusToElement(e.buttonGroup,n),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=ni(n,"keydown",e=>{let n=(e.which||e.keyCode)===this.keyCodes.tab,r=t.accessibility;n&&(e.preventDefault(),e.stopPropagation(),r&&r.keyboardNavigation.move(e.shiftKey?-1:1))}))}getRangeSelectorButtonNavigation(){let t=this.chart,e=this.keyCodes,n=this;return new J(t,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(t){return n.onButtonNavKbdArrowKey(this,t)}],[[e.enter,e.space],function(){return n.onButtonNavKbdClick(this)}]],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.buttons&&t.rangeSelector.buttons.length)},init:function(e){let r=t.rangeSelector;if(r&&r.hasVisibleDropdown)n.initDropdownNav();else if(r){let n=r.buttons.length-1;t.highlightRangeSelectorButton(e>0?0:n)}},terminate:function(){n.removeDropdownKeydownHandler&&(n.removeDropdownKeydownHandler(),delete n.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let t=this.chart,e=this;return new J(t,{keyCodeMap:[],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"!==t.rangeSelector.inputGroup.element.style.visibility&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput)},init:function(t){e.onInputNavInit(t)},terminate:function(){e.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}!function(t){function e(t){let e=this.rangeSelector&&this.rangeSelector.buttons||[],n=this.highlightedRangeSelectorItemIx,r=this.rangeSelector&&this.rangeSelector.selected;return void 0!==n&&e[n]&&n!==r&&e[n].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=t,!!e[t]&&(this.setFocusToElement(e[t].box,e[t].element),t!==r&&(this.oldRangeSelectorItemState=e[t].state,e[t].setState(1)),!0)}function n(){let t=this.chart.accessibility;if(t&&t.components.rangeSelector)return t.components.rangeSelector.onAfterBtnClick()}t.compose=function(t,r){let i=t.prototype;i.highlightRangeSelectorButton||(i.highlightRangeSelectorButton=e,ni(r,"afterBtnClick",n))}}(ii||(ii={}));let si=ii,{composed:ai}=w(),{addEvent:oi,merge:li,pushUnique:ci}=w();!function(t){function e(t){li(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function n(t){return t.marker.states&&t.marker.states.normal&&t.marker.states.normal.opacity}function r(t){return!!(t._hasPointMarkers&&t.points&&t.points.length)}function i(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),r(this)&&this.points.forEach(t=>{t.graphic&&(t.graphic[t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),t.graphic[!1===t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function s(t){this.resetA11yMarkerOptions=li(t.options.marker||{},this.userOptions.marker||{})}function a(){let t=this.options;!function(t){let e=t.chart.options.accessibility.enabled,n=!1!==(t.options.accessibility&&t.options.accessibility.enabled);return e&&n&&function(t){let e=t.chart.options.accessibility;return t.points.length<e.series.pointDescriptionEnabledThreshold||!1===e.series.pointDescriptionEnabledThreshold}(t)}(this)?this.a11yMarkersForced&&(delete this.a11yMarkersForced,function(t){let e=t.resetA11yMarkerOptions;if(e){let n=e.states&&e.states.normal&&e.states.normal.opacity;t.userOptions&&t.userOptions.marker&&(t.userOptions.marker.enabled=!0),t.update({marker:{enabled:e.enabled,states:{normal:{opacity:n}}}})}}(this),delete this.resetA11yMarkerOptions):(t.marker&&!1===t.marker.enabled&&(this.a11yMarkersForced=!0,e(this.options)),r(this)&&function(t){let r=t.points.length;for(;r--;){let i=t.points[r],s=i.options,a=i.hasForcedA11yMarker;if(delete i.hasForcedA11yMarker,s.marker){let t=a&&0===n(s);s.marker.enabled&&!t?(li(!0,s.marker,{states:{normal:{opacity:n(s)||1}}}),i.hasForcedA11yMarker=!1):!1===s.marker.enabled&&(e(s),i.hasForcedA11yMarker=!0)}}}(this))}function o(){this.boosted&&this.a11yMarkersForced&&(li(!0,this.options,{marker:{enabled:!1}}),delete this.a11yMarkersForced)}t.compose=function(t){ci(ai,"A11y.FM")&&(oi(t,"afterSetOptions",s),oi(t,"render",a),oi(t,"afterRender",i),oi(t,"renderCanvas",o))}}(g||(g={}));let ui=g;var hi=y(260),di=y.n(hi),pi=y(820),fi=y.n(pi);let{seriesTypes:gi}=Ue(),{doc:mi}=w(),{defined:bi,fireEvent:yi}=w(),{getPointFromXY:vi,getSeriesFromName:xi,scrollAxisToPoint:wi}=q;function ki(t){let e=t.index,n=t.series.points,r=n.length;if(n[e]===t)return e;for(;r--;)if(n[r]===t)return r}function Ai(t){let e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,n=t.options.accessibility||{},r=n.keyboardNavigation;return r&&!1===r.enabled||!1===n.enabled||!1===t.options.enableMouseTracking||!t.visible||e.pointNavigationEnabledThreshold&&+e.pointNavigationEnabledThreshold<=t.points.length}function Si(t){let e=t.series.chart.options.accessibility,n=t.options.accessibility&&!1===t.options.accessibility.enabled;return t.isNull&&e.keyboardNavigation.seriesNavigation.skipNullPoints||!1===t.visible||!1===t.isInside||n||Ai(t.series)}function Ci(t){let e=t.series||[],n=e.length;for(let t=0;t<n;++t)if(!Ai(e[t])){let n=function(t){let e=t.points||[],n=e.length;for(let t=0;t<n;++t)if(!Si(e[t]))return e[t];return null}(e[t]);if(n)return n}return null}function Ei(t){let e=t.series.length,n=!1;for(;e--&&(t.highlightedPoint=t.series[e].points[t.series[e].points.length-1],!(n=t.series[e].highlightNextValidPoint())););return n}function Mi(t){delete t.highlightedPoint;let e=Ci(t);return!!e&&e.highlight()}class Ti{constructor(t,e){this.keyCodes=e,this.chart=t}init(){let t=this,e=this.chart,n=this.eventProvider=new G;n.addEvent(fi(),"destroy",function(){return t.onSeriesDestroy(this)}),n.addEvent(e,"afterApplyDrilldown",function(){!function(t){let e=Ci(t);e&&e.highlight(!1)}(this)}),n.addEvent(e,"drilldown",function(e){let n=e.point,r=n.series;t.lastDrilledDownPoint={x:n.x,y:n.y,seriesName:r?r.name:""}}),n.addEvent(e,"drillupall",function(){setTimeout(function(){t.onDrillupAll()},10)}),n.addEvent(di(),"afterSetState",function(){let t=this.graphic&&this.graphic.element,n=mi.activeElement,r=n&&n.getAttribute("class"),i=r&&r.indexOf("highcharts-a11y-proxy-element")>-1;e.highlightedPoint===this&&n!==t&&!i&&t&&t.focus&&t.focus()})}onDrillupAll(){let t,e=this.lastDrilledDownPoint,n=this.chart,r=e&&xi(n,e.seriesName);e&&r&&bi(e.x)&&bi(e.y)&&(t=vi(r,e.x,e.y)),t=t||Ci(n),n.container&&n.container.focus(),t&&t.highlight&&t.highlight(!1)}getKeyboardNavigationHandler(){let t=this,e=this.keyCodes,n=this.chart,r=n.inverted;return new J(n,{keyCodeMap:[[r?[e.up,e.down]:[e.left,e.right],function(e){return t.onKbdSideways(this,e)}],[r?[e.left,e.right]:[e.up,e.down],function(e){return t.onKbdVertical(this,e)}],[[e.enter,e.space],function(t,e){let r=n.highlightedPoint;if(r){let{plotLeft:t,plotTop:n}=this.chart,{plotX:i=0,plotY:s=0}=r;e={...e,chartX:t+i,chartY:n+s,point:r,target:r.graphic?.element||e.target},yi(r.series,"click",e),r.firePointEvent("click",e)}return this.response.success}],[[e.home],function(){return Mi(n),this.response.success}],[[e.end],function(){return Ei(n),this.response.success}],[[e.pageDown,e.pageUp],function(t){return n.highlightAdjacentSeries(t===e.pageDown),this.response.success}]],init:function(){return t.onHandlerInit(this)},validate:function(){return!!Ci(n)},terminate:function(){return t.onHandlerTerminate()}})}onKbdSideways(t,e){let n=this.keyCodes,r=e===n.right||e===n.down;return this.attemptHighlightAdjacentPoint(t,r)}onHandlerInit(t){let e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():Mi(e),t.response.success}onKbdVertical(t,e){let n=this.chart,r=this.keyCodes,i=e===r.down||e===r.right,s=n.options.accessibility.keyboardNavigation.seriesNavigation;return s.mode&&"serialize"===s.mode?this.attemptHighlightAdjacentPoint(t,i):(n[n.highlightedPoint&&n.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](i),t.response.success)}onHandlerTerminate(){let t=this.chart,e=t.options.accessibility.keyboardNavigation;t.tooltip&&t.tooltip.hide(0);let n=t.highlightedPoint&&t.highlightedPoint.series;n&&n.onMouseOut&&n.onMouseOut(),t.highlightedPoint&&t.highlightedPoint.onMouseOut&&t.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete t.highlightedPoint}attemptHighlightAdjacentPoint(t,e){let n=this.chart,r=n.options.accessibility.keyboardNavigation.wrapAround;return n.highlightAdjacentPoint(e)||r&&(e?Mi(n):Ei(n))?t.response.success:t.response[e?"next":"prev"]}onSeriesDestroy(t){let e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}!function(t){function e(t){let e,n,r=this.series,i=this.highlightedPoint,s=i&&ki(i)||0,a=i&&i.series.points||[],o=this.series&&this.series[this.series.length-1],l=o&&o.points&&o.points[o.points.length-1];if(!r[0]||!r[0].points)return!1;if(i){if(e=r[i.series.index+(t?1:-1)],(n=a[s+(t?1:-1)])||!e||(n=e.points[t?0:e.points.length-1]),!n)return!1}else n=t?r[0].points[0]:l;return Si(n)?(Ai(e=n.series)?this.highlightedPoint=t?e.points[e.points.length-1]:e.points[0]:this.highlightedPoint=n,this.highlightAdjacentPoint(t)):n.highlight()}function n(t){let e,n=this.highlightedPoint,r=1/0;return!(!bi(n.plotX)||!bi(n.plotY))&&(this.series.forEach(i=>{Ai(i)||i.points.forEach(s=>{if(!bi(s.plotY)||!bi(s.plotX)||s===n)return;let a=s.plotY-n.plotY,o=Math.abs(s.plotX-n.plotX),l=Math.abs(a)*Math.abs(a)+o*o*4;i.yAxis&&i.yAxis.reversed&&(a*=-1),!(a<=0&&t||a>=0&&!t||l<5||Si(s))&&l<r&&(r=l,e=s)})}),!!e&&e.highlight())}function r(t){let e,n,r,i=this.highlightedPoint,s=this.series&&this.series[this.series.length-1],a=s&&s.points&&s.points[s.points.length-1];return this.highlightedPoint?!(!(e=this.series[i.series.index+(t?-1:1)])||!(n=function(t,e){let n,r,i,s=1/0,a=e.points.length,o=t=>!(bi(t.plotX)&&bi(t.plotY));if(!o(t)){for(;a--;)!o(n=e.points[a])&&(i=(t.plotX-n.plotX)*(t.plotX-n.plotX)*4+(t.plotY-n.plotY)*(t.plotY-n.plotY)*1)<s&&(s=i,r=a);return bi(r)?e.points[r]:void 0}}(i,e)))&&(Ai(e)?(n.highlight(),(r=this.highlightAdjacentSeries(t))?r:(i.highlight(),!1)):(n.highlight(),n.series.highlightNextValidPoint())):(e=t?this.series&&this.series[0]:s,!!(n=t?e&&e.points&&e.points[0]:a)&&n.highlight())}function i(t=!0){let e=this.series.chart,n=e.tooltip?.label?.element;!this.isNull&&t?this.onMouseOver():e.tooltip&&e.tooltip.hide(0),wi(this),this.graphic&&(e.setFocusToElement(this.graphic),!t&&e.focusElement&&e.focusElement.removeFocusBorder()),e.highlightedPoint=this;let r=n?.getBoundingClientRect().top;if(n&&r&&r<0){let t=window.scrollY;window.scrollTo({behavior:"smooth",top:t+r})}return this}function s(){let t=this.chart.highlightedPoint,e=(t&&t.series)===this?ki(t):0,n=this.points,r=n.length;if(n&&r){for(let t=e;t<r;++t)if(!Si(n[t]))return n[t].highlight();for(let t=e;t>=0;--t)if(!Si(n[t]))return n[t].highlight()}return!1}t.compose=function(t,a,o){let l=t.prototype,c=a.prototype,u=o.prototype;l.highlightAdjacentPoint||(l.highlightAdjacentPoint=e,l.highlightAdjacentPointVertical=n,l.highlightAdjacentSeries=r,c.highlight=i,u.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(t=>{gi[t]&&(gi[t].prototype.keyboardMoveVertical=!1)}),u.highlightNextValidPoint=s)}}(Ti||(Ti={}));let Pi=Ti,{hideSeriesFromAT:Oi}=q,{describeSeries:Li}=Mr,ji=class extends ${static compose(t,e,n){Nr.compose(n),ui.compose(n),Pi.compose(t,e,n)}init(){this.newDataAnnouncer=new Nr(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Pi(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let t=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(t){!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible&&0!==t.getPointsCollection().length?Li(t):Oi(t)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}},{unhideChartElementFromAT:_i}=q,{getFakeMouseEvent:Ii}=T,{attr:Ri,pick:Di}=w(),Ni=class extends ${constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let t=this,e=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(n=>{t.addEvent(e,n,function(){t.updateProxyOverlays()})})}onChartUpdate(){let t=this.chart,e=this;t.mapNavigation&&t.mapNavigation.navButtons.forEach((n,r)=>{_i(t,n.element),e.setMapNavButtonAttrs(n.element,"accessibility.zoom.mapZoom"+(r?"Out":"In"))})}setMapNavButtonAttrs(t,e){let n=this.chart;Ri(t,{tabindex:-1,role:"button","aria-label":n.langFormat(e,{chart:n})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let t=this.chart;if(this.proxyProvider.clearGroup("zoom"),t.resetZoomButton&&this.createZoomProxyButton(t.resetZoomButton,"resetZoomProxyButton",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&t.breadcrumbs&&t.breadcrumbs.list){let e=t.breadcrumbs.list[t.breadcrumbs.list.length-1];this.createZoomProxyButton(t.drillUpButton,"drillUpProxyButton",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.breadcrumbs.getButtonText(e)}))}}createZoomProxyButton(t,e,n){this[e]=this.proxyProvider.addProxyElement("zoom",{click:t},"button",{"aria-label":n,tabindex:-1})}getMapZoomNavigation(){let t=this.keyCodes,e=this.chart,n=this;return new J(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return n.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return n.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return n.onMapKbdClick(this)}]],validate:function(){return!!(e.mapView&&e.mapNavigation&&e.mapNavigation.navButtons.length)},init:function(t){return n.onMapNavInit(t)}})}onMapKbdArrow(t,e){let n=this.chart,r=this.keyCodes,i=n.container,s=e===r.up||e===r.down,a=e===r.left||e===r.up?1:-1,o=(s?n.plotHeight:n.plotWidth)/10*a,l=10*Math.random(),c={x:i.offsetLeft+n.plotLeft+n.plotWidth/2+l,y:i.offsetTop+n.plotTop+n.plotHeight/2+l},u=s?{x:c.x,y:c.y+o}:{x:c.x+o,y:c.y};return[Ii("mousedown",c),Ii("mousemove",u),Ii("mouseup",u)].forEach(t=>i.dispatchEvent(t)),t.response.success}onMapKbdTab(t,e){let n=this.chart,r=t.response,i=e.shiftKey,s=i&&!this.focusedMapNavButtonIx||!i&&this.focusedMapNavButtonIx;if(n.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),s)return n.mapView&&n.mapView.zoomBy(),r[i?"prev":"next"];this.focusedMapNavButtonIx+=i?-1:1;let a=n.mapNavigation.navButtons[this.focusedMapNavButtonIx];return n.setFocusToElement(a.box,a.element),a.setState(2),r.success}onMapKbdClick(t){let e=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(e),t.response.success}onMapNavInit(t){let e=this.chart,n=e.mapNavigation.navButtons[0],r=e.mapNavigation.navButtons[1],i=t>0?n:r;e.setFocusToElement(i.box,i.element),i.setState(2),this.focusedMapNavButtonIx=t>0?0:1}simpleButtonNavigation(t,e,n){let r=this.keyCodes,i=this,s=this.chart;return new J(s,{keyCodeMap:[[[r.tab,r.up,r.down,r.left,r.right],function(t,e){let n=t===r.tab&&e.shiftKey||t===r.left||t===r.up;return this.response[n?"prev":"next"]}],[[r.space,r.enter],function(){return Di(n(this,s),this.response.success)}]],validate:function(){return s[t]&&s[t].box&&i[e].innerElement},init:function(){s.setFocusToElement(s[t].box,i[e].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(t,e){e.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(t,e){return e.drillUp(),t.response.prev}),this.getMapZoomNavigation()]}},{doc:Bi,isMS:Fi,win:zi}=w(),Hi=function(){let t=/(Edg)/.test(zi.navigator.userAgent);if(zi.matchMedia&&t)return zi.matchMedia("(-ms-high-contrast: active)").matches;if(Fi&&zi.getComputedStyle){let t=Bi.createElement("div");t.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",Bi.body.appendChild(t);let e=(t.currentStyle||zi.getComputedStyle(t)).backgroundImage;return Bi.body.removeChild(t),"none"===e}return zi.matchMedia&&zi.matchMedia("(forced-colors: active)").matches},qi=function(t){t.highContrastModeActive=!0;let e=t.options.accessibility.highContrastTheme;t.update(e,!1);let n=e.colors?.length>1;t.series.forEach(function(t){let r=e.plotOptions[t.type]||{},i=n&&void 0!==t.colorIndex?e.colors[t.colorIndex]:r.color||"window",s={color:r.color||"windowText",colors:n?e.colors:[r.color||"windowText"],borderColor:r.borderColor||"window",fillColor:i};t.update(s,!1),t.points&&t.points.forEach(function(t){t.options&&t.options.color&&t.update({color:r.color||"windowText",borderColor:r.borderColor||"window"},!1)})}),t.redraw()},{error:Wi,pick:Ui}=w();function Xi(t,e,n){let r,i=t,s=0;for(;s<e.length-1;++s)i=i[r=e[s]]=Ui(i[r],{});i[e[e.length-1]]=n}function Yi(t,e,n,r){function i(t,e){return e.reduce(function(t,e){return t[e]},t)}let s=i(t.options,e),a=i(t.options,n);Object.keys(r).forEach(function(i){let o=s[i];void 0!==o&&(Xi(a,r[i],o),Wi(32,!1,t,{[e.join(".")+"."+i]:n.join(".")+"."+r[i].join(".")}))})}let{defaultOptions:Gi}=w(),{doc:Vi}=w(),{addEvent:Ki,extend:$i,fireEvent:Zi,merge:Ji}=w(),{removeElement:Qi}=T;class ts{constructor(t){this.init(t)}init(t){if(this.chart=t,!Vi.addEventListener)return this.zombie=!0,this.components={},void t.renderTo.setAttribute("aria-hidden",!0);(function(t){!function(t){let e=t.options.chart,n=t.options.accessibility||{};["description","typeDescription"].forEach(function(r){e[r]&&(n[r]=e[r],Wi(32,!1,t,{[`chart.${r}`]:`use accessibility.${r}`}))})}(t),function(t){t.axes.forEach(function(e){let n=e.options;n&&n.description&&(n.accessibility=n.accessibility||{},n.accessibility.description=n.description,Wi(32,!1,t,{"axis.description":"use axis.accessibility.description"}))})}(t),t.series&&function(t){let e={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};t.series.forEach(function(n){Object.keys(e).forEach(function(r){let i=n.options[r];"accessibility.pointDescriptionFormatter"===r&&(i=n.options.accessibility&&n.options.accessibility.pointDescriptionFormatter),void 0!==i&&(Xi(n.options,e[r],"skipKeyboardNavigation"===r?!i:i),Wi(32,!1,t,{[`series.${r}`]:"series."+e[r].join(".")}))})})}(t),Yi(t,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),Yi(t,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),Yi(t,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})})(t),this.proxyProvider=new Qr(this.chart),this.initComponents(),this.keyboardNavigation=new Qt(t,this.components)}initComponents(){let t=this.chart,e=this.proxyProvider,n=t.options.accessibility;this.components={container:new rt,infoRegions:new Nt,legend:new me,chartMenu:new Ut,rangeSelector:new si,series:new ji,zoom:new Ni,navigator:new or},n.customComponents&&$i(this.components,n.customComponents);let r=this.components;this.getComponentOrder().forEach(function(n){r[n].initBase(t,e),r[n].init()})}getComponentOrder(){return this.components?this.components.series?["series"].concat(Object.keys(this.components).filter(t=>"series"!==t)):Object.keys(this.components):[]}update(){let t=this.components,e=this.chart,n=e.options.accessibility;Zi(e,"beforeA11yUpdate"),e.types=this.getChartTypes();let r=n.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(r),this.getComponentOrder().forEach(function(n){t[n].onChartUpdate(),Zi(e,"afterA11yComponentUpdate",{name:n,component:t[n]})}),this.keyboardNavigation.update(r),!e.highContrastModeActive&&!1!==n.highContrastMode&&(Hi()||!0===n.highContrastMode)&&qi(e),Zi(e,"afterA11yUpdate",{accessibility:this})}destroy(){let t=this.chart||{},e=this.components;Object.keys(e).forEach(function(t){e[t].destroy(),e[t].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),t.announcerContainer&&Qi(t.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),t.renderTo&&t.renderTo.setAttribute("aria-hidden",!0),t.focusElement&&t.focusElement.removeFocusBorder()}getChartTypes(){let t={};return this.chart.series.forEach(function(e){t[e.type]=1}),Object.keys(t)}}!function(t){function e(){this.accessibility&&this.accessibility.destroy()}function n(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let t=this.accessibility;t&&!t.zombie&&(t.proxyProvider.updateProxyElementPositions(),t.getComponentOrder().forEach(function(e){t.components[e].onChartRender()}))}function r(t){let e=t.options.accessibility;e&&(e.customComponents&&(this.options.accessibility.customComponents=e.customComponents,delete e.customComponents),Ji(!0,this.options.accessibility,e),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function i(){let e=this.accessibility,n=this.options.accessibility,r=this.renderer.boxWrapper.element,i=this.title;if(n&&n.enabled)e&&!e.zombie?e.update():(this.accessibility=e=new t(this),e&&!e.zombie&&e.update(),"img"===r.getAttribute("role")&&r.removeAttribute("role"));else if(e)e.destroy&&e.destroy(),delete this.accessibility;else{this.renderTo.setAttribute("role","img"),this.renderTo.setAttribute("aria-hidden",!1),this.renderTo.setAttribute("aria-label",(i&&i.element.textContent||"").replace(/</g,"&lt;")),r.setAttribute("aria-hidden",!0);let t=document.getElementsByClassName("highcharts-description")[0];t&&(t.setAttribute("aria-hidden",!1),t.classList.remove("highcharts-linked-description"))}}function s(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}t.i18nFormat=I.i18nFormat,t.compose=function(t,a,o,l,c,u){Qt.compose(t),Nr.compose(l),me.compose(t,a),Ut.compose(t),ji.compose(t,o,l),I.compose(t),at.compose(t,c),u&&si.compose(t,u);let h=t.prototype;h.updateA11yEnabled||(h.updateA11yEnabled=i,Ki(t,"destroy",e),Ki(t,"render",n),Ki(t,"update",r),["addSeries","init"].forEach(e=>{Ki(t,e,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(e=>{Ki(t,e,function(){let t=this.accessibility;t&&!t.zombie&&t.update()})}),Ki(o,"update",s),["update","updatedData","remove"].forEach(t=>{Ki(l,t,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(ts||(ts={})),Ji(!0,Gi,{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}},{accessibility:{highContrastTheme:{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}},lang:{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}});let es=ts,ns=w();ns.i18nFormat=es.i18nFormat,ns.A11yChartUtilities=q,ns.A11yHTMLUtilities=T,ns.AccessibilityComponent=$,ns.KeyboardNavigationHandler=J,ns.SeriesAccessibilityDescriber=Mr,es.compose(ns.Chart,ns.Legend,ns.Point,ns.Series,ns.SVGElement,ns.RangeSelector);let rs=w();return v.default})(),"object"==typeof n&&"object"==typeof e?e.exports=i(r._Highcharts,r._Highcharts.Templating,r._Highcharts.AST,r._Highcharts.Legend,r._Highcharts.Axis,r._Highcharts.Color,r._Highcharts.SeriesRegistry,r._Highcharts.RendererRegistry,r._Highcharts.SVGRenderer,r._Highcharts.Point,r._Highcharts.Series):"function"==typeof define&&define.amd?define("highcharts/modules/accessibility",["highcharts/highcharts"],function(t){return i(t,t.Templating,t.AST,t.Legend,t.Axis,t.Color,t.SeriesRegistry,t.RendererRegistry,t.SVGRenderer,t.Point,t.Series)}):"object"==typeof n?n["highcharts/modules/accessibility"]=i(r._Highcharts,r._Highcharts.Templating,r._Highcharts.AST,r._Highcharts.Legend,r._Highcharts.Axis,r._Highcharts.Color,r._Highcharts.SeriesRegistry,r._Highcharts.RendererRegistry,r._Highcharts.SVGRenderer,r._Highcharts.Point,r._Highcharts.Series):r.Highcharts=i(r.Highcharts,r.Highcharts.Templating,r.Highcharts.AST,r.Highcharts.Legend,r.Highcharts.Axis,r.Highcharts.Color,r.Highcharts.SeriesRegistry,r.Highcharts.RendererRegistry,r.Highcharts.SVGRenderer,r.Highcharts.Point,r.Highcharts.Series)},{}],830:[function(t,e,n){var r,i;r="undefined"==typeof window?this:window,i=(t,e,n,r)=>(()=>{"use strict";var i,s,a,o,l={660:t=>{t.exports=r},512:t=>{t.exports=e},984:t=>{t.exports=n},944:e=>{e.exports=t}},c={};function u(t){var e=c[t];if(void 0!==e)return e.exports;var n=c[t]={exports:{}};return l[t](n,n.exports,u),n.exports}u.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},u.d=(t,e)=>{for(var n in e)u.o(e,n)&&!u.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var h={};u.d(h,{default:()=>Sn});var d=u(944),p=u.n(d);let{addEvent:f,erase:g,find:m,fireEvent:b,pick:y,wrap:v}=p();function x(t,e){let n=this.initAnnotation(t);return this.options.annotations.push(n.options),y(e,!0)&&(n.redraw(),n.graphic.attr({opacity:1})),n}function w(){let t=this;t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach((e,n)=>{if(!t.annotations.some(t=>t.options===e)){let r=t.initAnnotation(e);t.options.annotations[n]=r.options}}),t.drawAnnotations(),f(t,"redraw",t.drawAnnotations),f(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),f(t,"exportData",function(e){let n=t.annotations,r=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,i=!e.dataRows[1].xValues,s=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,a=e.dataRows[0].length,o=t.options.exporting&&t.options.exporting.csv&&t.options.exporting.csv.annotations&&t.options.exporting.csv.annotations.itemDelimiter,l=t.options.exporting&&t.options.exporting.csv&&t.options.exporting.csv.annotations&&t.options.exporting.csv.annotations.join;n.forEach(t=>{t.options.labelOptions&&t.options.labelOptions.includeInDataExport&&t.labels.forEach(t=>{if(t.options.text){let n=t.options.text;t.points.forEach(t=>{let r=t.x,i=t.series.xAxis?t.series.xAxis.index:-1,s=!1;if(-1===i){let t=e.dataRows[0].length,a=Array(t);for(let e=0;e<t;++e)a[e]="";a.push(n),a.xValues=[],a.xValues[i]=r,e.dataRows.push(a),s=!0}if(s||e.dataRows.forEach(t=>{!s&&t.xValues&&void 0!==i&&r===t.xValues[i]&&(l&&t.length>a?t[t.length-1]+=o+n:t.push(n),s=!0)}),!s){let t=e.dataRows[0].length,s=Array(t);for(let e=0;e<t;++e)s[e]="";s[0]=r,s.push(n),s.xValues=[],void 0!==i&&(s.xValues[i]=r),e.dataRows.push(s)}})}})});let c=0;e.dataRows.forEach(t=>{c=Math.max(c,t.length)});let u=c-e.dataRows[0].length;for(let t=0;t<u;t++){let n=function(t){let e;return r&&!1!==(e=r(t))?e:(e=s+" "+t,i?{columnTitle:e,topLevelColumnTitle:e}:e)}(t+1);i?(e.dataRows[0].push(n.topLevelColumnTitle),e.dataRows[1].push(n.columnTitle)):e.dataRows[0].push(n)}})}function k(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(t=>{t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function A(t){let e=this.annotations,n="annotations"===t.coll?t:m(e,function(e){return e.options.id===t});n&&(b(n,"remove"),g(this.options.annotations,n.options),g(e,n),n.destroy())}function S(){this.annotations=[],this.options.annotations||(this.options.annotations=[])}function C(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(i||(i={})).compose=function(t,e,n){let r=e.prototype;if(!r.addAnnotation){let i=n.prototype;f(e,"afterInit",S),r.addAnnotation=x,r.callbacks.push(w),r.collectionsWithInit.annotations=[x],r.collectionsWithUpdate.push("annotations"),r.drawAnnotations=k,r.removeAnnotation=A,r.initAnnotation=function(e){let n=new(t.types[e.type]||t)(this,e);return this.annotations.push(n),n},v(i,"onContainerMouseDown",C)}};let E=i,{defined:M}=p(),{doc:T,isTouchDevice:P}=p(),{addEvent:O,fireEvent:L,objectEach:j,pick:_,removeEvent:I}=p(),R=class{addEvents(){let t=this,e=function(e){O(e,P?"touchstart":"mousedown",e=>{t.onMouseDown(e)},{passive:!1})};if(e(this.graphic.element),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&e(t.graphic.text.element)}),j(t.options.events,(e,n)=>{let r=function(r){"click"===n&&t.cancelClick||e.call(t,t.chart.pointer?.normalize(r),t.target)};-1===(t.nonDOMEvents||[]).indexOf(n)?(O(t.graphic.element,n,r,{passive:!1}),t.graphic.div&&O(t.graphic.div,n,r,{passive:!1})):O(t,n,r,{passive:!1})}),t.options.draggable&&(O(t,"drag",t.onDrag),!t.graphic.renderer.styledMode)){let e={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[t.options.draggable]};t.graphic.css(e),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&t.graphic.text.css(e)})}t.isUpdating||L(t,"add")}destroy(){this.removeDocEvents(),I(this),this.hcEvents=null}mouseMoveToRadians(t,e,n){let r,i=t.prevChartY-n,s=t.prevChartX-e,a=t.chartY-n,o=t.chartX-e;return this.chart.inverted&&(r=s,s=i,i=r,r=o,o=a,a=r),Math.atan2(a,o)-Math.atan2(i,s)}mouseMoveToScale(t,e,n){let r=t.prevChartX-e,i=t.prevChartY-n,s=(t.chartX-e||1)/(r||1),a=(t.chartY-n||1)/(i||1);if(this.chart.inverted){let t=a;a=s,s=t}return{x:s,y:a}}mouseMoveToTranslation(t){let e,n=t.chartX-t.prevChartX,r=t.chartY-t.prevChartY;return this.chart.inverted&&(e=r,r=n,n=e),{x:n,y:r}}onDrag(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){let e=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(e.y=0),"y"===this.options.draggable&&(e.x=0),this.points.length?this.translate(e.x,e.y):(this.shapes.forEach(t=>t.translate(e.x,e.y)),this.labels.forEach(t=>t.translate(e.x,e.y))),this.redraw(!1)}}onMouseDown(t){if(t.preventDefault&&t.preventDefault(),2===t.button)return;let e=this,n=e.chart.pointer,r=t?.sourceCapabilities?.firesTouchEvents||!1,i=(t=n?.normalize(t)||t).chartX,s=t.chartY;e.cancelClick=!1,e.chart.hasDraggedAnnotation=!0,e.removeDrag=O(T,P||r?"touchmove":"mousemove",function(t){e.hasDragged=!0,(t=n?.normalize(t)||t).prevChartX=i,t.prevChartY=s,L(e,"drag",t),i=t.chartX,s=t.chartY},P||r?{passive:!1}:void 0),e.removeMouseUp=O(T,P||r?"touchend":"mouseup",function(){let t=_(e.target&&e.target.annotation,e.target);t&&(t.cancelClick=e.hasDragged),e.cancelClick=e.hasDragged,e.chart.hasDraggedAnnotation=!1,e.hasDragged&&L(_(t,e),"afterUpdate"),e.hasDragged=!1,e.onMouseUp()},P||r?{passive:!1}:void 0)}onMouseUp(){this.removeDocEvents()}removeDocEvents(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())}},{merge:D,pick:N}=p(),B=class extends R{constructor(t,e,n,r){super(),this.nonDOMEvents=["drag"],this.chart=t,this.target=e,this.options=n,this.index=N(n.index,r)}destroy(){super.destroy(),this.graphic&&(this.graphic=this.graphic.destroy()),this.chart=null,this.target=null,this.options=null}redraw(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target))}render(){let t=this.chart,e=this.options;this.graphic=t.renderer.symbol(e.symbol,0,0,e.width,e.height).add(t.controlPointsGroup).css(e.style),this.setVisibility(e.visible),this.addEvents()}setVisibility(t){this.graphic[t?"show":"hide"](),this.options.visible=t}update(t){let e=this.chart,n=this.target,r=this.index,i=D(!0,this.options,t);this.destroy(),this.constructor(e,n,i,r),this.render(e.controlPointsGroup),this.redraw()}};var F=u(512),z=u.n(F);let{series:{prototype:H}}=z(),{defined:q,fireEvent:W}=p();class U{static fromPoint(t){return new U(t.series.chart,null,{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis})}static pointToPixels(t,e){let n,r=t.series,i=r.chart,s=t.plotX||0,a=t.plotY||0;return i.inverted&&(t.mock?(s=t.plotY,a=t.plotX):(s=i.plotWidth-(t.plotY||0),a=i.plotHeight-(t.plotX||0))),r&&!e&&(s+=(n=r.getPlotBox()).translateX,a+=n.translateY),{x:s,y:a}}static pointToOptions(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}}constructor(t,e,n){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:H.getPlotBox},this.target=e||null,this.options=n,this.applyOptions(this.getOptions())}applyOptions(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()}getOptions(){return this.hasDynamicOptions()?this.options(this.target):this.options}hasDynamicOptions(){return"function"==typeof this.options}isInsidePlot(){let t=this.plotX,e=this.plotY,n=this.series.xAxis,r=this.series.yAxis,i={x:t,y:e,isInsidePlot:!0,options:{}};return n&&(i.isInsidePlot=q(t)&&t>=0&&t<=n.len),r&&(i.isInsidePlot=i.isInsidePlot&&q(e)&&e>=0&&e<=r.len),W(this.series.chart,"afterIsInsidePlot",i),i.isInsidePlot}refresh(){let t=this.series,e=t.xAxis,n=t.yAxis,r=this.getOptions();e?(this.x=r.x,this.plotX=e.toPixels(r.x,!0)):(this.x=void 0,this.plotX=r.x),n?(this.y=r.y,this.plotY=n.toPixels(r.y,!0)):(this.y=null,this.plotY=r.y),this.isInside=this.isInsidePlot()}refreshOptions(){let t=this.series,e=t.xAxis,n=t.yAxis;this.x=this.options.x=e?this.options.x=e.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=n?n.toValue(this.plotY,!0):this.plotY}rotate(t,e,n){if(!this.hasDynamicOptions()){let r=Math.cos(n),i=Math.sin(n),s=this.plotX-t,a=this.plotY-e;this.plotX=s*r-a*i+t,this.plotY=s*i+a*r+e,this.refreshOptions()}}scale(t,e,n,r){if(!this.hasDynamicOptions()){let i=this.plotX*n,s=this.plotY*r;this.plotX=(1-n)*t+i,this.plotY=(1-r)*e+s,this.refreshOptions()}}setAxis(t,e){let n=e+"Axis",r=t[n],i=this.series.chart;this.series[n]="object"==typeof r?r:q(r)?i[n][r]||i.get(r):null}toAnchor(){let t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t}translate(t,e,n,r){this.hasDynamicOptions()||(this.plotX+=n,this.plotY+=r,this.refreshOptions())}}!function(t){function e(){let t=this.controlPoints,e=this.options.controlPoints||[];e.forEach((n,r)=>{let i=p().merge(this.options.controlPointOptions,n);i.index||(i.index=r),e[r]=i,t.push(new B(this.chart,this,i))})}function n(t){let e=t.series.getPlotBox(),n=t.series.chart,r=t.mock?t.toAnchor():n.tooltip&&n.tooltip.getAnchor.call({chart:t.series.chart},t)||[0,0,0,0],i={x:r[0]+(this.options.x||0),y:r[1]+(this.options.y||0),height:r[2]||0,width:r[3]||0};return{relativePosition:i,absolutePosition:p().merge(i,{x:i.x+(t.mock?e.translateX:n.plotLeft),y:i.y+(t.mock?e.translateY:n.plotTop)})}}function r(){this.controlPoints.forEach(t=>t.destroy()),this.chart=null,this.controlPoints=null,this.points=null,this.options=null,this.annotation&&(this.annotation=null)}function i(){let t=this.options;return t.points||t.point&&p().splat(t.point)}function s(){let t,e,n=this.getPointsOptions(),r=this.points,i=n&&n.length||0;for(t=0;t<i;t++){if(!(e=this.point(n[t],r[t])))return void(r.length=0);e.mock&&e.refresh(),r[t]=e}return r}function a(t,e){if(t&&t.series)return t;if(!e||null===e.series)if(p().isObject(t))e=new U(this.chart,this,t);else if(p().isString(t))e=this.chart.get(t)||null;else if("function"==typeof t){let n=t.call(e,this);e=n.series?n:new U(this.chart,this,t)}return e}function o(t){this.controlPoints.forEach(e=>e.redraw(t))}function l(){this.controlPoints.forEach(t=>t.render())}function c(t,e,n,r,i){if(this.chart.inverted){let t=e;e=n,n=t}this.points.forEach((s,a)=>this.transformPoint(t,e,n,r,i,a),this)}function u(t,e,n,r,i,s){let a=this.points[s];a.mock||(a=this.points[s]=U.fromPoint(a)),a[t](e,n,r,i)}function h(t,e){this.transform("translate",null,null,t,e)}function d(t,e,n){this.transformPoint("translate",null,null,t,e,n)}t.compose=function(t){let f=t.prototype;f.addControlPoints||p().merge(!0,f,{addControlPoints:e,anchor:n,destroyControlTarget:r,getPointsOptions:i,linkPoints:s,point:a,redrawControlPoints:o,renderControlPoints:l,transform:c,transformPoint:u,translate:h,translatePoint:d})}}(s||(s={}));let X=s,{merge:Y}=p();class G{constructor(t,e,n,r){this.annotation=t,this.chart=t.chart,this.collection="label"===r?"labels":"shapes",this.controlPoints=[],this.options=e,this.points=[],this.index=n,this.itemType=r,this.init(t,e,n)}attr(...t){this.graphic.attr.apply(this.graphic,arguments)}attrsFromOptions(t){let e,n,r=this.constructor.attrsMap,i={},s=this.chart.styledMode;for(e in t)n=r[e],void 0===r[e]||s&&-1!==["fill","stroke","stroke-width"].indexOf(n)||(i[n]=t[e]);return i}destroy(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()}init(t,e,n){this.annotation=t,this.chart=t.chart,this.options=e,this.points=[],this.controlPoints=[],this.index=n,this.linkPoints(),this.addControlPoints()}redraw(t){this.redrawControlPoints(t)}render(t){this.options.className&&this.graphic&&this.graphic.addClass(this.options.className),this.renderControlPoints()}rotate(t,e,n){this.transform("rotate",t,e,n)}scale(t,e,n,r){this.transform("scale",t,e,n,r)}setControlPointsVisibility(t){this.controlPoints.forEach(e=>{e.setVisibility(t)})}shouldBeDrawn(){return!!this.points.length}translateShape(t,e,n){let r=this.annotation.chart,i=this.annotation.userOptions,s=r.annotations.indexOf(this.annotation),a=r.options.annotations[s];this.translatePoint(t,e,0),n&&this.translatePoint(t,e,1),a[this.collection][this.index].point=this.options.point,i[this.collection][this.index].point=this.options.point}update(t){let e=this.annotation,n=Y(!0,this.options,t),r=this.graphic.parentGroup,i=this.constructor;this.destroy(),Y(!0,this,new i(e,n,this.index,this.itemType)),this.render(r),this.redraw()}}X.compose(G);let V=G,{defaultMarkers:K}={defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}},{addEvent:$,defined:Z,extend:J,merge:Q,uniqueKey:tt}=p(),et=it("marker-end"),nt=it("marker-start"),rt="rgba(192,192,192,"+(p().svg?1e-4:.002)+")";function it(t){return function(e){this.attr(t,"url(#"+e+")")}}function st(){this.options.defs=Q(K,this.options.defs||{})}function at(t,e){let n={attributes:{id:t}},r={stroke:e.color||"none",fill:e.color||"rgba(0, 0, 0, 0.75)"};n.children=e.children&&e.children.map(function(t){return Q(r,t)});let i=Q(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},e,n),s=this.definition(i);return s.id=t,s}class ot extends V{static compose(t,e){let n=e.prototype;n.addMarker||($(t,"afterGetContainer",st),n.addMarker=at)}constructor(t,e,n){super(t,e,n,"shape"),this.type="path"}toD(){let t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;let e,n=this.points,r=n.length,i=[],s=r,a=n[0],o=s&&this.anchor(a).absolutePosition,l=0;if(o)for(i.push(["M",o.x,o.y]);++l<r&&s;)e=(a=n[l]).command||"L",o=this.anchor(a).absolutePosition,"M"===e||"L"===e?i.push([e,o.x,o.y]):"Z"===e&&i.push([e]),s=a.series.visible;return s&&this.graphic?this.chart.renderer.crispLine(i,this.graphic.strokeWidth()):null}shouldBeDrawn(){return super.shouldBeDrawn()||!!this.options.d}render(t){let e=this.options,n=this.attrsFromOptions(e);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(n).add(t),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(t),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:rt,fill:rt,"stroke-width":this.graphic.strokeWidth()+2*e.snap}),super.render(),J(this.graphic,{markerStartSetter:nt,markerEndSetter:et}),this.setMarkers(this)}redraw(t){if(this.graphic){let e=this.toD(),n=t?"animate":"attr";e?(this.graphic[n]({d:e}),this.tracker[n]({d:e})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!e}super.redraw(t)}setMarkers(t){let e=t.options,n=t.chart,r=n.options.defs,i=e.fill,s=Z(i)&&"none"!==i?i:e.stroke;["markerStart","markerEnd"].forEach(function(i){let a,o,l,c,u=e[i];if(u){for(l in r)if((u===((a=r[l]).attributes&&a.attributes.id)||u===a.id)&&"marker"===a.tagName){o=a;break}o&&(c=t[i]=n.renderer.addMarker((e.id||tt())+"-"+u,Q(o,{color:s})),t.attr(i,c.getAttribute("id")))}})}}ot.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};let{merge:lt}=p();class ct extends V{constructor(t,e,n){super(t,e,n,"shape"),this.type="rect",this.translate=super.translateShape}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(e).add(t),super.render()}redraw(t){if(this.graphic){let e=this.anchor(this.points[0]).absolutePosition;e?this.graphic[t?"animate":"attr"]({x:e.x,y:e.y,width:this.options.width,height:this.options.height}):this.attr({x:0,y:-9e9}),this.graphic.placed=!!e}super.redraw(t)}}ct.attrsMap=lt(ot.attrsMap,{width:"width",height:"height"});let{merge:ut}=p();class ht extends V{constructor(t,e,n){super(t,e,n,"shape"),this.type="circle",this.translate=super.translateShape}redraw(t){if(this.graphic){let e=this.anchor(this.points[0]).absolutePosition;e?this.graphic[t?"animate":"attr"]({x:e.x,y:e.y,r:this.options.r}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!e}super.redraw.call(this,t)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(e).add(t),super.render()}setRadius(t){this.options.r=t}}ht.attrsMap=ut(ot.attrsMap,{r:"r"});let{merge:dt,defined:pt}=p();class ft extends V{constructor(t,e,n){super(t,e,n,"shape"),this.type="ellipse"}init(t,e,n){pt(e.yAxis)&&e.points.forEach(t=>{t.yAxis=e.yAxis}),pt(e.xAxis)&&e.points.forEach(t=>{t.xAxis=e.xAxis}),super.init(t,e,n)}render(t){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(t),super.render()}translate(t,e){super.translateShape(t,e,!0)}getDistanceFromLine(t,e,n,r){return Math.abs((e.y-t.y)*n-(e.x-t.x)*r+e.x*t.y-e.y*t.x)/Math.sqrt((e.y-t.y)*(e.y-t.y)+(e.x-t.x)*(e.x-t.x))}getAttrs(t,e){let n=t.x,r=t.y,i=e.x,s=e.y,a=(n+i)/2,o=Math.sqrt((n-i)*(n-i)/4+(r-s)*(r-s)/4),l=180*Math.atan((s-r)/(i-n))/Math.PI;return a<n&&(l+=180),{cx:a,cy:(r+s)/2,rx:o,ry:this.getRY(),angle:l}}getRY(){let t=this.getYAxis();return pt(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry}getYAxis(){let t=this.options.yAxis;return this.chart.yAxis[t]}getAbsolutePosition(t){return this.anchor(t).absolutePosition}redraw(t){if(this.graphic){let e=this.getAbsolutePosition(this.points[0]),n=this.getAbsolutePosition(this.points[1]),r=this.getAttrs(e,n);e?this.graphic[t?"animate":"attr"]({cx:r.cx,cy:r.cy,rx:r.rx,ry:r.ry,rotation:r.angle,rotationOriginX:r.cx,rotationOriginY:r.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!e}super.redraw(t)}setYRadius(t){let e=this.annotation.userOptions.shapes;this.options.ry=t,e&&e[0]&&(e[0].ry=t,e[0].ry=t)}}ft.attrsMap=dt(ot.attrsMap,{ry:"ry"});var gt=u(984),mt=u.n(gt);let{format:bt}=mt(),{extend:yt,getAlignFactor:vt,isNumber:xt,pick:wt}=p();function kt(t,e,n,r,i){let s,a,o=i&&i.anchorX,l=i&&i.anchorY,c=n/2;return xt(o)&&xt(l)&&(s=[["M",o,l]],(a=e-l)<0&&(a=-r-a),a<n&&(c=o<t+n/2?a:n-a),l>e+r?s.push(["L",t+c,e+r]):l<e?s.push(["L",t+c,e]):o<t?s.push(["L",t,e+r/2]):o>t+n&&s.push(["L",t+n,e+r/2])),s||[]}class At extends V{static alignedPosition(t,e){return{x:Math.round((e.x||0)+(t.x||0)+(e.width-(t.width||0))*vt(t.align)),y:Math.round((e.y||0)+(t.y||0)+(e.height-(t.height||0))*vt(t.verticalAlign))}}static compose(t){t.prototype.symbols.connector=kt}static justifiedOptions(t,e,n,r){let i,s=n.align,a=n.verticalAlign,o=e.box?0:e.padding||0,l=e.getBBox(),c={align:s,verticalAlign:a,x:n.x,y:n.y,width:e.width,height:e.height},u=(r.x||0)-t.plotLeft,h=(r.y||0)-t.plotTop;return(i=u+o)<0&&("right"===s?c.align="left":c.x=(c.x||0)-i),(i=u+l.width-o)>t.plotWidth&&("left"===s?c.align="right":c.x=(c.x||0)+t.plotWidth-i),(i=h+o)<0&&("bottom"===a?c.verticalAlign="top":c.y=(c.y||0)-i),(i=h+l.height-o)>t.plotHeight&&("top"===a?c.verticalAlign="bottom":c.y=(c.y||0)+t.plotHeight-i),c}constructor(t,e,n){super(t,e,n,"label")}translatePoint(t,e){super.translatePoint(t,e,0)}translate(t,e){let n=this.annotation.chart,r=this.annotation.userOptions,i=n.annotations.indexOf(this.annotation),s=n.options.annotations[i];if(n.inverted){let n=t;t=e,e=n}this.options.x+=t,this.options.y+=e,s[this.collection][this.index].x=this.options.x,s[this.collection][this.index].y=this.options.y,r[this.collection][this.index].x=this.options.x,r[this.collection][this.index].y=this.options.y}render(t){let e=this.options,n=this.attrsFromOptions(e),r=e.style;this.graphic=this.annotation.chart.renderer.label("",0,-9999,e.shape,null,null,e.useHTML,null,"annotation-label").attr(n).add(t),this.annotation.chart.styledMode||("contrast"===r.color&&(r.color=this.annotation.chart.renderer.getContrast(At.shapesWithoutBackground.indexOf(e.shape)>-1?"#FFFFFF":e.backgroundColor)),this.graphic.css(e.style).shadow(e.shadow)),this.graphic.labelrank=e.labelrank,super.render()}redraw(t){let e=this.options,n=this.text||e.format||e.text,r=this.graphic,i=this.points[0];if(!r)return void this.redraw(t);r.attr({text:n?bt(String(n),i,this.annotation.chart):e.formatter.call(i,this)});let s=this.anchor(i),a=this.position(s);a?(r.alignAttr=a,a.anchorX=s.absolutePosition.x,a.anchorY=s.absolutePosition.y,r[t?"animate":"attr"](a)):r.attr({x:0,y:-9999}),r.placed=!!a,super.redraw(t)}anchor(t){let e=super.anchor.apply(this,arguments),n=this.options.x||0,r=this.options.y||0;return e.absolutePosition.x-=n,e.absolutePosition.y-=r,e.relativePosition.x-=n,e.relativePosition.y-=r,e}position(t){let e,n,r,i,s=this.graphic,a=this.annotation.chart,o=a.tooltip,l=this.points[0],c=this.options,u=t.absolutePosition,h=t.relativePosition,d=l.series.visible&&U.prototype.isInsidePlot.call(l);if(s&&d){let{width:t=0,height:p=0}=s;c.distance&&o?e=o.getPosition.call({chart:a,distance:wt(c.distance,16),getPlayingField:o.getPlayingField,pointer:o.pointer},t,p,{plotX:h.x,plotY:h.y,negative:l.negative,ttBelow:l.ttBelow,h:h.height||h.width}):c.positioner?e=c.positioner.call(this):(n={x:u.x,y:u.y,width:0,height:0},e=At.alignedPosition(yt(c,{width:t,height:p}),n),"justify"===this.options.overflow&&(e=At.alignedPosition(At.justifiedOptions(a,s,c,e),n))),c.crop&&(r=e.x-a.plotLeft,i=e.y-a.plotTop,d=a.isInsidePlot(r,i)&&a.isInsidePlot(r+t,i+p))}return d?e:null}}At.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},At.shapesWithoutBackground=["connector"];class St extends V{constructor(t,e,n){super(t,e,n,"shape"),this.type="image",this.translate=super.translateShape}render(t){let e=this.attrsFromOptions(this.options),n=this.options;this.graphic=this.annotation.chart.renderer.image(n.src,0,-9e9,n.width,n.height).attr(e).add(t),this.graphic.width=n.width,this.graphic.height=n.height,super.render()}redraw(t){if(this.graphic){let e=this.anchor(this.points[0]),n=At.prototype.position.call(this,e);n?this.graphic[t?"animate":"attr"]({x:n.x,y:n.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!n}super.redraw(t)}}St.attrsMap={width:"width",height:"height",zIndex:"zIndex"};var Ct=u(660),Et=u.n(Ct);let{addEvent:Mt,createElement:Tt}=p(),Pt=class{constructor(t,e){this.iconsURL=e,this.container=this.createPopupContainer(t),this.closeButton=this.addCloseButton()}createPopupContainer(t,e="highcharts-popup highcharts-no-tooltip"){return Tt("div",{className:e},void 0,t)}addCloseButton(t="highcharts-popup-close"){let e=this,n=this.iconsURL,r=Tt("button",{className:t},void 0,this.container);return r.style["background-image"]="url("+(n.match(/png|svg|jpeg|jpg|gif/gi)?n:n+"close.svg")+")",["click","touchstart"].forEach(t=>{Mt(r,t,e.closeButtonEvents.bind(e))}),Mt(document,"keydown",function(t){"Escape"===t.code&&e.closeButtonEvents()}),r}closeButtonEvents(){this.closePopup()}showPopup(t="highcharts-annotation-toolbar"){let e=this.container,n=this.closeButton;this.type=void 0,e.innerHTML=Et().emptyHTML,e.className.indexOf(t)>=0&&(e.classList.remove(t),e.removeAttribute("style")),e.appendChild(n),e.style.display="block",e.style.height=""}closePopup(){this.container.style.display="none"}},{doc:Ot,isFirefox:Lt}=p(),{createElement:jt,isArray:_t,isObject:It,objectEach:Rt,pick:Dt,stableSort:Nt}=p();function Bt(t,e,n,r,i,s){let a,o;if(!e)return;let l=this.addInput,c=this.lang;Rt(r,(r,s)=>{a=""!==n?n+"."+s:s,It(r)&&(!_t(r)||_t(r)&&It(r[0])?((o=c[s]||s).match(/\d/g)||i.push([!0,o,t]),Bt.call(this,t,e,a,r,i,!1)):i.push([this,a,"annotation",t,r]))}),s&&(Nt(i,t=>t[1].match(/format/g)?-1:1),Lt&&i.reverse(),i.forEach(t=>{!0===t[0]?jt("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(Ot.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},l.apply(t[0],t.splice(1)))}))}let{doc:Ft}=p(),{seriesTypes:zt}=z(),{addEvent:Ht,createElement:qt,defined:Wt,isArray:Ut,isObject:Xt,objectEach:Yt,stableSort:Gt}=p();!function(t){t[t["params.algorithm"]=0]="params.algorithm",t[t["params.average"]=1]="params.average"}(a||(a={}));let Vt={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function Kt(t){let e=qt("div",{className:"highcharts-popup-lhs-col"},void 0,t),n=qt("div",{className:"highcharts-popup-rhs-col"},void 0,t);return qt("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,n),{lhsCol:e,rhsCol:n}}function $t(t,e,n,r){let i=e.params||e.options.params;r.innerHTML=Et().emptyHTML,qt("h3",{className:"highcharts-indicator-title"},void 0,r).appendChild(Ft.createTextNode(ie(e,n).indicatorFullName)),qt("input",{type:"hidden",name:"highcharts-type-"+n,value:n},void 0,r),se.call(this,n,"series",t,r,e,e.linkedParent&&e.linkedParent.options.id),i.volumeSeriesID&&se.call(this,n,"volume",t,r,e,e.linkedParent&&i.volumeSeriesID),Jt.call(this,t,"params",i,n,r)}function Zt(t,e,n,r){function i(e,n){let r=f.parentNode.children[1];$t.call(s,t,e,n,f),r&&(r.style.display="block"),c&&e.options&&qt("input",{type:"hidden",name:"highcharts-id-"+n,value:e.options.id},void 0,f).setAttribute("highcharts-data-series-id",e.options.id)}let s=this,a=s.lang,o=e.querySelectorAll(".highcharts-popup-lhs-col")[0],l=e.querySelectorAll(".highcharts-popup-rhs-col")[0],c="edit"===n,u=c?t.series:t.options.plotOptions||{};if(!t&&u)return;let h,d=[];c||Ut(u)?Ut(u)&&(d=re.call(this,u)):d=ne.call(this,u,r),Gt(d,(t,e)=>{let n=t.indicatorFullName.toLowerCase(),r=e.indicatorFullName.toLowerCase();return n<r?-1:n>r?1:0}),o.children[1]&&o.children[1].remove();let p=qt("ul",{className:"highcharts-indicator-list"},void 0,o),f=l.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];if(d.forEach(t=>{let{indicatorFullName:e,indicatorType:n,series:r}=t;h=qt("li",{className:"highcharts-indicator-list"},void 0,p);let s=qt("button",{className:"highcharts-indicator-list-item",textContent:e},void 0,h);["click","touchstart"].forEach(t=>{Ht(s,t,function(){i(r,n)})})}),d.length>0){let{series:t,indicatorType:e}=d[0];i(t,e)}else c||(Et().setElementHTML(f.parentNode.children[0],a.noFilterMatch||""),f.parentNode.children[1].style.display="none")}function Jt(t,e,n,r,i){if(!t)return;let s=this.addInput;Yt(n,(n,o)=>{let l=e+"."+o;if(Wt(n)&&l)if(Xt(n)&&(s.call(this,l,r,i,{}),Jt.call(this,t,l,n,r,i)),l in a){let s=te.call(this,r,l,i);ee.call(this,t,e,s,r,o,n)}else"params.volumeSeriesID"===l||Ut(n)||s.call(this,l,r,i,{value:n,type:"number"})})}function Qt(t,e){let n=this,r=e.querySelectorAll(".highcharts-popup-lhs-col")[0],i=this.lang.clearFilter,s=qt("div",{className:"highcharts-input-wrapper"},void 0,r),a=function(e){Zt.call(n,t,n.container,"add",e)},o=this.addInput("searchIndicators","input",s,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),l=qt("a",{textContent:i},void 0,s);o.classList.add("highcharts-input-search-indicators"),l.classList.add("clear-filter-button"),Ht(o,"input",function(){a(this.value),this.value.length?l.style.display="inline-block":l.style.display="none"}),["click","touchstart"].forEach(t=>{Ht(l,t,function(){o.value="",a(""),l.style.display="none"})})}function te(t,e,n){let r=e.split("."),i=r[r.length-1],s="highcharts-"+e+"-type-"+t,a=this.lang;qt("label",{htmlFor:s},null,n).appendChild(Ft.createTextNode(a[i]||e));let o=qt("select",{name:s,className:"highcharts-popup-field",id:"highcharts-select-"+e},null,n);return o.setAttribute("id","highcharts-select-"+e),o}function ee(t,e,n,r,i,s,a){"series"===e||"volume"===e?t.series.forEach(t=>{let r=t.options,i=r.name||r.params?t.name:r.id||"";"highcharts-navigator-series"!==r.id&&r.id!==(a&&a.options&&a.options.id)&&(Wt(s)||"volume"!==e||"column"!==t.type||(s=r.id),qt("option",{value:r.id},void 0,n).appendChild(Ft.createTextNode(i)))}):r&&i&&Vt[i+"-"+r].forEach(t=>{qt("option",{value:t},void 0,n).appendChild(Ft.createTextNode(t))}),Wt(s)&&(n.value=s)}function ne(t,e){let n,r=this.chart&&this.chart.options.lang,i=r&&r.navigation&&r.navigation.popup&&r.navigation.popup.indicatorAliases,s=[];return Yt(t,(t,r)=>{let a=t&&t.options;if(t.params||a&&a.params){let{indicatorFullName:a,indicatorType:o}=ie(t,r);if(e){let r=RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),l=i&&i[o]&&i[o].join(" ")||"";(a.match(r)||l.match(r))&&(n={indicatorFullName:a,indicatorType:o,series:t},s.push(n))}else n={indicatorFullName:a,indicatorType:o,series:t},s.push(n)}}),s}function re(t){let e=[];return t.forEach(t=>{t.is("sma")&&e.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),e}function ie(t,e){let n=t.options,r=zt[e]&&zt[e].prototype.nameBase||e.toUpperCase(),i=e;return n&&n.type&&(i=t.options.type,r=t.name),{indicatorFullName:r,indicatorType:i}}function se(t,e,n,r,i,s){if(!n)return;let a=te.call(this,t,e,r);ee.call(this,n,e,a,void 0,void 0,void 0,i),Wt(s)&&(a.value=s)}let{doc:ae}=p(),{addEvent:oe,createElement:le}=p();function ce(){return le("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.container)}function ue(t,e){let n=this.container,r=this.lang,i="highcharts-tab-item";0===e&&(i+=" highcharts-tab-disabled");let s=le("button",{className:i},void 0,n);return s.appendChild(ae.createTextNode(r[t+"Button"]||t)),s.setAttribute("highcharts-data-tab-type",t),s}function he(){let t=this.container,e=t.querySelectorAll(".highcharts-tab-item"),n=t.querySelectorAll(".highcharts-tab-item-content");for(let t=0;t<e.length;t++)e[t].classList.remove("highcharts-tab-item-active"),n[t].classList.remove("highcharts-tab-item-show")}function de(t,e){let n=this.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",n[e].className+=" highcharts-tab-item-show"}function pe(t){let e=this;this.container.querySelectorAll(".highcharts-tab-item").forEach((n,r)=>{(0!==t||"edit"!==n.getAttribute("highcharts-data-tab-type"))&&["click","touchstart"].forEach(t=>{oe(n,t,function(){he.call(e),de.call(e,this,r)})})})}let{doc:fe}=p(),{getOptions:ge}=p(),{addEvent:me,createElement:be,extend:ye,fireEvent:ve,pick:xe}=p();class we extends Pt{constructor(t,e,n){super(t,e),this.chart=n,this.lang=(ge().lang.navigation||{}).popup||{},me(this.container,"mousedown",()=>{let t=n&&n.navigationBindings&&n.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;let e=me(fe,"click",()=>{setTimeout(()=>{t.cancelClick=!1},0),e()})}})}addInput(t,e,n,r){let i=t.split("."),s=i[i.length-1],a=this.lang,o="highcharts-"+e+"-"+xe(r.htmlFor,s);s.match(/^\d+$/)||be("label",{htmlFor:o,className:r.labelClassName},void 0,n).appendChild(fe.createTextNode(a[s]||s));let l=be("input",{name:o,value:r.value,type:r.type,className:"highcharts-popup-field"},void 0,n);return l.setAttribute("highcharts-data-name",t),l}closeButtonEvents(){if(this.chart){let t=this.chart.navigationBindings;ve(t,"closePopup"),t&&t.selectedButtonElement&&ve(t,"deselectButton",{button:t.selectedButtonElement})}else super.closeButtonEvents()}addButton(t,e,n,r,i){let s=be("button",void 0,void 0,t);return s.appendChild(fe.createTextNode(e)),i&&["click","touchstart"].forEach(t=>{me(s,t,()=>(this.closePopup(),i(function(t,e){let n=Array.prototype.slice.call(t.querySelectorAll("input")),r=Array.prototype.slice.call(t.querySelectorAll("select")),i=t.querySelectorAll("#highcharts-select-series > option:checked")[0],s=t.querySelectorAll("#highcharts-select-volume > option:checked")[0],a={actionType:e,linkedTo:i&&i.getAttribute("value")||"",fields:{}};return n.forEach(t=>{let e=t.getAttribute("highcharts-data-name");t.getAttribute("highcharts-data-series-id")?a.seriesId=t.value:e?a.fields[e]=t.value:a.type=t.value}),r.forEach(t=>{let e=t.id;if("highcharts-select-series"!==e&&"highcharts-select-volume"!==e){let n=e.split("highcharts-select-")[1];a.fields[n]=t.value}}),s&&(a.fields["params.volumeSeriesID"]=s.getAttribute("value")||""),a}(r,n))))}),s}showForm(t,e,n,r){e&&(this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,e,n,r),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,e,n,r),"annotation-edit"===t&&this.annotations.addForm.call(this,e,n,r),"flag"===t&&this.annotations.addForm.call(this,e,n,r,!0),this.type=t,this.container.style.height=this.container.offsetHeight+"px")}}ye(we.prototype,{annotations:{addForm:function(t,e,n,r){if(!t)return;let i=this.container,s=this.lang,a=jt("h2",{className:"highcharts-popup-main-title"},void 0,i);a.appendChild(Ot.createTextNode(s[e.langKey]||e.langKey||"")),a=jt("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,i);let o=jt("div",{className:"highcharts-popup-bottom-row"},void 0,i);Bt.call(this,a,t,"",e,[],!0),this.addButton(o,r?s.addButton||"Add":s.saveButton||"Save",r?"add":"save",i,n)},addToolbar:function(t,e,n){let r=this.lang,i=this.container,s=this.showForm,a="highcharts-annotation-toolbar";-1===i.className.indexOf(a)&&(i.className+=" "+a+" highcharts-no-mousewheel"),t&&(i.style.top=t.plotTop+10+"px");let o=jt("p",{className:"highcharts-annotation-label"},void 0,i);o.setAttribute("aria-label","Annotation type"),o.appendChild(Ot.createTextNode(Dt(r[e.langKey]||e.langKey,e.shapes&&e.shapes[0].type,"")));let l=this.addButton(i,r.editButton||"Edit","edit",i,()=>{s.call(this,"annotation-edit",t,e,n)});l.className+=" highcharts-annotation-edit-button",l.style["background-image"]="url("+this.iconsURL+"edit.svg)",l=this.addButton(i,r.removeButton||"Remove","remove",i,n),l.className+=" highcharts-annotation-remove-button",l.style["background-image"]="url("+this.iconsURL+"destroy.svg)"}},indicators:{addForm:function(t,e,n){let r,i=this.lang;if(!t)return;this.tabs.init.call(this,t);let s=this.container.querySelectorAll(".highcharts-tab-item-content");Kt(s[0]),Qt.call(this,t,s[0]),Zt.call(this,t,s[0],"add"),r=s[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(r,i.addButton||"add","add",r,n),Kt(s[1]),Zt.call(this,t,s[1],"edit"),r=s[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(r,i.saveButton||"save","edit",r,n),this.addButton(r,i.removeButton||"remove","remove",r,n)},getAmount:function(){let t=0;return this.series.forEach(e=>{(e.params||e.options.params)&&t++}),t}},tabs:{init:function(t){if(!t)return;let e=this.indicators.getAmount.call(t),n=ue.call(this,"add");ue.call(this,"edit",e),ce.call(this),ce.call(this),pe.call(this,e),de.call(this,n,0)}}});let{composed:ke}=p(),{addEvent:Ae,pushUnique:Se,wrap:Ce}=p();function Ee(){this.popup&&this.popup.closePopup()}function Me(t){this.popup||(this.popup=new we(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/12.1.2/gfx/stock-icons/",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function Te(t,e){this.inClass(e.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}let Pe=function(t,e){Se(ke,"Popup")&&(Ae(t,"closePopup",Ee),Ae(t,"showPopup",Me),Ce(e.prototype,"onContainerMouseDown",Te))},{getDeferredAnimation:Oe}=p(),{destroyObjectProperties:Le,erase:je,fireEvent:_e,merge:Ie,pick:Re,splat:De}=p();function Ne(t,e){let n={};return["labels","shapes"].forEach(r=>{let i=t[r],s=e[r];i&&(n[r]=s?De(s).map((t,e)=>Ie(i[e],t)):t[r])}),n}class Be extends R{static compose(t,e,n,r){E.compose(Be,t,n),At.compose(r),ot.compose(t,r),e.compose(Be,t),Pe(e,n)}constructor(t,e){super(),this.coll="annotations",this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.index=-1,this.labels=[],this.shapes=[],this.options=Ie(this.defaultOptions,e),this.userOptions=e;let n=Ne(this.options,e);this.options.labels=n.labels,this.options.shapes=n.shapes,this.init(t,this.options)}addClipPaths(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))}addLabels(){let t=this.options.labels||[];t.forEach((e,n)=>{let r=this.initLabel(e,n);Ie(!0,t[n],r.options)})}addShapes(){let t=this.options.shapes||[];t.forEach((e,n)=>{let r=this.initShape(e,n);Ie(!0,t[n],r.options)})}destroy(){let t=this.chart,e=function(t){t.destroy()};this.labels.forEach(e),this.shapes.forEach(e),this.clipXAxis=null,this.clipYAxis=null,je(t.labelCollectors,this.labelCollector),super.destroy(),this.destroyControlTarget(),Le(this,t)}destroyItem(t){je(this[t.itemType+"s"],t),t.destroy()}getClipBox(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}}initProperties(t,e){this.setOptions(e);let n=Ne(this.options,e);this.options.labels=n.labels,this.options.shapes=n.shapes,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.userOptions=e,this.labels=[],this.shapes=[]}init(t,e,n=this.index){let r=this.chart,i=this.options.animation;this.index=n,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=Oe(r,i)}initLabel(t,e){let n=new At(this,Ie(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),e);return n.itemType="label",this.labels.push(n),n}initShape(t,e){let n=Ie(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),r=new Be.shapesMap[n.type](this,n,e);return r.itemType="shape",this.shapes.push(r),r}redraw(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),this.redrawControlPoints(t)}redrawItem(t,e){t.linkPoints(),t.shouldBeDrawn()?(t.graphic||this.renderItem(t),t.redraw(Re(e,!0)&&t.graphic.placed),t.points.length&&function(t){let e=t.graphic,n=t.points.some(t=>!1!==t.series.visible&&!1!==t.visible);e&&(n?"hidden"===e.visibility&&e.show():e.hide())}(t)):this.destroyItem(t)}redrawItems(t,e){let n=t.length;for(;n--;)this.redrawItem(t[n],e)}remove(){return this.chart.removeAnnotation(this)}render(){let t=this.chart.renderer;this.graphic=t.g("annotation").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic),this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.addClipPaths(),this.clipRect&&this.graphic.clip(this.clipRect),this.renderItems(this.shapes),this.renderItems(this.labels),this.addEvents(),this.renderControlPoints()}renderItem(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)}renderItems(t){let e=t.length;for(;e--;)this.renderItem(t[e])}setClipAxes(){let t=this.chart.xAxis,e=this.chart.yAxis,n=(this.options.labels||[]).concat(this.options.shapes||[]).reduce((n,r)=>{let i=r&&(r.point||r.points&&r.points[0]);return[t[i&&i.xAxis]||n[0],e[i&&i.yAxis]||n[1]]},[]);this.clipXAxis=n[0],this.clipYAxis=n[1]}setControlPointsVisibility(t){let e=function(e){e.setControlPointsVisibility(t)};this.controlPoints.forEach(e=>{e.setVisibility(t)}),this.shapes.forEach(e),this.labels.forEach(e)}setLabelCollector(){let t=this;t.labelCollector=function(){return t.labels.reduce(function(t,e){return e.options.allowOverlap||t.push(e.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)}setOptions(t){this.options=Ie(this.defaultOptions,t)}setVisibility(t){let e=this.options,n=this.chart.navigationBindings,r=Re(t,!e.visible);if(this.graphic.attr("visibility",r?"inherit":"hidden"),!r){let t=function(t){t.setControlPointsVisibility(r)};this.shapes.forEach(t),this.labels.forEach(t),n.activeAnnotation===this&&n.popup&&"annotation-toolbar"===n.popup.type&&_e(n,"closePopup")}e.visible=r}update(t,e){let n=this.chart,r=Ne(this.userOptions,t),i=n.annotations.indexOf(this),s=Ie(!0,this.userOptions,t);s.labels=r.labels,s.shapes=r.shapes,this.destroy(),this.initProperties(n,s),this.init(n,s),n.options.annotations[i]=this.options,this.isUpdating=!0,Re(e,!0)&&n.drawAnnotations(),_e(this,"afterUpdate"),this.isUpdating=!1}}Be.ControlPoint=B,Be.MockPoint=U,Be.shapesMap={rect:ct,circle:ht,ellipse:ft,path:ot,image:St},Be.types={},Be.prototype.defaultOptions={visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"#000000",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return M(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"0.7em",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"#ffffff",stroke:"#000000","stroke-width":2},height:10,symbol:"circle",visible:!1,width:10},events:{},zIndex:6},Be.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],X.compose(Be),function(t){t.compose=function(t){return t.navigation||(t.navigation=new e(t)),t};class e{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(n=>{n.call(this.chart,t,e)})}}t.Additions=e}(o||(o={}));let Fe=o,{defined:ze,isNumber:He,pick:qe}=p(),We={backgroundColor:"string",borderColor:"string",borderRadius:"string",color:"string",fill:"string",fontSize:"string",labels:"string",name:"string",stroke:"string",title:"string"},Ue={annotationsFieldsTypes:We,getAssignedAxis:function(t){return t.filter(t=>{let e=t.axis.getExtremes(),n=e.min,r=e.max,i=qe(t.axis.minPointOffset,0);return He(n)&&He(r)&&t.value>=n-i&&t.value<=r+i&&!t.axis.options.isInternal})[0]},getFieldType:function(t,e){let n=We[t],r=typeof e;return ze(n)&&(r=n),{string:"text",number:"number",boolean:"checkbox"}[r]}},{getAssignedAxis:Xe}=Ue,{isNumber:Ye,merge:Ge}=p(),Ve={lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),n=e&&Xe(e.xAxis),r=e&&Xe(e.yAxis),i=this.chart.options.navigation;if(n&&r)return this.chart.addAnnotation(Ge({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:n.value,y:r.value,xAxis:n.axis.index,yAxis:r.axis.index},r:5}]},i.annotationsOptions,i.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,e){let n,r=e.options.shapes,i=r&&r[0]&&r[0].point||{};if(Ye(i.xAxis)&&Ye(i.yAxis)){let e=this.chart.inverted,r=this.chart.xAxis[i.xAxis].toPixels(i.x),s=this.chart.yAxis[i.yAxis].toPixels(i.y);n=Math.max(Math.sqrt(Math.pow(e?s-t.chartX:r-t.chartX,2)+Math.pow(e?r-t.chartY:s-t.chartY,2)),5)}e.update({shapes:[{r:n}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),n=e&&Xe(e.xAxis),r=e&&Xe(e.yAxis),i=this.chart.options.navigation;if(n&&r)return this.chart.addAnnotation(Ge({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:n.axis.index,yAxis:r.axis.index,points:[{x:n.value,y:r.value},{x:n.value,y:r.value}],ry:1}]},i.annotationsOptions,i.bindings.ellipseAnnotation.annotationOptions))},steps:[function(t,e){let n=e.shapes[0],r=n.getAbsolutePosition(n.points[1]);n.translatePoint(t.chartX-r.x,t.chartY-r.y,1),n.redraw(!1)},function(t,e){let n=e.shapes[0],r=n.getAbsolutePosition(n.points[0]),i=n.getAbsolutePosition(n.points[1]),s=n.getDistanceFromLine(r,i,t.chartX,t.chartY),a=n.getYAxis(),o=Math.abs(a.toValue(0)-a.toValue(s));n.setYRadius(o),n.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),n=e&&Xe(e.xAxis),r=e&&Xe(e.yAxis);if(!n||!r)return;let i=n.value,s=r.value,a=n.axis.index,o=r.axis.index,l=this.chart.options.navigation;return this.chart.addAnnotation(Ge({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:o,x:i,y:s},{xAxis:a,yAxis:o,x:i,y:s},{xAxis:a,yAxis:o,x:i,y:s},{xAxis:a,yAxis:o,x:i,y:s},{command:"Z"}]}]},l.annotationsOptions,l.bindings.rectangleAnnotation.annotationsOptions))},steps:[function(t,e){let n=e.options.shapes,r=n&&n[0]&&n[0].points||[],i=this.chart.pointer?.getCoordinates(t),s=i&&Xe(i.xAxis),a=i&&Xe(i.yAxis);if(s&&a){let t=s.value,n=a.value;r[1].x=t,r[2].x=t,r[2].y=n,r[3].y=n,e.update({shapes:[{points:r}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),n=e&&Xe(e.xAxis),r=e&&Xe(e.yAxis),i=this.chart.options.navigation;if(n&&r)return this.chart.addAnnotation(Ge({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:n.axis.index,yAxis:r.axis.index,x:n.value,y:r.value}}]},i.annotationsOptions,i.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},{setOptions:Ke}=p(),{format:$e}=mt(),{composed:Ze,doc:Je,win:Qe}=p(),{getAssignedAxis:tn,getFieldType:en}=Ue,{addEvent:nn,attr:rn,defined:sn,fireEvent:an,isArray:on,isFunction:ln,isNumber:cn,isObject:un,merge:hn,objectEach:dn,pick:pn,pushUnique:fn}=p();function gn(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function mn(){this.navigationBindings&&this.navigationBindings.destroy()}function bn(){let t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new kn(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function yn(){let t=this.navigationBindings,e="highcharts-disabled-btn";if(this&&t){let n=!1;if(this.series.forEach(t=>{!t.options.isInternal&&t.visible&&(n=!0)}),this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){let r=this.navigationBindings.container[0];dn(t.boundClassNames,(t,i)=>{let s=r.querySelectorAll("."+i);if(s)for(let r=0;r<s.length;r++){let i=s[r],a=i.className;"normal"===t.noDataState||n?-1!==a.indexOf(e)&&i.classList.remove(e):-1===a.indexOf(e)&&(i.className+=" "+e)}})}}}function vn(){this.deselectAnnotation()}function xn(){this.selectedButtonElement=null}function wn(t){let e,n,r=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function i(t){let e=this,n=e.chart.navigationBindings,i=n.activeAnnotation;r&&r.call(e,t),i!==e?(n.deselectAnnotation(),n.activeAnnotation=e,e.setControlPointsVisibility(!0),an(n,"showPopup",{annotation:e,formType:"annotation-toolbar",options:n.annotationToFields(e),onSubmit:function(t){if("remove"===t.actionType)n.activeAnnotation=!1,n.chart.removeAnnotation(e);else{let r={};n.fieldsToOptions(t.fields,r),n.deselectAnnotation();let i=r.typeOptions;"measure"===e.options.type&&(i.crosshairY.enabled=0!==i.crosshairY.strokeWidth,i.crosshairX.enabled=0!==i.crosshairX.strokeWidth),e.update(r)}}})):an(n,"closePopup"),t.activeAnnotation=!0}hn(!0,t.prototype.defaultOptions.events,{click:i,touchstart:function(t){e=t.touches[0].clientX,n=t.touches[0].clientY},touchend:function(t){e&&Math.sqrt(Math.pow(e-t.changedTouches[0].clientX,2)+Math.pow(n-t.changedTouches[0].clientY,2))>=4||i.call(this,t)}})}class kn{static compose(t,e){fn(Ze,"NavigationBindings")&&(nn(t,"remove",gn),wn(t),dn(t.types,t=>{wn(t)}),nn(e,"destroy",mn),nn(e,"load",bn),nn(e,"render",yn),nn(kn,"closePopup",vn),nn(kn,"deselectButton",xn),Ke(Ve))}constructor(t,e){this.boundClassNames=void 0,this.chart=t,this.options=e,this.eventsToUnbind=[],this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||""),this.container.length||(this.container=Je.getElementsByClassName(this.options.bindingsClassName||""))}getCoords(t){let e=this.chart.pointer?.getCoordinates(t);return[e&&tn(e.xAxis),e&&tn(e.yAxis)]}initEvents(){let t=this,e=t.chart,n=t.container,r=t.options;t.boundClassNames={},dn(r.bindings||{},e=>{t.boundClassNames[e.className]=e}),[].forEach.call(n,e=>{t.eventsToUnbind.push(nn(e,"click",n=>{let r=t.getButtonEvents(e,n);r&&!r.button.classList.contains("highcharts-disabled-btn")&&t.bindingsButtonClick(r.button,r.events,n)}))}),dn(r.events||{},(e,n)=>{ln(e)&&t.eventsToUnbind.push(nn(t,n,e,{passive:!1}))}),t.eventsToUnbind.push(nn(e.container,"click",function(n){!e.cancelClick&&e.isInsidePlot(n.chartX-e.plotLeft,n.chartY-e.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,n)})),t.eventsToUnbind.push(nn(e.container,p().isTouchDevice?"touchmove":"mousemove",function(e){t.bindingsContainerMouseMove(this,e)},p().isTouchDevice?{passive:!1}:void 0))}initUpdate(){let t=this;Fe.compose(this.chart).navigation.addUpdate(e=>{t.update(e)})}bindingsButtonClick(t,e,n){let r=this.chart,i=r.renderer.boxWrapper,s=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(s=!1),an(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&r.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),s?(this.selectedButton=e,this.selectedButtonElement=t,an(this,"selectButton",{button:t}),e.init&&e.init.call(this,t,n),(e.start||e.steps)&&r.renderer.boxWrapper.addClass("highcharts-draw-mode")):(r.stockTools&&t.classList.remove("highcharts-active"),i.removeClass("highcharts-draw-mode"),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null)}bindingsChartClick(t,e){t=this.chart;let n=this.activeAnnotation,r=this.selectedButton,i=t.renderer.boxWrapper;n&&(n.cancelClick||e.activeAnnotation||!e.target.parentNode||function(t,e){let n=Qe.Element.prototype,r=n.matches||n.msMatchesSelector||n.webkitMatchesSelector,i=null;if(n.closest)i=n.closest.call(t,e);else do{if(r.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return i}(e.target,".highcharts-popup")?n.cancelClick&&setTimeout(()=>{n.cancelClick=!1},0):an(this,"closePopup")),r&&r.start&&(this.nextEvent?(this.nextEvent(e,this.currentUserDetails),this.steps&&(this.stepIndex++,r.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=r.steps[this.stepIndex]:(an(this,"deselectButton",{button:this.selectedButtonElement}),i.removeClass("highcharts-draw-mode"),r.end&&r.end.call(this,e,this.currentUserDetails),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null))):(this.currentUserDetails=r.start.call(this,e),this.currentUserDetails&&r.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=r.steps[this.stepIndex]):(an(this,"deselectButton",{button:this.selectedButtonElement}),i.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,r.end&&r.end.call(this,e,this.currentUserDetails))))}bindingsContainerMouseMove(t,e){this.mouseMoveEvent&&this.mouseMoveEvent(e,this.currentUserDetails)}fieldsToOptions(t,e){return dn(t,(t,n)=>{let r=parseFloat(t),i=n.split("."),s=i.length-1;if(!cn(r)||t.match(/px|em/g)||n.match(/format/g)||(t=r),"undefined"!==t){let n=e;i.forEach((e,r)=>{if("__proto__"!==e&&"constructor"!==e){let a=pn(i[r+1],"");s===r?n[e]=t:(n[e]||(n[e]=a.match(/\d/g)?[]:{}),n=n[e])}})}}),e}deselectAnnotation(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)}annotationToFields(t){let e=t.options,n=kn.annotationsEditable,r=n.nestedOptions,i=pn(e.type,e.shapes&&e.shapes[0]&&e.shapes[0].type,e.labels&&e.labels[0]&&e.labels[0].type,"label"),s=kn.annotationsNonEditable[e.langKey]||[],a={langKey:e.langKey,type:i};function o(e,n,i,a,l){let c;i&&sn(e)&&-1===s.indexOf(n)&&((i.indexOf&&i.indexOf(n))>=0||i[n]||!0===i)&&(on(e)?(a[n]=[],e.forEach((t,e)=>{un(t)?(a[n][e]={},dn(t,(t,i)=>{o(t,i,r[n],a[n][e],n)})):o(t,0,r[n],a[n],n)})):un(e)?(c={},on(a)?(a.push(c),c[n]={},c=c[n]):a[n]=c,dn(e,(t,e)=>{o(t,e,0===n?i:r[n],c,n)})):"format"===n?a[n]=[$e(e,t.labels[0].points[0]).toString(),"text"]:on(a)?a.push([e,en(l,e)]):a[n]=[e,en(n,e)])}return dn(e,(t,s)=>{"typeOptions"===s?(a[s]={},dn(e[s],(t,e)=>{o(t,e,r,a[s],e)})):o(t,s,n[i],a,s)}),a}getClickedClassNames(t,e){let n,r=e.target,i=[];for(;r&&r.tagName&&((n=rn(r,"class"))&&(i=i.concat(n.split(" ").map(t=>[t,r]))),(r=r.parentNode)!==t););return i}getButtonEvents(t,e){let n,r=this;return this.getClickedClassNames(t,e).forEach(t=>{r.boundClassNames[t[0]]&&!n&&(n={events:r.boundClassNames[t[0]],button:t[1]})}),n}update(t){this.options=hn(!0,this.options,t),this.removeEvents(),this.initEvents()}removeEvents(){this.eventsToUnbind.forEach(t=>t())}destroy(){this.removeEvents()}}kn.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[],basicAnnotation:["shapes","labelOptions"]},kn.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};let An=p();An.Annotation=An.Annotation||Be,An.NavigationBindings=An.NavigationBindings||kn,An.Annotation.compose(An.Chart,An.NavigationBindings,An.Pointer,An.SVGRenderer);let Sn=p();return h.default})(),"object"==typeof n&&"object"==typeof e?e.exports=i(r._Highcharts,r._Highcharts.SeriesRegistry,r._Highcharts.Templating,r._Highcharts.AST):"function"==typeof define&&define.amd?define("highcharts/modules/annotations",["highcharts/highcharts"],function(t){return i(t,t.SeriesRegistry,t.Templating,t.AST)}):"object"==typeof n?n["highcharts/modules/annotations"]=i(r._Highcharts,r._Highcharts.SeriesRegistry,r._Highcharts.Templating,r._Highcharts.AST):r.Highcharts=i(r.Highcharts,r.Highcharts.SeriesRegistry,r.Highcharts.Templating,r.Highcharts.AST)},{}],831:[function(t,e,n){(function(t){(function(){(function(){var r,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",o=16,l=32,c=64,u=128,h=256,d=1/0,p=9007199254740991,f=NaN,g=4294967295,m=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",l],["partialRight",c],["rearg",h]],b="[object Arguments]",y="[object Array]",v="[object Boolean]",x="[object Date]",w="[object Error]",k="[object Function]",A="[object GeneratorFunction]",S="[object Map]",C="[object Number]",E="[object Object]",M="[object Promise]",T="[object RegExp]",P="[object Set]",O="[object String]",L="[object Symbol]",j="[object WeakMap]",_="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",B="[object Int16Array]",F="[object Int32Array]",z="[object Uint8Array]",H="[object Uint8ClampedArray]",q="[object Uint16Array]",W="[object Uint32Array]",U=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,K=RegExp(G.source),$=RegExp(V.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/,nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,it=RegExp(rt.source),st=/^\s+/,at=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lt=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,kt=/['\n\r\u2028\u2029\\]/g,At="\\ud800-\\udfff",St="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ct="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",Mt="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ot="['’]",Lt="["+At+"]",jt="["+Pt+"]",_t="["+St+"]",It="\\d+",Rt="["+Ct+"]",Dt="["+Et+"]",Nt="[^"+At+Pt+It+Ct+Et+Mt+"]",Bt="\\ud83c[\\udffb-\\udfff]",Ft="[^"+At+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",qt="["+Mt+"]",Wt="\\u200d",Ut="(?:"+Dt+"|"+Nt+")",Xt="(?:"+qt+"|"+Nt+")",Yt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+_t+"|"+Bt+")"+"?",Kt="["+Tt+"]?",$t=Kt+Vt+("(?:"+Wt+"(?:"+[Ft,zt,Ht].join("|")+")"+Kt+Vt+")*"),Zt="(?:"+[Rt,zt,Ht].join("|")+")"+$t,Jt="(?:"+[Ft+_t+"?",_t,zt,Ht,Lt].join("|")+")",Qt=RegExp(Ot,"g"),te=RegExp(_t,"g"),ee=RegExp(Bt+"(?="+Bt+")|"+Jt+$t,"g"),ne=RegExp([qt+"?"+Dt+"+"+Yt+"(?="+[jt,qt,"$"].join("|")+")",Xt+"+"+Gt+"(?="+[jt,qt+Ut,"$"].join("|")+")",qt+"?"+Ut+"+"+Yt,qt+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Zt].join("|"),"g"),re=RegExp("["+Wt+At+St+Tt+"]"),ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,se=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ae=-1,oe={};oe[R]=oe[D]=oe[N]=oe[B]=oe[F]=oe[z]=oe[H]=oe[q]=oe[W]=!0,oe[b]=oe[y]=oe[_]=oe[v]=oe[I]=oe[x]=oe[w]=oe[k]=oe[S]=oe[C]=oe[E]=oe[T]=oe[P]=oe[O]=oe[j]=!1;var le={};le[b]=le[y]=le[_]=le[I]=le[v]=le[x]=le[R]=le[D]=le[N]=le[B]=le[F]=le[S]=le[C]=le[E]=le[T]=le[P]=le[O]=le[L]=le[z]=le[H]=le[q]=le[W]=!0,le[w]=le[k]=le[j]=!1;var ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,he=parseInt,de="object"==typeof t&&t&&t.Object===Object&&t,pe="object"==typeof self&&self&&self.Object===Object&&self,fe=de||pe||Function("return this")(),ge="object"==typeof n&&n&&!n.nodeType&&n,me=ge&&"object"==typeof e&&e&&!e.nodeType&&e,be=me&&me.exports===ge,ye=be&&de.process,ve=function(){try{var t=me&&me.require&&me.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),xe=ve&&ve.isArrayBuffer,we=ve&&ve.isDate,ke=ve&&ve.isMap,Ae=ve&&ve.isRegExp,Se=ve&&ve.isSet,Ce=ve&&ve.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Me(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var a=t[i];e(r,a,n(a),t)}return r}function Te(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Oe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Le(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var a=t[n];e(a,n,t)&&(s[i++]=a)}return s}function je(t,e){return!!(null==t?0:t.length)&&qe(t,e,0)>-1}function _e(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Ie(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Re(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function De(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function Ne(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Be(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Fe=Ye("length");function ze(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function He(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function qe(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):He(t,Ue,n)}function We(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function Ue(t){return t!=t}function Xe(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:f}function Ye(t){return function(e){return null==e?r:e[t]}}function Ge(t){return function(e){return null==t?r:t[e]}}function Ve(t,e,n,r,i){return i(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)}),n}function Ke(t,e){for(var n,i=-1,s=t.length;++i<s;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function $e(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ze(t){return t?t.slice(0,gn(t)+1).replace(st,""):t}function Je(t){return function(e){return t(e)}}function Qe(t,e){return Ie(e,function(e){return t[e]})}function tn(t,e){return t.has(e)}function en(t,e){for(var n=-1,r=t.length;++n<r&&qe(e,t[n],0)>-1;);return n}function nn(t,e){for(var n=t.length;n--&&qe(e,t[n],0)>-1;);return n}var rn=Ge({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),sn=Ge({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(t){return"\\"+ce[t]}function on(t){return re.test(t)}function ln(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function cn(t,e){return function(n){return t(e(n))}}function un(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function hn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function dn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function pn(t){return on(t)?function(t){var e=ee.lastIndex=0;for(;ee.test(t);)++e;return e}(t):Fe(t)}function fn(t){return on(t)?function(t){return t.match(ee)||[]}(t):function(t){return t.split("")}(t)}function gn(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e}var mn=Ge({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bn=function t(e){var n,at=(e=null==e?fe:bn.defaults(fe.Object(),e,bn.pick(fe,se))).Array,At=e.Date,St=e.Error,Ct=e.Function,Et=e.Math,Mt=e.Object,Tt=e.RegExp,Pt=e.String,Ot=e.TypeError,Lt=at.prototype,jt=Ct.prototype,_t=Mt.prototype,It=e["__core-js_shared__"],Rt=jt.toString,Dt=_t.hasOwnProperty,Nt=0,Bt=(n=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ft=_t.toString,zt=Rt.call(Mt),Ht=fe._,qt=Tt("^"+Rt.call(Dt).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=be?e.Buffer:r,Ut=e.Symbol,Xt=e.Uint8Array,Yt=Wt?Wt.allocUnsafe:r,Gt=cn(Mt.getPrototypeOf,Mt),Vt=Mt.create,Kt=_t.propertyIsEnumerable,$t=Lt.splice,Zt=Ut?Ut.isConcatSpreadable:r,Jt=Ut?Ut.iterator:r,ee=Ut?Ut.toStringTag:r,re=function(){try{var t=ds(Mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ce=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,de=At&&At.now!==fe.Date.now&&At.now,pe=e.setTimeout!==fe.setTimeout&&e.setTimeout,ge=Et.ceil,me=Et.floor,ye=Mt.getOwnPropertySymbols,ve=Wt?Wt.isBuffer:r,Fe=e.isFinite,Ge=Lt.join,yn=cn(Mt.keys,Mt),vn=Et.max,xn=Et.min,wn=At.now,kn=e.parseInt,An=Et.random,Sn=Lt.reverse,Cn=ds(e,"DataView"),En=ds(e,"Map"),Mn=ds(e,"Promise"),Tn=ds(e,"Set"),Pn=ds(e,"WeakMap"),On=ds(Mt,"create"),Ln=Pn&&new Pn,jn={},_n=Bs(Cn),In=Bs(En),Rn=Bs(Mn),Dn=Bs(Tn),Nn=Bs(Pn),Bn=Ut?Ut.prototype:r,Fn=Bn?Bn.valueOf:r,zn=Bn?Bn.toString:r;function Hn(t){if(eo(t)&&!Ua(t)&&!(t instanceof Xn)){if(t instanceof Un)return t;if(Dt.call(t,"__wrapped__"))return Fs(t)}return new Un(t)}var qn=function(){function t(){}return function(e){if(!to(e))return{};if(Vt)return Vt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Wn(){}function Un(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Xn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Vn;++e<n;)this.add(t[e])}function $n(t){var e=this.__data__=new Gn(t);this.size=e.size}function Zn(t,e){var n=Ua(t),r=!n&&Wa(t),i=!n&&!r&&Va(t),s=!n&&!r&&!i&&co(t),a=n||r||i||s,o=a?$e(t.length,Pt):[],l=o.length;for(var c in t)!e&&!Dt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vs(c,l))||o.push(c);return o}function Jn(t){var e=t.length;return e?t[Kr(0,e-1)]:r}function Qn(t,e){return Rs(Oi(t),lr(e,0,t.length))}function tr(t){return Rs(Oi(t))}function er(t,e,n){(n!==r&&!za(t[e],n)||n===r&&!(e in t))&&ar(t,e,n)}function nr(t,e,n){var i=t[e];Dt.call(t,e)&&za(i,n)&&(n!==r||e in t)||ar(t,e,n)}function rr(t,e){for(var n=t.length;n--;)if(za(t[n][0],e))return n;return-1}function ir(t,e,n,r){return pr(t,function(t,i,s){e(r,t,n(t),s)}),r}function sr(t,e){return t&&Li(e,jo(e),t)}function ar(t,e,n){"__proto__"==e&&re?re(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function or(t,e){for(var n=-1,i=e.length,s=at(i),a=null==t;++n<i;)s[n]=a?r:Mo(t,e[n]);return s}function lr(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function cr(t,e,n,i,s,a){var o,l=1&e,c=2&e,u=4&e;if(n&&(o=s?n(t,i,s,a):n(t)),o!==r)return o;if(!to(t))return t;var h=Ua(t);if(h){if(o=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Dt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return Oi(t,o)}else{var d=gs(t),p=d==k||d==A;if(Va(t))return Si(t,l);if(d==E||d==b||p&&!s){if(o=c||p?{}:bs(t),!l)return c?function(t,e){return Li(t,fs(t),e)}(t,function(t,e){return t&&Li(e,_o(e),t)}(o,t)):function(t,e){return Li(t,ps(t),e)}(t,sr(o,t))}else{if(!le[d])return s?t:{};o=function(t,e,n){var r=t.constructor;switch(e){case _:return Ci(t);case v:case x:return new r(+t);case I:return function(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case R:case D:case N:case B:case F:case z:case H:case q:case W:return Ei(t,n);case S:return new r;case C:case O:return new r(t);case T:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new r;case L:return i=t,Fn?Mt(Fn.call(i)):{}}var i}(t,d,l)}}a||(a=new $n);var f=a.get(t);if(f)return f;a.set(t,o),ao(t)?t.forEach(function(r){o.add(cr(r,e,n,r,t,a))}):no(t)&&t.forEach(function(r,i){o.set(i,cr(r,e,n,i,t,a))});var g=h?r:(u?c?ss:is:c?_o:jo)(t);return Te(g||t,function(r,i){g&&(r=t[i=r]),nr(o,i,cr(r,e,n,i,t,a))}),o}function ur(t,e,n){var i=n.length;if(null==t)return!i;for(t=Mt(t);i--;){var s=n[i],a=e[s],o=t[s];if(o===r&&!(s in t)||!a(o))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new Ot(i);return Ls(function(){t.apply(r,n)},e)}function dr(t,e,n,r){var i=-1,s=je,a=!0,o=t.length,l=[],c=e.length;if(!o)return l;n&&(e=Ie(e,Je(n))),r?(s=_e,a=!1):e.length>=200&&(s=tn,a=!1,e=new Kn(e));t:for(;++i<o;){var u=t[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,a&&h==h){for(var d=c;d--;)if(e[d]===h)continue t;l.push(u)}else s(e,h,r)||l.push(u)}return l}Hn.templateSettings={escape:Z,evaluate:J,interpolate:Q,variable:"",imports:{_:Hn}},Hn.prototype=Wn.prototype,Hn.prototype.constructor=Hn,Un.prototype=qn(Wn.prototype),Un.prototype.constructor=Un,Xn.prototype=qn(Wn.prototype),Xn.prototype.constructor=Xn,Yn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Yn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Yn.prototype.get=function(t){var e=this.__data__;if(On){var n=e[t];return n===s?r:n}return Dt.call(e,t)?e[t]:r},Yn.prototype.has=function(t){var e=this.__data__;return On?e[t]!==r:Dt.call(e,t)},Yn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=On&&e===r?s:e,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0)&&(n==e.length-1?e.pop():$t.call(e,n,1),--this.size,!0)},Gn.prototype.get=function(t){var e=this.__data__,n=rr(e,t);return n<0?r:e[n][1]},Gn.prototype.has=function(t){return rr(this.__data__,t)>-1},Gn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(En||Gn),string:new Yn}},Vn.prototype.delete=function(t){var e=us(this,t).delete(t);return this.size-=e?1:0,e},Vn.prototype.get=function(t){return us(this,t).get(t)},Vn.prototype.has=function(t){return us(this,t).has(t)},Vn.prototype.set=function(t,e){var n=us(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(t){return this.__data__.set(t,s),this},Kn.prototype.has=function(t){return this.__data__.has(t)},$n.prototype.clear=function(){this.__data__=new Gn,this.size=0},$n.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},$n.prototype.get=function(t){return this.__data__.get(t)},$n.prototype.has=function(t){return this.__data__.has(t)},$n.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!En||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(t,e),this.size=n.size,this};var pr=Ii(wr),fr=Ii(kr,!0);function gr(t,e){var n=!0;return pr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function mr(t,e,n){for(var i=-1,s=t.length;++i<s;){var a=t[i],o=e(a);if(null!=o&&(l===r?o==o&&!lo(o):n(o,l)))var l=o,c=a}return c}function br(t,e){var n=[];return pr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function yr(t,e,n,r,i){var s=-1,a=t.length;for(n||(n=ys),i||(i=[]);++s<a;){var o=t[s];e>0&&n(o)?e>1?yr(o,e-1,n,r,i):Re(i,o):r||(i[i.length]=o)}return i}var vr=Ri(),xr=Ri(!0);function wr(t,e){return t&&vr(t,e,jo)}function kr(t,e){return t&&xr(t,e,jo)}function Ar(t,e){return Le(e,function(e){return Za(t[e])})}function Sr(t,e){for(var n=0,i=(e=xi(e,t)).length;null!=t&&n<i;)t=t[Ns(e[n++])];return n&&n==i?t:r}function Cr(t,e,n){var r=e(t);return Ua(t)?r:Re(r,n(t))}function Er(t){return null==t?t===r?"[object Undefined]":"[object Null]":ee&&ee in Mt(t)?function(t){var e=Dt.call(t,ee),n=t[ee];try{t[ee]=r;var i=!0}catch(t){}var s=Ft.call(t);i&&(e?t[ee]=n:delete t[ee]);return s}(t):function(t){return Ft.call(t)}(t)}function Mr(t,e){return t>e}function Tr(t,e){return null!=t&&Dt.call(t,e)}function Pr(t,e){return null!=t&&e in Mt(t)}function Or(t,e,n){for(var i=n?_e:je,s=t[0].length,a=t.length,o=a,l=at(a),c=1/0,u=[];o--;){var h=t[o];o&&e&&(h=Ie(h,Je(e))),c=xn(h.length,c),l[o]=!n&&(e||s>=120&&h.length>=120)?new Kn(o&&h):r}h=t[0];var d=-1,p=l[0];t:for(;++d<s&&u.length<c;){var f=h[d],g=e?e(f):f;if(f=n||0!==f?f:0,!(p?tn(p,g):i(u,g,n))){for(o=a;--o;){var m=l[o];if(!(m?tn(m,g):i(t[o],g,n)))continue t}p&&p.push(g),u.push(f)}}return u}function Lr(t,e,n){var i=null==(t=Ts(t,e=xi(e,t)))?t:t[Ns($s(e))];return null==i?r:Ee(i,t,n)}function jr(t){return eo(t)&&Er(t)==b}function _r(t,e,n,i,s){return t===e||(null==t||null==e||!eo(t)&&!eo(e)?t!=t&&e!=e:function(t,e,n,i,s,a){var o=Ua(t),l=Ua(e),c=o?y:gs(t),u=l?y:gs(e),h=(c=c==b?E:c)==E,d=(u=u==b?E:u)==E,p=c==u;if(p&&Va(t)){if(!Va(e))return!1;o=!0,h=!1}if(p&&!h)return a||(a=new $n),o||co(t)?ns(t,e,n,i,s,a):function(t,e,n,r,i,s,a){switch(n){case I:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!s(new Xt(t),new Xt(e)));case v:case x:case C:return za(+t,+e);case w:return t.name==e.name&&t.message==e.message;case T:case O:return t==e+"";case S:var o=ln;case P:var l=1&r;if(o||(o=hn),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=2,a.set(t,e);var u=ns(o(t),o(e),r,i,s,a);return a.delete(t),u;case L:if(Fn)return Fn.call(t)==Fn.call(e)}return!1}(t,e,c,n,i,s,a);if(!(1&n)){var f=h&&Dt.call(t,"__wrapped__"),g=d&&Dt.call(e,"__wrapped__");if(f||g){var m=f?t.value():t,k=g?e.value():e;return a||(a=new $n),s(m,k,n,i,a)}}if(!p)return!1;return a||(a=new $n),function(t,e,n,i,s,a){var o=1&n,l=is(t),c=l.length,u=is(e),h=u.length;if(c!=h&&!o)return!1;var d=c;for(;d--;){var p=l[d];if(!(o?p in e:Dt.call(e,p)))return!1}var f=a.get(t),g=a.get(e);if(f&&g)return f==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);var b=o;for(;++d<c;){var y=t[p=l[d]],v=e[p];if(i)var x=o?i(v,y,p,e,t,a):i(y,v,p,t,e,a);if(!(x===r?y===v||s(y,v,n,i,a):x)){m=!1;break}b||(b="constructor"==p)}if(m&&!b){var w=t.constructor,k=e.constructor;w==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(m=!1)}return a.delete(t),a.delete(e),m}(t,e,n,i,s,a)}(t,e,n,i,_r,s))}function Ir(t,e,n,i){var s=n.length,a=s,o=!i;if(null==t)return!a;for(t=Mt(t);s--;){var l=n[s];if(o&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<a;){var c=(l=n[s])[0],u=t[c],h=l[1];if(o&&l[2]){if(u===r&&!(c in t))return!1}else{var d=new $n;if(i)var p=i(u,h,c,t,e,d);if(!(p===r?_r(h,u,3,i,d):p))return!1}}return!0}function Rr(t){return!(!to(t)||(e=t,Bt&&Bt in e))&&(Za(t)?qt:bt).test(Bs(t));var e}function Dr(t){return"function"==typeof t?t:null==t?il:"object"==typeof t?Ua(t)?qr(t[0],t[1]):Hr(t):pl(t)}function Nr(t){if(!Ss(t))return yn(t);var e=[];for(var n in Mt(t))Dt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Br(t){if(!to(t))return function(t){var e=[];if(null!=t)for(var n in Mt(t))e.push(n);return e}(t);var e=Ss(t),n=[];for(var r in t)("constructor"!=r||!e&&Dt.call(t,r))&&n.push(r);return n}function Fr(t,e){return t<e}function zr(t,e){var n=-1,r=Ya(t)?at(t.length):[];return pr(t,function(t,i,s){r[++n]=e(t,i,s)}),r}function Hr(t){var e=hs(t);return 1==e.length&&e[0][2]?Es(e[0][0],e[0][1]):function(n){return n===t||Ir(n,t,e)}}function qr(t,e){return ws(t)&&Cs(e)?Es(Ns(t),e):function(n){var i=Mo(n,t);return i===r&&i===e?To(n,t):_r(e,i,3)}}function Wr(t,e,n,i,s){t!==e&&vr(e,function(a,o){if(s||(s=new $n),to(a))!function(t,e,n,i,s,a,o){var l=Ps(t,n),c=Ps(e,n),u=o.get(c);if(u)return void er(t,n,u);var h=a?a(l,c,n+"",t,e,o):r,d=h===r;if(d){var p=Ua(c),f=!p&&Va(c),g=!p&&!f&&co(c);h=c,p||f||g?Ua(l)?h=l:Ga(l)?h=Oi(l):f?(d=!1,h=Si(c,!0)):g?(d=!1,h=Ei(c,!0)):h=[]:io(c)||Wa(c)?(h=l,Wa(l)?h=yo(l):to(l)&&!Za(l)||(h=bs(c))):d=!1}d&&(o.set(c,h),s(h,c,i,a,o),o.delete(c));er(t,n,h)}(t,e,o,n,Wr,i,s);else{var l=i?i(Ps(t,o),a,o+"",t,e,s):r;l===r&&(l=a),er(t,o,l)}},_o)}function Ur(t,e){var n=t.length;if(n)return vs(e+=e<0?n:0,n)?t[e]:r}function Xr(t,e,n){e=e.length?Ie(e,function(t){return Ua(t)?function(e){return Sr(e,1===t.length?t[0]:t)}:t}):[il];var r=-1;e=Ie(e,Je(cs()));var i=zr(t,function(t,n,i){var s=Ie(e,function(e){return e(t)});return{criteria:s,index:++r,value:t}});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,function(t,e){return function(t,e,n){var r=-1,i=t.criteria,s=e.criteria,a=i.length,o=n.length;for(;++r<a;){var l=Mi(i[r],s[r]);if(l)return r>=o?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})}function Yr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var a=e[r],o=Sr(t,a);n(o,a)&&ti(s,xi(a,t),o)}return s}function Gr(t,e,n,r){var i=r?We:qe,s=-1,a=e.length,o=t;for(t===e&&(e=Oi(e)),n&&(o=Ie(t,Je(n)));++s<a;)for(var l=0,c=e[s],u=n?n(c):c;(l=i(o,u,l,r))>-1;)o!==t&&$t.call(o,l,1),$t.call(t,l,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==s){var s=i;vs(i)?$t.call(t,i,1):di(t,i)}}return t}function Kr(t,e){return t+me(An()*(e-t+1))}function $r(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=me(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return js(Ms(t,e,il),t+"")}function Jr(t){return Jn(Ho(t))}function Qr(t,e){var n=Ho(t);return Rs(n,lr(e,0,n.length))}function ti(t,e,n,i){if(!to(t))return t;for(var s=-1,a=(e=xi(e,t)).length,o=a-1,l=t;null!=l&&++s<a;){var c=Ns(e[s]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(s!=o){var h=l[c];(u=i?i(h,c,l):r)===r&&(u=to(h)?h:vs(e[s+1])?[]:{})}nr(l,c,u),l=l[c]}return t}var ei=Ln?function(t,e){return Ln.set(t,e),t}:il,ni=re?function(t,e){return re(t,"toString",{configurable:!0,enumerable:!1,value:el(e),writable:!0})}:il;function ri(t){return Rs(Ho(t))}function ii(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=at(i);++r<i;)s[r]=t[r+e];return s}function si(t,e){var n;return pr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var s=r+i>>>1,a=t[s];null!==a&&!lo(a)&&(n?a<=e:a<e)?r=s+1:i=s}return i}return oi(t,e,il,n)}function oi(t,e,n,i){var s=0,a=null==t?0:t.length;if(0===a)return 0;for(var o=(e=n(e))!=e,l=null===e,c=lo(e),u=e===r;s<a;){var h=me((s+a)/2),d=n(t[h]),p=d!==r,f=null===d,g=d==d,m=lo(d);if(o)var b=i||g;else b=u?g&&(i||p):l?g&&p&&(i||!f):c?g&&p&&!f&&(i||!m):!f&&!m&&(i?d<=e:d<e);b?s=h+1:a=h}return xn(a,4294967294)}function li(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var a=t[n],o=e?e(a):a;if(!n||!za(o,l)){var l=o;s[i++]=0===a?0:a}}return s}function ci(t){return"number"==typeof t?t:lo(t)?f:+t}function ui(t){if("string"==typeof t)return t;if(Ua(t))return Ie(t,ui)+"";if(lo(t))return zn?zn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function hi(t,e,n){var r=-1,i=je,s=t.length,a=!0,o=[],l=o;if(n)a=!1,i=_e;else if(s>=200){var c=e?null:$i(t);if(c)return hn(c);a=!1,i=tn,l=new Kn}else l=e?[]:o;t:for(;++r<s;){var u=t[r],h=e?e(u):u;if(u=n||0!==u?u:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),o.push(u)}else i(l,h,n)||(l!==o&&l.push(h),o.push(u))}return o}function di(t,e){return null==(t=Ts(t,e=xi(e,t)))||delete t[Ns($s(e))]}function pi(t,e,n,r){return ti(t,e,n(Sr(t,e)),r)}function fi(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ii(t,r?0:s,r?s+1:i):ii(t,r?s+1:0,r?i:s)}function gi(t,e){var n=t;return n instanceof Xn&&(n=n.value()),De(e,function(t,e){return e.func.apply(e.thisArg,Re([t],e.args))},n)}function mi(t,e,n){var r=t.length;if(r<2)return r?hi(t[0]):[];for(var i=-1,s=at(r);++i<r;)for(var a=t[i],o=-1;++o<r;)o!=i&&(s[i]=dr(s[i]||a,t[o],e,n));return hi(yr(s,1),e,n)}function bi(t,e,n){for(var i=-1,s=t.length,a=e.length,o={};++i<s;){var l=i<a?e[i]:r;n(o,t[i],l)}return o}function yi(t){return Ga(t)?t:[]}function vi(t){return"function"==typeof t?t:il}function xi(t,e){return Ua(t)?t:ws(t,e)?[t]:Ds(vo(t))}var wi=Zr;function ki(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:ii(t,e,n)}var Ai=ce||function(t){return fe.clearTimeout(t)};function Si(t,e){if(e)return t.slice();var n=t.length,r=Yt?Yt(n):new t.constructor(n);return t.copy(r),r}function Ci(t){var e=new t.constructor(t.byteLength);return new Xt(e).set(new Xt(t)),e}function Ei(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Mi(t,e){if(t!==e){var n=t!==r,i=null===t,s=t==t,a=lo(t),o=e!==r,l=null===e,c=e==e,u=lo(e);if(!l&&!u&&!a&&t>e||a&&o&&c&&!l&&!u||i&&o&&c||!n&&c||!s)return 1;if(!i&&!a&&!u&&t<e||u&&n&&s&&!i&&!a||l&&n&&s||!o&&s||!c)return-1}return 0}function Ti(t,e,n,r){for(var i=-1,s=t.length,a=n.length,o=-1,l=e.length,c=vn(s-a,0),u=at(l+c),h=!r;++o<l;)u[o]=e[o];for(;++i<a;)(h||i<s)&&(u[n[i]]=t[i]);for(;c--;)u[o++]=t[i++];return u}function Pi(t,e,n,r){for(var i=-1,s=t.length,a=-1,o=n.length,l=-1,c=e.length,u=vn(s-o,0),h=at(u+c),d=!r;++i<u;)h[i]=t[i];for(var p=i;++l<c;)h[p+l]=e[l];for(;++a<o;)(d||i<s)&&(h[p+n[a]]=t[i++]);return h}function Oi(t,e){var n=-1,r=t.length;for(e||(e=at(r));++n<r;)e[n]=t[n];return e}function Li(t,e,n,i){var s=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var l=e[a],c=i?i(n[l],t[l],l,n,t):r;c===r&&(c=t[l]),s?ar(n,l,c):nr(n,l,c)}return n}function ji(t,e){return function(n,r){var i=Ua(n)?Me:ir,s=e?e():{};return i(n,t,cs(r,2),s)}}function _i(t){return Zr(function(e,n){var i=-1,s=n.length,a=s>1?n[s-1]:r,o=s>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(s--,a):r,o&&xs(n[0],n[1],o)&&(a=s<3?r:a,s=1),e=Mt(e);++i<s;){var l=n[i];l&&t(e,l,i,a)}return e})}function Ii(t,e){return function(n,r){if(null==n)return n;if(!Ya(n))return t(n,r);for(var i=n.length,s=e?i:-1,a=Mt(n);(e?s--:++s<i)&&!1!==r(a[s],s,a););return n}}function Ri(t){return function(e,n,r){for(var i=-1,s=Mt(e),a=r(e),o=a.length;o--;){var l=a[t?o:++i];if(!1===n(s[l],l,s))break}return e}}function Di(t){return function(e){var n=on(e=vo(e))?fn(e):r,i=n?n[0]:e.charAt(0),s=n?ki(n,1).join(""):e.slice(1);return i[t]()+s}}function Ni(t){return function(e){return De(Jo(Uo(e).replace(Qt,"")),t,"")}}function Bi(t){return function(){var e=arguments;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]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=qn(t.prototype),r=t.apply(n,e);return to(r)?r:n}}function Fi(t){return function(e,n,i){var s=Mt(e);if(!Ya(e)){var a=cs(n,3);e=jo(e),n=function(t){return a(s[t],t,s)}}var o=t(e,n,i);return o>-1?s[a?e[o]:o]:r}}function zi(t){return rs(function(e){var n=e.length,s=n,a=Un.prototype.thru;for(t&&e.reverse();s--;){var o=e[s];if("function"!=typeof o)throw new Ot(i);if(a&&!l&&"wrapper"==os(o))var l=new Un([],!0)}for(s=l?s:n;++s<n;){var c=os(o=e[s]),u="wrapper"==c?as(o):r;l=u&&ks(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[os(u[0])].apply(l,u[3]):1==o.length&&ks(o)?l[c]():l.thru(o)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&Ua(r))return l.plant(r).value();for(var i=0,s=n?e[i].apply(this,t):r;++i<n;)s=e[i].call(this,s);return s}})}function Hi(t,e,n,i,s,a,o,l,c,h){var d=e&u,p=1&e,f=2&e,g=24&e,m=512&e,b=f?r:Bi(t);return function u(){for(var y=arguments.length,v=at(y),x=y;x--;)v[x]=arguments[x];if(g)var w=ls(u),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(v,w);if(i&&(v=Ti(v,i,s,g)),a&&(v=Pi(v,a,o,g)),y-=k,g&&y<h){var A=un(v,w);return Vi(t,e,Hi,u.placeholder,n,v,A,l,c,h-y)}var S=p?n:this,C=f?S[t]:t;return y=v.length,l?v=function(t,e){var n=t.length,i=xn(e.length,n),s=Oi(t);for(;i--;){var a=e[i];t[i]=vs(a,n)?s[a]:r}return t}(v,l):m&&y>1&&v.reverse(),d&&c<y&&(v.length=c),this&&this!==fe&&this instanceof u&&(C=b||Bi(C)),C.apply(S,v)}}function qi(t,e){return function(n,r){return function(t,e,n,r){return wr(t,function(t,i,s){e(r,n(t),i,s)}),r}(n,t,e(r),{})}}function Wi(t,e){return function(n,i){var s;if(n===r&&i===r)return e;if(n!==r&&(s=n),i!==r){if(s===r)return i;"string"==typeof n||"string"==typeof i?(n=ui(n),i=ui(i)):(n=ci(n),i=ci(i)),s=t(n,i)}return s}}function Ui(t){return rs(function(e){return e=Ie(e,Je(cs())),Zr(function(n){var r=this;return t(e,function(t){return Ee(t,r,n)})})})}function Xi(t,e){var n=(e=e===r?" ":ui(e)).length;if(n<2)return n?$r(e,t):e;var i=$r(e,ge(t/pn(e)));return on(e)?ki(fn(i),0,t).join(""):i.slice(0,t)}function Yi(t){return function(e,n,i){return i&&"number"!=typeof i&&xs(e,n,i)&&(n=i=r),e=fo(e),n===r?(n=e,e=0):n=fo(n),function(t,e,n,r){for(var i=-1,s=vn(ge((e-t)/(n||1)),0),a=at(s);s--;)a[r?s:++i]=t,t+=n;return a}(e,n,i=i===r?e<n?1:-1:fo(i),t)}}function Gi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=bo(e),n=bo(n)),t(e,n)}}function Vi(t,e,n,i,s,a,o,u,h,d){var p=8&e;e|=p?l:c,4&(e&=~(p?c:l))||(e&=-4);var f=[t,e,s,p?a:r,p?o:r,p?r:a,p?r:o,u,h,d],g=n.apply(r,f);return ks(t)&&Os(g,f),g.placeholder=i,_s(g,t,e)}function Ki(t){var e=Et[t];return function(t,n){if(t=bo(t),(n=null==n?0:xn(go(n),292))&&Fe(t)){var r=(vo(t)+"e").split("e");return+((r=(vo(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var $i=Tn&&1/hn(new Tn([,-0]))[1]==d?function(t){return new Tn(t)}:cl;function Zi(t){return function(e){var n=gs(e);return n==S?ln(e):n==P?dn(e):function(t,e){return Ie(e,function(e){return[e,t[e]]})}(e,t(e))}}function Ji(t,e,n,s,d,p,f,g){var m=2&e;if(!m&&"function"!=typeof t)throw new Ot(i);var b=s?s.length:0;if(b||(e&=-97,s=d=r),f=f===r?f:vn(go(f),0),g=g===r?g:go(g),b-=d?d.length:0,e&c){var y=s,v=d;s=d=r}var x=m?r:as(t),w=[t,e,n,s,d,y,v,p,f,g];if(x&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==u&&8==n||r==u&&n==h&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!s&&!o)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var l=e[3];if(l){var c=t[3];t[3]=c?Ti(c,l,e[4]):l,t[4]=c?un(t[3],a):e[4]}(l=e[5])&&(c=t[5],t[5]=c?Pi(c,l,e[6]):l,t[6]=c?un(t[5],a):e[6]);(l=e[7])&&(t[7]=l);r&u&&(t[8]=null==t[8]?e[8]:xn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(w,x),t=w[0],e=w[1],n=w[2],s=w[3],d=w[4],!(g=w[9]=w[9]===r?m?0:t.length:vn(w[9]-b,0))&&24&e&&(e&=-25),e&&1!=e)k=8==e||e==o?function(t,e,n){var i=Bi(t);return function s(){for(var a=arguments.length,o=at(a),l=a,c=ls(s);l--;)o[l]=arguments[l];var u=a<3&&o[0]!==c&&o[a-1]!==c?[]:un(o,c);return(a-=u.length)<n?Vi(t,e,Hi,s.placeholder,r,o,u,r,r,n-a):Ee(this&&this!==fe&&this instanceof s?i:t,this,o)}}(t,e,g):e!=l&&33!=e||d.length?Hi.apply(r,w):function(t,e,n,r){var i=1&e,s=Bi(t);return function e(){for(var a=-1,o=arguments.length,l=-1,c=r.length,u=at(c+o),h=this&&this!==fe&&this instanceof e?s:t;++l<c;)u[l]=r[l];for(;o--;)u[l++]=arguments[++a];return Ee(h,i?n:this,u)}}(t,e,n,s);else var k=function(t,e,n){var r=1&e,i=Bi(t);return function e(){return(this&&this!==fe&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return _s((x?ei:Os)(k,w),t,e)}function Qi(t,e,n,i){return t===r||za(t,_t[n])&&!Dt.call(i,n)?e:t}function ts(t,e,n,i,s,a){return to(t)&&to(e)&&(a.set(e,t),Wr(t,e,r,ts,a),a.delete(e)),t}function es(t){return io(t)?r:t}function ns(t,e,n,i,s,a){var o=1&n,l=t.length,c=e.length;if(l!=c&&!(o&&c>l))return!1;var u=a.get(t),h=a.get(e);if(u&&h)return u==e&&h==t;var d=-1,p=!0,f=2&n?new Kn:r;for(a.set(t,e),a.set(e,t);++d<l;){var g=t[d],m=e[d];if(i)var b=o?i(m,g,d,e,t,a):i(g,m,d,t,e,a);if(b!==r){if(b)continue;p=!1;break}if(f){if(!Be(e,function(t,e){if(!tn(f,e)&&(g===t||s(g,t,n,i,a)))return f.push(e)})){p=!1;break}}else if(g!==m&&!s(g,m,n,i,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function rs(t){return js(Ms(t,r,Xs),t+"")}function is(t){return Cr(t,jo,ps)}function ss(t){return Cr(t,_o,fs)}var as=Ln?function(t){return Ln.get(t)}:cl;function os(t){for(var e=t.name+"",n=jn[e],r=Dt.call(jn,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function ls(t){return(Dt.call(Hn,"placeholder")?Hn:t).placeholder}function cs(){var t=Hn.iteratee||sl;return t=t===sl?Dr:t,arguments.length?t(arguments[0],arguments[1]):t}function us(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function hs(t){for(var e=jo(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Cs(i)]}return e}function ds(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Rr(n)?n:r}var ps=ye?function(t){return null==t?[]:(t=Mt(t),Le(ye(t),function(e){return Kt.call(t,e)}))}:ml,fs=ye?function(t){for(var e=[];t;)Re(e,ps(t)),t=Gt(t);return e}:ml,gs=Er;function ms(t,e,n){for(var r=-1,i=(e=xi(e,t)).length,s=!1;++r<i;){var a=Ns(e[r]);if(!(s=null!=t&&n(t,a)))break;t=t[a]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&Qa(i)&&vs(a,i)&&(Ua(t)||Wa(t))}function bs(t){return"function"!=typeof t.constructor||Ss(t)?{}:qn(Gt(t))}function ys(t){return Ua(t)||Wa(t)||!!(Zt&&t&&t[Zt])}function vs(t,e){var n=typeof t;return!!(e=null==e?p:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function xs(t,e,n){if(!to(n))return!1;var r=typeof e;return!!("number"==r?Ya(n)&&vs(e,n.length):"string"==r&&e in n)&&za(n[e],t)}function ws(t,e){if(Ua(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!lo(t))||(et.test(t)||!tt.test(t)||null!=e&&t in Mt(e))}function ks(t){var e=os(t),n=Hn[e];if("function"!=typeof n||!(e in Xn.prototype))return!1;if(t===n)return!0;var r=as(n);return!!r&&t===r[0]}(Cn&&gs(new Cn(new ArrayBuffer(1)))!=I||En&&gs(new En)!=S||Mn&&gs(Mn.resolve())!=M||Tn&&gs(new Tn)!=P||Pn&&gs(new Pn)!=j)&&(gs=function(t){var e=Er(t),n=e==E?t.constructor:r,i=n?Bs(n):"";if(i)switch(i){case _n:return I;case In:return S;case Rn:return M;case Dn:return P;case Nn:return j}return e});var As=It?Za:bl;function Ss(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function Cs(t){return t==t&&!to(t)}function Es(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==r||t in Mt(n)))}}function Ms(t,e,n){return e=vn(e===r?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=vn(r.length-e,0),a=at(s);++i<s;)a[i]=r[e+i];i=-1;for(var o=at(e+1);++i<e;)o[i]=r[i];return o[e]=n(a),Ee(t,this,o)}}function Ts(t,e){return e.length<2?t:Sr(t,ii(e,0,-1))}function Ps(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Os=Is(ei),Ls=pe||function(t,e){return fe.setTimeout(t,e)},js=Is(ni);function _s(t,e,n){var r=e+"";return js(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Te(m,function(n){var r="_."+n[0];e&n[1]&&!je(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(lt);return e?e[1].split(ct):[]}(r),n)))}function Is(t){var e=0,n=0;return function(){var i=wn(),s=16-(i-n);if(n=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Rs(t,e){var n=-1,i=t.length,s=i-1;for(e=e===r?i:e;++n<e;){var a=Kr(n,s),o=t[a];t[a]=t[n],t[n]=o}return t.length=e,t}var Ds=function(t){var e=Ia(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nt,function(t,n,r,i){e.push(r?i.replace(dt,"$1"):n||t)}),e});function Ns(t){if("string"==typeof t||lo(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Bs(t){if(null!=t){try{return Rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Fs(t){if(t instanceof Xn)return t.clone();var e=new Un(t.__wrapped__,t.__chain__);return e.__actions__=Oi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var zs=Zr(function(t,e){return Ga(t)?dr(t,yr(e,1,Ga,!0)):[]}),Hs=Zr(function(t,e){var n=$s(e);return Ga(n)&&(n=r),Ga(t)?dr(t,yr(e,1,Ga,!0),cs(n,2)):[]}),qs=Zr(function(t,e){var n=$s(e);return Ga(n)&&(n=r),Ga(t)?dr(t,yr(e,1,Ga,!0),r,n):[]});function Ws(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:go(n);return i<0&&(i=vn(r+i,0)),He(t,cs(e,3),i)}function Us(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i-1;return n!==r&&(s=go(n),s=n<0?vn(i+s,0):xn(s,i-1)),He(t,cs(e,3),s,!0)}function Xs(t){return(null==t?0:t.length)?yr(t,1):[]}function Ys(t){return t&&t.length?t[0]:r}var Gs=Zr(function(t){var e=Ie(t,yi);return e.length&&e[0]===t[0]?Or(e):[]}),Vs=Zr(function(t){var e=$s(t),n=Ie(t,yi);return e===$s(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Or(n,cs(e,2)):[]}),Ks=Zr(function(t){var e=$s(t),n=Ie(t,yi);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Or(n,r,e):[]});function $s(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Zs=Zr(Js);function Js(t,e){return t&&t.length&&e&&e.length?Gr(t,e):t}var Qs=rs(function(t,e){var n=null==t?0:t.length,r=or(t,e);return Vr(t,Ie(e,function(t){return vs(t,n)?+t:t}).sort(Mi)),r});function ta(t){return null==t?t:Sn.call(t)}var ea=Zr(function(t){return hi(yr(t,1,Ga,!0))}),na=Zr(function(t){var e=$s(t);return Ga(e)&&(e=r),hi(yr(t,1,Ga,!0),cs(e,2))}),ra=Zr(function(t){var e=$s(t);return e="function"==typeof e?e:r,hi(yr(t,1,Ga,!0),r,e)});function ia(t){if(!t||!t.length)return[];var e=0;return t=Le(t,function(t){if(Ga(t))return e=vn(t.length,e),!0}),$e(e,function(e){return Ie(t,Ye(e))})}function sa(t,e){if(!t||!t.length)return[];var n=ia(t);return null==e?n:Ie(n,function(t){return Ee(e,r,t)})}var aa=Zr(function(t,e){return Ga(t)?dr(t,e):[]}),oa=Zr(function(t){return mi(Le(t,Ga))}),la=Zr(function(t){var e=$s(t);return Ga(e)&&(e=r),mi(Le(t,Ga),cs(e,2))}),ca=Zr(function(t){var e=$s(t);return e="function"==typeof e?e:r,mi(Le(t,Ga),r,e)}),ua=Zr(ia);var ha=Zr(function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,sa(t,n)});function da(t){var e=Hn(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var fa=rs(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,s=function(e){return or(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Xn&&vs(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[s],thisArg:r}),new Un(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(r),t})):this.thru(s)});var ga=ji(function(t,e,n){Dt.call(t,n)?++t[n]:ar(t,n,1)});var ma=Fi(Ws),ba=Fi(Us);function ya(t,e){return(Ua(t)?Te:pr)(t,cs(e,3))}function va(t,e){return(Ua(t)?Pe:fr)(t,cs(e,3))}var xa=ji(function(t,e,n){Dt.call(t,n)?t[n].push(e):ar(t,n,[e])});var wa=Zr(function(t,e,n){var r=-1,i="function"==typeof e,s=Ya(t)?at(t.length):[];return pr(t,function(t){s[++r]=i?Ee(e,t,n):Lr(t,e,n)}),s}),ka=ji(function(t,e,n){ar(t,n,e)});function Aa(t,e){return(Ua(t)?Ie:zr)(t,cs(e,3))}var Sa=ji(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Ca=Zr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&xs(t,e[0],e[1])?e=[]:n>2&&xs(e[0],e[1],e[2])&&(e=[e[0]]),Xr(t,yr(e,1),[])}),Ea=de||function(){return fe.Date.now()};function Ma(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Ji(t,u,r,r,r,r,e)}function Ta(t,e){var n;if("function"!=typeof e)throw new Ot(i);return t=go(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Pa=Zr(function(t,e,n){var r=1;if(n.length){var i=un(n,ls(Pa));r|=l}return Ji(t,r,e,n,i)}),Oa=Zr(function(t,e,n){var r=3;if(n.length){var i=un(n,ls(Oa));r|=l}return Ji(e,r,t,n,i)});function La(t,e,n){var s,a,o,l,c,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new Ot(i);function g(e){var n=s,i=a;return s=a=r,h=e,l=t.apply(i,n)}function m(t){var n=t-u;return u===r||n>=e||n<0||p&&t-h>=o}function b(){var t=Ea();if(m(t))return y(t);c=Ls(b,function(t){var n=e-(t-u);return p?xn(n,o-(t-h)):n}(t))}function y(t){return c=r,f&&s?g(t):(s=a=r,l)}function v(){var t=Ea(),n=m(t);if(s=arguments,a=this,u=t,n){if(c===r)return function(t){return h=t,c=Ls(b,e),d?g(t):l}(u);if(p)return Ai(c),c=Ls(b,e),g(u)}return c===r&&(c=Ls(b,e)),l}return e=bo(e)||0,to(n)&&(d=!!n.leading,o=(p="maxWait"in n)?vn(bo(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){c!==r&&Ai(c),h=0,s=u=a=c=r},v.flush=function(){return c===r?l:y(Ea())},v}var ja=Zr(function(t,e){return hr(t,1,e)}),_a=Zr(function(t,e,n){return hr(t,bo(e)||0,n)});function Ia(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ot(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=t.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(Ia.Cache||Vn),n}function Ra(t){if("function"!=typeof t)throw new Ot(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ia.Cache=Vn;var Da=wi(function(t,e){var n=(e=1==e.length&&Ua(e[0])?Ie(e[0],Je(cs())):Ie(yr(e,1),Je(cs()))).length;return Zr(function(r){for(var i=-1,s=xn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return Ee(t,this,r)})}),Na=Zr(function(t,e){var n=un(e,ls(Na));return Ji(t,l,r,e,n)}),Ba=Zr(function(t,e){var n=un(e,ls(Ba));return Ji(t,c,r,e,n)}),Fa=rs(function(t,e){return Ji(t,h,r,r,r,e)});function za(t,e){return t===e||t!=t&&e!=e}var Ha=Gi(Mr),qa=Gi(function(t,e){return t>=e}),Wa=jr(function(){return arguments}())?jr:function(t){return eo(t)&&Dt.call(t,"callee")&&!Kt.call(t,"callee")},Ua=at.isArray,Xa=xe?Je(xe):function(t){return eo(t)&&Er(t)==_};function Ya(t){return null!=t&&Qa(t.length)&&!Za(t)}function Ga(t){return eo(t)&&Ya(t)}var Va=ve||bl,Ka=we?Je(we):function(t){return eo(t)&&Er(t)==x};function $a(t){if(!eo(t))return!1;var e=Er(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!io(t)}function Za(t){if(!to(t))return!1;var e=Er(t);return e==k||e==A||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ja(t){return"number"==typeof t&&t==go(t)}function Qa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function to(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function eo(t){return null!=t&&"object"==typeof t}var no=ke?Je(ke):function(t){return eo(t)&&gs(t)==S};function ro(t){return"number"==typeof t||eo(t)&&Er(t)==C}function io(t){if(!eo(t)||Er(t)!=E)return!1;var e=Gt(t);if(null===e)return!0;var n=Dt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Rt.call(n)==zt}var so=Ae?Je(Ae):function(t){return eo(t)&&Er(t)==T};var ao=Se?Je(Se):function(t){return eo(t)&&gs(t)==P};function oo(t){return"string"==typeof t||!Ua(t)&&eo(t)&&Er(t)==O}function lo(t){return"symbol"==typeof t||eo(t)&&Er(t)==L}var co=Ce?Je(Ce):function(t){return eo(t)&&Qa(t.length)&&!!oe[Er(t)]};var uo=Gi(Fr),ho=Gi(function(t,e){return t<=e});function po(t){if(!t)return[];if(Ya(t))return oo(t)?fn(t):Oi(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=gs(t);return(e==S?ln:e==P?hn:Ho)(t)}function fo(t){return t?(t=bo(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function go(t){var e=fo(t),n=e%1;return e==e?n?e-n:e:0}function mo(t){return t?lr(go(t),0,g):0}function bo(t){if("number"==typeof t)return t;if(lo(t))return f;if(to(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=to(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ze(t);var n=mt.test(t);return n||yt.test(t)?he(t.slice(2),n?2:8):gt.test(t)?f:+t}function yo(t){return Li(t,_o(t))}function vo(t){return null==t?"":ui(t)}var xo=_i(function(t,e){if(Ss(e)||Ya(e))Li(e,jo(e),t);else for(var n in e)Dt.call(e,n)&&nr(t,n,e[n])}),wo=_i(function(t,e){Li(e,_o(e),t)}),ko=_i(function(t,e,n,r){Li(e,_o(e),t,r)}),Ao=_i(function(t,e,n,r){Li(e,jo(e),t,r)}),So=rs(or);var Co=Zr(function(t,e){t=Mt(t);var n=-1,i=e.length,s=i>2?e[2]:r;for(s&&xs(e[0],e[1],s)&&(i=1);++n<i;)for(var a=e[n],o=_o(a),l=-1,c=o.length;++l<c;){var u=o[l],h=t[u];(h===r||za(h,_t[u])&&!Dt.call(t,u))&&(t[u]=a[u])}return t}),Eo=Zr(function(t){return t.push(r,ts),Ee(Ro,r,t)});function Mo(t,e,n){var i=null==t?r:Sr(t,e);return i===r?n:i}function To(t,e){return null!=t&&ms(t,e,Pr)}var Po=qi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=n},el(il)),Oo=qi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Dt.call(t,e)?t[e].push(n):t[e]=[n]},cs),Lo=Zr(Lr);function jo(t){return Ya(t)?Zn(t):Nr(t)}function _o(t){return Ya(t)?Zn(t,!0):Br(t)}var Io=_i(function(t,e,n){Wr(t,e,n)}),Ro=_i(function(t,e,n,r){Wr(t,e,n,r)}),Do=rs(function(t,e){var n={};if(null==t)return n;var r=!1;e=Ie(e,function(e){return e=xi(e,t),r||(r=e.length>1),e}),Li(t,ss(t),n),r&&(n=cr(n,7,es));for(var i=e.length;i--;)di(n,e[i]);return n});var No=rs(function(t,e){return null==t?{}:function(t,e){return Yr(t,e,function(e,n){return To(t,n)})}(t,e)});function Bo(t,e){if(null==t)return{};var n=Ie(ss(t),function(t){return[t]});return e=cs(e),Yr(t,n,function(t,n){return e(t,n[0])})}var Fo=Zi(jo),zo=Zi(_o);function Ho(t){return null==t?[]:Qe(t,jo(t))}var qo=Ni(function(t,e,n){return e=e.toLowerCase(),t+(n?Wo(e):e)});function Wo(t){return Zo(vo(t).toLowerCase())}function Uo(t){return(t=vo(t))&&t.replace(xt,rn).replace(te,"")}var Xo=Ni(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Yo=Ni(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Go=Di("toLowerCase");var Vo=Ni(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var Ko=Ni(function(t,e,n){return t+(n?" ":"")+Zo(e)});var $o=Ni(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Zo=Di("toUpperCase");function Jo(t,e,n){return t=vo(t),(e=n?r:e)===r?function(t){return ie.test(t)}(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(e)||[]}var Qo=Zr(function(t,e){try{return Ee(t,r,e)}catch(t){return $a(t)?t:new St(t)}}),tl=rs(function(t,e){return Te(e,function(e){e=Ns(e),ar(t,e,Pa(t[e],t))}),t});function el(t){return function(){return t}}var nl=zi(),rl=zi(!0);function il(t){return t}function sl(t){return Dr("function"==typeof t?t:cr(t,1))}var al=Zr(function(t,e){return function(n){return Lr(n,t,e)}}),ol=Zr(function(t,e){return function(n){return Lr(t,n,e)}});function ll(t,e,n){var r=jo(e),i=Ar(e,r);null!=n||to(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Ar(e,jo(e)));var s=!(to(n)&&"chain"in n&&!n.chain),a=Za(t);return Te(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Oi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Re([this.value()],arguments))})}),t}function cl(){}var ul=Ui(Ie),hl=Ui(Oe),dl=Ui(Be);function pl(t){return ws(t)?Ye(Ns(t)):function(t){return function(e){return Sr(e,t)}}(t)}var fl=Yi(),gl=Yi(!0);function ml(){return[]}function bl(){return!1}var yl=Wi(function(t,e){return t+e},0),vl=Ki("ceil"),xl=Wi(function(t,e){return t/e},1),wl=Ki("floor");var kl,Al=Wi(function(t,e){return t*e},1),Sl=Ki("round"),Cl=Wi(function(t,e){return t-e},0);return Hn.after=function(t,e){if("function"!=typeof e)throw new Ot(i);return t=go(t),function(){if(--t<1)return e.apply(this,arguments)}},Hn.ary=Ma,Hn.assign=xo,Hn.assignIn=wo,Hn.assignInWith=ko,Hn.assignWith=Ao,Hn.at=So,Hn.before=Ta,Hn.bind=Pa,Hn.bindAll=tl,Hn.bindKey=Oa,Hn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ua(t)?t:[t]},Hn.chain=da,Hn.chunk=function(t,e,n){e=(n?xs(t,e,n):e===r)?1:vn(go(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var s=0,a=0,o=at(ge(i/e));s<i;)o[a++]=ii(t,s,s+=e);return o},Hn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},Hn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=at(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Re(Ua(n)?Oi(n):[n],yr(e,1))},Hn.cond=function(t){var e=null==t?0:t.length,n=cs();return t=e?Ie(t,function(t){if("function"!=typeof t[1])throw new Ot(i);return[n(t[0]),t[1]]}):[],Zr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Ee(i[0],this,n))return Ee(i[1],this,n)}})},Hn.conforms=function(t){return function(t){var e=jo(t);return function(n){return ur(n,t,e)}}(cr(t,1))},Hn.constant=el,Hn.countBy=ga,Hn.create=function(t,e){var n=qn(t);return null==e?n:sr(n,e)},Hn.curry=function t(e,n,i){var s=Ji(e,8,r,r,r,r,r,n=i?r:n);return s.placeholder=t.placeholder,s},Hn.curryRight=function t(e,n,i){var s=Ji(e,o,r,r,r,r,r,n=i?r:n);return s.placeholder=t.placeholder,s},Hn.debounce=La,Hn.defaults=Co,Hn.defaultsDeep=Eo,Hn.defer=ja,Hn.delay=_a,Hn.difference=zs,Hn.differenceBy=Hs,Hn.differenceWith=qs,Hn.drop=function(t,e,n){var i=null==t?0:t.length;return i?ii(t,(e=n||e===r?1:go(e))<0?0:e,i):[]},Hn.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?ii(t,0,(e=i-(e=n||e===r?1:go(e)))<0?0:e):[]},Hn.dropRightWhile=function(t,e){return t&&t.length?fi(t,cs(e,3),!0,!0):[]},Hn.dropWhile=function(t,e){return t&&t.length?fi(t,cs(e,3),!0):[]},Hn.fill=function(t,e,n,i){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&xs(t,e,n)&&(n=0,i=s),function(t,e,n,i){var s=t.length;for((n=go(n))<0&&(n=-n>s?0:s+n),(i=i===r||i>s?s:go(i))<0&&(i+=s),i=n>i?0:mo(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},Hn.filter=function(t,e){return(Ua(t)?Le:br)(t,cs(e,3))},Hn.flatMap=function(t,e){return yr(Aa(t,e),1)},Hn.flatMapDeep=function(t,e){return yr(Aa(t,e),d)},Hn.flatMapDepth=function(t,e,n){return n=n===r?1:go(n),yr(Aa(t,e),n)},Hn.flatten=Xs,Hn.flattenDeep=function(t){return(null==t?0:t.length)?yr(t,d):[]},Hn.flattenDepth=function(t,e){return(null==t?0:t.length)?yr(t,e=e===r?1:go(e)):[]},Hn.flip=function(t){return Ji(t,512)},Hn.flow=nl,Hn.flowRight=rl,Hn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Hn.functions=function(t){return null==t?[]:Ar(t,jo(t))},Hn.functionsIn=function(t){return null==t?[]:Ar(t,_o(t))},Hn.groupBy=xa,Hn.initial=function(t){return(null==t?0:t.length)?ii(t,0,-1):[]},Hn.intersection=Gs,Hn.intersectionBy=Vs,Hn.intersectionWith=Ks,Hn.invert=Po,Hn.invertBy=Oo,Hn.invokeMap=wa,Hn.iteratee=sl,Hn.keyBy=ka,Hn.keys=jo,Hn.keysIn=_o,Hn.map=Aa,Hn.mapKeys=function(t,e){var n={};return e=cs(e,3),wr(t,function(t,r,i){ar(n,e(t,r,i),t)}),n},Hn.mapValues=function(t,e){var n={};return e=cs(e,3),wr(t,function(t,r,i){ar(n,r,e(t,r,i))}),n},Hn.matches=function(t){return Hr(cr(t,1))},Hn.matchesProperty=function(t,e){return qr(t,cr(e,1))},Hn.memoize=Ia,Hn.merge=Io,Hn.mergeWith=Ro,Hn.method=al,Hn.methodOf=ol,Hn.mixin=ll,Hn.negate=Ra,Hn.nthArg=function(t){return t=go(t),Zr(function(e){return Ur(e,t)})},Hn.omit=Do,Hn.omitBy=function(t,e){return Bo(t,Ra(cs(e)))},Hn.once=function(t){return Ta(2,t)},Hn.orderBy=function(t,e,n,i){return null==t?[]:(Ua(e)||(e=null==e?[]:[e]),Ua(n=i?r:n)||(n=null==n?[]:[n]),Xr(t,e,n))},Hn.over=ul,Hn.overArgs=Da,Hn.overEvery=hl,Hn.overSome=dl,Hn.partial=Na,Hn.partialRight=Ba,Hn.partition=Sa,Hn.pick=No,Hn.pickBy=Bo,Hn.property=pl,Hn.propertyOf=function(t){return function(e){return null==t?r:Sr(t,e)}},Hn.pull=Zs,Hn.pullAll=Js,Hn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Gr(t,e,cs(n,2)):t},Hn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Gr(t,e,r,n):t},Hn.pullAt=Qs,Hn.range=fl,Hn.rangeRight=gl,Hn.rearg=Fa,Hn.reject=function(t,e){return(Ua(t)?Le:br)(t,Ra(cs(e,3)))},Hn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],s=t.length;for(e=cs(e,3);++r<s;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Vr(t,i),n},Hn.rest=function(t,e){if("function"!=typeof t)throw new Ot(i);return Zr(t,e=e===r?e:go(e))},Hn.reverse=ta,Hn.sampleSize=function(t,e,n){return e=(n?xs(t,e,n):e===r)?1:go(e),(Ua(t)?Qn:Qr)(t,e)},Hn.set=function(t,e,n){return null==t?t:ti(t,e,n)},Hn.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ti(t,e,n,i)},Hn.shuffle=function(t){return(Ua(t)?tr:ri)(t)},Hn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&xs(t,e,n)?(e=0,n=i):(e=null==e?0:go(e),n=n===r?i:go(n)),ii(t,e,n)):[]},Hn.sortBy=Ca,Hn.sortedUniq=function(t){return t&&t.length?li(t):[]},Hn.sortedUniqBy=function(t,e){return t&&t.length?li(t,cs(e,2)):[]},Hn.split=function(t,e,n){return n&&"number"!=typeof n&&xs(t,e,n)&&(e=n=r),(n=n===r?g:n>>>0)?(t=vo(t))&&("string"==typeof e||null!=e&&!so(e))&&!(e=ui(e))&&on(t)?ki(fn(t),0,n):t.split(e,n):[]},Hn.spread=function(t,e){if("function"!=typeof t)throw new Ot(i);return e=null==e?0:vn(go(e),0),Zr(function(n){var r=n[e],i=ki(n,0,e);return r&&Re(i,r),Ee(t,this,i)})},Hn.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},Hn.take=function(t,e,n){return t&&t.length?ii(t,0,(e=n||e===r?1:go(e))<0?0:e):[]},Hn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?ii(t,(e=i-(e=n||e===r?1:go(e)))<0?0:e,i):[]},Hn.takeRightWhile=function(t,e){return t&&t.length?fi(t,cs(e,3),!1,!0):[]},Hn.takeWhile=function(t,e){return t&&t.length?fi(t,cs(e,3)):[]},Hn.tap=function(t,e){return e(t),t},Hn.throttle=function(t,e,n){var r=!0,s=!0;if("function"!=typeof t)throw new Ot(i);return to(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),La(t,e,{leading:r,maxWait:e,trailing:s})},Hn.thru=pa,Hn.toArray=po,Hn.toPairs=Fo,Hn.toPairsIn=zo,Hn.toPath=function(t){return Ua(t)?Ie(t,Ns):lo(t)?[t]:Oi(Ds(vo(t)))},Hn.toPlainObject=yo,Hn.transform=function(t,e,n){var r=Ua(t),i=r||Va(t)||co(t);if(e=cs(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:to(t)&&Za(s)?qn(Gt(t)):{}}return(i?Te:wr)(t,function(t,r,i){return e(n,t,r,i)}),n},Hn.unary=function(t){return Ma(t,1)},Hn.union=ea,Hn.unionBy=na,Hn.unionWith=ra,Hn.uniq=function(t){return t&&t.length?hi(t):[]},Hn.uniqBy=function(t,e){return t&&t.length?hi(t,cs(e,2)):[]},Hn.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?hi(t,r,e):[]},Hn.unset=function(t,e){return null==t||di(t,e)},Hn.unzip=ia,Hn.unzipWith=sa,Hn.update=function(t,e,n){return null==t?t:pi(t,e,vi(n))},Hn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:pi(t,e,vi(n),i)},Hn.values=Ho,Hn.valuesIn=function(t){return null==t?[]:Qe(t,_o(t))},Hn.without=aa,Hn.words=Jo,Hn.wrap=function(t,e){return Na(vi(e),t)},Hn.xor=oa,Hn.xorBy=la,Hn.xorWith=ca,Hn.zip=ua,Hn.zipObject=function(t,e){return bi(t||[],e||[],nr)},Hn.zipObjectDeep=function(t,e){return bi(t||[],e||[],ti)},Hn.zipWith=ha,Hn.entries=Fo,Hn.entriesIn=zo,Hn.extend=wo,Hn.extendWith=ko,ll(Hn,Hn),Hn.add=yl,Hn.attempt=Qo,Hn.camelCase=qo,Hn.capitalize=Wo,Hn.ceil=vl,Hn.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=bo(n))==n?n:0),e!==r&&(e=(e=bo(e))==e?e:0),lr(bo(t),e,n)},Hn.clone=function(t){return cr(t,4)},Hn.cloneDeep=function(t){return cr(t,5)},Hn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:r)},Hn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:r)},Hn.conformsTo=function(t,e){return null==e||ur(t,e,jo(e))},Hn.deburr=Uo,Hn.defaultTo=function(t,e){return null==t||t!=t?e:t},Hn.divide=xl,Hn.endsWith=function(t,e,n){t=vo(t),e=ui(e);var i=t.length,s=n=n===r?i:lr(go(n),0,i);return(n-=e.length)>=0&&t.slice(n,s)==e},Hn.eq=za,Hn.escape=function(t){return(t=vo(t))&&$.test(t)?t.replace(V,sn):t},Hn.escapeRegExp=function(t){return(t=vo(t))&&it.test(t)?t.replace(rt,"\\$&"):t},Hn.every=function(t,e,n){var i=Ua(t)?Oe:gr;return n&&xs(t,e,n)&&(e=r),i(t,cs(e,3))},Hn.find=ma,Hn.findIndex=Ws,Hn.findKey=function(t,e){return ze(t,cs(e,3),wr)},Hn.findLast=ba,Hn.findLastIndex=Us,Hn.findLastKey=function(t,e){return ze(t,cs(e,3),kr)},Hn.floor=wl,Hn.forEach=ya,Hn.forEachRight=va,Hn.forIn=function(t,e){return null==t?t:vr(t,cs(e,3),_o)},Hn.forInRight=function(t,e){return null==t?t:xr(t,cs(e,3),_o)},Hn.forOwn=function(t,e){return t&&wr(t,cs(e,3))},Hn.forOwnRight=function(t,e){return t&&kr(t,cs(e,3))},Hn.get=Mo,Hn.gt=Ha,Hn.gte=qa,Hn.has=function(t,e){return null!=t&&ms(t,e,Tr)},Hn.hasIn=To,Hn.head=Ys,Hn.identity=il,Hn.includes=function(t,e,n,r){t=Ya(t)?t:Ho(t),n=n&&!r?go(n):0;var i=t.length;return n<0&&(n=vn(i+n,0)),oo(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&qe(t,e,n)>-1},Hn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:go(n);return i<0&&(i=vn(r+i,0)),qe(t,e,i)},Hn.inRange=function(t,e,n){return e=fo(e),n===r?(n=e,e=0):n=fo(n),function(t,e,n){return t>=xn(e,n)&&t<vn(e,n)}(t=bo(t),e,n)},Hn.invoke=Lo,Hn.isArguments=Wa,Hn.isArray=Ua,Hn.isArrayBuffer=Xa,Hn.isArrayLike=Ya,Hn.isArrayLikeObject=Ga,Hn.isBoolean=function(t){return!0===t||!1===t||eo(t)&&Er(t)==v},Hn.isBuffer=Va,Hn.isDate=Ka,Hn.isElement=function(t){return eo(t)&&1===t.nodeType&&!io(t)},Hn.isEmpty=function(t){if(null==t)return!0;if(Ya(t)&&(Ua(t)||"string"==typeof t||"function"==typeof t.splice||Va(t)||co(t)||Wa(t)))return!t.length;var e=gs(t);if(e==S||e==P)return!t.size;if(Ss(t))return!Nr(t).length;for(var n in t)if(Dt.call(t,n))return!1;return!0},Hn.isEqual=function(t,e){return _r(t,e)},Hn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?_r(t,e,r,n):!!i},Hn.isError=$a,Hn.isFinite=function(t){return"number"==typeof t&&Fe(t)},Hn.isFunction=Za,Hn.isInteger=Ja,Hn.isLength=Qa,Hn.isMap=no,Hn.isMatch=function(t,e){return t===e||Ir(t,e,hs(e))},Hn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Ir(t,e,hs(e),n)},Hn.isNaN=function(t){return ro(t)&&t!=+t},Hn.isNative=function(t){if(As(t))throw new St("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(t)},Hn.isNil=function(t){return null==t},Hn.isNull=function(t){return null===t},Hn.isNumber=ro,Hn.isObject=to,Hn.isObjectLike=eo,Hn.isPlainObject=io,Hn.isRegExp=so,Hn.isSafeInteger=function(t){return Ja(t)&&t>=-9007199254740991&&t<=p},Hn.isSet=ao,Hn.isString=oo,Hn.isSymbol=lo,Hn.isTypedArray=co,Hn.isUndefined=function(t){return t===r},Hn.isWeakMap=function(t){return eo(t)&&gs(t)==j},Hn.isWeakSet=function(t){return eo(t)&&"[object WeakSet]"==Er(t)},Hn.join=function(t,e){return null==t?"":Ge.call(t,e)},Hn.kebabCase=Xo,Hn.last=$s,Hn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i;return n!==r&&(s=(s=go(n))<0?vn(i+s,0):xn(s,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):He(t,Ue,s,!0)},Hn.lowerCase=Yo,Hn.lowerFirst=Go,Hn.lt=uo,Hn.lte=ho,Hn.max=function(t){return t&&t.length?mr(t,il,Mr):r},Hn.maxBy=function(t,e){return t&&t.length?mr(t,cs(e,2),Mr):r},Hn.mean=function(t){return Xe(t,il)},Hn.meanBy=function(t,e){return Xe(t,cs(e,2))},Hn.min=function(t){return t&&t.length?mr(t,il,Fr):r},Hn.minBy=function(t,e){return t&&t.length?mr(t,cs(e,2),Fr):r},Hn.stubArray=ml,Hn.stubFalse=bl,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=Al,Hn.nth=function(t,e){return t&&t.length?Ur(t,go(e)):r},Hn.noConflict=function(){return fe._===this&&(fe._=Ht),this},Hn.noop=cl,Hn.now=Ea,Hn.pad=function(t,e,n){t=vo(t);var r=(e=go(e))?pn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Xi(me(i),n)+t+Xi(ge(i),n)},Hn.padEnd=function(t,e,n){t=vo(t);var r=(e=go(e))?pn(t):0;return e&&r<e?t+Xi(e-r,n):t},Hn.padStart=function(t,e,n){t=vo(t);var r=(e=go(e))?pn(t):0;return e&&r<e?Xi(e-r,n)+t:t},Hn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),kn(vo(t).replace(st,""),e||0)},Hn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&xs(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=fo(t),e===r?(e=t,t=0):e=fo(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var s=An();return xn(t+s*(e-t+ue("1e-"+((s+"").length-1))),e)}return Kr(t,e)},Hn.reduce=function(t,e,n){var r=Ua(t)?De:Ve,i=arguments.length<3;return r(t,cs(e,4),n,i,pr)},Hn.reduceRight=function(t,e,n){var r=Ua(t)?Ne:Ve,i=arguments.length<3;return r(t,cs(e,4),n,i,fr)},Hn.repeat=function(t,e,n){return e=(n?xs(t,e,n):e===r)?1:go(e),$r(vo(t),e)},Hn.replace=function(){var t=arguments,e=vo(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Hn.result=function(t,e,n){var i=-1,s=(e=xi(e,t)).length;for(s||(s=1,t=r);++i<s;){var a=null==t?r:t[Ns(e[i])];a===r&&(i=s,a=n),t=Za(a)?a.call(t):a}return t},Hn.round=Sl,Hn.runInContext=t,Hn.sample=function(t){return(Ua(t)?Jn:Jr)(t)},Hn.size=function(t){if(null==t)return 0;if(Ya(t))return oo(t)?pn(t):t.length;var e=gs(t);return e==S||e==P?t.size:Nr(t).length},Hn.snakeCase=Vo,Hn.some=function(t,e,n){var i=Ua(t)?Be:si;return n&&xs(t,e,n)&&(e=r),i(t,cs(e,3))},Hn.sortedIndex=function(t,e){return ai(t,e)},Hn.sortedIndexBy=function(t,e,n){return oi(t,e,cs(n,2))},Hn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&za(t[r],e))return r}return-1},Hn.sortedLastIndex=function(t,e){return ai(t,e,!0)},Hn.sortedLastIndexBy=function(t,e,n){return oi(t,e,cs(n,2),!0)},Hn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ai(t,e,!0)-1;if(za(t[n],e))return n}return-1},Hn.startCase=Ko,Hn.startsWith=function(t,e,n){return t=vo(t),n=null==n?0:lr(go(n),0,t.length),e=ui(e),t.slice(n,n+e.length)==e},Hn.subtract=Cl,Hn.sum=function(t){return t&&t.length?Ke(t,il):0},Hn.sumBy=function(t,e){return t&&t.length?Ke(t,cs(e,2)):0},Hn.template=function(t,e,n){var i=Hn.templateSettings;n&&xs(t,e,n)&&(e=r),t=vo(t),e=ko({},e,i,Qi);var s,a,o=ko({},e.imports,i.imports,Qi),l=jo(o),c=Qe(o,l),u=0,h=e.interpolate||wt,d="__p += '",p=Tt((e.escape||wt).source+"|"+h.source+"|"+(h===Q?pt:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),f="//# sourceURL="+(Dt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ae+"]")+"\n";t.replace(p,function(e,n,r,i,o,l){return r||(r=i),d+=t.slice(u,l).replace(kt,an),n&&(s=!0,d+="' +\n__e("+n+") +\n'"),o&&(a=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),d+="';\n";var g=Dt.call(e,"variable")&&e.variable;if(g){if(ht.test(g))throw new St("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(U,""):d).replace(X,"$1").replace(Y,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Qo(function(){return Ct(l,f+"return "+d).apply(r,c)});if(m.source=d,$a(m))throw m;return m},Hn.times=function(t,e){if((t=go(t))<1||t>p)return[];var n=g,r=xn(t,g);e=cs(e),t-=g;for(var i=$e(r,e);++n<t;)e(n);return i},Hn.toFinite=fo,Hn.toInteger=go,Hn.toLength=mo,Hn.toLower=function(t){return vo(t).toLowerCase()},Hn.toNumber=bo,Hn.toSafeInteger=function(t){return t?lr(go(t),-9007199254740991,p):0===t?t:0},Hn.toString=vo,Hn.toUpper=function(t){return vo(t).toUpperCase()},Hn.trim=function(t,e,n){if((t=vo(t))&&(n||e===r))return Ze(t);if(!t||!(e=ui(e)))return t;var i=fn(t),s=fn(e);return ki(i,en(i,s),nn(i,s)+1).join("")},Hn.trimEnd=function(t,e,n){if((t=vo(t))&&(n||e===r))return t.slice(0,gn(t)+1);if(!t||!(e=ui(e)))return t;var i=fn(t);return ki(i,0,nn(i,fn(e))+1).join("")},Hn.trimStart=function(t,e,n){if((t=vo(t))&&(n||e===r))return t.replace(st,"");if(!t||!(e=ui(e)))return t;var i=fn(t);return ki(i,en(i,fn(e))).join("")},Hn.truncate=function(t,e){var n=30,i="...";if(to(e)){var s="separator"in e?e.separator:s;n="length"in e?go(e.length):n,i="omission"in e?ui(e.omission):i}var a=(t=vo(t)).length;if(on(t)){var o=fn(t);a=o.length}if(n>=a)return t;var l=n-pn(i);if(l<1)return i;var c=o?ki(o,0,l).join(""):t.slice(0,l);if(s===r)return c+i;if(o&&(l+=c.length-l),so(s)){if(t.slice(l).search(s)){var u,h=c;for(s.global||(s=Tt(s.source,vo(ft.exec(s))+"g")),s.lastIndex=0;u=s.exec(h);)var d=u.index;c=c.slice(0,d===r?l:d)}}else if(t.indexOf(ui(s),l)!=l){var p=c.lastIndexOf(s);p>-1&&(c=c.slice(0,p))}return c+i},Hn.unescape=function(t){return(t=vo(t))&&K.test(t)?t.replace(G,mn):t},Hn.uniqueId=function(t){var e=++Nt;return vo(t)+e},Hn.upperCase=$o,Hn.upperFirst=Zo,Hn.each=ya,Hn.eachRight=va,Hn.first=Ys,ll(Hn,(kl={},wr(Hn,function(t,e){Dt.call(Hn.prototype,e)||(kl[e]=t)}),kl),{chain:!1}),Hn.VERSION="4.17.21",Te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Hn[t].placeholder=Hn}),Te(["drop","take"],function(t,e){Xn.prototype[t]=function(n){n=n===r?1:vn(go(n),0);var i=this.__filtered__&&!e?new Xn(this):this.clone();return i.__filtered__?i.__takeCount__=xn(n,i.__takeCount__):i.__views__.push({size:xn(n,g),type:t+(i.__dir__<0?"Right":"")}),i},Xn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Te(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;Xn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:cs(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Te(["head","last"],function(t,e){var n="take"+(e?"Right":"");Xn.prototype[t]=function(){return this[n](1).value()[0]}}),Te(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Xn.prototype[t]=function(){return this.__filtered__?new Xn(this):this[n](1)}}),Xn.prototype.compact=function(){return this.filter(il)},Xn.prototype.find=function(t){return this.filter(t).head()},Xn.prototype.findLast=function(t){return this.reverse().find(t)},Xn.prototype.invokeMap=Zr(function(t,e){return"function"==typeof t?new Xn(this):this.map(function(n){return Lr(n,t,e)})}),Xn.prototype.reject=function(t){return this.filter(Ra(cs(t)))},Xn.prototype.slice=function(t,e){t=go(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Xn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=go(e))<0?n.dropRight(-e):n.take(e-t)),n)},Xn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Xn.prototype.toArray=function(){return this.take(g)},wr(Xn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),s=Hn[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);s&&(Hn.prototype[e]=function(){var e=this.__wrapped__,o=i?[1]:arguments,l=e instanceof Xn,c=o[0],u=l||Ua(e),h=function(t){var e=s.apply(Hn,Re([t],o));return i&&d?e[0]:e};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=a&&!d,g=l&&!p;if(!a&&u){e=g?e:new Xn(this);var m=t.apply(e,o);return m.__actions__.push({func:pa,args:[h],thisArg:r}),new Un(m,d)}return f&&g?t.apply(this,o):(m=this.thru(h),f?i?m.value()[0]:m.value():m)})}),Te(["pop","push","shift","sort","splice","unshift"],function(t){var e=Lt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Hn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ua(i)?i:[],t)}return this[n](function(n){return e.apply(Ua(n)?n:[],t)})}}),wr(Xn.prototype,function(t,e){var n=Hn[e];if(n){var r=n.name+"";Dt.call(jn,r)||(jn[r]=[]),jn[r].push({name:e,func:n})}}),jn[Hi(r,2).name]=[{name:"wrapper",func:r}],Xn.prototype.clone=function(){var t=new Xn(this.__wrapped__);return t.__actions__=Oi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Oi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Oi(this.__views__),t},Xn.prototype.reverse=function(){if(this.__filtered__){var t=new Xn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Xn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ua(t),r=e<0,i=n?t.length:0,s=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var s=n[r],a=s.size;switch(s.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=xn(e,t+a);break;case"takeRight":t=vn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=s.start,o=s.end,l=o-a,c=r?o:a-1,u=this.__iteratees__,h=u.length,d=0,p=xn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return gi(t,this.__actions__);var f=[];t:for(;l--&&d<p;){for(var g=-1,m=t[c+=e];++g<h;){var b=u[g],y=b.iteratee,v=b.type,x=y(m);if(2==v)m=x;else if(!x){if(1==v)continue t;break t}}f[d++]=m}return f},Hn.prototype.at=fa,Hn.prototype.chain=function(){return da(this)},Hn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===r&&(this.__values__=po(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Hn.prototype.plant=function(t){for(var e,n=this;n instanceof Wn;){var i=Fs(n);i.__index__=0,i.__values__=r,e?s.__wrapped__=i:e=i;var s=i;n=n.__wrapped__}return s.__wrapped__=t,e},Hn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Xn){var e=t;return this.__actions__.length&&(e=new Xn(this)),(e=e.reverse()).__actions__.push({func:pa,args:[ta],thisArg:r}),new Un(e,this.__chain__)}return this.thru(ta)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,Jt&&(Hn.prototype[Jt]=function(){return this}),Hn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(fe._=bn,define(function(){return bn})):me?((me.exports=bn)._=bn,ge._=bn):fe._=bn}).call(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],832:[function(t,e,n){!function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t)}()},{}],833:[function(t,e,n){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})},{}],834:[function(t,e,n){!function(){function t(){var t=Array.prototype.slice.call(arguments),e=document.createDocumentFragment();t.forEach(function(t){var n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))}),this.appendChild(e)}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:t})})}()},{}],835:[function(t,e,n){!function(){function t(){null!==this.parentNode&&this.parentNode.removeChild(this)}[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:t})})}()},{}],836:[function(t,e,n){
6
6
  /*! pym.js - v1.3.2 - 2018-02-13 */
7
- !function(t){"function"==typeof define&&define.amd?define(t):void 0!==e&&e.exports?e.exports=t():window.pym=t.call(this)}(function(){var t="xPYMx",e={},n=function(t){var e=document.createEvent("Event");e.initEvent("pym:"+t,!0,!0),document.dispatchEvent(e)},r=function(t){var e=new RegExp("[\\?&]"+t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]")+"=([^&#]*)").exec(location.search);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))},i=function(t,e){if(("*"===e.xdomain||t.origin.match(new RegExp(e.xdomain+"$")))&&"string"==typeof t.data)return!0},s=function(e,n,r){return["pym",e,n,r].join(t)},a=Date.now||function(){return(new Date).getTime()},o=function(){for(var t=e.autoInitInstances.length-1;t>=0;t--){var n=e.autoInitInstances[t];n.el.getElementsByTagName("iframe").length&&n.el.getElementsByTagName("iframe")[0].contentWindow||e.autoInitInstances.splice(t,1)}};return e.autoInitInstances=[],e.autoInit=function(t){var r=document.querySelectorAll("[data-pym-src]:not([data-pym-auto-initialized])"),i=r.length;o();for(var s=0;s<i;++s){var a=r[s];a.setAttribute("data-pym-auto-initialized",""),""===a.id&&(a.id="pym-"+s+"-"+Math.random().toString(36).substr(2,5));var l=a.getAttribute("data-pym-src"),c={xdomain:"string",title:"string",name:"string",id:"string",sandbox:"string",allowfullscreen:"boolean",parenturlparam:"string",parenturlvalue:"string",optionalparams:"boolean",trackscroll:"boolean",scrollwait:"number"},u={};for(var h in c)if(null!==a.getAttribute("data-pym-"+h))switch(c[h]){case"boolean":u[h]=!("false"===a.getAttribute("data-pym-"+h));break;case"string":u[h]=a.getAttribute("data-pym-"+h);break;case"number":var d=Number(a.getAttribute("data-pym-"+h));isNaN(d)||(u[h]=d)}var p=new e.Parent(a.id,l,u);e.autoInitInstances.push(p)}return t||n("pym-initialized"),e.autoInitInstances},e.Parent=function(e,n,r){for(var l in this.id=e,this.url=n,this.el=document.getElementById(e),this.iframe=null,this.settings={xdomain:"*",optionalparams:!0,parenturlparam:"parentUrl",parenturlvalue:window.location.href,trackscroll:!1,scrollwait:100},this.messageRegex=function(e){return new RegExp("^"+["pym",e,"(\\S+)","(.*)"].join(t)+"$")}(this.id),this.messageHandlers={},r=r||{},this._constructIframe=function(){var t=this.el.offsetWidth.toString();this.iframe=document.createElement("iframe");var e="",n=this.url.indexOf("#");for(n>-1&&(e=this.url.substring(n,this.url.length),this.url=this.url.substring(0,n)),this.url.indexOf("?")<0?this.url+="?":this.url+="&",this.iframe.src=this.url+"initialWidth="+t+"&childId="+this.id,this.settings.optionalparams&&(this.iframe.src+="&parentTitle="+encodeURIComponent(document.title),this.iframe.src+="&"+this.settings.parenturlparam+"="+encodeURIComponent(this.settings.parenturlvalue)),this.iframe.src+=e,this.iframe.setAttribute("width","100%"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginheight","0"),this.iframe.setAttribute("frameborder","0"),this.settings.title&&this.iframe.setAttribute("title",this.settings.title),void 0!==this.settings.allowfullscreen&&!1!==this.settings.allowfullscreen&&this.iframe.setAttribute("allowfullscreen",""),void 0!==this.settings.sandbox&&"string"==typeof this.settings.sandbox&&this.iframe.setAttribute("sandbox",this.settings.sandbox),this.settings.id&&(document.getElementById(this.settings.id)||this.iframe.setAttribute("id",this.settings.id)),this.settings.name&&this.iframe.setAttribute("name",this.settings.name);this.el.firstChild;)this.el.removeChild(this.el.firstChild);this.el.appendChild(this.iframe),window.addEventListener("resize",this._onResize),this.settings.trackscroll&&window.addEventListener("scroll",this._throttleOnScroll)},this._onResize=function(){this.sendWidth(),this.settings.trackscroll&&this.sendViewportAndIFramePosition()}.bind(this),this._onScroll=function(){this.sendViewportAndIFramePosition()}.bind(this),this._fire=function(t,e){if(t in this.messageHandlers)for(var n=0;n<this.messageHandlers[t].length;n++)this.messageHandlers[t][n].call(this,e)},this.remove=function(){window.removeEventListener("message",this._processMessage),window.removeEventListener("resize",this._onResize),this.el.removeChild(this.iframe),o()},this._processMessage=function(t){if(i(t,this.settings)&&"string"==typeof t.data){var e=t.data.match(this.messageRegex);if(!e||3!==e.length)return!1;var n=e[1],r=e[2];this._fire(n,r)}}.bind(this),this._onHeightMessage=function(t){var e=parseInt(t);this.iframe.setAttribute("height",e+"px")},this._onNavigateToMessage=function(t){(function(t){if(t.match(/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/gi))return!0})(t)&&(document.location.href=t)},this._onScrollToChildPosMessage=function(t){var e=document.getElementById(this.id).getBoundingClientRect().top+window.pageYOffset+parseInt(t);window.scrollTo(0,e)},this.onMessage=function(t,e){t in this.messageHandlers||(this.messageHandlers[t]=[]),this.messageHandlers[t].push(e)},this.sendMessage=function(t,e){this.el.getElementsByTagName("iframe").length&&(this.el.getElementsByTagName("iframe")[0].contentWindow?this.el.getElementsByTagName("iframe")[0].contentWindow.postMessage(s(this.id,t,e),"*"):this.remove())},this.sendWidth=function(){var t=this.el.offsetWidth.toString();this.sendMessage("width",t)},this.sendViewportAndIFramePosition=function(){var t=this.iframe.getBoundingClientRect(),e=(window.innerWidth||document.documentElement.clientWidth)+" "+(window.innerHeight||document.documentElement.clientHeight);e+=" "+t.top+" "+t.left,e+=" "+t.bottom+" "+t.right,this.sendMessage("viewport-iframe-position",e)},r)this.settings[l]=r[l];return this._throttleOnScroll=function(t,e,n){var r,i,s,o=null,l=0;n||(n={});var c=function(){l=!1===n.leading?0:a(),o=null,s=t.apply(r,i),o||(r=i=null)};return function(){var u=a();l||!1!==n.leading||(l=u);var h=e-(u-l);return r=this,i=arguments,h<=0||h>e?(o&&(clearTimeout(o),o=null),l=u,s=t.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=setTimeout(c,h)),s}}(this._onScroll.bind(this),this.settings.scrollwait),this.onMessage("height",this._onHeightMessage),this.onMessage("navigateTo",this._onNavigateToMessage),this.onMessage("scrollToChildPos",this._onScrollToChildPosMessage),this.onMessage("parentPositionInfo",this.sendViewportAndIFramePosition),window.addEventListener("message",this._processMessage,!1),this._constructIframe(),this},e.Child=function(e){this.parentWidth=null,this.id=null,this.parentTitle=null,this.parentUrl=null,this.settings={renderCallback:null,xdomain:"*",polling:0,parenturlparam:"parentUrl"},this.timerId=null,this.messageRegex=null,this.messageHandlers={},e=e||{},this.onMessage=function(t,e){t in this.messageHandlers||(this.messageHandlers[t]=[]),this.messageHandlers[t].push(e)},this._fire=function(t,e){if(t in this.messageHandlers)for(var n=0;n<this.messageHandlers[t].length;n++)this.messageHandlers[t][n].call(this,e)},this._processMessage=function(t){if(i(t,this.settings)&&"string"==typeof t.data){var e=t.data.match(this.messageRegex);if(e&&3===e.length){var n=e[1],r=e[2];this._fire(n,r)}}}.bind(this),this._onWidthMessage=function(t){var e=parseInt(t);e!==this.parentWidth&&(this.parentWidth=e,this.settings.renderCallback&&this.settings.renderCallback(e),this.sendHeight())},this.sendMessage=function(t,e){window.parent.postMessage(s(this.id,t,e),"*")},this.sendHeight=function(){var t=document.getElementsByTagName("body")[0].offsetHeight.toString();return this.sendMessage("height",t),t}.bind(this),this.getParentPositionInfo=function(){this.sendMessage("parentPositionInfo")},this.scrollParentTo=function(t){this.sendMessage("navigateTo","#"+t)},this.navigateParentTo=function(t){this.sendMessage("navigateTo",t)},this.scrollParentToChildEl=function(t){var e=document.getElementById(t).getBoundingClientRect().top+window.pageYOffset;this.scrollParentToChildPos(e)},this.scrollParentToChildPos=function(t){this.sendMessage("scrollToChildPos",t.toString())};for(var a in this.remove=function(){window.removeEventListener("message",this._processMessage),this.timerId&&clearInterval(this.timerId)},e)this.settings[a]=e[a];this.id=r("childId")||e.id,this.messageRegex=new RegExp("^pym"+t+this.id+t+"(\\S+)"+t+"(.*)$");var o=parseInt(r("initialWidth"));return this.parentUrl=r(this.settings.parenturlparam),this.parentTitle=r("parentTitle"),this.onMessage("width",this._onWidthMessage),window.addEventListener("message",this._processMessage,!1),this.settings.renderCallback&&this.settings.renderCallback(o),this.sendHeight(),this.settings.polling&&(this.timerId=window.setInterval(this.sendHeight,this.settings.polling)),function(t){var e,r=document.getElementsByTagName("html")[0],i=r.className;try{e=window.self!==window.top?"embedded":"not-embedded"}catch(t){e="embedded"}i.indexOf(e)<0&&(r.className=i?i+" "+e:e,t&&t(e),n("marked-embedded"))}(e.onMarkedEmbeddedStatus),this},"undefined"!=typeof document&&e.autoInit(!0),e})},{}],837:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=[],i=[],s=[],a=!1;function o(){a||(a=!0,l())}function l(){r.forEach(function(t){return t()}),i.forEach(function(t){return t()}),s.forEach(function(t){return t()}),requestAnimationFrame(l)}n.AddInitialTick=function(t){r.push(t),o()},n.AddPreTick=function(t){i.push(t),o()},n.AddTick=function(t){s.push(t),o()}},{}],838:[function(t,e,n){"use strict";var r,i;let s,a;function o(t,e){return t<e?1:t>e?-1:0}Object.defineProperty(n,"__esModule",{value:!0}),n.getViewportDetails=n.ScrollDirectionY=n.ScrollDirectionX=void 0,function(t){t[t.Left=-1]="Left",t[t.None=0]="None",t[t.Right=1]="Right"}(r=n.ScrollDirectionX||(n.ScrollDirectionX={})),function(t){t[t.Up=-1]="Up",t[t.None=0]="None",t[t.Down=1]="Down"}(i=n.ScrollDirectionY||(n.ScrollDirectionY={})),n.getViewportDetails=function(){return function(){let t;a?(t=Object.assign({},a),delete t.previous,delete t.changed):s=function(){const t="viewport-details-height-element";let e=document.getElementById(t);e||(e=document.createElement("div"),e.id=t,e.style.position="fixed",e.style.height="100vh",document.documentElement.appendChild(e));return e}();const e=window.innerWidth,n=window.innerHeight,l=s.offsetHeight,c=window.pageXOffset,u=window.pageYOffset,h=!!t&&(t.width!==e||t.height!==n),d=!!t&&(t.scrollX!==c||t.scrollY!==u);a={width:e,height:n,heightCollapsedControls:l,scrollX:c,scrollY:u,scrollDirectionX:t?o(t.scrollX,c):r.None,scrollDirectionY:t?o(t.scrollY,u):i.None,resized:h,scrolled:d,changed:h||d,previous:t}}(),a}},{}],839:[function(t,e,n){(function(t){(function(){!function(t,r){"object"==typeof n&&void 0!==e?r(n):"function"==typeof define&&define.amd?define(["exports"],r):r(t.WHATWGFetch={})}(this,function(e){"use strict";var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t||{},r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,o="ArrayBuffer"in n;if(o)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function f(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function g(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function m(t){var e=new FileReader,n=g(e);return e.readAsArrayBuffer(t),n}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&s&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=f(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(s)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,n,r,i,s=f(this);if(s)return s;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=g(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8",e.readAsText(t,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(t,e){t=u(t),e=h(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},p.prototype.delete=function(t){delete this.map[u(t)]},p.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},p.prototype.set=function(t,e){this.map[u(t)]=h(e)},p.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},p.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),d(t)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),d(t)},i&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i,s=(e=e||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,s||null==t._bodyInit||(s=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(r=e.method||this.method||"GET",i=r.toUpperCase(),v.indexOf(i)>-1?i:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function k(t,e){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var t=new k(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var A=[301,302,303,307,308];k.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new k(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(t,r){return new Promise(function(i,a){var l=new x(t,r);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var t,e,n={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{e.append(r,i)}catch(t){}}}),e)};l.url.startsWith("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){i(new k(r,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(s?c.responseType="blob":o&&(c.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof p||n.Headers&&r.headers instanceof n.Headers)){var f=[];Object.getOwnPropertyNames(r.headers).forEach(function(t){f.push(u(t)),c.setRequestHeader(t,h(r.headers[t]))}),l.headers.forEach(function(t,e){-1===f.indexOf(e)&&c.setRequestHeader(e,t)})}else l.headers.forEach(function(t,e){c.setRequestHeader(e,t)});l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}S.polyfill=!0,n.fetch||(n.fetch=S,n.Headers=p,n.Request=x,n.Response=k),e.Headers=p,e.Request=x,e.Response=k,e.fetch=S,Object.defineProperty(e,"__esModule",{value:!0})})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],840:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-access-code"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./access-code"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./access-code":841,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],841:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.input=e;var n=parseInt(e.getAttribute("data-group-size"),10);this.groupingRegex=new RegExp(".{1,".concat(n,"}"),"g"),this.bindEventListeners()},[{key:"bindEventListeners",value:function(){this.input.addEventListener("input",this.handleInput.bind(this))}},{key:"handleInput",value:function(){var t=this.input.selectionStart,e=t!==this.input.value.length;this.input.value=(this.input.value.replace(/\s/g,"").match(this.groupingRegex)||[]).join(" "),e&&this.input.setSelectionRange(t,t)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],842:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r,i,o,c;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-accordion__toggle-all"))).length){e.next=3;break}return r=(0,a.default)(document.querySelectorAll(".ons-js-details")),e.next=1,Promise.resolve().then(function(){return l(t("../details/details"))});case 1:return i=e.sent.default,e.next=2,Promise.resolve().then(function(){return l(t("./accordion"))});case 2:o=e.sent.default,c=r.map(function(t){return new i(t)}),n.forEach(function(t){new o(t,c)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"../details/details":883,"./accordion":843,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],843:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("dompurify"));n.default=function(){return(0,s.default)(function t(e,n){var r=this;(0,i.default)(this,t),this.openDetailsEls=0,this.button=e,this.buttonInner=e.querySelector(".ons-accordion__toggle-all-inner"),this.group=e.getAttribute("data-group"),this.detailsEls=n.filter(function(t){return t.group===r.group}),this.totalDetailsEls=this.detailsEls.length,this.buttonOpenEl=this.buttonInner.querySelector(".ons-btn__text"),this.buttonOpen=this.buttonOpenEl.innerHTML.trim(),this.closeButton=e.getAttribute("data-close-all"),this.open=this.detailsEls.find(function(t){return!0===t.open}),this.detailsEls.forEach(function(t){t.onOpen=r.onOpen.bind(r),t.onClose=r.onClose.bind(r)}),this.open&&(this.openDetailsEls=this.totalDetailsEls),this.button.addEventListener("click",this.handleButtonClick.bind(this)),this.setButton(),this.button.classList.remove("ons-u-d-no")},[{key:"handleButtonClick",value:function(t){t.preventDefault();var e=!this.canClose();this.detailsEls.forEach(function(t){t.setOpen(e)})}},{key:"onOpen",value:function(){this.openDetailsEls++,this.setButton()}},{key:"onClose",value:function(){this.openDetailsEls--,this.setButton()}},{key:"canClose",value:function(){return this.openDetailsEls===this.totalDetailsEls}},{key:"setButton",value:function(){this.canClose()?(this.buttonInner.innerHTML=a.default.sanitize(this.closeButton),this.button.setAttribute("data-ga-label",this.buttonOpen),this.button.setAttribute("aria-label",this.button.getAttribute("data-close-aria-label")),this.button.setAttribute("aria-expanded","true")):(this.buttonInner.innerHTML=a.default.sanitize(this.buttonOpen),this.button.setAttribute("aria-label",this.button.getAttribute("data-open-aria-label")),this.button.setAttribute("data-ga-label",this.closeButton),this.button.setAttribute("aria-expanded","false"))}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,dompurify:825}],844:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-address-autosuggest"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./autosuggest.address"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./autosuggest.address":846,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],845:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("../../js/inpagelink"));n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.context=e,this.autosuggest=document.querySelector(".".concat("ons-js-address-autosuggest")),this.inputContainer=e.querySelector(".".concat("ons-autosuggest")),this.input=this.inputContainer.querySelector(".".concat("ons-js-autosuggest-input")),this.search=e.querySelector(".".concat("ons-js-address-input__search")),this.errorPanel=document.querySelector(".".concat("ons-js-autosuggest-error-panel")),this.errorTitle=this.inputContainer.getAttribute("data-error-title"),this.errorMessageEnter=this.inputContainer.getAttribute("data-error-enter"),this.errorMessageSelect=this.inputContainer.getAttribute("data-error-select"),this.errorMessage=this.inputContainer.getAttribute("data-error-message")},[{key:"showErrorPanel",value:function(){if(!this.errorPanel){var t=document.querySelector(".ons-question"),e=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div"),s=document.createElement("div"),a=document.createElement("p"),l=document.createElement("a");e.className="ons-panel ons-panel--error ons-u-mb-l ons-js-autosuggest-error-panel",n.className="ons-panel__header",r.className="ons-panel__title ons-u-fs-r--b",s.className="ons-panel__body",l.className="ons-list__link ons-js-inpagelink ons-js-error",l.href="#autosuggest-input-error",r.innerHTML=this.errorTitle,e.appendChild(n),n.appendChild(r),e.appendChild(s),s.appendChild(a),a.appendChild(l),t.insertBefore(e,t.firstChild);var c=(0,i.default)(document.getElementsByClassName("ons-js-inpagelink"));(0,o.default)(c);var u=document.createElement("div"),h=document.createElement("div"),d=document.createElement("p"),p=document.createElement("strong");u.className="ons-panel ons-panel--error ons-panel--no-title",u.id="autosuggest-input-error",h.className="ons-panel__body",d.className="ons-panel__error",p.className="ons-panel__error-message",u.appendChild(h),h.appendChild(d),d.appendChild(p),h.appendChild(this.search),this.input.classList.add("ons-input--error"),this.context.appendChild(u),this.input.focus()}document.querySelector(".ons-js-error").innerHTML=""===this.input.value?this.errorMessageEnter:this.errorMessageSelect,document.querySelector(".ons-panel__error-message").innerHTML=""===this.input.value?this.errorMessageEnter:this.errorMessageSelect}},{key:"removeErrorPanel",value:function(){this.errorPanel.remove(),this.autosuggest.appendChild(this.search),this.input.classList.remove("ons-input--error"),document.getElementById("autosuggest-input-error").remove()}}])}()},{"../../js/inpagelink":927,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],846:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classSearch=n.classNotEditable=n.classMandatory=n.classInputUPRN=n.classInputContainer=n.classInput=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/defineProperty")),a=r(t("@babel/runtime/helpers/slicedToArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("@babel/runtime/helpers/classCallCheck")),c=r(t("@babel/runtime/helpers/createClass")),u=r(t("../../js/abortable-fetch")),h=r(t("../autosuggest/autosuggest.ui")),d=r(t("./autosuggest.address.error")),p=r(t("./autosuggest.address.setter"));function f(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f: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 s,a=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var m=n.classInputContainer="ons-autosuggest",b=n.classNotEditable="ons-js-address-not-editable",y=n.classMandatory="ons-js-address-mandatory",v=n.classSearch="ons-js-address-input__search",x=n.classInput="ons-js-autosuggest-input",w=n.classInputUPRN="ons-js-hidden-uprn";n.default=function(){return(0,c.default)(function t(e){(0,l.default)(this,t),this.context=e,this.input=e.querySelector(".".concat(x)),this.search=e.querySelector(".".concat(v)),this.addressReplaceChars=[","],this.sanitisedQuerySplitNumsChars=!0,this.form=e.closest("form"),this.container=e.querySelector(".".concat(m)),this.errorMessage=this.container.getAttribute("data-error-message"),this.groupCount=this.container.getAttribute("data-group-count"),this.authorizationToken=this.container.getAttribute("data-authorization-token"),this.uprn=e.querySelector(".".concat(w)),this.fetch=null,this.totalResults=0,this.errored=!1,this.isEditable=!e.querySelector(".".concat(b)),this.isMandatory=!!e.querySelector(".".concat(y)),this.addressSelected=!1,this.groupQuery="",this.selectedAddressValue="",this.form&&this.form.addEventListener("submit",this.handleSubmit.bind(this)),this.isEditable&&(this.addressSetter=new p.default(e)),this.autosuggest=new h.default({context:this.container,onSelect:this.onAddressSelect.bind(this),lang:this.lang,suggestionFunction:this.suggestAddresses.bind(this),sanitisedQueryReplaceChars:this.addressReplaceChars,sanitisedQuerySplitNumsChars:this.sanitisedQuerySplitNumsChars,suggestOnBoot:!0,handleUpdate:!0}),this.apiDomain=this.container.getAttribute("data-api-domain"),this.lookupUrl="".concat(this.apiDomain,"/addresses/eq?input="),this.lookupGroupUrl="".concat(this.apiDomain,"/addresses/eq/bucket?"),this.retrieveUrl="".concat(this.apiDomain,"/addresses/eq/uprn/"),this.manualQueryParams=this.container.getAttribute("data-query-params"),this.regionCode=this.container.getAttribute("data-options-region-code"),this.epoch=this.container.getAttribute("data-options-one-year-ago"),this.classificationFilter=this.container.getAttribute("data-options-address-type"),this.checkAPIStatus()},[{key:"lang",get:function(){return document.documentElement.getAttribute("lang").toLowerCase()}},{key:"checkAPIStatus",value:(E=(0,o.default)(i.default.mark(function t(){var e,n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.fetch=(0,u.default)(this.lookupUrl+"cf142&limit=10",{method:"GET",headers:this.setAuthorization(this.authorizationToken)}),t.prev=1,t.next=2,this.fetch.send();case 2:return e=t.sent,t.next=3,e.json();case 3:(n=t.sent.status.code)>400&&(this.isEditable?this.handleAPIError():this.autosuggest.handleNoResults(n)),t.next=5;break;case 4:t.prev=4,t.catch(1),this.isEditable?this.handleAPIError():this.autosuggest.handleNoResults(status);case 5:case"end":return t.stop()}},t,this,[[1,4]])})),function(){return E.apply(this,arguments)})},{key:"suggestAddresses",value:(C=(0,o.default)(i.default.mark(function t(e,n,r){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(0,a.default)(n,0),this.fetch&&"DONE"!==this.fetch.status&&this.fetch.abort(),t.next=1,this.findAddress(e,r);case 1:return t.abrupt("return",t.sent);case 2:case"end":return t.stop()}},t,this)})),function(t,e,n){return C.apply(this,arguments)})},{key:"findAddress",value:(S=(0,o.default)(i.default.mark(function t(e,n){var r,s,a,o,l,c,h,d,p,f,g;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.manualQueryParams?(a=this.container.getAttribute("data-query-params"),s=this.lookupUrl+e+a):(o=this.testFullPostcodeQuery(e),l=o?100:10,r=n?this.lookupGroupUrl+this.groupQuery:this.lookupUrl+e+"&limit="+l,s=this.generateUrlParams(r),o&&!1!==n&&(s+="&groupfullpostcodes=combo")),this.fetch=(0,u.default)(s,{method:"GET",headers:this.setAuthorization(this.authorizationToken)}),t.next=1,this.fetch.send();case 1:return c=t.sent,t.next=2,c.json();case 2:return h=t.sent,d=h.status.code,p=h.response,f=h.response.limit,t.next=3,this.mapFindResults(p,f,d);case 3:return g=t.sent,t.abrupt("return",g);case 4:case"end":return t.stop()}},t,this)})),function(t,e){return S.apply(this,arguments)})},{key:"mapFindResults",value:(A=(0,o.default)(i.default.mark(function t(e,n,r){var s,a,o;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.total,!(e.partpostcode||"combo"===e.groupfullpostcodes&&e.postcodes&&e.postcodes.length>1)){t.next=2;break}return t.next=1,this.postcodeGroupsMapping(e);case 1:s=t.sent,a=s,t.next=5;break;case 2:if(!e.addresses){t.next=4;break}return t.next=3,this.addressMapping(e);case 3:s=t.sent,a=s?s.results.sort():null,t.next=5;break;case 4:a=e.addresses;case 5:return t.abrupt("return",{results:a,totalResults:o,limit:n,status:r});case 6:case"end":return t.stop()}},t,this)})),function(t,e,n){return A.apply(this,arguments)})},{key:"addressMapping",value:(k=(0,o.default)(i.default.mark(function t(e){var n,r,a=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.addresses)[0]){t.next=1;break}return r[0]&&r[0].bestMatchAddress?n=r.map(function(t){return{uprn:t.uprn,address:t.bestMatchAddress,type:t.bestMatchAddressType}}):r[0]&&r[0].formattedAddress&&(n=r.map(function(t){return{uprn:t.uprn,address:t.formattedAddress,type:t.addressType}})),e=n.map(function(t){var e=t.uprn,n=t.address,r=t.type;return(0,s.default)((0,s.default)((0,s.default)({},a.lang,n),"uprn",e),"type",r)}),t.abrupt("return",{results:e,limit:e.limit});case 1:case"end":return t.stop()}},t)})),function(t){return k.apply(this,arguments)})},{key:"postcodeGroupsMapping",value:(g=(0,o.default)(i.default.mark(function t(e){var n,r,a,o=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.postcodes,r=n.map(function(t){var e=t.postcode,n=t.postTown,r=t.streetName,i=t.townName,a=t.addressCount,l=t.firstUprn;return(0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)({},o.lang,r+", "+(i===n?n:i+", "+n)+", "+e+' (<span class="ons-autosuggest__group">'+o.groupCount.replace("{n}",a)+"</span>)"),"postcode",e),"streetName",r),"townName",i),"postTown",n),"firstUprn",l),"addressCount",a)}),t.next=1,this.replaceSingleCountAddresses(r);case 1:return a=t.sent,t.abrupt("return",a);case 2:case"end":return t.stop()}},t,this)})),function(t){return g.apply(this,arguments)})},{key:"replaceSingleCountAddresses",value:(r=(0,o.default)(i.default.mark(function t(e){var n,r,s,a,o=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=f(e),t.prev=1,s=i.default.mark(function t(){var n,s,a;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(1!==(n=r.value).addressCount||0===n.firstUprn){t.next=2;break}return t.next=1,o.createAddressObject(n.firstUprn);case 1:s=t.sent,a=e.findIndex(function(t){return t.firstUprn==s.uprn}),e[a]=s;case 2:case"end":return t.stop()}},t)}),n.s();case 2:if((r=n.n()).done){t.next=4;break}return t.delegateYield(s(),"t0",3);case 3:t.next=2;break;case 4:t.next=6;break;case 5:t.prev=5,a=t.catch(1),n.e(a);case 6:return t.prev=6,n.f(),t.finish(6);case 7:return t.abrupt("return",e);case 8:case"end":return t.stop()}},t,null,[[1,5,6,7]])})),function(t){return r.apply(this,arguments)})},{key:"createAddressObject",value:(n=(0,o.default)(i.default.mark(function t(e){var n,r,a;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.retrieveAddress(e);case 1:return n=t.sent,r=n.response.address.formattedAddress,a=n.response.address.uprn,t.abrupt("return",(0,s.default)((0,s.default)({},this.lang,r),"uprn",a));case 2:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"testFullPostcodeQuery",value:function(t){if(/\b((?:(?:gir)|(?:[a-pr-uwyz])(?:(?:[0-9](?:[a-hjkpstuw]|[0-9])?)|(?:[a-hk-y][0-9](?:[0-9]|[abehmnprv-y])?)))) ?([0-9][abd-hjlnp-uw-z]{2})\b/i.test(t))return!0}},{key:"retrieveAddress",value:(e=(0,o.default)(i.default.mark(function t(e){var n,r,s,a,o,l=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:null,r=this.retrieveUrl+e,s=this.generateUrlParams(r,e,n),this.fetch=(0,u.default)(s,{method:"GET",headers:this.setAuthorization(this.authorizationToken)}),t.next=1,this.fetch.send();case 1:return a=t.sent,t.next=2,a.json();case 2:return o=t.sent,t.abrupt("return",o);case 3:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"onAddressSelect",value:(t=(0,o.default)(i.default.mark(function t(e){var n,r;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.uprn){t.next=5;break}return t.prev=1,t.next=2,this.retrieveAddress(e.uprn,e.type);case 2:n=t.sent,this.isEditable?n.status.code>=403?this.autosuggest.handleNoResults(403):(this.addressSetter.setAddress(this.createAddressLines(n)),this.addressSelected=!0):(this.selectedAddressValue=e.displayText,this.autosuggest.input.value=e.displayText,this.uprn.value=e.uprn,this.addressSelected=!0),t.next=4;break;case 3:throw t.prev=3,r=t.catch(1),this.isEditable?this.handleAPIError():this.autosuggest.handleNoResults(403),r;case 4:t.next=6;break;case 5:e.postcode&&(this.autosuggest.input.value=e.streetName+", "+(e.townName===e.postTown?e.postTown:e.townName+", "+e.postTown)+", "+e.postcode,this.autosuggest.input.focus(),this.groupQuery="postcode="+e.postcode+"&streetname="+e.streetName+"&townname="+e.townName,this.autosuggest.handleChange(!0));case 6:case"end":return t.stop()}},t,this,[[1,3]])})),function(e){return t.apply(this,arguments)})},{key:"createAddressLines",value:function(t){var e=t.response.address;return{addressLine1:e.addressLine1,addressLine2:e.addressLine2,addressLine3:e.addressLine3,townName:e.townName,postcode:e.postcode,uprn:e.uprn}}},{key:"generateUrlParams",value:function(t,e,n){var r,i=t;return r=n?n.toLowerCase():"paf",e?e&&(i=t+"?addresstype="+r):(this.classificationFilter&&"residential"!==this.classificationFilter&&(i=i+"&classificationfilter="+this.classificationFilter),"workplace"===this.classificationFilter&&("gb-eng"===this.regionCode?i+="&eboost=10":"gb-wls"===this.regionCode&&(i+="&wboost=10")),"gb-nir"===this.regionCode&&("educational"===this.classificationFilter?i+="&eboost=0&sboost=0&wboost=0":i+="&nboost=10"),"cy"===this.lang&&(i+="&favourwelsh=true")),"true"===this.epoch&&(i+="&epoch=75"),i}},{key:"handleAPIError",value:function(){this.addressSetter.setManualMode(!0,!1),document.querySelector(".ons-js-address-search-btn").classList.add("ons-u-d-no")}},{key:"handleSubmit",value:function(t){var e=!1;this.isEditable&&(e=this.addressSetter.manualMode,this.addressSetter.checkManualInputsValues(!1)),this.isMandatory&&!e&&(!this.addressSelected||""===this.input.value||!this.isEditable&&this.checkValueHasBeenUpdated(this.selectedAddressValue))&&(t.preventDefault(),this.handleError=new d.default(this.context),this.handleError.showErrorPanel(),this.autosuggest.setAriaStatus(this.errorMessage))}},{key:"checkValueHasBeenUpdated",value:function(t){if(t!==this.input.value)return!0}},{key:"setAuthorization",value:function(t){return this.authorization="Bearer ".concat(t),new Headers({Authorization:this.authorization})}}]);var t,e,n,r,g,k,A,S,C,E}()},{"../../js/abortable-fetch":919,"../autosuggest/autosuggest.ui":851,"./autosuggest.address.error":845,"./autosuggest.address.setter":847,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/slicedToArray":23,"@babel/runtime/regenerator":29}],847:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classmanualLink=n.classTown=n.classSearchButton=n.classSearch=n.classPostcode=n.classOrganisation=n.classManual=n.classLine2=n.classLine1=n.classJsErrorPanel=n.classInputUPRN=n.classErrorPanel=n.classAutosuggestInput=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("./autosuggest.address.error")),o=n.classAutosuggestInput="ons-js-autosuggest-input",l=n.classOrganisation="ons-js-address-organisation",c=n.classLine1="ons-js-address-line1",u=n.classLine2="ons-js-address-line2",h=n.classTown="ons-js-address-town",d=n.classPostcode="ons-js-address-postcode",p=n.classInputUPRN="ons-js-hidden-uprn",f=n.classSearch="ons-js-address-input__search",g=n.classManual="ons-js-address-input__manual",m=n.classSearchButton="ons-js-address-search-btn",b=n.classmanualLink="ons-js-address-manual-btn",y=n.classErrorPanel="ons-panel--error",v=n.classJsErrorPanel="ons-js-autosuggest-error-panel";n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.context=e,this.input=e.querySelector(".".concat(o)),this.organisation=e.querySelector(".".concat(l)),this.line1=e.querySelector(".".concat(c)),this.line2=e.querySelector(".".concat(u)),this.town=e.querySelector(".".concat(h)),this.postcode=e.querySelector(".".concat(d)),this.uprn=e.querySelector(".".concat(p)),this.manualInputs=[this.organisation,this.line1,this.line2,this.town,this.postcode,this.uprn],this.search=e.querySelector(".".concat(f)),this.manual=e.querySelector(".".concat(g)),this.searchButton=e.querySelector(".".concat(m)),this.manualLink=e.querySelector(".".concat(b)),this.errorPanel=document.querySelector(".".concat(y)),this.manualMode=!0,this.originalValues=[],this.searchButton&&this.searchButton.addEventListener("click",this.toggleMode.bind(this)),this.manualLink&&this.manualLink.addEventListener("click",this.toggleMode.bind(this)),this.line1.value||this.line2.value||this.town.value||this.postcode.value||this.errorPanel?this.setManualMode(!0,!1):this.toggleMode()},[{key:"toggleMode",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setManualMode(!this.manualMode,t)}},{key:"setManualMode",value:function(t,e){if(this.manual.classList[t?"remove":"add"]("ons-u-db-no-js_enabled"),this.search.classList[t?"add":"remove"]("ons-u-d-no"),this.errorPanel&&this.errorPanel.classList[t?"remove":"add"]("ons-u-d-no"),e&&this.onUnsetAddress(),t){if(this.input.value="",this.JsErrorPanel=document.querySelector(".".concat(v)),this.JsErrorPanel)new a.default(this.context).removeErrorPanel();this.checkManualInputsValues(!0)}this.manualMode=t}},{key:"setAddress",value:function(t){this.clearManualInputs(!1),t.addressLine3?(this.line1.value=t.addressLine1+", "+t.addressLine2,this.line2.value=t.addressLine3):(this.line1.value=t.addressLine1,this.line2.value=t.addressLine2),this.town.value=t.townName,this.postcode.value=t.postcode,this.uprn.value=t.uprn,this.setManualMode(!0,!1)}},{key:"onUnsetAddress",value:function(){this.clearManualInputs()}},{key:"clearManualInputs",value:function(){this.manualInputs.forEach(function(t){t&&(t.value="")})}},{key:"checkManualInputsValues",value:function(t){t?this.originalValues=this.manualInputs.map(function(t){if(t)return t.value}):""!==this.uprn.value&&this.originalValues.length&&(this.newValues=this.manualInputs.map(function(t){return t.value}),this.originalValues.toString()!==this.newValues.toString()&&(this.uprn.value=""))}}])}()},{"./autosuggest.address.error":845,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],848:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-autosuggest"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./autosuggest"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./autosuggest":850,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],849:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sanitiseAutosuggestText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.toLowerCase();e.forEach(function(t){i=i.replace(new RegExp(t.toLowerCase(),"g"),"")}),i=(i=(i=r?i.trim():i.trimStart()).replace(/\s\s+/g," ")).replace(/[&]/g,"%26"),n&&(i=i.replace(/\d(?=[a-z]{3,})/gi,"$& "));return i}},{}],850:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("./autosuggest.ui"));n.default=function(){return(0,o.default)(function t(e){(0,a.default)(this,t),this.context=e,this.language=e.getAttribute("data-lang"),this.autosuggest=new l.default({context:e,onSelect:this.onSelect.bind(this),onUnsetResult:this.onUnsetResult.bind(this),onError:this.onError.bind(this)})},[{key:"lang",get:function(){return this.language?this.language.toLowerCase():document.documentElement.getAttribute("lang").toLowerCase()}},{key:"onSelect",value:(e=(0,s.default)(i.default.mark(function t(e){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.autosuggest.input.value=e.displayText;case 1:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"onUnsetResult",value:(t=(0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)})},{key:"onError",value:function(t){}}]);var t,e}()},{"./autosuggest.ui":851,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],851:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classAutosuggestResultsTitle=n.classAutosuggestOptionNoResults=n.classAutosuggestOptionMoreResults=n.classAutosuggestOptionFocused=n.classAutosuggestOption=n.classAutosuggestHasResults=n.baseClass=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("../../js/abortable-fetch")),c=t("./autosuggest.helpers"),u=r(t("./fuse-config")),h=r(t("dompurify")),d=n.baseClass="ons-js-autosuggest",p=n.classAutosuggestOption="ons-autosuggest__option",f=n.classAutosuggestOptionFocused="".concat(p,"--focused"),g=n.classAutosuggestOptionNoResults="".concat(p,"--no-results"),m=n.classAutosuggestOptionMoreResults="".concat(p,"--more-results ons-u-fs-s"),b=n.classAutosuggestHasResults="ons-autosuggest--has-results",y=n.classAutosuggestResultsTitle="ons-autosuggest__results-title";n.default=function(){return(0,o.default)(function t(e){var n=e.context,r=e.autosuggestData,i=e.sanitisedQueryReplaceChars,s=e.sanitisedQuerySplitNumsChars,o=e.minChars,l=e.resultLimit,c=e.suggestOnBoot,u=e.onSelect,h=e.onUnsetResult,p=e.suggestionFunction,f=e.handleUpdate,g=e.ariaYouHaveSelected,m=e.ariaMinChars,b=e.ariaOneResult,y=e.ariaNResults,v=e.ariaLimitedResults,x=e.ariaGroupedResults,w=e.moreResults,k=e.resultsTitle,A=e.noResults,S=e.tooManyResults,C=e.errorAPI,E=e.errorAPILinkText,M=e.typeMore,T=e.customResultsThreshold;(0,a.default)(this,t),this.context=n,this.input=n.querySelector(".".concat(d,"-input")),this.resultsContainer=n.querySelector(".".concat(d,"-results")),this.listbox=this.resultsContainer.querySelector(".".concat(d,"-listbox")),this.resultsTitleContainer=this.resultsContainer.querySelector(".ons-autosuggest__results-title"),this.instructions=n.querySelector(".".concat(d,"-instructions")),this.ariaStatus=n.querySelector(".".concat(d,"-aria-status")),this.form=n.closest("form"),this.label=document.querySelector(".ons-label"),this.autosuggestData=r||n.getAttribute("data-autosuggest-data"),this.ariaYouHaveSelected=g||n.getAttribute("data-aria-you-have-selected"),this.minChars=o||n.getAttribute("data-min-chars")||3,this.ariaMinChars=m||n.getAttribute("data-aria-min-chars"),this.ariaOneResult=b||n.getAttribute("data-aria-one-result"),this.ariaNResults=y||n.getAttribute("data-aria-n-results"),this.ariaLimitedResults=v||n.getAttribute("data-aria-limited-results"),this.ariaGroupedResults=x||n.getAttribute("data-aria-grouped-results"),this.moreResults=w||n.getAttribute("data-more-results"),this.resultsTitle=k||n.getAttribute("data-results-title"),this.noResults=A||n.getAttribute("data-no-results"),this.tooManyResults=S||n.getAttribute("data-too-many-results"),this.errorAPI=C||n.getAttribute("data-error-api"),this.errorAPILinkText=E||n.getAttribute("data-error-api-link-text"),this.typeMore=M||n.getAttribute("data-type-more"),this.customResultsThreshold=T||n.getAttribute("data-result-threshold"),this.language=n.getAttribute("data-lang"),this.allowMultiple=n.getAttribute("data-allow-multiple")||!1,this.listboxId=this.listbox.getAttribute("id"),this.resultLimit=l||10,this.suggestOnBoot=c,this.onSelect=u,this.onUnsetResult=h,this.handleUpdate=f,p?this.fetchSuggestions=p:this.fetchData(),this.ctrlKey=!1,this.deleting=!1,this.query="",this.sanitisedQuery="",this.previousQuery="",this.results=[],this.resultOptions=[],this.allSelections=[],this.data=[],this.foundResults=0,this.numberOfResults=0,this.highlightedResultIndex=0,this.settingResult=!1,this.resultSelected=!1,this.blurring=!1,this.blurTimeout=null,this.sanitisedQueryReplaceChars=i||[],this.sanitisedQuerySplitNumsChars=s||!1,this.initialiseUI()},[{key:"lang",get:function(){return this.language?this.language.toLowerCase():document.documentElement.getAttribute("lang").toLowerCase()}},{key:"initialiseUI",value:function(){this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-controls",this.listbox.getAttribute("id")),this.input.setAttribute("aria-describedby",this.instructions.getAttribute("id")),this.input.setAttribute("aria-haspopup",!0),this.input.setAttribute("aria-owns",this.listbox.getAttribute("id")),this.input.setAttribute("aria-expanded",!1),this.input.setAttribute("autocomplete",this.input.getAttribute("autocomplete")||"off"),this.input.setAttribute("role","combobox"),this.context.classList.add("ons-autosuggest--initialised"),this.bindEventListeners()}},{key:"fetchData",value:(e=(0,s.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.fetch=(0,l.default)(this.autosuggestData),t.next=1,this.fetch.send();case 1:return e=t.sent,t.next=2,e.json();case 2:this.data=t.sent,this.responseStatus=e.status;case 3:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{key:"bindEventListeners",value:function(){this.input.addEventListener("keydown",this.handleKeydown.bind(this)),this.input.addEventListener("keyup",this.handleKeyup.bind(this)),this.input.addEventListener("input",this.handleChange.bind(this)),this.input.addEventListener("focus",this.handleFocus.bind(this)),this.input.addEventListener("blur",this.handleBlur.bind(this)),this.listbox.addEventListener("mouseover",this.handleMouseover.bind(this)),this.listbox.addEventListener("mouseout",this.handleMouseout.bind(this))}},{key:"handleKeydown",value:function(t){switch(this.ctrlKey=(t.ctrlKey||t.metaKey)&&"v"!==t.key,t.keyCode){case 38:t.preventDefault(),this.navigateResults(-1);break;case 40:t.preventDefault(),this.navigateResults(1);break;case 13:null!==this.highlightedResultIndex&&t.preventDefault()}}},{key:"handleKeyup",value:function(t){switch(t.keyCode){case 40:case 38:t.preventDefault();break;case 13:null!==this.highlightedResultIndex&&this.selectResult()}this.ctrlKey=!1}},{key:"handleChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!this.blurring&&this.input.value.trim()||!0===t?(this.settingResult=!1,!0===t?this.getSuggestions(!1,t):this.getSuggestions()):(this.abortFetch(),this.clearListbox())}},{key:"handleFocus",value:function(){"true"===this.allowMultiple&&this.allSelections.length&&" "!==this.input.value.slice(-1)&&""!==this.input.value&&(this.input.value="".concat(this.input.value,", "))}},{key:"handleBlur",value:function(){var t=this;clearTimeout(this.blurTimeout),this.blurring=!0,this.blurTimeout=setTimeout(function(){t.blurring=!1,t.settingResult||t.clearListbox()},300),"true"===this.allowMultiple&&", "===this.input.value.slice(-2)&&(this.input.value=this.input.value.slice(0,-2))}},{key:"checkCharCount",value:function(){var t=this;this.input.value.length>1&&this.input.value.length<this.minChars?this.inputTimeout=setTimeout(function(){t.handleNoResults(!1)},2e3):clearTimeout(this.inputTimeout)}},{key:"handleMouseover",value:function(){var t=this.resultOptions[this.highlightedResultIndex];t&&t.classList.remove(f)}},{key:"handleMouseout",value:function(){var t=this.resultOptions[this.highlightedResultIndex];t&&t.classList.add(f)}},{key:"navigateResults",value:function(t){var e=0;null!==this.highlightedResultIndex&&(e=this.highlightedResultIndex+t),e<this.numberOfResults&&(e<0&&(e=null),this.setHighlightedResult(e))}},{key:"getSuggestions",value:function(t,e){var n=this;if(!this.settingResult){if("true"===this.allowMultiple&&this.allSelections.length){var r=this.input.value.split(", ").find(function(t){return!n.allSelections.includes(t)});this.query=r||this.input.value}else this.query=this.input.value;var i=(0,c.sanitiseAutosuggestText)(this.query,this.sanitisedQueryReplaceChars,this.sanitisedQuerySplitNumsChars);(i!==this.sanitisedQuery||t&&!this.resultSelected)&&(this.sanitisedQuery=i,this.unsetResults(),this.checkCharCount(),this.sanitisedQuery.length>=this.minChars?this.fetchSuggestions(this.sanitisedQuery,this.data,e).then(this.handleResults.bind(this)).catch(function(t){"AbortError"!==t.name&&n.handleNoResults(500)}):this.clearListbox())}}},{key:"fetchSuggestions",value:(t=(0,s.default)(i.default.mark(function t(e,n){var r,s,a,o=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.abortFetch(),r=null!=this.customResultsThreshold&&this.customResultsThreshold>=0&&this.customResultsThreshold<=1?this.customResultsThreshold:.2,s=r>=.6?500:r>=.4?300:100,t.next=1,(0,u.default)(e,n,this.lang,r,s);case 1:return(a=t.sent).forEach(function(t){var e,n,r=null!==(e=t.item)&&void 0!==e?e:t;t.sanitisedText=(0,c.sanitiseAutosuggestText)(null!==(n=r[o.lang])&&void 0!==n?n:r.formattedAddress,o.sanitisedQueryReplaceChars)}),t.abrupt("return",{status:this.responseStatus,results:a,totalResults:a.length});case 2:case"end":return t.stop()}},t,this)})),function(e,n){return t.apply(this,arguments)})},{key:"abortFetch",value:function(){this.fetch&&"DONE"!==this.fetch.status&&this.fetch.abort()}},{key:"unsetResults",value:function(){this.results=[],this.resultOptions=[],this.resultSelected=!1,this.onUnsetResult&&this.onUnsetResult()}},{key:"clearListbox",value:function(t){this.listbox.innerHTML="",this.context.classList.remove(b),this.input.removeAttribute("aria-activedescendant"),this.input.setAttribute("aria-expanded",!1),t||this.setAriaStatus()}},{key:"handleResults",value:function(t){var e=this;if(this.resultLimit=t.limit?t.limit:this.resultLimit,this.foundResults=t.totalResults,this.foundResults>this.resultLimit&&(t.results=t.results.slice(0,this.resultLimit)),this.results=t.results,this.numberOfResults=this.results?Math.max(this.results.length,0):0,this.setAriaStatus(),!this.deleting||this.numberOfResults&&this.deleting){if(this.listbox.innerHTML="",this.results&&(this.resultOptions=this.results.map(function(t,n){var r,i,s=null!==(r=t.item)&&void 0!==r?r:t,a=e.emboldenMatch(null!==(i=s[e.lang])&&void 0!==i?i:s.formattedAddress,e.query),o=document.createElement("li");return o.className=p,o.setAttribute("id","".concat(e.listboxId,"__option--").concat(n)),o.setAttribute("role","option"),s.category&&(a+='<span class="ons-autosuggest__category ons-u-lighter ons-u-fs-s ons-u-db">'.concat(s.category,"</span>")),o.innerHTML=a,o.addEventListener("click",function(){e.selectResult(n)}),e.listbox.appendChild(o),e.context.querySelector(".".concat(y)).classList.remove("ons-u-d-no"),o})),this.numberOfResults<this.foundResults){var n=document.createElement("li");n.className="".concat(p," ").concat(m),n.setAttribute("aria-hidden","true"),n.innerHTML=h.default.sanitize(this.moreResults),this.listbox.appendChild(n)}if(100===this.resultLimit&&this.foundResults>this.resultLimit){var r=this.tooManyResults.replace("{n}",this.foundResults);this.resultsContainer.insertBefore(this.createWarningElement(r),this.resultsContainer.firstChild),this.ariaStatus.setAttribute("aria-hidden","true"),this.listbox.remove(),this.resultsTitleContainer.remove()}this.setHighlightedResult(null),this.input.setAttribute("aria-expanded",!!this.numberOfResults),this.numberOfResults&&this.sanitisedQuery.length>=this.minChars?this.context.classList.add(b):(this.context.classList.remove(b),this.clearListbox())}0===this.numberOfResults&&this.noResults&&this.handleNoResults(t.status)}},{key:"handleNoResults",value:function(t){var e;if(this.context.classList.add(b),this.context.querySelector(".".concat(y)).classList.add("ons-u-d-no"),this.input.setAttribute("aria-expanded",!0),400===t||!1===t)e=this.typeMore,this.setAriaStatus(e),this.listbox.innerHTML=h.default.sanitize('<li class="'.concat(p," ").concat(g,'">').concat(e,"</li>"));else if(t>400||""===t){var n=h.default.sanitize(window.location.href);e=this.errorAPI+(this.errorAPILinkText?' <a href="'+n+'">'+this.errorAPILinkText+"</a>.":"");var r=this.errorAPI+(this.errorAPILinkText?" "+this.errorAPILinkText:"");this.input.setAttribute("disabled",!0),this.input.value="",this.label.classList.add("ons-u-lighter"),this.resultsContainer.insertBefore(this.createWarningElement(e),this.resultsContainer.firstChild),this.ariaStatus.setAttribute("aria-hidden","true"),this.setAriaStatus(r),this.listbox.remove(),this.resultsTitleContainer.remove()}else e=this.noResults,this.listbox.innerHTML=h.default.sanitize('<li class="'.concat(p," ").concat(g,'">').concat(e,"</li>"))}},{key:"setHighlightedResult",value:function(t){var e=this;this.highlightedResultIndex=t,null===this.highlightedResultIndex?this.input.removeAttribute("aria-activedescendant"):this.numberOfResults&&this.resultOptions.forEach(function(n,r){if(r===t){n.classList.add(f),n.setAttribute("aria-selected",!0),e.input.setAttribute("aria-activedescendant",n.getAttribute("id"));var i=n.querySelector(".ons-autosuggest__group"),s=n.innerHTML.replace("<strong>","").replace("</strong>","");if(i){var a=e.ariaGroupedResults.replace("{n}",i.innerHTML);a=a.replace("{x}",s),e.setAriaStatus(a)}else e.setAriaStatus(s)}else n.classList.remove(f),n.removeAttribute("aria-selected")})}},{key:"setAriaStatus",value:function(t){if(!t){var e=this.sanitisedQuery.length<this.minChars,n=0===this.numberOfResults;e?t=this.ariaMinChars:n?t="".concat(this.noResults,': "').concat(this.query,'"'):1===this.numberOfResults?t=this.ariaOneResult:(t=this.ariaNResults.replace("{n}",this.numberOfResults),this.resultLimit&&this.foundResults>this.resultLimit&&(t+=" ".concat(this.ariaLimitedResults)))}this.ariaStatus.innerHTML=h.default.sanitize(t)}},{key:"selectResult",value:function(t){var e=this;if(this.results.length){var n,r;this.settingResult=!0;var i=this.results[t||this.highlightedResultIndex||0],s=null!==(n=i.item)&&void 0!==n?n:i,a=null!==(r=s[this.lang])&&void 0!==r?r:s.formattedAddress;if(this.resultSelected=!0,"true"===this.allowMultiple){var o=this.storeExistingSelections(a);i.displayText=o}else s.url?(i.displayText=a,window.location=s.url):i.displayText=a;this.onSelect(i).then(function(){return e.settingResult=!1});var l="".concat(this.ariaYouHaveSelected,": ").concat(i.displayText,".");this.clearListbox(),this.setAriaStatus(l)}}},{key:"createWarningElement",value:function(t){var e=document.createElement("div"),n=document.createElement("div"),r=document.createElement("span"),i=document.createElement("div");return e.id=this.listbox.getAttribute("id"),e.className="ons-autosuggest__warning",n.className="ons-panel ons-panel--warn ons-autosuggest__panel",r.className="ons-panel__icon",r.setAttribute("aria-hidden","true"),r.innerHTML="!",i.className="ons-panel__body",i.innerHTML=h.default.sanitize(t),n.appendChild(r),n.appendChild(i),e.appendChild(n),e}},{key:"storeExistingSelections",value:function(t){var e=this;return this.currentSelections=this.input.value.split(", ").filter(function(t){return e.allSelections.includes(t)}),this.allSelections=[],this.currentSelections.length&&(this.allSelections=this.currentSelections),this.allSelections.push(t),this.allSelections=this.allSelections.filter(function(t,e,n){return n.indexOf(t)==e}),this.allSelections.join(", ")}},{key:"emboldenMatch",value:function(t,e){var n=new RegExp(this.escapeRegExp(e).split(" ").join("[\\s,]*"),"gi");return t.replace(n,"<strong>$&</strong>")}},{key:"escapeRegExp",value:function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}]);var t,e}()},{"../../js/abortable-fetch":919,"./autosuggest.helpers":849,"./fuse-config":852,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29,dompurify:825}],852:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,e,n,r,s){var a={shouldSort:!0,threshold:r,distance:s,keys:[{name:n,weight:.9},{name:"formattedAddress",weight:.9},{name:"tags",weight:.1}]};return new i.default(e,a).search(t)};var i=r(t("fuse.js"))},{"@babel/runtime/helpers/interopRequireDefault":9,"fuse.js":826}],853:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-back-to-top")))){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./back-to-top"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./back-to-top":854,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],854:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){var n=this;(0,i.default)(this,t),this.component=e,this.content=this.component.previousElementSibling,this.target=document.getElementById(this.component.firstElementChild.href.split("#")[1]),this.contentleft,this.updateContentDetails(),this.handleScroll=this.handleScroll.bind(this),window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",function(){n.setEnabled(),n.updateContentDetails(),n.handleScroll()}),this.component.addEventListener("click",function(){n.component.firstElementChild.blur()})},[{key:"handleScroll",value:function(){var t=window.scrollY+window.innerHeight;this.target&&(t=-this.target.getBoundingClientRect().top+window.innerHeight);var e=this.content.getBoundingClientRect(),n=window.innerHeight,r=e.bottom;t>2*n&&n<r?this.setSticky():this.setEnabled()}},{key:"setSticky",value:function(){this.component.classList.remove("ons-back-to-top__enabled"),this.component.classList.add("ons-back-to-top__sticky"),this.component.firstElementChild.children[0].style.marginLeft="".concat(this.contentleft,"px")}},{key:"setEnabled",value:function(){this.updateContentDetails(),this.component.classList.remove("ons-back-to-top__sticky"),this.component.classList.add("ons-back-to-top__enabled"),this.component.firstElementChild.children[0].style.marginLeft=""}},{key:"updateContentDetails",value:function(){this.contentleft=this.component.getBoundingClientRect().left}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],855:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-submit-btn"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./button"))});case 1:i=e.sent.default,n.forEach(function(t){t.classList.contains("ons-js-timer")?r="timer":t.classList.contains("ons-js-loader")?r="loader":t.classList.contains("ons-btn--link")&&(r="link"),new i(t,r)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./button":856,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],856:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=0;n.default=function(){return(0,s.default)(function t(e,n){(0,i.default)(this,t),this.button=e,this.form=this.button.closest("form"),this.submitType=n,"loader"==this.submitType?this.form&&this.form.length?this.form.addEventListener("submit",this.loaderButton.bind(this)):this.button.addEventListener("click",this.loaderButton.bind(this)):"timer"==this.submitType?this.form&&this.form.length?this.form.addEventListener("submit",this.timerButton.bind(this)):this.button.addEventListener("click",this.timerButton.bind(this)):"link"==this.submitType&&(this.button.addEventListener("keydown",this.linkButtonDown.bind(this)),this.button.addEventListener("keyup",this.linkButtonUp.bind(this)))},[{key:"loaderButton",value:function(t){var e=t.submitter?t.submitter:this.button;e.classList.add("ons-is-loading"),e.setAttribute("disabled",!0)}},{key:"timerButton",value:function(t){var e=t.submitter?t.submitter:this.button;"A"===e.tagName?++a>1&&t.preventDefault():e.setAttribute("disabled",!0),setTimeout(function(t){t.removeAttribute("disabled"),a=0},1e3,e)}},{key:"linkButtonDown",value:function(t){32!=t.keyCode&&13!=t.keyCode||this.button.classList.add("active")}},{key:"linkButtonUp",value:function(t){32!=t.keyCode&&13!=t.keyCode||(this.button.classList.remove("active"),t.preventDefault(),this.button.click())}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],857:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.tagName=e.tagName,"input"===this.tagName.toLowerCase()||"textarea"===this.tagName.toLowerCase()?this.input=e:this.input=e.querySelector("input");var n=this.input.parentNode;this.button=n?n.querySelector("button"):null,this.checkElement=document.getElementById(this.input.getAttribute("data-message-check-ref")),this.checkVal=this.input.getAttribute("data-message-check-num"),this.singularMessage=this.checkElement.getAttribute("data-message-singular")||null,this.pluralMessage=this.checkElement.getAttribute("data-message-plural")||null,this.overLimitSingularMessage=this.checkElement.getAttribute("data-message-over-limit-singular")||null,this.overLimitPluralMessage=this.checkElement.getAttribute("data-message-over-limit-plural")||null,this.updateCheckReadout(this.input),this.button&&this.setButtonState(this.checkVal),this.input.addEventListener("input",this.updateCheckReadout.bind(this))},[{key:"updateCheckReadout",value:function(t,e){var n=this.input.value,r="char"==this.checkElement.getAttribute("data-count-type")?this.getCharLength(n):this.getWordLength(n),i=this.checkVal-r;!e&&t.inputType?this.checkElement.setAttribute("aria-live",[i>0?"polite":"assertive"]):this.checkElement.removeAttribute("aria-live"),this.checkRemaining(i),this.setCheckClass(i,this.input,"ons-input--limit-reached"),this.setCheckClass(i,this.checkElement,"ons-input__limit--reached")}},{key:"checkRemaining",value:function(t){var e;e=1===t?this.singularMessage:-1===t?this.overLimitSingularMessage:t<-1?this.overLimitPluralMessage:this.pluralMessage,this.checkElement.innerText=e.replace("{x}",Math.abs(t)),this.button&&this.setButtonState(t),this.setShowMessage(t)}},{key:"setButtonState",value:function(t){this.button.classList[0===t?"remove":"add"]("ons-btn--disabled"),this.button.disabled=0===t?null:"true"}},{key:"setShowMessage",value:function(t){"textarea"===this.tagName.toLowerCase()?this.checkElement.classList.remove("ons-u-d-no"):this.checkElement.classList[t<this.checkVal&&t>0||t<0?"remove":"add"]("ons-u-d-no")}},{key:"setCheckClass",value:function(t,e,n){e.classList[t<0?"add":"remove"](n)}},{key:"getCharLength",value:function(t){var e=(t.match(/\n/g)||[]).length;return t.length+e}},{key:"getWordLength",value:function(t){return t.trim().split(/\s+/).map(function(t){return t.replace(/[.,!?;:]+$/,"")}).filter(Boolean).length}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],858:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,s.default)(this,t),(0,a.default)(this,"buildPointAccessibilityDescription",function(t){var e=t.point.x,r=t.point.y,i=Number.isInteger(e)&&n.xAxisCategories.length>e?n.xAxisCategories[e]:e;return"".concat(t.text,". Related to ").concat(i,", ").concat(r)}),(0,a.default)(this,"getAnnotationsOptionsDesktop",function(){var t=[{labels:[],labelOptions:{useHTML:!0,shape:"connector",borderColor:n.constants.labelColor,padding:3,style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize,width:150,textAlign:"left"}},draggable:""}];return n.annotations.forEach(function(e){t[0].labels.push({point:{x:e.point.x,y:e.point.y,xAxis:0,yAxis:0},text:e.text,x:e.labelOffsetX,y:e.labelOffsetY,accessibility:{description:n.buildPointAccessibilityDescription(e)}})}),t}),(0,a.default)(this,"getAnnotationsOptionsMobile",function(){var t=[{labels:[],labelOptions:{backgroundColor:"transparent",borderColor:"transparent",useHTML:!0,className:"ons-chart__annotations-footnotes-number"},draggable:""}];return n.annotations.forEach(function(e,r){t[0].labels.push({point:{x:e.point.x,y:e.point.y,xAxis:0,yAxis:0},text:r+1,x:0,y:0,accessibility:{description:n.buildPointAccessibilityDescription(e)}})}),t}),this.constants=o.default.constants(),this.annotations=e,this.xAxisCategories=r});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],859:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=(0,i.default)(function t(){(0,s.default)(this,t),(0,a.default)(this,"getAreaChartOptions",function(){return{legend:{symbolWidth:12,symbolHeight:12},yAxis:{reversedStacks:!1},plotOptions:{area:{fillOpacity:1,legendSymbol:"rectangle",stacking:"normal",lineWidth:0},series:{marker:{enabled:!1}}}}})});n.default=o},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],860:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants"));function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){(0,a.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var u=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getBarChartOptions",function(t){return{plotOptions:{bar:{pointWidth:30,pointPadding:0,groupPadding:0,borderWidth:0,borderRadius:0,dataLabels:{enabled:!0,inside:!1,style:{textOutline:"none",fontWeight:"700",color:e.constants.labelColor,fontSize:e.constants.defaultFontSize}}},series:{stacking:t?"normal":null}},xAxis:{labels:{style:{textOverflow:"ellipsis",color:e.constants.categoryLabelColor},useHTML:!1},tickWidth:0,tickLength:0,tickColor:"transparent",title:{text:"",textAlign:"middle",reserveSpace:!1,rotation:0,y:-25,useHTML:!0}},yAxis:{labels:{rotation:0,useHTML:!0,style:{whiteSpace:"nowrap",color:e.constants.categoryLabelColor}},title:{textAlign:"right",offset:void 0,y:0,reserveSpace:!0,useHTML:!1},reversedStacks:!1}}}),(0,a.default)(this,"postLoadDataLabels",function(t){var n=e.getBarChartLabelsInsideOptions(),r=e.getBarChartLabelsOutsideOptions();t.series.forEach(function(t){"line"!=t.type&&("scatter"!=t.type&&t.data.forEach(function(t){if(t.dataLabel){var e=t.dataLabel.getBBox().width;t.shapeArgs.height>e+5?t.y<0?t.update({dataLabels:c(c({},n),{},{align:"left"})},!1):t.update({dataLabels:c(c({},n),{},{align:"right"})},!1):t.update({dataLabels:r},!1)}}))})}),(0,a.default)(this,"getBarChartLabelsInsideOptions",function(){return{inside:!0,verticalAlign:"middle",style:{color:"white",fontWeight:"bold"}}}),(0,a.default)(this,"getBarChartLabelsOutsideOptions",function(){return{inside:!1,align:void 0,verticalAlign:void 0,overflow:"allow",style:{textOutline:"none",fontWeight:"700",color:e.constants.labelColor,fontSize:e.constants.defaultFontSize}}}),(0,a.default)(this,"updateBarChartHeight",function(t,e,n){var r=t.xAxis.categories.length,i=e.series.length,s=30,a=0,o=0,l=0;if(0==n&&i>1){s=28,i>=3&&(s=20);var c=(a=14)/2/(((o=r*s*i)+(l=r*a))/r);e.series.forEach(function(t){t.update({groupPadding:c,pointWidth:s})})}else o=r*s,l=(r-1)*(a=10);t.xAxis.height=o+l;var u=e.plotTop+t.xAxis.height+e.marginBottom;u!==e.chartHeight&&e.setSize(null,u,!1),e.redraw()}),this.constants=o.default.constants()});n.default=u},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],861:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=r(t("./column-chart"));function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){(0,a.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var h=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getBoxplotOptions",function(t,n,r){return{plotOptions:{boxplot:u(u({},e.columnChart.getPointPadding(t,n,r,!1)),{},{boxDashStyle:"Solid",fillColor:e.constants.uncertaintyRangeColor,lineWidth:0,medianColor:e.constants.estimateLineColor,medianDashStyle:"Solid",medianWidth:3,stemWidth:0,whiskerWidth:0})},legend:{enabled:!1,symbolRadius:0,itemStyle:{fontSize:e.constants.defaultFontSize,color:e.constants.legendLabelColor}},tooltip:{enabled:!1}}}),this.constants=o.default.constants(),this.columnChart=new l.default});n.default=h},{"./chart-constants":862,"./column-chart":867,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],862:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;r(t("@babel/runtime/helpers/readOnlyError"));var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=function(){return(0,s.default)(function t(){(0,i.default)(this,t)},null,[{key:"constants",value:function(){return{primaryTheme:["#206095","#a8bd3a","#871a5b","#f66068","#05341a","#27a0cc"],linePrimaryTheme:["#206095","#a8bd3a","#871a5b","#f66068","#27a0cc","#05341a"],alternateTheme:["#206095","#27A0CC","#871A5B","#A8BD3A","#F66068"],labelColor:"#414042",axisLabelColor:"#707071",categoryLabelColor:"#414042",gridLineColor:"#d9d9d9",zeroLineColor:"#b3b3b3",estimateLineColor:"#003c57",uncertaintyRangeColor:"rgba(32, 96, 149, 0.65)",defaultFontSize:"0.875rem",extraLineColor:"#222222",shadingColor:"#ececec",lineMarkerStyles:[{radius:4,symbol:"circle"},{radius:4,symbol:"square"},{radius:5,symbol:"diamond"},{radius:5,symbol:"triangle"},{radius:5,symbol:"triangle-down"},{radius:4,symbol:"circle",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:4,symbol:"square",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:5,symbol:"diamond",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:5,symbol:"triangle",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:5,symbol:"triangle-down",fillColor:"white",lineWidth:2.5,lineColor:null}],scatterMarkerStyles:[{radius:5,symbol:"circle",lineWidth:1,lineColor:"#ffffff"},{radius:5,symbol:"square",lineWidth:1,lineColor:"#ffffff"},{radius:6,symbol:"diamond",lineWidth:1,lineColor:"#ffffff"},{radius:6,symbol:"triangle",lineWidth:1,lineColor:"#ffffff"}],confidenceLevelMarkerStyles:[{radius:6,symbol:"diamond",lineWidth:2,lineColor:"#222",outline:!0,fillColor:"white"}]}}}])}();n.default=a},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/readOnlyError":14}],863:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("./chart-iframe-resize"));(0,r(t("../../js/domready")).default)((0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:[a.default].forEach(function(t){document.querySelectorAll(t.selector()).forEach(function(e){return new t(e)})});case 1:case"end":return t.stop()}},t)})))},{"../../js/domready":925,"./chart-iframe-resize":864,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],864:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("pym.js")),o=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.node=e,new a.default.Child(this.node.getAttribute("id"),this.node.dataset.url,{title:this.node.dataset.title})},null,[{key:"selector",value:function(){return".ons-chart__iframe-wrapper iframe"}}])}();n.default=o},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"pym.js":836}],865:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("./chart")),o=r(t("../../js/domready"));document.fonts.ready.then(function(){(0,o.default)((0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:[a.default].forEach(function(t){document.querySelectorAll(t.selector()).forEach(function(e){return new t(e)})});case 1:case"end":return t.stop()}},t)})))})},{"../../js/domready":925,"./chart":866,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],866:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("@babel/runtime/helpers/defineProperty")),l=r(t("highcharts"));t("highcharts/modules/accessibility"),t("highcharts/modules/annotations"),t("highcharts/highcharts-more");var c=r(t("./common-chart-options")),u=r(t("./specific-chart-options")),h=r(t("./line-chart")),d=r(t("./bar-chart")),p=r(t("./column-chart")),f=r(t("./scatter-chart")),g=r(t("./boxplot")),m=r(t("./annotations-options")),b=r(t("./range-annotations-options")),y=r(t("./reference-line-annotations-options")),v=t("./utilities"),x=r(t("./area-chart")),w=r(t("./columnrange-chart"));function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach(function(e){(0,o.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var S=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),(0,o.default)(this,"setAnnotationsAccessibilityDescription",function(){var t=[];if(n.rangeAnnotationsOptions&&t.push.apply(t,(0,i.default)(n.rangeAnnotationsOptions.getAccessibilityDescriptions())),n.referenceLineAnnotationsOptions&&t.push.apply(t,(0,i.default)(n.referenceLineAnnotationsOptions.getAccessibilityDescriptions())),t.length>0){n.config.accessibility||(n.config.accessibility={});var e=t.map(function(t){return"<li>".concat(t,"</li>")}).join("");n.config.accessibility.description='<ul style="list-style-type: none">'.concat(e,"</ul>")}}),(0,o.default)(this,"checkForExtraLines",function(){return"line"===n.chartType?0:n.config.series.filter(function(t){return"line"===t.type}).length}),(0,o.default)(this,"updateExtraLineZIndex",function(){n.config.series.forEach(function(t){"line"===t.type&&(t.zIndex=n.config.series.length+1)})}),(0,o.default)(this,"checkForExtraScatter",function(){return"scatter"===n.chartType?0:n.config.series.filter(function(t){return"scatter"===t.type}).length}),(0,o.default)(this,"setCommonChartOptions",function(){var t=n.commonChartOptions.getOptions();l.default.setOptions(t)}),(0,o.default)(this,"setSpecificChartOptions",function(){var t=n.specificChartOptions.getOptions(),e=n.lineChart.getLineChartOptions(),r=n.barChart.getBarChartOptions(n.useStackedLayout),i=n.columnRangeChart.getColumnRangeChartOptions(),s=n.columnChart.getColumnChartOptions(n.config,n.useStackedLayout,n.extraLines),a=n.areaChart.getAreaChartOptions(),o=n.scatterChart.getScatterChartOptions(),l=n.boxplot.getBoxplotOptions(n.config,n.useStackedLayout,n.extraLines);n.config=(0,v.mergeConfigs)(n.config,t),"line"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,e)),"bar"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,r)),"columnrange"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,i)),"column"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,s)),"area"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,a)),"scatter"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,o),n.specificChartOptions.limitSeriesForScatterChart()),"boxplot"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,l)),n.extraLines>0&&(n.updateExtraLineZIndex(),n.config=(0,v.mergeConfigs)(n.config,n.lineChart.getLineChartOptions()),n.config=(0,v.mergeConfigs)(n.config,n.lineChart.getExtraLineChartOptions(n.config.series.length+1)),"column"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,s))),n.extraScatter>0&&"columnrange"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,i)),n.specificChartOptions.limitSeriesToThemeLength(),n.specificChartOptions.disableLegendForSingleSeries(n.config)}),(0,o.default)(this,"checkHideDataLabels",function(){var t="bar"===n.chartType&&n.config.series.length>2||!0===n.useStackedLayout;return n.config.series.forEach(function(e){e.data.length>20&&(t=!0)}),t}),(0,o.default)(this,"setResponsiveOptions",function(){var t=n.specificChartOptions.getMobileOptions(n.xAxisTickIntervalMobile,n.yAxisTickIntervalMobile);if("column"===n.chartType||"boxplot"===n.chartType){var e=n.columnChart.getColumnChartMobileOptions(n.config,n.useStackedLayout,n.extraLines);t=(0,v.mergeConfigs)(t,e)}n.config.responsive||(n.config.responsive={});var r=(0,v.preparePlotLinesAndBands)(n.annotations,n.rangeAnnotations,n.rangeAnnotationsOptions,n.referenceLineAnnotationsOptions,n.specificChartOptions,n.chartType,n.customReferenceLineValue),i=r.desktopAllPlotLinesAndBands,s=r.mobileAllPlotLinesAndBands,a=[{condition:{maxWidth:400},chartOptions:A({},t)},{condition:{maxWidth:600},chartOptions:A({annotations:n.annotationsOptions?n.annotationsOptions.getAnnotationsOptionsMobile():void 0},s!={}?s:null)},{condition:{minWidth:601},chartOptions:A({annotations:n.annotationsOptions?n.annotationsOptions.getAnnotationsOptionsDesktop():void 0},i!={}?i:null)}];n.config.responsive.rules=a}),(0,o.default)(this,"setLoadEvent",function(){n.config.chart.events||(n.config.chart.events={}),n.config.chart.events.load=function(t){var e=t.target;if("line"===n.chartType&&(n.lineChart.updateLastPointMarker(e.series),n.specificChartOptions.hideDataLabels(e.series)),"bar"===n.chartType&&(n.barChart.updateBarChartHeight(n.config,e,n.useStackedLayout),n.hideDataLabels?n.specificChartOptions.hideDataLabels(e.series):n.barChart.postLoadDataLabels(e)),"column"===n.chartType&&n.specificChartOptions.hideDataLabels(e.series),"scatter"===n.chartType&&(n.scatterChart.updateMarkers(e),n.specificChartOptions.hideDataLabels(e.series)),"boxplot"===n.chartType&&n.specificChartOptions.hideDataLabels(e.series),"columnrange"===n.chartType&&(n.columnRangeChart.updateColumnRangeChartHeight(n.config,e),n.specificChartOptions.hideDataLabels(e.series),n.extraScatter>0)){var r=e.series.filter(function(t){return"scatter"===t.type});n.scatterChart.updateMarkersForConfidenceLevels(r)}n.extraLines>0&&e.series.forEach(function(t){"line"===t.type&&n.specificChartOptions.hideDataLabels([t])});var i=e.renderer.box.querySelector("desc");i&&(i.textContent=""),e.redraw(!1)}}),(0,o.default)(this,"setRenderEvent",function(){n.config.chart.events||(n.config.chart.events={}),n.config.chart.events.render=function(t){var e=t.target;n.rangeAnnotationsOptions&&n.rangeAnnotationsOptions.addLine(e),"bar"!=n.chartType&&"columnrange"!=n.chartType&&n.specificChartOptions.adjustChartHeight(e,n.percentageHeightDesktop,n.percentageHeightMobile),n.specificChartOptions.updateLegendSymbols(e)}}),(0,o.default)(this,"setWindowResizeEvent",function(){window.addEventListener("resize",function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout(function(){var t=l.default.charts.find(function(t){return t&&t.container===n.chart.container});"bar"!==n.chartType||n.hideDataLabels||(n.barChart.postLoadDataLabels(t),t.redraw(!1))},50)})}),this.node=e,this.chartType=this.node.dataset.highchartsType,this.theme=this.node.dataset.highchartsTheme;var r=this.node.querySelector("[data-highcharts-chart]");if(r){var a,k;if(r.classList.add("".concat(this.chartType,"-chart-container")),this.id=this.node.dataset.highchartsId,this.useStackedLayout=this.node.hasAttribute("data-highcharts-use-stacked-layout"),this.config=JSON.parse(this.node.querySelector("[data-highcharts-config--".concat(this.id,"]")).textContent),this.node.querySelector("[data-highcharts-annotations--".concat(this.id,"]")))this.annotations=JSON.parse(this.node.querySelector("[data-highcharts-annotations--".concat(this.id,"]")).textContent),this.annotationsOptions=new m.default(this.annotations,null!==(a=null===(k=this.config.xAxis)||void 0===k?void 0:k.categories)&&void 0!==a?a:[]);this.node.querySelector("[data-highcharts-range-annotations--".concat(this.id,"]"))&&(this.rangeAnnotations=JSON.parse(this.node.querySelector("[data-highcharts-range-annotations--".concat(this.id,"]")).textContent),this.rangeAnnotationsOptions=new b.default(this.rangeAnnotations)),this.node.querySelector("[data-highcharts-reference-line-annotations--".concat(this.id,"]"))&&(this.referenceLineAnnotations=JSON.parse(this.node.querySelector("[data-highcharts-reference-line-annotations--".concat(this.id,"]")).textContent),this.referenceLineAnnotationsOptions=new y.default(this.referenceLineAnnotations)),this.percentageHeightDesktop=this.node.dataset.highchartsPercentageHeightDesktop,this.percentageHeightMobile=this.node.dataset.highchartsPercentageHeightMobile,this.xAxisTickIntervalMobile=this.node.dataset.highchartsXAxisTickIntervalMobile?parseFloat(this.node.dataset.highchartsXAxisTickIntervalMobile):void 0,this.xAxisTickIntervalDesktop=this.node.dataset.highchartsXAxisTickIntervalDesktop?parseFloat(this.node.dataset.highchartsXAxisTickIntervalDesktop):void 0,this.yAxisTickIntervalMobile=this.node.dataset.highchartsYAxisTickIntervalMobile?parseFloat(this.node.dataset.highchartsYAxisTickIntervalMobile):void 0,this.yAxisTickIntervalDesktop=this.node.dataset.highchartsYAxisTickIntervalDesktop?parseFloat(this.node.dataset.highchartsYAxisTickIntervalDesktop):void 0,this.commonChartOptions=new c.default,this.estimateLineLabel=this.node.dataset.highchartsEstimateLineLabel,this.uncertainyRangeLabel=this.node.dataset.highchartsUncertaintyRangeLabel,this.customReferenceLineValue=this.node.dataset.highchartsCustomReferenceLineValue?parseFloat(this.node.dataset.highchartsCustomReferenceLineValue):void 0,this.specificChartOptions=new u.default(this.theme,this.chartType,this.config,this.xAxisTickIntervalDesktop,this.yAxisTickIntervalDesktop),this.lineChart=new h.default,this.barChart=new d.default,this.columnChart=new p.default,this.areaChart=new x.default,this.scatterChart=new f.default,this.columnRangeChart=new w.default,this.boxplot=new g.default,this.extraLines=this.checkForExtraLines(),this.extraScatter=this.checkForExtraScatter(),void 0===window.isCommonChartOptionsDefined&&(this.setCommonChartOptions(),window.isCommonChartOptionsDefined=!0),this.hideDataLabels=this.checkHideDataLabels(),this.setSpecificChartOptions(),this.setAnnotationsAccessibilityDescription(),this.setResponsiveOptions(),this.setLoadEvent(),this.setRenderEvent(),this.setWindowResizeEvent(),this.chart=l.default.chart(r,this.config)}},null,[{key:"selector",value:function(){return"[data-highcharts-base-chart]"}}])}();n.default=S},{"./annotations-options":858,"./area-chart":859,"./bar-chart":860,"./boxplot":861,"./column-chart":867,"./columnrange-chart":868,"./common-chart-options":869,"./line-chart":870,"./range-annotations-options":871,"./reference-line-annotations-options":872,"./scatter-chart":873,"./specific-chart-options":874,"./utilities":875,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,highcharts:828,"highcharts/highcharts-more":827,"highcharts/modules/accessibility":829,"highcharts/modules/annotations":830}],867:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){(0,a.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var c=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getColumnChartOptions",function(t,n,r){return{yAxis:{reversedStacks:!1},plotOptions:{column:l(l({},e.getPointPadding(t,n,r,!1)),{},{borderRadius:0,borderWidth:0}),series:{stacking:n?"normal":null}}}}),(0,a.default)(this,"getColumnChartMobileOptions",function(t,n,r){return{plotOptions:{column:l({},e.getPointPadding(t,n,r,!0))}}}),(0,a.default)(this,"getPointPadding",function(t,e,n,r){var i=0,s=0,a=(t.xAxis.categories?t.xAxis.categories.length:0)>=(r?10:20)?.1:.2;return 1===t.series.length-n||!0===e?i=a:s=a,{pointPadding:i,groupPadding:s,maxPointWidth:r?55:75}})});n.default=c},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],868:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getColumnRangeChartOptions",function(){return{plotOptions:{columnrange:{color:e.constants.uncertaintyRangeColor,pointWidth:20,pointPadding:0,groupPadding:0,borderWidth:0,borderRadius:0,dataLabels:{enabled:!1}}},tooltip:{enabled:!1},xAxis:{labels:{style:{color:e.constants.categoryLabelColor},useHTML:!1},tickWidth:0,tickLength:0,gridlineWidth:0,tickColor:"transparent",title:{align:"high",textAlign:"middle",reserveSpace:!1,rotation:0,y:-25,useHTML:!0}},yAxis:{labels:{rotation:0,useHTML:!0,style:{whiteSpace:"nowrap",color:e.constants.categoryLabelColor}},tickLength:0,tickWidth:0,tickColor:"transparent",gridlineWidth:0,title:{textAlign:"right",offset:void 0,y:0,reserveSpace:!0,useHTML:!1}},chart:{inverted:!0},legend:{symbolRadius:0,itemStyle:{fontSize:e.constants.defaultFontSize,color:e.constants.legendLabelColor}}}}),(0,a.default)(this,"updateColumnRangeChartHeight",function(t,e){var n,r,i=t.xAxis.categories.length;n=20*i,r=14*i,t.xAxis.height=n+r;var s=e.plotTop+t.xAxis.height+e.marginBottom;s!==e.chartHeight&&e.setSize(null,s,!1),e.redraw()}),this.constants=o.default.constants()});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],869:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getOptions",function(){return e.options}),this.constants=o.default.constants(),this.options={chart:{backgroundColor:"transparent",style:{fontFamily:'"OpenSans", "Helvetica Neue", arial, sans-serif',color:"#222222"}},legend:{align:"left",verticalAlign:"top",layout:"horizontal",symbolWidth:20,margin:50,navigation:{enabled:!1},itemDistance:30,itemHoverStyle:{color:this.constants.labelColor},itemStyle:{color:this.constants.labelColor,fontSize:this.constants.defaultFontSize,fontWeight:"normal"},events:{itemClick:function(){return!1}},accessibility:{keyboardNavigation:{enabled:!1}}},title:{text:""},credits:{enabled:!1},lang:{accessibility:{chartContainerLabel:"{title}",svgContainerLabel:""}},accessibility:{enabled:!0,keyboardNavigation:{focusBorder:{enabled:!1},enabled:!0,seriesNavigation:{mode:"serialize"}}},yAxis:{labels:{style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},title:{text:"",align:"high",textAlign:"middle",reserveSpace:!1,useHTML:!0,offset:15,rotation:0,y:-25,style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},lineColor:this.constants.gridLineColor,gridLineColor:this.constants.gridLineColor,tickWidth:1,tickLength:6,tickColor:this.constants.gridLineColor},xAxis:{labels:{useHTML:!0,rotation:0,style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},title:{align:"high",style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},lineColor:this.constants.gridLineColor,gridLineColor:this.constants.gridLineColor,tickWidth:1,tickLength:6,tickColor:this.constants.gridLineColor},plotOptions:{series:{animation:!1,states:{inactive:{opacity:1,enabled:!1},hover:{enabled:!1}}}},tooltip:{animation:!1}}});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],870:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getLineChartOptions",function(){return{plotOptions:{line:{lineWidth:3,linecap:"round"},marker:{enabled:!0}}}}),(0,a.default)(this,"getExtraLineChartOptions",function(){return{plotOptions:{line:{color:e.chartConstants.extraLineColor}}}}),(0,a.default)(this,"updateLastPointMarker",function(t){t.forEach(function(t,n){if(!1===t.userOptions.marker.enabled){var r=t.points;if(r&&r.length>0)r[r.length-1].update({marker:{enabled:!0}})}t.update({marker:null!=e.markerStyles[n]?e.markerStyles[n]:e.markerStyles[0]},!1)})}),this.chartConstants=o.default.constants(),this.markerStyles=this.chartConstants.lineMarkerStyles});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],871:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/defineProperty")),l=r(t("./chart-constants")),c=(0,s.default)(function t(e){var n=this;(0,a.default)(this,t),(0,o.default)(this,"buildRangeAccessibilityDescription",function(t){var e,n,r="x"===t.axis?"x-axis":"y-axis",i=null===(e=t.range)||void 0===e?void 0:e.axisValue1,s=null===(n=t.range)||void 0===n?void 0:n.axisValue2,a=void 0!==i&&void 0!==s?"from ".concat(i," to ").concat(s):"for a range";return"Range annotation on the ".concat(r," ").concat(a,": ").concat(t.text)}),(0,o.default)(this,"getRangeAnnotationsOptionsDesktop",function(t){var e=[],r=[];return n.rangeAnnotations.forEach(function(i){var s=n.adjustRangeForCategoryAxis(i,t),a=void 0;i.labelInside||(a=i.labelWidth?i.labelWidth:150);var o={from:s.axisValue1,to:s.axisValue2,label:{text:i.text,useHTML:!0,className:i.labelInside?"ons-chart__range-annotation-label ons-chart__range-annotation-label--".concat(i.axis):"ons-chart__range-annotation-label--outside",allowOverlap:!0,accessibility:{description:n.buildRangeAccessibilityDescription(i)},style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize,width:a}},color:n.constants.shadingColor};!i.labelInside&&i.labelOffsetX&&(o.label.x=i.labelOffsetX),!i.labelInside&&i.labelOffsetY&&(o.label.y=i.labelOffsetY),"x"===i.axis?e.push(o):"y"===i.axis&&r.push(o)}),{xAxis:e.length>0?{plotBands:e}:void 0,yAxis:r.length>0?{plotBands:r}:void 0}}),(0,o.default)(this,"getRangeAnnotationsOptionsMobile",function(t,e){var r=[],i=[];return n.rangeAnnotations.forEach(function(s,a){var o=n.adjustRangeForCategoryAxis(s,e),l={from:o.axisValue1,to:o.axisValue2,label:{text:"".concat(t+a+1),useHTML:!0,className:"ons-chart__annotations-footnotes-number",allowOverlap:!0,accessibility:{description:n.buildRangeAccessibilityDescription(s)},style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize}},color:n.constants.shadingColor};"x"===s.axis?r.push(l):"y"===s.axis&&i.push(l)}),{xAxis:r.length>0?{plotBands:r}:void 0,yAxis:i.length>0?{plotBands:i}:void 0}}),(0,o.default)(this,"getLabelPosition",function(t,e,n,r){var i=!1,s=!1,a=!1,o=!1;return("bar"===t?!r:r)?(e.right<n.left&&(i=!0),e.left>n.right&&(s=!0)):(e.bottom<n.top&&(a=!0),e.top>n.bottom&&(o=!0)),{isToLeft:i,isToRight:s,isToTop:a,isToBottom:o}}),(0,o.default)(this,"addLine",function(t){var e=t.container.querySelectorAll("[data-range-annotation-line]");e.length>0&&e.forEach(function(t){t.remove()});var r=t.xAxis[0].plotLinesAndBands.filter(function(t){return void 0!==t.options.from}),s=t.yAxis[0].plotLinesAndBands.filter(function(t){return void 0!==t.options.from});[].concat((0,i.default)(r),(0,i.default)(s)).forEach(function(e){if(void 0!==e.options.label.x||void 0!==e.options.label.y){var r=e.svgElem.element.getBoundingClientRect(),i=e.label.element,s=i.getBoundingClientRect(),a=n.getLabelPosition(t.userOptions.chart.type,s,r,e.axis.isXAxis);if(a.isToLeft||a.isToRight||a.isToTop||a.isToBottom){var o=document.createElement("tspan");if(o.classList.add("ons-chart__connector-line"),o.setAttribute("data-range-annotation-line",!0),i.appendChild(o),a.isToRight){var l=s.left-r.right;o.style.width="".concat(l,"px"),o.style.height="1px",o.style.top="".concat(s.height/2,"px"),o.style.left="-".concat(l,"px"),i.classList.add("ons-chart__range-annotation-label--right")}if(a.isToLeft){var c=r.left-s.right;o.style.width="".concat(c,"px"),o.style.height="1px",o.style.top="".concat(s.height/2,"px"),o.style.right="-".concat(c,"px"),i.classList.add("ons-chart__range-annotation-label--left")}if(a.isToTop){var u=r.top-s.bottom;o.style.height="".concat(u,"px"),o.style.width="1px",o.style.top="".concat(s.height,"px"),o.style.left="".concat(s.width/2,"px"),i.classList.add("ons-chart__range-annotation-label--top")}if(a.isToBottom){var h=s.top-r.bottom;o.style.height="".concat(h,"px"),o.style.width="1px",o.style.top="-".concat(h,"px"),o.style.left="".concat(s.width/2,"px"),i.classList.add("ons-chart__range-annotation-label--bottom")}}}})}),(0,o.default)(this,"getAccessibilityDescriptions",function(){return n.rangeAnnotations.map(function(t){return n.buildRangeAccessibilityDescription(t)})}),(0,o.default)(this,"adjustRangeForCategoryAxis",function(t,e){var n=t.range.axisValue1,r=t.range.axisValue2;return("bar"===e&&"x"===t.axis||"column"===e&&"x"===t.axis)&&(n=t.range.axisValue1-.5,r=t.range.axisValue2-.5),{axisValue1:n,axisValue2:r}}),this.constants=l.default.constants(),this.rangeAnnotations=e});n.default=c},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],872:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(e){var n=this;(0,s.default)(this,t),(0,a.default)(this,"buildReferenceLineAccessibilityDescription",function(t){var e="x"===t.axis?"x-axis":"y-axis",n=void 0!==t.value?"at ".concat(t.value):"at a value";return"Reference line annotation on the ".concat(e," ").concat(n,": ").concat(t.text)}),(0,a.default)(this,"getAccessibilityDescriptions",function(){return n.referenceLineAnnotations.map(function(t){return n.buildReferenceLineAccessibilityDescription(t)})}),(0,a.default)(this,"getReferenceLineAnnotationsOptionsDesktop",function(){var t=[],e=[];return n.referenceLineAnnotations.forEach(function(r){var i={label:{text:r.text,useHTML:!0,style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize,width:r.labelWidth?r.labelWidth:150},x:r.labelOffsetX?r.labelOffsetX:10,y:r.labelOffsetY?r.labelOffsetY:20,rotation:0,align:"left",textAlign:"left",accessibility:{description:n.buildReferenceLineAccessibilityDescription(r)}},color:n.constants.zeroLineColor,dashStyle:"2 2",width:2,value:r.value,zIndex:3};"x"===r.axis?t.push(i):"y"===r.axis&&e.push(i)}),{xAxis:t.length>0?{plotLines:t}:void 0,yAxis:e.length>0?{plotLines:e}:void 0}}),(0,a.default)(this,"getReferenceLineAnnotationsOptionsMobile",function(t,e){var r=[],i=[];return n.referenceLineAnnotations.forEach(function(s,a){var o="x"===s.axis;"bar"===e&&(o=!o);var l={label:{text:"".concat(t+a+1),useHTML:!0,className:"ons-chart__annotations-footnotes-number",allowOverlap:!0,accessibility:{description:n.buildReferenceLineAccessibilityDescription(s)},style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize},x:o?7:0,y:o?13:-10,rotation:0,zIndex:3},color:n.constants.zeroLineColor,dashStyle:"2 2",width:2,value:s.value,zIndex:3};"x"===s.axis?r.push(l):"y"===s.axis&&i.push(l)}),{xAxis:r.length>0?{plotLines:r}:void 0,yAxis:i.length>0?{plotLines:i}:void 0}}),this.constants=o.default.constants(),this.referenceLineAnnotations=e});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],873:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getScatterChartOptions",function(){return{xAxis:{gridLineWidth:1},yAxis:{gridLineWidth:1}}}),(0,a.default)(this,"updateMarkers",function(t){t.series.forEach(function(t,n){t.update({marker:null!=e.markerStyles[n]?e.markerStyles[n]:e.markerStyles[0]},!1)})}),(0,a.default)(this,"updateMarkersForConfidenceLevels",function(t){t.forEach(function(t,n){t.update({marker:null!=e.confidenceLevelMarkerStyles[n]?e.confidenceLevelMarkerStyles[n]:e.confidenceLevelMarkerStyles[0]},!1)})}),this.chartConstants=o.default.constants(),this.markerStyles=this.chartConstants.scatterMarkerStyles,this.confidenceLevelMarkerStyles=this.chartConstants.confidenceLevelMarkerStyles});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],874:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(e,n,r,i,l){var c,u,h,d,p,f,g,m,b,y,v,x,w,k,A,S,C=this;(0,s.default)(this,t),(0,a.default)(this,"limitSeriesToThemeLength",function(){var t="alternate"===C.theme?C.constants.alternateTheme:C.constants.primaryTheme;"scatter"!==C.type&&C.config.series.length>t.length&&(C.config.series.length=t.length)}),(0,a.default)(this,"limitSeriesForScatterChart",function(){C.config.series.length>4&&(C.config.series.length=4)}),(0,a.default)(this,"getOptions",function(){return C.options}),(0,a.default)(this,"getMobileOptions",function(t,e){return{tooltip:{enabled:!1},xAxis:{tickInterval:t},yAxis:{tickInterval:e}}}),(0,a.default)(this,"hideDataLabels",function(t){t.forEach(function(t){t.update({dataLabels:{enabled:!1}})})}),(0,a.default)(this,"disableLegendForSingleSeries",function(t){"boxplot"!=t.chart.type&&1===t.series.length&&(t.legend={enabled:!1},t.chart.marginTop=50)}),(0,a.default)(this,"adjustChartHeight",function(t,e,n){var r=t.plotWidth,i=void 0,s=400;r>400?void 0!==e&&(i=Math.round(r*(e/100))):void 0!==n&&(i=Math.round(r*(n/100))),void 0!==i&&(s=t.plotTop+i+t.marginBottom),s!==t.chartHeight&&t.setSize(null,s,!1)}),(0,a.default)(this,"getReferenceLine",function(t,e){var n=0;return!t||"line"!==e&&"column"!==e||(n=t),{yAxis:{plotLines:[{color:C.constants.zeroLineColor,width:1.5,value:n,zIndex:2}]}}}),(0,a.default)(this,"updateLegendSymbols",function(t){t.legend.options.enabled&&t.legend.allItems.forEach(function(e,n){var r=e.legendItem,i=e.userOptions,s=null==i?void 0:i.type,a=r||{},o=a.label,l=a.symbol,c=a.line;if("line"===s){if("line"!==t.userOptions.chart.type&&(null==o||o.attr({x:30})),!l&&o&&o.element&&"line"===t.userOptions.chart.type){c&&c.hide(),o.parentGroup.element.querySelectorAll("[data-custom-legend-symbol]").forEach(function(t){return t.remove()});var u=t.renderer,h=o.element.getBBox(),d=C.constants.lineMarkerStyles[n%C.constants.lineMarkerStyles.length];u.symbol(d.symbol,h.x-22,h.y+4,12,d.radius,d.radius).attr({fill:e.color,stroke:e.color,"stroke-width":1,width:10,height:10,"data-custom-legend-symbol":!0}).add(o.parentGroup),null==o||o.attr({x:15})}}else if("scatter"===s)l.attr({width:13,height:13,y:7});else{if(!l)return;l.attr({width:12,height:12,y:8})}})}),this.constants=o.default.constants(),this.theme=e,this.config=r,this.options={colors:"alternate"===this.theme?this.constants.alternateTheme:"line"==n?this.constants.linePrimaryTheme:this.constants.primaryTheme,chart:{type:n,marginTop:this.config.legend.enabled?"boxplot"===n?50:void 0:50},yAxis:{tickInterval:l,min:null!==(c=null===(u=this.config.yAxis)||void 0===u?void 0:u.min)&&void 0!==c?c:void 0,max:null!==(h=null===(d=this.config.yAxis)||void 0===d?void 0:d.max)&&void 0!==h?h:void 0,startOnTick:null===(p=null===(f=this.config.yAxis)||void 0===f?void 0:f.startOnTick)||void 0===p||p,endOnTick:null===(g=null===(m=this.config.yAxis)||void 0===m?void 0:m.endOnTick)||void 0===g||g},xAxis:{tickInterval:i,min:null!==(b=null===(y=this.config.xAxis)||void 0===y?void 0:y.min)&&void 0!==b?b:void 0,max:null!==(v=null===(x=this.config.xAxis)||void 0===x?void 0:x.max)&&void 0!==v?v:void 0,startOnTick:null!==(w=null===(k=this.config.xAxis)||void 0===k?void 0:k.startOnTick)&&void 0!==w&&w,endOnTick:null!==(A=null===(S=this.config.xAxis)||void 0===S?void 0:S.endOnTick)&&void 0!==A&&A}}});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],875:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.preparePlotLinesAndBands=n.mergeConfigs=void 0;var i=r(t("@babel/runtime/helpers/typeof")),s=r(t("@babel/runtime/helpers/defineProperty"));function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var l=n.mergeConfigs=function(t,e){if(!e)return t;var n=o({},t);return Object.keys(e).forEach(function(t){var r=n[t],s=e[t];r&&s&&"object"===(0,i.default)(r)&&"object"===(0,i.default)(s)&&!Array.isArray(r)&&!Array.isArray(s)?n[t]=l(r,s):n[t]=null!=s?s:r}),n};n.preparePlotLinesAndBands=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,c=(t?t.length:0)+(e?e.length:0),u={},h={},d={},p={},f={},g={};n&&(u=n.getRangeAnnotationsOptionsDesktop(s),h=n.getRangeAnnotationsOptionsMobile(t?t.length:0,s)),r&&(d=r.getReferenceLineAnnotationsOptionsDesktop(),p=r.getReferenceLineAnnotationsOptionsMobile(c,s));var m=i.getReferenceLine(a,s);if(f=o({},d),g=o({},p),void 0!==d.yAxis){var b=d.yAxis.plotLines.concat(m.yAxis.plotLines),y=p.yAxis.plotLines.concat(m.yAxis.plotLines);f.yAxis.plotLines=b,g.yAxis.plotLines=y}else f.yAxis=o({},m.yAxis),g.yAxis=o({},m.yAxis);return{desktopAllPlotLinesAndBands:l(u,f),mobileAllPlotLinesAndBands:l(h,g)}}},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/typeof":27}],876:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,a.default)(function t(e,n,r){var a=this;(0,s.default)(this,t),this.context=e,this.button=n,this.checkboxes=(0,i.default)(this.context.querySelectorAll("input")),this.insideReveal=r,this.button.addEventListener("click",this.handleButtonEvent.bind(this)),this.checkboxes.forEach(function(t){return t.addEventListener("change",a.handleCheckboxEvent.bind(a))}),this.insideReveal&&this.insideReveal.addEventListener("change",this.handleCheckboxEvent.bind(this)),this.numberOfCheckboxes=this.checkboxes.length,this.allChecked=!1,this.buttonText=this.button.querySelector(".ons-js-button-text"),this.selectAllText=this.button.getAttribute("data-select-all"),this.unselectAllText=this.button.getAttribute("data-unselect-all")},[{key:"handleButtonEvent",value:function(t){var e=this;t.preventDefault(),this.checkboxes.forEach(function(t){t.checked=!1===e.allChecked}),this.buttonText.innerHTML=!1===this.allChecked?this.unselectAllText:this.selectAllText,this.allChecked=!1===this.allChecked}},{key:"handleCheckboxEvent",value:function(){var t=this.checkboxes.filter(function(t){return t.checked}).length;this.buttonText.innerHTML=t===this.numberOfCheckboxes?this.unselectAllText:this.selectAllText,this.allChecked=t===this.numberOfCheckboxes}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],877:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.context=e,this.checkbox=e.querySelector(".ons-js-checkbox"),this.childInputs=(0,i.default)(this.context.querySelectorAll("input")),this.selectAllChildrenInput=this.context.querySelector(".ons-js-select-all-children"),this.selectAllChildrenInput?this.selectAllChildrenInput.addEventListener("change",this.checkChildInputsOnSelect.bind(this)):this.checkbox.addEventListener("change",this.uncheckChildInputsOnDeselect.bind(this))},[{key:"checkChildInputsOnSelect",value:function(){var t=this;this.childInputs.forEach(function(e){e.checked=!0===t.selectAllChildrenInput.checked})}},{key:"uncheckChildInputsOnDeselect",value:function(){!1===this.checkbox.checked&&this.childInputs.forEach(function(t){t.checked=!1})}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],878:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){var n=this;(0,i.default)(this,t),this.inputs=e,this.inputs.forEach(function(t){return t.addEventListener("change",n.setExpandedAttributes.bind(n))}),this.setExpandedAttributes()},[{key:"setExpandedAttributes",value:function(){this.inputs.filter(function(t){return t.hasAttribute("aria-haspopup")}).forEach(function(t){return t.setAttribute("aria-expanded",t.checked)})}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],879:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r,i,o,c,u,h;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-checkbox"))).length){e.next=7;break}return e.next=1,Promise.resolve().then(function(){return l(t("./checkboxes-with-reveal"))});case 1:if(new(0,e.sent.default)(n),!(r=document.querySelector(".ons-checkbox__other--open"))){e.next=3;break}return i=r.parentNode.querySelector(".ons-checkbox__input"),e.next=2,Promise.resolve().then(function(){return l(t("../radios/check-radios"))});case 2:new(0,e.sent.default)(i,r);case 3:if(!(o=(0,a.default)(document.querySelectorAll(".ons-js-other-fieldset-checkbox")))){e.next=5;break}return e.next=4,Promise.resolve().then(function(){return l(t("./checkbox-with-fieldset"))});case 4:c=e.sent.default,o.forEach(function(t){var e=t.closest(".ons-checkbox");new c(e)});case 5:if(!(u=(0,a.default)(document.querySelectorAll(".ons-js-auto-selector")))){e.next=7;break}return e.next=6,Promise.resolve().then(function(){return l(t("./checkbox-with-autoselect"))});case 6:h=e.sent.default,u.forEach(function(t){var e=t.parentNode,n=e.parentNode.parentNode.querySelector(".ons-js-other");new h(e,t,n)});case 7:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"../radios/check-radios":896,"./checkbox-with-autoselect":876,"./checkbox-with-fieldset":877,"./checkboxes-with-reveal":878,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],880:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-cookies-banner"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./cookies-banner"))});case 1:r=e.sent.default,n.forEach(function(t){new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./cookies-banner":881,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],881:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=t("../../js/cookies-functions");n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.component=e,this.primaryBanner=this.component.querySelector(".ons-cookies-banner__primary"),this.confirmBanner=this.component.querySelector(".ons-cookies-banner__confirmation"),this.acceptButton=this.component.querySelector(".ons-js-accept-cookies"),this.rejectButton=this.component.querySelector(".ons-js-reject-cookies"),this.hideButton=this.component.querySelector(".ons-js-hide-button"),this.acceptedText=this.component.querySelector(".ons-js-accepted-text"),this.rejectedText=this.component.querySelector(".ons-js-rejected-text"),this.setupCookiesEvents()},[{key:"setupCookiesEvents",value:function(){this.acceptButton.addEventListener("click",this.setCookiesConsent.bind(this)),this.rejectButton.addEventListener("click",this.setCookiesConsent.bind(this)),this.hideButton.addEventListener("click",this.hideConfirmBanner.bind(this)),this.showCookiesMessage()}},{key:"showCookiesMessage",value:function(){var t=this.component&&"true"!==(0,o.cookie)("ons_cookie_message_displayed"),e=(0,o.cookie)("ons_cookie_policy");e&&(0,o.setConsentCookie)(JSON.parse(e.replace(/'/g,'"'))),t&&(this.component.style.display="block",(0,o.cookie)("ons_cookie_policy")||(0,o.setDefaultConsentCookie)())}},{key:"setCookiesConsent",value:function(t){var e;t.preventDefault();var n=t.target.getAttribute("data-button");"accept"==n?(this.acceptCookies(),e=this.acceptedText):"reject"==n&&((0,o.setDefaultConsentCookie)(),e=this.rejectedText),this.hidePrimaryCookiesBanner(e),this.checkPage(n),(0,o.cookie)("ons_cookie_message_displayed","true",{days:365})}},{key:"acceptCookies",value:function(){(0,o.approveAllCookieTypes)(),"undefined"!=typeof loadGTM&&loadGTM()}},{key:"checkPage",value:function(t){document.querySelector('[data-module="cookie-settings"]')&&this.updateRadios(t)}},{key:"updateRadios",value:function(t){(0,i.default)(document.querySelectorAll(".ons-js-radio")).forEach(function(e){"reject"==t?"off"==e.value?e.checked=!0:e.checked=!1:"accept"==t&&("off"==e.value?e.checked=!1:e.checked=!0)})}},{key:"hidePrimaryCookiesBanner",value:function(t){this.component&&(this.primaryBanner.style.display="none",this.confirmBanner.classList.remove("ons-u-d-no"),this.confirmBanner.setAttribute("aria-live","polite"),this.confirmBanner.setAttribute("role","status"),t.classList.remove("ons-u-d-no"))}},{key:"hideConfirmBanner",value:function(){this.component&&(this.component.style.display="none")}}])}()},{"../../js/cookies-functions":921,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],882:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,a.default)(document.querySelectorAll(".ons-js-details")),r=(0,a.default)(document.querySelectorAll(".ons-js-accordion")),!n.length||r.length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./details"))});case 1:i=e.sent.default,n.map(function(t){return new i(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./details":883,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],883:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.saveState="true"===e.getAttribute("data-save-state"),this.open="true"===e.getAttribute("data-open"),this.group=e.getAttribute("data-group"),this.details=e,this.detailsHeader=this.details.querySelector(".ons-js-details-heading"),this.content=this.details.querySelector(".ons-js-details-content"),this.detailsTitle=this.details.querySelector(".ons-js-corrections-details-title");var n=e.getAttribute("id");this.details.setAttribute("role","group"),this.detailsHeader.setAttribute("role","link"),this.detailsHeader.setAttribute("aria-controls",n),this.detailsHeader.setAttribute("tabindex",0),localStorage.getItem(n)||this.open?this.setOpen(!0):this.setOpen(!1),this.detailsHeader.addEventListener("click",this.toggle.bind(this)),this.detailsHeader.addEventListener("keydown",this.keyboardInteraction.bind(this)),this.details.classList.add("ons-details--initialised")},[{key:"toggle",value:function(t){t.preventDefault(),this.setOpen(!this.isOpen)}},{key:"setOpen",value:function(t){if(t!==this.isOpen){var e=t?"Open":"Close",n=t?"add":"remove",r=t?"set":"remove",i=t?"Close detail":"Show detail";this.isOpen=t,this.details["".concat(r,"Attribute")]("open",""),this.details.classList[n]("ons-details--open"),this.detailsHeader.setAttribute("aria-expanded",t),this.content.setAttribute("aria-hidden",!t),this.detailsHeader.setAttribute("data-ga-action","".concat(e," panel")),this.detailsTitle&&(this.detailsTitle.textContent=i),this.onOpen&&this.onClose&&(t?this.onOpen():this.onClose())}!0===this.saveState&&!0===t?localStorage.setItem(this.details.getAttribute("id"),!0):localStorage.removeItem(this.details.getAttribute("id"))}},{key:"keyboardInteraction",value:function(t){switch(t.which){case 13:case 32:t.preventDefault(),t.stopPropagation(),this.toggle(t)}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],884:[function(t,e,n){"use strict";function r(){}if(r.hasClass=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},r.addClass=function(t,e){var n=e.split(" ");t.classList?t.classList.add(n[0]):r.hasClass(t,n[0])||(t.className+=" "+n[0]),n.length>1&&r.addClass(t,n.slice(1).join(" "))},r.removeClass=function(t,e){var n=e.split(" ");if(t.classList)t.classList.remove(n[0]);else if(r.hasClass(t,n[0])){var i=new RegExp("(\\s|^)"+n[0]+"(\\s|$)");t.className=t.className.replace(i," ")}n.length>1&&r.removeClass(t,n.slice(1).join(" "))},r.toggleClass=function(t,e,n){n?r.addClass(t,e):r.removeClass(t,e)},r.setAttributes=function(t,e){for(var n in e)t.setAttribute(n,e[n])},r.getChildrenByClassName=function(t,e){for(var n=[],i=0;i<t.children.length;i++)r.hasClass(t.children[i],e)&&n.push(t.children[i]);return n},r.is=function(t,e){if(e.nodeType)return t===e;for(var n="string"==typeof e?document.querySelectorAll(e):e,r=n.length;r--;)if(n[r]===t)return!0;return!1},r.setHeight=function(t,e,n,r,i){var s=e-t,a=null,o=function(e){a||(a=e);var l=e-a,c=parseInt(l/r*s+t);n.style.height=c+"px",l<r?window.requestAnimationFrame(o):i()};n.style.height=t+"px",window.requestAnimationFrame(o)},r.scrollTo=function(t,e,n,r){var i=r||window,s=i.scrollTop||document.documentElement.scrollTop,a=null;r||(s=window.scrollY||document.documentElement.scrollTop);var o=function(r){a||(a=r);var l=r-a;l>e&&(l=e);var c=Math.easeInOutQuad(l,s,t-s,e);i.scrollTo(0,c),l<e?window.requestAnimationFrame(o):n&&n()};window.requestAnimationFrame(o)},r.moveFocus=function(t){t||(t=document.getElementsByTagName("body")[0]),t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus())},r.getIndexInArray=function(t,e){return Array.prototype.indexOf.call(t,e)},r.cssSupports=function(t,e){return"CSS"in window?CSS.supports(t,e):t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})in document.body.style},r.extend=function(){var t={},e=!1,n=0,r=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);for(var i=function(n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e&&"[object Object]"===Object.prototype.toString.call(n[r])?t[r]=extend(!0,t[r],n[r]):t[r]=n[r])};n<r;n++){i(arguments[n])}return t},r.osHasReducedMotion=function(){if(!window.matchMedia)return!1;var t=window.matchMedia("(prefers-reduced-motion: reduce)");return!!t&&t.matches},Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),"function"!=typeof window.CustomEvent){function i(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}i.prototype=window.Event.prototype,window.CustomEvent=i}Math.easeInOutQuad=function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},function(){var t=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(o){this.options=r.extend(t.defaults,o),this.element=this.options.element,this.elementId=this.element.getAttribute("id"),this.items=this.element.querySelectorAll(".ons-js-filter__item"),this.controllers=document.querySelectorAll('[aria-controls="'+this.elementId+'"]'),this.fallbackMessage=document.querySelector('[data-fallback-gallery-id="'+this.elementId+'"]'),this.filterString=[],this.sortingString="",this.filterList=[],this.sortingList=[],this.itemsGrid=[],this.itemsInitPosition=[],this.itemsIterPosition=[],this.itemsFinalPosition=[],this.animateOff="off"==this.element.getAttribute("data-filter-animation"),this.resizingId=!1,this.accelerateStyle="will-change: transform, opacity; transform: translateZ(0); backface-visibility: hidden;",this.animating=!1,this.reanimate=!1,function(t){c(t,!0,!0),u(t),function(t){for(var e=0;e<t.items.length;e++)t.items[e].setAttribute("data-init-sort-order",e)}(t);for(var o=0;o<t.controllers.length;o++)t.filterString[o]="",function(e){t.controllers[e].addEventListener("change",function(r){"select"==r.target.tagName.toLowerCase()?r.target.getAttribute("data-filter")?i(t,e,"select"):n(t,r.target.value,r.target.options[r.target.selectedIndex]):"input"!=r.target.tagName.toLowerCase()||"radio"!=r.target.getAttribute("type")&&"checkbox"!=r.target.getAttribute("type")?t.controllers[e].getAttribute("data-filter")?i(t,e,"custom"):n(t,t.controllers[e].getAttribute("data-sort"),t.controllers[e]):r.target.getAttribute("data-filter")?i(t,e,"input"):n(t,r.target.getAttribute("data-sort"),r.target),a(t)}),t.controllers[e].addEventListener("click",function(o){var l=o.target.closest("[data-filter]"),c=o.target.closest("[data-sort]");(l||c)&&(!l||"input"!=l.tagName.toLowerCase()&&"select"!=l.tagName.toLowerCase())&&(!c||"input"!=c.tagName.toLowerCase()&&"select"!=c.tagName.toLowerCase())&&(c&&r.hasClass(c,"ons-js-filter__custom-control")||l&&r.hasClass(l,"ons-js-filter__custom-control")||(o.preventDefault(),s(t,e,l,c),c?n(t,c.getAttribute("data-sort"),c):i(t,e,"button"),a(t)))})}(o);window.addEventListener("resize",function(){clearTimeout(t.resizingId),t.resizingId=setTimeout(function(){u(t)},300)}),e(t),t.element.addEventListener("update-filter-results",function(){for(var n=0;n<t.controllers.length;n++)t.filterString[n]="";t.sortingString="",e(t)})}(this)});function e(t){for(var e=0;e<t.controllers.length;e++){var r=t.controllers[e].getElementsByClassName("ons-js-filter-selected");if(r.length>0){r[0].getAttribute("data-sort")?n(t,r[0].getAttribute("data-sort"),r[0]):i(t,e,"button")}else{var s=t.controllers[e].querySelectorAll("input:checked");if(s.length>0){var o=s[0].getAttribute("data-sort");o?n(t,o,s[0]):i(t,e,"input")}else if("select"!=t.controllers[e].tagName.toLowerCase()){var l=t.controllers[e].querySelector('input[type="radio"]'),c=t.controllers[e].querySelector('input[type="checkbox"]');if(!l&&!c){var u=t.controllers[e].getAttribute("data-sort"),h=t.controllers[e].getAttribute("data-filter");u?n(t,u,t.controllers[e]):h&&i(t,e,"custom")}}else{t.controllers[e].getAttribute("data-sort")?n(t,t.controllers[e].value,t.controllers[e].options[t.controllers[e].selectedIndex]):i(t,e,"select")}}}a(t)}function n(t,e,n){var r=n.getAttribute("data-sort-order")?"desc":"asc",i=n.getAttribute("data-sort-number")?"number":"string";t.sortingString=e+":"+r+":"+i}function i(t,e,n){if("input"==n){var r=t.controllers[e].querySelectorAll("input:checked");t.filterString[e]="";for(var i=0;i<r.length;i++)t.filterString[e]=t.filterString[e]+r[i].getAttribute("data-filter")+":"}else if("select"==n)t.controllers[e].multiple?t.filterString[e]=function(t){for(var e=t.options,n="",r=0;r<e.length;r++)e[r].selected&&(""!=n&&(n+=":"),n+=e[r].value);return n}(t.controllers[e]):t.filterString[e]=t.controllers[e].value;else if("button"==n){var s=t.controllers[e].querySelectorAll(".ons-js-filter-selected");t.filterString[e]="";for(var a=0;a<s.length;a++)t.filterString[e]=t.filterString[e]+s[a].getAttribute("data-filter")+":"}else"custom"==n&&(t.filterString[e]=t.controllers[e].getAttribute("data-filter"))}function s(t,e,n,i){var s=t.controllers[e].getAttribute("data-filter-checkbox"),a=t.controllers[e].getAttribute("data-selected-class");if(a=a?"ons-js-filter-selected "+a:"ons-js-filter-selected","true"==s)n?r.toggleClass(n,a,!r.hasClass(n,"ons-js-filter-selected")):r.toggleClass(i,a,!r.hasClass(i,"ons-js-filter-selected"));else{var o=t.controllers[e].querySelector(".ons-js-filter-selected");o&&r.removeClass(o,a),n?r.addClass(n,a):r.addClass(i,a)}}function a(t){t.animating?t.reanimate=!0:(t.animating=!0,t.reanimate=!1,u(t),function(t){var e=t.sortingString.split(":");""==e[0]||"*"==e[0]?function(t){for(var e=0;e<t.items.length;e++)t.sortingList[parseInt(t.items[e].getAttribute("data-init-sort-order"))]=[t.items[e],e]}(t):t.options[e[0]]?t.sortingList=t.options[e[0]](t.sortingList):t.sortingList.sort(function(t,n){var r=t[0].getAttribute("data-sort-"+e[0]),i=n[0].getAttribute("data-sort-"+e[0]);return"number"==e[2]&&(r=parseFloat(r),i=parseFloat(i)),"desc"==e[1]?r<=i?1:-1:r>=i?1:-1})}(t),function(t){c(t,!0,!1);for(var e=0;e<t.filterString.length;e++)""!=t.filterString[e]&&"*"!=t.filterString[e]&&" "!=t.filterString[e]&&o(t,t.filterString[e].split(":"))}(t),d(t,!0),f||t.animateOff?l(t):function(t){h(t,t.itemsInitPosition),t.element.setAttribute("style","height: "+parseFloat(t.element.offsetHeight)+"px; width: "+parseFloat(t.element.offsetWidth)+"px;");for(var e=0;e<t.items.length;e++)r.hasClass(t.items[e],"ons-u-hidden")&&t.filterList[e]&&(t.items[e].setAttribute("data-scale","on"),t.items[e].setAttribute("style",t.accelerateStyle+"transform: scale(0.5); opacity: 0;"),r.removeClass(t.items[e],"ons-u-hidden"));h(t,t.itemsIterPosition);for(var n=0;n<t.items.length;n++)"on"!=t.items[n].getAttribute("data-scale")&&t.items[n].setAttribute("style",t.accelerateStyle+"transform: translateX("+parseInt(t.itemsInitPosition[n][0]-t.itemsIterPosition[n][0])+"px) translateY("+parseInt(t.itemsInitPosition[n][1]-t.itemsIterPosition[n][1])+"px);");!function(t){for(var e="transform "+t.options.duration+"ms cubic-bezier(0.455, 0.03, 0.515, 0.955), opacity "+t.options.duration+"ms",n=0,i=0;i<t.sortingList.length;i++){var s=t.items[t.sortingList[i][1]];r.hasClass(s,"ons-u-hidden")||!t.filterList[t.sortingList[i][1]]?(t.itemsFinalPosition[t.sortingList[i][1]]=t.itemsIterPosition[t.sortingList[i][1]],"on"==s.getAttribute("data-scale")&&(n+=1)):(t.itemsFinalPosition[t.sortingList[i][1]]=[t.itemsGrid[n][0],t.itemsGrid[n][1]],n+=1)}setTimeout(function(){for(var n=0;n<t.items.length;n++)t.filterList[n]&&"on"==t.items[n].getAttribute("data-scale")?t.items[n].setAttribute("style",t.accelerateStyle+"transition: "+e+"; transform: translateX("+parseInt(t.itemsFinalPosition[n][0]-t.itemsIterPosition[n][0])+"px) translateY("+parseInt(t.itemsFinalPosition[n][1]-t.itemsIterPosition[n][1])+"px) scale(1); opacity: 1;"):t.filterList[n]?t.items[n].setAttribute("style",t.accelerateStyle+"transition: "+e+"; transform: translateX("+parseInt(t.itemsFinalPosition[n][0]-t.itemsIterPosition[n][0])+"px) translateY("+parseInt(t.itemsFinalPosition[n][1]-t.itemsIterPosition[n][1])+"px);"):t.items[n].setAttribute("style",t.accelerateStyle+"transition: "+e+"; transform: scale(0.5); opacity: 0;")},50),setTimeout(function(){l(t)},t.options.duration+100)}(t)}(t))}function o(t,e){if(e&&""!=e&&"*"!=e){for(var n=[],r=0;r<e.length;r++)t.options[e[r]]&&(n[e[r]]=t.options[e[r]](t.items));for(var i=0;i<t.items.length;i++){for(var s=t.items[i].getAttribute("data-filter").split(" "),a=!1,o=0;o<e.length;o++){if(t.options[e[o]]&&n[e[o]][i]){a=!0;break}if("*"==e[o]||s.indexOf(e[o])>-1){a=!0;break}}t.filterList[i]=!!a&&t.filterList[i]}}}function l(t){for(var e=0;e<t.items.length;e++)t.items[e].removeAttribute("style"),r.toggleClass(t.items[e],"ons-u-hidden",!t.filterList[e]),t.items[e].removeAttribute("data-scale");for(var n=0;n<t.items.length;n++)t.element.appendChild(t.items[t.sortingList[n][1]]);t.items=[],t.items=t.element.querySelectorAll(".ons-js-filter__item"),c(t,!1,!0),t.element.removeAttribute("style"),t.animating=!1,t.reanimate&&a(t),d(t,!1),t.element.dispatchEvent(new CustomEvent("filter-selection-updated"))}function c(t,e,n){for(var r=0;r<t.items.length;r++)e&&(t.filterList[r]=!0),n&&(t.sortingList[r]=[t.items[r],r])}function u(t){for(var e,n,i,s,a,o,l=parseFloat(window.getComputedStyle(t.element).getPropertyValue("width")),c=0;c<t.items.length;c++)if(!r.hasClass(t.items[c],"ons-u-hidden")){e=window.getComputedStyle(t.items[c]),n=parseFloat(e.getPropertyValue("width")),i=parseFloat(e.getPropertyValue("height")),s=parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),a=parseFloat(e.getPropertyValue("margin-bottom"))+parseFloat(e.getPropertyValue("margin-top")),o=parseInt((l+s)/(n+s)),t.itemsGrid[0]=[t.items[c].offsetLeft,t.items[c].offsetTop];break}for(var u=1;u<t.items.length;u++){var h=u<o?u:u%o,d=u<o?0:Math.floor(u/o);t.itemsGrid[u]=[t.itemsGrid[0][0]+h*(n+s),t.itemsGrid[0][1]+d*(i+a)]}}function h(t,e){for(var n=0;n<t.items.length;n++)e[n]=[t.items[n].offsetLeft,t.items[n].offsetTop]}function d(t,e){if(t.fallbackMessage){for(var n=!0,i=0;i<t.filterList.length;i++)if(t.filterList[i]){n=!1;break}e?n||r.addClass(t.fallbackMessage,"ons-u-hidden"):r.toggleClass(t.fallbackMessage,"ons-u-hidden",!n)}}t.defaults={element:!1,duration:400},window.Filter=t;var p=document.getElementsByClassName("ons-js-filter"),f=r.osHasReducedMotion();if(p.length>0)for(var g=0;g<p.length;g++){var m=p[g].getAttribute("data-filter-duration");m||(m=t.defaults.duration),new t({element:p[g],duration:m})}}(),function(){var t=function(t){this.element=t,this.form=document.getElementsByClassName("ons-js-adv-filter__form"),this.resultsList=this.element.getElementsByClassName("ons-js-adv-filter__gallery")[0],this.resultsCount=this.element.getElementsByClassName("ons-js-adv-filter__results-count"),this.showCount=document.getElementsByClassName("ons-js-adv-filter__show-results"),function(t){t.form.length>0&&(t.form[0].addEventListener("reset",function(){setTimeout(function(){!function(t){var e=t.element.getElementsByClassName("ons-js-select");if(e.length>0)for(var n=0;n<e.length;n++)e[n].dispatchEvent(new CustomEvent("select-updated"));var r=t.element.getElementsByClassName("ons-js-slider");if(r.length>0)for(var i=0;i<r.length;i++)r[i].dispatchEvent(new CustomEvent("slider-updated"))}(t),function(t){t.form[0].dispatchEvent(new CustomEvent("change")),t.resultsList.dispatchEvent(new CustomEvent("update-filter-results"))}(t)})}),t.form[0].addEventListener("change",function(n){var i=n.target.closest(".ons-js-adv-filter__item");if(i)e(t,i);else if(r.is(n.target,".ons-js-adv-filter__form"))for(var s=t.form[0].getElementsByClassName("ons-js-adv-filter__item"),a=0;a<s.length;a++)e(t,s[a])}));t.resultsCount.length>0&&t.resultsList.addEventListener("filter-selection-updated",function(){!function(t){for(var e=t.resultsList.children,n=0,r=0;r<e.length;r++)i(e[r])&&(n+=1);t.resultsCount[0].textContent=n,t.showCount[0].textContent=n}(t)})}(this)};function e(t,e){var r=e.getElementsByClassName("ons-js-adv-filter__selection");if(0!=r.length){var i=e.getElementsByTagName("select");if(i.length>0)r[0].textContent=function(t,e){if(e.multiple){for(var n="",r=0,i=0;i<e.options.length;i++)e.options[i].selected&&(n=n+""+e.options[i].text,r+=1),r>1&&(n=t.getAttribute("data-multi-select-text").replace("{n}",r));return n}return e.options[e.selectedIndex].text}(e,i[0]);else{var s=e.querySelectorAll('input[type="number"]');if(s.length>0)r[0].textContent=function(t,e){for(var n=0,r=0;r<e.length;r++)e[r].value!=e[r].min&&(n+=1);return e.length>1?n>0?t.getAttribute("data-multi-select-text").replace("{n}",n):t.getAttribute("data-default-text"):e[0].value==e[0].min?t.getAttribute("data-default-text"):t.getAttribute("data-number-format").replace("{n}",e[0].value)}(e,s);else{var a=e.querySelectorAll('input[type="range"]');if(a.length>0)r[0].textContent=function(t,e){for(var n="",r=t.getAttribute("data-number-format"),i=0;i<e.length;i++)0!=i&&(n+=" - "),n+=r.replace("{n}",e[i].value);return n}(e,a);else{var o=e.querySelectorAll('input[type="radio"]'),l=e.querySelectorAll('input[type="checkbox"]');o.length>0?r[0].textContent=n(e,o):l.length>0&&(r[0].textContent=n(e,l))}}}}}function n(t,e){for(var n=0,r="",i=0;i<e.length;i++)if(e[i].checked){var s=e[i].parentNode.getElementsByTagName("label");s.length>0&&(r=s[0].textContent),n+=1}return n>1?t.getAttribute("data-multi-select-text").replace("{n}",n):0==n?t.getAttribute("data-default-text"):r}function i(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length}var s=document.getElementsByClassName("ons-js-adv-filter");if(s.length>0)for(var a=0;a<s.length;a++)(function(e){new t(s[e])})(a);var o=document.getElementById("adv-filter-gallery");o&&new Filter({element:o,priceRange:function(t){for(var e=[],n=document.getElementById("slider-min-value").value,r=document.getElementById("slider-max-value").value,i=0;i<t.length;i++){var s=parseInt(t[i].getAttribute("data-price"));e[i]=s>=n&&s<=r}return e},indexValue:function(t){for(var e=[],n=document.getElementById("index-value").value,r=0;r<t.length;r++){var i=parseInt(t[r].getAttribute("data-sort-index"));e[r]=i>=n}return e}})}(),function(){var t=document.getElementsByClassName("ons-js-adv-filter");if(t.length>0){var e=t[0].getElementsByClassName("ons-js-adv-filter__trigger")[0],n=t[0].getElementsByClassName("ons-js-adv-filter__close")[0],i=t[0].getElementsByClassName("ons-js-adv-filter__show")[0],s=t[0].getElementsByClassName("ons-js-adv-filter__wrap")[0],a=t[0].getElementsByClassName("ons-js-adv-filter__panel")[0],o=document.getElementsByTagName("body")[0],l=document.getElementsByClassName("ons-page")[0];e.addEventListener("click",function(t){t.preventDefault(),d(!r.hasClass(a,"ons-adv-filter__panel--is-visible"))}),i.addEventListener("click",function(t){t.preventDefault(),e.click()}),n.addEventListener("click",function(t){t.preventDefault(),e.click()}),window.addEventListener("keyup",function(t){(t.keyCode&&27==t.keyCode||t.key&&"escape"==t.key.toLowerCase())&&"true"==e.getAttribute("aria-expanded")&&h(e)&&e.click()});var c=!1;function u(){h(e)||d(!1)}function h(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length}function d(t){!0===t?o.appendChild(a):s.appendChild(a),r.toggleClass(l,"ons-u-d-no",t),r.toggleClass(a,"ons-adv-filter__panel--is-visible",t),r.toggleClass(o,"ons-no-scroll",t),e.setAttribute("aria-expanded",t),e.setAttribute("aria-hidden",t),l.setAttribute("aria-hidden",t),r.toggleClass(e,"ons-u-d-no",t)}window.addEventListener("resize",function(){clearTimeout(c),c=setTimeout(u,500)})}}()},{}],885:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-char-check-input"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("../char-check-limit/character-check"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"../char-check-limit/character-check":857,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],886:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-input-container-abbr"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./input"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./input":887,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],887:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.abbrInput=e,this.bindEventListeners()},[{key:"bindEventListeners",value:function(){this.abbrInput.querySelector(".ons-js-input-abbr").addEventListener("click",this.handleClick.bind(this))}},{key:"handleClick",value:function(){this.abbrInput.querySelector(".ons-input").focus()}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],888:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,a.default)(document.querySelectorAll(".ons-js-modal")),r=(0,a.default)(document.querySelectorAll(".ons-js-timeout-modal")),!n.length||r.length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./modal"))});case 1:i=e.sent.default,n.forEach(function(t){return new i(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./modal":889,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],889:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("dialog-polyfill")),o="ons-modal-overlay",l="ons-modal-ie11";n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.component=e,this.launcher=document.querySelector("[data-modal-id=".concat(e.id,"]")),this.closeButton=e.querySelector(".ons-js-modal-btn"),this.lastFocusedEl=null,this.dialogCSSSupported=!0,this.modalType=this.component.classList.contains("ons-js-timeout-modal")?"Timeout":"Generic",this.initialise()},[{key:"initialise",value:function(){this.dialogSupported()&&(this.launcher&&this.launcher.addEventListener("click",this.openDialog.bind(this)),this.closeButton&&this.closeButton.addEventListener("click",this.closeDialog.bind(this)),"Timeout"!==this.modalType&&window.addEventListener("keydown",this.escToClose.bind(this)))}},{key:"dialogSupported",value:function(){if("function"==typeof HTMLDialogElement)return!0;try{return a.default.registerDialog(this.component),this.dialogCSSSupported=!1,!0}catch(t){return!1}}},{key:"openDialog",value:function(t){this.isDialogOpen()||(this.component.classList.add("ons-u-db"),document.querySelector("body").classList.add(o),this.dialogCSSSupported||document.querySelector("body").classList.add(l),this.saveLastFocusedEl(),t?document.getElementById(t.target.getAttribute("data-modal-id")).showModal():this.component.showModal())}},{key:"saveLastFocusedEl",value:function(){this.lastFocusedEl=document.activeElement,this.lastFocusedEl&&this.lastFocusedEl!==document.body?document.querySelector&&(this.lastFocusedEl=document.querySelector(":focus")):this.lastFocusedEl=null}},{key:"setFocusOnLastFocusedEl",value:function(t){t&&t.focus()}},{key:"isDialogOpen",value:function(){return this.component.open}},{key:"closeDialog",value:function(t){this.isDialogOpen()&&(t&&t.preventDefault(),this.component.classList.remove("ons-u-db"),document.querySelector("body").classList.remove(o),this.dialogCSSSupported||document.querySelector("body").classList.remove(l),this.component.close(),this.setFocusOnLastFocusedEl(this.lastFocusedEl))}},{key:"escToClose",value:function(t){this.isDialogOpen()&&27===t.keyCode&&this.closeDialog(t)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"dialog-polyfill":824}],890:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("../../js/domready"));function c(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function u(){return(u=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.getElementsByClassName("ons-js-mutually-exclusive"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return c(t("./mutually-exclusive"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,l.default)(function(){return u.apply(this,arguments)})},{"../../js/domready":925,"./mutually-exclusive":891,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],891:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("dompurify")),l="ons-js-input-abbr",c="ons-js-input-legend";n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.context=e;var r=(0,i.default)(e.getElementsByClassName("ons-js-exclusive-group-item"));this.numberOfGroupInputs=r.length,this.groupInputs=r.map(function(t){return{element:t,labelText:n.getElementLabelText(t),hasValue:n.inputHasValue(t),exclusive:!1}});var a=(0,i.default)(e.getElementsByClassName("ons-js-exclusive-option"));this.numberOfExclusiveElements=a.length,this.exclusiveElements=a.map(function(t){return{element:t,label:e.querySelector("label[for=".concat(t.id,"]")),labelText:n.getElementLabelText(t),hasValue:n.inputHasValue(t),exclusive:!0}}),this.allInputs=[].concat((0,i.default)(this.groupInputs),(0,i.default)(this.exclusiveElements)),this.voiceOverAlertElement=e.querySelector(".".concat("ons-js-exclusive-alert")),this.groupAdjective=this.voiceOverAlertElement.getAttribute("data-group-adjective"),this.optionAttrAdjective=this.voiceOverAlertElement.getAttribute("data-option-adjective"),this.deselectMessage=this.exclusiveElements[0].element.getAttribute("data-deselect-message"),this.bindEventListeners()},[{key:"bindEventListeners",value:function(){var t=this;this.allInputs.forEach(function(e){var n=["checkbox","radio"].includes(e.element.type)?"click":"input";e.element.addEventListener(n,function(){return t.handleValueChange(e)})})}},{key:"handleValueChange",value:function(t){var e,n=this,r=this.allInputs.filter(function(t){return t.hasValue}).map(function(t){return t.labelText});if(t.hasValue=this.inputHasValue(t.element),t.hasValue){if(t.exclusive)e=this.groupAdjective,this.allInputs.filter(function(t){return!t.exclusive}).forEach(function(t){t.hasValue=!1,["checkbox","radio"].includes(t.element.type)?(t.element.checked=!1,n.triggerEvent(t.element,"change")):(t.element.value="",n.triggerEvent(t.element,"input"))});else if(!t.exclusive){var i=this.allInputs.filter(function(t){return t.exclusive});e=this.optionAttrAdjective,i.forEach(function(t){t.hasValue=!1,t.element.checked=!1}),this.triggerEvent(t.element,"change")}var s=this.allInputs.filter(function(t){return t.hasValue}).map(function(t){return t.labelText}),a=r.filter(function(t){return!s.includes(t)});this.setDeselectMessage(),setTimeout(function(){return n.setAriaLive(a,e)},300)}}},{key:"getElementLabelText",value:function(t){var e,n=this.context.querySelector("label[for=".concat(t.id,"]"));return!n&&this.numberOfGroupInputs>1&&(n=t.parentNode.querySelector(".".concat(l))),n||(n=this.context.querySelector(".".concat(c))),n&&(e=n.classList.contains(l)&&n.querySelector("abbr")?n.getAttribute("title"):n.classList.contains(l)&&n.querySelector("span")?n.querySelector("span").innerText:n.classList.contains(c)&&n.querySelector("h1")?n.querySelector("h1").innerText:(0,i.default)(n.childNodes).filter(function(t){return 3===t.nodeType&&t.textContent.trim()})[0].textContent.trim()),e}},{key:"inputHasValue",value:function(t){return["checkbox","radio"].includes(t.type)?!!t.checked:!!t.value.trim().length}},{key:"setAriaLive",value:function(t,e){var n=t.map(function(t){return"".concat(t," ").concat(e,".")}).join(" ");n&&(this.voiceOverAlertElement.innerHTML=o.default.sanitize(n))}},{key:"setDeselectMessage",value:function(){var t=this.groupInputs.find(function(t){return t.hasValue});if(!this.deselectMessageElement&&t){var e=document.createElement("span");e.classList.add("ons-u-vh"),e.innerHTML=". ".concat(this.deselectMessage),this.deselectMessageElement=e,this.exclusiveElements[0].label.appendChild(e)}else this.deselectMessageElement&&!t&&(this.deselectMessageElement.remove(),this.deselectMessageElement=null)}},{key:"triggerEvent",value:function(t,e){var n;"function"==typeof Event?n=new Event(e,{bubbles:!1,cancelable:!0}):(n=document.createEvent("HTMLEvents")).initEvent(e,!1,!0),t.dispatchEvent(n)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,dompurify:825}],892:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/asyncToGenerator"));function o(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,a.default)(s.default.mark(function e(){var n,r,i,a,l,c,u,h,d,p,f,g,m,b,y,v,x;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=document.querySelector(".ons-js-navigation-button"),r=document.querySelector(".ons-js-navigation"),i="ons-u-d-no@2xs@l",a=document.querySelector(".ons-js-sub-navigation-button"),l=document.querySelector(".ons-js-secondary-nav"),c="ons-u-d-no",u=document.querySelector(".ons-js-toggle-search"),h=document.querySelector(".ons-js-navigation-search"),d="ons-u-d-no@xs@l",p=document.querySelector(".ons-js-toggle-services"),f=document.querySelector(".ons-js-services-mobile-nav"),g="ons-u-d-no",m=document.querySelector(".ons-js-toggle-header-search"),b="ons-u-d-no",y=document.querySelector(".ons-js-header-search"),v=document.querySelector(".ons-js-nav-menu"),x=document.querySelector(".ons-js-toggle-nav-menu"),!n){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return o(t("./navigation"))});case 1:new(0,e.sent.default)(n,r,i).registerEvents();case 2:if(!a){e.next=4;break}return e.next=3,Promise.resolve().then(function(){return o(t("./navigation"))});case 3:new(0,e.sent.default)(a,l,c).registerEvents();case 4:if(!u){e.next=6;break}return e.next=5,Promise.resolve().then(function(){return o(t("./navigation"))});case 5:new(0,e.sent.default)(u,h,d).registerEvents();case 6:if(!m){e.next=8;break}return e.next=7,Promise.resolve().then(function(){return o(t("./navigation"))});case 7:new(0,e.sent.default)(m,y,b).registerEvents();case 8:if(!x){e.next=10;break}return e.next=9,Promise.resolve().then(function(){return o(t("./navigation"))});case 9:new(0,e.sent.default)(x,v,b).registerEvents();case 10:if(!p){e.next=12;break}return e.next=11,Promise.resolve().then(function(){return o(t("./navigation"))});case 11:new(0,e.sent.default)(p,f,g).registerEvents();case 12:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./navigation":893,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],893:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("../../js/utils/viewport-change")),l="aria-expanded",c="aria-hidden",u="aria-disabled";n.default=function(){return(0,a.default)(function t(e,n,r){(0,s.default)(this,t),this.toggle=e,this.navigation=n,this.hideClass=r,this.searchToggleBtn=document.querySelector(".ons-js-toggle-header-search"),this.menuBtn=document.querySelector(".ons-js-toggle-nav-menu"),this.menuEl=document.querySelector(".ons-js-nav-menu"),this.searchBtn=document.querySelector(".ons-btn--search"),this.searchEl=document.querySelector(".ons-js-header-search"),this.toggle.classList.remove("ons-u-d-no"),this.toggle.classList.remove("disabled"),this.setAria(),(0,o.default)(this.setAria.bind(this))},[{key:"registerEvents",value:function(){this.toggle.addEventListener("click",this.toggleNav.bind(this))}},{key:"toggleNav",value:function(){"false"===this.navigation.getAttribute(c)?this.closeNav():this.openNav()}},{key:"openNav",value:function(){var t=(0,i.default)(this.navigation.getElementsByTagName("INPUT"))[0];this.toggle.classList.add("active"),this.navigation.setAttribute(c,"false"),this.navigation.classList.remove(this.hideClass),t&&t.focus(),this.toggle===this.searchToggleBtn&&this.updateSearchIcon(!0,this.toggle),this.toggle.setAttribute(l,"true"),this.toggleMenuAndSearch()}},{key:"closeNav",value:function(){this.toggle.classList.remove("active"),this.navigation.setAttribute(c,"true"),this.navigation.classList.add(this.hideClass),this.toggle===this.searchToggleBtn&&this.updateSearchIcon(!1,this.toggle),this.toggle.setAttribute(l,"false")}},{key:"updateSearchIcon",value:function(t,e){var n='\n <span class="ons-btn__inner">\n <svg class="ons-icon ons-icon--close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" focusable="false" fill="currentColor" role="img" title="ons-icon-close">\n <path d="M12 0C5.4 0 0 5.4 0 12C0 18.6 5.4 24 12 24C18.6 24 24 18.6 24 12C24 5.4 18.6 0 12 0ZM17.3143 15.5143C17.6571 15.8571 17.6571 16.3714 17.3143 16.7143L16.7143 17.3143C16.3714 17.6571 15.8571 17.6571 15.5143 17.3143L12 13.8L8.48571 17.3143C8.14286 17.6571 7.62857 17.6571 7.28571 17.3143L6.68571 16.7143C6.34286 16.3714 6.34286 15.8571 6.68571 15.5143L10.2 12L6.68571 8.48571C6.34286 8.14286 6.34286 7.62857 6.68571 7.28571L7.28571 6.68571C7.62857 6.34286 8.14286 6.34286 8.48571 6.68571L12 10.2L15.5143 6.68571C15.8571 6.34286 16.3714 6.34286 16.7143 6.68571L17.3143 7.28571C17.6571 7.62857 17.6571 8.14286 17.3143 8.48571L13.8 12L17.3143 15.5143Z"/>\n </svg>\n <span class="ons-btn__text"></span>\n </span>',r='\n <span class="ons-btn__inner">\n <svg class="ons-icon ons-icon--search ons-u-mr-2xs" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" role="img" title="ons-icon-search">\n <path d="M11.86 10.23 8.62 6.99a4.63 4.63 0 1 0-6.34 1.64 4.55 4.55 0 0 0 2.36.64 4.65 4.65 0 0 0 2.33-.65l3.24 3.23a.46.46 0 0 0 .65 0l1-1a.48.48 0 0 0 0-.62Zm-5-3.32a3.28 3.28 0 0 1-2.31.93 3.22 3.22 0 1 1 2.35-.93Z"></path>\n </svg>\n <span class="ons-btn__text"></span>\n </span>';null!=t&&(e.innerHTML=t?n:r,e.classList.toggle("ons-btn--close",t),e.classList.toggle("ons-btn--search-icon",!t))}},{key:"isHidden",value:function(t){return!t||("none"===window.getComputedStyle(t).display||0===t.getClientRects().length)}},{key:"setAria",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.isHidden(this.toggle);this.toggle.setAttribute(u,"false"),null===(t=this.searchToggleBtn)||void 0===t||t.setAttribute(u,"false"),e&&!n&&"false"===this.navigation.getAttribute(c)||(n?(this.toggle.setAttribute(l,"false"),this.navigation.removeAttribute(c),this.navigation.classList.remove(this.hideClass),"ons-u-d-no"!==this.hideClass?this.navigation.classList.remove(this.hideClass):this.closeNav()):this.closeNav())}},{key:"toggleMenuAndSearch",value:function(){this.menuBtn&&("true"===this.menuBtn.getAttribute("aria-expanded")&&this.toggle==this.menuBtn&&this.searchBtn&&(this.updateSearchIcon(!1,this.searchToggleBtn&&this.searchBtn),this.searchBtn.setAttribute("aria-expanded","false"),this.searchEl.setAttribute("aria-hidden","true"),this.searchEl.classList.add("ons-u-d-no"),this.searchToggleBtn.classList.remove("active")));this.searchBtn&&("true"===this.searchBtn.getAttribute("aria-expanded")&&this.toggle==this.searchToggleBtn&&this.menuBtn&&(this.menuBtn.setAttribute("aria-expanded","false"),this.menuEl.setAttribute("aria-hidden","true"),this.menuEl.classList.add("ons-u-d-no"),this.menuBtn.classList.remove("active")))}}])}()},{"../../js/utils/viewport-change":933,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],894:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-password"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./password"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./password":895,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],895:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.toggleWrap=e.querySelector(".".concat("ons-js-password-toggle-wrap")),this.toggle=this.toggleWrap.querySelector(".".concat("ons-js-password-toggle")),this.input=e.querySelector(".".concat("ons-js-password-input")),this.toggle.addEventListener("change",this.handleToggleChange.bind(this)),this.toggleWrap.classList.remove("ons-u-d-no")},[{key:"handleToggleChange",value:function(){this.input.type=this.toggle.checked?"text":"password"}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],896:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e,n){(0,i.default)(this,t),this.radio=e,this.openOther=n,this.input=this.openOther.querySelector(".ons-input"),this.input.tabIndex=-1,this.setInputBlurAttributes(),this.input.addEventListener("focus",this.checkRadio.bind(this)),this.radio.addEventListener("change",this.setInputFocusAttributes.bind(this)),this.radio.addEventListener("focus",this.setInputFocusAttributes.bind(this)),"radio"==this.radio.type&&this.input.addEventListener("blur",this.setInputBlurAttributes.bind(this))},[{key:"checkRadio",value:function(){this.radio.checked=!0}},{key:"setInputFocusAttributes",value:function(){this.input.tabIndex=this.radio.checked?0:-1}},{key:"setInputBlurAttributes",value:function(){this.input.tabIndex=-1}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],897:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("dompurify"));n.default=function(){return(0,a.default)(function t(e,n,r){var a=this;if((0,s.default)(this,t),this.inputs=e,this.button=n,this.otherInput=r,this.ariaElement=document.querySelector(".ons-js-clear-radio-alert"),this.clearAlert=this.ariaElement.getAttribute("data-clear"),this.clearedAlert=this.ariaElement.getAttribute("data-cleared"),this.inputs.forEach(function(t){return t.addEventListener("click",a.setClearAttributes.bind(a))}),this.button.addEventListener("click",this.clearRadios.bind(this)),this.checkRadios(),this.otherInput){var o=this.otherInput.parentNode;this.otherField=o.querySelector(".ons-input"),this.otherField.addEventListener("focus",this.setClearAttributes.bind(this))}i=!1},[{key:"checkRadios",value:function(){var t=this;this.inputs.forEach(function(e){e.checked&&t.setClearAttributes()})}},{key:"setClearAttributes",value:function(){this.button.classList.remove("ons-u-db-no-js_enabled"),!1===i&&(this.ariaElement.innerHTML=o.default.sanitize(this.clearAlert),i=!0)}},{key:"clearRadios",value:function(){event.preventDefault(),this.inputs.forEach(function(t){t.checked=!1}),this.otherField&&(this.otherField.value=""),this.button.classList.add("ons-u-db-no-js_enabled"),this.ariaElement.innerHTML=o.default.sanitize(this.clearedAlert),i=!1}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,dompurify:825}],898:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.context=e,this.radios=(0,i.default)(e.closest(".ons-radios__items").querySelectorAll(".ons-js-radio")),this.childInputs=(0,i.default)(this.context.querySelectorAll("input")),this.selectAllChildrenInput=this.context.querySelector(".ons-js-select-all-children"),this.selectAllChildrenInput?this.selectAllChildrenInput.addEventListener("change",this.checkChildInputsOnSelect.bind(this)):this.radios.forEach(function(t){return t.addEventListener("change",n.uncheckChildInputsOnDeselect.bind(n))})},[{key:"checkChildInputsOnSelect",value:function(){var t=this;this.childInputs.forEach(function(e){e.checked=!0===t.selectAllChildrenInput.checked})}},{key:"uncheckChildInputsOnDeselect",value:function(){var t=this.radios.find(function(t){return t.classList.contains("ons-js-other")});t&&!1===t.checked&&this.childInputs.forEach(function(t){t.checked=!1})}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],899:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r,i,o,c,u,h,d;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-radio"))).length){e.next=7;break}return e.next=1,Promise.resolve().then(function(){return l(t("../checkboxes/checkboxes-with-reveal"))});case 1:if(new(0,e.sent.default)(n),r=document.querySelector(".ons-js-clear-btn"),i=document.querySelector(".ons-radio__other"),!r){e.next=3;break}return e.next=2,Promise.resolve().then(function(){return l(t("./clear-radios"))});case 2:new(0,e.sent.default)(n,r,i);case 3:if(!(o=document.querySelector(".ons-radio__other--open"))){e.next=5;break}return c=o.parentNode,u=c.querySelector(".ons-radio__input"),e.next=4,Promise.resolve().then(function(){return l(t("./check-radios"))});case 4:new(0,e.sent.default)(u,o);case 5:if(!(h=(0,a.default)(document.querySelectorAll(".ons-js-other-fieldset-radio")))){e.next=7;break}return e.next=6,Promise.resolve().then(function(){return l(t("./radio-with-fieldset"))});case 6:d=e.sent.default,h.forEach(function(t){var e=t.closest(".ons-radio");new d(e)});case 7:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"../checkboxes/checkboxes-with-reveal":878,"./check-radios":896,"./clear-radios":897,"./radio-with-fieldset":898,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],900:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-relationships"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./relationships"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./relationships":901,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],901:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("dompurify"));n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.context=e,this.legend=document.getElementById("question-title")?document.getElementById("question-title"):document.getElementById("fieldset-legend-title"),this.radios=(0,i.default)(e.querySelectorAll("input[type=radio]")),this.playback=e.querySelector(".ons-js-relationships-playback"),this.radios.forEach(function(t){return t.addEventListener("change",n.setPlayback.bind(n))}),this.setPlayback(),this.playback.classList.remove("ons-u-d-no")},[{key:"setPlayback",value:function(){var t=this.radios.find(function(t){return t.checked});if(t){var e=t.getAttribute("data-title");this.legend.innerHTML=o.default.sanitize(e),this.playback.innerHTML=o.default.sanitize(t.getAttribute("data-playback"))}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,dompurify:825}],902:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.context=e,this.input=this.context.querySelector(".ons-input"),this.button=this.context.querySelector(".ons-btn"),this.enableDisableButton(this.input),this.input.addEventListener("input",this.enableDisableButton.bind(this))},[{key:"enableDisableButton",value:function(){""!=this.input.value.trim()?(this.button.disabled=!1,this.button.classList.remove("ons-btn--disabled")):(this.button.disabled=!0,this.button.classList.add("ons-btn--disabled"))}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],903:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-reply"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./reply-input"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./reply-input":902,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],904:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/toConsumableArray")),a=r(t("@babel/runtime/helpers/asyncToGenerator")),o=r(t("../../js/domready")),l=r(t("./skip-to-content"));function c(){return(c=(0,a.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(e=(0,s.default)(document.querySelectorAll(".ons-skip-to-content"))).length&&e.forEach(function(t){(0,l.default)(t)});case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}(0,o.default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./skip-to-content":905,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/regenerator":29}],905:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var e=t.getAttribute("href").replace("#","");t.addEventListener("click",function(t){t.preventDefault(),document.getElementById(e).tabIndex=-1,document.getElementById(e).style.outline="none",document.getElementById(e).focus()})}},{}],906:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-table-of-contents-container"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./table-of-contents"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./table-of-contents":907,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],907:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f: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 s,a=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.component=e,this.sections=(0,i.default)(this.component.querySelectorAll("section[id]")).filter(function(t){return t.id}),this.tocLinks={},this.activeSection=null,this.sections.forEach(function(t){var e=n.component.querySelector('.ons-list__link[href="#'.concat(t.id,'"]'));e&&(n.tocLinks[t.id]=e)}),this.observer=new IntersectionObserver(this.handleIntersect.bind(this),{rootMargin:"0px 0px -100% 0px"}),this.sections.forEach(function(t){return n.observer.observe(t)}),this.setInitialActiveSection()},[{key:"setInitialActiveSection",value:function(){var t=this.sections[0];t&&(this.activeSection=t,this.updateTocLinks())}},{key:"handleIntersect",value:function(t){var e=t.filter(function(t){return t.isIntersecting}).sort(function(t,e){return t.target.getBoundingClientRect().top-e.target.getBoundingClientRect().top});if(0!==e.length){var n=e[0].target;n!==this.activeSection&&(this.activeSection=n,this.updateTocLinks())}}},{key:"updateTocLinks",value:function(){var t,e=o(this.sections);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=this.tocLinks[n.id];null==r||r.classList.toggle("ons-table-of-contents__link-active",n===this.activeSection)}}catch(t){e.e(t)}finally{e.f()}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],908:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof");Object.defineProperty(n,"__esModule",{value:!0}),n.classTableScrollable=void 0;var s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("../../js/domready"));function c(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}var u=n.classTableScrollable="ons-table-scrollable";function h(){return(h=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".".concat(u)))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return c(t("./scrollable-table"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,l.default)(function(){return h.apply(this,arguments)})},{"../../js/domready":925,"./scrollable-table":909,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],909:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classTableScrollableContent=n.classTable=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=n.classTableScrollableContent="ons-table-scrollable__content",o=n.classTable="ons-table";n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.table=e,this.tableScroll=this.table.getElementsByClassName(a),this.tableEl=this.tableScroll[0].getElementsByClassName(o),this.activeTable=!1,this.tableSizeCheck(),this.viewportCheck()},[{key:"tableSizeCheck",value:function(){this.tableWidth=this.tableEl[0].offsetWidth,this.tableContainerWidth=this.tableScroll[0].offsetWidth,this.tableWidth>this.tableContainerWidth&&!1===this.activeTable?(this.activeTable=!0,this.insertShadows(),this.registerScroll()):this.tableWidth<=this.tableContainerWidth&&!0===this.activeTable&&(this.removeShadows(),this.activeTable=!1)}},{key:"viewportCheck",value:function(){var t=this;window.addEventListener("resize",function(){return t.tableSizeCheck()},!0)}},{key:"registerScroll",value:function(){this.tableScroll[0].addEventListener("scroll",this.toggleShadows.bind(this))}},{key:"insertShadows",value:function(){var t=document.createElement("div"),e=document.createElement("div");t.className="ons-table__right-shadow ons-visible",e.className="ons-table__left-shadow",this.tableScroll[0].appendChild(t),this.tableScroll[0].insertBefore(e,this.tableScroll[0].firstChild)}},{key:"removeShadows",value:function(){var t=this.tableScroll[0].querySelector(".ons-table__right-shadow"),e=this.tableScroll[0].querySelector(".ons-table__left-shadow");this.tableScroll[0].removeChild(t),this.tableScroll[0].removeChild(e)}},{key:"toggleShadows",value:function(){var t=this.tableScroll[0].querySelector(".ons-table__right-shadow"),e=this.tableScroll[0].querySelector(".ons-table__left-shadow"),n=this.getOffset(this.tableScroll[0]).left,r=this.getOffset(this.tableEl[0]).left;this.tableWidth=this.tableEl[0].offsetWidth,this.tableContainerWidth=this.tableScroll[0].offsetWidth,r===n?e.classList.remove("ons-visible"):e.classList.add("ons-visible"),-n===this.tableContainerWidth-this.tableWidth-r?t.classList.remove("ons-visible"):t.classList.add("ons-visible"),setTimeout(function(){return e.classList.add("ons-with-transition"),t.classList.add("ons-with-transition")},200)}},{key:"getOffset",value:function(t){return{left:t.getBoundingClientRect().left+window.scrollX}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],910:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof");Object.defineProperty(n,"__esModule",{value:!0}),n.classTableSortable=void 0;var s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("../../js/domready"));function c(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}var u=n.classTableSortable="ons-table--sortable";function h(){return(h=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".".concat(u)))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return c(t("./sortable-table"))});case 1:r=e.sent.default,n.forEach(function(t,e){return new r(t,e)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,l.default)(function(){return h.apply(this,arguments)})},{"../../js/domready":925,"./sortable-table":911,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],911:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.status=n.jsSortableHeadings=n.default=n.classTableBody=void 0;var i,s=r(t("@babel/runtime/helpers/toConsumableArray")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=n.jsSortableHeadings="[aria-sort]",c=n.classTableBody="ons-table__body";n.default=function(){return(0,o.default)(function t(e,n){(0,a.default)(this,t),this.table=e,this.options={},this.options.statusMessage=e.getAttribute("data-aria-sort"),this.options.ascendingText=e.getAttribute("data-aria-asc"),this.options.descendingText=e.getAttribute("data-aria-desc"),this.index=n,this.init()},[{key:"init",value:function(){this.registerHeadings(),this.createStatusBox()}},{key:"registerHeadings",value:function(){var t=this;this.sortableHeadings=this.table.querySelectorAll(l),(0,s.default)(this.sortableHeadings).forEach(function(e,n){t.createHeadingButtons(e,n)})}},{key:"createHeadingButtons",value:function(t,e){var n=t.textContent.trim();t.querySelector(".ons-table__header-text").remove(),t.querySelector(".ons-icon").classList.remove("ons-u-d-no");var r=document.createElement("button");r.setAttribute("aria-label",this.table.getAttribute("data-aria-sort")+" "+n),r.setAttribute("type","button"),r.setAttribute("data-index",e),r.setAttribute("class","ons-table__sort-button"),r.textContent=n;var i=n.replace(/\s+/g,"-").toLowerCase(),s=document.getElementById("sort-sprite-"+i);s.id="sort-sprite-"+i+"-"+this.index,s.parentNode.replaceChild(r,s),r.appendChild(s),r.addEventListener("click",this.sortButtonClicked.bind(this))}},{key:"sortButtonClicked",value:function(t){var e,n=this,r=t.target.closest("[data-index]").getAttribute("data-index"),i=t.target.closest("[aria-sort]").getAttribute("aria-sort");e="none"===i||"ascending"===i?this.options.descendingText:this.options.ascendingText,this.tableBody=this.table.getElementsByClassName(c),(0,s.default)(this.tableBody).forEach(function(t){var i=n.getTableRowsArray(t),s=n.sort(i,r,e);n.addRows(t,s)}),this.removeButtonStates(),this.updateButtonState(t.target.closest("[aria-sort]"),e)}},{key:"getTableRowsArray",value:function(t){var e=[];return this.trs=t.querySelectorAll("tr"),(0,s.default)(this.trs).forEach(function(t){e.push(t)}),e}},{key:"sort",value:function(t,e,n){var r=this;return t.sort(function(t,i){var s=t.querySelectorAll("td, th")[e],a=i.querySelectorAll("td, th")[e],o=r.getCellValue(s),l=r.getCellValue(a);return"ascending"===n?o<l?-1:o>l?1:0:l<o?-1:l>o?1:0})}},{key:"getCellValue",value:function(t){if(t){var e=t.getAttribute("data-sort-value")||t.textContent;return e=parseFloat(e)||e}}},{key:"addRows",value:function(t,e){e.forEach(function(e){t.append(e)})}},{key:"removeButtonStates",value:function(){this.sortableHeadings=this.table.querySelectorAll(l),(0,s.default)(this.sortableHeadings).forEach(function(t){t.setAttribute("aria-sort","none")})}},{key:"updateButtonState",value:function(t,e){t.setAttribute("aria-sort",e);var n=this.options.statusMessage;n=(n=n+" "+t.textContent.replace(/^\s+|\s+$/g,""))+" ("+e+")",i.textContent=n}},{key:"createStatusBox",value:function(){n.status=i=document.createElement("div"),i.setAttribute("aria-live","polite"),i.setAttribute("role","status"),i.setAttribute("aria-atomic","true"),i.setAttribute("class","ons-sortable-table-status ons-u-vh"),this.table.parentElement.insertBefore(i,this.table.nextSibling)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],912:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-tabs"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./tabs"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./tabs":913,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],913:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("../../js/utils/matchMedia")),l=o.default;n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.boundTabClick=this.onTabClick.bind(this),this.boundTabKeydown=this.onTabKeydown.bind(this),this.component=e,this.tabsTitle=e.querySelector(".".concat("ons-tabs__title")),this.tabs=(0,i.default)(e.getElementsByClassName("ons-tab")),this.tabList=e.getElementsByClassName("ons-tabs__list"),this.tabListContainer=this.tabList[0].parentElement,this.tabListItems=(0,i.default)(e.getElementsByClassName("ons-tab__list-item")),this.tabPanels=(0,i.default)(e.getElementsByClassName("ons-tabs__panel")),this.jsHiddenClass="ons-tabs__panel--hidden",this.jsTabListAsRowClass="ons-tabs__list--row",this.jsTabItemAsRowClass="ons-tab__list-item--row",this.jsTabAsListClass="ons-tab--row",this.noInitialActiveTab=this.component.getAttribute("data-no-initial-active-tab"),l.hasMatchMedia()?this.setupViewportChecks():this.makeTabs()},[{key:"setupViewportChecks",value:function(){var t,e=this;this.viewport=l("(min-width: ".concat((t=0,e.tabListItems.forEach(function(e){t+=e.offsetWidth}),t<450?t=450:t),"px)")),this.viewport.addListener(this.checkViewport.bind(this)),this.checkViewport()}},{key:"checkViewport",value:function(){this.viewport.matches?this.makeTabs():this.makeList()}},{key:"makeTabs",value:function(){var t=this;this.tabList[0].setAttribute("role","tablist"),this.tabList[0].classList.add(this.jsTabListAsRowClass),this.tabsTitle.classList.add("ons-u-vh"),this.tabListContainer.classList.add("ons-tabs__container"),this.tabPanels.forEach(function(t){t.setAttribute("tabindex","0"),t.querySelector('[id*="content-title"]')&&t.firstElementChild.classList.add("ons-u-vh")}),this.tabListItems.forEach(function(e){e.setAttribute("role","presentation"),e.classList.add(t.jsTabItemAsRowClass)}),this.tabs.forEach(function(e){t.setAttributes(e),e.classList.add(t.jsTabAsListClass),e.addEventListener("click",t.boundTabClick,!0),e.addEventListener("keydown",t.boundTabKeydown,!0),t.hideTab(e)});var e=this.getTab(window.location.hash);if(!this.noInitialActiveTab||e){var n=e||this.tabs[0];this.showTab(n)}this.ensureTabIndexExists(),this.component.boundOnHashChange=this.onHashChange.bind(this),window.addEventListener("hashchange",this.component.boundOnHashChange,!0)}},{key:"makeList",value:function(){var t=this;this.tabList[0].removeAttribute("role"),this.tabList[0].classList.remove(this.jsTabListAsRowClass),this.tabListContainer.classList.remove("ons-tabs__container"),this.tabsTitle.classList.remove("ons-u-vh"),this.tabPanels.forEach(function(t){t.removeAttribute("tabindex","0"),t.firstElementChild.classList.contains("ons-u-vh")&&t.firstElementChild.classList.remove("ons-u-vh")}),this.tabListItems.forEach(function(e){e.removeAttribute("role","presentation"),e.classList.remove(t.jsTabItemAsRowClass)}),this.tabs.forEach(function(e){e.removeEventListener("click",t.boundTabClick,!0),e.removeEventListener("keydown",t.boundTabKeydown,!0),e.classList.remove(t.jsTabAsListClass),t.unsetAttributes(e)}),window.removeEventListener("hashchange",this.component.boundOnHashChange,!0)}},{key:"onHashChange",value:function(){var t=window.location.hash,e=this.getTab(t);if(e)if(this.changingHash)this.changingHash=!1;else{var n=this.getCurrentTab();n&&this.hideTab(n),this.showTab(e),e.focus()}}},{key:"hideTab",value:function(t){this.unhighlightTab(t),this.hidePanel(t)}},{key:"showTab",value:function(t){this.highlightTab(t),this.showPanel(t)}},{key:"getTab",value:function(t){return this.component.querySelector('.ons-tab[href="'+t+'"]')}},{key:"setAttributes",value:function(t){var e=this.getHref(t).slice(1);t.setAttribute("id","tab_"+e),t.setAttribute("role","tab"),t.setAttribute("aria-controls",e),t.setAttribute("tabindex","-1");var n=this.getPanel(t);n.setAttribute("role","tabpanel"),n.setAttribute("aria-labelledby",t.id),n.classList.add(this.jsHiddenClass)}},{key:"unsetAttributes",value:function(t){t.removeAttribute("id"),t.removeAttribute("role"),t.removeAttribute("aria-controls"),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected");var e=this.getPanel(t);e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.classList.remove(this.jsHiddenClass)}},{key:"onTabClick",value:function(t){t.preventDefault();var e=t.target,n=this.getCurrentTab();n&&this.hideTab(n),this.noInitialActiveTab&&e===n||(this.showTab(e),this.createHash(e)),this.ensureTabIndexExists()}},{key:"ensureTabIndexExists",value:function(){this.tabs.find(function(t){return"0"===t.getAttribute("tabindex")})||this.tabs[0].setAttribute("tabindex","0")}},{key:"createHash",value:function(t){var e=this.getPanel(t),n=e.id;e.id="",this.changingHash=!0,window.location.hash=this.getHref(t).slice(1),e.id=n}},{key:"onTabKeydown",value:function(t){37===t.which?(this.focusPreviousTab(),t.preventDefault()):39===t.which?(this.focusNextTab(),t.preventDefault()):32===t.which&&this.onTabClick(t)}},{key:"focusNextTab",value:function(){var t=this.getFocusedTab().nextElementSibling;t&&t.firstElementChild.focus()}},{key:"focusPreviousTab",value:function(){var t=this.getFocusedTab().previousElementSibling;t&&t.firstElementChild.focus()}},{key:"getPanel",value:function(t){var e=this.getHref(t).replace(/([ .:[\]{}()<>?+*~=|^$!\\])/g,"\\$1");return this.component.querySelector(e)}},{key:"showPanel",value:function(t){this.getPanel(t).classList.remove(this.jsHiddenClass)}},{key:"hidePanel",value:function(t){this.getPanel(t).classList.add(this.jsHiddenClass)}},{key:"unhighlightTab",value:function(t){t.setAttribute("aria-selected","false"),t.classList.remove("ons-tab--selected"),t.setAttribute("tabindex","-1")}},{key:"highlightTab",value:function(t){t.setAttribute("aria-selected","true"),t.classList.add("ons-tab--selected"),t.setAttribute("tabindex","0")}},{key:"getFocusedTab",value:function(){return document.activeElement.parentNode}},{key:"getCurrentTab",value:function(){return this.component.querySelector(".ons-tab--selected")}},{key:"getHref",value:function(t){var e=t.getAttribute("href");return e.slice(e.indexOf("#"),e.length)}}])}()},{"../../js/utils/matchMedia":932,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],914:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-timeout-modal"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./timeout-modal"))});case 1:r=e.sent.default,n.forEach(function(t){var e=t.getAttribute("data-server-session-expiry-endpoint"),n=t.getAttribute("data-server-session-expires-at");new r(t,e,n)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./timeout-modal":915,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],915:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("../modal/modal")),c=r(t("../../js/timeout"));n.default=function(){return(0,o.default)(function t(e,n,r){(0,a.default)(this,t),this.context=e,this.sessionExpiryEndpoint=n,this.initialExpiryTime=r,this.continueButton=e.querySelector(".ons-js-modal-btn"),this.modalVisibleInMilliseconds=1e3*e.getAttribute("data-show-modal-time"),this.expiryTime="",this.expiryTimeInMilliseconds=0,this.shouldRestartCheck=!1,this.modal=new l.default(this.context),this.timeout=new c.default(this.context,this.sessionExpiryEndpoint,this.initialExpiryTime,!0),this.bindEventListeners()},[{key:"bindEventListeners",value:function(){window.onload=this.startTimeout(),window.addEventListener("keydown",this.escToClose.bind(this)),this.continueButton.addEventListener("click",this.closeModalAndRestartTimeout.bind(this))}},{key:"startTimeout",value:function(){clearTimeout(this.showModalTimeout),this.initialExpiryTime?(this.expiryTime=this.timeout.expiryTime,this.expiryTimeInMilliseconds=this.timeout.convertTimeToMilliSeconds(this.expiryTime)):this.expiryTimeInMilliseconds=6e4,this.showModalTimeout=setTimeout(this.openModalAndStartCountdown.bind(this),this.expiryTimeInMilliseconds-this.modalVisibleInMilliseconds)}},{key:"openModalAndStartCountdown",value:(n=(0,s.default)(i.default.mark(function t(){var e=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.hasExpiryTimeResetInAnotherTab();case 1:t.sent&&!this.modal.isDialogOpen()&&(this.modal.openDialog(),this.timeout.startUiCountdown(),this.shouldRestartCheck=setInterval((0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e.hasExpiryTimeResetInAnotherTab();case 1:case"end":return t.stop()}},t)})),2e4));case 2:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)})},{key:"hasExpiryTimeResetInAnotherTab",value:(e=(0,s.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.timeout.getExpiryTime();case 1:if((e=t.sent).substring(0,19)==this.timeout.expiryTime.substring(0,19)){t.next=2;break}this.expiryTime=e,this.expiryTimeInMilliseconds=this.timeout.convertTimeToMilliSeconds(e),this.closeModalAndRestartTimeout(this.expiryTimeInMilliseconds),t.next=3;break;case 2:return t.abrupt("return",!0);case 3:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{key:"closeModalAndRestartTimeout",value:(t=(0,s.default)(i.default.mark(function t(e){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return clearInterval(this.shouldRestartCheck),"string"!=typeof timeInMilliSeconds&&(e=!1),this.modal.isDialogOpen()&&this.modal.closeDialog(event),t.next=1,this.timeout.restartTimeout(e);case 1:this.startTimeout();case 2:case"end":return t.stop()}},t,this)})),function(e){return t.apply(this,arguments)})},{key:"escToClose",value:function(t){this.modal.isDialogOpen()&&27===t.keyCode&&this.closeModalAndRestartTimeout()}}]);var t,e,n}()},{"../../js/timeout":931,"../modal/modal":889,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],916:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-panel-with-countdown"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("../../js/timeout"))});case 1:r=e.sent.default,n.forEach(function(t){var e=t.getAttribute("data-server-session-expires-at");new r(t,null,e,!1,!0)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"../../js/timeout":931,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],917:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-video"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./video"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./video":918,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],918:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("dompurify"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.component=e,this.placeholder=e.querySelector(".ons-js-video-placeholder"),this.iframe=e.querySelector(".ons-js-video-iframe"),this.acceptCookiesButton=document.querySelector(".ons-js-accept-cookies"),this.acceptCookiesButton&&this.acceptCookiesButton.addEventListener("click",this.showIframe.bind(this)),this.checkCookie()&&this.showIframe()},[{key:"checkCookie",value:function(){return!!document.cookie.match(/^(.*)?\s*'campaigns':true\s*[^;]+(.*)?$/)}},{key:"showIframe",value:function(){var t=this.addDNTtoVimeoVideos();this.iframe.src=t,this.iframe.classList.remove("ons-u-d-no"),this.component.classList.add("ons-video--hasIframe"),this.placeholder.classList.add("ons-u-d-no")}},{key:"addDNTtoVimeoVideos",value:function(){var t=this.iframe.getAttribute("data-src");return(t=a.default.sanitize(t)).includes("player.vimeo.com/video")&&!1===t.includes("?dnt=1")?t+="?dnt=1":t}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,dompurify:825}],919:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/defineProperty")),a=r(t("@babel/runtime/helpers/asyncToGenerator")),o=r(t("@babel/runtime/helpers/classCallCheck")),l=r(t("@babel/runtime/helpers/createClass"));function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var h=function(){return(0,l.default)(function t(e,n){(0,o.default)(this,t),this.url=e,this.options=n,this.controller=new window.AbortController,this.status="UNSENT"},[{key:"send",value:(t=(0,a.default)(i.default.mark(function t(){var e,n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.status="LOADING",t.prev=1,t.next=2,window.fetch(this.url,u({signal:this.controller.signal},this.options));case 2:if((e=t.sent).status>=200&&e.status<300||e.status>=400){t.next=3;break}throw(n=new Error("HTTP error! status: ".concat(e.status))).response=e,n;case 3:return t.abrupt("return",e);case 4:return t.prev=4,this.status="DONE",t.finish(4);case 5:case"end":return t.stop()}},t,this,[[1,,4,5]])})),function(){return t.apply(this,arguments)})},{key:"abort",value:function(){this.controller.abort()}}]);var t}();n.default=function(t,e){return new h(t,e)}},{"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],920:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,n.trackEvent=n.trackElement=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/defineProperty")),a=r(t("./domready"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var l=n.trackEvent=function(){};void 0!==window.google_tag_manager&&(n.trackEvent=l=function(t,e){gtag("event",t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},e))});var c=n.trackElement=function(t,e){for(var n=t.attributes,r={},i=0;i<n.length;i++){var s=n[i].name;if(s.startsWith("data-ga-"))r[s.replace("data-ga-","").replace("-","_")]=t.getAttribute(s)}return l("ons_".concat(e),r)};function u(){var t=(0,i.default)(document.querySelectorAll("[data-ga=visible]")),e=window.setInterval(function(){0===(t=t.filter(function(t){return!t||c(t,"visible")&&!1})).length&&window.clearInterval(e)},200);document.body.addEventListener("click",function(t){var e,n=t.target;return"click"===n.getAttribute("data-ga")?c(n,"click"):"click"===(null===(e=n.parentElement)||void 0===e?void 0:e.getAttribute("data-ga"))?c(n.parentElement,"click"):void 0}),(0,i.default)(document.querySelectorAll("[data-ga=error]")).map(function(t){return c(t,"error")});var n=function(){return l({event_tracked:"true",event_category:"Print Intent",event_action:"Print Intent",event_label:window.location.pathname.split("/").slice(-3).join("/")})};window.matchMedia&&window.matchMedia("print").addListener(function(t){t.matches||n()});window.onafterprint=n}(0,a.default)(u)},{"./domready":925,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],921:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_COOKIE_CONSENT=n.COOKIE_CATEGORIES=void 0,n.approveAllCookieTypes=function(){h("ons_cookie_policy",JSON.stringify({essential:!0,settings:!0,usage:!0,campaigns:!0}).replace(/"/g,"'"),{days:365})},n.checkConsentCookie=u,n.checkConsentCookieCategory=c,n.cookie=o,n.getConsentCookie=l,n.getCookie=d,n.getDomain=p,n.setConsentCookie=function(t){var e=p(document.domain),n=l();n||(n=JSON.parse(JSON.stringify(s).replace(/'/g,'"')));for(var r in t)if(n[r]=t[r],!t[r])for(var i in a)if(a[i]===r&&(o(i,null),o(i))){var c=i+"=; expires="+new Date+"; domain="+e+"; path=/";document.cookie=c}h("ons_cookie_policy",JSON.stringify(n).replace(/"/g,"'"),{days:365})},n.setCookie=h,n.setDefaultConsentCookie=function(){h("ons_cookie_policy",JSON.stringify(s).replace(/"/g,"'"),{days:365})};var i=r(t("@babel/runtime/helpers/typeof")),s=n.DEFAULT_COOKIE_CONSENT={essential:!0,settings:!1,usage:!1,campaigns:!1},a=n.COOKIE_CATEGORIES={RH_SESSION:"essential",session:"essential",ons_cookie_policy:"essential",ons_cookie_message_displayed:"essential",_ga:"usage",_gid:"usage",_gat:"usage",_use_hitbox:"campaigns",VISITOR_INFO1_LIVE:"campaigns",_fbp:"campaigns",COOKIE_SUPPORT:"essential",GUEST_LANGUAGE_ID:"essential",JSESSIONID:"essential",ID:"essential",COMPANY_ID:"essential",USER_UUID:"essential",LFR_SESSION_STATE_:"essential",csfcfc:"essential"};function o(t,e,n){return void 0!==e?!1===e||null===e?h(t,"",{days:-1}):(void 0===n&&(n={days:30}),h(t,e,n)):d(t)}function l(){var t,e=o("ons_cookie_policy");return e?(t=JSON.parse(e.replace(/'/g,'"')),"object"!==(0,i.default)(t)&&null!==t&&(t=JSON.parse(t.replace(/'/g,'"'))),t):null}function c(t,e){var n=l();if(!n&&a[t])return!0;n=l();try{return n[e]}catch(t){return!1}}function u(t,e){return"ons_cookie_policy"===t||null===e||!1===e||!!a[t]&&c(t,a[t])}function h(t,e,n){var r=p(document.domain),i="";if(-1===r.indexOf("localhost")&&(i="; domain="+r),u(t,e)){void 0===n&&(n={});var s=t+"="+e+i+"; path=/";if(n.days){var a=new Date;a.setTime(a.getTime()+24*n.days*60*60*1e3),s=s+"; expires="+a.toGMTString()}"https:"===document.location.protocol&&(s+="; Secure"),document.cookie=s}}function d(t){for(var e=t+"=",n=document.cookie.split(";"),r=0,i=n.length;r<i;r++){for(var s=n[r];" "===s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf(e))return decodeURIComponent(s.substring(e.length))}return null}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;t.startsWith("www.")&&(t=t.substring(4));for(var n=0,r=t,i=r.split("."),s="_gd"+(new Date).getTime();n<i.length-1&&-1==e.cookie.indexOf(s+"="+s);)r=i.slice(n,i.length).join("."),e.cookie=s+"="+s+";domain="+r+";",n++;return e.cookie=s+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+r+";",r}},{"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/typeof":27}],922:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll("[data-module=cookie-settings]"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./cookies-settings"))});case 1:r=e.sent.default,n.forEach(function(t){new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("./domready")).default)(function(){return c.apply(this,arguments)})},{"./cookies-settings":923,"./domready":925,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],923:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=t("lodash"),o=t("./cookies-functions");n.default=function(){return(0,s.default)(function t(e){if((0,i.default)(this,t),this.component=e,this.returnLink=document.querySelector(".ons-js-return-link"),this.confirmationMessage=document.querySelector(".ons-cookies-confirmation-message"),this.cookiesBanner=document.querySelector(".ons-cookies-banner"),this.component.addEventListener("submit",this.submitSettingsForm.bind(this)),this.returnLink){var n=document.referrer||"/";this.returnLink.setAttribute("href",n)}this.setInitialFormValues()},[{key:"setInitialFormValues",value:function(){(0,o.cookie)("ons_cookie_policy")||(0,o.setDefaultConsentCookie)();var t=(0,o.cookie)("ons_cookie_policy"),e=JSON.parse(t.replace(/'/g,'"'));try{(0,a.unset)(e,"essential")}catch(t){}for(var n in e){var r=void 0;(r=e[n]?document.querySelector("input[name=cookies-".concat(n,"][value=on]")):document.querySelector("input[name=cookies-".concat(n,"][value=off]")))&&(r.checked=!0)}}},{key:"submitSettingsForm",value:function(t){t.preventDefault(),(0,o.cookie)("ons_cookie_message_displayed")||(0,o.setCookie)("ons_cookie_message_displayed",!0,{days:365});for(var e=t.target.getElementsByTagName("input"),n={},r=0;r<e.length;r++){var i=e[r];if(i.checked){var s=i.name.replace("cookies-",""),a="on"===i.value;n[s]=a,"usage"===s&&!0===a&&"undefined"!=typeof loadGTM&&loadGTM()}}return(0,o.setConsentCookie)(n),this.showConfirmationMessage(),this.hideCookiesBanner(),!1}},{key:"showConfirmationMessage",value:function(){this.confirmationMessage.classList.remove("ons-u-d-no"),document.body.scrollTop=document.documentElement.scrollTop=0,this.setConfirmationMessageAttributes()}},{key:"hideCookiesBanner",value:function(){this.cookiesBanner&&(this.cookiesBanner.style.display="none")}},{key:"setConfirmationMessageAttributes",value:function(){this.confirmationMessage.setAttribute("role","alert"),""!=document.referrer?(this.confirmationMessage.setAttribute("autofocus","autofocus"),this.confirmationMessage.setAttribute("tabindex","-1"),this.confirmationMessage.focus()):this.returnLink.style.display="none"}}])}()},{"./cookies-functions":921,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,lodash:831}],924:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");function i(){var t=document.querySelectorAll("details");t.forEach(function(t){t.hasAttribute("data-open")&&t.setAttribute("open","")}),window.addEventListener("beforeprint",function(){t.forEach(function(t){t.hasAttribute("open")?t.dataset.open="true":t.setAttribute("open","")})}),window.addEventListener("afterprint",function(){t.forEach(function(t){"true"===t.dataset.open?(t.setAttribute("open",""),delete t.dataset.open):t.removeAttribute("open")})})}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i,(0,r(t("./domready")).default)(i)},{"./domready":925,"@babel/runtime/helpers/interopRequireDefault":9}],925:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){"loading"===document.readyState?r.push(t):t.call()};var r=[];document.addEventListener("DOMContentLoaded",function(){r.forEach(function(t){return t.call()}),r=[],window.onsDOMReady=!0})},{}],926:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.getElementsByClassName("ons-js-inpagelink"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./inpagelink"))});case 1:(0,e.sent.default)(n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("./domready")).default)(function(){return c.apply(this,arguments)})},{"./domready":925,"./inpagelink":927,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],927:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){t.forEach(function(t){var e=t.getAttribute("href").replace("#","");t.addEventListener("click",function(t){t.preventDefault(),function(t){var e=document.getElementById(t);e.scrollIntoView();var n=[].concat((0,i.default)(e.getElementsByTagName("INPUT")),(0,i.default)(e.getElementsByTagName("TEXTAREA")),(0,i.default)(e.getElementsByTagName("SELECT"))).filter(function(t){var e=t.getAttribute("type");return"readonly"!==e&&"hidden"!==e})[0];n&&"-1"!==n.getAttribute("tabindex")&&n.focus()}(e)})})};var i=r(t("@babel/runtime/helpers/toConsumableArray"))},{"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],928:[function(t,e,n){"use strict";t("./inpagelink.dom"),t("./print-button"),t("./analytics"),t("./details"),t("./cookies-settings.dom"),t("../components/mutually-exclusive/mutually-exclusive.dom"),t("../components/password/password.dom"),t("../components/tabs/tabs.dom"),t("../components/table-of-contents/table-of-contents.dom"),t("../components/back-to-top/back-to-top.dom"),t("../components/accordion/accordion.dom"),t("../components/details/details.dom"),t("../components/table/scrollable-table.dom"),t("../components/table/sortable-table.dom"),t("../components/navigation/navigation.dom"),t("../components/access-code/access-code.dom"),t("../components/relationships/relationships.dom"),t("../components/checkboxes/checkboxes.dom"),t("../components/radios/radios.dom"),t("../components/autosuggest/autosuggest.dom"),t("../components/address-input/autosuggest.address.dom"),t("../components/input/character-check.dom"),t("../components/input/input.dom"),t("../components/cookies-banner/cookies-banner.dom"),t("../components/button/button.dom"),t("../components/reply/reply.dom"),t("../components/skip-to-content/skip-to-content.dom"),t("../components/download-resources/download-resources"),t("../components/modal/modal.dom"),t("../components/timeout-modal/timeout-modal.dom"),t("../components/timeout-panel/timeout-panel.dom"),t("../components/video/video.dom"),t("../components/chart/chart"),t("../components/chart/chart.dom"),t("../components/chart/chart-iframe-resize"),t("../components/chart/chart-iframe-resize.dom")},{"../components/access-code/access-code.dom":840,"../components/accordion/accordion.dom":842,"../components/address-input/autosuggest.address.dom":844,"../components/autosuggest/autosuggest.dom":848,"../components/back-to-top/back-to-top.dom":853,"../components/button/button.dom":855,"../components/chart/chart":866,"../components/chart/chart-iframe-resize":864,"../components/chart/chart-iframe-resize.dom":863,"../components/chart/chart.dom":865,"../components/checkboxes/checkboxes.dom":879,"../components/cookies-banner/cookies-banner.dom":880,"../components/details/details.dom":882,"../components/download-resources/download-resources":884,"../components/input/character-check.dom":885,"../components/input/input.dom":886,"../components/modal/modal.dom":888,"../components/mutually-exclusive/mutually-exclusive.dom":890,"../components/navigation/navigation.dom":892,"../components/password/password.dom":894,"../components/radios/radios.dom":899,"../components/relationships/relationships.dom":900,"../components/reply/reply.dom":903,"../components/skip-to-content/skip-to-content.dom":904,"../components/table-of-contents/table-of-contents.dom":906,"../components/table/scrollable-table.dom":908,"../components/table/sortable-table.dom":910,"../components/tabs/tabs.dom":912,"../components/timeout-modal/timeout-modal.dom":914,"../components/timeout-panel/timeout-panel.dom":916,"../components/video/video.dom":917,"./analytics":920,"./cookies-settings.dom":922,"./details":924,"./inpagelink.dom":926,"./print-button":930}],929:[function(t,e,n){"use strict";t("core-js"),t("mdn-polyfills/CustomEvent"),t("mdn-polyfills/Node.prototype.append"),t("mdn-polyfills/Node.prototype.remove"),t("mdn-polyfills/Element.prototype.closest"),t("whatwg-fetch"),t("abortcontroller-polyfill/dist/polyfill-patch-fetch")},{"abortcontroller-polyfill/dist/polyfill-patch-fetch":30,"core-js":32,"mdn-polyfills/CustomEvent":832,"mdn-polyfills/Element.prototype.closest":833,"mdn-polyfills/Node.prototype.append":834,"mdn-polyfills/Node.prototype.remove":835,"whatwg-fetch":839}],930:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var i=r(t("@babel/runtime/helpers/toConsumableArray"));function s(){(0,i.default)(document.querySelectorAll(".ons-js-print-btn")).forEach(function(t){t.addEventListener("click",a),t.classList.remove("ons-u-d-no")})}function a(){window.print()}(0,r(t("./domready")).default)(s)},{"./domready":925,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],931:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("dompurify"));n.default=function(){return(0,o.default)(function t(e,n,r,i,s){(0,a.default)(this,t),this.context=e,this.sessionExpiryEndpoint=n,this.initialExpiryTime=r,this.enableTimeoutReset=i||!1,this.startOnLoad=s||!1,this.countdown=e.querySelector(".ons-js-timeout-timer"),this.accessibleCountdown=e.querySelector(".ons-js-timeout-timer-acc"),this.timeOutRedirectUrl=e.getAttribute("data-redirect-url"),this.minutesTextSingular=e.getAttribute("data-minutes-text-singular"),this.minutesTextPlural=e.getAttribute("data-minutes-text-plural"),this.secondsTextSingular=e.getAttribute("data-seconds-text-singular"),this.secondsTextPlural=e.getAttribute("data-seconds-text-plural"),this.countdownText=e.getAttribute("data-countdown-text"),this.countdownExpiredText=e.getAttribute("data-countdown-expired-text"),this.endWithFullStop=e.getAttribute("data-full-stop"),this.expiryTime="",this.expiryTimeInMilliseconds=0,this.timers=[],this.timerRunOnce=!1,this.countdownStarted=!1,this.initialise()},[{key:"initialise",value:(h=(0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.initialExpiryTime){t.next=1;break}this.expiryTime=this.initialExpiryTime,t.next=3;break;case 1:return t.next=2,this.setNewExpiryTime();case 2:this.expiryTime=t.sent;case 3:this.expiryTimeInMilliseconds=this.convertTimeToMilliSeconds(this.expiryTime),this.enableTimeoutReset&&this.addThrottledResetEvents(),this.startOnLoad&&this.startUiCountdown(),window.addEventListener("focus",this.handleWindowFocus.bind(this));case 4:case"end":return t.stop()}},t,this)})),function(){return h.apply(this,arguments)})},{key:"startUiCountdown",value:(u=(0,s.default)(i.default.mark(function t(){var e,n,r,a;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.clearTimers(),this.countdownStarted=!0,e=this.convertTimeToMilliSeconds(this.expiryTime),n=e/1e3,r=this.timers,a=this,function(){var t=(0,s.default)(i.default.mark(function t(){var s,o,c,u,h,d;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:s=parseInt(n/60,10),o=parseInt(n%60,10),c=s<1&&o<1,u=s+" "+(s>=2?a.minutesTextPlural:1===s?a.minutesTextSingular:""),h=o+" "+(o>=2?a.secondsTextPlural:1===o?a.secondsTextSingular:""),d=a.countdownText+' <span class="ons-u-fw-b">'+(s>0?u:"")+(s>0&&o>0?" ":"")+(o>0?h:"")+"</span>"+(a.endWithFullStop?".":""),c?(a.countdown.innerHTML=l.default.sanitize('<span class="ons-u-fw-b">'+a.countdownExpiredText+"</span>"),a.accessibleCountdown.innerHTML=l.default.sanitize(a.countdownExpiredText),setTimeout(a.redirect.bind(a),2e3)):(n--,a.expiryTimeInMilliseconds=1e3*n,a.countdown.innerHTML=l.default.sanitize(d),s<1&&o<20&&a.accessibleCountdown.setAttribute("aria-live","assertive"),a.timerRunOnce?o%15==0&&(a.accessibleCountdown.innerHTML=l.default.sanitize(d)):(a.accessibleCountdown.innerHTML=l.default.sanitize(d),a.timerRunOnce=!0),r.push(setTimeout(e.bind(a),1e3)));case 1:case"end":return t.stop()}},t)}));function e(){return t.apply(this,arguments)}return e}()();case 1:case"end":return t.stop()}},t,this)})),function(){return u.apply(this,arguments)})},{key:"restartTimeout",value:(c=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.clearTimers(),this.countdownStarted=!1,!1===e){t.next=1;break}this.expiryTimeInMilliseconds=e,t.next=3;break;case 1:return t.next=2,this.setNewExpiryTime();case 2:n=t.sent,this.expiryTime=n,this.expiryTimeInMilliseconds=this.convertTimeToMilliSeconds(n);case 3:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"handleWindowFocus",value:(r=(0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.clearTimers(),this.countdownStarted&&this.startUiCountdown();case 1:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"setNewExpiryTime",value:(n=(0,s.default)(i.default.mark(function t(){var e,n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.sessionExpiryEndpoint){t.next=1;break}n=new Date(Date.now()+6e4),e=new Date(n).toISOString(),t.next=3;break;case 1:return t.next=2,this.fetchExpiryTime("PATCH");case 2:e=t.sent;case 3:return t.abrupt("return",e);case 4:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)})},{key:"getExpiryTime",value:(e=(0,s.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.sessionExpiryEndpoint){t.next=2;break}return t.next=1,this.fetchExpiryTime("GET");case 1:return e=t.sent,t.abrupt("return",e);case 2:return t.abrupt("return",this.expiryTime);case 3:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{key:"fetchExpiryTime",value:(t=(0,s.default)(i.default.mark(function t(e){var n,r;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,fetch(this.sessionExpiryEndpoint,{method:e,headers:{"Cache-Control":"no-cache","Content-type":"application/json; charset=UTF-8"}});case 1:if(401!==(n=t.sent).status){t.next=2;break}return this.redirect(),t.abrupt("return",!1);case 2:return t.next=3,n.json();case 3:return r=t.sent,t.abrupt("return",r.expires_at);case 4:case"end":return t.stop()}},t,this)})),function(e){return t.apply(this,arguments)})},{key:"convertTimeToMilliSeconds",value:function(t){var e=new Date(t);return Math.abs(e-new Date)}},{key:"redirect",value:function(){var t=l.default.sanitize(this.timeOutRedirectUrl);window.location.replace(t)}},{key:"clearTimers",value:function(){for(var t=0;t<this.timers.length;t++)clearTimeout(this.timers[t])}},{key:"addThrottledResetEvents",value:function(){var t=this;window.onclick=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onmousemove=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onmousedown=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onscroll=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onkeypress=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onkeyup=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3)}},{key:"throttle",value:function(t,e){var n=!1;return function(){var r=arguments,a=this;n||(n=!0,setTimeout((0,s.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.apply(a,r),n=!1;case 1:case"end":return e.stop()}},e)})),e))}}}]);var t,e,n,r,c,u,h}()},{"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29,dompurify:825}],932:[function(t,e,n){"use strict";function r(t){return window.matchMedia(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.hasMatchMedia=function(){return"function"==typeof window.matchMedia}},{}],933:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){s.push(t),a||(a=!0,(0,r.AddTick)(o))};var r=t("tick-manager"),i=t("viewport-details"),s=[],a=!1;function o(){var t=(0,i.getViewportDetails)();t.resized&&s.forEach(function(e){return e(t)})}},{"tick-manager":837,"viewport-details":838}]},{},[929,928]);
7
+ !function(t){"function"==typeof define&&define.amd?define(t):void 0!==e&&e.exports?e.exports=t():window.pym=t.call(this)}(function(){var t="xPYMx",e={},n=function(t){var e=document.createEvent("Event");e.initEvent("pym:"+t,!0,!0),document.dispatchEvent(e)},r=function(t){var e=new RegExp("[\\?&]"+t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]")+"=([^&#]*)").exec(location.search);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))},i=function(t,e){if(("*"===e.xdomain||t.origin.match(new RegExp(e.xdomain+"$")))&&"string"==typeof t.data)return!0},s=function(e,n,r){return["pym",e,n,r].join(t)},a=Date.now||function(){return(new Date).getTime()},o=function(){for(var t=e.autoInitInstances.length-1;t>=0;t--){var n=e.autoInitInstances[t];n.el.getElementsByTagName("iframe").length&&n.el.getElementsByTagName("iframe")[0].contentWindow||e.autoInitInstances.splice(t,1)}};return e.autoInitInstances=[],e.autoInit=function(t){var r=document.querySelectorAll("[data-pym-src]:not([data-pym-auto-initialized])"),i=r.length;o();for(var s=0;s<i;++s){var a=r[s];a.setAttribute("data-pym-auto-initialized",""),""===a.id&&(a.id="pym-"+s+"-"+Math.random().toString(36).substr(2,5));var l=a.getAttribute("data-pym-src"),c={xdomain:"string",title:"string",name:"string",id:"string",sandbox:"string",allowfullscreen:"boolean",parenturlparam:"string",parenturlvalue:"string",optionalparams:"boolean",trackscroll:"boolean",scrollwait:"number"},u={};for(var h in c)if(null!==a.getAttribute("data-pym-"+h))switch(c[h]){case"boolean":u[h]=!("false"===a.getAttribute("data-pym-"+h));break;case"string":u[h]=a.getAttribute("data-pym-"+h);break;case"number":var d=Number(a.getAttribute("data-pym-"+h));isNaN(d)||(u[h]=d)}var p=new e.Parent(a.id,l,u);e.autoInitInstances.push(p)}return t||n("pym-initialized"),e.autoInitInstances},e.Parent=function(e,n,r){for(var l in this.id=e,this.url=n,this.el=document.getElementById(e),this.iframe=null,this.settings={xdomain:"*",optionalparams:!0,parenturlparam:"parentUrl",parenturlvalue:window.location.href,trackscroll:!1,scrollwait:100},this.messageRegex=function(e){return new RegExp("^"+["pym",e,"(\\S+)","(.*)"].join(t)+"$")}(this.id),this.messageHandlers={},r=r||{},this._constructIframe=function(){var t=this.el.offsetWidth.toString();this.iframe=document.createElement("iframe");var e="",n=this.url.indexOf("#");for(n>-1&&(e=this.url.substring(n,this.url.length),this.url=this.url.substring(0,n)),this.url.indexOf("?")<0?this.url+="?":this.url+="&",this.iframe.src=this.url+"initialWidth="+t+"&childId="+this.id,this.settings.optionalparams&&(this.iframe.src+="&parentTitle="+encodeURIComponent(document.title),this.iframe.src+="&"+this.settings.parenturlparam+"="+encodeURIComponent(this.settings.parenturlvalue)),this.iframe.src+=e,this.iframe.setAttribute("width","100%"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginheight","0"),this.iframe.setAttribute("frameborder","0"),this.settings.title&&this.iframe.setAttribute("title",this.settings.title),void 0!==this.settings.allowfullscreen&&!1!==this.settings.allowfullscreen&&this.iframe.setAttribute("allowfullscreen",""),void 0!==this.settings.sandbox&&"string"==typeof this.settings.sandbox&&this.iframe.setAttribute("sandbox",this.settings.sandbox),this.settings.id&&(document.getElementById(this.settings.id)||this.iframe.setAttribute("id",this.settings.id)),this.settings.name&&this.iframe.setAttribute("name",this.settings.name);this.el.firstChild;)this.el.removeChild(this.el.firstChild);this.el.appendChild(this.iframe),window.addEventListener("resize",this._onResize),this.settings.trackscroll&&window.addEventListener("scroll",this._throttleOnScroll)},this._onResize=function(){this.sendWidth(),this.settings.trackscroll&&this.sendViewportAndIFramePosition()}.bind(this),this._onScroll=function(){this.sendViewportAndIFramePosition()}.bind(this),this._fire=function(t,e){if(t in this.messageHandlers)for(var n=0;n<this.messageHandlers[t].length;n++)this.messageHandlers[t][n].call(this,e)},this.remove=function(){window.removeEventListener("message",this._processMessage),window.removeEventListener("resize",this._onResize),this.el.removeChild(this.iframe),o()},this._processMessage=function(t){if(i(t,this.settings)&&"string"==typeof t.data){var e=t.data.match(this.messageRegex);if(!e||3!==e.length)return!1;var n=e[1],r=e[2];this._fire(n,r)}}.bind(this),this._onHeightMessage=function(t){var e=parseInt(t);this.iframe.setAttribute("height",e+"px")},this._onNavigateToMessage=function(t){(function(t){if(t.match(/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/gi))return!0})(t)&&(document.location.href=t)},this._onScrollToChildPosMessage=function(t){var e=document.getElementById(this.id).getBoundingClientRect().top+window.pageYOffset+parseInt(t);window.scrollTo(0,e)},this.onMessage=function(t,e){t in this.messageHandlers||(this.messageHandlers[t]=[]),this.messageHandlers[t].push(e)},this.sendMessage=function(t,e){this.el.getElementsByTagName("iframe").length&&(this.el.getElementsByTagName("iframe")[0].contentWindow?this.el.getElementsByTagName("iframe")[0].contentWindow.postMessage(s(this.id,t,e),"*"):this.remove())},this.sendWidth=function(){var t=this.el.offsetWidth.toString();this.sendMessage("width",t)},this.sendViewportAndIFramePosition=function(){var t=this.iframe.getBoundingClientRect(),e=(window.innerWidth||document.documentElement.clientWidth)+" "+(window.innerHeight||document.documentElement.clientHeight);e+=" "+t.top+" "+t.left,e+=" "+t.bottom+" "+t.right,this.sendMessage("viewport-iframe-position",e)},r)this.settings[l]=r[l];return this._throttleOnScroll=function(t,e,n){var r,i,s,o=null,l=0;n||(n={});var c=function(){l=!1===n.leading?0:a(),o=null,s=t.apply(r,i),o||(r=i=null)};return function(){var u=a();l||!1!==n.leading||(l=u);var h=e-(u-l);return r=this,i=arguments,h<=0||h>e?(o&&(clearTimeout(o),o=null),l=u,s=t.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=setTimeout(c,h)),s}}(this._onScroll.bind(this),this.settings.scrollwait),this.onMessage("height",this._onHeightMessage),this.onMessage("navigateTo",this._onNavigateToMessage),this.onMessage("scrollToChildPos",this._onScrollToChildPosMessage),this.onMessage("parentPositionInfo",this.sendViewportAndIFramePosition),window.addEventListener("message",this._processMessage,!1),this._constructIframe(),this},e.Child=function(e){this.parentWidth=null,this.id=null,this.parentTitle=null,this.parentUrl=null,this.settings={renderCallback:null,xdomain:"*",polling:0,parenturlparam:"parentUrl"},this.timerId=null,this.messageRegex=null,this.messageHandlers={},e=e||{},this.onMessage=function(t,e){t in this.messageHandlers||(this.messageHandlers[t]=[]),this.messageHandlers[t].push(e)},this._fire=function(t,e){if(t in this.messageHandlers)for(var n=0;n<this.messageHandlers[t].length;n++)this.messageHandlers[t][n].call(this,e)},this._processMessage=function(t){if(i(t,this.settings)&&"string"==typeof t.data){var e=t.data.match(this.messageRegex);if(e&&3===e.length){var n=e[1],r=e[2];this._fire(n,r)}}}.bind(this),this._onWidthMessage=function(t){var e=parseInt(t);e!==this.parentWidth&&(this.parentWidth=e,this.settings.renderCallback&&this.settings.renderCallback(e),this.sendHeight())},this.sendMessage=function(t,e){window.parent.postMessage(s(this.id,t,e),"*")},this.sendHeight=function(){var t=document.getElementsByTagName("body")[0].offsetHeight.toString();return this.sendMessage("height",t),t}.bind(this),this.getParentPositionInfo=function(){this.sendMessage("parentPositionInfo")},this.scrollParentTo=function(t){this.sendMessage("navigateTo","#"+t)},this.navigateParentTo=function(t){this.sendMessage("navigateTo",t)},this.scrollParentToChildEl=function(t){var e=document.getElementById(t).getBoundingClientRect().top+window.pageYOffset;this.scrollParentToChildPos(e)},this.scrollParentToChildPos=function(t){this.sendMessage("scrollToChildPos",t.toString())};for(var a in this.remove=function(){window.removeEventListener("message",this._processMessage),this.timerId&&clearInterval(this.timerId)},e)this.settings[a]=e[a];this.id=r("childId")||e.id,this.messageRegex=new RegExp("^pym"+t+this.id+t+"(\\S+)"+t+"(.*)$");var o=parseInt(r("initialWidth"));return this.parentUrl=r(this.settings.parenturlparam),this.parentTitle=r("parentTitle"),this.onMessage("width",this._onWidthMessage),window.addEventListener("message",this._processMessage,!1),this.settings.renderCallback&&this.settings.renderCallback(o),this.sendHeight(),this.settings.polling&&(this.timerId=window.setInterval(this.sendHeight,this.settings.polling)),function(t){var e,r=document.getElementsByTagName("html")[0],i=r.className;try{e=window.self!==window.top?"embedded":"not-embedded"}catch(t){e="embedded"}i.indexOf(e)<0&&(r.className=i?i+" "+e:e,t&&t(e),n("marked-embedded"))}(e.onMarkedEmbeddedStatus),this},"undefined"!=typeof document&&e.autoInit(!0),e})},{}],837:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=[],i=[],s=[],a=!1;function o(){a||(a=!0,l())}function l(){r.forEach(function(t){return t()}),i.forEach(function(t){return t()}),s.forEach(function(t){return t()}),requestAnimationFrame(l)}n.AddInitialTick=function(t){r.push(t),o()},n.AddPreTick=function(t){i.push(t),o()},n.AddTick=function(t){s.push(t),o()}},{}],838:[function(t,e,n){"use strict";var r,i;let s,a;function o(t,e){return t<e?1:t>e?-1:0}Object.defineProperty(n,"__esModule",{value:!0}),n.getViewportDetails=n.ScrollDirectionY=n.ScrollDirectionX=void 0,function(t){t[t.Left=-1]="Left",t[t.None=0]="None",t[t.Right=1]="Right"}(r=n.ScrollDirectionX||(n.ScrollDirectionX={})),function(t){t[t.Up=-1]="Up",t[t.None=0]="None",t[t.Down=1]="Down"}(i=n.ScrollDirectionY||(n.ScrollDirectionY={})),n.getViewportDetails=function(){return function(){let t;a?(t=Object.assign({},a),delete t.previous,delete t.changed):s=function(){const t="viewport-details-height-element";let e=document.getElementById(t);e||(e=document.createElement("div"),e.id=t,e.style.position="fixed",e.style.height="100vh",document.documentElement.appendChild(e));return e}();const e=window.innerWidth,n=window.innerHeight,l=s.offsetHeight,c=window.pageXOffset,u=window.pageYOffset,h=!!t&&(t.width!==e||t.height!==n),d=!!t&&(t.scrollX!==c||t.scrollY!==u);a={width:e,height:n,heightCollapsedControls:l,scrollX:c,scrollY:u,scrollDirectionX:t?o(t.scrollX,c):r.None,scrollDirectionY:t?o(t.scrollY,u):i.None,resized:h,scrolled:d,changed:h||d,previous:t}}(),a}},{}],839:[function(t,e,n){(function(t){(function(){!function(t,r){"object"==typeof n&&void 0!==e?r(n):"function"==typeof define&&define.amd?define(["exports"],r):r(t.WHATWGFetch={})}(this,function(e){"use strict";var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t||{},r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,o="ArrayBuffer"in n;if(o)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function f(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function g(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function m(t){var e=new FileReader,n=g(e);return e.readAsArrayBuffer(t),n}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&s&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=f(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(s)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,n,r,i,s=f(this);if(s)return s;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=g(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8",e.readAsText(t,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(t,e){t=u(t),e=h(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},p.prototype.delete=function(t){delete this.map[u(t)]},p.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},p.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},p.prototype.set=function(t,e){this.map[u(t)]=h(e)},p.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},p.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),d(t)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),d(t)},i&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i,s=(e=e||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,s||null==t._bodyInit||(s=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new p(e.headers)),this.method=(r=e.method||this.method||"GET",i=r.toUpperCase(),v.indexOf(i)>-1?i:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function k(t,e){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var t=new k(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var A=[301,302,303,307,308];k.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new k(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(t,r){return new Promise(function(i,a){var l=new x(t,r);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var t,e,n={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{e.append(r,i)}catch(t){}}}),e)};l.url.startsWith("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){i(new k(r,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(s?c.responseType="blob":o&&(c.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof p||n.Headers&&r.headers instanceof n.Headers)){var f=[];Object.getOwnPropertyNames(r.headers).forEach(function(t){f.push(u(t)),c.setRequestHeader(t,h(r.headers[t]))}),l.headers.forEach(function(t,e){-1===f.indexOf(e)&&c.setRequestHeader(e,t)})}else l.headers.forEach(function(t,e){c.setRequestHeader(e,t)});l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}S.polyfill=!0,n.fetch||(n.fetch=S,n.Headers=p,n.Request=x,n.Response=k),e.Headers=p,e.Request=x,e.Response=k,e.fetch=S,Object.defineProperty(e,"__esModule",{value:!0})})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],840:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-access-code"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./access-code"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./access-code":841,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],841:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.input=e;var n=parseInt(e.getAttribute("data-group-size"),10);this.groupingRegex=new RegExp(".{1,".concat(n,"}"),"g"),this.bindEventListeners()},[{key:"bindEventListeners",value:function(){this.input.addEventListener("input",this.handleInput.bind(this))}},{key:"handleInput",value:function(){var t=this.input.selectionStart,e=t!==this.input.value.length;this.input.value=(this.input.value.replace(/\s/g,"").match(this.groupingRegex)||[]).join(" "),e&&this.input.setSelectionRange(t,t)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],842:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r,i,o,c;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-accordion__toggle-all"))).length){e.next=3;break}return r=(0,a.default)(document.querySelectorAll(".ons-js-details")),e.next=1,Promise.resolve().then(function(){return l(t("../details/details"))});case 1:return i=e.sent.default,e.next=2,Promise.resolve().then(function(){return l(t("./accordion"))});case 2:o=e.sent.default,c=r.map(function(t){return new i(t)}),n.forEach(function(t){new o(t,c)});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"../details/details":883,"./accordion":843,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],843:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("dompurify"));n.default=function(){return(0,s.default)(function t(e,n){var r=this;(0,i.default)(this,t),this.openDetailsEls=0,this.button=e,this.buttonInner=e.querySelector(".ons-accordion__toggle-all-inner"),this.group=e.getAttribute("data-group"),this.detailsEls=n.filter(function(t){return t.group===r.group}),this.totalDetailsEls=this.detailsEls.length,this.buttonOpenEl=this.buttonInner.querySelector(".ons-btn__text"),this.buttonOpen=this.buttonOpenEl.innerHTML.trim(),this.closeButton=e.getAttribute("data-close-all"),this.open=this.detailsEls.find(function(t){return!0===t.open}),this.detailsEls.forEach(function(t){t.onOpen=r.onOpen.bind(r),t.onClose=r.onClose.bind(r)}),this.open&&(this.openDetailsEls=this.totalDetailsEls),this.button.addEventListener("click",this.handleButtonClick.bind(this)),this.setButton(),this.button.classList.remove("ons-u-d-no")},[{key:"handleButtonClick",value:function(t){t.preventDefault();var e=!this.canClose();this.detailsEls.forEach(function(t){t.setOpen(e)})}},{key:"onOpen",value:function(){this.openDetailsEls++,this.setButton()}},{key:"onClose",value:function(){this.openDetailsEls--,this.setButton()}},{key:"canClose",value:function(){return this.openDetailsEls===this.totalDetailsEls}},{key:"setButton",value:function(){this.canClose()?(this.buttonInner.innerHTML=a.default.sanitize(this.closeButton),this.button.setAttribute("data-ga-label",this.buttonOpen),this.button.setAttribute("aria-label",this.button.getAttribute("data-close-aria-label")),this.button.setAttribute("aria-expanded","true")):(this.buttonInner.innerHTML=a.default.sanitize(this.buttonOpen),this.button.setAttribute("aria-label",this.button.getAttribute("data-open-aria-label")),this.button.setAttribute("data-ga-label",this.closeButton),this.button.setAttribute("aria-expanded","false"),this.button.setAttribute("data-ga-interaction-value","close"))}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,dompurify:825}],844:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-address-autosuggest"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./autosuggest.address"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./autosuggest.address":846,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],845:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("../../js/inpagelink"));n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.context=e,this.autosuggest=document.querySelector(".".concat("ons-js-address-autosuggest")),this.inputContainer=e.querySelector(".".concat("ons-autosuggest")),this.input=this.inputContainer.querySelector(".".concat("ons-js-autosuggest-input")),this.search=e.querySelector(".".concat("ons-js-address-input__search")),this.errorPanel=document.querySelector(".".concat("ons-js-autosuggest-error-panel")),this.errorTitle=this.inputContainer.getAttribute("data-error-title"),this.errorMessageEnter=this.inputContainer.getAttribute("data-error-enter"),this.errorMessageSelect=this.inputContainer.getAttribute("data-error-select"),this.errorMessage=this.inputContainer.getAttribute("data-error-message")},[{key:"showErrorPanel",value:function(){if(!this.errorPanel){var t=document.querySelector(".ons-question"),e=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div"),s=document.createElement("div"),a=document.createElement("p"),l=document.createElement("a");e.className="ons-panel ons-panel--error ons-u-mb-l ons-js-autosuggest-error-panel",n.className="ons-panel__header",r.className="ons-panel__title ons-u-fs-r--b",s.className="ons-panel__body",l.className="ons-list__link ons-js-inpagelink ons-js-error",l.href="#autosuggest-input-error",r.innerHTML=this.errorTitle,e.appendChild(n),n.appendChild(r),e.appendChild(s),s.appendChild(a),a.appendChild(l),t.insertBefore(e,t.firstChild);var c=(0,i.default)(document.getElementsByClassName("ons-js-inpagelink"));(0,o.default)(c);var u=document.createElement("div"),h=document.createElement("div"),d=document.createElement("p"),p=document.createElement("strong");u.className="ons-panel ons-panel--error ons-panel--no-title",u.id="autosuggest-input-error",h.className="ons-panel__body",d.className="ons-panel__error",p.className="ons-panel__error-message",u.appendChild(h),h.appendChild(d),d.appendChild(p),h.appendChild(this.search),this.input.classList.add("ons-input--error"),this.context.appendChild(u),this.input.focus()}document.querySelector(".ons-js-error").innerHTML=""===this.input.value?this.errorMessageEnter:this.errorMessageSelect,document.querySelector(".ons-panel__error-message").innerHTML=""===this.input.value?this.errorMessageEnter:this.errorMessageSelect}},{key:"removeErrorPanel",value:function(){this.errorPanel.remove(),this.autosuggest.appendChild(this.search),this.input.classList.remove("ons-input--error"),document.getElementById("autosuggest-input-error").remove()}}])}()},{"../../js/inpagelink":927,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],846:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classSearch=n.classNotEditable=n.classMandatory=n.classInputUPRN=n.classInputContainer=n.classInput=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/defineProperty")),a=r(t("@babel/runtime/helpers/slicedToArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("@babel/runtime/helpers/classCallCheck")),c=r(t("@babel/runtime/helpers/createClass")),u=r(t("../../js/abortable-fetch")),h=r(t("../autosuggest/autosuggest.ui")),d=r(t("./autosuggest.address.error")),p=r(t("./autosuggest.address.setter"));function f(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f: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 s,a=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var m=n.classInputContainer="ons-autosuggest",b=n.classNotEditable="ons-js-address-not-editable",y=n.classMandatory="ons-js-address-mandatory",v=n.classSearch="ons-js-address-input__search",x=n.classInput="ons-js-autosuggest-input",w=n.classInputUPRN="ons-js-hidden-uprn";n.default=function(){return(0,c.default)(function t(e){(0,l.default)(this,t),this.context=e,this.input=e.querySelector(".".concat(x)),this.search=e.querySelector(".".concat(v)),this.addressReplaceChars=[","],this.sanitisedQuerySplitNumsChars=!0,this.form=e.closest("form"),this.container=e.querySelector(".".concat(m)),this.errorMessage=this.container.getAttribute("data-error-message"),this.groupCount=this.container.getAttribute("data-group-count"),this.authorizationToken=this.container.getAttribute("data-authorization-token"),this.uprn=e.querySelector(".".concat(w)),this.fetch=null,this.totalResults=0,this.errored=!1,this.isEditable=!e.querySelector(".".concat(b)),this.isMandatory=!!e.querySelector(".".concat(y)),this.addressSelected=!1,this.groupQuery="",this.selectedAddressValue="",this.form&&this.form.addEventListener("submit",this.handleSubmit.bind(this)),this.isEditable&&(this.addressSetter=new p.default(e)),this.autosuggest=new h.default({context:this.container,onSelect:this.onAddressSelect.bind(this),lang:this.lang,suggestionFunction:this.suggestAddresses.bind(this),sanitisedQueryReplaceChars:this.addressReplaceChars,sanitisedQuerySplitNumsChars:this.sanitisedQuerySplitNumsChars,suggestOnBoot:!0,handleUpdate:!0}),this.apiDomain=this.container.getAttribute("data-api-domain"),this.lookupUrl="".concat(this.apiDomain,"/addresses/eq?input="),this.lookupGroupUrl="".concat(this.apiDomain,"/addresses/eq/bucket?"),this.retrieveUrl="".concat(this.apiDomain,"/addresses/eq/uprn/"),this.manualQueryParams=this.container.getAttribute("data-query-params"),this.regionCode=this.container.getAttribute("data-options-region-code"),this.epoch=this.container.getAttribute("data-options-one-year-ago"),this.classificationFilter=this.container.getAttribute("data-options-address-type"),this.checkAPIStatus()},[{key:"lang",get:function(){return document.documentElement.getAttribute("lang").toLowerCase()}},{key:"checkAPIStatus",value:(E=(0,o.default)(i.default.mark(function t(){var e,n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.fetch=(0,u.default)(this.lookupUrl+"cf142&limit=10",{method:"GET",headers:this.setAuthorization(this.authorizationToken)}),t.prev=1,t.next=2,this.fetch.send();case 2:return e=t.sent,t.next=3,e.json();case 3:(n=t.sent.status.code)>400&&(this.isEditable?this.handleAPIError():this.autosuggest.handleNoResults(n)),t.next=5;break;case 4:t.prev=4,t.catch(1),this.isEditable?this.handleAPIError():this.autosuggest.handleNoResults(status);case 5:case"end":return t.stop()}},t,this,[[1,4]])})),function(){return E.apply(this,arguments)})},{key:"suggestAddresses",value:(C=(0,o.default)(i.default.mark(function t(e,n,r){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(0,a.default)(n,0),this.fetch&&"DONE"!==this.fetch.status&&this.fetch.abort(),t.next=1,this.findAddress(e,r);case 1:return t.abrupt("return",t.sent);case 2:case"end":return t.stop()}},t,this)})),function(t,e,n){return C.apply(this,arguments)})},{key:"findAddress",value:(S=(0,o.default)(i.default.mark(function t(e,n){var r,s,a,o,l,c,h,d,p,f,g;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.manualQueryParams?(a=this.container.getAttribute("data-query-params"),s=this.lookupUrl+e+a):(o=this.testFullPostcodeQuery(e),l=o?100:10,r=n?this.lookupGroupUrl+this.groupQuery:this.lookupUrl+e+"&limit="+l,s=this.generateUrlParams(r),o&&!1!==n&&(s+="&groupfullpostcodes=combo")),this.fetch=(0,u.default)(s,{method:"GET",headers:this.setAuthorization(this.authorizationToken)}),t.next=1,this.fetch.send();case 1:return c=t.sent,t.next=2,c.json();case 2:return h=t.sent,d=h.status.code,p=h.response,f=h.response.limit,t.next=3,this.mapFindResults(p,f,d);case 3:return g=t.sent,t.abrupt("return",g);case 4:case"end":return t.stop()}},t,this)})),function(t,e){return S.apply(this,arguments)})},{key:"mapFindResults",value:(A=(0,o.default)(i.default.mark(function t(e,n,r){var s,a,o;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.total,!(e.partpostcode||"combo"===e.groupfullpostcodes&&e.postcodes&&e.postcodes.length>1)){t.next=2;break}return t.next=1,this.postcodeGroupsMapping(e);case 1:s=t.sent,a=s,t.next=5;break;case 2:if(!e.addresses){t.next=4;break}return t.next=3,this.addressMapping(e);case 3:s=t.sent,a=s?s.results.sort():null,t.next=5;break;case 4:a=e.addresses;case 5:return t.abrupt("return",{results:a,totalResults:o,limit:n,status:r});case 6:case"end":return t.stop()}},t,this)})),function(t,e,n){return A.apply(this,arguments)})},{key:"addressMapping",value:(k=(0,o.default)(i.default.mark(function t(e){var n,r,a=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.addresses)[0]){t.next=1;break}return r[0]&&r[0].bestMatchAddress?n=r.map(function(t){return{uprn:t.uprn,address:t.bestMatchAddress,type:t.bestMatchAddressType}}):r[0]&&r[0].formattedAddress&&(n=r.map(function(t){return{uprn:t.uprn,address:t.formattedAddress,type:t.addressType}})),e=n.map(function(t){var e=t.uprn,n=t.address,r=t.type;return(0,s.default)((0,s.default)((0,s.default)({},a.lang,n),"uprn",e),"type",r)}),t.abrupt("return",{results:e,limit:e.limit});case 1:case"end":return t.stop()}},t)})),function(t){return k.apply(this,arguments)})},{key:"postcodeGroupsMapping",value:(g=(0,o.default)(i.default.mark(function t(e){var n,r,a,o=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.postcodes,r=n.map(function(t){var e=t.postcode,n=t.postTown,r=t.streetName,i=t.townName,a=t.addressCount,l=t.firstUprn;return(0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)({},o.lang,r+", "+(i===n?n:i+", "+n)+", "+e+' (<span class="ons-autosuggest__group">'+o.groupCount.replace("{n}",a)+"</span>)"),"postcode",e),"streetName",r),"townName",i),"postTown",n),"firstUprn",l),"addressCount",a)}),t.next=1,this.replaceSingleCountAddresses(r);case 1:return a=t.sent,t.abrupt("return",a);case 2:case"end":return t.stop()}},t,this)})),function(t){return g.apply(this,arguments)})},{key:"replaceSingleCountAddresses",value:(r=(0,o.default)(i.default.mark(function t(e){var n,r,s,a,o=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=f(e),t.prev=1,s=i.default.mark(function t(){var n,s,a;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(1!==(n=r.value).addressCount||0===n.firstUprn){t.next=2;break}return t.next=1,o.createAddressObject(n.firstUprn);case 1:s=t.sent,a=e.findIndex(function(t){return t.firstUprn==s.uprn}),e[a]=s;case 2:case"end":return t.stop()}},t)}),n.s();case 2:if((r=n.n()).done){t.next=4;break}return t.delegateYield(s(),"t0",3);case 3:t.next=2;break;case 4:t.next=6;break;case 5:t.prev=5,a=t.catch(1),n.e(a);case 6:return t.prev=6,n.f(),t.finish(6);case 7:return t.abrupt("return",e);case 8:case"end":return t.stop()}},t,null,[[1,5,6,7]])})),function(t){return r.apply(this,arguments)})},{key:"createAddressObject",value:(n=(0,o.default)(i.default.mark(function t(e){var n,r,a;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.retrieveAddress(e);case 1:return n=t.sent,r=n.response.address.formattedAddress,a=n.response.address.uprn,t.abrupt("return",(0,s.default)((0,s.default)({},this.lang,r),"uprn",a));case 2:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"testFullPostcodeQuery",value:function(t){if(/\b((?:(?:gir)|(?:[a-pr-uwyz])(?:(?:[0-9](?:[a-hjkpstuw]|[0-9])?)|(?:[a-hk-y][0-9](?:[0-9]|[abehmnprv-y])?)))) ?([0-9][abd-hjlnp-uw-z]{2})\b/i.test(t))return!0}},{key:"retrieveAddress",value:(e=(0,o.default)(i.default.mark(function t(e){var n,r,s,a,o,l=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:null,r=this.retrieveUrl+e,s=this.generateUrlParams(r,e,n),this.fetch=(0,u.default)(s,{method:"GET",headers:this.setAuthorization(this.authorizationToken)}),t.next=1,this.fetch.send();case 1:return a=t.sent,t.next=2,a.json();case 2:return o=t.sent,t.abrupt("return",o);case 3:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"onAddressSelect",value:(t=(0,o.default)(i.default.mark(function t(e){var n,r;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.uprn){t.next=5;break}return t.prev=1,t.next=2,this.retrieveAddress(e.uprn,e.type);case 2:n=t.sent,this.isEditable?n.status.code>=403?this.autosuggest.handleNoResults(403):(this.addressSetter.setAddress(this.createAddressLines(n)),this.addressSelected=!0):(this.selectedAddressValue=e.displayText,this.autosuggest.input.value=e.displayText,this.uprn.value=e.uprn,this.addressSelected=!0),t.next=4;break;case 3:throw t.prev=3,r=t.catch(1),this.isEditable?this.handleAPIError():this.autosuggest.handleNoResults(403),r;case 4:t.next=6;break;case 5:e.postcode&&(this.autosuggest.input.value=e.streetName+", "+(e.townName===e.postTown?e.postTown:e.townName+", "+e.postTown)+", "+e.postcode,this.autosuggest.input.focus(),this.groupQuery="postcode="+e.postcode+"&streetname="+e.streetName+"&townname="+e.townName,this.autosuggest.handleChange(!0));case 6:case"end":return t.stop()}},t,this,[[1,3]])})),function(e){return t.apply(this,arguments)})},{key:"createAddressLines",value:function(t){var e=t.response.address;return{addressLine1:e.addressLine1,addressLine2:e.addressLine2,addressLine3:e.addressLine3,townName:e.townName,postcode:e.postcode,uprn:e.uprn}}},{key:"generateUrlParams",value:function(t,e,n){var r,i=t;return r=n?n.toLowerCase():"paf",e?e&&(i=t+"?addresstype="+r):(this.classificationFilter&&"residential"!==this.classificationFilter&&(i=i+"&classificationfilter="+this.classificationFilter),"workplace"===this.classificationFilter&&("gb-eng"===this.regionCode?i+="&eboost=10":"gb-wls"===this.regionCode&&(i+="&wboost=10")),"gb-nir"===this.regionCode&&("educational"===this.classificationFilter?i+="&eboost=0&sboost=0&wboost=0":i+="&nboost=10"),"cy"===this.lang&&(i+="&favourwelsh=true")),"true"===this.epoch&&(i+="&epoch=75"),i}},{key:"handleAPIError",value:function(){this.addressSetter.setManualMode(!0,!1),document.querySelector(".ons-js-address-search-btn").classList.add("ons-u-d-no")}},{key:"handleSubmit",value:function(t){var e=!1;this.isEditable&&(e=this.addressSetter.manualMode,this.addressSetter.checkManualInputsValues(!1)),this.isMandatory&&!e&&(!this.addressSelected||""===this.input.value||!this.isEditable&&this.checkValueHasBeenUpdated(this.selectedAddressValue))&&(t.preventDefault(),this.handleError=new d.default(this.context),this.handleError.showErrorPanel(),this.autosuggest.setAriaStatus(this.errorMessage))}},{key:"checkValueHasBeenUpdated",value:function(t){if(t!==this.input.value)return!0}},{key:"setAuthorization",value:function(t){return this.authorization="Bearer ".concat(t),new Headers({Authorization:this.authorization})}}]);var t,e,n,r,g,k,A,S,C,E}()},{"../../js/abortable-fetch":919,"../autosuggest/autosuggest.ui":851,"./autosuggest.address.error":845,"./autosuggest.address.setter":847,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/slicedToArray":23,"@babel/runtime/regenerator":29}],847:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classmanualLink=n.classTown=n.classSearchButton=n.classSearch=n.classPostcode=n.classOrganisation=n.classManual=n.classLine2=n.classLine1=n.classJsErrorPanel=n.classInputUPRN=n.classErrorPanel=n.classAutosuggestInput=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("./autosuggest.address.error")),o=n.classAutosuggestInput="ons-js-autosuggest-input",l=n.classOrganisation="ons-js-address-organisation",c=n.classLine1="ons-js-address-line1",u=n.classLine2="ons-js-address-line2",h=n.classTown="ons-js-address-town",d=n.classPostcode="ons-js-address-postcode",p=n.classInputUPRN="ons-js-hidden-uprn",f=n.classSearch="ons-js-address-input__search",g=n.classManual="ons-js-address-input__manual",m=n.classSearchButton="ons-js-address-search-btn",b=n.classmanualLink="ons-js-address-manual-btn",y=n.classErrorPanel="ons-panel--error",v=n.classJsErrorPanel="ons-js-autosuggest-error-panel";n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.context=e,this.input=e.querySelector(".".concat(o)),this.organisation=e.querySelector(".".concat(l)),this.line1=e.querySelector(".".concat(c)),this.line2=e.querySelector(".".concat(u)),this.town=e.querySelector(".".concat(h)),this.postcode=e.querySelector(".".concat(d)),this.uprn=e.querySelector(".".concat(p)),this.manualInputs=[this.organisation,this.line1,this.line2,this.town,this.postcode,this.uprn],this.search=e.querySelector(".".concat(f)),this.manual=e.querySelector(".".concat(g)),this.searchButton=e.querySelector(".".concat(m)),this.manualLink=e.querySelector(".".concat(b)),this.errorPanel=document.querySelector(".".concat(y)),this.manualMode=!0,this.originalValues=[],this.searchButton&&this.searchButton.addEventListener("click",this.toggleMode.bind(this)),this.manualLink&&this.manualLink.addEventListener("click",this.toggleMode.bind(this)),this.line1.value||this.line2.value||this.town.value||this.postcode.value||this.errorPanel?this.setManualMode(!0,!1):this.toggleMode()},[{key:"toggleMode",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setManualMode(!this.manualMode,t)}},{key:"setManualMode",value:function(t,e){if(this.manual.classList[t?"remove":"add"]("ons-u-db-no-js_enabled"),this.search.classList[t?"add":"remove"]("ons-u-d-no"),this.errorPanel&&this.errorPanel.classList[t?"remove":"add"]("ons-u-d-no"),e&&this.onUnsetAddress(),t){if(this.input.value="",this.JsErrorPanel=document.querySelector(".".concat(v)),this.JsErrorPanel)new a.default(this.context).removeErrorPanel();this.checkManualInputsValues(!0)}this.manualMode=t}},{key:"setAddress",value:function(t){this.clearManualInputs(!1),t.addressLine3?(this.line1.value=t.addressLine1+", "+t.addressLine2,this.line2.value=t.addressLine3):(this.line1.value=t.addressLine1,this.line2.value=t.addressLine2),this.town.value=t.townName,this.postcode.value=t.postcode,this.uprn.value=t.uprn,this.setManualMode(!0,!1)}},{key:"onUnsetAddress",value:function(){this.clearManualInputs()}},{key:"clearManualInputs",value:function(){this.manualInputs.forEach(function(t){t&&(t.value="")})}},{key:"checkManualInputsValues",value:function(t){t?this.originalValues=this.manualInputs.map(function(t){if(t)return t.value}):""!==this.uprn.value&&this.originalValues.length&&(this.newValues=this.manualInputs.map(function(t){return t.value}),this.originalValues.toString()!==this.newValues.toString()&&(this.uprn.value=""))}}])}()},{"./autosuggest.address.error":845,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],848:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-autosuggest"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./autosuggest"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./autosuggest":850,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],849:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sanitiseAutosuggestText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.toLowerCase();e.forEach(function(t){i=i.replace(new RegExp(t.toLowerCase(),"g"),"")}),i=(i=(i=r?i.trim():i.trimStart()).replace(/\s\s+/g," ")).replace(/[&]/g,"%26"),n&&(i=i.replace(/\d(?=[a-z]{3,})/gi,"$& "));return i}},{}],850:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("./autosuggest.ui"));n.default=function(){return(0,o.default)(function t(e){(0,a.default)(this,t),this.context=e,this.language=e.getAttribute("data-lang"),this.autosuggest=new l.default({context:e,onSelect:this.onSelect.bind(this),onUnsetResult:this.onUnsetResult.bind(this),onError:this.onError.bind(this)})},[{key:"lang",get:function(){return this.language?this.language.toLowerCase():document.documentElement.getAttribute("lang").toLowerCase()}},{key:"onSelect",value:(e=(0,s.default)(i.default.mark(function t(e){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.autosuggest.input.value=e.displayText;case 1:case"end":return t.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"onUnsetResult",value:(t=(0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)})},{key:"onError",value:function(t){}}]);var t,e}()},{"./autosuggest.ui":851,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],851:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classAutosuggestResultsTitle=n.classAutosuggestOptionNoResults=n.classAutosuggestOptionMoreResults=n.classAutosuggestOptionFocused=n.classAutosuggestOption=n.classAutosuggestHasResults=n.baseClass=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("../../js/abortable-fetch")),c=t("./autosuggest.helpers"),u=r(t("./fuse-config")),h=r(t("dompurify")),d=n.baseClass="ons-js-autosuggest",p=n.classAutosuggestOption="ons-autosuggest__option",f=n.classAutosuggestOptionFocused="".concat(p,"--focused"),g=n.classAutosuggestOptionNoResults="".concat(p,"--no-results"),m=n.classAutosuggestOptionMoreResults="".concat(p,"--more-results ons-u-fs-s"),b=n.classAutosuggestHasResults="ons-autosuggest--has-results",y=n.classAutosuggestResultsTitle="ons-autosuggest__results-title";n.default=function(){return(0,o.default)(function t(e){var n=e.context,r=e.autosuggestData,i=e.sanitisedQueryReplaceChars,s=e.sanitisedQuerySplitNumsChars,o=e.minChars,l=e.resultLimit,c=e.suggestOnBoot,u=e.onSelect,h=e.onUnsetResult,p=e.suggestionFunction,f=e.handleUpdate,g=e.ariaYouHaveSelected,m=e.ariaMinChars,b=e.ariaOneResult,y=e.ariaNResults,v=e.ariaLimitedResults,x=e.ariaGroupedResults,w=e.moreResults,k=e.resultsTitle,A=e.noResults,S=e.tooManyResults,C=e.errorAPI,E=e.errorAPILinkText,M=e.typeMore,T=e.customResultsThreshold;(0,a.default)(this,t),this.context=n,this.input=n.querySelector(".".concat(d,"-input")),this.resultsContainer=n.querySelector(".".concat(d,"-results")),this.listbox=this.resultsContainer.querySelector(".".concat(d,"-listbox")),this.resultsTitleContainer=this.resultsContainer.querySelector(".ons-autosuggest__results-title"),this.instructions=n.querySelector(".".concat(d,"-instructions")),this.ariaStatus=n.querySelector(".".concat(d,"-aria-status")),this.form=n.closest("form"),this.label=document.querySelector(".ons-label"),this.autosuggestData=r||n.getAttribute("data-autosuggest-data"),this.ariaYouHaveSelected=g||n.getAttribute("data-aria-you-have-selected"),this.minChars=o||n.getAttribute("data-min-chars")||3,this.ariaMinChars=m||n.getAttribute("data-aria-min-chars"),this.ariaOneResult=b||n.getAttribute("data-aria-one-result"),this.ariaNResults=y||n.getAttribute("data-aria-n-results"),this.ariaLimitedResults=v||n.getAttribute("data-aria-limited-results"),this.ariaGroupedResults=x||n.getAttribute("data-aria-grouped-results"),this.moreResults=w||n.getAttribute("data-more-results"),this.resultsTitle=k||n.getAttribute("data-results-title"),this.noResults=A||n.getAttribute("data-no-results"),this.tooManyResults=S||n.getAttribute("data-too-many-results"),this.errorAPI=C||n.getAttribute("data-error-api"),this.errorAPILinkText=E||n.getAttribute("data-error-api-link-text"),this.typeMore=M||n.getAttribute("data-type-more"),this.customResultsThreshold=T||n.getAttribute("data-result-threshold"),this.language=n.getAttribute("data-lang"),this.allowMultiple=n.getAttribute("data-allow-multiple")||!1,this.listboxId=this.listbox.getAttribute("id"),this.resultLimit=l||10,this.suggestOnBoot=c,this.onSelect=u,this.onUnsetResult=h,this.handleUpdate=f,p?this.fetchSuggestions=p:this.fetchData(),this.ctrlKey=!1,this.deleting=!1,this.query="",this.sanitisedQuery="",this.previousQuery="",this.results=[],this.resultOptions=[],this.allSelections=[],this.data=[],this.foundResults=0,this.numberOfResults=0,this.highlightedResultIndex=0,this.settingResult=!1,this.resultSelected=!1,this.blurring=!1,this.blurTimeout=null,this.sanitisedQueryReplaceChars=i||[],this.sanitisedQuerySplitNumsChars=s||!1,this.initialiseUI()},[{key:"lang",get:function(){return this.language?this.language.toLowerCase():document.documentElement.getAttribute("lang").toLowerCase()}},{key:"initialiseUI",value:function(){this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-controls",this.listbox.getAttribute("id")),this.input.setAttribute("aria-describedby",this.instructions.getAttribute("id")),this.input.setAttribute("aria-haspopup",!0),this.input.setAttribute("aria-owns",this.listbox.getAttribute("id")),this.input.setAttribute("aria-expanded",!1),this.input.setAttribute("autocomplete",this.input.getAttribute("autocomplete")||"off"),this.input.setAttribute("role","combobox"),this.context.classList.add("ons-autosuggest--initialised"),this.bindEventListeners()}},{key:"fetchData",value:(e=(0,s.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.fetch=(0,l.default)(this.autosuggestData),t.next=1,this.fetch.send();case 1:return e=t.sent,t.next=2,e.json();case 2:this.data=t.sent,this.responseStatus=e.status;case 3:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{key:"bindEventListeners",value:function(){this.input.addEventListener("keydown",this.handleKeydown.bind(this)),this.input.addEventListener("keyup",this.handleKeyup.bind(this)),this.input.addEventListener("input",this.handleChange.bind(this)),this.input.addEventListener("focus",this.handleFocus.bind(this)),this.input.addEventListener("blur",this.handleBlur.bind(this)),this.listbox.addEventListener("mouseover",this.handleMouseover.bind(this)),this.listbox.addEventListener("mouseout",this.handleMouseout.bind(this))}},{key:"handleKeydown",value:function(t){switch(this.ctrlKey=(t.ctrlKey||t.metaKey)&&"v"!==t.key,t.keyCode){case 38:t.preventDefault(),this.navigateResults(-1);break;case 40:t.preventDefault(),this.navigateResults(1);break;case 13:null!==this.highlightedResultIndex&&t.preventDefault()}}},{key:"handleKeyup",value:function(t){switch(t.keyCode){case 40:case 38:t.preventDefault();break;case 13:null!==this.highlightedResultIndex&&this.selectResult()}this.ctrlKey=!1}},{key:"handleChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!this.blurring&&this.input.value.trim()||!0===t?(this.settingResult=!1,!0===t?this.getSuggestions(!1,t):this.getSuggestions()):(this.abortFetch(),this.clearListbox())}},{key:"handleFocus",value:function(){"true"===this.allowMultiple&&this.allSelections.length&&" "!==this.input.value.slice(-1)&&""!==this.input.value&&(this.input.value="".concat(this.input.value,", "))}},{key:"handleBlur",value:function(){var t=this;clearTimeout(this.blurTimeout),this.blurring=!0,this.blurTimeout=setTimeout(function(){t.blurring=!1,t.settingResult||t.clearListbox()},300),"true"===this.allowMultiple&&", "===this.input.value.slice(-2)&&(this.input.value=this.input.value.slice(0,-2))}},{key:"checkCharCount",value:function(){var t=this;this.input.value.length>1&&this.input.value.length<this.minChars?this.inputTimeout=setTimeout(function(){t.handleNoResults(!1)},2e3):clearTimeout(this.inputTimeout)}},{key:"handleMouseover",value:function(){var t=this.resultOptions[this.highlightedResultIndex];t&&t.classList.remove(f)}},{key:"handleMouseout",value:function(){var t=this.resultOptions[this.highlightedResultIndex];t&&t.classList.add(f)}},{key:"navigateResults",value:function(t){var e=0;null!==this.highlightedResultIndex&&(e=this.highlightedResultIndex+t),e<this.numberOfResults&&(e<0&&(e=null),this.setHighlightedResult(e))}},{key:"getSuggestions",value:function(t,e){var n=this;if(!this.settingResult){if("true"===this.allowMultiple&&this.allSelections.length){var r=this.input.value.split(", ").find(function(t){return!n.allSelections.includes(t)});this.query=r||this.input.value}else this.query=this.input.value;var i=(0,c.sanitiseAutosuggestText)(this.query,this.sanitisedQueryReplaceChars,this.sanitisedQuerySplitNumsChars);(i!==this.sanitisedQuery||t&&!this.resultSelected)&&(this.sanitisedQuery=i,this.unsetResults(),this.checkCharCount(),this.sanitisedQuery.length>=this.minChars?this.fetchSuggestions(this.sanitisedQuery,this.data,e).then(this.handleResults.bind(this)).catch(function(t){"AbortError"!==t.name&&n.handleNoResults(500)}):this.clearListbox())}}},{key:"fetchSuggestions",value:(t=(0,s.default)(i.default.mark(function t(e,n){var r,s,a,o=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.abortFetch(),r=null!=this.customResultsThreshold&&this.customResultsThreshold>=0&&this.customResultsThreshold<=1?this.customResultsThreshold:.2,s=r>=.6?500:r>=.4?300:100,t.next=1,(0,u.default)(e,n,this.lang,r,s);case 1:return(a=t.sent).forEach(function(t){var e,n,r=null!==(e=t.item)&&void 0!==e?e:t;t.sanitisedText=(0,c.sanitiseAutosuggestText)(null!==(n=r[o.lang])&&void 0!==n?n:r.formattedAddress,o.sanitisedQueryReplaceChars)}),t.abrupt("return",{status:this.responseStatus,results:a,totalResults:a.length});case 2:case"end":return t.stop()}},t,this)})),function(e,n){return t.apply(this,arguments)})},{key:"abortFetch",value:function(){this.fetch&&"DONE"!==this.fetch.status&&this.fetch.abort()}},{key:"unsetResults",value:function(){this.results=[],this.resultOptions=[],this.resultSelected=!1,this.onUnsetResult&&this.onUnsetResult()}},{key:"clearListbox",value:function(t){this.listbox.innerHTML="",this.context.classList.remove(b),this.input.removeAttribute("aria-activedescendant"),this.input.setAttribute("aria-expanded",!1),t||this.setAriaStatus()}},{key:"handleResults",value:function(t){var e=this;if(this.resultLimit=t.limit?t.limit:this.resultLimit,this.foundResults=t.totalResults,this.foundResults>this.resultLimit&&(t.results=t.results.slice(0,this.resultLimit)),this.results=t.results,this.numberOfResults=this.results?Math.max(this.results.length,0):0,this.setAriaStatus(),!this.deleting||this.numberOfResults&&this.deleting){if(this.listbox.innerHTML="",this.results&&(this.resultOptions=this.results.map(function(t,n){var r,i,s=null!==(r=t.item)&&void 0!==r?r:t,a=e.emboldenMatch(null!==(i=s[e.lang])&&void 0!==i?i:s.formattedAddress,e.query),o=document.createElement("li");return o.className=p,o.setAttribute("id","".concat(e.listboxId,"__option--").concat(n)),o.setAttribute("role","option"),s.category&&(a+='<span class="ons-autosuggest__category ons-u-lighter ons-u-fs-s ons-u-db">'.concat(s.category,"</span>")),o.innerHTML=a,o.addEventListener("click",function(){e.selectResult(n)}),e.listbox.appendChild(o),e.context.querySelector(".".concat(y)).classList.remove("ons-u-d-no"),o})),this.numberOfResults<this.foundResults){var n=document.createElement("li");n.className="".concat(p," ").concat(m),n.setAttribute("aria-hidden","true"),n.innerHTML=h.default.sanitize(this.moreResults),this.listbox.appendChild(n)}if(100===this.resultLimit&&this.foundResults>this.resultLimit){var r=this.tooManyResults.replace("{n}",this.foundResults);this.resultsContainer.insertBefore(this.createWarningElement(r),this.resultsContainer.firstChild),this.ariaStatus.setAttribute("aria-hidden","true"),this.listbox.remove(),this.resultsTitleContainer.remove()}this.setHighlightedResult(null),this.input.setAttribute("aria-expanded",!!this.numberOfResults),this.numberOfResults&&this.sanitisedQuery.length>=this.minChars?this.context.classList.add(b):(this.context.classList.remove(b),this.clearListbox())}0===this.numberOfResults&&this.noResults&&this.handleNoResults(t.status)}},{key:"handleNoResults",value:function(t){var e;if(this.context.classList.add(b),this.context.querySelector(".".concat(y)).classList.add("ons-u-d-no"),this.input.setAttribute("aria-expanded",!0),400===t||!1===t)e=this.typeMore,this.setAriaStatus(e),this.listbox.innerHTML=h.default.sanitize('<li class="'.concat(p," ").concat(g,'">').concat(e,"</li>"));else if(t>400||""===t){var n=h.default.sanitize(window.location.href);e=this.errorAPI+(this.errorAPILinkText?' <a href="'+n+'">'+this.errorAPILinkText+"</a>.":"");var r=this.errorAPI+(this.errorAPILinkText?" "+this.errorAPILinkText:"");this.input.setAttribute("disabled",!0),this.input.value="",this.label.classList.add("ons-u-lighter"),this.resultsContainer.insertBefore(this.createWarningElement(e),this.resultsContainer.firstChild),this.ariaStatus.setAttribute("aria-hidden","true"),this.setAriaStatus(r),this.listbox.remove(),this.resultsTitleContainer.remove()}else e=this.noResults,this.listbox.innerHTML=h.default.sanitize('<li class="'.concat(p," ").concat(g,'">').concat(e,"</li>"))}},{key:"setHighlightedResult",value:function(t){var e=this;this.highlightedResultIndex=t,null===this.highlightedResultIndex?this.input.removeAttribute("aria-activedescendant"):this.numberOfResults&&this.resultOptions.forEach(function(n,r){if(r===t){n.classList.add(f),n.setAttribute("aria-selected",!0),e.input.setAttribute("aria-activedescendant",n.getAttribute("id"));var i=n.querySelector(".ons-autosuggest__group"),s=n.innerHTML.replace("<strong>","").replace("</strong>","");if(i){var a=e.ariaGroupedResults.replace("{n}",i.innerHTML);a=a.replace("{x}",s),e.setAriaStatus(a)}else e.setAriaStatus(s)}else n.classList.remove(f),n.removeAttribute("aria-selected")})}},{key:"setAriaStatus",value:function(t){if(!t){var e=this.sanitisedQuery.length<this.minChars,n=0===this.numberOfResults;e?t=this.ariaMinChars:n?t="".concat(this.noResults,': "').concat(this.query,'"'):1===this.numberOfResults?t=this.ariaOneResult:(t=this.ariaNResults.replace("{n}",this.numberOfResults),this.resultLimit&&this.foundResults>this.resultLimit&&(t+=" ".concat(this.ariaLimitedResults)))}this.ariaStatus.innerHTML=h.default.sanitize(t)}},{key:"selectResult",value:function(t){var e=this;if(this.results.length){var n,r;this.settingResult=!0;var i=this.results[t||this.highlightedResultIndex||0],s=null!==(n=i.item)&&void 0!==n?n:i,a=null!==(r=s[this.lang])&&void 0!==r?r:s.formattedAddress;if(this.resultSelected=!0,"true"===this.allowMultiple){var o=this.storeExistingSelections(a);i.displayText=o}else s.url?(i.displayText=a,window.location=s.url):i.displayText=a;this.onSelect(i).then(function(){return e.settingResult=!1});var l="".concat(this.ariaYouHaveSelected,": ").concat(i.displayText,".");this.clearListbox(),this.setAriaStatus(l)}}},{key:"createWarningElement",value:function(t){var e=document.createElement("div"),n=document.createElement("div"),r=document.createElement("span"),i=document.createElement("div");return e.id=this.listbox.getAttribute("id"),e.className="ons-autosuggest__warning",n.className="ons-panel ons-panel--warn ons-autosuggest__panel",r.className="ons-panel__icon",r.setAttribute("aria-hidden","true"),r.innerHTML="!",i.className="ons-panel__body",i.innerHTML=h.default.sanitize(t),n.appendChild(r),n.appendChild(i),e.appendChild(n),e}},{key:"storeExistingSelections",value:function(t){var e=this;return this.currentSelections=this.input.value.split(", ").filter(function(t){return e.allSelections.includes(t)}),this.allSelections=[],this.currentSelections.length&&(this.allSelections=this.currentSelections),this.allSelections.push(t),this.allSelections=this.allSelections.filter(function(t,e,n){return n.indexOf(t)==e}),this.allSelections.join(", ")}},{key:"emboldenMatch",value:function(t,e){var n=new RegExp(this.escapeRegExp(e).split(" ").join("[\\s,]*"),"gi");return t.replace(n,"<strong>$&</strong>")}},{key:"escapeRegExp",value:function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}]);var t,e}()},{"../../js/abortable-fetch":919,"./autosuggest.helpers":849,"./fuse-config":852,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29,dompurify:825}],852:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,e,n,r,s){var a={shouldSort:!0,threshold:r,distance:s,keys:[{name:n,weight:.9},{name:"formattedAddress",weight:.9},{name:"tags",weight:.1}]};return new i.default(e,a).search(t)};var i=r(t("fuse.js"))},{"@babel/runtime/helpers/interopRequireDefault":9,"fuse.js":826}],853:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-back-to-top")))){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./back-to-top"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./back-to-top":854,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],854:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){var n=this;(0,i.default)(this,t),this.component=e,this.content=this.component.previousElementSibling,this.target=document.getElementById(this.component.firstElementChild.href.split("#")[1]),this.contentleft,this.updateContentDetails(),this.handleScroll=this.handleScroll.bind(this),window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",function(){n.setEnabled(),n.updateContentDetails(),n.handleScroll()}),this.component.addEventListener("click",function(){n.component.firstElementChild.blur()})},[{key:"handleScroll",value:function(){var t=window.scrollY+window.innerHeight;this.target&&(t=-this.target.getBoundingClientRect().top+window.innerHeight);var e=this.content.getBoundingClientRect(),n=window.innerHeight,r=e.bottom;t>2*n&&n<r?this.setSticky():this.setEnabled()}},{key:"setSticky",value:function(){this.component.classList.remove("ons-back-to-top__enabled"),this.component.classList.add("ons-back-to-top__sticky"),this.component.firstElementChild.children[0].style.marginLeft="".concat(this.contentleft,"px")}},{key:"setEnabled",value:function(){this.updateContentDetails(),this.component.classList.remove("ons-back-to-top__sticky"),this.component.classList.add("ons-back-to-top__enabled"),this.component.firstElementChild.children[0].style.marginLeft=""}},{key:"updateContentDetails",value:function(){this.contentleft=this.component.getBoundingClientRect().left}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],855:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-submit-btn"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./button"))});case 1:i=e.sent.default,n.forEach(function(t){t.classList.contains("ons-js-timer")?r="timer":t.classList.contains("ons-js-loader")?r="loader":t.classList.contains("ons-btn--link")&&(r="link"),new i(t,r)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./button":856,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],856:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=0;n.default=function(){return(0,s.default)(function t(e,n){(0,i.default)(this,t),this.button=e,this.form=this.button.closest("form"),this.submitType=n,"loader"==this.submitType?this.form&&this.form.length?this.form.addEventListener("submit",this.loaderButton.bind(this)):this.button.addEventListener("click",this.loaderButton.bind(this)):"timer"==this.submitType?this.form&&this.form.length?this.form.addEventListener("submit",this.timerButton.bind(this)):this.button.addEventListener("click",this.timerButton.bind(this)):"link"==this.submitType&&(this.button.addEventListener("keydown",this.linkButtonDown.bind(this)),this.button.addEventListener("keyup",this.linkButtonUp.bind(this)))},[{key:"loaderButton",value:function(t){var e=t.submitter?t.submitter:this.button;e.classList.add("ons-is-loading"),e.setAttribute("disabled",!0)}},{key:"timerButton",value:function(t){var e=t.submitter?t.submitter:this.button;"A"===e.tagName?++a>1&&t.preventDefault():e.setAttribute("disabled",!0),setTimeout(function(t){t.removeAttribute("disabled"),a=0},1e3,e)}},{key:"linkButtonDown",value:function(t){32!=t.keyCode&&13!=t.keyCode||this.button.classList.add("active")}},{key:"linkButtonUp",value:function(t){32!=t.keyCode&&13!=t.keyCode||(this.button.classList.remove("active"),t.preventDefault(),this.button.click())}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],857:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.tagName=e.tagName,"input"===this.tagName.toLowerCase()||"textarea"===this.tagName.toLowerCase()?this.input=e:this.input=e.querySelector("input");var n=this.input.parentNode;this.button=n?n.querySelector("button"):null,this.checkElement=document.getElementById(this.input.getAttribute("data-message-check-ref")),this.checkVal=this.input.getAttribute("data-message-check-num"),this.singularMessage=this.checkElement.getAttribute("data-message-singular")||null,this.pluralMessage=this.checkElement.getAttribute("data-message-plural")||null,this.overLimitSingularMessage=this.checkElement.getAttribute("data-message-over-limit-singular")||null,this.overLimitPluralMessage=this.checkElement.getAttribute("data-message-over-limit-plural")||null,this.updateCheckReadout(this.input),this.button&&this.setButtonState(this.checkVal),this.input.addEventListener("input",this.updateCheckReadout.bind(this))},[{key:"updateCheckReadout",value:function(t,e){var n=this.input.value,r="char"==this.checkElement.getAttribute("data-count-type")?this.getCharLength(n):this.getWordLength(n),i=this.checkVal-r;!e&&t.inputType?this.checkElement.setAttribute("aria-live",[i>0?"polite":"assertive"]):this.checkElement.removeAttribute("aria-live"),this.checkRemaining(i),this.setCheckClass(i,this.input,"ons-input--limit-reached"),this.setCheckClass(i,this.checkElement,"ons-input__limit--reached")}},{key:"checkRemaining",value:function(t){var e;e=1===t?this.singularMessage:-1===t?this.overLimitSingularMessage:t<-1?this.overLimitPluralMessage:this.pluralMessage,this.checkElement.innerText=e.replace("{x}",Math.abs(t)),this.button&&this.setButtonState(t),this.setShowMessage(t)}},{key:"setButtonState",value:function(t){this.button.classList[0===t?"remove":"add"]("ons-btn--disabled"),this.button.disabled=0===t?null:"true"}},{key:"setShowMessage",value:function(t){"textarea"===this.tagName.toLowerCase()?this.checkElement.classList.remove("ons-u-d-no"):this.checkElement.classList[t<this.checkVal&&t>0||t<0?"remove":"add"]("ons-u-d-no")}},{key:"setCheckClass",value:function(t,e,n){e.classList[t<0?"add":"remove"](n)}},{key:"getCharLength",value:function(t){var e=(t.match(/\n/g)||[]).length;return t.length+e}},{key:"getWordLength",value:function(t){return t.trim().split(/\s+/).map(function(t){return t.replace(/[.,!?;:]+$/,"")}).filter(Boolean).length}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],858:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,s.default)(this,t),(0,a.default)(this,"buildPointAccessibilityDescription",function(t){var e=t.point.x,r=t.point.y,i=Number.isInteger(e)&&n.xAxisCategories.length>e?n.xAxisCategories[e]:e;return"".concat(t.text,". Related to ").concat(i,", ").concat(r)}),(0,a.default)(this,"getAnnotationsOptionsDesktop",function(){var t=[{labels:[],labelOptions:{useHTML:!0,shape:"connector",borderColor:n.constants.labelColor,padding:3,style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize,width:150,textAlign:"left"}},draggable:""}];return n.annotations.forEach(function(e){t[0].labels.push({point:{x:e.point.x,y:e.point.y,xAxis:0,yAxis:0},text:e.text,x:e.labelOffsetX,y:e.labelOffsetY,accessibility:{description:n.buildPointAccessibilityDescription(e)}})}),t}),(0,a.default)(this,"getAnnotationsOptionsMobile",function(){var t=[{labels:[],labelOptions:{backgroundColor:"transparent",borderColor:"transparent",useHTML:!0,className:"ons-chart__annotations-footnotes-number"},draggable:""}];return n.annotations.forEach(function(e,r){t[0].labels.push({point:{x:e.point.x,y:e.point.y,xAxis:0,yAxis:0},text:r+1,x:0,y:0,accessibility:{description:n.buildPointAccessibilityDescription(e)}})}),t}),this.constants=o.default.constants(),this.annotations=e,this.xAxisCategories=r});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],859:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=(0,i.default)(function t(){(0,s.default)(this,t),(0,a.default)(this,"getAreaChartOptions",function(){return{legend:{symbolWidth:12,symbolHeight:12},yAxis:{reversedStacks:!1},plotOptions:{area:{fillOpacity:1,legendSymbol:"rectangle",stacking:"normal",lineWidth:0},series:{marker:{enabled:!1}}}}})});n.default=o},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],860:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants"));function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){(0,a.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var u=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getBarChartOptions",function(t){return{plotOptions:{bar:{pointWidth:30,pointPadding:0,groupPadding:0,borderWidth:0,borderRadius:0,dataLabels:{enabled:!0,inside:!1,style:{textOutline:"none",fontWeight:"700",color:e.constants.labelColor,fontSize:e.constants.defaultFontSize}}},series:{stacking:t?"normal":null}},xAxis:{labels:{style:{textOverflow:"ellipsis",color:e.constants.categoryLabelColor},useHTML:!1},tickWidth:0,tickLength:0,tickColor:"transparent",title:{text:"",textAlign:"middle",reserveSpace:!1,rotation:0,y:-25,useHTML:!0}},yAxis:{labels:{rotation:0,useHTML:!0,style:{whiteSpace:"nowrap",color:e.constants.categoryLabelColor}},title:{textAlign:"right",offset:void 0,y:0,reserveSpace:!0,useHTML:!1},reversedStacks:!1}}}),(0,a.default)(this,"postLoadDataLabels",function(t){var n=e.getBarChartLabelsInsideOptions(),r=e.getBarChartLabelsOutsideOptions();t.series.forEach(function(t){"line"!=t.type&&("scatter"!=t.type&&t.data.forEach(function(t){if(t.dataLabel){var e=t.dataLabel.getBBox().width;t.shapeArgs.height>e+5?t.y<0?t.update({dataLabels:c(c({},n),{},{align:"left"})},!1):t.update({dataLabels:c(c({},n),{},{align:"right"})},!1):t.update({dataLabels:r},!1)}}))})}),(0,a.default)(this,"getBarChartLabelsInsideOptions",function(){return{inside:!0,verticalAlign:"middle",style:{color:"white",fontWeight:"bold"}}}),(0,a.default)(this,"getBarChartLabelsOutsideOptions",function(){return{inside:!1,align:void 0,verticalAlign:void 0,overflow:"allow",style:{textOutline:"none",fontWeight:"700",color:e.constants.labelColor,fontSize:e.constants.defaultFontSize}}}),(0,a.default)(this,"updateBarChartHeight",function(t,e,n){var r=t.xAxis.categories.length,i=e.series.length,s=30,a=0,o=0,l=0;if(0==n&&i>1){s=28,i>=3&&(s=20);var c=(a=14)/2/(((o=r*s*i)+(l=r*a))/r);e.series.forEach(function(t){t.update({groupPadding:c,pointWidth:s})})}else o=r*s,l=(r-1)*(a=10);t.xAxis.height=o+l;var u=e.plotTop+t.xAxis.height+e.marginBottom;u!==e.chartHeight&&e.setSize(null,u,!1),e.redraw()}),this.constants=o.default.constants()});n.default=u},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],861:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=r(t("./column-chart"));function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){(0,a.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var h=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getBoxplotOptions",function(t,n,r){return{plotOptions:{boxplot:u(u({},e.columnChart.getPointPadding(t,n,r,!1)),{},{boxDashStyle:"Solid",fillColor:e.constants.uncertaintyRangeColor,lineWidth:0,medianColor:e.constants.estimateLineColor,medianDashStyle:"Solid",medianWidth:3,stemWidth:0,whiskerWidth:0})},legend:{enabled:!1,symbolRadius:0,itemStyle:{fontSize:e.constants.defaultFontSize,color:e.constants.legendLabelColor}},tooltip:{enabled:!1}}}),this.constants=o.default.constants(),this.columnChart=new l.default});n.default=h},{"./chart-constants":862,"./column-chart":867,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],862:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;r(t("@babel/runtime/helpers/readOnlyError"));var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=function(){return(0,s.default)(function t(){(0,i.default)(this,t)},null,[{key:"constants",value:function(){return{primaryTheme:["#206095","#a8bd3a","#871a5b","#f66068","#05341a","#27a0cc"],linePrimaryTheme:["#206095","#a8bd3a","#871a5b","#f66068","#27a0cc","#05341a"],alternateTheme:["#206095","#27A0CC","#871A5B","#A8BD3A","#F66068"],labelColor:"#414042",axisLabelColor:"#707071",categoryLabelColor:"#414042",gridLineColor:"#d9d9d9",zeroLineColor:"#b3b3b3",estimateLineColor:"#003c57",uncertaintyRangeColor:"rgba(32, 96, 149, 0.65)",defaultFontSize:"0.875rem",extraLineColor:"#222222",shadingColor:"#ececec",lineMarkerStyles:[{radius:4,symbol:"circle"},{radius:4,symbol:"square"},{radius:5,symbol:"diamond"},{radius:5,symbol:"triangle"},{radius:5,symbol:"triangle-down"},{radius:4,symbol:"circle",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:4,symbol:"square",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:5,symbol:"diamond",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:5,symbol:"triangle",fillColor:"white",lineWidth:2.5,lineColor:null},{radius:5,symbol:"triangle-down",fillColor:"white",lineWidth:2.5,lineColor:null}],scatterMarkerStyles:[{radius:5,symbol:"circle",lineWidth:1,lineColor:"#ffffff"},{radius:5,symbol:"square",lineWidth:1,lineColor:"#ffffff"},{radius:6,symbol:"diamond",lineWidth:1,lineColor:"#ffffff"},{radius:6,symbol:"triangle",lineWidth:1,lineColor:"#ffffff"}],confidenceLevelMarkerStyles:[{radius:6,symbol:"diamond",lineWidth:2,lineColor:"#222",outline:!0,fillColor:"white"}]}}}])}();n.default=a},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/readOnlyError":14}],863:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("./chart-iframe-resize"));(0,r(t("../../js/domready")).default)((0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:[a.default].forEach(function(t){document.querySelectorAll(t.selector()).forEach(function(e){return new t(e)})});case 1:case"end":return t.stop()}},t)})))},{"../../js/domready":925,"./chart-iframe-resize":864,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],864:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("pym.js")),o=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.node=e,new a.default.Child(this.node.getAttribute("id"),this.node.dataset.url,{title:this.node.dataset.title})},null,[{key:"selector",value:function(){return".ons-chart__iframe-wrapper iframe"}}])}();n.default=o},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"pym.js":836}],865:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("./chart")),o=r(t("../../js/domready"));document.fonts.ready.then(function(){(0,o.default)((0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:[a.default].forEach(function(t){document.querySelectorAll(t.selector()).forEach(function(e){return new t(e)})});case 1:case"end":return t.stop()}},t)})))})},{"../../js/domready":925,"./chart":866,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],866:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("@babel/runtime/helpers/defineProperty")),l=r(t("highcharts"));t("highcharts/modules/accessibility"),t("highcharts/modules/annotations"),t("highcharts/highcharts-more");var c=r(t("./common-chart-options")),u=r(t("./specific-chart-options")),h=r(t("./line-chart")),d=r(t("./bar-chart")),p=r(t("./column-chart")),f=r(t("./scatter-chart")),g=r(t("./boxplot")),m=r(t("./annotations-options")),b=r(t("./range-annotations-options")),y=r(t("./reference-line-annotations-options")),v=t("./utilities"),x=r(t("./area-chart")),w=r(t("./columnrange-chart"));function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach(function(e){(0,o.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var S=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),(0,o.default)(this,"setAnnotationsAccessibilityDescription",function(){var t=[];if(n.rangeAnnotationsOptions&&t.push.apply(t,(0,i.default)(n.rangeAnnotationsOptions.getAccessibilityDescriptions())),n.referenceLineAnnotationsOptions&&t.push.apply(t,(0,i.default)(n.referenceLineAnnotationsOptions.getAccessibilityDescriptions())),t.length>0){n.config.accessibility||(n.config.accessibility={});var e=t.map(function(t){return"<li>".concat(t,"</li>")}).join("");n.config.accessibility.description='<ul style="list-style-type: none">'.concat(e,"</ul>")}}),(0,o.default)(this,"checkForExtraLines",function(){return"line"===n.chartType?0:n.config.series.filter(function(t){return"line"===t.type}).length}),(0,o.default)(this,"updateExtraLineZIndex",function(){n.config.series.forEach(function(t){"line"===t.type&&(t.zIndex=n.config.series.length+1)})}),(0,o.default)(this,"checkForExtraScatter",function(){return"scatter"===n.chartType?0:n.config.series.filter(function(t){return"scatter"===t.type}).length}),(0,o.default)(this,"setCommonChartOptions",function(){var t=n.commonChartOptions.getOptions();l.default.setOptions(t)}),(0,o.default)(this,"setSpecificChartOptions",function(){var t=n.specificChartOptions.getOptions(),e=n.lineChart.getLineChartOptions(),r=n.barChart.getBarChartOptions(n.useStackedLayout),i=n.columnRangeChart.getColumnRangeChartOptions(),s=n.columnChart.getColumnChartOptions(n.config,n.useStackedLayout,n.extraLines),a=n.areaChart.getAreaChartOptions(),o=n.scatterChart.getScatterChartOptions(),l=n.boxplot.getBoxplotOptions(n.config,n.useStackedLayout,n.extraLines);n.config=(0,v.mergeConfigs)(n.config,t),"line"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,e)),"bar"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,r)),"columnrange"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,i)),"column"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,s)),"area"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,a)),"scatter"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,o),n.specificChartOptions.limitSeriesForScatterChart()),"boxplot"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,l)),n.extraLines>0&&(n.updateExtraLineZIndex(),n.config=(0,v.mergeConfigs)(n.config,n.lineChart.getLineChartOptions()),n.config=(0,v.mergeConfigs)(n.config,n.lineChart.getExtraLineChartOptions(n.config.series.length+1)),"column"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,s))),n.extraScatter>0&&"columnrange"===n.chartType&&(n.config=(0,v.mergeConfigs)(n.config,i)),n.specificChartOptions.limitSeriesToThemeLength(),n.specificChartOptions.disableLegendForSingleSeries(n.config)}),(0,o.default)(this,"checkHideDataLabels",function(){var t="bar"===n.chartType&&n.config.series.length>2||!0===n.useStackedLayout;return n.config.series.forEach(function(e){e.data.length>20&&(t=!0)}),t}),(0,o.default)(this,"setResponsiveOptions",function(){var t=n.specificChartOptions.getMobileOptions(n.xAxisTickIntervalMobile,n.yAxisTickIntervalMobile);if("column"===n.chartType||"boxplot"===n.chartType){var e=n.columnChart.getColumnChartMobileOptions(n.config,n.useStackedLayout,n.extraLines);t=(0,v.mergeConfigs)(t,e)}n.config.responsive||(n.config.responsive={});var r=(0,v.preparePlotLinesAndBands)(n.annotations,n.rangeAnnotations,n.rangeAnnotationsOptions,n.referenceLineAnnotationsOptions,n.specificChartOptions,n.chartType,n.customReferenceLineValue),i=r.desktopAllPlotLinesAndBands,s=r.mobileAllPlotLinesAndBands,a=[{condition:{maxWidth:400},chartOptions:A({},t)},{condition:{maxWidth:600},chartOptions:A({annotations:n.annotationsOptions?n.annotationsOptions.getAnnotationsOptionsMobile():void 0},s!={}?s:null)},{condition:{minWidth:601},chartOptions:A({annotations:n.annotationsOptions?n.annotationsOptions.getAnnotationsOptionsDesktop():void 0},i!={}?i:null)}];n.config.responsive.rules=a}),(0,o.default)(this,"setLoadEvent",function(){n.config.chart.events||(n.config.chart.events={}),n.config.chart.events.load=function(t){var e=t.target;if("line"===n.chartType&&(n.lineChart.updateLastPointMarker(e.series),n.specificChartOptions.hideDataLabels(e.series)),"bar"===n.chartType&&(n.barChart.updateBarChartHeight(n.config,e,n.useStackedLayout),n.hideDataLabels?n.specificChartOptions.hideDataLabels(e.series):n.barChart.postLoadDataLabels(e)),"column"===n.chartType&&n.specificChartOptions.hideDataLabels(e.series),"scatter"===n.chartType&&(n.scatterChart.updateMarkers(e),n.specificChartOptions.hideDataLabels(e.series)),"boxplot"===n.chartType&&n.specificChartOptions.hideDataLabels(e.series),"columnrange"===n.chartType&&(n.columnRangeChart.updateColumnRangeChartHeight(n.config,e),n.specificChartOptions.hideDataLabels(e.series),n.extraScatter>0)){var r=e.series.filter(function(t){return"scatter"===t.type});n.scatterChart.updateMarkersForConfidenceLevels(r)}n.extraLines>0&&e.series.forEach(function(t){"line"===t.type&&n.specificChartOptions.hideDataLabels([t])});var i=e.renderer.box.querySelector("desc");i&&(i.textContent=""),e.redraw(!1)}}),(0,o.default)(this,"setRenderEvent",function(){n.config.chart.events||(n.config.chart.events={}),n.config.chart.events.render=function(t){var e=t.target;n.rangeAnnotationsOptions&&n.rangeAnnotationsOptions.addLine(e),"bar"!=n.chartType&&"columnrange"!=n.chartType&&n.specificChartOptions.adjustChartHeight(e,n.percentageHeightDesktop,n.percentageHeightMobile),n.specificChartOptions.updateLegendSymbols(e)}}),(0,o.default)(this,"setWindowResizeEvent",function(){window.addEventListener("resize",function(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout(function(){var t=l.default.charts.find(function(t){return t&&t.container===n.chart.container});"bar"!==n.chartType||n.hideDataLabels||(n.barChart.postLoadDataLabels(t),t.redraw(!1))},50)})}),this.node=e,this.chartType=this.node.dataset.highchartsType,this.theme=this.node.dataset.highchartsTheme;var r=this.node.querySelector("[data-highcharts-chart]");if(r){var a,k;if(r.classList.add("".concat(this.chartType,"-chart-container")),this.id=this.node.dataset.highchartsId,this.useStackedLayout=this.node.hasAttribute("data-highcharts-use-stacked-layout"),this.config=JSON.parse(this.node.querySelector("[data-highcharts-config--".concat(this.id,"]")).textContent),this.node.querySelector("[data-highcharts-annotations--".concat(this.id,"]")))this.annotations=JSON.parse(this.node.querySelector("[data-highcharts-annotations--".concat(this.id,"]")).textContent),this.annotationsOptions=new m.default(this.annotations,null!==(a=null===(k=this.config.xAxis)||void 0===k?void 0:k.categories)&&void 0!==a?a:[]);this.node.querySelector("[data-highcharts-range-annotations--".concat(this.id,"]"))&&(this.rangeAnnotations=JSON.parse(this.node.querySelector("[data-highcharts-range-annotations--".concat(this.id,"]")).textContent),this.rangeAnnotationsOptions=new b.default(this.rangeAnnotations)),this.node.querySelector("[data-highcharts-reference-line-annotations--".concat(this.id,"]"))&&(this.referenceLineAnnotations=JSON.parse(this.node.querySelector("[data-highcharts-reference-line-annotations--".concat(this.id,"]")).textContent),this.referenceLineAnnotationsOptions=new y.default(this.referenceLineAnnotations)),this.percentageHeightDesktop=this.node.dataset.highchartsPercentageHeightDesktop,this.percentageHeightMobile=this.node.dataset.highchartsPercentageHeightMobile,this.xAxisTickIntervalMobile=this.node.dataset.highchartsXAxisTickIntervalMobile?parseFloat(this.node.dataset.highchartsXAxisTickIntervalMobile):void 0,this.xAxisTickIntervalDesktop=this.node.dataset.highchartsXAxisTickIntervalDesktop?parseFloat(this.node.dataset.highchartsXAxisTickIntervalDesktop):void 0,this.yAxisTickIntervalMobile=this.node.dataset.highchartsYAxisTickIntervalMobile?parseFloat(this.node.dataset.highchartsYAxisTickIntervalMobile):void 0,this.yAxisTickIntervalDesktop=this.node.dataset.highchartsYAxisTickIntervalDesktop?parseFloat(this.node.dataset.highchartsYAxisTickIntervalDesktop):void 0,this.commonChartOptions=new c.default,this.estimateLineLabel=this.node.dataset.highchartsEstimateLineLabel,this.uncertainyRangeLabel=this.node.dataset.highchartsUncertaintyRangeLabel,this.customReferenceLineValue=this.node.dataset.highchartsCustomReferenceLineValue?parseFloat(this.node.dataset.highchartsCustomReferenceLineValue):void 0,this.specificChartOptions=new u.default(this.theme,this.chartType,this.config,this.xAxisTickIntervalDesktop,this.yAxisTickIntervalDesktop),this.lineChart=new h.default,this.barChart=new d.default,this.columnChart=new p.default,this.areaChart=new x.default,this.scatterChart=new f.default,this.columnRangeChart=new w.default,this.boxplot=new g.default,this.extraLines=this.checkForExtraLines(),this.extraScatter=this.checkForExtraScatter(),void 0===window.isCommonChartOptionsDefined&&(this.setCommonChartOptions(),window.isCommonChartOptionsDefined=!0),this.hideDataLabels=this.checkHideDataLabels(),this.setSpecificChartOptions(),this.setAnnotationsAccessibilityDescription(),this.setResponsiveOptions(),this.setLoadEvent(),this.setRenderEvent(),this.setWindowResizeEvent(),this.chart=l.default.chart(r,this.config)}},null,[{key:"selector",value:function(){return"[data-highcharts-base-chart]"}}])}();n.default=S},{"./annotations-options":858,"./area-chart":859,"./bar-chart":860,"./boxplot":861,"./column-chart":867,"./columnrange-chart":868,"./common-chart-options":869,"./line-chart":870,"./range-annotations-options":871,"./reference-line-annotations-options":872,"./scatter-chart":873,"./specific-chart-options":874,"./utilities":875,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,highcharts:828,"highcharts/highcharts-more":827,"highcharts/modules/accessibility":829,"highcharts/modules/annotations":830}],867:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){(0,a.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var c=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getColumnChartOptions",function(t,n,r){return{yAxis:{reversedStacks:!1},plotOptions:{column:l(l({},e.getPointPadding(t,n,r,!1)),{},{borderRadius:0,borderWidth:0}),series:{stacking:n?"normal":null}}}}),(0,a.default)(this,"getColumnChartMobileOptions",function(t,n,r){return{plotOptions:{column:l({},e.getPointPadding(t,n,r,!0))}}}),(0,a.default)(this,"getPointPadding",function(t,e,n,r){var i=0,s=0,a=(t.xAxis.categories?t.xAxis.categories.length:0)>=(r?10:20)?.1:.2;return 1===t.series.length-n||!0===e?i=a:s=a,{pointPadding:i,groupPadding:s,maxPointWidth:r?55:75}})});n.default=c},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],868:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getColumnRangeChartOptions",function(){return{plotOptions:{columnrange:{color:e.constants.uncertaintyRangeColor,pointWidth:20,pointPadding:0,groupPadding:0,borderWidth:0,borderRadius:0,dataLabels:{enabled:!1}}},tooltip:{enabled:!1},xAxis:{labels:{style:{color:e.constants.categoryLabelColor},useHTML:!1},tickWidth:0,tickLength:0,gridlineWidth:0,tickColor:"transparent",title:{align:"high",textAlign:"middle",reserveSpace:!1,rotation:0,y:-25,useHTML:!0}},yAxis:{labels:{rotation:0,useHTML:!0,style:{whiteSpace:"nowrap",color:e.constants.categoryLabelColor}},tickLength:0,tickWidth:0,tickColor:"transparent",gridlineWidth:0,title:{textAlign:"right",offset:void 0,y:0,reserveSpace:!0,useHTML:!1}},chart:{inverted:!0},legend:{symbolRadius:0,itemStyle:{fontSize:e.constants.defaultFontSize,color:e.constants.legendLabelColor}}}}),(0,a.default)(this,"updateColumnRangeChartHeight",function(t,e){var n,r,i=t.xAxis.categories.length;n=20*i,r=14*i,t.xAxis.height=n+r;var s=e.plotTop+t.xAxis.height+e.marginBottom;s!==e.chartHeight&&e.setSize(null,s,!1),e.redraw()}),this.constants=o.default.constants()});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],869:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getOptions",function(){return e.options}),this.constants=o.default.constants(),this.options={chart:{backgroundColor:"transparent",style:{fontFamily:'"OpenSans", "Helvetica Neue", arial, sans-serif',color:"#222222"}},legend:{align:"left",verticalAlign:"top",layout:"horizontal",symbolWidth:20,margin:50,navigation:{enabled:!1},itemDistance:30,itemHoverStyle:{color:this.constants.labelColor},itemStyle:{color:this.constants.labelColor,fontSize:this.constants.defaultFontSize,fontWeight:"normal"},events:{itemClick:function(){return!1}},accessibility:{keyboardNavigation:{enabled:!1}}},title:{text:""},credits:{enabled:!1},lang:{accessibility:{chartContainerLabel:"{title}",svgContainerLabel:""}},accessibility:{enabled:!0,keyboardNavigation:{focusBorder:{enabled:!1},enabled:!0,seriesNavigation:{mode:"serialize"}}},yAxis:{labels:{style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},title:{text:"",align:"high",textAlign:"middle",reserveSpace:!1,useHTML:!0,offset:15,rotation:0,y:-25,style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},lineColor:this.constants.gridLineColor,gridLineColor:this.constants.gridLineColor,tickWidth:1,tickLength:6,tickColor:this.constants.gridLineColor},xAxis:{labels:{useHTML:!0,rotation:0,style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},title:{align:"high",style:{color:this.constants.axisLabelColor,fontSize:this.constants.defaultFontSize}},lineColor:this.constants.gridLineColor,gridLineColor:this.constants.gridLineColor,tickWidth:1,tickLength:6,tickColor:this.constants.gridLineColor},plotOptions:{series:{animation:!1,states:{inactive:{opacity:1,enabled:!1},hover:{enabled:!1}}}},tooltip:{animation:!1}}});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],870:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getLineChartOptions",function(){return{plotOptions:{line:{lineWidth:3,linecap:"round"},marker:{enabled:!0}}}}),(0,a.default)(this,"getExtraLineChartOptions",function(){return{plotOptions:{line:{color:e.chartConstants.extraLineColor}}}}),(0,a.default)(this,"updateLastPointMarker",function(t){t.forEach(function(t,n){if(!1===t.userOptions.marker.enabled){var r=t.points;if(r&&r.length>0)r[r.length-1].update({marker:{enabled:!0}})}t.update({marker:null!=e.markerStyles[n]?e.markerStyles[n]:e.markerStyles[0]},!1)})}),this.chartConstants=o.default.constants(),this.markerStyles=this.chartConstants.lineMarkerStyles});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],871:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/defineProperty")),l=r(t("./chart-constants")),c=(0,s.default)(function t(e){var n=this;(0,a.default)(this,t),(0,o.default)(this,"buildRangeAccessibilityDescription",function(t){var e,n,r="x"===t.axis?"x-axis":"y-axis",i=null===(e=t.range)||void 0===e?void 0:e.axisValue1,s=null===(n=t.range)||void 0===n?void 0:n.axisValue2,a=void 0!==i&&void 0!==s?"from ".concat(i," to ").concat(s):"for a range";return"Range annotation on the ".concat(r," ").concat(a,": ").concat(t.text)}),(0,o.default)(this,"getRangeAnnotationsOptionsDesktop",function(t){var e=[],r=[];return n.rangeAnnotations.forEach(function(i){var s=n.adjustRangeForCategoryAxis(i,t),a=void 0;i.labelInside||(a=i.labelWidth?i.labelWidth:150);var o={from:s.axisValue1,to:s.axisValue2,label:{text:i.text,useHTML:!0,className:i.labelInside?"ons-chart__range-annotation-label ons-chart__range-annotation-label--".concat(i.axis):"ons-chart__range-annotation-label--outside",allowOverlap:!0,accessibility:{description:n.buildRangeAccessibilityDescription(i)},style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize,width:a}},color:n.constants.shadingColor};!i.labelInside&&i.labelOffsetX&&(o.label.x=i.labelOffsetX),!i.labelInside&&i.labelOffsetY&&(o.label.y=i.labelOffsetY),"x"===i.axis?e.push(o):"y"===i.axis&&r.push(o)}),{xAxis:e.length>0?{plotBands:e}:void 0,yAxis:r.length>0?{plotBands:r}:void 0}}),(0,o.default)(this,"getRangeAnnotationsOptionsMobile",function(t,e){var r=[],i=[];return n.rangeAnnotations.forEach(function(s,a){var o=n.adjustRangeForCategoryAxis(s,e),l={from:o.axisValue1,to:o.axisValue2,label:{text:"".concat(t+a+1),useHTML:!0,className:"ons-chart__annotations-footnotes-number",allowOverlap:!0,accessibility:{description:n.buildRangeAccessibilityDescription(s)},style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize}},color:n.constants.shadingColor};"x"===s.axis?r.push(l):"y"===s.axis&&i.push(l)}),{xAxis:r.length>0?{plotBands:r}:void 0,yAxis:i.length>0?{plotBands:i}:void 0}}),(0,o.default)(this,"getLabelPosition",function(t,e,n,r){var i=!1,s=!1,a=!1,o=!1;return("bar"===t?!r:r)?(e.right<n.left&&(i=!0),e.left>n.right&&(s=!0)):(e.bottom<n.top&&(a=!0),e.top>n.bottom&&(o=!0)),{isToLeft:i,isToRight:s,isToTop:a,isToBottom:o}}),(0,o.default)(this,"addLine",function(t){var e=t.container.querySelectorAll("[data-range-annotation-line]");e.length>0&&e.forEach(function(t){t.remove()});var r=t.xAxis[0].plotLinesAndBands.filter(function(t){return void 0!==t.options.from}),s=t.yAxis[0].plotLinesAndBands.filter(function(t){return void 0!==t.options.from});[].concat((0,i.default)(r),(0,i.default)(s)).forEach(function(e){if(void 0!==e.options.label.x||void 0!==e.options.label.y){var r=e.svgElem.element.getBoundingClientRect(),i=e.label.element,s=i.getBoundingClientRect(),a=n.getLabelPosition(t.userOptions.chart.type,s,r,e.axis.isXAxis);if(a.isToLeft||a.isToRight||a.isToTop||a.isToBottom){var o=document.createElement("tspan");if(o.classList.add("ons-chart__connector-line"),o.setAttribute("data-range-annotation-line",!0),i.appendChild(o),a.isToRight){var l=s.left-r.right;o.style.width="".concat(l,"px"),o.style.height="1px",o.style.top="".concat(s.height/2,"px"),o.style.left="-".concat(l,"px"),i.classList.add("ons-chart__range-annotation-label--right")}if(a.isToLeft){var c=r.left-s.right;o.style.width="".concat(c,"px"),o.style.height="1px",o.style.top="".concat(s.height/2,"px"),o.style.right="-".concat(c,"px"),i.classList.add("ons-chart__range-annotation-label--left")}if(a.isToTop){var u=r.top-s.bottom;o.style.height="".concat(u,"px"),o.style.width="1px",o.style.top="".concat(s.height,"px"),o.style.left="".concat(s.width/2,"px"),i.classList.add("ons-chart__range-annotation-label--top")}if(a.isToBottom){var h=s.top-r.bottom;o.style.height="".concat(h,"px"),o.style.width="1px",o.style.top="-".concat(h,"px"),o.style.left="".concat(s.width/2,"px"),i.classList.add("ons-chart__range-annotation-label--bottom")}}}})}),(0,o.default)(this,"getAccessibilityDescriptions",function(){return n.rangeAnnotations.map(function(t){return n.buildRangeAccessibilityDescription(t)})}),(0,o.default)(this,"adjustRangeForCategoryAxis",function(t,e){var n=t.range.axisValue1,r=t.range.axisValue2;return("bar"===e&&"x"===t.axis||"column"===e&&"x"===t.axis)&&(n=t.range.axisValue1-.5,r=t.range.axisValue2-.5),{axisValue1:n,axisValue2:r}}),this.constants=l.default.constants(),this.rangeAnnotations=e});n.default=c},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],872:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(e){var n=this;(0,s.default)(this,t),(0,a.default)(this,"buildReferenceLineAccessibilityDescription",function(t){var e="x"===t.axis?"x-axis":"y-axis",n=void 0!==t.value?"at ".concat(t.value):"at a value";return"Reference line annotation on the ".concat(e," ").concat(n,": ").concat(t.text)}),(0,a.default)(this,"getAccessibilityDescriptions",function(){return n.referenceLineAnnotations.map(function(t){return n.buildReferenceLineAccessibilityDescription(t)})}),(0,a.default)(this,"getReferenceLineAnnotationsOptionsDesktop",function(){var t=[],e=[];return n.referenceLineAnnotations.forEach(function(r){var i={label:{text:r.text,useHTML:!0,style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize,width:r.labelWidth?r.labelWidth:150},x:r.labelOffsetX?r.labelOffsetX:10,y:r.labelOffsetY?r.labelOffsetY:20,rotation:0,align:"left",textAlign:"left",accessibility:{description:n.buildReferenceLineAccessibilityDescription(r)}},color:n.constants.zeroLineColor,dashStyle:"2 2",width:2,value:r.value,zIndex:3};"x"===r.axis?t.push(i):"y"===r.axis&&e.push(i)}),{xAxis:t.length>0?{plotLines:t}:void 0,yAxis:e.length>0?{plotLines:e}:void 0}}),(0,a.default)(this,"getReferenceLineAnnotationsOptionsMobile",function(t,e){var r=[],i=[];return n.referenceLineAnnotations.forEach(function(s,a){var o="x"===s.axis;"bar"===e&&(o=!o);var l={label:{text:"".concat(t+a+1),useHTML:!0,className:"ons-chart__annotations-footnotes-number",allowOverlap:!0,accessibility:{description:n.buildReferenceLineAccessibilityDescription(s)},style:{color:n.constants.labelColor,fontSize:n.constants.defaultFontSize},x:o?7:0,y:o?13:-10,rotation:0,zIndex:3},color:n.constants.zeroLineColor,dashStyle:"2 2",width:2,value:s.value,zIndex:3};"x"===s.axis?r.push(l):"y"===s.axis&&i.push(l)}),{xAxis:r.length>0?{plotLines:r}:void 0,yAxis:i.length>0?{plotLines:i}:void 0}}),this.constants=o.default.constants(),this.referenceLineAnnotations=e});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],873:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(){var e=this;(0,s.default)(this,t),(0,a.default)(this,"getScatterChartOptions",function(){return{xAxis:{gridLineWidth:1},yAxis:{gridLineWidth:1}}}),(0,a.default)(this,"updateMarkers",function(t){t.series.forEach(function(t,n){t.update({marker:null!=e.markerStyles[n]?e.markerStyles[n]:e.markerStyles[0]},!1)})}),(0,a.default)(this,"updateMarkersForConfidenceLevels",function(t){t.forEach(function(t,n){t.update({marker:null!=e.confidenceLevelMarkerStyles[n]?e.confidenceLevelMarkerStyles[n]:e.confidenceLevelMarkerStyles[0]},!1)})}),this.chartConstants=o.default.constants(),this.markerStyles=this.chartConstants.scatterMarkerStyles,this.confidenceLevelMarkerStyles=this.chartConstants.confidenceLevelMarkerStyles});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],874:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/createClass")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/defineProperty")),o=r(t("./chart-constants")),l=(0,i.default)(function t(e,n,r,i,l){var c,u,h,d,p,f,g,m,b,y,v,x,w,k,A,S,C=this;(0,s.default)(this,t),(0,a.default)(this,"limitSeriesToThemeLength",function(){var t="alternate"===C.theme?C.constants.alternateTheme:C.constants.primaryTheme;"scatter"!==C.type&&C.config.series.length>t.length&&(C.config.series.length=t.length)}),(0,a.default)(this,"limitSeriesForScatterChart",function(){C.config.series.length>4&&(C.config.series.length=4)}),(0,a.default)(this,"getOptions",function(){return C.options}),(0,a.default)(this,"getMobileOptions",function(t,e){return{tooltip:{enabled:!1},xAxis:{tickInterval:t},yAxis:{tickInterval:e}}}),(0,a.default)(this,"hideDataLabels",function(t){t.forEach(function(t){t.update({dataLabels:{enabled:!1}})})}),(0,a.default)(this,"disableLegendForSingleSeries",function(t){"boxplot"!=t.chart.type&&1===t.series.length&&(t.legend={enabled:!1},t.chart.marginTop=50)}),(0,a.default)(this,"adjustChartHeight",function(t,e,n){var r=t.plotWidth,i=void 0,s=400;r>400?void 0!==e&&(i=Math.round(r*(e/100))):void 0!==n&&(i=Math.round(r*(n/100))),void 0!==i&&(s=t.plotTop+i+t.marginBottom),s!==t.chartHeight&&t.setSize(null,s,!1)}),(0,a.default)(this,"getReferenceLine",function(t,e){var n=0;return!t||"line"!==e&&"column"!==e||(n=t),{yAxis:{plotLines:[{color:C.constants.zeroLineColor,width:1.5,value:n,zIndex:2}]}}}),(0,a.default)(this,"updateLegendSymbols",function(t){t.legend.options.enabled&&t.legend.allItems.forEach(function(e,n){var r=e.legendItem,i=e.userOptions,s=null==i?void 0:i.type,a=r||{},o=a.label,l=a.symbol,c=a.line;if("line"===s){if("line"!==t.userOptions.chart.type&&(null==o||o.attr({x:30})),!l&&o&&o.element&&"line"===t.userOptions.chart.type){c&&c.hide(),o.parentGroup.element.querySelectorAll("[data-custom-legend-symbol]").forEach(function(t){return t.remove()});var u=t.renderer,h=o.element.getBBox(),d=C.constants.lineMarkerStyles[n%C.constants.lineMarkerStyles.length];u.symbol(d.symbol,h.x-22,h.y+4,12,d.radius,d.radius).attr({fill:e.color,stroke:e.color,"stroke-width":1,width:10,height:10,"data-custom-legend-symbol":!0}).add(o.parentGroup),null==o||o.attr({x:15})}}else if("scatter"===s)l.attr({width:13,height:13,y:7});else{if(!l)return;l.attr({width:12,height:12,y:8})}})}),this.constants=o.default.constants(),this.theme=e,this.config=r,this.options={colors:"alternate"===this.theme?this.constants.alternateTheme:"line"==n?this.constants.linePrimaryTheme:this.constants.primaryTheme,chart:{type:n,marginTop:this.config.legend.enabled?"boxplot"===n?50:void 0:50},yAxis:{tickInterval:l,min:null!==(c=null===(u=this.config.yAxis)||void 0===u?void 0:u.min)&&void 0!==c?c:void 0,max:null!==(h=null===(d=this.config.yAxis)||void 0===d?void 0:d.max)&&void 0!==h?h:void 0,startOnTick:null===(p=null===(f=this.config.yAxis)||void 0===f?void 0:f.startOnTick)||void 0===p||p,endOnTick:null===(g=null===(m=this.config.yAxis)||void 0===m?void 0:m.endOnTick)||void 0===g||g},xAxis:{tickInterval:i,min:null!==(b=null===(y=this.config.xAxis)||void 0===y?void 0:y.min)&&void 0!==b?b:void 0,max:null!==(v=null===(x=this.config.xAxis)||void 0===x?void 0:x.max)&&void 0!==v?v:void 0,startOnTick:null!==(w=null===(k=this.config.xAxis)||void 0===k?void 0:k.startOnTick)&&void 0!==w&&w,endOnTick:null!==(A=null===(S=this.config.xAxis)||void 0===S?void 0:S.endOnTick)&&void 0!==A&&A}}});n.default=l},{"./chart-constants":862,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9}],875:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.preparePlotLinesAndBands=n.mergeConfigs=void 0;var i=r(t("@babel/runtime/helpers/typeof")),s=r(t("@babel/runtime/helpers/defineProperty"));function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var l=n.mergeConfigs=function(t,e){if(!e)return t;var n=o({},t);return Object.keys(e).forEach(function(t){var r=n[t],s=e[t];r&&s&&"object"===(0,i.default)(r)&&"object"===(0,i.default)(s)&&!Array.isArray(r)&&!Array.isArray(s)?n[t]=l(r,s):n[t]=null!=s?s:r}),n};n.preparePlotLinesAndBands=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,c=(t?t.length:0)+(e?e.length:0),u={},h={},d={},p={},f={},g={};n&&(u=n.getRangeAnnotationsOptionsDesktop(s),h=n.getRangeAnnotationsOptionsMobile(t?t.length:0,s)),r&&(d=r.getReferenceLineAnnotationsOptionsDesktop(),p=r.getReferenceLineAnnotationsOptionsMobile(c,s));var m=i.getReferenceLine(a,s);if(f=o({},d),g=o({},p),void 0!==d.yAxis){var b=d.yAxis.plotLines.concat(m.yAxis.plotLines),y=p.yAxis.plotLines.concat(m.yAxis.plotLines);f.yAxis.plotLines=b,g.yAxis.plotLines=y}else f.yAxis=o({},m.yAxis),g.yAxis=o({},m.yAxis);return{desktopAllPlotLinesAndBands:l(u,f),mobileAllPlotLinesAndBands:l(h,g)}}},{"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/typeof":27}],876:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,a.default)(function t(e,n,r){var a=this;(0,s.default)(this,t),this.context=e,this.button=n,this.checkboxes=(0,i.default)(this.context.querySelectorAll("input")),this.insideReveal=r,this.button.addEventListener("click",this.handleButtonEvent.bind(this)),this.checkboxes.forEach(function(t){return t.addEventListener("change",a.handleCheckboxEvent.bind(a))}),this.insideReveal&&this.insideReveal.addEventListener("change",this.handleCheckboxEvent.bind(this)),this.numberOfCheckboxes=this.checkboxes.length,this.allChecked=!1,this.buttonText=this.button.querySelector(".ons-js-button-text"),this.selectAllText=this.button.getAttribute("data-select-all"),this.unselectAllText=this.button.getAttribute("data-unselect-all")},[{key:"handleButtonEvent",value:function(t){var e=this;t.preventDefault(),this.checkboxes.forEach(function(t){t.checked=!1===e.allChecked}),this.buttonText.innerHTML=!1===this.allChecked?this.unselectAllText:this.selectAllText,this.allChecked=!1===this.allChecked}},{key:"handleCheckboxEvent",value:function(){var t=this.checkboxes.filter(function(t){return t.checked}).length;this.buttonText.innerHTML=t===this.numberOfCheckboxes?this.unselectAllText:this.selectAllText,this.allChecked=t===this.numberOfCheckboxes}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],877:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.context=e,this.checkbox=e.querySelector(".ons-js-checkbox"),this.childInputs=(0,i.default)(this.context.querySelectorAll("input")),this.selectAllChildrenInput=this.context.querySelector(".ons-js-select-all-children"),this.selectAllChildrenInput?this.selectAllChildrenInput.addEventListener("change",this.checkChildInputsOnSelect.bind(this)):this.checkbox.addEventListener("change",this.uncheckChildInputsOnDeselect.bind(this))},[{key:"checkChildInputsOnSelect",value:function(){var t=this;this.childInputs.forEach(function(e){e.checked=!0===t.selectAllChildrenInput.checked})}},{key:"uncheckChildInputsOnDeselect",value:function(){!1===this.checkbox.checked&&this.childInputs.forEach(function(t){t.checked=!1})}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],878:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){var n=this;(0,i.default)(this,t),this.inputs=e,this.inputs.forEach(function(t){return t.addEventListener("change",n.setExpandedAttributes.bind(n))}),this.setExpandedAttributes()},[{key:"setExpandedAttributes",value:function(){this.inputs.filter(function(t){return t.hasAttribute("aria-haspopup")}).forEach(function(t){return t.setAttribute("aria-expanded",t.checked)})}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],879:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r,i,o,c,u,h;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-checkbox"))).length){e.next=7;break}return e.next=1,Promise.resolve().then(function(){return l(t("./checkboxes-with-reveal"))});case 1:if(new(0,e.sent.default)(n),!(r=document.querySelector(".ons-checkbox__other--open"))){e.next=3;break}return i=r.parentNode.querySelector(".ons-checkbox__input"),e.next=2,Promise.resolve().then(function(){return l(t("../radios/check-radios"))});case 2:new(0,e.sent.default)(i,r);case 3:if(!(o=(0,a.default)(document.querySelectorAll(".ons-js-other-fieldset-checkbox")))){e.next=5;break}return e.next=4,Promise.resolve().then(function(){return l(t("./checkbox-with-fieldset"))});case 4:c=e.sent.default,o.forEach(function(t){var e=t.closest(".ons-checkbox");new c(e)});case 5:if(!(u=(0,a.default)(document.querySelectorAll(".ons-js-auto-selector")))){e.next=7;break}return e.next=6,Promise.resolve().then(function(){return l(t("./checkbox-with-autoselect"))});case 6:h=e.sent.default,u.forEach(function(t){var e=t.parentNode,n=e.parentNode.parentNode.querySelector(".ons-js-other");new h(e,t,n)});case 7:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"../radios/check-radios":896,"./checkbox-with-autoselect":876,"./checkbox-with-fieldset":877,"./checkboxes-with-reveal":878,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],880:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-cookies-banner"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./cookies-banner"))});case 1:r=e.sent.default,n.forEach(function(t){new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./cookies-banner":881,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],881:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=t("../../js/cookies-functions");n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.component=e,this.primaryBanner=this.component.querySelector(".ons-cookies-banner__primary"),this.confirmBanner=this.component.querySelector(".ons-cookies-banner__confirmation"),this.acceptButton=this.component.querySelector(".ons-js-accept-cookies"),this.rejectButton=this.component.querySelector(".ons-js-reject-cookies"),this.hideButton=this.component.querySelector(".ons-js-hide-button"),this.acceptedText=this.component.querySelector(".ons-js-accepted-text"),this.rejectedText=this.component.querySelector(".ons-js-rejected-text"),this.setupCookiesEvents()},[{key:"setupCookiesEvents",value:function(){this.acceptButton.addEventListener("click",this.setCookiesConsent.bind(this)),this.rejectButton.addEventListener("click",this.setCookiesConsent.bind(this)),this.hideButton.addEventListener("click",this.hideConfirmBanner.bind(this)),this.showCookiesMessage()}},{key:"showCookiesMessage",value:function(){var t=this.component&&"true"!==(0,o.cookie)("ons_cookie_message_displayed"),e=(0,o.cookie)("ons_cookie_policy");e&&(0,o.setConsentCookie)(JSON.parse(e.replace(/'/g,'"'))),t&&(this.component.style.display="block",(0,o.cookie)("ons_cookie_policy")||(0,o.setDefaultConsentCookie)())}},{key:"setCookiesConsent",value:function(t){var e;t.preventDefault();var n=t.target.getAttribute("data-button");"accept"==n?(this.acceptCookies(),e=this.acceptedText):"reject"==n&&((0,o.setDefaultConsentCookie)(),e=this.rejectedText),this.hidePrimaryCookiesBanner(e),this.checkPage(n),(0,o.cookie)("ons_cookie_message_displayed","true",{days:365})}},{key:"acceptCookies",value:function(){(0,o.approveAllCookieTypes)(),"undefined"!=typeof loadGTM&&loadGTM()}},{key:"checkPage",value:function(t){document.querySelector('[data-module="cookie-settings"]')&&this.updateRadios(t)}},{key:"updateRadios",value:function(t){(0,i.default)(document.querySelectorAll(".ons-js-radio")).forEach(function(e){"reject"==t?"off"==e.value?e.checked=!0:e.checked=!1:"accept"==t&&("off"==e.value?e.checked=!1:e.checked=!0)})}},{key:"hidePrimaryCookiesBanner",value:function(t){this.component&&(this.primaryBanner.style.display="none",this.confirmBanner.classList.remove("ons-u-d-no"),this.confirmBanner.setAttribute("aria-live","polite"),this.confirmBanner.setAttribute("role","status"),t.classList.remove("ons-u-d-no"))}},{key:"hideConfirmBanner",value:function(){this.component&&(this.component.style.display="none")}}])}()},{"../../js/cookies-functions":921,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],882:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,a.default)(document.querySelectorAll(".ons-js-details")),r=(0,a.default)(document.querySelectorAll(".ons-js-accordion")),!n.length||r.length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./details"))});case 1:i=e.sent.default,n.map(function(t){return new i(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./details":883,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],883:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.saveState="true"===e.getAttribute("data-save-state"),this.open="true"===e.getAttribute("data-open"),this.group=e.getAttribute("data-group"),this.details=e,this.detailsHeader=this.details.querySelector(".ons-js-details-heading"),this.content=this.details.querySelector(".ons-js-details-content"),this.detailsTitle=this.details.querySelector(".ons-js-corrections-details-title");var n=e.getAttribute("id");this.details.setAttribute("role","group"),this.detailsHeader.setAttribute("role","link"),this.detailsHeader.setAttribute("aria-controls",n),this.detailsHeader.setAttribute("tabindex",0),localStorage.getItem(n)||this.open?this.setOpen(!0):this.setOpen(!1),this.detailsHeader.addEventListener("click",this.toggle.bind(this)),this.detailsHeader.addEventListener("keydown",this.keyboardInteraction.bind(this)),this.details.classList.add("ons-details--initialised")},[{key:"toggle",value:function(t){t.preventDefault(),this.setOpen(!this.isOpen)}},{key:"setOpen",value:function(t){if(t!==this.isOpen){var e=t?"Open":"Close",n=t?"add":"remove",r=t?"set":"remove",i=t?"Close detail":"Show detail";this.isOpen=t,this.details["".concat(r,"Attribute")]("open",""),this.details.classList[n]("ons-details--open"),this.detailsHeader.setAttribute("aria-expanded",t),this.content.setAttribute("aria-hidden",!t),this.detailsHeader.setAttribute("data-ga-action","".concat(e," panel")),this.detailsHeader.setAttribute("data-ga-interaction-value","".concat(e," panel")),this.detailsTitle&&(this.detailsTitle.textContent=i),this.onOpen&&this.onClose&&(t?this.onOpen():this.onClose())}!0===this.saveState&&!0===t?localStorage.setItem(this.details.getAttribute("id"),!0):localStorage.removeItem(this.details.getAttribute("id"))}},{key:"keyboardInteraction",value:function(t){switch(t.which){case 13:case 32:t.preventDefault(),t.stopPropagation(),this.toggle(t)}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],884:[function(t,e,n){"use strict";function r(){}if(r.hasClass=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},r.addClass=function(t,e){var n=e.split(" ");t.classList?t.classList.add(n[0]):r.hasClass(t,n[0])||(t.className+=" "+n[0]),n.length>1&&r.addClass(t,n.slice(1).join(" "))},r.removeClass=function(t,e){var n=e.split(" ");if(t.classList)t.classList.remove(n[0]);else if(r.hasClass(t,n[0])){var i=new RegExp("(\\s|^)"+n[0]+"(\\s|$)");t.className=t.className.replace(i," ")}n.length>1&&r.removeClass(t,n.slice(1).join(" "))},r.toggleClass=function(t,e,n){n?r.addClass(t,e):r.removeClass(t,e)},r.setAttributes=function(t,e){for(var n in e)t.setAttribute(n,e[n])},r.getChildrenByClassName=function(t,e){for(var n=[],i=0;i<t.children.length;i++)r.hasClass(t.children[i],e)&&n.push(t.children[i]);return n},r.is=function(t,e){if(e.nodeType)return t===e;for(var n="string"==typeof e?document.querySelectorAll(e):e,r=n.length;r--;)if(n[r]===t)return!0;return!1},r.setHeight=function(t,e,n,r,i){var s=e-t,a=null,o=function(e){a||(a=e);var l=e-a,c=parseInt(l/r*s+t);n.style.height=c+"px",l<r?window.requestAnimationFrame(o):i()};n.style.height=t+"px",window.requestAnimationFrame(o)},r.scrollTo=function(t,e,n,r){var i=r||window,s=i.scrollTop||document.documentElement.scrollTop,a=null;r||(s=window.scrollY||document.documentElement.scrollTop);var o=function(r){a||(a=r);var l=r-a;l>e&&(l=e);var c=Math.easeInOutQuad(l,s,t-s,e);i.scrollTo(0,c),l<e?window.requestAnimationFrame(o):n&&n()};window.requestAnimationFrame(o)},r.moveFocus=function(t){t||(t=document.getElementsByTagName("body")[0]),t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus())},r.getIndexInArray=function(t,e){return Array.prototype.indexOf.call(t,e)},r.cssSupports=function(t,e){return"CSS"in window?CSS.supports(t,e):t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})in document.body.style},r.extend=function(){var t={},e=!1,n=0,r=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);for(var i=function(n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e&&"[object Object]"===Object.prototype.toString.call(n[r])?t[r]=extend(!0,t[r],n[r]):t[r]=n[r])};n<r;n++){i(arguments[n])}return t},r.osHasReducedMotion=function(){if(!window.matchMedia)return!1;var t=window.matchMedia("(prefers-reduced-motion: reduce)");return!!t&&t.matches},Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),"function"!=typeof window.CustomEvent){function i(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}i.prototype=window.Event.prototype,window.CustomEvent=i}Math.easeInOutQuad=function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},function(){var t=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(o){this.options=r.extend(t.defaults,o),this.element=this.options.element,this.elementId=this.element.getAttribute("id"),this.items=this.element.querySelectorAll(".ons-js-filter__item"),this.controllers=document.querySelectorAll('[aria-controls="'+this.elementId+'"]'),this.fallbackMessage=document.querySelector('[data-fallback-gallery-id="'+this.elementId+'"]'),this.filterString=[],this.sortingString="",this.filterList=[],this.sortingList=[],this.itemsGrid=[],this.itemsInitPosition=[],this.itemsIterPosition=[],this.itemsFinalPosition=[],this.animateOff="off"==this.element.getAttribute("data-filter-animation"),this.resizingId=!1,this.accelerateStyle="will-change: transform, opacity; transform: translateZ(0); backface-visibility: hidden;",this.animating=!1,this.reanimate=!1,function(t){c(t,!0,!0),u(t),function(t){for(var e=0;e<t.items.length;e++)t.items[e].setAttribute("data-init-sort-order",e)}(t);for(var o=0;o<t.controllers.length;o++)t.filterString[o]="",function(e){t.controllers[e].addEventListener("change",function(r){"select"==r.target.tagName.toLowerCase()?r.target.getAttribute("data-filter")?i(t,e,"select"):n(t,r.target.value,r.target.options[r.target.selectedIndex]):"input"!=r.target.tagName.toLowerCase()||"radio"!=r.target.getAttribute("type")&&"checkbox"!=r.target.getAttribute("type")?t.controllers[e].getAttribute("data-filter")?i(t,e,"custom"):n(t,t.controllers[e].getAttribute("data-sort"),t.controllers[e]):r.target.getAttribute("data-filter")?i(t,e,"input"):n(t,r.target.getAttribute("data-sort"),r.target),a(t)}),t.controllers[e].addEventListener("click",function(o){var l=o.target.closest("[data-filter]"),c=o.target.closest("[data-sort]");(l||c)&&(!l||"input"!=l.tagName.toLowerCase()&&"select"!=l.tagName.toLowerCase())&&(!c||"input"!=c.tagName.toLowerCase()&&"select"!=c.tagName.toLowerCase())&&(c&&r.hasClass(c,"ons-js-filter__custom-control")||l&&r.hasClass(l,"ons-js-filter__custom-control")||(o.preventDefault(),s(t,e,l,c),c?n(t,c.getAttribute("data-sort"),c):i(t,e,"button"),a(t)))})}(o);window.addEventListener("resize",function(){clearTimeout(t.resizingId),t.resizingId=setTimeout(function(){u(t)},300)}),e(t),t.element.addEventListener("update-filter-results",function(){for(var n=0;n<t.controllers.length;n++)t.filterString[n]="";t.sortingString="",e(t)})}(this)});function e(t){for(var e=0;e<t.controllers.length;e++){var r=t.controllers[e].getElementsByClassName("ons-js-filter-selected");if(r.length>0){r[0].getAttribute("data-sort")?n(t,r[0].getAttribute("data-sort"),r[0]):i(t,e,"button")}else{var s=t.controllers[e].querySelectorAll("input:checked");if(s.length>0){var o=s[0].getAttribute("data-sort");o?n(t,o,s[0]):i(t,e,"input")}else if("select"!=t.controllers[e].tagName.toLowerCase()){var l=t.controllers[e].querySelector('input[type="radio"]'),c=t.controllers[e].querySelector('input[type="checkbox"]');if(!l&&!c){var u=t.controllers[e].getAttribute("data-sort"),h=t.controllers[e].getAttribute("data-filter");u?n(t,u,t.controllers[e]):h&&i(t,e,"custom")}}else{t.controllers[e].getAttribute("data-sort")?n(t,t.controllers[e].value,t.controllers[e].options[t.controllers[e].selectedIndex]):i(t,e,"select")}}}a(t)}function n(t,e,n){var r=n.getAttribute("data-sort-order")?"desc":"asc",i=n.getAttribute("data-sort-number")?"number":"string";t.sortingString=e+":"+r+":"+i}function i(t,e,n){if("input"==n){var r=t.controllers[e].querySelectorAll("input:checked");t.filterString[e]="";for(var i=0;i<r.length;i++)t.filterString[e]=t.filterString[e]+r[i].getAttribute("data-filter")+":"}else if("select"==n)t.controllers[e].multiple?t.filterString[e]=function(t){for(var e=t.options,n="",r=0;r<e.length;r++)e[r].selected&&(""!=n&&(n+=":"),n+=e[r].value);return n}(t.controllers[e]):t.filterString[e]=t.controllers[e].value;else if("button"==n){var s=t.controllers[e].querySelectorAll(".ons-js-filter-selected");t.filterString[e]="";for(var a=0;a<s.length;a++)t.filterString[e]=t.filterString[e]+s[a].getAttribute("data-filter")+":"}else"custom"==n&&(t.filterString[e]=t.controllers[e].getAttribute("data-filter"))}function s(t,e,n,i){var s=t.controllers[e].getAttribute("data-filter-checkbox"),a=t.controllers[e].getAttribute("data-selected-class");if(a=a?"ons-js-filter-selected "+a:"ons-js-filter-selected","true"==s)n?r.toggleClass(n,a,!r.hasClass(n,"ons-js-filter-selected")):r.toggleClass(i,a,!r.hasClass(i,"ons-js-filter-selected"));else{var o=t.controllers[e].querySelector(".ons-js-filter-selected");o&&r.removeClass(o,a),n?r.addClass(n,a):r.addClass(i,a)}}function a(t){t.animating?t.reanimate=!0:(t.animating=!0,t.reanimate=!1,u(t),function(t){var e=t.sortingString.split(":");""==e[0]||"*"==e[0]?function(t){for(var e=0;e<t.items.length;e++)t.sortingList[parseInt(t.items[e].getAttribute("data-init-sort-order"))]=[t.items[e],e]}(t):t.options[e[0]]?t.sortingList=t.options[e[0]](t.sortingList):t.sortingList.sort(function(t,n){var r=t[0].getAttribute("data-sort-"+e[0]),i=n[0].getAttribute("data-sort-"+e[0]);return"number"==e[2]&&(r=parseFloat(r),i=parseFloat(i)),"desc"==e[1]?r<=i?1:-1:r>=i?1:-1})}(t),function(t){c(t,!0,!1);for(var e=0;e<t.filterString.length;e++)""!=t.filterString[e]&&"*"!=t.filterString[e]&&" "!=t.filterString[e]&&o(t,t.filterString[e].split(":"))}(t),d(t,!0),f||t.animateOff?l(t):function(t){h(t,t.itemsInitPosition),t.element.setAttribute("style","height: "+parseFloat(t.element.offsetHeight)+"px; width: "+parseFloat(t.element.offsetWidth)+"px;");for(var e=0;e<t.items.length;e++)r.hasClass(t.items[e],"ons-u-hidden")&&t.filterList[e]&&(t.items[e].setAttribute("data-scale","on"),t.items[e].setAttribute("style",t.accelerateStyle+"transform: scale(0.5); opacity: 0;"),r.removeClass(t.items[e],"ons-u-hidden"));h(t,t.itemsIterPosition);for(var n=0;n<t.items.length;n++)"on"!=t.items[n].getAttribute("data-scale")&&t.items[n].setAttribute("style",t.accelerateStyle+"transform: translateX("+parseInt(t.itemsInitPosition[n][0]-t.itemsIterPosition[n][0])+"px) translateY("+parseInt(t.itemsInitPosition[n][1]-t.itemsIterPosition[n][1])+"px);");!function(t){for(var e="transform "+t.options.duration+"ms cubic-bezier(0.455, 0.03, 0.515, 0.955), opacity "+t.options.duration+"ms",n=0,i=0;i<t.sortingList.length;i++){var s=t.items[t.sortingList[i][1]];r.hasClass(s,"ons-u-hidden")||!t.filterList[t.sortingList[i][1]]?(t.itemsFinalPosition[t.sortingList[i][1]]=t.itemsIterPosition[t.sortingList[i][1]],"on"==s.getAttribute("data-scale")&&(n+=1)):(t.itemsFinalPosition[t.sortingList[i][1]]=[t.itemsGrid[n][0],t.itemsGrid[n][1]],n+=1)}setTimeout(function(){for(var n=0;n<t.items.length;n++)t.filterList[n]&&"on"==t.items[n].getAttribute("data-scale")?t.items[n].setAttribute("style",t.accelerateStyle+"transition: "+e+"; transform: translateX("+parseInt(t.itemsFinalPosition[n][0]-t.itemsIterPosition[n][0])+"px) translateY("+parseInt(t.itemsFinalPosition[n][1]-t.itemsIterPosition[n][1])+"px) scale(1); opacity: 1;"):t.filterList[n]?t.items[n].setAttribute("style",t.accelerateStyle+"transition: "+e+"; transform: translateX("+parseInt(t.itemsFinalPosition[n][0]-t.itemsIterPosition[n][0])+"px) translateY("+parseInt(t.itemsFinalPosition[n][1]-t.itemsIterPosition[n][1])+"px);"):t.items[n].setAttribute("style",t.accelerateStyle+"transition: "+e+"; transform: scale(0.5); opacity: 0;")},50),setTimeout(function(){l(t)},t.options.duration+100)}(t)}(t))}function o(t,e){if(e&&""!=e&&"*"!=e){for(var n=[],r=0;r<e.length;r++)t.options[e[r]]&&(n[e[r]]=t.options[e[r]](t.items));for(var i=0;i<t.items.length;i++){for(var s=t.items[i].getAttribute("data-filter").split(" "),a=!1,o=0;o<e.length;o++){if(t.options[e[o]]&&n[e[o]][i]){a=!0;break}if("*"==e[o]||s.indexOf(e[o])>-1){a=!0;break}}t.filterList[i]=!!a&&t.filterList[i]}}}function l(t){for(var e=0;e<t.items.length;e++)t.items[e].removeAttribute("style"),r.toggleClass(t.items[e],"ons-u-hidden",!t.filterList[e]),t.items[e].removeAttribute("data-scale");for(var n=0;n<t.items.length;n++)t.element.appendChild(t.items[t.sortingList[n][1]]);t.items=[],t.items=t.element.querySelectorAll(".ons-js-filter__item"),c(t,!1,!0),t.element.removeAttribute("style"),t.animating=!1,t.reanimate&&a(t),d(t,!1),t.element.dispatchEvent(new CustomEvent("filter-selection-updated"))}function c(t,e,n){for(var r=0;r<t.items.length;r++)e&&(t.filterList[r]=!0),n&&(t.sortingList[r]=[t.items[r],r])}function u(t){for(var e,n,i,s,a,o,l=parseFloat(window.getComputedStyle(t.element).getPropertyValue("width")),c=0;c<t.items.length;c++)if(!r.hasClass(t.items[c],"ons-u-hidden")){e=window.getComputedStyle(t.items[c]),n=parseFloat(e.getPropertyValue("width")),i=parseFloat(e.getPropertyValue("height")),s=parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),a=parseFloat(e.getPropertyValue("margin-bottom"))+parseFloat(e.getPropertyValue("margin-top")),o=parseInt((l+s)/(n+s)),t.itemsGrid[0]=[t.items[c].offsetLeft,t.items[c].offsetTop];break}for(var u=1;u<t.items.length;u++){var h=u<o?u:u%o,d=u<o?0:Math.floor(u/o);t.itemsGrid[u]=[t.itemsGrid[0][0]+h*(n+s),t.itemsGrid[0][1]+d*(i+a)]}}function h(t,e){for(var n=0;n<t.items.length;n++)e[n]=[t.items[n].offsetLeft,t.items[n].offsetTop]}function d(t,e){if(t.fallbackMessage){for(var n=!0,i=0;i<t.filterList.length;i++)if(t.filterList[i]){n=!1;break}e?n||r.addClass(t.fallbackMessage,"ons-u-hidden"):r.toggleClass(t.fallbackMessage,"ons-u-hidden",!n)}}t.defaults={element:!1,duration:400},window.Filter=t;var p=document.getElementsByClassName("ons-js-filter"),f=r.osHasReducedMotion();if(p.length>0)for(var g=0;g<p.length;g++){var m=p[g].getAttribute("data-filter-duration");m||(m=t.defaults.duration),new t({element:p[g],duration:m})}}(),function(){var t=function(t){this.element=t,this.form=document.getElementsByClassName("ons-js-adv-filter__form"),this.resultsList=this.element.getElementsByClassName("ons-js-adv-filter__gallery")[0],this.resultsCount=this.element.getElementsByClassName("ons-js-adv-filter__results-count"),this.showCount=document.getElementsByClassName("ons-js-adv-filter__show-results"),function(t){t.form.length>0&&(t.form[0].addEventListener("reset",function(){setTimeout(function(){!function(t){var e=t.element.getElementsByClassName("ons-js-select");if(e.length>0)for(var n=0;n<e.length;n++)e[n].dispatchEvent(new CustomEvent("select-updated"));var r=t.element.getElementsByClassName("ons-js-slider");if(r.length>0)for(var i=0;i<r.length;i++)r[i].dispatchEvent(new CustomEvent("slider-updated"))}(t),function(t){t.form[0].dispatchEvent(new CustomEvent("change")),t.resultsList.dispatchEvent(new CustomEvent("update-filter-results"))}(t)})}),t.form[0].addEventListener("change",function(n){var i=n.target.closest(".ons-js-adv-filter__item");if(i)e(t,i);else if(r.is(n.target,".ons-js-adv-filter__form"))for(var s=t.form[0].getElementsByClassName("ons-js-adv-filter__item"),a=0;a<s.length;a++)e(t,s[a])}));t.resultsCount.length>0&&t.resultsList.addEventListener("filter-selection-updated",function(){!function(t){for(var e=t.resultsList.children,n=0,r=0;r<e.length;r++)i(e[r])&&(n+=1);t.resultsCount[0].textContent=n,t.showCount[0].textContent=n}(t)})}(this)};function e(t,e){var r=e.getElementsByClassName("ons-js-adv-filter__selection");if(0!=r.length){var i=e.getElementsByTagName("select");if(i.length>0)r[0].textContent=function(t,e){if(e.multiple){for(var n="",r=0,i=0;i<e.options.length;i++)e.options[i].selected&&(n=n+""+e.options[i].text,r+=1),r>1&&(n=t.getAttribute("data-multi-select-text").replace("{n}",r));return n}return e.options[e.selectedIndex].text}(e,i[0]);else{var s=e.querySelectorAll('input[type="number"]');if(s.length>0)r[0].textContent=function(t,e){for(var n=0,r=0;r<e.length;r++)e[r].value!=e[r].min&&(n+=1);return e.length>1?n>0?t.getAttribute("data-multi-select-text").replace("{n}",n):t.getAttribute("data-default-text"):e[0].value==e[0].min?t.getAttribute("data-default-text"):t.getAttribute("data-number-format").replace("{n}",e[0].value)}(e,s);else{var a=e.querySelectorAll('input[type="range"]');if(a.length>0)r[0].textContent=function(t,e){for(var n="",r=t.getAttribute("data-number-format"),i=0;i<e.length;i++)0!=i&&(n+=" - "),n+=r.replace("{n}",e[i].value);return n}(e,a);else{var o=e.querySelectorAll('input[type="radio"]'),l=e.querySelectorAll('input[type="checkbox"]');o.length>0?r[0].textContent=n(e,o):l.length>0&&(r[0].textContent=n(e,l))}}}}}function n(t,e){for(var n=0,r="",i=0;i<e.length;i++)if(e[i].checked){var s=e[i].parentNode.getElementsByTagName("label");s.length>0&&(r=s[0].textContent),n+=1}return n>1?t.getAttribute("data-multi-select-text").replace("{n}",n):0==n?t.getAttribute("data-default-text"):r}function i(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length}var s=document.getElementsByClassName("ons-js-adv-filter");if(s.length>0)for(var a=0;a<s.length;a++)(function(e){new t(s[e])})(a);var o=document.getElementById("adv-filter-gallery");o&&new Filter({element:o,priceRange:function(t){for(var e=[],n=document.getElementById("slider-min-value").value,r=document.getElementById("slider-max-value").value,i=0;i<t.length;i++){var s=parseInt(t[i].getAttribute("data-price"));e[i]=s>=n&&s<=r}return e},indexValue:function(t){for(var e=[],n=document.getElementById("index-value").value,r=0;r<t.length;r++){var i=parseInt(t[r].getAttribute("data-sort-index"));e[r]=i>=n}return e}})}(),function(){var t=document.getElementsByClassName("ons-js-adv-filter");if(t.length>0){var e=t[0].getElementsByClassName("ons-js-adv-filter__trigger")[0],n=t[0].getElementsByClassName("ons-js-adv-filter__close")[0],i=t[0].getElementsByClassName("ons-js-adv-filter__show")[0],s=t[0].getElementsByClassName("ons-js-adv-filter__wrap")[0],a=t[0].getElementsByClassName("ons-js-adv-filter__panel")[0],o=document.getElementsByTagName("body")[0],l=document.getElementsByClassName("ons-page")[0];e.addEventListener("click",function(t){t.preventDefault(),d(!r.hasClass(a,"ons-adv-filter__panel--is-visible"))}),i.addEventListener("click",function(t){t.preventDefault(),e.click()}),n.addEventListener("click",function(t){t.preventDefault(),e.click()}),window.addEventListener("keyup",function(t){(t.keyCode&&27==t.keyCode||t.key&&"escape"==t.key.toLowerCase())&&"true"==e.getAttribute("aria-expanded")&&h(e)&&e.click()});var c=!1;function u(){h(e)||d(!1)}function h(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length}function d(t){!0===t?o.appendChild(a):s.appendChild(a),r.toggleClass(l,"ons-u-d-no",t),r.toggleClass(a,"ons-adv-filter__panel--is-visible",t),r.toggleClass(o,"ons-no-scroll",t),e.setAttribute("aria-expanded",t),e.setAttribute("aria-hidden",t),l.setAttribute("aria-hidden",t),r.toggleClass(e,"ons-u-d-no",t)}window.addEventListener("resize",function(){clearTimeout(c),c=setTimeout(u,500)})}}()},{}],885:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-char-check-input"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("../char-check-limit/character-check"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"../char-check-limit/character-check":857,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],886:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-input-container-abbr"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./input"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./input":887,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],887:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.abbrInput=e,this.bindEventListeners()},[{key:"bindEventListeners",value:function(){this.abbrInput.querySelector(".ons-js-input-abbr").addEventListener("click",this.handleClick.bind(this))}},{key:"handleClick",value:function(){this.abbrInput.querySelector(".ons-input").focus()}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],888:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,a.default)(document.querySelectorAll(".ons-js-modal")),r=(0,a.default)(document.querySelectorAll(".ons-js-timeout-modal")),!n.length||r.length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./modal"))});case 1:i=e.sent.default,n.forEach(function(t){return new i(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./modal":889,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],889:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("dialog-polyfill")),o="ons-modal-overlay",l="ons-modal-ie11";n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.component=e,this.launcher=document.querySelector("[data-modal-id=".concat(e.id,"]")),this.closeButton=e.querySelector(".ons-js-modal-btn"),this.lastFocusedEl=null,this.dialogCSSSupported=!0,this.modalType=this.component.classList.contains("ons-js-timeout-modal")?"Timeout":"Generic",this.initialise()},[{key:"initialise",value:function(){this.dialogSupported()&&(this.launcher&&this.launcher.addEventListener("click",this.openDialog.bind(this)),this.closeButton&&this.closeButton.addEventListener("click",this.closeDialog.bind(this)),"Timeout"!==this.modalType&&window.addEventListener("keydown",this.escToClose.bind(this)))}},{key:"dialogSupported",value:function(){if("function"==typeof HTMLDialogElement)return!0;try{return a.default.registerDialog(this.component),this.dialogCSSSupported=!1,!0}catch(t){return!1}}},{key:"openDialog",value:function(t){this.isDialogOpen()||(this.component.classList.add("ons-u-db"),document.querySelector("body").classList.add(o),this.dialogCSSSupported||document.querySelector("body").classList.add(l),this.saveLastFocusedEl(),t?document.getElementById(t.target.getAttribute("data-modal-id")).showModal():this.component.showModal())}},{key:"saveLastFocusedEl",value:function(){this.lastFocusedEl=document.activeElement,this.lastFocusedEl&&this.lastFocusedEl!==document.body?document.querySelector&&(this.lastFocusedEl=document.querySelector(":focus")):this.lastFocusedEl=null}},{key:"setFocusOnLastFocusedEl",value:function(t){t&&t.focus()}},{key:"isDialogOpen",value:function(){return this.component.open}},{key:"closeDialog",value:function(t){this.isDialogOpen()&&(t&&t.preventDefault(),this.component.classList.remove("ons-u-db"),document.querySelector("body").classList.remove(o),this.dialogCSSSupported||document.querySelector("body").classList.remove(l),this.component.close(),this.setFocusOnLastFocusedEl(this.lastFocusedEl))}},{key:"escToClose",value:function(t){this.isDialogOpen()&&27===t.keyCode&&this.closeDialog(t)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"dialog-polyfill":824}],890:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("../../js/domready"));function c(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function u(){return(u=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.getElementsByClassName("ons-js-mutually-exclusive"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return c(t("./mutually-exclusive"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,l.default)(function(){return u.apply(this,arguments)})},{"../../js/domready":925,"./mutually-exclusive":891,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],891:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("dompurify")),l="ons-js-input-abbr",c="ons-js-input-legend";n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.context=e;var r=(0,i.default)(e.getElementsByClassName("ons-js-exclusive-group-item"));this.numberOfGroupInputs=r.length,this.groupInputs=r.map(function(t){return{element:t,labelText:n.getElementLabelText(t),hasValue:n.inputHasValue(t),exclusive:!1}});var a=(0,i.default)(e.getElementsByClassName("ons-js-exclusive-option"));this.numberOfExclusiveElements=a.length,this.exclusiveElements=a.map(function(t){return{element:t,label:e.querySelector("label[for=".concat(t.id,"]")),labelText:n.getElementLabelText(t),hasValue:n.inputHasValue(t),exclusive:!0}}),this.allInputs=[].concat((0,i.default)(this.groupInputs),(0,i.default)(this.exclusiveElements)),this.voiceOverAlertElement=e.querySelector(".".concat("ons-js-exclusive-alert")),this.groupAdjective=this.voiceOverAlertElement.getAttribute("data-group-adjective"),this.optionAttrAdjective=this.voiceOverAlertElement.getAttribute("data-option-adjective"),this.deselectMessage=this.exclusiveElements[0].element.getAttribute("data-deselect-message"),this.bindEventListeners()},[{key:"bindEventListeners",value:function(){var t=this;this.allInputs.forEach(function(e){var n=["checkbox","radio"].includes(e.element.type)?"click":"input";e.element.addEventListener(n,function(){return t.handleValueChange(e)})})}},{key:"handleValueChange",value:function(t){var e,n=this,r=this.allInputs.filter(function(t){return t.hasValue}).map(function(t){return t.labelText});if(t.hasValue=this.inputHasValue(t.element),t.hasValue){if(t.exclusive)e=this.groupAdjective,this.allInputs.filter(function(t){return!t.exclusive}).forEach(function(t){t.hasValue=!1,["checkbox","radio"].includes(t.element.type)?(t.element.checked=!1,n.triggerEvent(t.element,"change")):(t.element.value="",n.triggerEvent(t.element,"input"))});else if(!t.exclusive){var i=this.allInputs.filter(function(t){return t.exclusive});e=this.optionAttrAdjective,i.forEach(function(t){t.hasValue=!1,t.element.checked=!1}),this.triggerEvent(t.element,"change")}var s=this.allInputs.filter(function(t){return t.hasValue}).map(function(t){return t.labelText}),a=r.filter(function(t){return!s.includes(t)});this.setDeselectMessage(),setTimeout(function(){return n.setAriaLive(a,e)},300)}}},{key:"getElementLabelText",value:function(t){var e,n=this.context.querySelector("label[for=".concat(t.id,"]"));return!n&&this.numberOfGroupInputs>1&&(n=t.parentNode.querySelector(".".concat(l))),n||(n=this.context.querySelector(".".concat(c))),n&&(e=n.classList.contains(l)&&n.querySelector("abbr")?n.getAttribute("title"):n.classList.contains(l)&&n.querySelector("span")?n.querySelector("span").innerText:n.classList.contains(c)&&n.querySelector("h1")?n.querySelector("h1").innerText:(0,i.default)(n.childNodes).filter(function(t){return 3===t.nodeType&&t.textContent.trim()})[0].textContent.trim()),e}},{key:"inputHasValue",value:function(t){return["checkbox","radio"].includes(t.type)?!!t.checked:!!t.value.trim().length}},{key:"setAriaLive",value:function(t,e){var n=t.map(function(t){return"".concat(t," ").concat(e,".")}).join(" ");n&&(this.voiceOverAlertElement.innerHTML=o.default.sanitize(n))}},{key:"setDeselectMessage",value:function(){var t=this.groupInputs.find(function(t){return t.hasValue});if(!this.deselectMessageElement&&t){var e=document.createElement("span");e.classList.add("ons-u-vh"),e.innerHTML=". ".concat(this.deselectMessage),this.deselectMessageElement=e,this.exclusiveElements[0].label.appendChild(e)}else this.deselectMessageElement&&!t&&(this.deselectMessageElement.remove(),this.deselectMessageElement=null)}},{key:"triggerEvent",value:function(t,e){var n;"function"==typeof Event?n=new Event(e,{bubbles:!1,cancelable:!0}):(n=document.createEvent("HTMLEvents")).initEvent(e,!1,!0),t.dispatchEvent(n)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,dompurify:825}],892:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/asyncToGenerator"));function o(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,a.default)(s.default.mark(function e(){var n,r,i,a,l,c,u,h,d,p,f,g,m,b,y,v,x;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=document.querySelector(".ons-js-navigation-button"),r=document.querySelector(".ons-js-navigation"),i="ons-u-d-no@2xs@l",a=document.querySelector(".ons-js-sub-navigation-button"),l=document.querySelector(".ons-js-secondary-nav"),c="ons-u-d-no",u=document.querySelector(".ons-js-toggle-search"),h=document.querySelector(".ons-js-navigation-search"),d="ons-u-d-no@xs@l",p=document.querySelector(".ons-js-toggle-services"),f=document.querySelector(".ons-js-services-mobile-nav"),g="ons-u-d-no",m=document.querySelector(".ons-js-toggle-header-search"),b="ons-u-d-no",y=document.querySelector(".ons-js-header-search"),v=document.querySelector(".ons-js-nav-menu"),x=document.querySelector(".ons-js-toggle-nav-menu"),!n){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return o(t("./navigation"))});case 1:new(0,e.sent.default)(n,r,i).registerEvents();case 2:if(!a){e.next=4;break}return e.next=3,Promise.resolve().then(function(){return o(t("./navigation"))});case 3:new(0,e.sent.default)(a,l,c).registerEvents();case 4:if(!u){e.next=6;break}return e.next=5,Promise.resolve().then(function(){return o(t("./navigation"))});case 5:new(0,e.sent.default)(u,h,d).registerEvents();case 6:if(!m){e.next=8;break}return e.next=7,Promise.resolve().then(function(){return o(t("./navigation"))});case 7:new(0,e.sent.default)(m,y,b).registerEvents();case 8:if(!x){e.next=10;break}return e.next=9,Promise.resolve().then(function(){return o(t("./navigation"))});case 9:new(0,e.sent.default)(x,v,b).registerEvents();case 10:if(!p){e.next=12;break}return e.next=11,Promise.resolve().then(function(){return o(t("./navigation"))});case 11:new(0,e.sent.default)(p,f,g).registerEvents();case 12:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./navigation":893,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],893:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("../../js/utils/viewport-change")),l="aria-expanded",c="aria-hidden",u="aria-disabled";n.default=function(){return(0,a.default)(function t(e,n,r){(0,s.default)(this,t),this.toggle=e,this.navigation=n,this.hideClass=r,this.searchToggleBtn=document.querySelector(".ons-js-toggle-header-search"),this.menuBtn=document.querySelector(".ons-js-toggle-nav-menu"),this.menuEl=document.querySelector(".ons-js-nav-menu"),this.searchBtn=document.querySelector(".ons-btn--search"),this.searchEl=document.querySelector(".ons-js-header-search"),this.toggle.classList.remove("ons-u-d-no"),this.toggle.classList.remove("disabled"),this.setAria(),(0,o.default)(this.setAria.bind(this))},[{key:"registerEvents",value:function(){this.toggle.addEventListener("click",this.toggleNav.bind(this))}},{key:"toggleNav",value:function(){"false"===this.navigation.getAttribute(c)?this.closeNav():this.openNav()}},{key:"openNav",value:function(){var t=(0,i.default)(this.navigation.getElementsByTagName("INPUT"))[0];this.toggle.classList.add("active"),this.navigation.setAttribute(c,"false"),this.navigation.classList.remove(this.hideClass),t&&t.focus(),this.toggle===this.searchToggleBtn&&this.updateSearchIcon(!0,this.toggle),this.toggle.setAttribute(l,"true"),this.toggleMenuAndSearch()}},{key:"closeNav",value:function(){this.toggle.classList.remove("active"),this.navigation.setAttribute(c,"true"),this.navigation.classList.add(this.hideClass),this.toggle===this.searchToggleBtn&&this.updateSearchIcon(!1,this.toggle),this.toggle.setAttribute(l,"false")}},{key:"updateSearchIcon",value:function(t,e){var n='\n <span class="ons-btn__inner">\n <svg class="ons-icon ons-icon--close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" focusable="false" fill="currentColor" role="img" title="ons-icon-close">\n <path d="M12 0C5.4 0 0 5.4 0 12C0 18.6 5.4 24 12 24C18.6 24 24 18.6 24 12C24 5.4 18.6 0 12 0ZM17.3143 15.5143C17.6571 15.8571 17.6571 16.3714 17.3143 16.7143L16.7143 17.3143C16.3714 17.6571 15.8571 17.6571 15.5143 17.3143L12 13.8L8.48571 17.3143C8.14286 17.6571 7.62857 17.6571 7.28571 17.3143L6.68571 16.7143C6.34286 16.3714 6.34286 15.8571 6.68571 15.5143L10.2 12L6.68571 8.48571C6.34286 8.14286 6.34286 7.62857 6.68571 7.28571L7.28571 6.68571C7.62857 6.34286 8.14286 6.34286 8.48571 6.68571L12 10.2L15.5143 6.68571C15.8571 6.34286 16.3714 6.34286 16.7143 6.68571L17.3143 7.28571C17.6571 7.62857 17.6571 8.14286 17.3143 8.48571L13.8 12L17.3143 15.5143Z"/>\n </svg>\n <span class="ons-btn__text"></span>\n </span>',r='\n <span class="ons-btn__inner">\n <svg class="ons-icon ons-icon--search ons-u-mr-2xs" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" role="img" title="ons-icon-search">\n <path d="M11.86 10.23 8.62 6.99a4.63 4.63 0 1 0-6.34 1.64 4.55 4.55 0 0 0 2.36.64 4.65 4.65 0 0 0 2.33-.65l3.24 3.23a.46.46 0 0 0 .65 0l1-1a.48.48 0 0 0 0-.62Zm-5-3.32a3.28 3.28 0 0 1-2.31.93 3.22 3.22 0 1 1 2.35-.93Z"></path>\n </svg>\n <span class="ons-btn__text"></span>\n </span>';null!=t&&(e.innerHTML=t?n:r,e.classList.toggle("ons-btn--close",t),e.classList.toggle("ons-btn--search-icon",!t))}},{key:"isHidden",value:function(t){return!t||("none"===window.getComputedStyle(t).display||0===t.getClientRects().length)}},{key:"setAria",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.isHidden(this.toggle);this.toggle.setAttribute(u,"false"),null===(t=this.searchToggleBtn)||void 0===t||t.setAttribute(u,"false"),e&&!n&&"false"===this.navigation.getAttribute(c)||(n?(this.toggle.setAttribute(l,"false"),this.navigation.removeAttribute(c),this.navigation.classList.remove(this.hideClass),"ons-u-d-no"!==this.hideClass?this.navigation.classList.remove(this.hideClass):this.closeNav()):this.closeNav())}},{key:"toggleMenuAndSearch",value:function(){this.menuBtn&&("true"===this.menuBtn.getAttribute("aria-expanded")&&this.toggle==this.menuBtn&&this.searchBtn&&(this.updateSearchIcon(!1,this.searchToggleBtn&&this.searchBtn),this.searchBtn.setAttribute("aria-expanded","false"),this.searchEl.setAttribute("aria-hidden","true"),this.searchEl.classList.add("ons-u-d-no"),this.searchToggleBtn.classList.remove("active")));this.searchBtn&&("true"===this.searchBtn.getAttribute("aria-expanded")&&this.toggle==this.searchToggleBtn&&this.menuBtn&&(this.menuBtn.setAttribute("aria-expanded","false"),this.menuEl.setAttribute("aria-hidden","true"),this.menuEl.classList.add("ons-u-d-no"),this.menuBtn.classList.remove("active")))}}])}()},{"../../js/utils/viewport-change":933,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],894:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-password"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./password"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./password":895,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],895:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.toggleWrap=e.querySelector(".".concat("ons-js-password-toggle-wrap")),this.toggle=this.toggleWrap.querySelector(".".concat("ons-js-password-toggle")),this.input=e.querySelector(".".concat("ons-js-password-input")),this.toggle.addEventListener("change",this.handleToggleChange.bind(this)),this.toggleWrap.classList.remove("ons-u-d-no")},[{key:"handleToggleChange",value:function(){this.input.type=this.toggle.checked?"text":"password"}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],896:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e,n){(0,i.default)(this,t),this.radio=e,this.openOther=n,this.input=this.openOther.querySelector(".ons-input"),this.input.tabIndex=-1,this.setInputBlurAttributes(),this.input.addEventListener("focus",this.checkRadio.bind(this)),this.radio.addEventListener("change",this.setInputFocusAttributes.bind(this)),this.radio.addEventListener("focus",this.setInputFocusAttributes.bind(this)),"radio"==this.radio.type&&this.input.addEventListener("blur",this.setInputBlurAttributes.bind(this))},[{key:"checkRadio",value:function(){this.radio.checked=!0}},{key:"setInputFocusAttributes",value:function(){this.input.tabIndex=this.radio.checked?0:-1}},{key:"setInputBlurAttributes",value:function(){this.input.tabIndex=-1}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],897:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("dompurify"));n.default=function(){return(0,a.default)(function t(e,n,r){var a=this;if((0,s.default)(this,t),this.inputs=e,this.button=n,this.otherInput=r,this.ariaElement=document.querySelector(".ons-js-clear-radio-alert"),this.clearAlert=this.ariaElement.getAttribute("data-clear"),this.clearedAlert=this.ariaElement.getAttribute("data-cleared"),this.inputs.forEach(function(t){return t.addEventListener("click",a.setClearAttributes.bind(a))}),this.button.addEventListener("click",this.clearRadios.bind(this)),this.checkRadios(),this.otherInput){var o=this.otherInput.parentNode;this.otherField=o.querySelector(".ons-input"),this.otherField.addEventListener("focus",this.setClearAttributes.bind(this))}i=!1},[{key:"checkRadios",value:function(){var t=this;this.inputs.forEach(function(e){e.checked&&t.setClearAttributes()})}},{key:"setClearAttributes",value:function(){this.button.classList.remove("ons-u-db-no-js_enabled"),!1===i&&(this.ariaElement.innerHTML=o.default.sanitize(this.clearAlert),i=!0)}},{key:"clearRadios",value:function(){event.preventDefault(),this.inputs.forEach(function(t){t.checked=!1}),this.otherField&&(this.otherField.value=""),this.button.classList.add("ons-u-db-no-js_enabled"),this.ariaElement.innerHTML=o.default.sanitize(this.clearedAlert),i=!1}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,dompurify:825}],898:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.context=e,this.radios=(0,i.default)(e.closest(".ons-radios__items").querySelectorAll(".ons-js-radio")),this.childInputs=(0,i.default)(this.context.querySelectorAll("input")),this.selectAllChildrenInput=this.context.querySelector(".ons-js-select-all-children"),this.selectAllChildrenInput?this.selectAllChildrenInput.addEventListener("change",this.checkChildInputsOnSelect.bind(this)):this.radios.forEach(function(t){return t.addEventListener("change",n.uncheckChildInputsOnDeselect.bind(n))})},[{key:"checkChildInputsOnSelect",value:function(){var t=this;this.childInputs.forEach(function(e){e.checked=!0===t.selectAllChildrenInput.checked})}},{key:"uncheckChildInputsOnDeselect",value:function(){var t=this.radios.find(function(t){return t.classList.contains("ons-js-other")});t&&!1===t.checked&&this.childInputs.forEach(function(t){t.checked=!1})}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],899:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r,i,o,c,u,h,d;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-radio"))).length){e.next=7;break}return e.next=1,Promise.resolve().then(function(){return l(t("../checkboxes/checkboxes-with-reveal"))});case 1:if(new(0,e.sent.default)(n),r=document.querySelector(".ons-js-clear-btn"),i=document.querySelector(".ons-radio__other"),!r){e.next=3;break}return e.next=2,Promise.resolve().then(function(){return l(t("./clear-radios"))});case 2:new(0,e.sent.default)(n,r,i);case 3:if(!(o=document.querySelector(".ons-radio__other--open"))){e.next=5;break}return c=o.parentNode,u=c.querySelector(".ons-radio__input"),e.next=4,Promise.resolve().then(function(){return l(t("./check-radios"))});case 4:new(0,e.sent.default)(u,o);case 5:if(!(h=(0,a.default)(document.querySelectorAll(".ons-js-other-fieldset-radio")))){e.next=7;break}return e.next=6,Promise.resolve().then(function(){return l(t("./radio-with-fieldset"))});case 6:d=e.sent.default,h.forEach(function(t){var e=t.closest(".ons-radio");new d(e)});case 7:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"../checkboxes/checkboxes-with-reveal":878,"./check-radios":896,"./clear-radios":897,"./radio-with-fieldset":898,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],900:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}(0,r(t("../../js/domready")).default)((0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-relationships"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./relationships"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})))},{"../../js/domready":925,"./relationships":901,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],901:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("dompurify"));n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.context=e,this.legend=document.getElementById("question-title")?document.getElementById("question-title"):document.getElementById("fieldset-legend-title"),this.radios=(0,i.default)(e.querySelectorAll("input[type=radio]")),this.playback=e.querySelector(".ons-js-relationships-playback"),this.radios.forEach(function(t){return t.addEventListener("change",n.setPlayback.bind(n))}),this.setPlayback(),this.playback.classList.remove("ons-u-d-no")},[{key:"setPlayback",value:function(){var t=this.radios.find(function(t){return t.checked});if(t){var e=t.getAttribute("data-title");this.legend.innerHTML=o.default.sanitize(e),this.playback.innerHTML=o.default.sanitize(t.getAttribute("data-playback"))}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,dompurify:825}],902:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.context=e,this.input=this.context.querySelector(".ons-input"),this.button=this.context.querySelector(".ons-btn"),this.enableDisableButton(this.input),this.input.addEventListener("input",this.enableDisableButton.bind(this))},[{key:"enableDisableButton",value:function(){""!=this.input.value.trim()?(this.button.disabled=!1,this.button.classList.remove("ons-btn--disabled")):(this.button.disabled=!0,this.button.classList.add("ons-btn--disabled"))}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],903:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-reply"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./reply-input"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./reply-input":902,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],904:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/toConsumableArray")),a=r(t("@babel/runtime/helpers/asyncToGenerator")),o=r(t("../../js/domready")),l=r(t("./skip-to-content"));function c(){return(c=(0,a.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(e=(0,s.default)(document.querySelectorAll(".ons-skip-to-content"))).length&&e.forEach(function(t){(0,l.default)(t)});case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}(0,o.default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./skip-to-content":905,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/regenerator":29}],905:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var e=t.getAttribute("href").replace("#","");t.addEventListener("click",function(t){t.preventDefault(),document.getElementById(e).tabIndex=-1,document.getElementById(e).style.outline="none",document.getElementById(e).focus()})}},{}],906:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-table-of-contents-container"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./table-of-contents"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./table-of-contents":907,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],907:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass"));function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f: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 s,a=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.default=function(){return(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.component=e,this.sections=(0,i.default)(this.component.querySelectorAll("section[id]")).filter(function(t){return t.id}),this.tocLinks={},this.activeSection=null,this.sections.forEach(function(t){var e=n.component.querySelector('.ons-list__link[href="#'.concat(t.id,'"]'));e&&(n.tocLinks[t.id]=e)}),this.observer=new IntersectionObserver(this.handleIntersect.bind(this),{rootMargin:"0px 0px -100% 0px"}),this.sections.forEach(function(t){return n.observer.observe(t)}),this.setInitialActiveSection()},[{key:"setInitialActiveSection",value:function(){var t=this.sections[0];t&&(this.activeSection=t,this.updateTocLinks())}},{key:"handleIntersect",value:function(t){var e=t.filter(function(t){return t.isIntersecting}).sort(function(t,e){return t.target.getBoundingClientRect().top-e.target.getBoundingClientRect().top});if(0!==e.length){var n=e[0].target;n!==this.activeSection&&(this.activeSection=n,this.updateTocLinks())}}},{key:"updateTocLinks",value:function(){var t,e=o(this.sections);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=this.tocLinks[n.id];null==r||r.classList.toggle("ons-table-of-contents__link-active",n===this.activeSection)}}catch(t){e.e(t)}finally{e.f()}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],908:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof");Object.defineProperty(n,"__esModule",{value:!0}),n.classTableScrollable=void 0;var s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("../../js/domready"));function c(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}var u=n.classTableScrollable="ons-table-scrollable";function h(){return(h=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".".concat(u)))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return c(t("./scrollable-table"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,l.default)(function(){return h.apply(this,arguments)})},{"../../js/domready":925,"./scrollable-table":909,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],909:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.classTableScrollableContent=n.classTable=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=n.classTableScrollableContent="ons-table-scrollable__content",o=n.classTable="ons-table";n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.table=e,this.tableScroll=this.table.getElementsByClassName(a),this.tableEl=this.tableScroll[0].getElementsByClassName(o),this.activeTable=!1,this.tableSizeCheck(),this.viewportCheck()},[{key:"tableSizeCheck",value:function(){this.tableWidth=this.tableEl[0].offsetWidth,this.tableContainerWidth=this.tableScroll[0].offsetWidth,this.tableWidth>this.tableContainerWidth&&!1===this.activeTable?(this.activeTable=!0,this.insertShadows(),this.registerScroll()):this.tableWidth<=this.tableContainerWidth&&!0===this.activeTable&&(this.removeShadows(),this.activeTable=!1)}},{key:"viewportCheck",value:function(){var t=this;window.addEventListener("resize",function(){return t.tableSizeCheck()},!0)}},{key:"registerScroll",value:function(){this.tableScroll[0].addEventListener("scroll",this.toggleShadows.bind(this))}},{key:"insertShadows",value:function(){var t=document.createElement("div"),e=document.createElement("div");t.className="ons-table__right-shadow ons-visible",e.className="ons-table__left-shadow",this.tableScroll[0].appendChild(t),this.tableScroll[0].insertBefore(e,this.tableScroll[0].firstChild)}},{key:"removeShadows",value:function(){var t=this.tableScroll[0].querySelector(".ons-table__right-shadow"),e=this.tableScroll[0].querySelector(".ons-table__left-shadow");this.tableScroll[0].removeChild(t),this.tableScroll[0].removeChild(e)}},{key:"toggleShadows",value:function(){var t=this.tableScroll[0].querySelector(".ons-table__right-shadow"),e=this.tableScroll[0].querySelector(".ons-table__left-shadow"),n=this.getOffset(this.tableScroll[0]).left,r=this.getOffset(this.tableEl[0]).left;this.tableWidth=this.tableEl[0].offsetWidth,this.tableContainerWidth=this.tableScroll[0].offsetWidth,r===n?e.classList.remove("ons-visible"):e.classList.add("ons-visible"),-n===this.tableContainerWidth-this.tableWidth-r?t.classList.remove("ons-visible"):t.classList.add("ons-visible"),setTimeout(function(){return e.classList.add("ons-with-transition"),t.classList.add("ons-with-transition")},200)}},{key:"getOffset",value:function(t){return{left:t.getBoundingClientRect().left+window.scrollX}}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9}],910:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof");Object.defineProperty(n,"__esModule",{value:!0}),n.classTableSortable=void 0;var s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator")),l=r(t("../../js/domready"));function c(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(c=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}var u=n.classTableSortable="ons-table--sortable";function h(){return(h=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".".concat(u)))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return c(t("./sortable-table"))});case 1:r=e.sent.default,n.forEach(function(t,e){return new r(t,e)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,l.default)(function(){return h.apply(this,arguments)})},{"../../js/domready":925,"./sortable-table":911,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],911:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.status=n.jsSortableHeadings=n.default=n.classTableBody=void 0;var i,s=r(t("@babel/runtime/helpers/toConsumableArray")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=n.jsSortableHeadings="[aria-sort]",c=n.classTableBody="ons-table__body";n.default=function(){return(0,o.default)(function t(e,n){(0,a.default)(this,t),this.table=e,this.options={},this.options.statusMessage=e.getAttribute("data-aria-sort"),this.options.ascendingText=e.getAttribute("data-aria-asc"),this.options.descendingText=e.getAttribute("data-aria-desc"),this.index=n,this.init()},[{key:"init",value:function(){this.registerHeadings(),this.createStatusBox()}},{key:"registerHeadings",value:function(){var t=this;this.sortableHeadings=this.table.querySelectorAll(l),(0,s.default)(this.sortableHeadings).forEach(function(e,n){t.createHeadingButtons(e,n)})}},{key:"createHeadingButtons",value:function(t,e){var n=t.textContent.trim();t.querySelector(".ons-table__header-text").remove(),t.querySelector(".ons-icon").classList.remove("ons-u-d-no");var r=document.createElement("button");r.setAttribute("aria-label",this.table.getAttribute("data-aria-sort")+" "+n),r.setAttribute("type","button"),r.setAttribute("data-index",e),r.setAttribute("class","ons-table__sort-button"),r.textContent=n;var i=n.replace(/\s+/g,"-").toLowerCase(),s=document.getElementById("sort-sprite-"+i);s.id="sort-sprite-"+i+"-"+this.index,s.parentNode.replaceChild(r,s),r.appendChild(s),r.addEventListener("click",this.sortButtonClicked.bind(this))}},{key:"sortButtonClicked",value:function(t){var e,n=this,r=t.target.closest("[data-index]").getAttribute("data-index"),i=t.target.closest("[aria-sort]").getAttribute("aria-sort");e="none"===i||"ascending"===i?this.options.descendingText:this.options.ascendingText,this.tableBody=this.table.getElementsByClassName(c),(0,s.default)(this.tableBody).forEach(function(t){var i=n.getTableRowsArray(t),s=n.sort(i,r,e);n.addRows(t,s)}),this.removeButtonStates(),this.updateButtonState(t.target.closest("[aria-sort]"),e)}},{key:"getTableRowsArray",value:function(t){var e=[];return this.trs=t.querySelectorAll("tr"),(0,s.default)(this.trs).forEach(function(t){e.push(t)}),e}},{key:"sort",value:function(t,e,n){var r=this;return t.sort(function(t,i){var s=t.querySelectorAll("td, th")[e],a=i.querySelectorAll("td, th")[e],o=r.getCellValue(s),l=r.getCellValue(a);return"ascending"===n?o<l?-1:o>l?1:0:l<o?-1:l>o?1:0})}},{key:"getCellValue",value:function(t){if(t){var e=t.getAttribute("data-sort-value")||t.textContent;return e=parseFloat(e)||e}}},{key:"addRows",value:function(t,e){e.forEach(function(e){t.append(e)})}},{key:"removeButtonStates",value:function(){this.sortableHeadings=this.table.querySelectorAll(l),(0,s.default)(this.sortableHeadings).forEach(function(t){t.setAttribute("aria-sort","none")})}},{key:"updateButtonState",value:function(t,e){t.setAttribute("aria-sort",e);var n=this.options.statusMessage;n=(n=n+" "+t.textContent.replace(/^\s+|\s+$/g,""))+" ("+e+")",i.textContent=n}},{key:"createStatusBox",value:function(){n.status=i=document.createElement("div"),i.setAttribute("aria-live","polite"),i.setAttribute("role","status"),i.setAttribute("aria-atomic","true"),i.setAttribute("class","ons-sortable-table-status ons-u-vh"),this.table.parentElement.insertBefore(i,this.table.nextSibling)}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],912:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-tabs"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./tabs"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./tabs":913,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],913:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/classCallCheck")),a=r(t("@babel/runtime/helpers/createClass")),o=r(t("../../js/utils/matchMedia")),l=o.default;n.default=function(){return(0,a.default)(function t(e){(0,s.default)(this,t),this.boundTabClick=this.onTabClick.bind(this),this.boundTabKeydown=this.onTabKeydown.bind(this),this.component=e,this.tabsTitle=e.querySelector(".".concat("ons-tabs__title")),this.tabs=(0,i.default)(e.getElementsByClassName("ons-tab")),this.tabList=e.getElementsByClassName("ons-tabs__list"),this.tabListContainer=this.tabList[0].parentElement,this.tabListItems=(0,i.default)(e.getElementsByClassName("ons-tab__list-item")),this.tabPanels=(0,i.default)(e.getElementsByClassName("ons-tabs__panel")),this.jsHiddenClass="ons-tabs__panel--hidden",this.jsTabListAsRowClass="ons-tabs__list--row",this.jsTabItemAsRowClass="ons-tab__list-item--row",this.jsTabAsListClass="ons-tab--row",this.noInitialActiveTab=this.component.getAttribute("data-no-initial-active-tab"),l.hasMatchMedia()?this.setupViewportChecks():this.makeTabs()},[{key:"setupViewportChecks",value:function(){var t,e=this;this.viewport=l("(min-width: ".concat((t=0,e.tabListItems.forEach(function(e){t+=e.offsetWidth}),t<450?t=450:t),"px)")),this.viewport.addListener(this.checkViewport.bind(this)),this.checkViewport()}},{key:"checkViewport",value:function(){this.viewport.matches?this.makeTabs():this.makeList()}},{key:"makeTabs",value:function(){var t=this;this.tabList[0].setAttribute("role","tablist"),this.tabList[0].classList.add(this.jsTabListAsRowClass),this.tabsTitle.classList.add("ons-u-vh"),this.tabListContainer.classList.add("ons-tabs__container"),this.tabPanels.forEach(function(t){t.setAttribute("tabindex","0"),t.querySelector('[id*="content-title"]')&&t.firstElementChild.classList.add("ons-u-vh")}),this.tabListItems.forEach(function(e){e.setAttribute("role","presentation"),e.classList.add(t.jsTabItemAsRowClass)}),this.tabs.forEach(function(e){t.setAttributes(e),e.classList.add(t.jsTabAsListClass),e.addEventListener("click",t.boundTabClick,!0),e.addEventListener("keydown",t.boundTabKeydown,!0),t.hideTab(e)});var e=this.getTab(window.location.hash);if(!this.noInitialActiveTab||e){var n=e||this.tabs[0];this.showTab(n)}this.ensureTabIndexExists(),this.component.boundOnHashChange=this.onHashChange.bind(this),window.addEventListener("hashchange",this.component.boundOnHashChange,!0)}},{key:"makeList",value:function(){var t=this;this.tabList[0].removeAttribute("role"),this.tabList[0].classList.remove(this.jsTabListAsRowClass),this.tabListContainer.classList.remove("ons-tabs__container"),this.tabsTitle.classList.remove("ons-u-vh"),this.tabPanels.forEach(function(t){t.removeAttribute("tabindex","0"),t.firstElementChild.classList.contains("ons-u-vh")&&t.firstElementChild.classList.remove("ons-u-vh")}),this.tabListItems.forEach(function(e){e.removeAttribute("role","presentation"),e.classList.remove(t.jsTabItemAsRowClass)}),this.tabs.forEach(function(e){e.removeEventListener("click",t.boundTabClick,!0),e.removeEventListener("keydown",t.boundTabKeydown,!0),e.classList.remove(t.jsTabAsListClass),t.unsetAttributes(e)}),window.removeEventListener("hashchange",this.component.boundOnHashChange,!0)}},{key:"onHashChange",value:function(){var t=window.location.hash,e=this.getTab(t);if(e)if(this.changingHash)this.changingHash=!1;else{var n=this.getCurrentTab();n&&this.hideTab(n),this.showTab(e),e.focus()}}},{key:"hideTab",value:function(t){this.unhighlightTab(t),this.hidePanel(t)}},{key:"showTab",value:function(t){this.highlightTab(t),this.showPanel(t)}},{key:"getTab",value:function(t){return this.component.querySelector('.ons-tab[href="'+t+'"]')}},{key:"setAttributes",value:function(t){var e=this.getHref(t).slice(1);t.setAttribute("id","tab_"+e),t.setAttribute("role","tab"),t.setAttribute("aria-controls",e),t.setAttribute("tabindex","-1");var n=this.getPanel(t);n.setAttribute("role","tabpanel"),n.setAttribute("aria-labelledby",t.id),n.classList.add(this.jsHiddenClass)}},{key:"unsetAttributes",value:function(t){t.removeAttribute("id"),t.removeAttribute("role"),t.removeAttribute("aria-controls"),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected");var e=this.getPanel(t);e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.classList.remove(this.jsHiddenClass)}},{key:"onTabClick",value:function(t){t.preventDefault();var e=t.target,n=this.getCurrentTab();n&&this.hideTab(n),this.noInitialActiveTab&&e===n||(this.showTab(e),this.createHash(e)),this.ensureTabIndexExists()}},{key:"ensureTabIndexExists",value:function(){this.tabs.find(function(t){return"0"===t.getAttribute("tabindex")})||this.tabs[0].setAttribute("tabindex","0")}},{key:"createHash",value:function(t){var e=this.getPanel(t),n=e.id;e.id="",this.changingHash=!0,window.location.hash=this.getHref(t).slice(1),e.id=n}},{key:"onTabKeydown",value:function(t){37===t.which?(this.focusPreviousTab(),t.preventDefault()):39===t.which?(this.focusNextTab(),t.preventDefault()):32===t.which&&this.onTabClick(t)}},{key:"focusNextTab",value:function(){var t=this.getFocusedTab().nextElementSibling;t&&t.firstElementChild.focus()}},{key:"focusPreviousTab",value:function(){var t=this.getFocusedTab().previousElementSibling;t&&t.firstElementChild.focus()}},{key:"getPanel",value:function(t){var e=this.getHref(t).replace(/([ .:[\]{}()<>?+*~=|^$!\\])/g,"\\$1");return this.component.querySelector(e)}},{key:"showPanel",value:function(t){this.getPanel(t).classList.remove(this.jsHiddenClass)}},{key:"hidePanel",value:function(t){this.getPanel(t).classList.add(this.jsHiddenClass)}},{key:"unhighlightTab",value:function(t){t.setAttribute("aria-selected","false"),t.classList.remove("ons-tab--selected"),t.setAttribute("tabindex","-1")}},{key:"highlightTab",value:function(t){t.setAttribute("aria-selected","true"),t.classList.add("ons-tab--selected"),t.setAttribute("tabindex","0")}},{key:"getFocusedTab",value:function(){return document.activeElement.parentNode}},{key:"getCurrentTab",value:function(){return this.component.querySelector(".ons-tab--selected")}},{key:"getHref",value:function(t){var e=t.getAttribute("href");return e.slice(e.indexOf("#"),e.length)}}])}()},{"../../js/utils/matchMedia":932,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],914:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-timeout-modal"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./timeout-modal"))});case 1:r=e.sent.default,n.forEach(function(t){var e=t.getAttribute("data-server-session-expiry-endpoint"),n=t.getAttribute("data-server-session-expires-at");new r(t,e,n)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./timeout-modal":915,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],915:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("../modal/modal")),c=r(t("../../js/timeout"));n.default=function(){return(0,o.default)(function t(e,n,r){(0,a.default)(this,t),this.context=e,this.sessionExpiryEndpoint=n,this.initialExpiryTime=r,this.continueButton=e.querySelector(".ons-js-modal-btn"),this.modalVisibleInMilliseconds=1e3*e.getAttribute("data-show-modal-time"),this.expiryTime="",this.expiryTimeInMilliseconds=0,this.shouldRestartCheck=!1,this.modal=new l.default(this.context),this.timeout=new c.default(this.context,this.sessionExpiryEndpoint,this.initialExpiryTime,!0),this.bindEventListeners()},[{key:"bindEventListeners",value:function(){window.onload=this.startTimeout(),window.addEventListener("keydown",this.escToClose.bind(this)),this.continueButton.addEventListener("click",this.closeModalAndRestartTimeout.bind(this))}},{key:"startTimeout",value:function(){clearTimeout(this.showModalTimeout),this.initialExpiryTime?(this.expiryTime=this.timeout.expiryTime,this.expiryTimeInMilliseconds=this.timeout.convertTimeToMilliSeconds(this.expiryTime)):this.expiryTimeInMilliseconds=6e4,this.showModalTimeout=setTimeout(this.openModalAndStartCountdown.bind(this),this.expiryTimeInMilliseconds-this.modalVisibleInMilliseconds)}},{key:"openModalAndStartCountdown",value:(n=(0,s.default)(i.default.mark(function t(){var e=this;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.hasExpiryTimeResetInAnotherTab();case 1:t.sent&&!this.modal.isDialogOpen()&&(this.modal.openDialog(),this.timeout.startUiCountdown(),this.shouldRestartCheck=setInterval((0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,e.hasExpiryTimeResetInAnotherTab();case 1:case"end":return t.stop()}},t)})),2e4));case 2:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)})},{key:"hasExpiryTimeResetInAnotherTab",value:(e=(0,s.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.timeout.getExpiryTime();case 1:if((e=t.sent).substring(0,19)==this.timeout.expiryTime.substring(0,19)){t.next=2;break}this.expiryTime=e,this.expiryTimeInMilliseconds=this.timeout.convertTimeToMilliSeconds(e),this.closeModalAndRestartTimeout(this.expiryTimeInMilliseconds),t.next=3;break;case 2:return t.abrupt("return",!0);case 3:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{key:"closeModalAndRestartTimeout",value:(t=(0,s.default)(i.default.mark(function t(e){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return clearInterval(this.shouldRestartCheck),"string"!=typeof timeInMilliSeconds&&(e=!1),this.modal.isDialogOpen()&&this.modal.closeDialog(event),t.next=1,this.timeout.restartTimeout(e);case 1:this.startTimeout();case 2:case"end":return t.stop()}},t,this)})),function(e){return t.apply(this,arguments)})},{key:"escToClose",value:function(t){this.modal.isDialogOpen()&&27===t.keyCode&&this.closeModalAndRestartTimeout()}}]);var t,e,n}()},{"../../js/timeout":931,"../modal/modal":889,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],916:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-panel-with-countdown"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("../../js/timeout"))});case 1:r=e.sent.default,n.forEach(function(t){var e=t.getAttribute("data-server-session-expires-at");new r(t,null,e,!1,!0)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"../../js/timeout":931,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],917:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll(".ons-js-video"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./video"))});case 1:r=e.sent.default,n.forEach(function(t){return new r(t)});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("../../js/domready")).default)(function(){return c.apply(this,arguments)})},{"../../js/domready":925,"./video":918,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],918:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=r(t("dompurify"));n.default=function(){return(0,s.default)(function t(e){(0,i.default)(this,t),this.component=e,this.placeholder=e.querySelector(".ons-js-video-placeholder"),this.iframe=e.querySelector(".ons-js-video-iframe"),this.acceptCookiesButton=document.querySelector(".ons-js-accept-cookies"),this.acceptCookiesButton&&this.acceptCookiesButton.addEventListener("click",this.showIframe.bind(this)),this.checkCookie()&&this.showIframe()},[{key:"checkCookie",value:function(){return!!document.cookie.match(/^(.*)?\s*'campaigns':true\s*[^;]+(.*)?$/)}},{key:"showIframe",value:function(){var t=this.addDNTtoVimeoVideos();this.iframe.src=t,this.iframe.classList.remove("ons-u-d-no"),this.component.classList.add("ons-video--hasIframe"),this.placeholder.classList.add("ons-u-d-no")}},{key:"addDNTtoVimeoVideos",value:function(){var t=this.iframe.getAttribute("data-src");return(t=a.default.sanitize(t)).includes("player.vimeo.com/video")&&!1===t.includes("?dnt=1")?t+="?dnt=1":t}}])}()},{"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,dompurify:825}],919:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/defineProperty")),a=r(t("@babel/runtime/helpers/asyncToGenerator")),o=r(t("@babel/runtime/helpers/classCallCheck")),l=r(t("@babel/runtime/helpers/createClass"));function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var h=function(){return(0,l.default)(function t(e,n){(0,o.default)(this,t),this.url=e,this.options=n,this.controller=new window.AbortController,this.status="UNSENT"},[{key:"send",value:(t=(0,a.default)(i.default.mark(function t(){var e,n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.status="LOADING",t.prev=1,t.next=2,window.fetch(this.url,u({signal:this.controller.signal},this.options));case 2:if((e=t.sent).status>=200&&e.status<300||e.status>=400){t.next=3;break}throw(n=new Error("HTTP error! status: ".concat(e.status))).response=e,n;case 3:return t.abrupt("return",e);case 4:return t.prev=4,this.status="DONE",t.finish(4);case 5:case"end":return t.stop()}},t,this,[[1,,4,5]])})),function(){return t.apply(this,arguments)})},{key:"abort",value:function(){this.controller.abort()}}]);var t}();n.default=function(t,e){return new h(t,e)}},{"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29}],920:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,n.trackEvent=n.trackElement=void 0;var i=r(t("@babel/runtime/helpers/toConsumableArray")),s=r(t("@babel/runtime/helpers/defineProperty")),a=r(t("./domready"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var l=n.trackEvent=function(){};void 0!==window.google_tag_manager&&(n.trackEvent=l=function(t,e){gtag("event",t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},e))});var c=n.trackElement=function(t,e){for(var n=t.attributes,r={},i=0;i<n.length;i++){var s=n[i].name;if(s.startsWith("data-ga-"))r[s.replace("data-ga-","").replace("-","_")]=t.getAttribute(s)}return l("ons_".concat(e),r)};function u(){var t=(0,i.default)(document.querySelectorAll("[data-ga=visible]")),e=window.setInterval(function(){0===(t=t.filter(function(t){return!t||c(t,"visible")&&!1})).length&&window.clearInterval(e)},200);document.body.addEventListener("click",function(t){var e,n=t.target;return"click"===n.getAttribute("data-ga")?c(n,"click"):"click"===(null===(e=n.parentElement)||void 0===e?void 0:e.getAttribute("data-ga"))?c(n.parentElement,"click"):void 0}),(0,i.default)(document.querySelectorAll("[data-ga=error]")).map(function(t){return c(t,"error")});var n=function(){return l({event_tracked:"true",event_category:"Print Intent",event_action:"Print Intent",event_label:window.location.pathname.split("/").slice(-3).join("/")})};window.matchMedia&&window.matchMedia("print").addListener(function(t){t.matches||n()});window.onafterprint=n}(0,a.default)(u)},{"./domready":925,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],921:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_COOKIE_CONSENT=n.COOKIE_CATEGORIES=void 0,n.approveAllCookieTypes=function(){h("ons_cookie_policy",JSON.stringify({essential:!0,settings:!0,usage:!0,campaigns:!0}).replace(/"/g,"'"),{days:365})},n.checkConsentCookie=u,n.checkConsentCookieCategory=c,n.cookie=o,n.getConsentCookie=l,n.getCookie=d,n.getDomain=p,n.setConsentCookie=function(t){var e=p(document.domain),n=l();n||(n=JSON.parse(JSON.stringify(s).replace(/'/g,'"')));for(var r in t)if(n[r]=t[r],!t[r])for(var i in a)if(a[i]===r&&(o(i,null),o(i))){var c=i+"=; expires="+new Date+"; domain="+e+"; path=/";document.cookie=c}h("ons_cookie_policy",JSON.stringify(n).replace(/"/g,"'"),{days:365})},n.setCookie=h,n.setDefaultConsentCookie=function(){h("ons_cookie_policy",JSON.stringify(s).replace(/"/g,"'"),{days:365})};var i=r(t("@babel/runtime/helpers/typeof")),s=n.DEFAULT_COOKIE_CONSENT={essential:!0,settings:!1,usage:!1,campaigns:!1},a=n.COOKIE_CATEGORIES={RH_SESSION:"essential",session:"essential",ons_cookie_policy:"essential",ons_cookie_message_displayed:"essential",_ga:"usage",_gid:"usage",_gat:"usage",_use_hitbox:"campaigns",VISITOR_INFO1_LIVE:"campaigns",_fbp:"campaigns",COOKIE_SUPPORT:"essential",GUEST_LANGUAGE_ID:"essential",JSESSIONID:"essential",ID:"essential",COMPANY_ID:"essential",USER_UUID:"essential",LFR_SESSION_STATE_:"essential",csfcfc:"essential"};function o(t,e,n){return void 0!==e?!1===e||null===e?h(t,"",{days:-1}):(void 0===n&&(n={days:30}),h(t,e,n)):d(t)}function l(){var t,e=o("ons_cookie_policy");return e?(t=JSON.parse(e.replace(/'/g,'"')),"object"!==(0,i.default)(t)&&null!==t&&(t=JSON.parse(t.replace(/'/g,'"'))),t):null}function c(t,e){var n=l();if(!n&&a[t])return!0;n=l();try{return n[e]}catch(t){return!1}}function u(t,e){return"ons_cookie_policy"===t||null===e||!1===e||!!a[t]&&c(t,a[t])}function h(t,e,n){var r=p(document.domain),i="";if(-1===r.indexOf("localhost")&&(i="; domain="+r),u(t,e)){void 0===n&&(n={});var s=t+"="+e+i+"; path=/";if(n.days){var a=new Date;a.setTime(a.getTime()+24*n.days*60*60*1e3),s=s+"; expires="+a.toGMTString()}"https:"===document.location.protocol&&(s+="; Secure"),document.cookie=s}}function d(t){for(var e=t+"=",n=document.cookie.split(";"),r=0,i=n.length;r<i;r++){for(var s=n[r];" "===s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf(e))return decodeURIComponent(s.substring(e.length))}return null}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;"legacy"===function(){var t=document.querySelector(".ons-cookies-banner"),e=t?t.getAttribute("data-ons-cookie-domain-policy"):null;switch(e){case"legacy":case"day1":return e;default:return"legacy"}}()&&t.startsWith("www.")&&(t=t.substring(4));for(var n=0,r=t,i=r.split("."),s="_gd"+(new Date).getTime();n<i.length-1&&-1==e.cookie.indexOf(s+"="+s);)r=i.slice(n,i.length).join("."),e.cookie=s+"="+s+";domain="+r+";",n++;return e.cookie=s+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+r+";",r}},{"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/typeof":27}],922:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return c=(0,o.default)(s.default.mark(function e(){var n,r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.querySelectorAll("[data-module=cookie-settings]"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./cookies-settings"))});case 1:r=e.sent.default,n.forEach(function(t){new r(t)});case 2:case"end":return e.stop()}},e)})),c.apply(this,arguments)}(0,r(t("./domready")).default)(function(){return c.apply(this,arguments)})},{"./cookies-settings":923,"./domready":925,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],923:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/helpers/classCallCheck")),s=r(t("@babel/runtime/helpers/createClass")),a=t("lodash"),o=t("./cookies-functions");n.default=function(){return(0,s.default)(function t(e){if((0,i.default)(this,t),this.component=e,this.returnLink=document.querySelector(".ons-js-return-link"),this.confirmationMessage=document.querySelector(".ons-cookies-confirmation-message"),this.cookiesBanner=document.querySelector(".ons-cookies-banner"),this.component.addEventListener("submit",this.submitSettingsForm.bind(this)),this.returnLink){var n=document.referrer||"/";this.returnLink.setAttribute("href",n)}this.setInitialFormValues()},[{key:"setInitialFormValues",value:function(){(0,o.cookie)("ons_cookie_policy")||(0,o.setDefaultConsentCookie)();var t=(0,o.cookie)("ons_cookie_policy"),e=JSON.parse(t.replace(/'/g,'"'));try{(0,a.unset)(e,"essential")}catch(t){}for(var n in e){var r=void 0;(r=e[n]?document.querySelector("input[name=cookies-".concat(n,"][value=on]")):document.querySelector("input[name=cookies-".concat(n,"][value=off]")))&&(r.checked=!0)}}},{key:"submitSettingsForm",value:function(t){t.preventDefault(),(0,o.cookie)("ons_cookie_message_displayed")||(0,o.setCookie)("ons_cookie_message_displayed",!0,{days:365});for(var e=t.target.getElementsByTagName("input"),n={},r=0;r<e.length;r++){var i=e[r];if(i.checked){var s=i.name.replace("cookies-",""),a="on"===i.value;n[s]=a,"usage"===s&&!0===a&&"undefined"!=typeof loadGTM&&loadGTM()}}return(0,o.setConsentCookie)(n),this.showConfirmationMessage(),this.hideCookiesBanner(),!1}},{key:"showConfirmationMessage",value:function(){this.confirmationMessage.classList.remove("ons-u-d-no"),document.body.scrollTop=document.documentElement.scrollTop=0,this.setConfirmationMessageAttributes()}},{key:"hideCookiesBanner",value:function(){this.cookiesBanner&&(this.cookiesBanner.style.display="none")}},{key:"setConfirmationMessageAttributes",value:function(){this.confirmationMessage.setAttribute("role","alert"),""!=document.referrer?(this.confirmationMessage.setAttribute("autofocus","autofocus"),this.confirmationMessage.setAttribute("tabindex","-1"),this.confirmationMessage.focus()):this.returnLink.style.display="none"}}])}()},{"./cookies-functions":921,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,lodash:831}],924:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");function i(){var t=document.querySelectorAll("details");t.forEach(function(t){t.hasAttribute("data-open")&&t.setAttribute("open","")}),window.addEventListener("beforeprint",function(){t.forEach(function(t){t.hasAttribute("open")?t.dataset.open="true":t.setAttribute("open","")})}),window.addEventListener("afterprint",function(){t.forEach(function(t){"true"===t.dataset.open?(t.setAttribute("open",""),delete t.dataset.open):t.removeAttribute("open")})})}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i,(0,r(t("./domready")).default)(i)},{"./domready":925,"@babel/runtime/helpers/interopRequireDefault":9}],925:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){"loading"===document.readyState?r.push(t):t.call()};var r=[];document.addEventListener("DOMContentLoaded",function(){r.forEach(function(t){return t.call()}),r=[],window.onsDOMReady=!0})},{}],926:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault"),i=t("@babel/runtime/helpers/typeof"),s=r(t("@babel/runtime/regenerator")),a=r(t("@babel/runtime/helpers/toConsumableArray")),o=r(t("@babel/runtime/helpers/asyncToGenerator"));function l(t,e){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(l=function(t,e){if(!e&&t&&t.__esModule)return t;var s,a,o={__proto__:null,default:t};if(null===t||"object"!=i(t)&&"function"!=typeof t)return o;if(s=e?r:n){if(s.has(t))return s.get(t);s.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(a.get||a.set)?s(o,l,a):o[l]=t[l]);return o})(t,e)}function c(){return(c=(0,o.default)(s.default.mark(function e(){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,a.default)(document.getElementsByClassName("ons-js-inpagelink"))).length){e.next=2;break}return e.next=1,Promise.resolve().then(function(){return l(t("./inpagelink"))});case 1:(0,e.sent.default)(n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,r(t("./domready")).default)(function(){return c.apply(this,arguments)})},{"./domready":925,"./inpagelink":927,"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24,"@babel/runtime/helpers/typeof":27,"@babel/runtime/regenerator":29}],927:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){t.forEach(function(t){var e=t.getAttribute("href").replace("#","");t.addEventListener("click",function(t){t.preventDefault(),function(t){var e=document.getElementById(t);e.scrollIntoView();var n=[].concat((0,i.default)(e.getElementsByTagName("INPUT")),(0,i.default)(e.getElementsByTagName("TEXTAREA")),(0,i.default)(e.getElementsByTagName("SELECT"))).filter(function(t){var e=t.getAttribute("type");return"readonly"!==e&&"hidden"!==e})[0];n&&"-1"!==n.getAttribute("tabindex")&&n.focus()}(e)})})};var i=r(t("@babel/runtime/helpers/toConsumableArray"))},{"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],928:[function(t,e,n){"use strict";t("./inpagelink.dom"),t("./print-button"),t("./analytics"),t("./details"),t("./cookies-settings.dom"),t("../components/mutually-exclusive/mutually-exclusive.dom"),t("../components/password/password.dom"),t("../components/tabs/tabs.dom"),t("../components/table-of-contents/table-of-contents.dom"),t("../components/back-to-top/back-to-top.dom"),t("../components/accordion/accordion.dom"),t("../components/details/details.dom"),t("../components/table/scrollable-table.dom"),t("../components/table/sortable-table.dom"),t("../components/navigation/navigation.dom"),t("../components/access-code/access-code.dom"),t("../components/relationships/relationships.dom"),t("../components/checkboxes/checkboxes.dom"),t("../components/radios/radios.dom"),t("../components/autosuggest/autosuggest.dom"),t("../components/address-input/autosuggest.address.dom"),t("../components/input/character-check.dom"),t("../components/input/input.dom"),t("../components/cookies-banner/cookies-banner.dom"),t("../components/button/button.dom"),t("../components/reply/reply.dom"),t("../components/skip-to-content/skip-to-content.dom"),t("../components/download-resources/download-resources"),t("../components/modal/modal.dom"),t("../components/timeout-modal/timeout-modal.dom"),t("../components/timeout-panel/timeout-panel.dom"),t("../components/video/video.dom"),t("../components/chart/chart"),t("../components/chart/chart.dom"),t("../components/chart/chart-iframe-resize"),t("../components/chart/chart-iframe-resize.dom")},{"../components/access-code/access-code.dom":840,"../components/accordion/accordion.dom":842,"../components/address-input/autosuggest.address.dom":844,"../components/autosuggest/autosuggest.dom":848,"../components/back-to-top/back-to-top.dom":853,"../components/button/button.dom":855,"../components/chart/chart":866,"../components/chart/chart-iframe-resize":864,"../components/chart/chart-iframe-resize.dom":863,"../components/chart/chart.dom":865,"../components/checkboxes/checkboxes.dom":879,"../components/cookies-banner/cookies-banner.dom":880,"../components/details/details.dom":882,"../components/download-resources/download-resources":884,"../components/input/character-check.dom":885,"../components/input/input.dom":886,"../components/modal/modal.dom":888,"../components/mutually-exclusive/mutually-exclusive.dom":890,"../components/navigation/navigation.dom":892,"../components/password/password.dom":894,"../components/radios/radios.dom":899,"../components/relationships/relationships.dom":900,"../components/reply/reply.dom":903,"../components/skip-to-content/skip-to-content.dom":904,"../components/table-of-contents/table-of-contents.dom":906,"../components/table/scrollable-table.dom":908,"../components/table/sortable-table.dom":910,"../components/tabs/tabs.dom":912,"../components/timeout-modal/timeout-modal.dom":914,"../components/timeout-panel/timeout-panel.dom":916,"../components/video/video.dom":917,"./analytics":920,"./cookies-settings.dom":922,"./details":924,"./inpagelink.dom":926,"./print-button":930}],929:[function(t,e,n){"use strict";t("core-js"),t("mdn-polyfills/CustomEvent"),t("mdn-polyfills/Node.prototype.append"),t("mdn-polyfills/Node.prototype.remove"),t("mdn-polyfills/Element.prototype.closest"),t("whatwg-fetch"),t("abortcontroller-polyfill/dist/polyfill-patch-fetch")},{"abortcontroller-polyfill/dist/polyfill-patch-fetch":30,"core-js":32,"mdn-polyfills/CustomEvent":832,"mdn-polyfills/Element.prototype.closest":833,"mdn-polyfills/Node.prototype.append":834,"mdn-polyfills/Node.prototype.remove":835,"whatwg-fetch":839}],930:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var i=r(t("@babel/runtime/helpers/toConsumableArray"));function s(){(0,i.default)(document.querySelectorAll(".ons-js-print-btn")).forEach(function(t){t.addEventListener("click",a),t.classList.remove("ons-u-d-no")})}function a(){window.print()}(0,r(t("./domready")).default)(s)},{"./domready":925,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/helpers/toConsumableArray":24}],931:[function(t,e,n){"use strict";var r=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("@babel/runtime/regenerator")),s=r(t("@babel/runtime/helpers/asyncToGenerator")),a=r(t("@babel/runtime/helpers/classCallCheck")),o=r(t("@babel/runtime/helpers/createClass")),l=r(t("dompurify"));n.default=function(){return(0,o.default)(function t(e,n,r,i,s){(0,a.default)(this,t),this.context=e,this.sessionExpiryEndpoint=n,this.initialExpiryTime=r,this.enableTimeoutReset=i||!1,this.startOnLoad=s||!1,this.countdown=e.querySelector(".ons-js-timeout-timer"),this.accessibleCountdown=e.querySelector(".ons-js-timeout-timer-acc"),this.timeOutRedirectUrl=e.getAttribute("data-redirect-url"),this.minutesTextSingular=e.getAttribute("data-minutes-text-singular"),this.minutesTextPlural=e.getAttribute("data-minutes-text-plural"),this.secondsTextSingular=e.getAttribute("data-seconds-text-singular"),this.secondsTextPlural=e.getAttribute("data-seconds-text-plural"),this.countdownText=e.getAttribute("data-countdown-text"),this.countdownExpiredText=e.getAttribute("data-countdown-expired-text"),this.endWithFullStop=e.getAttribute("data-full-stop"),this.expiryTime="",this.expiryTimeInMilliseconds=0,this.timers=[],this.timerRunOnce=!1,this.countdownStarted=!1,this.initialise()},[{key:"initialise",value:(h=(0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.initialExpiryTime){t.next=1;break}this.expiryTime=this.initialExpiryTime,t.next=3;break;case 1:return t.next=2,this.setNewExpiryTime();case 2:this.expiryTime=t.sent;case 3:this.expiryTimeInMilliseconds=this.convertTimeToMilliSeconds(this.expiryTime),this.enableTimeoutReset&&this.addThrottledResetEvents(),this.startOnLoad&&this.startUiCountdown(),window.addEventListener("focus",this.handleWindowFocus.bind(this));case 4:case"end":return t.stop()}},t,this)})),function(){return h.apply(this,arguments)})},{key:"startUiCountdown",value:(u=(0,s.default)(i.default.mark(function t(){var e,n,r,a;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.clearTimers(),this.countdownStarted=!0,e=this.convertTimeToMilliSeconds(this.expiryTime),n=e/1e3,r=this.timers,a=this,function(){var t=(0,s.default)(i.default.mark(function t(){var s,o,c,u,h,d;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:s=parseInt(n/60,10),o=parseInt(n%60,10),c=s<1&&o<1,u=s+" "+(s>=2?a.minutesTextPlural:1===s?a.minutesTextSingular:""),h=o+" "+(o>=2?a.secondsTextPlural:1===o?a.secondsTextSingular:""),d=a.countdownText+' <span class="ons-u-fw-b">'+(s>0?u:"")+(s>0&&o>0?" ":"")+(o>0?h:"")+"</span>"+(a.endWithFullStop?".":""),c?(a.countdown.innerHTML=l.default.sanitize('<span class="ons-u-fw-b">'+a.countdownExpiredText+"</span>"),a.accessibleCountdown.innerHTML=l.default.sanitize(a.countdownExpiredText),setTimeout(a.redirect.bind(a),2e3)):(n--,a.expiryTimeInMilliseconds=1e3*n,a.countdown.innerHTML=l.default.sanitize(d),s<1&&o<20&&a.accessibleCountdown.setAttribute("aria-live","assertive"),a.timerRunOnce?o%15==0&&(a.accessibleCountdown.innerHTML=l.default.sanitize(d)):(a.accessibleCountdown.innerHTML=l.default.sanitize(d),a.timerRunOnce=!0),r.push(setTimeout(e.bind(a),1e3)));case 1:case"end":return t.stop()}},t)}));function e(){return t.apply(this,arguments)}return e}()();case 1:case"end":return t.stop()}},t,this)})),function(){return u.apply(this,arguments)})},{key:"restartTimeout",value:(c=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.clearTimers(),this.countdownStarted=!1,!1===e){t.next=1;break}this.expiryTimeInMilliseconds=e,t.next=3;break;case 1:return t.next=2,this.setNewExpiryTime();case 2:n=t.sent,this.expiryTime=n,this.expiryTimeInMilliseconds=this.convertTimeToMilliSeconds(n);case 3:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)})},{key:"handleWindowFocus",value:(r=(0,s.default)(i.default.mark(function t(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.clearTimers(),this.countdownStarted&&this.startUiCountdown();case 1:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)})},{key:"setNewExpiryTime",value:(n=(0,s.default)(i.default.mark(function t(){var e,n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.sessionExpiryEndpoint){t.next=1;break}n=new Date(Date.now()+6e4),e=new Date(n).toISOString(),t.next=3;break;case 1:return t.next=2,this.fetchExpiryTime("PATCH");case 2:e=t.sent;case 3:return t.abrupt("return",e);case 4:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)})},{key:"getExpiryTime",value:(e=(0,s.default)(i.default.mark(function t(){var e;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.sessionExpiryEndpoint){t.next=2;break}return t.next=1,this.fetchExpiryTime("GET");case 1:return e=t.sent,t.abrupt("return",e);case 2:return t.abrupt("return",this.expiryTime);case 3:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{key:"fetchExpiryTime",value:(t=(0,s.default)(i.default.mark(function t(e){var n,r;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,fetch(this.sessionExpiryEndpoint,{method:e,headers:{"Cache-Control":"no-cache","Content-type":"application/json; charset=UTF-8"}});case 1:if(401!==(n=t.sent).status){t.next=2;break}return this.redirect(),t.abrupt("return",!1);case 2:return t.next=3,n.json();case 3:return r=t.sent,t.abrupt("return",r.expires_at);case 4:case"end":return t.stop()}},t,this)})),function(e){return t.apply(this,arguments)})},{key:"convertTimeToMilliSeconds",value:function(t){var e=new Date(t);return Math.abs(e-new Date)}},{key:"redirect",value:function(){var t=l.default.sanitize(this.timeOutRedirectUrl);window.location.replace(t)}},{key:"clearTimers",value:function(){for(var t=0;t<this.timers.length;t++)clearTimeout(this.timers[t])}},{key:"addThrottledResetEvents",value:function(){var t=this;window.onclick=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onmousemove=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onmousedown=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onscroll=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onkeypress=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3),window.onkeyup=this.throttle(function(){t.countdownStarted||t.restartTimeout()},61e3)}},{key:"throttle",value:function(t,e){var n=!1;return function(){var r=arguments,a=this;n||(n=!0,setTimeout((0,s.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.apply(a,r),n=!1;case 1:case"end":return e.stop()}},e)})),e))}}}]);var t,e,n,r,c,u,h}()},{"@babel/runtime/helpers/asyncToGenerator":5,"@babel/runtime/helpers/classCallCheck":6,"@babel/runtime/helpers/createClass":7,"@babel/runtime/helpers/interopRequireDefault":9,"@babel/runtime/regenerator":29,dompurify:825}],932:[function(t,e,n){"use strict";function r(t){return window.matchMedia(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.hasMatchMedia=function(){return"function"==typeof window.matchMedia}},{}],933:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){s.push(t),a||(a=!0,(0,r.AddTick)(o))};var r=t("tick-manager"),i=t("viewport-details"),s=[],a=!1;function o(){var t=(0,i.getViewportDetails)();t.resized&&s.forEach(function(e){return e(t)})}},{"tick-manager":837,"viewport-details":838}]},{},[929,928]);